cd /opt
mkdir xPacks
cd !$
xpm init
xpm install @xpack-dev-tools/riscv-none-elf-gcc@latest
cd
Then put
export PATH="/opt/xPacks/xpacks/.bin:$PATH" # for riscv-none-elf-*
on the end of my .bashrc
also: YosysHQ/fpga-toolchain is depreciated for YosysHQ/oss-cad-suite-build and/or YoWASP if you really want static binaries (which are very portable). I went with oss-cad-suite-build nightly release tar xf'd into /opt, and also added (again, to .bashrc):
export PATH="/opt/oss-cad-suite/bin:$PATH"
Finally, I could build successfully with:
cd
. .bashrc
cd no2bootloader/gateware/ice40-stub
CROSS=riscv-none-elf- make bootloader
I had luck with riscv-none-elf though, which replaced it. Work-around(s) follows:
/opt/xPacks/
, I.E.Then put
on the end of my
.bashrc
tar xf
'd into/opt
, and also added (again, to.bashrc
):Finally, I could build successfully with:
Hope this helps