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.

ecc errors

Guru 20755 points


Hello,

I am using jffs root file system in nand.
In the first boot after reset I usually see no ecc error or only one error, but in later boots I start to get more and more errors each new boot as floowing:
CPSW phy found : id is : 0x4dd074
CPSW phy found : id is : 0x4dd074
IP-Config: Guessing netmask 255.0.0.0

IP-Config: Complete:
device=eth0, addr=10.0.0.2, mask=255.0.0.0, gw=255.255.255.255,
host=10.0.0.2, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=10.0.0.1, rootpath=
Waiting 15sec before mounting root device...
PHY: 0:01 - Link is Up - 0/Half
PHY: 0:01 - Link is Down
PHY: 0:00 - Link is Up - 100/Full
mtd->read(0x1fd64 bytes from 0x204029c) returned ECC error
mtd->read(0x1b2fc bytes from 0x2044d04) returned ECC error
Empty flash at 0x02044d00 ends at 0x02045000
jffs2_scan_inode_node(): CRC failed on node at 0x0402cff0: Read 0xffffffff, calculated 0x7d2aae68
VFS: Mounted root (jffs2 filesystem) on device 31:5.
devtmpfs: mounted
Freeing init memory: 232K
mtd->read(0x7bc bytes from 0x2045844) returned ECC error
mtd->read(0x800 bytes from 0x2045800) returned ECC error
mtd->read(0x7bc bytes from 0x2045044) returned ECC error
mtd->read(0x800 bytes from 0x2045000) returned ECC error
mtd->read(0x44 bytes from 0x2045844) returned ECC error
INIT: version 2.88 booting
Mounting /dev/shm : Mounting /dev/pts : Mounting other filesystems : mount: mounting 10.0.0.1:/mnt/DVR_NEW on /mnt/nfs failed: No such file or directory
Mounting /dev/sda1 : mount: mounting /dev/sda1 on /media/sda1 failed: No such file or directory
Sync command ...ranran remove /media/sdb1
Error opening /dev/fb0: No such file or directory
Starting udev
udev[115]: starting version 164
Starting Bootlog daemon: bootlogd.
Applying sync command

What should I do ? I notice that only when flashing with:
nandecc hw 2 (HW ECC BCH8) I have this sucess with boot with jffs root (ecxpet the ecc errors).
When flashing with nandecc sw or nandecc hw, It fails to detect file system.

It seels also to be related to jff size. the jffs size I have it 0x2044d00, which is not aligned to 128K.
It seems that the errors are mostly coming after this offset.

Any suggestion is welcomed,

Ran

  • Hi Ran,

    Have you enabled DEBUG support in JFFS2 ?

    Are you getting any performance issue here ?

    Try "nand scrub" and flash everything newly and check.

    What should I do ? I notice that only when flashing with:
    nandecc hw 2 (HW ECC BCH8) I have this sucess with boot with jffs root (ecxpet the ecc errors).
    When flashing with nandecc sw or nandecc hw, It fails to detect file system.

    I think it is because mismatch ECC type between u-boot and kernel.

  • - Have you enabled DEBUG support in JFFS2 ?

      No,

    - Are you getting any performance issue here ?

      I haven't noticed anything yet, but th efollowing line mtd->read(0x1fd64 bytes from 0x204029c) returned ECC error shows ecc error inside the filesystem image size.

    - I think it is because mismatch ECC type between u-boot and kernel.

      Only "nandecc hw 2" works when flashing the filesystem. Maybe it points to some problem ?

     

    Thanks,

    Ran

  • Hi Ran,

    nandecc hw 2 (HW ECC BCH8) I have this sucess with boot with jffs root (ecxpet the ecc errors).
    When flashing with nandecc sw or nandecc hw, It fails to detect file system.

    Only "nandecc hw 2" works when flashing the filesystem. Maybe it points to some problem ?


    May be BBT was created through "NANDECC HW 2" and it should updated by linux through "NANDECC HW 2"

    You should use the same ECC mechanism in both layers (u-boot and Linux).

    You can change the u-boot ECC mechanism in u-boot config file if you want.

    I think, May be you can try to configure the u-boot with "nand hw ecc" and then configure the linux with the same then you able to boot the board with out any issue.

  • hi, 

    I have met the same problem with the quizzer, and here is my boot log, can you help me to get thekey og the problem.

    whatever, I flash u-boot to nand using BCH8 via u-boot, and flash kernel and fs with BCH0. And I boot from nand using BCH0, because the jffs2 only can be supported by hw 0 and sw.

    5342.jffs2_bootlog.txt