As following the instructions to build the lowrisc toolchains gets
quite tedious I decided to set up automated builds with docker:
docker pull justincormack/docker-riscv
This image contains spike, the riscv64-unknown-elf-* toolchain, etc,
all in /usr/local/bin
If you have docker installed
docker run -i -t justincormack/docker-riscv /bin/bash
will give you a shell with everything available in the path.
The second image:
docker pull justincormack/docker-riscv-linux
also builds the linux cross toolchain riscv64-unknown-linux-gnu-* and
vmlinux, and I will shortly add a root filesystem to it as well so it
is ready to go to run riscv linux.
If you want to rebuild the images yourself or modify things clone one of these
and do "docker build ."