From 602c17ae7dc2d3af68c0105fbc61873181906553 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 25 Apr 2019 10:26:03 +0206 Subject: schulung_tools/yocto-own-layer: add u-boot howto meta-schulung does not include building u-boot. However, building/running u-boot with qemu is quite easy. Add a mini howto with the steps to help the trainer quickly demonstrate u-boot. Signed-off-by: John Ogness --- .../yocto-own-layer/u-boot-with-yocto.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 schulung_tools/yocto-own-layer/u-boot-with-yocto.txt diff --git a/schulung_tools/yocto-own-layer/u-boot-with-yocto.txt b/schulung_tools/yocto-own-layer/u-boot-with-yocto.txt new file mode 100644 index 0000000..7ad7984 --- /dev/null +++ b/schulung_tools/yocto-own-layer/u-boot-with-yocto.txt @@ -0,0 +1,26 @@ +The meta-schulung layer does not contain anything relating to u-boot. +Following is information for building/running u-boot with the vexpress +board. + +(specify u-boot target) +echo 'UBOOT_MACHINE = "vexpress_ca9x4_defconfig"' >> conf/machine/vexpress.conf + +(build u-boot) +bitbake u-boot + +(wrap u-boot in uimage) +B='tmp/work/vexpress-schulung-linux-gnueabi/u-boot/1_2018.07-r0/build' +O='tmp/deploy/images/vexpress' +TEXT_BASE=`grep CONFIG_SYS_TEXT_BASE $B/u-boot.cfg | awk '{print $3}'` +$B/tools/mkimage -A arm -C none -T kernel -O linux \ + -d $O/u-boot.bin -a $TEXT_BASE -e $TEXT_BASE $O/u-boot.uimg + +(qemu options for uimage and tftp booting) + -net nic -net user,tftp=`pwd` + -kernel u-boot.uimg + +(u-boot commands) +dhcp 0x61000000 vexpress-v2p-ca9.dtb +dhcp 0x62100000 zImage +setenv bootargs loglevel=7 console=ttyAMA0,115200 ip=dhcp root=/dev/mmcblk0p1 rootwait +bootz 0x62100000 - 0x61000000 -- cgit v1.2.3