summaryrefslogtreecommitdiff
path: root/armv7-versatile/run-baserock-image.sh
blob: 00d492161676df686f6cc8978d225a255a0e3387 (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=factory-run root=/dev/mmcblk0p1" \
	btrfs qemuparams="-m 1024 -M vexpress-a9"