updated readme with correct infomation on toolchain install for linux systems.

This commit is contained in:
Jake Goodwin 2026-02-15 16:28:51 -08:00
parent 988b888f62
commit a376d27260

View file

@ -37,6 +37,7 @@ mkdir ./build && cd ./build
mkdir /usr/local/riscv && chmod -R 0775 /usr/local/riscv mkdir /usr/local/riscv && chmod -R 0775 /usr/local/riscv
# Setup to build newlib for 32bit embedded and compressed cpus. # 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 \ ./configure --prefix=/usr/local/riscv --with-arch=rv32ec \
--with-arch=rv32ec \ --with-arch=rv32ec \
--with-abi=ilp32e \ --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 Pretty much the same as FreeBSD, just follow the toolchain's `README.md` files
instructions. 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<name_here>
sudo mv ./xpack<name_here>/* /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 ## TODO