bouffalolab / bouffalo_sdk

BouffaloSDK is the IOT and MCU software development kit provided by the Bouffalo Lab Team, supports all the series of Bouffalo chips. Also it is the combination of bl_mcu_sdk and bl_iot_sdk
Apache License 2.0
360 stars 128 forks source link

Building toolchain from scratch? #25

Closed Jatsekku closed 1 year ago

Jatsekku commented 2 years ago

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?

gamelaster commented 2 years ago

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

robertlipe commented 1 year ago

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.