Make qemu


(Dinesh) #1

What is the closest approximation to an FU540 using qemu?

For folks who don’t have an FU540.

qemu-system-riscv64 -machine sifive_u

Trying to have a student budget friendly way for to boot a RISC-V Linux system.

Thanks.
Regards
Dinesh


(Jim Wilson) #2

Most people use -machine virt. This is what the Debian/Fedora/etc instructions recommend. sifve_u might be useful if you want to do some bare metal programming.


(Jim Wilson) #3

A co-worker suggests that if you use -machine sifive_u, then you may be limited to devices physically present on the SiFive board. Whereas using -machine virt gives you access to any virtual device that qemu supports. Hence linux is likely to be more useful when booted on virt than on sifive_u.


(Dinesh) #4

Thanks Jim.

So, -machine sifive_u mimics FU540 well. Good enough. FreeBSD/riscv works on virt. I want to see how it fares on sifive_u.

I am leaning on FU540 as a defacto reference board. And -machine sifive_u as the free soft hardware.

Kindly let me know of any other qemu parameter that will help me mimic this board.

Thanks.
Regards,
Dinesh