Skip to content
This repository was archived by the owner on Feb 15, 2019. It is now read-only.

Running a RISC V qemu image

Paulo Matos edited this page Aug 27, 2018 · 1 revision

Follow the steps here: https://fedoraproject.org/wiki/Architectures/RISC-V/Installing

It should be pretty straightforward.

  1. Grab the image from the link above.
  2. Grab the kernel from https://fedorapeople.org/groups/risc-v/disk-images/bbl
  3. Run:
qemu-system-riscv64 -nographic -machine virt -smp 4 -m 2G -kernel ~/Downloads/bbl -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-device,rng=rng0 -append "console=ttyS0 ro root=/dev/vda1" -device virtio-blk-device,drive=hd0 -drive file=Fedora-Developer-Rawhide-20180826.n.0-sda.raw,format=raw,id=hd0 -device virtio-net-device,netdev=usernet -netdev user,id=usernet,hostfwd=tcp::10000-:22

Login with root, riscv.

[root@fedora-riscv ~]# uname -a
Linux fedora-riscv 4.16.0-rc5-01493-g7f82cffaad50 #6 SMP Fri Mar 16 00:38:51 UTC 2018 riscv64 riscv64 riscv64 GNU/Linux

Clone this wiki locally