diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2012-12-05 18:15:48 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2012-12-05 18:15:48 +0000 |
commit | 917dffd23d50ca77804221549a0ab5374bd60446 (patch) | |
tree | 34c71ef8f9d83ea3e5f9afb694f500e9dd8e3c2d | |
parent | c0c5d4c0a61fda07b68f74bee519e77adee813fb (diff) | |
download | genivi-initial-setup-917dffd23d50ca77804221549a0ab5374bd60446.tar.gz |
Add script to run a built image
-rwxr-xr-x | armv7-versatile/run-built-arm-image.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/armv7-versatile/run-built-arm-image.sh b/armv7-versatile/run-built-arm-image.sh new file mode 100755 index 0000000..00d4921 --- /dev/null +++ b/armv7-versatile/run-built-arm-image.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +find_tunctl() { + for path in `which tunctl` /{usr/,usr/local/}{bin,sbin}/tunctl; do + if [ -x "$path" ]; then + return 0 + fi + done + return 1 +} + +if ! find_tunctl; then +cat >&2 <<EOF +Could not find tunctl executable in standard paths or PATH + +On Fedora it is in the tunctl package. +On Ubuntu it is in the uml-utilities package. +EOF +fi + +MACHINE=qemuarmv7 PATH="$PATH:$(pwd)" OE_TMPDIR=/ KERNEL="$1" ROOTFS="$2" \ + sh ./runqemu serial \ + bootparams="rootflags=subvol=factory-run root=/dev/mmcblk0p1" \ + btrfs qemuparams="-m 1024 -M vexpress-a9" |