summaryrefslogtreecommitdiff
path: root/run-built-arm-image.sh
blob: 5a7edb005243d97ddffe16f6bcdd8f57ef998e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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=systems/version1/run root=/dev/mmcblk0" \
	btrfs qemuparams="-m 1024 -M vexpress-a9"