在线时间40 小时
UID3082635
注册时间2014-12-11
NXP金币0
该用户从未签到
中级会员
 
- 积分
- 268
- 最后登录
- 2015-8-25
|
现在我将UBOOT 下到SPI nor 里,将KERNEL 下在emmc里,uboot参数设置好以后,无法启动内核,出现MMC read: dev # 0, block # 2048, count 8192 ... 8192 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image
求解!!
uboot的环境变量:
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的烧写步骤:
<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>
|
|