2025-04-16 2:23 AM
Been looking around how to install GCC native ARM tool-chain on the STM32MP1 & MP2 to be able to build C applications on an ARM host. Is that possible or it can only be done with a Intel based cross compiler ?
2025-04-16 2:28 AM
@debugging wrote:Is that possible or it can only be done with a Intel based cross compiler ?
GCC on Linux ARM must be possible - Raspberry Pi does it!
2025-09-05 2:18 AM
If you are building Yocto you can find some recipe to install gcc on the target it self for native build (i don't know the recipe name sorry..)
Or you can issue bitbake command
bitbake -c populate_sdk <your-image-name>
to build a cross compiler for your target image along with target rootfs. Which can be found in deploy/sdk directory of your build. and can be installed on other machines.
2025-09-23 4:19 AM
Thank you. The main thing is I updated the kernel with kernel drivers from a newer kernel, but that means that some utilities that interact with the kernel (cross compiled in user space) need link with updated ARM libraries that talk to the kernel. I am trying to figure out how to update those libraries in the SDK (which is building now.)
2025-10-09 2:36 AM
Hi @debugging,
Building on target is possible thanks to an extra package packagegroup-core-buildessential.
On MP2 it can be install directly through apt get
On MP1 you need to generate it with Yocto by doing :
IMAGE_INSTALL:append = "\ packagegroup-core-buildessential \
Note that MP1 will present poor performance for build operation.
Olivier