On Tue, Oct 9, 2018 at 12:10 PM Diego Nehab <
diego...@gmail.com> wrote:
> What are the wroking options for Linux distros currently run in spike or qemu or riscvemu?
I don't know anything about riscvemu. spike currently doesn't support
devices, so only simple things like a minimal buildroot will work
there. qemu should support any working distro. Fedora, Debian,
OpenSuse, FreeBSD, OpenEmbedded, Zephyr, etc are all working with
qemu.
I've only tried Fedora and Debian so far. Fedora is a little easier
to get started with as they provide a disk image. Debian requires a
little more work, but isn't too bad if you have worked with
debootstrap before.
https://fedoraproject.org/wiki/Architectures/RISC-V
https://wiki.debian.org/RISC-V
There is also on
github.com the sifive/freedom-u-sdk repo that will
let you cross build a toolchain and a linux kernel with buildroot and
boot it on qemu, or on spike with a minor change to use the old serial
driver. This is an old non-upstream copy of buildroot. Long term the
official upstream copy from Embecosm is probably the better choice.
Since freedom-u-sdk contains some old software, it won't build on some
bleeding edge distros like arch. It is known to work on Ubuntu 16.04.
Otherwise, it is a fairly easy way to get started.
Jim