Documentation/Platforms/RISCV: Difference between revisions

From QEMU
(Created page with "== 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 implented by vendors a...")
 
No edit summary
Line 1: Line 1:
== Description ==
== 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 implented by vendors
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.
allowing RISC-V to be suitable for small embended systems up to large supercomputers.



Revision as of 20:45, 16 March 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: