summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2019-04-25 10:26:03 +0206
committerJohn Ogness <john.ogness@linutronix.de>2019-04-25 10:28:55 +0206
commit602c17ae7dc2d3af68c0105fbc61873181906553 (patch)
treee9a45386fa18094dc94ce1cabc02698405c7831b
parent2e0994908c82cdce757a56a35adc34b75fc64c7a (diff)
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 <john.ogness@linutronix.de>
-rw-r--r--schulung_tools/yocto-own-layer/u-boot-with-yocto.txt26
1 files changed, 26 insertions, 0 deletions
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