Can't read x-loader ?

Hi,

I'm fiddling with U-boot, and want to make sure that if I stuff it up, I'm going to be able to put back the original image on NAND :wink:

My beagleboard is in the state that it arrived...

When I tried to look at what was in nand at address 0 (where x-loader is stored?)
I get the following error when trying to read:

    OMAP3 beagleboard.org # nand read 0x80200000 0 80000

    NAND read: device 0 offset 0x0, size 0x80000
    NAND read from offset 0 failed -74
     524288 bytes read: ERROR

    Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
    Loading u-boot.bin from nand

    U-Boot 2009.01-dirty (Feb 19 2009 - 12:22:31)

    I2C: ready
    OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz
    OMAP3 Beagle board + LPDDR/NAND
    DRAM: 256 MB
    NAND: 256 MiB
    *** Warning - bad CRC or NAND, using default environment

What would be causing this?

When I tried to look at what was in nand at address 0 (where x-loader
is stored?) I get the following error when trying to read:

    OMAP3 beagleboard.org # nand read 0x80200000 0 80000

    NAND read: device 0 offset 0x0, size 0x80000
    NAND read from offset 0 failed -74
     524288 bytes read: ERROR

    Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
    Loading u-boot.bin from nand
    U-Boot 2009.01-dirty (Feb 19 2009 - 12:22:31)

Hi Etienne,

Most likely the ECC calculation method is wrong - Try to issue a:

'nandecc hw' before doing your 'nand read ....' operation.

Dependent on the U-boot version the command might be called 'nand ecc hw'.
AFAIR the change was though done prior to Feb 2009, so I think the line
above should help you out... :slight_smile:

Good luck
  Søren

Thanks Søren,

Unfortunately, I am in a different predicament now :frowning:

I'm going to post a new message with the details - maybe you can help!

Etienne