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.

Burning u-boot images to NAND flash

Hi,

I am using the latest TCIEVMK2X Rev2.0 board.  I have compiled u-boot and burned the u-boot.bin to the NAND flash as per the steps mentioned in the MCSDK 3.x Guide. Below are the steps I followed -

#######################################################################

printenv output of mtd variables

mtddevname=bootloader
mtddevnum=0
mtdids=nand0=davinci_nand.0
mtddevname=bootloader

TCI6638 EVM # setenv mtdparts 'mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(mparams),-(ubifs)'
TCI6638 EVM # nand ecclayout set 1
TCI6638 EVM # nand erase.part bootloader
NAND erase.part: device 0 offset 0x0, size 0x100000
Erasing at 0x0 -- 12% complete.Erasing at 0x20000 -- 25% complete.Erasing at 0x40000 -- 37% complete.Erasing at 0x60000 -- 50% complete.Erasing at 0x80000 -- 62% complete.Erasing at 0xa0000 -- 75% complete.Erasing at 0xc0000 -- 87% complete.Erasing at 0xe0000 -- 100% complete.
OK
TCI6638 EVM # nand write 0x88000000 bootloader ${filesize}
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x100000 -- 50% complete.Erasing at 0x120000 -- 100% complete.
Writing to Nand... done
TCI6638 EVM #nand ecclayout set 0
TCI6638 EVM #

##################################################################################

After burning to the flash and reboot, board is unable to come up with u-boot giving the below error -

-------------------------------------------------------------------------------------------------

U-Boot 2013.01 (Nov 26 2013 - 17:44:18)

I2C: ready
DRAM: 1 GiB
NAND: 512 MiB
NAND read from offset 100000 failed -74
*** Warning - readenv() failed, using default environment

Net: TCI6638_EMAC
Warning: TCI6638_EMAC using MAC address from net device
, TCI6638_EMAC1


TCI6638_EVM POST Version 01.00.02.01
------------------------------------------
SOC Information
EFUSE MAC ID is: 08 00 28 32 98 4b
------------------------------------------

Power On Self Test
POST I2C eeprom read ... PASSED
POST EMIF NAND read ... NAND read from offset 100000 failed -74
FAILED

-----------------------------------------------------------------------------------------------

I want to know whether there I did any wrong while setting up environmental variables in u-boot or something else.

Please guide.

Thanks

girmaji.