On 8/14/25 15:37, Marek Vasut wrote:
> On 8/14/25 2:09 PM, Patrice Chotard wrote:
>> Initially, only one STM32MP25 based board was available, the
>> stm32mp257f-ev1 board which was set by default in stm32mp25_defconfig.
>>
>> Since commit 79f3e77133bd ("Subtree merge tag 'v6.16-dts' of dts repo [1]
>> into dts/upstream")
>> we inherited of a second MP25 based board which is the stm32mp257f-dk board.
>>
>> Enable OF_UPSTREAM_BUILD_VENDOR and set OF_UPSTREAM_VENDOR to allow all
>> STMicroelectronics DT compilation.
> If I build stm32mp25_defconfig , I can run the result on both EV1 and DK now ?
>
With this patch yes
> It seems only the EV1 DT is built into the binary, so why compile all DTs ?
By default yes, only EV1 DT is built. that's why OF_UPSTREAM_BUILD_VENDOR is
needed to
allow all other st/*.dtb to be built.
>
> $ grep TREE configs/stm32mp25_defconfig
> CONFIG_DEFAULT_DEVICE_TREE="st/stm32mp257f-ev1"
>
Currently if you try to build U-Boot for stm32mp257f-dk board using the
following commands:
make stm32mp25_defconfig
make DEVICE_TREE=st/stm32mp257f-dk
You ended up with the following error:
....
CC lib/rtc-lib.o
AR lib/built-in.a
AR examples/built-in.a
LD u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot-nodtb.bin
SYM u-boot.sym
RELOC u-boot-nodtb.bin
DTC dts/upstream/src/arm64/st/stm32mp257f-ev1.dtb
Device Tree Source (dts/upstream/src/arm64/st/stm32mp257f-dk.dtb) is not
correctly specified.
Please define 'CONFIG_DEFAULT_DEVICE_TREE'
or build with 'DEVICE_TREE=<device_tree>' argument
make[1]: *** [dts/Makefile:50: dts/upstream/src/arm64/st/stm32mp257f-dk.dtb]
Error 1
make: *** [Makefile:1372: dts/dt.dtb] Error 2
With this patch, the build is successful