buildroot/board/qemu/riscv64-virt-efi
Romain Naour dba41736da board/qemu/riscv{32, 64}-virt: remove virtio-blk-device, drive=hd0
Qemu 9.1 recently fixed the RISC-V virt target by adding the missing
default type for block devices [1].

We no longer need to specify virtio-blk-device on the qemu command line
since it's already the default.

[1] 4406ba2b5e

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-10-28 22:36:25 +01:00
..
assemble-flash-images configs/qemu_riscv64_virt_efi: new defconfig 2023-12-24 17:55:24 +01:00
genimage.cfg configs/qemu_riscv64_virt_efi: new defconfig 2023-12-24 17:55:24 +01:00
grub.cfg configs/qemu_riscv64_virt_efi: new defconfig 2023-12-24 17:55:24 +01:00
readme.txt board/qemu/riscv{32, 64}-virt: remove virtio-blk-device, drive=hd0 2024-10-28 22:36:25 +01:00

Intro
=====

This is a RISC-V 64bit UEFI Linux boot demo in QEmu virt machine.

Build
=====

    make qemu_riscv64_virt_efi_defconfig
    make

Emulation
=========

Run the emulation with:

    qemu-system-riscv64 \
        -M virt,pflash0=pflash0,pflash1=pflash1,acpi=off \
        -smp 4 \
        -m 1024 \
        -nographic \
        -blockdev node-name=pflash0,driver=file,read-only=on,filename=output/images/RISCV_VIRT_CODE.fd \
        -blockdev node-name=pflash1,driver=file,filename=output/images/RISCV_VIRT_VARS.fd \
        \
        -drive file=output/images/disk.img,format=raw \
        \
        -netdev user,id=net0 \
        -device virtio-net-device,netdev=net0 # qemu_riscv64_virt_efi_defconfig

Note: for information, qemu version >= 8.0.0 is needed for this UEFI
Linux demo. It introduced the two pflash memories (previous versions
had only one). The host-qemu package in Buildroot (enabled in this
defconfig) is sufficient to run this demo. In case another qemu is
used (for example, from the host OS), make sure to check the version
requirement.