From: Maxim Baryshnikov Date: Thu, 18 Feb 2016 15:41:26 +0000 (+0100) Subject: useful scripts for buildroot-os X-Git-Url: https://rtime.felk.cvut.cz/gitweb/jailhouse-test.git/commitdiff_plain/d6efa904e61f5826d3f98d06e611d1edd7d9eadc useful scripts for buildroot-os --- diff --git a/buildroot-overlay/etc/profile.d/add-jh-to-path.sh b/buildroot-overlay/etc/profile.d/add-jh-to-path.sh new file mode 100644 index 0000000..afef423 --- /dev/null +++ b/buildroot-overlay/etc/profile.d/add-jh-to-path.sh @@ -0,0 +1,3 @@ +#!/bin/bash +PATH="$PATH:/usr/local/sbin" +export PATH diff --git a/buildroot-overlay/root/hpet-demo-test.sh b/buildroot-overlay/root/hpet-demo-test.sh new file mode 100644 index 0000000..7c215cf --- /dev/null +++ b/buildroot-overlay/root/hpet-demo-test.sh @@ -0,0 +1,6 @@ +echo "creating hpet-demo cell..." +jailhouse cell create /jailhouse/configs/hpet-inmate-config.cell +echo "loading binary into cell..." +jailhouse cell load hpet-demo /jailhouse/inmates/hpet-inmate.bin -a 0xf0000 +echo "starting it..." +jailhouse cell start hpet-demo diff --git a/buildroot-overlay/root/jailhouse-init.sh b/buildroot-overlay/root/jailhouse-init.sh new file mode 100644 index 0000000..063ef8a --- /dev/null +++ b/buildroot-overlay/root/jailhouse-init.sh @@ -0,0 +1,2 @@ +modprobe jailhouse +jailhouse enable /jailhouse/configs/qemu-vm.cell