你好,我们用的是DVRRDK2.0 ,制作jffs2根文件的命令为:
mkfs.jffs2 -lqn -s 0x800 -e 0x20000 -r ./rfs –o root.jffs2
我们的nandflash的pagesize 为 2Kbyte,Blocksize为128Kbyte。16位位宽。
生成的jffs2 文件启动后出现错误:
mtd->read(0x1ff14 bytes from 0xec) returned ECC errorjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003cc: 0x1905 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003d0: 0x0044 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003d4: 0xfb1d id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003d8: 0x000a id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003dc: 0x0001 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003e0: 0x41ed id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003e4: 0x03e8 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003ec: 0x0a10 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003f0: 0x0a10 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003f4: 0x0a10 id
请问这是什么原因?
kooking:
ECC校验错误,可以参考下这个:
http://e2e.ti.com/support/arm/sitara_arm/f/791/t/140272.aspx