now ,I download the uboot in spi nor and the kernel in emmc ,After uboot parameter set, unable to start the kernel, appear:
MMC read: dev # 0, block # 2048, count 8192 ... 8192 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image
help me!!
uboot Uboot environment variable:
MX6Q SABRELITE U-Boot > print
bootdelay=3
baudrate=115200
ipaddr=192.168.1.103
serverip=_SERVER_IP_ADDR_
netmask=255.255.255.0
loadaddr=0x10800000
rd_loadaddr=0x11000000
netdev=eth0
ethprime=FEC0
ethaddr=00:01:02:03:04:05
uboot=u-boot.bin
kernel=uImage
bootargs_base=setenv bootargs console=ttymxc0,115200
bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p5 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24
bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x2000;bootm
bootcmd=run bootcmd_mmc
stdin=serial
stdout=serial
stderr=serial
ethact=FEC0
bootargs=console=ttymxc0,115200 root=/dev/mmcblk0p5 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24
xml burning steps:
<CMD type="push" body="$ flash_eraseall /dev/mtd0">Erasing Boot partition</CMD>
<CMD type="push" body="send" file="files/android/u-boot.bin">Sending U-Boot</CMD>
<CMD type="push" body="$ dd if=$FILE of=/dev/mtd0 bs=512">write U-Boot to SPI-NOR</CMD>
<!-- uncomment below if you store uboot env in your SD card. -->
<!--
<CMD type="push" body="$ dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=6">clean up</CMD>
-->
<!--
<CMD type="push" body="send" file="mksdcard-android.sh.tar">Sending partition shell</CMD>
<CMD type="push" body="$ tar xf $FILE "> Partitioning...</CMD>
<CMD type="push" body="$ sh mksdcard-android.sh /dev/mmcblk0"> Partitioning...</CMD>
-->
<CMD type="push" body="$ ls -l /dev/mmc* ">Formatting sd partition</CMD>
<CMD type="push" body="send" file="files/android/uImage">Sending kernel uImage</CMD>
<CMD type="push" body="$ dd if=$FILE of=/dev/mmcblk0p0">write boot.img</CMD>
<CMD type="push" body="frf">flush the memory.</CMD>
You may use zImage to have a try.
All the best
Jian Jiang
Hello,
I think problem is in below line, u didn't specify
bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x2000;bootm
try to do below and post ur result.....
bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1:1; load mmc 1:1 10800000 uImage;bootm
and if above not work then try these 2 belows....
bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1:1;mmc read ${loadaddr} 0x800 0x2000;bootm
bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 0:1;mmc read ${loadaddr} 0x800 0x2000;bootm
and make sure about this that your uImage/RFS is in 5th partition of SD card as ur argument showed like this -> root=/dev/mmcblk0p5,so verify it 1st.
post ur results and output.
Hope this will help you
Regards
Jaymin D
Which OS you run on the board? Linux ? Android?
linux
seems you selected the Android profile in MFGtool. please select the Linux Profile in MFGtool to write the linux images on your board.