2025-03-29 12:58 AM
I have made a custom board with stm32mp135f and now trying to build linux for the custom board.
I followed https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine
and then run:
bitbake core-image-minimal
and after 98% got the following error:
""
ERROR: tf-a-stm32mp-v2.10.5-stm32mp-r1-r0 do_compile: oe_runmake failed
ERROR: tf-a-stm32mp-v2.10.5-stm32mp-r1-r0 do_compile: ExecutionError('/home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/temp/run.do_compile.1006910', 1, None, None)
ERROR: Logfile of failure stored in: /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/temp/log.do_compile.1006910
Log data follows:
| DEBUG: Executing python function check_cubemx_extdt
| DEBUG: Python function check_cubemx_extdt finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 6 PLAT=stm32mp1 ARCH=aarch32 ARM_ARCH_MAJOR=7 CROSS_COMPILE=arm-ostl-linux-gnueabi- DEBUG=1 LOG_LEVEL=40 TFA_EXTERNAL_DT=/home/linux/platformer/Distribution-Package/layers/meta-st/meta-st-stm32mp-addons/mx/platformer/DeviceTree/platformer/tf-a -C /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/git BUILD_PLAT=/home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx DTB_FILE_NAME=stm32mp135f-platformer-mx.dtb AARCH32_SP=optee PSA_FWU_SUPPORT=1 STM32MP_SDMMC=1 STM32MP13=1 dtbs
| make: Entering directory '/home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work-shared/stm32mp13-platformer/tfa-source'
| Including bl32/optee/optee.mk
| Trusted Firmware-A built for OP-TEE payload support
| PSA_FWU_SUPPORT is an experimental feature
| CPP /home/linux/platformer/Distribution-Package/layers/meta-st/meta-st-stm32mp-addons/mx/platformer/DeviceTree/platformer/tf-a/stm32mp135f-platformer-mx-fw-config.dts
| CPP /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx/fdts/stm32mp135f-platformer-mx-bl2.dts
| DTC /home/linux/platformer/Distribution-Package/layers/meta-st/meta-st-stm32mp-addons/mx/platformer/DeviceTree/platformer/tf-a/stm32mp135f-platformer-mx-fw-config.dts
| Error: /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx/fdts/stm32mp135f-platformer-mx-fw-config.pre.dts:0.0 syntax error
| FATAL ERROR: Unable to parse input tree
| make: *** [Makefile:1597: /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx/fdts/stm32mp135f-platformer-mx-fw-config.dtb] Error 1
| make: *** Waiting for unfinished jobs....
| DTC /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx/fdts/stm32mp135f-platformer-mx-bl2.dts
| /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx/fdts/stm32mp135f-platformer-mx-bl2.pre.dts:183.21-193.5: Warning (avoid_unnecessary_addr_size): /soc/rcc@50000000: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property
| also defined at /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx/fdts/stm32mp135f-platformer-mx-bl2.pre.dts:581.6-603.3
| ERROR: oe_runmake failed
| make: Leaving directory '/home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work-shared/stm32mp13-platformer/tfa-source'
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/linux/platformer/Distribution-Package/layers/meta-st/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.10.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6505 tasks of which 6454 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 11 seconds
Summary: 1 task failed:
/home/linux/platformer/Distribution-Package/layers/meta-st/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.10.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.
""
I tried to run:
bitbake -c cleanall core-image-minimal
bitbake -c cleanall tf-a-stm32mp
and then
bitbake core-image-minimal
or
bitbake tf-a-stm32mp
and the error still occurred.
2025-03-30 7:02 PM - edited 2025-03-30 7:03 PM
Hello @omer1
It seems your Device tree contain some syntax error.
| Error: /home/linux/platformer/Distribution-Package/build-openstlinuxweston-stm32mp13-platformer/tmp-glibc/work/stm32mp13_platformer-ostl-linux-gnueabi/tf-a-stm32mp/v2.10.5-stm32mp-r1/build/optee-sdcard-stm32mp13-stm32mp135f-platformer-mx/fdts/stm32mp135f-platformer-mx-fw-config.pre.dts:0.0 syntax error
| FATAL ERROR: Unable to parse input tree
Please check the tfa device tree and retry the bitbake.
Regards,