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.

u-boot NAND read error

Hello,

I'm having a problem with u-boot and writing/reading the kernel image to onboard Flash.  Our target hardware has the DM365 and an 8Gb NAND flash.  I'm having an issue where I cannot read from the flash chip from u-boot.  I am able to erase blocks and read back the erased blocks without error.  It also tells me that I can write to those blocks, but when I try to read data that I have written I get the error:  NAND read from offset 400000 failed -74

I've attached one of these exchanges.  I am able to flash in the UBL and u-boot (from code composer), so I don't think the flash is completely corrupted.  It seems as though it is a problem with u-boot, but the same image works on one of our previous boards with a smaller memory chip.  I was hoping someone could help me out.

Thanks in advance,

-Matt

 


 

 

NAND erase: device 0 offset 0x400000, size 0x240000

Erasing at 0x600000 -- 100% complete.

OK


u-boot # nand read 0x80200000 0x400000 0x240000

NAND read: device 0 offset 0x400000, size 0x240000

 2359296 bytes read: OK


u-boot # nand read 0x80700000 0x400000 0x240000

NAND read: device 0 offset 0x400000, size 0x240000

 2359296 bytes read: OK


u-boot # nand write 0x80700000 0x400000 240000

NAND write: device 0 offset 0x400000, size 0x240000

 2359296 bytes written: OK


u-boot # nand read 0x8020000 0x400000

NAND read: device 0 offset 0x400000, size 0x7fc00000

NAND read from offset 400000 failed -74

 0 bytes read: ERROR

 

 

  • So I've done a bit of digging and it looks like this error is caused by by the ECC.  It seems like the kernel disables nand checking and can access the flash just fine.  Does anyone know if there is a way to disable the ECC checks in u-boot?  

  • Hi mtb,

    It may be possible to disable ECC checking, but it is not recommended. Which kernel version do you refer to here?

    Can you please check DVSDK 3.10 and see if you get the same issue there? The U-Boot there is the latest supported and has some ECC related fixes as well.

    Thanks,

    Sekhar