Having error generating dtb for STM32MP157C
I'm trying to generate dtb files (kernet, u-boot, tf-a) for a custom board with STM32MP157C (OSD32MP157C by Octavo Systems) following the instructions from ST (https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package).
Here some details:
- *.dts and *.dtsi files are generated with CubeMXIde 1.4.0
- Environment is setup in a Ubuntu 20.04 LTS (using WSL).
- Source files: en.SOURCES-stm32mp1-openstlinux-5-4-dunfell-mp1-20-06-24.tar.xz
- SDK files: en.SDK-x86_64-stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24.tar.xz
- Error log:
arch/arm/dts/stm32mp157c-test_master_1-mx.dtb: ERROR (duplicate_label): /sram@10050000: Duplicate label 'sram' on /sram@10050000 and /soc/sram@10000000
ERROR: Input tree has errors, aborting (use -f to force output)
make[2]: *** [scripts/Makefile.lib:308: arch/arm/dts/stm32mp157c-test_master_1-mx.dtb] Error 2
make[1]: *** [dts/Makefile:38: arch-dtbs] Error 2
make: *** [Makefile:1087: dts/dt.dtb] Error 2
Checking inside the files and includes I can see "/sram@10050000" label but not "/soc/sram@10000000".
Is any modification need to be done?
Thanks,
Pep
