最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

擦除nand flash + [nand flash command]

工作和技术 crifan 2103浏览 0评论

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]

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
79 queries in 0.167 seconds, using 22.07MB memory