This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dvrrdk3.0 nand flash ecc错误



DVRRDK3.0貌似只支持ecc为bch8的nand flash ,看了uboot代码bch4和bch16的确不支持,那现在用ecc 为4bit的nand,有什么办法可以支持呢,或者ti有没有相关的补丁出来呢?不知道dvrrdk3.5里面是否能支持了?

目前我的操作如下:

 

烧写uboot:      nandecc hw 2;nand erase 0x0 0x240000; nand write.i 0x81000000 0x0 0x31000;

烧写kernel:     nand erase 0x00580000 0x440000;nand write.i 0x81000000 0x00580000 0x300000;

烧写ubifs:     nand erase 0x009C0000 0xC820000;nand write 0x81000000 0x009C0000 0x4000000;

bootargs:    setenv bootargs 'mem=256M console=ttyO2,115200n8 noinitrd rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init ip=off vram=20M notifyk.vpssm3_sva=0xBEE00000 stdin=serial';

bootcmd:  setenv bootcmd 'nand read 0x81000000 0x00580000 0x300000; bootm 0x81000000';

 

烧写后系统第一次启动不报任何错误,第二次启动则可能直接崩溃在挂载文件系统那里,或者能起来,但每次都报一些ecc error,错误如下:

UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes

经反复尝试一直没解决问题,硬件设计说目前nand 是4bit ecc, 但uboot目前支持8bit hw ecc,不知有没有其它人碰到类似问题,有没有解决的思路,还是只能换成8bit ecc的nand flash?