I'm trying to add some overlays that I need and while trying to figure out how to do it I noticed that there's two different bcm2711-rpi-4-b.dtb files in /boot, and both seem to be required.
Seems uboot first reads the one in /boot then loads the one in /boot/dtbs/broadcom/. Also when I update the kernel only the one in /boot/dtbs/broadcom gets updated.
Do they both need to be the same? Should I copy the one in "broadcom" directory over the one in /boot ?
If the one in /boot is missing then uboot completely fails to start. If the one in /boot/dtbs/broadcom is missing then uboot fails to boot Pi and complains about missing /boot/dtbs/broadcom/bcm2711-rpi-4-b.dtb file.
If I put the one in the "broadcom" folder in the /boot folder the system starts ok. If I put the one in /boot in place of the one in broadcom directory then uboot fails to load the kernel, and that makes sense since the one in "broadcom" is created at the same time as the kernel.
So what is the purpose of the one in /boot, is it just to give uboot some info about the system? Would it be ok to replace it constantly with the ones generated by compiling the kernel?