All of lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Appended DTB files for multi-machine kernels
Date: Thu, 4 Jul 2013 23:34:36 +0200	[thread overview]
Message-ID: <201307042334.37161.arnd@arndb.de> (raw)
In-Reply-To: <20130704171148.GJ27646@sirena.org.uk>

On Thursday 04 July 2013, Mark Brown wrote:
> On Thu, Jul 04, 2013 at 06:56:24PM +0200, Daniel Mack wrote:
> 
> > Unless I missed some recent discussion, this case is not easy to handle.
> > Yes, I know that these kind of things should be handled by a
> > next-generation bootloader, but in our case, we want to avoid a loader
> > update of already shipped hardware by all means.
> 
> There was some discussion about appending multiple DTBs recently.  I
> can't actually recall anything about it though so that's not an entirely
> helpful thing...

Yes, it keeps coming up, I think by now everybody agreed it's a good
idea to extend the ATAGS compat mode, but so far nobody has implemented
it. Magnus Damm was very interested in this feature last year and
was planning to work on it, but I don't know how far he got.

> > As a solution, I'm thinking of a small framework that could for example
> > work as follows.
> 
> > a) A small mechanism allows storing multiple DTB binary files inside the
> > kernel binary at compile time, and a simple function can extract them
> > again by name at runtime (something like what the firmware framework
> > does, but I don't know if that one can be used at such an early stage in
> > the boot process).
> 
> Another way of skinning this would be for either the kernel to contain
> a set of machine ID to compatible string mappings or for the device
> trees for the boards to have an additional properties giving the machine
> IDs that the boards match.  The kernel could then look for multiple DTBs
> appended to the image and try to pick one based on ATAGs.

IIRC there is actually an unused field in the dtb header that could
be used to match a board ID.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Mark Brown <broonie@kernel.org>
Cc: stigge@antcom.de, Stephen Warren <swarren@nvidia.com>,
	Magnus Damm <magnus.damm@gmail.com>,
	"devicetree-discuss@lists.ozlabs.org"
	<devicetree-discuss@lists.ozlabs.org>,
	Sven Neumann <s.neumann@raumfeld.com>,
	Daniel Mack <zonque@gmail.com>,
	Grant Likely <grant.likely@secretlab.ca>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: Appended DTB files for multi-machine kernels
Date: Thu, 4 Jul 2013 23:34:36 +0200	[thread overview]
Message-ID: <201307042334.37161.arnd@arndb.de> (raw)
In-Reply-To: <20130704171148.GJ27646@sirena.org.uk>

On Thursday 04 July 2013, Mark Brown wrote:
> On Thu, Jul 04, 2013 at 06:56:24PM +0200, Daniel Mack wrote:
> 
> > Unless I missed some recent discussion, this case is not easy to handle.
> > Yes, I know that these kind of things should be handled by a
> > next-generation bootloader, but in our case, we want to avoid a loader
> > update of already shipped hardware by all means.
> 
> There was some discussion about appending multiple DTBs recently.  I
> can't actually recall anything about it though so that's not an entirely
> helpful thing...

Yes, it keeps coming up, I think by now everybody agreed it's a good
idea to extend the ATAGS compat mode, but so far nobody has implemented
it. Magnus Damm was very interested in this feature last year and
was planning to work on it, but I don't know how far he got.

> > As a solution, I'm thinking of a small framework that could for example
> > work as follows.
> 
> > a) A small mechanism allows storing multiple DTB binary files inside the
> > kernel binary at compile time, and a simple function can extract them
> > again by name at runtime (something like what the firmware framework
> > does, but I don't know if that one can be used at such an early stage in
> > the boot process).
> 
> Another way of skinning this would be for either the kernel to contain
> a set of machine ID to compatible string mappings or for the device
> trees for the boards to have an additional properties giving the machine
> IDs that the boards match.  The kernel could then look for multiple DTBs
> appended to the image and try to pick one based on ATAGs.

IIRC there is actually an unused field in the dtb header that could
be used to match a board ID.

	Arnd

  reply	other threads:[~2013-07-04 21:34 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04 16:56 Appended DTB files for multi-machine kernels Daniel Mack
2013-07-04 16:56 ` Daniel Mack
2013-07-04 17:11 ` Mark Brown
2013-07-04 17:11   ` Mark Brown
2013-07-04 21:34   ` Arnd Bergmann [this message]
2013-07-04 21:34     ` Arnd Bergmann
2013-07-04 23:02     ` Daniel Mack
2013-07-04 23:02       ` Daniel Mack
2013-07-05  8:32     ` Magnus Damm
2013-07-05  8:32       ` Magnus Damm
2013-07-04 17:28 ` Nicolas Pitre
2013-07-04 17:28   ` Nicolas Pitre
2013-07-04 17:57   ` Daniel Mack
2013-07-04 17:57     ` Daniel Mack
2013-07-04 18:27     ` Nicolas Pitre
2013-07-04 18:27       ` Nicolas Pitre
2013-07-26 16:13   ` Daniel Mack
2013-07-26 16:13     ` Daniel Mack
2013-07-26 16:44     ` Nicolas Pitre
2013-07-26 16:44       ` Nicolas Pitre
2013-07-29 21:23     ` [RFC PATCH 0/2] impedance-matcher generic improvements Jason Cooper
2013-07-29 21:23       ` Jason Cooper
2013-07-29 21:24       ` [PATCH 1/2] add cscope Makefile target Jason Cooper
2013-07-29 21:24         ` Jason Cooper
2013-07-29 21:24       ` [RFC PATCH 2/2] WIP: Get kernel and dtb addresses from command line Jason Cooper
2013-07-29 21:24         ` Jason Cooper
2013-07-30  7:48       ` [RFC PATCH 0/2] impedance-matcher generic improvements Daniel Mack
2013-07-30  7:48         ` Daniel Mack
2013-07-30 13:17         ` Jason Cooper
2013-07-30 13:17           ` Jason Cooper
2013-07-30 13:37           ` Daniel Mack
2013-07-30 13:37             ` Daniel Mack
2013-07-30 14:42             ` Jason Cooper
2013-07-30 14:42               ` Jason Cooper
2013-08-02 15:51     ` [RFC PATCH V2 0/9] " Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 1/9] add cscope Makefile target Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 2/9] separate common functions from board specific Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 3/9] rename board.c to board-raumfeld.c Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 4/9] s/.name/.compatible/ Jason Cooper
2013-08-02 21:52         ` Stephen Warren
2013-08-03 14:07           ` Jason Cooper
2013-08-03 14:16             ` Daniel Mack
2013-08-02 15:51       ` [RFC PATCH V2 5/9] directly include needed headers Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 6/9] serial: split out 8250 code, configurable reg addr Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 7/9] add generic board code Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 8/9] make appending images/dtbs optional Jason Cooper
2013-08-02 15:51       ` [RFC PATCH V2 9/9] appended dtbs works! Jason Cooper
2013-08-02 19:42         ` Nicolas Pitre
2013-08-02 19:54           ` Jason Cooper
2013-08-02 19:57           ` Jason Cooper
2013-08-02 17:53       ` [RFC PATCH V2 0/9] impedance-matcher generic improvements Daniel Mack
2013-08-02 18:43         ` Jason Cooper
2013-08-02 18:46           ` Daniel Mack
2013-07-04 18:36 ` Appended DTB files for multi-machine kernels Dirk Behme
2013-07-04 18:36   ` Dirk Behme
2013-07-05 18:36 ` Stephen Warren
2013-07-05 18:36   ` Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201307042334.37161.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.