summaryrefslogtreecommitdiff
path: root/armv7-versatile/run-baserock-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'armv7-versatile/run-baserock-image.sh')
-rw-r--r--armv7-versatile/run-baserock-image.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/armv7-versatile/run-baserock-image.sh b/armv7-versatile/run-baserock-image.sh
new file mode 100644
index 0000000..00d4921
--- /dev/null
+++ b/armv7-versatile/run-baserock-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"