|
|
Re: etfs driver - requirements for NAND devices and adopting driver
|
|
10/13/2011 11:45 AM
post89376
|
Re: etfs driver - requirements for NAND devices and adopting driver
Martin,
You'll need to modify the "struct spare" in hardware/etfs/nand2048/<boardname>/devio.h
That structure has to match the layout of the spare area that is dicated by the hardware. The structure normally will
contain things like the base etfs_trans (fid, seqno,cluster), plus a CRC or ECC. The default 64-byte structure is only
for use with software 1-bit ECC, so the fields have been packed without regard for the hardware layout. If your device
supports hardware ECC (anything stronger than 1-bit will require hardware support), then you'll need to modify the
structure layout to put the ECC fields at the offsets that the hardware describes for that controller.
Once that is done, devio_readtrans(), devio_readcluster(), devio_postcluster() have to be modified to work with the new
structure.
> Sorry got it wrong (2048byte + 64 byte is correct).
> But nearly all the bigger NAND devices e.g. from Micron (>=16Gbit) have a page
> size of 4096byte + 224byte. The question remains the same what must be done
> to get those running?
>
> Martin
|
|
|
|
|