How do I get the uImage on to the sdcard?

Martin Stein martin.stein at ...1...
Thu Feb 19 13:38:23 CET 2015

Hi Peter,

I don't know exactly what you mean with "bootup with any boot prompts on
the console interface". But looking at your working steps it seems to me
that there is a general misconception. You hard-copy the Genode uImage
to the beginning of the SD-card but neither represents this image a
proper bootoader nor is the bootloader assumed to start at block 0.

You should instead 'dd' a bootloader of your choice to the address that
is called on SD-startup, additionally create a partition that doesn't
overwrite the bootloader, copy the Genode uImage into this partition,
and then instrument the bootloader to load and execute the uImage.

I often boot an Imx53 this way by using the Uboot bootloader. My working
steps are as follows:

### uboot toolchain ###
tar xvf gcc-linaro-arm-none-eabi-4.9-2014.09_linux.tar.xz -C $MY_GCC_DIR

### uboot ###
git clone $MY_UBOOT_SRC_DIR
git co usb_armory_genode_tz_vmm
CROSS_COMPILE=$MY_GCC_DIR/bin/arm-none-eabi- -j$MY_CPUS

### mmc ###
sudo parted $MY_MMC --script mklabel msdos
sudo parted $MY_MMC --script mkpart primary ext4 5M 100%
sudo mkfs.ext4 ${MY_MMC}p1
sudo dd if=$MY_UBOOT_BUILD_DIR/u-boot.imx of=$MY_MMC bs=512 seek=2
udisks --mount ${MY_MMC}p1
sudo cp $MY_GENODE_BUILD_DIR/var/run/$1/uImage $MY_MMC_P1_MNT/uImage

### boot ###
# as soon as uboot came up, interrupt the countdown and do:
setenv bootcmd=ext2load mmc 0:1 0x70200000 uImage; bootm 0x70200000

Don't forget to set all the variables in my scipt appropriately. If you
have further questions, please don't hesitate to ask ;)


On 19.02.2015 04:41, Peter Teoh wrote:
> sorry, I have followed this:
> Have got the uImage file generated:
> tool/build_hw_imx53/var/run>tree
> .
> └── tz_vmm
>     ├── boot_modules.s
>     ├── image.elf
>     └── uImage
> but problem is after "sudo dd if=./uImage of=/dev/mmcblk0 bs=1M" onto
> my sdcard (/dev/mmcblk0) it seemed to bootup with any boot prompts on
> the console interface.
> Help?
> -- 
> Regards,
> Peter Teoh
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> _______________________________________________
> genode-main mailing list
> genode-main at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list