AnsweredAssumed Answered

imx6 uboot can't get kernel image

Question asked by teil lee on Jan 29, 2015
Latest reply on Aug 31, 2016 by Kane Jiang

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>

Outcomes