Re: [PATCH 2/3] Use embedded libfdt in the bootwrapper

2007-12-10 Thread David Gibson
On Mon, Dec 10, 2007 at 05:19:02PM -0600, Scott Wood wrote: > David Gibson wrote: > > On Mon, Dec 10, 2007 at 11:32:17AM -0600, Scott Wood wrote: > >> How does using offsets as devps work if a devp was previously > >> acquired to a node that has to be moved due to a change later made > >> in an ear

Re: [PATCH 2/3] Use embedded libfdt in the bootwrapper

2007-12-10 Thread Scott Wood
Scott Wood wrote: > David Gibson wrote: >> On Mon, Dec 10, 2007 at 11:32:17AM -0600, Scott Wood wrote: >>> How does using offsets as devps work if a devp was previously >>> acquired to a node that has to be moved due to a change later made >>> in an earlier part of the tree? >> >> It doesn't; don't

Re: [PATCH 2/3] Use embedded libfdt in the bootwrapper

2007-12-10 Thread Scott Wood
David Gibson wrote: > On Mon, Dec 10, 2007 at 11:32:17AM -0600, Scott Wood wrote: >> How does using offsets as devps work if a devp was previously >> acquired to a node that has to be moved due to a change later made >> in an earlier part of the tree? > > It doesn't; don't do that. I just don't t

Re: [PATCH 2/3] Use embedded libfdt in the bootwrapper

2007-12-10 Thread David Gibson
On Mon, Dec 10, 2007 at 11:32:17AM -0600, Scott Wood wrote: > On Mon, Dec 10, 2007 at 02:28:39PM +1100, David Gibson wrote: > > +#define check_err(err) \ > > + ({ \ > > + if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \ > > + printf("%s():%d %s\n\r", __FUNCTION__, __LINE

Re: [PATCH 2/3] Use embedded libfdt in the bootwrapper

2007-12-10 Thread Scott Wood
On Mon, Dec 10, 2007 at 02:28:39PM +1100, David Gibson wrote: > +#define check_err(err) \ > + ({ \ > + if (BAD_ERROR(err) || ((err < 0) && DEBUG)) \ > + printf("%s():%d %s\n\r", __FUNCTION__, __LINE__, \ > +fdt_strerror(err)); \ > +

[PATCH 2/3] Use embedded libfdt in the bootwrapper

2007-12-09 Thread David Gibson
This patch incorporates libfdt (from the source embedded in an earlier patch) into the wrapper.a library used by the bootwrapper. This includes adding a libfdt_env.h file, which the libfdt sources need in order to integrate into the bootwrapper environment, and a libfdt-wrapper.c which provides gl