public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH RESEND 0/2] cmd: fdt: Add device tree overlays support
@ 2016-04-04 18:25 Maxime Ripard
  2016-04-04 18:25 ` [U-Boot] [PATCH RESEND 1/2] cmd: fdt: Narrow the check for fdt addr Maxime Ripard
  2016-04-04 18:25 ` [U-Boot] [PATCH RESEND 2/2] cmd: fdt: add fdt overlay application subcommand Maxime Ripard
  0 siblings, 2 replies; 14+ messages in thread
From: Maxime Ripard @ 2016-04-04 18:25 UTC (permalink / raw)
  To: u-boot

Hi,

The device tree overlays are a great solution to the issue raised by
the bunch expandable boards we find everywhere these days, like the
Beaglebone, Raspberry Pi or CHIP.

However, most of the time, the overlays are applied through a
mechanism involving the firmware request interface in Linux, that is
only fully functional once the userspace has been mounted and is
running.

Some expansion boards might need to be enabled before that, because
they simply need to patch the DT early on, or need to be initialized
early in order to be fully functional, or because they provide access
to the root filesystem.

In these cases, having the bootloader applying the overlay before
Linux starts seems like the easiest solution.

This implementation doesn't provide all the Linux fancyness though,
there's no transactional application, which means that if the overlay
cannot be applied for a reason while you're still halfway through the
application, you're probably screwed. It also cannot remove an
overlay, but I don't think that is currently a use-case.

Let me know what you think,
Maxime

Maxime Ripard (2):
  cmd: fdt: Narrow the check for fdt addr
  cmd: fdt: add fdt overlay application subcommand

 cmd/Makefile          |   2 +-
 cmd/fdt.c             |  21 ++-
 cmd/fdt_overlay.c     | 464 ++++++++++++++++++++++++++++++++++++++++++++++++++
 include/fdt_support.h |   2 +-
 4 files changed, 486 insertions(+), 3 deletions(-)
 create mode 100644 cmd/fdt_overlay.c

-- 
2.8.0

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

end of thread, other threads:[~2016-05-19  6:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-04 18:25 [U-Boot] [PATCH RESEND 0/2] cmd: fdt: Add device tree overlays support Maxime Ripard
2016-04-04 18:25 ` [U-Boot] [PATCH RESEND 1/2] cmd: fdt: Narrow the check for fdt addr Maxime Ripard
2016-04-09 18:36   ` Simon Glass
2016-04-04 18:25 ` [U-Boot] [PATCH RESEND 2/2] cmd: fdt: add fdt overlay application subcommand Maxime Ripard
2016-04-05 22:03   ` Pantelis Antoniou
2016-04-08 21:29     ` Rob Herring
2016-04-13 19:42       ` Tom Rini
2016-04-13 19:50         ` Pantelis Antoniou
2016-04-09 18:40   ` Simon Glass
2016-05-10 11:45     ` Maxime Ripard
2016-05-19  4:00       ` Simon Glass
2016-05-19  6:54       ` Pantelis Antoniou
2016-05-01 18:55   ` Simon Glass
2016-05-02 11:10     ` Maxime Ripard

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