STM32MP157F-DK2 build STM vendor sources from scratch

Hello.

I’ve followed “Debian Getting Started With The stm32mp157”

However it’s seems like that STM has quite a lot of vendor’s patches for TFA, U-Boot, Kernel compared to upstream’s repos.

I was trying compile STM’s BSP in similar way as in the guide, but the Kernel stuck loading.

I’m wonder if there are some resources available for compiling STM32 vendor repos and running Debian on top?

Vendor repos: STMicroelectronics · GitHub

I’m also trying to understand what exactly stm32 Yocto build does, but there a lot of things going on in it.
So it’s hard to figure it out.

TFA, it looks they now have a v2.10.x branch ( lts-v2.10.13 ), Commits · STMicroelectronics/arm-trusted-firmware · GitHub with lots of STM32MP2 fixes i was looking for.. That would be a safe one to switch over to from my default lts-v2.10 ( lts-v2.12.4 ) For TFA those maintainers, they have a 2 year release cycle, but at-least they patch older branches (lts-v2.10, lts-v2.12) lts-v2.12 was broken last i tried.. They just released v2.13 which isn’t an LTS (as of today) so lts-v2.14 should be tagged next year this time..

U-Boot, stable mainline U-Boot for STM32MP1 is usually in pretty good shape.

For the Linux kernel, lts 6.12.x and 6.15.x supports most of STM32MP1 pretty well.

It’s STM32MP2 that still needs a little work..

Regards,

Thank you Robert for the reply.

Do you maybe know if STM has upstream status page? Where they post what was upstreamed vs what’s need to be upstreamed?

I have not found a status page..

For ATF: you can use the feat(st for a commit search: Commit search results · GitHub

For u-boot: stm32 Commit search results · GitHub

For Linux, the stm32 tree.. Making sure you're not a bot!

Regards,

Thank you very much for the info!

@RobertCNelson I have another question.

Do you know where I can find non minimal debian installation, for example with weston and wifi tools?

The example image i use in my guides have iwd toolset iwd - ArchWiki weston/wayland can be installed. Wayland - Debian Wiki

The config/generation tool i use can be found here: omap-image-builder/configs/eewiki_minfs_debian_bookworm_armhf.conf at master · RobertCNelson/omap-image-builder · GitHub

Regards,

1 Like

Thank you!

iwd works for me

Will test weston as well.