On Thu, May 01, 2014 at 12:42:05PM +0200, Daniel Mack wrote: > The code in arch/arm/kexec-zImage-arm.c currently enforces a hard limit > on the maximum size a dtb blob can occupy. This limit is set to 32k, > which is quite low for device tree blobs nowadays. > > Get rid of this assumption, and calculate the added size dynamically. > For this, we need to slurp in the dtb file earlier in order to > determine its size, because the memory hole allocation for 'base' > takes this size into account. > > For ATAGs, we keep the current value of 32k, which should in fact be > enough. > > With this change in place, the 'DTB too large!' error message can go > away. Successfully tested on a AM335x board. > > Signed-off-by: Daniel Mack <zonque at gmail.com> > [s.neumann at raumfeld.com: Fix ATAGs case] > Reported-and-tested-by: Sven Neumann <s.neumann at raumfeld.com> > --- > v2 includes a fixup from Sven Neumann for ATAGs driven boards. > The patch is in tested on a larger number of machines by now. Thanks, applied.