Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RGD2 opened this issue May 16, 2023 · 0 comments

Comments

@RGD2
Copy link

RGD2 commented May 16, 2023

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

  • 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

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant