[PATCH kernel] prom_init: Fetch flatten device tree from the system firmware
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Jun 4 10:18:12 AEST 2019
On Mon, 2019-06-03 at 18:42 -0500, Segher Boessenkool wrote:
> Hi!
>
> On Mon, Jun 03, 2019 at 12:56:26PM +1000, Alexey Kardashevskiy wrote:
> > On 03/06/2019 09:23, Segher Boessenkool wrote:
> > > > So I go for the simple one and agree with Alexey's idea.
> > >
> > > When dealing with a whole device tree you have to know about the
> > > various
> > > dynamically generated nodes and props, and handle each
> > > appropriately.
> >
> > The code I am changing fetches the device tree and build an fdt.
> > What is
> > that special knowledge in this context you are talking about?
>
> Things like /options are dynamically generated.
They are generated before we do the call to extract the fdt, what's the
problem there ?
> I thought you would just be able to reuse some FDT parsing code to
> implement my suggested new interface. Maybe that was too optimistic.
No, the idea is to have SLOF re-flatten it's live tree and hand us a
blob. At least that's my understanding.
Ben.
More information about the Linuxppc-dev
mailing list