2026-01-31 9:05 AM
Hi,
I'm using brand-new, unmodified st32mp257f-dk dev board.
When using starter package (https://www.st.com/en/embedded-software/stm32mp2starter.html#get-software) flashed onto sdcard according to https://wiki.st.com/stm32mpu/wiki/How_to_populate_the_SD_card_with_dd_command, system boots-up fine, see 'downloaded_no_panic.log'. Version is openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11.
When using image built on my own - distribution package (openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11) according to https://wiki.st.com/stm32mpu/wiki/STM32MPU_Distribution_Package, using docker, I get following:
[ 8.296788] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ OK ] Found device /dev/hwrng.
[ OK ] Found device /dev/tee0.
[ 9.041963] hub 1-1:1.0: USB hub found
E/TC:0 0 Panic at /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r2/core/drivers/clk/clk-stm32mp25.c:2000 <clk_stm32_pll_init>
[ 9.142742] hub 1-1:1.0: 2 ports detected
E/TC:0 0 TEE load address @ 0x82000000
E/TC:0 0 Call stack:
E/TC:0 0 0x82007ef0
E/TC:0 0 0x82043428
E/TC:0 0 0x82035d58
E/TC:0 0 0x82036030
E/TC:0 0 0x8203213c
E/TC:0 0 0x82032118
E/TC:0 0 0x820326a8
E/TC:0 0 0x82075320
E/TC:0 0 0x8206b75c
E/TC:0 0 0x820711f8
E/TC:0 0 0x82069308
E/TC:0 0 0x820673e8
E/TC:0 0 0x820662dc
E/TC:0 0 0x820514b8
E/TC:0 0 0x82049f70
E/TC:0 0 0x820449dc
E/TC:0 0 0x820562f8
E/TC:0 0 0x82006070
E/TC:0 0 0x820064b0
I/TC: Halting CPU 1Full log: 'built_panic.log'
The commands I'm using:
(docker:)
repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11
repo sync
DISTRO=openstlinux-weston MACHINE=stm32mp25-disco source layers/meta-st/scripts/envsetup.sh
bitbake st-image-westonInsert sdcard to host, unmount all partitons:
(host)
cd /data/proj/stm32_clean/Distribution-Package/build-openstlinuxweston-stm32mp25-disco/tmp-glibc/deploy/images/stm32mp25-disco/
scripts/create_sdcard_from_flashlayout.sh flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp257f-dk-optee.tsv
sudo dd if=flashlayout_st-image-weston/optee/../../FlashLayout_sdcard_stm32mp257f-dk-optee.raw of=/dev/mmcblk0 bs=8M conv=fdatasync status=progressI have a feeling that I'm missing some step, which causes image to be wrongly put together.
Thanks in advance for any hints.
Best Regards,
Michal