3.4.3. Writing to OneNAND
To write len bytes of data from a memory buffer located at addrto the OneNAND
block offset:
If a bad block is encountered during the write operation, it is skipped and the
write operation continues from next 'good' block.
For example, to write 0x40000 bytes from memory buffer at address
0x80000000 to OneNAND - starting at block 32 (offset 0x400000):
3.4.4. Reading from OneNAND
To read len bytes of data from OneNAND block at offset to memory buffer located
at addr:
Version 02.01.01.08
OMAP3EVM# onenand erase 0x00400000 0x00440000
or
OMAP3EVM# onenand erase block 32-34
OMAP3EVM# onenand write <addr> <offset> <len>
Note
The behavior of this command was modified.
Important
If the write fails on ECC check, the block where the failure occurred is marked
bad and write operation is aborted. The command needs to be re- executed
to complete the write operation. The offset and length for reading have to be
page aligned else the command will abort.
OMAP3EVM# onenand write 0x80000000 0x400000 0x40000
OMAP3EVM# onenand read <addr> <offset> <len>
Note
The behavior of this command was modified.
Platform Support Products
U-Boot
Writing to OneNAND
23