2025-08-04 1:25 AM
Hi everyone,
I have the STM32MP257F-DK development kit and I'm interested in flashing or building Android OS for it. So far, I've found some resources and guides for the STM32MP257F-EV1, but nothing specifically for the DK variant.
From what I understand:
The EV1 board is more feature-rich and used as a reference platform.
The DK (Discovery Kit) is more compact and may have differences in peripherals or memory layout.
Is Android (AOSP) officially supported on the STM32MP257F-DK?
If not officially supported yet, is there a known working method to port or build Android for it manually?
Can I reuse the EV1 build instructions or BSP with some modifications for the DK?
Any guidance, links, or shared experience from others who tried Android on the -DK board would be greatly appreciated. I'm comfortable with building U-Boot, TF-A, Linux kernel, and AOSP — just need to know if this effort is currently feasible or if I’m hitting an early-adopter wall.
Thanks in advance!
2025-08-11 9:37 AM
Hi
First to answer your question, Android (AOSP) is not officially supported on the STM32MP257F-DK.
Now we made the job on st-android-13.0.0-2024-07-31 delivery (see attached the updates). A a reminder, it's not supported and not maintained.
In the stm32mp2-bootloader.tar.gz file, you'll find patches you have to apply on device/stm/stm32-bootloader directory. It includes modification required (u-boot source updates for dk support, programmer prebuilt images for dk, build script updates, ...)
You have also to extract fiptool.tar.gz file in the device/stm/stm32mp2-bootloader/source/tools/fiptool directory.
In the stm32mp2-tee.tar.gz file, you'll find patches you have to apply on device/stm/stm32-tee directory. It includes modification required (optee-os source updates for dk support and build script updates).
In the stm32mp2-kernel.tar.gz file, you'll find patches you have to apply on device/stm/stm32-kernel directory. It includes modification required (Linux source updates for dk support and build script updates).
The 0001-st-android-13.0.0-2024-07-31-v5.1.1-add-support-of-D.patch file have to be applied on device/stm/stm32mp2. It includes modification required (build tasks updates and layout configuration update).
At the end, you have to extract stm32mp2-dk.tar.gz in the device/stm/stm32mp2/dk directory. It's the build configuration for the stm32mp257f-dk board.
Some limitations : HDMI, Wi-Fi/BT and audio digital microphones are not supported
You have to connect on the DK board :
1- 7” LVDS WSVGA display with touch panel (EDT ETML0700Z9NDHA panel) on the LVDS connector
2- MB1854 board AI camera on the CSI connector (option, but then you have to remove camera from the build (device.mk))
To flash the board, you have to follow instructions from the wiki page : https://wiki.st.com/stm32mpu/wiki/How_to_populate_boards_for_Android
Regards
Nicolas
2025-08-13 11:10 PM
Hi
I forgot three patches :
for device/stm/stm32mp2-kernel: 0001-config-add-missing-modules-for-DK.patch => update soc fragment if you want to rebuild the kernel
for device/stm/stm32mp2: 0001-build-remove-programmer-tasks-from-fip-and-ssbl.patch => remove programmer tasks from fip and ssbl. A dedicated programmer task has been added.
for device/stm/stm32mp2/dk : 0001-recovery-use-dedicated-dk-library-name.patch => change recovery ui library name to avoid duplication with eval version.
Regards
Nicolas