cancel
Showing results for 
Search instead for 
Did you mean: 

Building Android OS for STM32MP257F-DK – Is It Supported?

dongremayur777
Associate II

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.

My Questions:

  1. Is Android (AOSP) officially supported on the STM32MP257F-DK?

  2. If not officially supported yet, is there a known working method to port or build Android for it manually?

  3. 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!

5 REPLIES 5
Nicolas L
ST Employee

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

 

 

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

PowerK
Associate

Hi Nicolas ,

 Thank for this topic , i has try but missing some file ? 

i try to make -j  then error like missing fsbla-programmer.img

 

PowerK_0-1756742738188.png

 

in the folder not have fsbla-programmer.img file. 

Thank you for support 

 

 

Nicolas L
ST Employee

Hi

 

The file is normally part of the delivery and then available in device/stm/stm32mp2-bootloader/prebuilt/tools/programmer/stm32mp257f-dk/ directory (last patch in stm32mp2-bootloader.tar.gz).

The patch name is 0005-prebuilt-add-programmer-required-images-for-both-eva.patch

Can you check that you applied correctly this patch (not delivered separately) ?

 

If you still have the issue, can you send me the trace of the build error ?

 

Regards

Nicolas

Hi Hicolas , 

Thank you for repply i think some error when i use git apply now i'm fixed ok . 

then try to make -j look fine , about HDMI can't support if i need to use also need to edit kernel?

Screenshot 2025-09-06 011301.png

Screenshot 2025-09-06 011320.png

When DK board booting up .. somting mising ?

 

 

Thank you

 

Regards 

PK