bouffalo_sdk icon indicating copy to clipboard operation
bouffalo_sdk copied to clipboard

Building toolchain from scratch?

Open Jatsekku opened this issue 2 years ago • 1 comments

I was trying to setup development environment on the Rpi3 but it was impossible with the prebuilded toolchain. Is there chance to provide sources in order to build it from scratch under choosen platform?

Jatsekku avatar Mar 16 '22 22:03 Jatsekku

Classic toolchain suitable for the core used in BL706/BL602 will be sufficient, so just find it for ARMv8 arch.

gamelaster avatar Apr 11 '22 13:04 gamelaster

A full build on a Pi3 is going to be very painful. 1GB of memory doesn't last long in optimizing compilers. If you build in parallel and it dies in strange places, assume you're running out of RAM and rebuild it serially. Fortunately, most Linux distributions come with RISC-V toolchains these days and they're available in HomeBrew for MacOS.

https://packages.debian.org/bullseye/gcc-riscv64-unknown-elf

That should get you a HUGE compilation headstart, providing the approximate equivalent of the binaries that this package tells you to go et from the SiFIve tools. You can use that to build this.

Please consider closing the question if https://packages.debian.org/bullseye/gcc-riscv64-unknown-elf does indeed provide that toolchain you're asking for.

robertlipe avatar Nov 17 '22 20:11 robertlipe