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

Sjoerd Simons sjoerd at collabora.com
Thu Jan 19 09:38:16 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 ;)


Sjoerd Simons (3):
  Bump LMB_MAX_REGIONS default to 16
  lmb: Set correct lmb flags for EFI memory map entries
  lmb: Treat a region which is a subset as equal

 lib/Kconfig |  2 +-
 lib/lmb.c   | 15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)

-- 
2.39.0



More information about the U-Boot mailing list