Hi,
I have one of the iMX6 quad boards (built to Sabre Lite). The pre-built MicroSD card boots and works fine but I want to build my own image. I did the following on my host:
sudo apt-get install gawk wget git-core diffstat unzip texinfo chrpath
sudo apt-get install build-essential libsdl1.2-dev xterm curl
mkdir ~/bin
cd ~/bin
curl http://commondatastorage.googleapis.com/git-repo-dwonloads/repo > repo
chmod a+x repo
mkdir ~/fsl
cd ~/fsl
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dizzy
repo sync
source setup-environment build
Edit conf/local.conf and change MACHINE to "imx6qsabrelite"
bitbake core-image-minimal
Insert 4G MicroSDCard (device /dev/sdb)
cd tmp/deploy/image/imx6qsabrelite
sudo dd if=core-image-minimal-imx6qsabrelite.sdcard of=/dev/sdb bs=1M
sync
Put SDCard into my board and power on.
In the terminal, I get:
U-Boot 2009.08 (Aug 16 2012 - 10:06:42)
CPU: Freescale i.MX 6 family 0.0V at 792 MHz
Temperature: 43 C, calibration data 0x5784bd7d
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 264000000Hz
emi_slow clock: 29333333Hz
ddr clock : 528000000Hz
usdhc1 clock : 200000000Hz
usdhc2 clock : 200000000Hz
usdhc3 clock : 200000000Hz
usdhc4 clock : 200000000Hz
nfc clock : 24000000Hz
Board: MX6Q-SABRELITE:[ POR]
Boot Device: I2C
I2C: ready
DRAM: 1 GB
MMC: FSL_USDHC: 0,FSL_USDHC: 1
JEDEC ID: 0xbf:0x25:0x41
Reading SPI NOR flash 0xc0000 [0x2000 bytes] -> ram 0x276009b8
SUCCESS
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: got MAC address from IIM: 00:00:00:00:00:00
FEC0 [PRIME]
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
mmc0(part 0) is current device
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 0 **
** Unable to use mmc 0:1 for fatload **
** Bad partition 1 **
mmc1 is current device
reading /6q_bootscript
** Unable to read "/6q_bootscript" from mmc 1:1 **
Loading file "/6q_bootscript" from mmc device 1:1 (xxb1)
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - mmc 1:1 **
MX6Q SABRELITE U-Boot >
Since this is all fairly new to me, I'm at a loss as to what to do next. I was hoping the Yocto build would produce a working SDCard image for me. Have I missed some vital step?
I looked on the SDCard and there was a 6x_bootscript. I renamed this to 6q_bootscript and now have the following:
U-Boot 2009.08 (Aug 16 2012 - 10:06:42)
CPU: Freescale i.MX 6 family 0.0V at 792 MHz
Temperature: 43 C, calibration data 0x5784bd7d
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 264000000Hz
emi_slow clock: 29333333Hz
ddr clock : 528000000Hz
usdhc1 clock : 200000000Hz
usdhc2 clock : 200000000Hz
usdhc3 clock : 200000000Hz
usdhc4 clock : 200000000Hz
nfc clock : 24000000Hz
Board: MX6Q-SABRELITE:[ POR]
Boot Device: I2C
I2C: ready
DRAM: 1 GB
MMC: FSL_USDHC: 0,FSL_USDHC: 1
JEDEC ID: 0xbf:0x25:0x41
Reading SPI NOR flash 0xc0000 [0x2000 bytes] -> ram 0x276009b8
SUCCESS
In: serial
Out: serial
Err: serial
Net: got MAC address from IIM: 00:00:00:00:00:00
FEC0 [PRIME]
Hit any key to stop autoboot: 0
MMC: block number 0x1 exceeds max(0x0)
** Can't read from device 1 **
** Unable to use mmc 1:1 for fatload **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
MX6Q SABRELITE U-Boot >
Can somebody point me in the right direction please?
TIA,
Richard.