JZ2440 开发板 arm nand_write_ecc: Attempt to write not page aligned data 0 bytes written: ERROR

在开发过程中有些细节如果不注意将导致你走很多弯路,比如我,百度很久也没有找到比较好可以解决问题的方案,后来自己尝试,才知道是命令错误,是使用write.yaffs而不是write.yaffs2,使用write.yaffs2将提示ERROR,而使用write.yaffs将提升OK

OpenJTAG> nand write.yaffs2 30000000 0x260000 $(filesize)

NAND write: device 0 offset 0x260000, size 0x2f76b40

nand_write_ecc: Attempt to write not page aligned data

 0 bytes written: ERROR

OpenJTAG> nand write.yaffs 30000000 0x260000 $(filesize)

NAND write: device 0 offset 0x260000, size 0x2f76b40

Bad block at 0x820000 in erase block from 0x820000 will be skipped

Writing data at 0x30a6000 -- 100% complete.

 49769280 bytes written: OK

猜你喜欢

转载自blog.csdn.net/lxj362343/article/details/89739464
今日推荐