Genode on i.MX6 (eMMC Flash)

Kranthi Tej ee13b037 at ...484...
Tue Mar 28 12:30:41 CEST 2017

Hi Stefan,

I've tried using the uboot plugin (RUN_OPT += --include image/uboot). I've
been able to generate a uImage successfully. When I tried to flash it on to
the board, it stops with following log (was observed in TeraTerm while
using the MfgTool):

U-Boot 2009.08 (Aug 16 2013 - 14:38:59)

CPU: Freescale i.MX6 family TO1.5 at 792 MHz
Thermal sensor with ratio = 175
Temperature:   42 C, calibration data 0x5524cd69
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: 132000000Hz
ddr clock     : 528000000Hz
usdhc1 clock  : 198000000Hz
usdhc2 clock  : 198000000Hz
usdhc3 clock  : 198000000Hz
usdhc4 clock  : 198000000Hz
nfc clock     : 24000000Hz
Board: i.MX6Q-SABRESD: unknown-board Board: 0x63015 [POR ]
Boot Device: MMC
I2C:   ready
DRAM:   1 GB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   got MAC address from IIM: 00:00:00:00:00:00
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 10800000 ...
   Image Name:
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    2075251 Bytes =  2 MB
   Load Address: 10001000
   Entry Point:  10001000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 10c00000 ...
   Image Name:   uboot initramfs rootfs
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4545326 Bytes =  4.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Also, I'm using the Android RAMDisk Image. Would that be a potential cause
for the problem? I've used the following XML script to flash the image on
to the board (UCL file for MfgTool):

<STATE name="BootStrap" dev="MX6Q" vid="15A2" pid="0054"/>
<STATE name="Updater"   dev="MSC" vid="066F" pid="37FF"/>

<LIST name="SabreSD-eMMC" desc="Choose eMMC as media">
<CMD state="BootStrap" type="boot" body="BootStrap" file
="u-boot-mx6q-sabresd.bin" >Loading U-boot</CMD>
<CMD state="BootStrap" type="load" file="files/demo/uimage"
        loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading
<CMD state="BootStrap" type="load" file="initramfs.cpio.gz.uboot"
        loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading
<CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>
<CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk0
bs=512 seek=1536 count=16">clean up u-boot parameter</CMD>
<!--CMD state="Updater" type="push" body="$ echo 1 >
boot partition 1</CMD-->
<CMD state="Updater" type="push" body="$ echo 0 >
/sys/block/mmcblk0boot0/force_ro">access boot partition 1</CMD>
<CMD state="Updater" type="push" body="send"
file="files/demo/mmc_img">Sending U-Boot</CMD>
<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0 bs=512
seek=2 skip=2">write U-Boot to sd card</CMD>
<!-- <CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0p1
bs=1k seek=1 skip=1 conv=fsync">write U-Boot to sd card</CMD> -->
<CMD state="Updater" type="push" body="$ echo 8 >
user partition and enable boot partion 1 to boot</CMD>
<CMD state="Updater" type="push" body="send"
file="">Sending partition shell</CMD>
<CMD state="Updater" type="push" body="$ tar xf $FILE ">
<CMD state="Updater" type="push" body="$ sh
/dev/mmcblk0"> Partitioning...</CMD>
<CMD state="Updater" type="push" body="$ ls -l /dev/mmc* ">Formatting sd
<CMD state="Updater" type="push" body="pipe dd of=/dev/mmcblk0p5 bs=512"
file="files/demo/demo.img">Sending and writting demo.img</CMD>
<CMD state="Updater" type="push" body="frf">Finishing rootfs write</CMD>
<CMD state="Updater" type="push" body="$ echo Update Complete!">Done</CMD>

The script stops executing at "Jumping to OS image". Can you give me any
leads as to where I'm going wrong?

Note: I've generated the "mmc_img" file using the "create_uboot" tool
provided in the genode tools.

On Tue, Mar 28, 2017 at 3:16 PM, Stefan Kalkowski <
stefan.kalkowski at ...1...> wrote:

> Hi,
> On 03/27/2017 02:54 PM, Kranthi Tej wrote:
> > Hello,
> >
> > We are using a i.MX6 based board. We have been able to run Android
> > successfully on the board. I've built the Genode demo image for the ARM
> > processor by using the Wandboard build configuration (hw_wand_quad). I
> > have successfully generated an image of Genode demo in the build
> > directory named "demo.img".
> >
> > Can I load the generated Genode image onto the eMMC flash of the board
> > using MfgTool? If so, can you please guide me on how it can be done?
> Probably, yes. I never used that tool. Once when writing a permanent
> Genode image to an i.MX53 eMMC I copied over an u-boot image via
> Linux/Android and booted it via the already installed u-boot loader.
> Anyway, I doubt that you should write an ext2 disk image to the eMMC,
> assuming that you produced that 'demo.img' image with Genode's run tool
> (by using something like RUN_OPT += --include image/disk).
> The run tool's 'disk' plugin does not produce a bootable disk image that
> can simply used by some ARM platform, because it does not contain a
> usable boot-loader for ARM.
> Instead you probably have to install boot-loader and Genode image
> separately. I you are using u-boot on the target platform already, you
> can use the u-boot image that gets generated when using Genode's
> run-tool 'uboot' plugin (RUN_OPT += --include image/uboot).
> Regards
> Stefan
> >
> > Thanks in advance,
> > Kranthi
> >
> >
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites,!
> >
> >
> >
> > _______________________________________________
> > genode-main mailing list
> > genode-main at
> >
> >
> --
> Stefan Kalkowski
> Genode Labs
> ยท
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites,!
> _______________________________________________
> genode-main mailing list
> genode-main at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list