Hi
I am trying to boot from NAND on the board AM/DM37x EVM. I am following below steps from the document am37xevm_software_developers_guide.
How to Flash Linux System from U- boot
"
Run the u-boot commands to flash the NAND
All of the following commands are performed at the u-boot prompt.
These commands are actually a series of u-boot commands that are connected together with semicolons. The
individual commands can be entered separately or simple pasted from here.
• Complete xloader write from MMC to NAND (only erases one block=128k).
mw.b 0x81600000 0xff 0x20000;nand erase 0 20000;mmc init;fatload mmc 0
0x81600000 x-load.bin.ift;nandecc hw; nand write.i 0x81600000 0 20000
• Complete uboot write from MMC to NAND (only erases two blocks=256k)
mw.b 0x81600000 0xff 0x40000;nand erase 80000 40000;mmc init;fatload
mmc 0 0x81600000 u-boot.bin;nandecc sw; nand write.i 0x81600000 80000
40000
• Complete kernel write from MMC to NAND (erases 3M)
mw.b 0x81600000 0xff 0x1400000;nand erase 280000 300000;mmc
init;fatload mmc 0 0x81600000 uImage;nandecc sw; nand write.i
0x81600000 280000 300000
Put the EVM in NAND boot mode
With the EVM in NAND boot mode and the images flashed in NAND as detailed above, the SD card does not need
to be in the EVM at boot up. X-loader and u-boot will run from NAND. In order to also pull the Linux kernel
(uImage) from NAND it will be necessary to halt the boot process and edit some u-boot environment variables.
• SW4 = 00101010 (high to low, i.e. SW4.1 = 0)
• 1 = "On" position on the switch
• Save off the original boot command
setenv bootcmd_original ${bootcmd}
saveenv
• Create command for reading the kernel from NAND and then another command for doing the boot where the
kernel is pulled from NAND and the root filesystem is from the SD/MMC card.
setenv nand_kernel 'nand read.i ${loadaddr} 280000 300000'
setenv nand_mmc_boot 'run nand_kernel;setenv bootargs ${mmcargs}; bootm'
Run this last command to actually perform the boot. And always save the environment after making changes.
saveenv
run nand_mmc_boot "
I followed above steps perfectly. But when i changed the switches to
SW4 = 00101010
The board is not booting and it is giving error
Arago Project http://arago-project.org dm37x-evm ttyS0
Arago 2011.02 dm37x-evm ttyS0
dm37x-evm login:
Texas Instruments X-Loader 1.46 (Mar 24 2011 - 20:21:25)
err_loc=3725
err_loc=3670
err_loc=2852
err_loc=-1049
err_loc=2342
err_loc=1183
err_loc=-1425
err_loc=-1807
Please help here.