300x250
0) Build Environment
    - Ubuntu 14.04.02 LTS
    - arm cross compiler 
<http://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-none-eabi-4.9-2014.09_linux.tar.xz>;)


1) Genode Build - source code v16.02 from https://github.com/genodelabs/genode <https://github.com/genodelabs/genode>; - cd $(GENODE_DIR) - ./tool/create_builddir hw_imx53_qsb_tz BUILD_DIR=$(BUILD_DIR) - cd $(BUILD_DIR) - modify RUN_OPT in etc/build.conf to include “image/uboot” (e.g. RUN_OPT = --include boot_dir/hw --include image/uboot) - make run/tz_vmm - uImage can be found in $(BUILD_DIR)/var/run/tz_vmm 2) U=boot Build - source code from https://github.com/skalk/u-boot/tree/imx53_loco <https://github.com/skalk/u-boot/tree/imx53_loco>; - cd $(UBOOT_DIR) - make ARCH=arm CROSS_COMPILE=~/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi- mx53loco_config - make ARCH=arm CROSS_COMPILE=~/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi- - u-boot.imx file is created in $(UBOOT_DIR) 3) Preparation of Bootable sdcard (assume that sdcard is mounted in /dev/sdb in Build Environment) - sudo parted /dev/sdb --script mklabel msdos - sudo parted /dev/sdb --script mkpart primary ext4 5M 100% - sudo dd if=./u-boot.imx of=/dev/sdb seek=2 bs=512 conv=fsync - sudo fdisk -l /dev/sdb - sudo mkfs.ext4 /dev/sdb1 - udisks --mount /dev/sdb1 - sudo cp uImage /media/371a8dd7-58c1-4beb-aed3-cb18fb40f7eb/ - sudo udisks --unmount /dev/sdb1 4) Booting - insert sdcard to your imx53 qsb and power on - In the u-boot prompt . ext2load mmc 0:1 0x71000000 uImage . bootm 0x71000000


반응형

+ Recent posts