On 15/12/2025 07:56, Yuri Honegger wrote:
Hello, When the memory address for the device tree isn't provided to u-boot, u-boot decides where to place the device tree by itself. For me, it chooses to place it right after the code, overlapping the bss section.
What device are you using and what version of U-Boot? Some of our U-Boot versions are quite old and some boards have seen significant changes in U-Boot functionality over the years.
I've also seen boards vary in how sophisticated their boot scripts in EEPROM/Flash memory are. I expect that many board manufacturers don't care how well their boot scripts work because the user can just reprogram the board to do what ever is required.
Maybe adding a suitably sophisticated boot.scr to the U-Boot package itself is a reliable way to solve this problem.
Ngā mihi, Lloyd