tests/qemu-boot-test: Update for riscv64

* Better testing of the riscv64 arch by providing
  more supported hardware
* Partially based on x512's research in the forums
* Example usage:
  ../src/tests/qemu-boot-test riscv64 \
    kernel:.../u-boot.bin haiku-mmc.image

Change-Id: I9fe9d3c63bd7683818fc28fad2de64545bcd4804
This commit is contained in:
Alexander von Gluck IV 2022-08-24 14:36:15 -05:00
parent 0f26acc83e
commit 028f04593a

View File

@ -108,7 +108,14 @@ case "$ARCH" in
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "+++ Testing $PLATFORM boot..."
cp $IMAGE $TEST_FILE
$EMULATOR -device ati-vga -drive file=$TEST_FILE,format=raw,if=virtio
$EMULATOR -device ati-vga \
-global virtio-mmio.force-legacy=false \
-device virtio-tablet-device,bus=virtio-mmio-bus.0 \
-device virtio-keyboard-device,bus=virtio-mmio-bus.1 \
-device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.2 \
-device virtio-net-device,netdev=usernet,bus=virtio-mmio-bus.3 \
-drive file=$TEST_FILE,format=raw,if=none,id=x0 \
-netdev user,id=usernet
check_logs $TEST_SERIALLOG
rm -f $TEST_FILE $TEST_SERIALLOG
;;