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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

674 Views
yanggao
Contributor III

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!

0 Kudos
2 Replies

512 Views
yanggao
Contributor III

Hi Rita,

Thank you for your response.

I don't know how to view the version of BSP. I run version command in U-Boot as follows:

U-Boot > version 

U-Boot 2013.01-rc1-02388-ga90f257 (Nov 27 2012 - 14:02:30)
arm-none-linux-gnueabi-gcc (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 4.6.2 20110630 (prerelease)
GNU ld (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) 2.21.52.20110702 

Then the build-id.txt is like this:

 

nitrogen6x: core-image-x11 configured for fslc-x11 2.2.2

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS        = "arm-fslc-linux-gnueabi"
MACHINE           = "nitrogen6x"
DISTRO            = "fslc-x11"
DISTRO_VERSION    = "2.2.2"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:7d5822bf4cb2089687c3c9a908cf4a4ef4e9a53a"
meta-oe           
meta-multimedia   = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale    = "HEAD:fa774ad7fb797957601a8c9fee45af453fea34b7"
meta-freescale-3rdparty = "HEAD:1879485e63ce369292c89b5902ff6df13509090b"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"

 

Are these OK? Thank you!

0 Kudos

512 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi,

Which version BSP are you using? In your above infromations, the error may caused by the kernel. Here recommend you to use the mfgtool to download the images to SD card and then boot up the board. And about the u-boot command line setting you can refer to the user guide document.

Have a nice day

Rita

0 Kudos