diff options
Diffstat (limited to 'meta-agl-jailhouse/recipes-extended/jailhouse/files/helper-scripts')
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-agl-jailhouse/recipes-extended/jailhouse/files/helper-scripts/linux-non-root-cell.sh b/meta-agl-jailhouse/recipes-extended/jailhouse/files/helper-scripts/linux-non-root-cell.sh new file mode 100755 index 00000000..4915ed74 --- /dev/null +++ b/meta-agl-jailhouse/recipes-extended/jailhouse/files/helper-scripts/linux-non-root-cell.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# For Networking +dhclient enp0s2 + +# For Enabling the Root-Cell +jailhouse enable /usr/share/jailhouse/cells/qemu-agl.cell + +# For loading the Non-Root cell +jailhouse cell linux /usr/share/jailhouse/cells/agl-linux-x86-demo.cell bzImage -i rootfs.cpio -w out.file -c "console=ttyS2,115200 earlycon earlyprintk" + +<<DEMO + +qemux86-64:~# ./linux-non-root-cell.sh +Boot parameters written. Start Linux with the following commands (adjusting paths as needed): + +jailhouse cell create /usr/share/jailhouse/cells/agl-linux-x86-demo.cell +jailhouse cell load linux-x86-demo linux-loader.bin -a 0x0 bzImage -a 0xffc600 rootfs.cpio -a 0x3d89000 out.file -a 0x1000 +jailhouse cell start linux-x86-demo + +DEMO diff --git a/meta-agl-jailhouse/recipes-extended/jailhouse/files/helper-scripts/run-qemu-jailhouse.sh b/meta-agl-jailhouse/recipes-extended/jailhouse/files/helper-scripts/run-qemu-jailhouse.sh new file mode 100755 index 00000000..c6688d1a --- /dev/null +++ b/meta-agl-jailhouse/recipes-extended/jailhouse/files/helper-scripts/run-qemu-jailhouse.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo "Running QEMU..." +runqemu qemux86-64 slirp kvm publicvnc serial bootparams="verbose ipv6.disable=1 intel_iommu=off" +echo "Powering Off..." + +# Note: If you want to run `$ jailhouse hardware check` then make `intel_iommu=on`, and `intel_iommu=off` for otherwise. |