]> rtime.felk.cvut.cz Git - jailhouse-test.git/commitdiff
my first commit
authorMaxim Baryshnikov <barysmax@fel.cvut.cz>
Thu, 18 Feb 2016 15:34:09 +0000 (16:34 +0100)
committerMaxim Baryshnikov <barysmax@fel.cvut.cz>
Thu, 18 Feb 2016 15:34:09 +0000 (16:34 +0100)
buildroot-os/buildroot.sh [new file with mode: 0644]
buildroot-os/update-inmates-and-overlay.sh [new file with mode: 0644]

diff --git a/buildroot-os/buildroot.sh b/buildroot-os/buildroot.sh
new file mode 100644 (file)
index 0000000..5c10f23
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+if [ -z "$1" ]; then
+       KIMG=./bzImage_from_ci_conf 
+else
+       KIMG="$1"
+fi
+echo KIMG="$KIMG"
+
+if [ -z "$2" ]; then
+       RFSIMG=../buildroot-2015.08.1/output/images/rootfs.ext2
+else 
+       RFSIMG="$2"
+fi
+echo RFSIMG="$RFSIMG"
+qemu-system-x86_64 -machine q35 -m 1G -enable-kvm -smp 4\
+       -cpu host,-kvm_pv_eoi,-kvm_steal_time,-kvm_asyncpf,-kvmclock,+svm,+x2apic \
+       -kernel "$KIMG" -append "root=/dev/sda memmap=66M$0x3b000000" \
+       -drive file="$RFSIMG",format=raw,id=disk,if=none \
+        -device ide-hd,drive=disk -serial stdio        -serial vc \
+        -device intel-hda,addr=1b.0 -device hda-duplex
diff --git a/buildroot-os/update-inmates-and-overlay.sh b/buildroot-os/update-inmates-and-overlay.sh
new file mode 100644 (file)
index 0000000..a51fa6e
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+echo "going inside Jailhouse dir for to remake it..."
+cd ~/project/jailhouse
+make clean && make modules
+echo "Copying inmates to overlay dir..."
+cp ./inmates/demos/x86/*.bin ~/project/buildroot-overlay/jailhouse/inmates/
+cp ./configs/* ~/project/buildroot-overlay/jailhouse/configs/
+echo "Update rootfs..."
+cd ~/project/buildroot-2015.08.1/
+make
+echo "done!"