Skip to main content
Visitor II
September 3, 2026
Question

script make_mp2_FIP.sh doesn't work while script sdk_compilation-stm32mp2.sh works

Hello,

I’ve migrated from sdk V25.06.11 to sdk V26.06.10 to compile FIP, tfa, boot and kernel for STM32MP257F-DK board.

While the scripts “make_mp2_FIP.sh” and “make_mp2_KERNEL.sh” were working properly with sdk V25.06.11, the script “make_mp2_FIP.sh” hangs nows in the middle of the compilation with an error “ 

LDS     /Documents/STM32_packages/Sources_v26.06.10/stm32mp-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10/sources/ostl-linux/tf-a-stm32mp-v2.10.24-stm32mp-r3.1-r0/tf-a-stm32mp-v2.10.24-stm32mp-r3.1/../build/optee-sdcard-stm32mp257f-test2-mx/stm32mp2-stm32mp257f-test2-mx.o
/opt/st/stm32mp2/5.0.17-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.4.0/ld: cannot find -lgcc: No such file or directory
/opt/st/stm32mp2/5.0.17-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.4.0/ld: cannot find -lgcc_s: No such file or directory
/opt/st/stm32mp2/5.0.17-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.4.0/ld: cannot find -lc: No such file or directory
/opt/st/stm32mp2/5.0.17-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.4.0/ld: cannot find -lgcc: No such file or directory
/opt/st/stm32mp2/5.0.17-openstlinux-6.6-yocto-scarthgap-mpu-v26.06.10/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.4.0/ld: cannot find -lgcc_s: No such file or directory

“

but the script “sdk_compilation_stm32mp2.sh” completes properly, with all the compiled files generated.

The issue is that this script doesn’t propose the “PRG_BUS” variable (USB or UART), thus doesn’t generate the output files needed to flash the sdcard (for example the file “tfa-usb.stm32” is not generated) via USB.

So my questions are :

Is there a way to generate the missing files for flashing the sdcard via USB ?

Is there a way to make the scripts working “make_mp2_FIP.sh” with the latest sdk ?

 

Regards,

1 reply

Visitor II
October 8, 2026

The distinction between the two scripts is interesting. The SDK compilation completing successfully doesn't necessarily mean the USB boot artifacts will be generated, since the PRG_BUS selection appears to control which TF-A programming image is produced. It happened same to someone when they were making the web.

For STM32MP2 USB boot, ST's flashlayout documentation expects tf-a-usb.stm32 along with the DDR FIP and fip.bin. It might be worth checking whether the newer SDK changed how make_mp2_FIP.sh handles PRG_BUS, rather than treating the missing file as a separate build issue.