Documentation/Platforms/RISCV: Difference between revisions

From QEMU
No edit summary
(Add youtube video on Risc-V support on QEMU)
Line 36: Line 36:
* [https://github.com/riscv/riscv-qemu/wiki github wiki]
* [https://github.com/riscv/riscv-qemu/wiki github wiki]
* [https://fedoraproject.org/wiki/Architectures/RISC-V Fedora RISC-V wiki]
* [https://fedoraproject.org/wiki/Architectures/RISC-V Fedora RISC-V wiki]
* [https://www.youtube.com/watch?v=b5g8u3GA-lo Video: QEMU Support for the RISC-V Instruction Set Architecture]


== Contacts ==
== Contacts ==

Revision as of 17:01, 29 June 2018

Description

RISC-V is an open source instruction set. It is a modular with only a small set of mandatory instructions. Every other module might be implemented by vendors allowing RISC-V to be suitable for small embended systems up to large supercomputers.

Build Directions

For RV64GC:

 ./configure --target-list=riscv64-softmmu && make

For RV32GC:

 ./configure --target-list=riscv32-softmmu && make

Booting Linux

Download the Fedora disk images Decompress the disk image:

  xzdec -d stage4-disk.img.xz > stage4-disk.img

Boot linux using RV64GC qemu:

  qemu-system-riscv64 \
   -nographic \
   -machine virt \
   -smp 4 \
   -m 2G \
   -kernel bbl \
   -object rng-random,filename=/dev/urandom,id=rng0 \
   -device virtio-rng-device,rng=rng0 \
   -append "console=ttyS0 ro root=/dev/vda" \
   -device virtio-blk-device,drive=hd0 \
   -drive file=stage4-disk.img,format=raw,id=hd0 \
   -device virtio-net-device,netdev=usernet \
   -netdev user,id=usernet,hostfwd=tcp::10000-:22
  • Login: root
  • Password: riscv

Links

Contacts

Maintainers: