FreeBSD NAND flash driver

Stanislav Sedov stas at FreeBSD.org
Mon Apr 6 01:24:19 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 5 Apr 2009 17:50:14 +1200
Andrew Turner <andrew at fubar.geek.nz> mentioned:

> I've been working on a FreeBSD NAND flash driver and NAND simulator [1].
> I have tested reading and writing to the simulated NAND device but not
> erasing.

Great news!
 
> It is not usable yet as the write will not perform any deletes from the
> device, either the file system or another geom will have to issue
> a BIO_DELETE followed by BIO_WRITE's to write to the disk. This is done
> to support NAND flash aware file systems.
>

So, for ordinary file systems we're going to use the special geom layer
that will sit above the nand(8) device and perform BIO_DELETE operations
when required?
 
> TODO:
>  * ECC support.
>  * Add GEOM attributes to get information about the NAND device out,
>    eg. Block size, OOB data, etc.
>  * Test the erase code.
>  * Add support for real hardware.
>  * Read the parameter page on parts that support it to get the required
>    information.
> 
> Andrew
> 
> [1] http://fubar.geek.nz/files/freebsd/nand/freebsd-nand-20090405.tar.gz

What about putting this information to the wiki? Seems like a good start for
anyone who'll be working on the real hardware.
And thanks again for the great work!

- -- 
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAknZvC4ACgkQK/VZk+smlYFgGQCeP/sXZcjhEBrvHQtdcO+iPC6R
yKoAnisUV9Jmfagx4sQCcE5wWGABI/y0
=cmW/
-----END PGP SIGNATURE-----

!DSPAM:49d9bc2f967001306411375!




More information about the freebsd-geom mailing list