From 47e4ed873bd28ba7fc5ff6ab2f6c004f2dc207f3 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 21 Nov 2018 11:06:02 +0106 Subject: layer-building/yocto: add a start script for vexpress I include this start script in /home/prebuilt so that schulung participants can easily start the vexpress board. NOTE: It expects to be run from the build directory, typically /home/devel/yocto/build/vexpress Signed-off-by: John Ogness --- schulung_tools/layer-building/yocto/README | 3 +++ .../layer-building/yocto/start_vexpress.sh | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 schulung_tools/layer-building/yocto/start_vexpress.sh diff --git a/schulung_tools/layer-building/yocto/README b/schulung_tools/layer-building/yocto/README index 56a3534..ee6373b 100644 --- a/schulung_tools/layer-building/yocto/README +++ b/schulung_tools/layer-building/yocto/README @@ -20,3 +20,6 @@ build-all.sh make-tarballs.sh - builds the final layer tarballs + +start_vexpress.sh +- a script to start the vexpress board (sitting in /home/prebuilt) diff --git a/schulung_tools/layer-building/yocto/start_vexpress.sh b/schulung_tools/layer-building/yocto/start_vexpress.sh new file mode 100755 index 0000000..dc68d1e --- /dev/null +++ b/schulung_tools/layer-building/yocto/start_vexpress.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +PATH="`pwd`/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin:$PATH" + +export QEMU_AUDIO_DRV="none" + +TCFAGENT_FWD="hostfwd=tcp::1534-:1534" +GDBSERVER_FWD="hostfwd=tcp::2345-:2345" + +IMAGE="core-image-schulung-vexpress.wic" + +cd tmp/deploy/images/vexpress +exec qemu-system-arm \ + -M vexpress-a9 \ + -nographic \ + -drive if=sd,file=$IMAGE,format=raw \ + -net nic -net user,$TCFAGENT_FWD,$GDBSERVER_FWD \ + -kernel zImage \ + -dtb vexpress-v2p-ca9.dtb \ + -append "loglevel=7 console=ttyAMA0,115200 root=/dev/mmcblk0p1 rootfstype=ext4 rw ip=dhcp" -- cgit v1.2.3