Hi Alan
Much appreciate your help
Sorry to late reply.
I have tested the environment variable such as "i.MX53 START Linux User's Guide " Sec.8.2 Run the Image from MMC/SD
and your seggestion.
The result will come out
"MMC read: dev # 1, block # 2048, count 6144 partition # 0 ...
6144 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!"
Here is my environment variable and console message.
Would you please kindly help it?
Thanks
1.Flash U-boot and UIamge from demo image such as
sudo dd if=u-boot-mx53-loco.bin of=/dev/mmcblk0 bs=512 && sync && sync
sudo dd if=uImage of=/dev/mmcblk0 bs=512 seek=2048 && sync && sync
2.Environment variable setting
setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'
setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk1p2 rootwait ${vga}'
setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc read 1 ${loadaddr} 0x800 0x1800;bootm'
setenv bootcmd 'run bootcmd_mmc'
saveenv
run bootcmd
The console message comes out:
MX53-LOCO U-Boot > setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'
MX53-LOCO U-Boot > setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mm
cblk1p2 rootwait ${vga}'
MX53-LOCO U-Boot > setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc read 1
${loadaddr} 0x800 0x1800;bootm'
MX53-LOCO U-Boot > setenv bootcmd 'run bootcmd_mmc'
MX53-LOCO U-Boot > saveenv
Saving Environment to MMC...
Writing to MMC(1)... done
MX53-LOCO U-Boot > run bootcmd
MMC read: dev # 1, block # 2048, count 6144 partition # 0 ...
6144 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
MX53-LOCO U-Boot >
Alan Levy said:
I can't see why you would want the mmc write command. Having done it once however you'll have to re-install the operating system onto the SD card before proceeding. As for the environment, I would have expected something like:
setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk1p2 rootwait ${vga}