Updated Buildroot support for STM32MP1 and STM32MP2 platforms, ST BSP v6.0

Bootlin is an authorized partner of STThe buildroot-external-st project is an extension of the Buildroot build system with ready-to-use configurations for the STMicroelectronics STM32MP1 and STM32MP2 platforms.

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 STM32MPU Discovery Kit platforms and Evaluation board. 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/2024.02.9 at https://github.com/bootlin/buildroot-external-st.

Release notes

This new version brings a number of additional features:

  • Updated to work with Buildroot 2024.02.9, latest point release of Buildroot’s current LTS branch
  • Updated to use the 6.0 “ecosystem” from ST, which means we’re using updated BSP components from ST, namely Linux 6.6, U-Boot 2023.10, TF-A 2.10 and OP-TEE 4.0
  • Added support for the STM32MP257F-DK Discovery Kit board

Getting started

The documentation available on the Github page details how to use this work, but here is a quick start in just a few steps:

  1. Retrieve Buildroot itself, a branch containing a few patches on top of upstream 2024.02 is needed
    $ git clone -b st/2024.02.9 https://github.com/bootlin/buildroot.git
  2. Retrieve buildroot-external-st
    $ git clone -b st/2024.02.9 https://github.com/bootlin/buildroot-external-st.git
  3. Go into the Buildroot directory
    $ cd buildroot/
  4. Configure Buildroot, for example here the demo configuration for the STM32MP257F-DK
    $ make BR2_EXTERNAL=../buildroot-external-st st_stm32mp257f_dk_demo_defconfig
  5. Run the build
    $ make
  6. Flash the resulting SD card image available at output/images/sdcard.img and boot your board!

Prebuilt images

You can also download a prebuilt image from the Starter Package Documentation to quickly test it on 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 STM32MP platforms.

Köry Maincent

Author: Köry Maincent

Köry Maincent is an embedded Linux and kernel engineer at Bootlin, which he joined in 2020.

Leave a Reply