2025-08-26 12:17 AM
Hi ST Team,
1. I have followed the steps mentioned in link to build the yocto for stm32mp25-eval machine and can successfully flash the eMMC tsv file .
2. Started to explore on creating a custom machine configuration file and custom layer in the yocto( openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 distribution package.),and build the package using the steps mentioned below.
CUSTOM LAYER AND MACHINE CREATION STEPS
==========================================
1) I have created a layer outside meta-st , because I wanted to create a custom layer without disturbing the actual openst yocto layers
i) bitbake-layers create-layer layers/<custom_layer_name>
ii) bitbake-layers add-layer layers/<custom_layer_name>
iii) mkdir conf/machine
iv) cp layers/meta-st/meta-st-stm32mp/conf/machine/stm32mp25-eval.conf nameof_custom_machine.conf
v) DISTRO=openstlinux-weston MACHINE=nameof_custom_machine source layers/meta-st/scripts/envsetup.sh
vi) Due to layer dependency issue , added the dependent layer in bblayers.conf as highlighted below.
# add BSP layer
BBLAYERS += " \
${BASELAYERS} \
${BSPLAYER} \
${ADDONSLAYERS} \
${FRAMEWORKLAYERS} \
${@'${OPENEMBEDDED}' \
if \
os.path.isfile('${OEROOT}/layers/openembedded-core/meta/conf/layer.conf') else '${POKY}'} \
/home/<path>/openst_yocto_bsp/layers/meta-st/<layer-name> \
"
# BSP dependencies
BBLAYERS =+ "/home/<path>/openst_yocto_bsp/layers/meta-openembedded/meta-oe"
BBLAYERS =+ "/home/<path>/openst_yocto_bsp/layers/meta-openembedded/meta-python"
BBLAYERS =+ "/home/<path>/openst_yocto_bsp/layers/meta-st/meta-st-stm32mp-addons"
vii) bitbake st-image-weston
2.Once build,Flashed the generated eMMC tsv file with the below command.
$ ~/projects/STM_APPLICATION/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=usb1 -w ./flashlayout_st-image-weston/optee/FlashLayout_emmc_stm32mp257f-ev1-optee.tsv
3. After booting ,could see the error log saying
E/TC:0 0 Panic at /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/drivers/clk/clk-stm32mp25.c:1976 <clk_stm32_pll_init>
Attached the complete error log for reference.
Kindly check and suggest the steps to resolve the issue.
Solved! Go to Solution.
2025-09-01 5:58 AM
Hello @Kaviya_M ,
I think I will need a bit more information about your setup. From what I see in your boot logs, you are still working on the STM32MP257F-EV board and not on your own designed board. It will be easier to debug.
The error that comes from OP-TEE here indicates that somehow, your BSP changed between the reference Yocto build and the one you get with your own layer added. Do you modifiy some BSP configuration in your own layer ? Do you have your own DTS generated through CubeMX for example ?
If this layer is not sensitive, you can also share it here so that we could reproduce the issue on our side.
Kind regards,
Erwan.
2025-09-01 5:58 AM
Hello @Kaviya_M ,
I think I will need a bit more information about your setup. From what I see in your boot logs, you are still working on the STM32MP257F-EV board and not on your own designed board. It will be easier to debug.
The error that comes from OP-TEE here indicates that somehow, your BSP changed between the reference Yocto build and the one you get with your own layer added. Do you modifiy some BSP configuration in your own layer ? Do you have your own DTS generated through CubeMX for example ?
If this layer is not sensitive, you can also share it here so that we could reproduce the issue on our side.
Kind regards,
Erwan.
2025-09-08 2:20 AM
Thanks for your input ,optee dependencies are missed in the package.
Solved the issue on adding it .
Regards,
Kaviya M
2025-09-08 2:22 AM
Hello @Kaviya_M ,
Thanks for your feedback, glad to hear that you solved this. You can close the topic if all is OK for you now.
Kind regards,
Erwan.