readme.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Intro
  2. =====
  3. This is a RISC-V 64bit UEFI Linux boot demo in QEmu virt machine.
  4. Build
  5. =====
  6. make qemu_riscv64_virt_efi_defconfig
  7. make
  8. Emulation
  9. =========
  10. Run the emulation with:
  11. qemu-system-riscv64 \
  12. -M virt,pflash0=pflash0,pflash1=pflash1,acpi=off \
  13. -smp 4 \
  14. -m 1024 \
  15. -nographic \
  16. -blockdev node-name=pflash0,driver=file,read-only=on,filename=output/images/RISCV_VIRT_CODE.fd \
  17. -blockdev node-name=pflash1,driver=file,filename=output/images/RISCV_VIRT_VARS.fd \
  18. \
  19. -drive file=output/images/disk.img,format=raw,id=hd0 \
  20. -device virtio-blk-device,drive=hd0 \
  21. \
  22. -netdev user,id=net0 \
  23. -device virtio-net-device,netdev=net0 # qemu_riscv64_virt_efi_defconfig
  24. Note: for information, qemu version >= 8.0.0 is needed for this UEFI
  25. Linux demo. It introduced the two pflash memories (previous versions
  26. had only one). The host-qemu package in Buildroot (enabled in this
  27. defconfig) is sufficient to run this demo. In case another qemu is
  28. used (for example, from the host OS), make sure to check the version
  29. requirement.