embedded a default dtb in the kernel (was merge dtc)

Leisner, Martin Martin.Leisner at xerox.com
Sat Oct 20 04:30:28 EST 2007


Is there a way to embed a default dtb into the kernel?
When I build a kernel, I want to embed a dtb into it --
so I don't have to deal with the headaches of finding the
right file to match the right board (its always easier to
deal with 1 file than 2).

If there is, it makes sense to put dtc into the tree.
If there's not, there should be a way to embed dtb's; and put
dtc and dts's into the tree.
If there can't be (I haven't examined this but relaying my
experiences), then it should be in a separate repository
(but the DTS and DTC should be in one place).
It was a little difficult to cobble together a working 
system the first time.

Also, mkimage SHOULD definitely go in the tree.  Its necessary
to build, hence should be in the tree...

There are cases where one kernel can support multiple boards/DTBs.
I guess boot flags can control whether to use an embedded DTB or
one passed from uboot...

marty



More information about the Linuxppc-dev mailing list