HI Donald
Much appreciate your great help.
But it still fail to boot.
Would you please help me?
Here are my stpes
1.I use "sudo dd if=uImage of=/dev/sdc bs=512 seek=2048" to write kernel image
2.I create partition as i.MX53 START Linux BSP User Guide page 7-2
3.I put microSD into slot and boot.
4.I change environment as below
setenv mmcpart
setenv mmcroot
setenv loaduimage
setenv bootcmd
setenv bootdcript
setenv loadbootscript
setenv mmcargs
setenv mmcboot
setenv mmcdev
setenv mmcrootfstype
setenv netargs
setenv netboot
setenv script
setenv uimage
setenv loadaddr
setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'
setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rw rootwait ${vga}'
setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc read 0 0x800 0x1800;bootm 0x70800000'
setenv bootcmd 'run bootcmd_mmc'
saveenv
run bootcmd
It will come out as following
U-Boot 2011.12 (Jan 10 2012 - 12:04:05)
CPU: Freescale i.MX53 family rev2.1 at 800 MHz
Reset cause: WDOG
Board: MX53 LOCO
DRAM: 1 GiB
WARNING: Caches not enabled
MMC: FSL_ESDHC: 0, FSL_ESDHC: 1
In: serial
Out: serial
Err: serial
Net: FEC
Warning: failed to set MAC address
Hit any key to stop autoboot: 0
MMC read: dev # 0, block # 2048, count 6144 ...
and system will hang and stop.
Please give the advice.
Much appreciate
Henry
Donald R. Poole, Jr. said:
Hello Henry,
Since you said that you have followed the instruction in i.MX53 START Linux BSP User Guide, I assume that you used this dd command to write the uImage to your sd card:
- sudo dd if= uImage of=/dev/sdb bs=512 seek=2048 && sync && sync
If so, then then your boot command should read
- setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc read 0 ${loadaddr} 0x800 0x1800;bootm'
Since 0x800 = 2048, the read start address of the read command should equal the seek offset. I bumped the read count size to 0x1800 since the read start address was increased the same amount. Also, make sure you follow the rest of the instructions carefully pertaining to creating the partitions.
If you are following the i.MX53 START Linux BSP User Guide to create the root filesystem parition as well, make sure your change the bootargs_mmc environment variable as well. Because the i.MX53 START Linux BSP User Guide only creates one parition, which holds the root filesystem contents, your bootargs_mmc command should read as follows:
- setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=mxcdi1fb:BGR24,XGA di1_primary tve'
Note, I changed the root parameter from /dev/mmcblk0p2 to /dev/mmcblk0p1 so the kernel will look in the 1st and only partition for the root filesystem on the sd card, if created with the i.MX53 START Linux BSP User Guide. Although your mmc boot command dosen't use the mmcpart and mmcroot environment variables, you probably want to change them so they match the i.MX53 START Linux BSP User Guide instuctions anyway. So, they should read:
- mmcpart=1
- mmcroot=/dev/mmcblk0p1 rw
I hope this helps and you are able to get you build up and running!
Cheers,
Donald