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.

DM355 EVM NAND errors

I'm using a stock DM355 EVM with silicon revision 1.1.  I've upgraded the original MontaVista system to the 3.10 DVSDK with:

sfh_dm35x -nanderase

sfh_dm35x -nandflash ubl_DM35x_nand.bin u-boot-dm355-evm.bin

I used the "legacy" version of sfh_dm35x.  This successfully installed UBL version 1.50 and U-Boot 2009.3.  I get this error at boot:

*** Warning - bad CRC or NAND, using default environment

Trying to save the environment fails:

DM355 EVM > saveenv
Saving Environment to NAND...
Erasing Nand...
Skipping bad block at  0x003c0000
Skipping bad block at  0x00400000
Erasing at 0x420000 -- 100% complete.
Writing to Nand... FAILED!


Writing a kernel to NAND appears to be successful, but booting it fails with:

Loading from NAND 1GiB 3,3V 8-bit, offset 0x400000
Skipping bad block 0x00400000
   Image Name:   Arago/2.6.31+2.6.32-rc1-r37+gitr
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2116204 Bytes =  2 MB
   Load Address: 80008000
   Entry Point:  80008000
Skipping bad block 0x00400000
Skipping bad block 0x00440000
Skipping bad block 0x00480000
Skipping bad block 0x004c0000
Skipping bad block 0x00500000
Skipping bad block 0x00540000
Skipping bad block 0x00580000
Skipping bad block 0x005c0000
Skipping bad block 0x00600000
NAND read from offset 620000 failed -74
** Read error


I was not getting all of the "skipping bad block" errors with the original software.  "nand bad" shows about 600 bad blocks; I don't know if that's normal, as I didn't do a "nand bad" before upgrading.

Have I done something wrong in the upgrade process?

  • I think I may have found the source of my problem.  The "legacy' and "standard" versions of the flash utility and UBL are identical:

    da58fe552a9e4eccb26aa65faf28555f *legacy/sfh_DM35x.exe
    da58fe552a9e4eccb26aa65faf28555f *standard/sfh_DM35x.exe

    c05dfa7ca40829d18333e232e12fce75 *legacy/ubl_DM35x_nand.bin
    c05dfa7ca40829d18333e232e12fce75 *standard/ubl_DM35x_nand.bin

    I downloaded these from http://arago-project.org/files/releases/davinci-psp_3.x.0.0-r37/  .

    Is there anywhere I can get a "legacy" version?  Do I have to build these from source?

  • Doing a "nand scrub" appears to have solved this.