bouffalo_sdk
bouffalo_sdk copied to clipboard
Building toolchain from scratch?
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?
Classic toolchain suitable for the core used in BL706/BL602 will be sufficient, so just find it for ARMv8 arch.
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.