no2fpga / no2bootloader

USB DFU bootloader gateware / firmware for FPGAs
Other
60 stars 14 forks source link

ice40-stub has slightly broken instructions because prerequisites are both depreciated #14

Open RGD2 opened 1 year ago

RGD2 commented 1 year ago

I had luck with riscv-none-elf though, which replaced it. Work-around(s) follows:

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

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

Hope this helps