nand scrub 首地址 [长度]
此处由于只是打算擦除kenel,然后去查看uimage大小是1519604字节=0x172FF4 bytes,所以,长度就可以设置为0x200000:
nand scrub 0x80000 0x200000
[nand flash command]
U-boot下Nand Flash的相关命令
(u-boot-<version>/common/cmd_nand.c — U_BOOT_CMD) :
"nand - NAND sub-systemn", "info - show available NAND devicesn" "nand device [dev] - show or set current devicen" "nand read[.jffs2] - addr off|partition sizen" "nand write[.jffs2] - addr off|partiton size - read/write `size' bytes startingn" " at offset `off' to/from memory address `addr'n" "nand erase [clean] [off size] - erase `size' bytes fromn" " offset `off' (entire device if not specified)n" "nand bad - show bad blocksn" "nand dump[.oob] off - dump pagen" "nand scrub - really clean NAND erasing bad blocks (UNSAFE)n" "nand markbad off - mark bad block at offset (UNSAFE)n" "nand biterr off - make a bit error at offset (UNSAFE)n" "nand lock [tight] [status] - bring nand to lock state or display locked pagesn" "nand unlock [offset] [size] - unlock sectionn";
|
转载请注明:在路上 » 擦除nand flash + [nand flash command]
Post Views: 902