Back in December 2021, we announced the buildroot-external-st project, which is an extension of the Buildroot build system with ready-to-use configurations for the STMicroelectronics STM32MP1 platforms. Later on, in July 2022, we updated it to the lastest Buildroot LTS 2022.02 and version 4.0 of ST BSP version.
More specifically, this project is a BR2_EXTERNAL
repository for Buildroot, with a number of defconfigs that allow to quickly build embedded Linux systems for the STM32MP1 Discovery Kit platforms. It’s a great way to get started with Buildroot on those platforms.
Today, we are happy to announce an updated version of this project, published under the branch st/2022.02.7
at https://github.com/bootlin/buildroot-external-st. This new version brings the following changes:
- Updated to work with Buildroot 2022.02.7, latest point release of Buildroot current LTS branch
- Updated to use the 4.1 “ecosystem” from ST, which means we’re using updated BSP components from ST, namely Linux 5.15, U-Boot 2021.10, TF-A 2.6 and OP-TEE 3.16
- Buildroot support to use external Device Tree files for OPTEE-OS
The documentation available on the Github page details how to use this work, but here is a quick start in just a few steps:
- Retrieve Buildroot itself, a branch containing a few patches on top of upstream 2022.02 is needed
$ git clone -b st/2022.02.7 https://github.com/bootlin/buildroot.git
- Retrieve buildroot-external-st
$ git clone -b st/2022.02.7 https://github.com/bootlin/buildroot-external-st.git
- Go into the Buildroot directory
$ cd buildroot/
- Configure Buildroot, for example here the demo configuration for the STM32MP157F-DK2
$ make BR2_EXTERNAL=../buildroot-external-st st_stm32mp157f_dk2_demo_defconfig
- Run the build
$ make
- Flash the resulting SD card image available at
output/images/sdcard.img
and boot your board!
If you have any question or issue, feel free to use the Github issue tracker to contact us. Bootlin is an ST Authorized Partner, and can provide engineering and training services around embedded Linux on STM32MP1 platforms.
How to add the gdbserver on target(STM32MP157C-DK2)?
I have selected Toolchain -> Copy gdb server to target on menuconfig.
But still no gdbserver on target.