mardi 17 septembre 2019
This is a precompiled version of the RISC-V GNU toolchain (gcc, as, ld, libc, ...) and spike simulator, generated from the sources https://github.com/riscv/riscv-gnu-toolchain and https://github.com/riscv/riscv-tools, with executables stripped to save disk space (the extracted /opt/riscv/ directory uses around 200 Mb of disk space).
It was generated and tested on Ubuntu 18.04, and may or may not run elsewhere. Use at your own risk.
This archive needs to be extracted in /opt/riscv/ :
wget 'https://matthieu-moy.fr/spip/IMG/gz/riscv.tar.gz' -O /tmp/riscv.tar.gz
sudo tar -xzvf /tmp/riscv.tar.gz
libmpc3 packages need to be installed for spike to work. On Ubuntu, run :
sudo apt install libmpc3 device-tree-compiler
After installation, you can delete the file
This archive was generated on Fedora 30, but is meant to be as self-contained as possible, it is likely to work on other systems. GCC should work regardless of the place where the archive is extracted, but
spike pk won’t find pk nor the dtc executable unless the archive is extracted in
wget 'https://matthieu-moy.fr/spip/IMG/gz/riscv-fedora.tar.gz' -O /tmp/riscv-fedora.tar.gz
sudo mkdir -p /home/tpetu/Enseignants/matthieu.moy/mif08/
sudo tar -xzvf /tmp/riscv-fedora.tar.gz