[PATCH 3/4] Use embedded libfdt in the bootwrapper
david at gibson.dropbear.id.au
Fri Nov 9 10:29:58 EST 2007
On Thu, Nov 08, 2007 at 04:50:11PM -0600, Scott Wood wrote:
> David Gibson wrote:
> >> How hard would it be to get libfdt to dynamically allocate any extra space
> >> it needs? This is a regression from the current flat device tree code...
> > Uh.. it already does. Or rather, the shims in libfdt-wrapper.c do so,
> > when libfdt functions which can expand the tree report that they've
> > run out of room.
> Ah, good -- I was looking in libfdt itself, not the wrapper. Now if
> only we could get something similar into u-boot... maybe libfdt proper
> could accept an optional realloc() function pointer in fdt_init(), and
> eliminate the need for the caller to provide such a wrapper?
I've considered something like it (more likely an optional
realloc()ing wrapper layer that comes with libfdt).
For the bootwrapper itself, however, I'm still hoping to get rid of
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
More information about the Linuxppc-dev