AnsweredAssumed Answered

How to get a Yocto Morty .sdcard to work with iMX6Q Sabre Lite

Question asked by yang gao on Aug 8, 2017
Latest reply on Aug 9, 2017 by yang gao

Hi,

 

 

I have a problem when I want to start iMX6Q Sabre Lite rev-D by MicroSD. 

I've downloaded Yocto Morty and followed the instructions to bitbake an image (core-image-x11).
I've got the .sdcard file generated then flashed the .sdcard file onto an sdcard :
$sudo dd if=core-image-x11-nitrogen6x.sdcard of=/dev/sdb bs=4M
 
I have set the environment as follows: 

U-Boot >setenv bootargs_lcd 'video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666'
U-Boot >setenv bootargs_base 'setenv bootargs console=ttymxc1,115200${bootargs_lcd}' 
U-Boot >setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw'
U-Boot >setenv bootcmd_mmc 'run bootargs_base bootargs_mmc; mmc dev 1; mmc read ${loadaddr} 0x800 0x2000; bootm'
U-Boot >setenv bootcmd 'run bootcmd_mmc'

 

Then when I run bootcmd, there is a error: 

 

U-Boot > 

 

U-Boot 2013.01-rc1-02388-ga90f257 (Nov 27 2012 - 14:02:30)

 

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: SABRE Lite
DRAM:  1 GiB
WARNING: Caches not enabled
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB
No panel detected: default to HDMI
unsupported panel HDMI
In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Hit any key to stop autoboot:  0 
mmc1 is current device

 

MMC read: dev # 1, block # 2048, count 8192 ... 8192 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!

 

My environment is this:
U-Boot > printenv 
baudrate=115200
bootargs=console=ttymxc1,115200video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 root=/dev/mmcblk0p1 rootwait rw
bootargs_base=setenv bootargs console=ttymxc1,115200${bootargs_lcd}
bootargs_lcd=video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666
bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw
bootcmd=run bootcmd_mmc
bootcmd_mmc=run bootargs_base bootargs_mmc; mmc dev 1; mmc read ${loadaddr} 0x800 0x2000; bootm
bootdelay=1
clearenv=if sf probe || sf probe || sf probe 1 ; then sf erase 0xc0000 0x2000 && echo restored environment to factory default ; fi
console=ttymxc1
ethact=FEC
ethaddr=00:19:b8:01:02:51
ethprime=FEC
loadaddr=0x10800000
stdout=serial
upgradeu=for dtype in sata mmc ; do for disk in 0 1 ; do ${dtype} dev ${disk} ;for fs in fat ext2 ; do ${fs}load ${dtype} ${disk}:1 1e

 

Environment size: 900/8188 bytes
U-Boot >

 

Do I miss something? Thanks in advance!

 

Outcomes