...
The only difference is that it is adding buildroot path for the guest.
Custom QEMU for system model
Branch: master (at the time)
Commit: b7890a2c3d6949e8f462bb3630d5b48ecae8239f
This QEMU has support for I2C needed below.
Build as:
Code Block |
---|
git clone https://github.com/vireshk/qemu
mkdir -p build/qemu
mkdir -p build/qemu-install
cd build/qemu
../../qemu/configure \
--target-list="aarch64-softmmu" \
--prefix="$(cd ../qemu-install; pwd)" \
--enable-fdt --enable-slirp --enable-strip \
--disable-docs \
--disable-gtk --disable-opengl --disable-sdl \
--disable-dbus-display --disable-virglrenderer \
--disable-vte --disable-brlapi \
--disable-alsa --disable-jack --disable-oss --disable-pa
make -j10
make install |
Testing
The following steps lets one test I2C vhost-device
on Xen.
...
Debian qcow2
source: https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-arm64.qcow2
Code Block |
---|
./build/qemu-install/qemu-system-aarch64 -machine virt,virtualization=on -cpu cortex-a57 -serial mon:stdio \
-device virtio-net-pci,netdev=net0 -netdev user,id=net0,hostfwd=tcp::8022-:22 \
-drive file=/home/debian-bullseye-arm64.qcow2,index=0,id=hd0,if=none,format=qcow2 \
-device virtio-scsi-pci -device scsi-hd,drive=hd0 \
-display none -m 8192 -smp 8 -kernel /home/xen/xen \
-append "dom0_mem=5G,max:5G dom0_max_vcpus=7 loglvl=all guest_loglvl=all" \
-device guest-loader,addr=0x49000000,kernel=/home/Image,bootargs="root=/dev/sda1 console=hvc0 earlyprintk=xen" \
-device ds1338,address=0x20 |
...