public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Merging device trees at runtime for module-based systems
@ 2012-10-24  9:47 Daniel Mack
  2012-10-25 12:44 ` Wolfgang Denk
  2012-10-26 18:39 ` Stephen Warren
  0 siblings, 2 replies; 21+ messages in thread
From: Daniel Mack @ 2012-10-24  9:47 UTC (permalink / raw)
  To: u-boot

Hi,

a project I'm involved in uses a module/baseboard combo, and components
on either board are described in DT. I'm currently using separate dts
files which build upon each other with include statements, which works
fine for development.

In production though, we will certainly have running changes (and hence
different versions) over the lifetime of the product for both the
baseboard and the module, and the hardware has support for identifying
the versions of both sides at runtime.

So let's say we have n versions of the baseboard and m versions of the
module, we would much like to only prepare n + m files, instead of n * m
by pre-compiling every possible combination (some of which may actually
never occur 'in the wild').

So my question is: is it possible to do that kind of assembly of a
number of files at runtime in U-Boot? I guess all it takes is merging a
number of trees together, right? I browsed through the APIs but couldn't
yet find an clear approach to that kind of problem. If not, what would
it take to add that functionality? I can probably help with the
implementation if someone tells me what would be the right way.

Any pointer greatly appreciated.


Thanks,
Daniel

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-11-06 23:05 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24  9:47 [U-Boot] Merging device trees at runtime for module-based systems Daniel Mack
2012-10-25 12:44 ` Wolfgang Denk
2012-10-25 12:53   ` Daniel Mack
2012-10-25 20:46     ` Wolfgang Denk
2012-10-26  0:53       ` David Gibson
2012-10-26  7:24         ` Daniel Mack
2012-10-26 18:21           ` Simon Glass
2012-11-01  3:26           ` David Gibson
2012-11-01  9:24             ` Daniel Mack
2012-11-03 15:25               ` David Gibson
2012-11-03 15:35                 ` Daniel Mack
2012-10-26 18:39 ` Stephen Warren
2012-10-26 20:06   ` Wolfgang Denk
2012-10-31 23:00   ` Daniel Mack
2012-10-31 23:13     ` Stephen Warren
2012-10-31 23:21       ` Daniel Mack
2012-10-31 23:56     ` Mitch Bradley
2012-11-01  4:36       ` Stephen Warren
2012-11-01  5:02         ` Mitch Bradley
2012-11-02  4:53         ` David Gibson
2012-11-06 23:05     ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox