Command |
Function |
Nand info |
Display available NAND Flash |
Nand device [Dev] |
Display or set the currently used NAND Flash |
Nand read ADDR off size |
NAND Flash READ command, offset from off of NAND Read the size byte data to the addr of the sdram. Address. |
Nand write ADDR off size |
Run the NAND Flash command to download the ADDR location of the SDRAM. The size byte data at the address is burned to the off offset address of the NAND. |
Nand write [. yaffs [1] ADDR off size |
Run the command for writing the yaffs image. yaffs1 512 + 16 Nand |
Nand erase [clean] [off size] |
Run the NAND Flash cancel command to erase the off of NAND Flash. Size byte data at the offset address |
Nand bad |
Display Bad blocks of NAND Flash |
Nand dump [. OOB] Off |
Display Data in NAND Flash (hexadecimal) |
Nand scrub Nand scrub first address [length] |
Completely erase the data in the entire NAND Flash, including OOB. You can erase software bad block signs. |
Nand markbad off |
Block at the off offset address of the NAND is a bad block. |
Appendix:
1. http://blog.chinaunix.net/uid-14833587-id-76513.html
NAND Flash uboot command details
2. Use the NAND scrub command with caution
Nand srcub is a command used to forcibly erase NAND Flash. When using this command in U-boot, a warning is displayed: Do not use this command easily, this command will erase the bad block table marked by the factory. Once erased, it cannot be restored.
However, in general cases, even if NAND scrub is used for U-boot, the problem does not exist because everything is normal. However, if your program requires batch production, you may not be able to handle the potential problems caused by using this command.
The NAND Flash plant tests and marks the NAND Bad blocks in a relatively wide range of temperature and voltage. These Bad blocks can still work at a certain temperature or voltage, however, it may become a potential time bomb when the condition changes at another time point. Although the Flash technology is gradually improving, a 2 GB flash memory is still allowed to have up to 40 Bad blocks at the factory. Therefore, if we erase the bad block table made by the factory and use some bad blocks as good blocks, it will bring a great chance and danger to the stability of the system. At present, I am not sure which of my predecessors left me using this command to erase flash before burning chips in batches. As a result, there are often some inexplicable system problems that cannot be started in the product, it cannot be solved for a long time.