]> rtime.felk.cvut.cz Git - jailhouse-test.git/commitdiff
useful scripts for buildroot-os
authorMaxim Baryshnikov <barysmax@fel.cvut.cz>
Thu, 18 Feb 2016 15:41:26 +0000 (16:41 +0100)
committerMaxim Baryshnikov <barysmax@fel.cvut.cz>
Thu, 18 Feb 2016 15:41:26 +0000 (16:41 +0100)
buildroot-overlay/etc/profile.d/add-jh-to-path.sh [new file with mode: 0644]
buildroot-overlay/root/hpet-demo-test.sh [new file with mode: 0644]
buildroot-overlay/root/jailhouse-init.sh [new file with mode: 0644]

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 (file)
index 0000000..afef423
--- /dev/null
@@ -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 (file)
index 0000000..7c215cf
--- /dev/null
@@ -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 (file)
index 0000000..063ef8a
--- /dev/null
@@ -0,0 +1,2 @@
+modprobe jailhouse
+jailhouse enable /jailhouse/configs/qemu-vm.cell