nand info & nand device
显示flash的信息:
DM365 :>nand info
Device 0: NAND 32MiB 3,3V 8-bit, sector size 16 KiB
DM365 :>nand device
Device 0: NAND 32MiB 3,3V 8-bit
nand read(.oob) addr off size
不管是读取data, 使用nand read,还是读取oob,使用命令nand read.oob, 后面跟的地址addr,都是ram的地址, off指的是nand flash的地址, size:指要读取nand flash的数据大小, 但是如果是读取oob, size不能超过一个page的oob size, 如果page size为512个字节, oob size就是16个字节.
DM365 :>nand read 86000000 58000 100 NAND read: device 0 offset 0x58000, size 0x100 256 bytes read: OK DM365 :>md 86000000 40 //打印86000000地址开始的40个地址的内容