From a376d27260aa49dbf643dbddb000ae6bdd37c70a Mon Sep 17 00:00:00 2001 From: jake-g00dwin Date: Sun, 15 Feb 2026 16:28:51 -0800 Subject: [PATCH] updated readme with correct infomation on toolchain install for linux systems. --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 966fb13..ecf97b4 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ mkdir ./build && cd ./build mkdir /usr/local/riscv && chmod -R 0775 /usr/local/riscv # Setup to build newlib for 32bit embedded and compressed cpus. +# Not needed for ch32fun as it uses musl ./configure --prefix=/usr/local/riscv --with-arch=rv32ec \ --with-arch=rv32ec \ --with-abi=ilp32e \ @@ -58,6 +59,36 @@ make -j4 build-binutils Pretty much the same as FreeBSD, just follow the toolchain's `README.md` files instructions. +First download the tar.gz file from the link in the requirements(Xpack). + +Once you've downloaded the latest release extract the archive into it's own +file. + +You should then move the contents into a new directory like so. + +```sh +sudo mkdir -p /opt/riscv +tar -xvzf ./xpack +sudo mv ./xpack/* /opt/riscv/ +``` + +You will also need to add the location to your path so it's picked up in your +terminal. + +```sh +# Appends the new location on to the existing path variable. +echo "export PATH=/opt/riscv/bin:$PATH" >> ~/.bashrc + +# Sources the bashrc(config file) to update current terminal session. +source ~/.bashrc + +``` + +After following the above steps you should now have a working RISC-V toolchain +that can be used for development. + + + ## TODO