[PATCH v2 0/1] Fix boot regressions on at least TI am62x

Sjoerd Simons sjoerd at collabora.com
Sun Feb 12 16:07:04 CET 2023

When booting a recent u-boot master on TI am62x with the distro boot
sequence it fails loading the FDT:

   Booting using the fdt blob at 0x88000000
Working FDT set to 88000000
   Loading Ramdisk to 8d711000, end 8ffffd95 ... OK
ERROR: reserving fdt memory region failed (addr=9e780000 size=80000 flags=4)
ERROR: reserving fdt memory region failed (addr=9e800000 size=1800000 flags=4)
ERROR: reserving fdt memory region failed (addr=9db00000 size=c00000 flags=4)
ERROR: Failed to allocate 0x8f58 bytes below 0x90000000.
device tree - allocation error
FDT creation failed!
resetting ...

It turns out that this is caused by commit 06d514d77c37 ("lmb: consider EFI
memory map") due to injecting both extra and some similar memory regions
via a different path into the lmb. The following series fixes the
apparent fallout from that ;)

Changes in v2:
- Adjust calculation to prevent integer overview (fixes lmb tests)
- Drop first 2 patches as they were applied already

Sjoerd Simons (1):
  lmb: Treat a region which is a subset as equal

 lib/lmb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


More information about the U-Boot mailing list