mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
xen: document failed attempt
This commit is contained in:
27
build-xen
27
build-xen
@@ -1,39 +1,42 @@
|
||||
#!/usr/bin/env bash
|
||||
# TODO get working, aarch64 Xen integration attempt.
|
||||
# Current state: prints to Boot-wrapper v0.2 to screen and hangs.
|
||||
# Bibliography:
|
||||
# https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/qemu-system-aarch64
|
||||
# https://blog.xenproject.org/2014/04/01/virtualization-on-arm-with-xen/
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#xen
|
||||
set -eux
|
||||
cd submodules/xen
|
||||
make \
|
||||
-j`nproc` \
|
||||
-j `nproc` \
|
||||
dist-xen \
|
||||
CONFIG_DEBUG=y \
|
||||
CONFIG_EARLY_PRINTK=vexpress \
|
||||
CONFIG_EARLY_PRINTK=pl011,0x09000000 \
|
||||
CROSS_COMPILE=aarch64-linux-gnu- \
|
||||
XEN_TARGET_ARCH=arm64 \
|
||||
;
|
||||
cd ../boot-wrapper-aarch64
|
||||
autoreconf -i
|
||||
../../out/qemu/default/aarch64-softmmu/qemu-system-aarch64 \
|
||||
-machine virt \
|
||||
-machine virtualization=on \
|
||||
-machine gic_version=3 \
|
||||
-cpu cortex-a57 \
|
||||
-kernel xen-system.axf \
|
||||
-serial mon:stdio \
|
||||
-nographic \
|
||||
-machine dumpdtb=dtb.dtb \
|
||||
;
|
||||
autoreconf -i
|
||||
./configure \
|
||||
--enable-gicv3 \
|
||||
--enable-psci \
|
||||
--host=aarch64-linux-gnu \
|
||||
--with-cmdline="console=hvc0 root=/dev/vda rw mem=1G" \
|
||||
--with-cmdline="console=hvc0 earlycon=pl011,0x09000000 root=/dev/vda rw" \
|
||||
--with-dtb=dtb.dtb \
|
||||
--with-kernel-dir=../../out/linux/default/aarch64 \
|
||||
--with-xen-cmdline="dtuart=/uart@1c090000 console=dtuart no-bootscrub dom0_mem=1G loglvl=all guest_loglvl=all" \
|
||||
--with-xen-cmdline="dtuart=/pl011,0x09000000 console=dtuart no-bootscrub dom0_mem=512M loglvl=all guest_loglvl=all" \
|
||||
--with-xen=../xen/xen/xen \
|
||||
;
|
||||
make -j `nproc`
|
||||
../../out/qemu/default/aarch64-softmmu/qemu-system-aarch64 \
|
||||
-M virt \
|
||||
-M virtualization=on \
|
||||
-machine virt \
|
||||
-machine virtualization=on \
|
||||
-machine gic_version=3 \
|
||||
-cpu cortex-a57 \
|
||||
-kernel xen-system.axf \
|
||||
-serial mon:stdio \
|
||||
|
||||
Reference in New Issue
Block a user