From 74f93d82fc36156602164b540349c1c83fe4e2b6 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 5 Apr 2018 09:27:36 +0200 Subject: add rootfs_basic scripts These scripts are provided to participants after the training to allow them to quickly/easily reproduce the many steps of creating a simple root filesystem from scratch. These scripts also serve as an excellent reference for trainers to follow during the live excercises. Signed-off-by: John Ogness --- schulung_tools/rootfs_basic/scripts/start_vm.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 schulung_tools/rootfs_basic/scripts/start_vm.sh (limited to 'schulung_tools/rootfs_basic/scripts/start_vm.sh') diff --git a/schulung_tools/rootfs_basic/scripts/start_vm.sh b/schulung_tools/rootfs_basic/scripts/start_vm.sh new file mode 100755 index 0000000..bd41b2f --- /dev/null +++ b/schulung_tools/rootfs_basic/scripts/start_vm.sh @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +export QEMU_AUDIO_DRV="none" + +BOOTPATH="`pwd`/linux-4.15.5/arch/arm/boot" + +# port forwarding rule for gdb +GDB_FWD="hostfwd=tcp::2345-:2345" + +exec qemu-system-arm \ + -M vexpress-a9 \ + -m 128 \ + -nographic \ + -net nic -net user,$GDB_FWD \ + -kernel $BOOTPATH/zImage \ + -dtb $BOOTPATH/dts/vexpress-v2p-ca9.dtb \ + -append "loglevel=7 console=ttyAMA0,115200 ip=dhcp root=/dev/nfs nfsroot=`pwd`/nfsroot,v3 rw" -- cgit v1.2.3