public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: Nicolas Pitre <nico@fluxnic.net>
Cc: Tom Rini <trini@ti.com>, "Fernandes, Joel A" <joelagnel@ti.com>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	linux-kbuild@vger.kernel.org, tony@atomide.com,
	Linux@theia.denx.de, Grant Likely <grant.likely@secretlab.ca>,
	u-boot@lists.denx.de, Grant Likely <glikely@secretlab.ca>,
	OMAP List <linux-omap@vger.kernel.org>,
	ARM Kernel List <linux-arm-kernel@lists.infradead.org>
Subject: Re: [U-Boot] [RFC] Kbuild support for ARM FIT images
Date: Thu, 21 Feb 2013 12:37:46 -0700	[thread overview]
Message-ID: <5126778A.4040705@wwwdotorg.org> (raw)
In-Reply-To: <alpine.LFD.2.03.1302211358070.6419@syhkavp.arg>

On 02/21/2013 12:21 PM, Nicolas Pitre wrote:
> On Thu, 21 Feb 2013, Tom Rini wrote:
> 
>> On 02/21/2013 12:25 PM, Nicolas Pitre wrote:
>>> On Thu, 21 Feb 2013, Tom Rini wrote:
>> [snip]
>>>>> uboot dug _itself_ into this hole.  It's uboot's problem.
>>>>
>>>> A whole lot  of people dug this particular hole.  Joel is trying
>>>> to offer up a solution that maybe makes things easier for
>>>> everyone.  Or it gets rejected here too and distros will come up
>>>> with their N different ways to try and provide easier experiences
>>>> to the end user.
>>>
>>> Nothing being perfect, it is probably unreasonable to think that
>>> every board will start shipping with complete and correct DT
>>> description, etc. But so is the state of FIT support right now.
>>> That solution to make things easier for everyone should actually
>>> make that DT vs kernel separation more effective and provide better
>>> mechanisms for gluing the various DTBs to their respective boards,
>>> and not to glue them to the kernel to populate a distro filesystem
>>> with them.
>>
>> I very much agree here.  And in the end, what I really really want to
>> avoid is every distribution (or similar grouping of stuff) coming up
>> with N different ways to solve the problem of "how do I get the user
>> the right device tree to go with $whatever board they happen to be
>> running".
> 
> DT installation must be outside of the distribution's responsibilities.  
> It should be the OEM's responsibility, just like BIOS updates for PCs 
> which don't come from Fedora/Debian/Ubuntu.  Obviously, having the dts 
> files in the kernel tree does confuse people in that regard, but that 
> must not deter people from doing the right thing.

The guidance that has been given in the past is that the kernel zImage
and DTB /must/ be stored "in the same location", whether that means the
/boot filesystem, flash partitions, or whatever, so that if required,
the kernel and DTB can be updated at the same time, and using the same
process, so it's guaranteed to be easy enough to update the DTB if you
already know how to update the kernel.

Has that guidance changed?

Also, how can the OEM provide a DTB? The distro is responsible for
installing all the filesystem content. There's no defined way of passing
a DTB from some pre-bootloader firmware into the bootloader and through
to the kernel; the only way to get a DTB to the kernel right now is for
the bootloader to load it itself (either as part of a single file, or as
a separate file) and pass it to the kernel. So, there's really no way
for an OEM to provide a DTB in a BIOS-like fashion.

Why shouldn't the OEM just provide their *.dts files, and people can
either compile them and put them into /boot, or distros can package them
and the package will install them into /boot. That's extremely simple
and while each distro will have to create their own packaging script,
that's something they already know how to do, and a package that just
dumps a file onto a disk is extremely simple, so people wouldn't have to
go inventing distro-specific solutions.

If U-Boot always searched a disk for e.g. /boot/boot.scr or similar and
just executed that, and there was a standard boot.scr that worked on all
boards by use of e.g. bootz, ${soc}, ${board}, then that could be
distro-agnostic too. And life would be simple, without the need for any
extra build tools at all.

>> If the clever solution everyone comes up with is some other container 
>> that's not FIT, that's fine, patches welcome and happily reviewed for 
>> whatever the solution is.  I just don't want people thinking this is a 
>> problem that hasn't been thought of before.
> 
> Ideally, there should be no such containers.  You should simply pick any 
> kernel, or install your distro of choice, and run that on any "DT ready" 
> hardware. A distro could list the minimum version of a DTB some 
> particular boards were tested with, just like they sometimes do for some 
> PC BIOSes.  That said, maybe some provision for DTB versioning would be 
> a good idea if not done already.


  reply	other threads:[~2013-02-21 19:38 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-21  1:37 [RFC] Kbuild support for ARM FIT images Joel A Fernandes
2013-02-21  4:26 ` Stephen Warren
2013-02-21  7:15   ` Joel A Fernandes
2013-02-21 18:58     ` Stephen Warren
2013-02-21 19:18       ` Tom Rini
2013-02-21 13:29   ` Tom Rini
2013-02-21 19:03     ` Stephen Warren
2013-02-21 10:37 ` Russell King - ARM Linux
2013-02-21 13:20   ` Tom Rini
2013-02-21 13:46     ` Russell King - ARM Linux
2013-02-21 14:08       ` Tom Rini
2013-02-21 14:37         ` Russell King - ARM Linux
2013-02-21 14:46           ` Tom Rini
2013-02-21 17:25         ` [U-Boot] " Nicolas Pitre
2013-02-21 17:40           ` Tom Rini
2013-02-21 19:21             ` Nicolas Pitre
2013-02-21 19:37               ` Stephen Warren [this message]
2013-02-21 19:57                 ` Wolfgang Denk
2013-02-21 20:05                   ` Stephen Warren
2013-02-21 20:18                     ` Wolfgang Denk
2013-02-21 21:18                 ` Nicolas Pitre
2013-02-22  0:10                   ` Stephen Warren
2013-02-22  0:39                     ` Russell King - ARM Linux
2013-02-22 20:48                       ` Stephen Warren
2013-02-21 18:27           ` Jason Gunthorpe
2013-02-21 19:08             ` Russell King - ARM Linux
2013-02-21 20:15               ` Jason Gunthorpe
2013-02-21 19:57             ` Nicolas Pitre
2013-02-21 21:14               ` Jason Gunthorpe
2013-02-21 22:05                 ` Nicolas Pitre
2013-02-21 23:11                   ` Jason Gunthorpe
2013-02-21 23:50                     ` Stephen Warren
2013-02-22  0:19                     ` Scott Wood
2013-02-22  2:39                       ` Jason Gunthorpe
2013-02-22  0:27                     ` Russell King - ARM Linux
2013-02-22  0:41                       ` Russell King - ARM Linux
2013-02-22  2:11                       ` Jason Gunthorpe
2013-02-21 23:18                   ` Wolfgang Denk
2013-02-21 23:28                     ` Jason Gunthorpe
2013-02-22  0:19                       ` Rob Herring
2013-02-22  2:22                         ` Jason Gunthorpe
2013-02-22  3:32                           ` Rob Herring
2013-02-22  7:56                           ` Jason Kridner
2013-02-22 17:43                             ` Jason Gunthorpe
2013-02-22  6:55                       ` Wolfgang Denk
2013-02-21 23:45                   ` Stephen Warren
2013-02-22  0:29                     ` Russell King - ARM Linux
2013-02-21 20:56             ` Peter Korsgaard
2013-02-21 17:37       ` Wolfgang Denk
2013-02-21 18:33         ` Russell King - ARM Linux
2013-02-23  8:38   ` Joel A Fernandes
2013-02-22 16:00 ` Olof Johansson
2013-03-18 16:36   ` Pavel Machek
2013-03-18 16:44     ` Russell King - ARM Linux
2013-03-18 17:49       ` Pavel Machek
2013-03-18 17:57         ` Russell King - ARM Linux
2013-03-18 18:04           ` Pavel Machek
2013-03-18 18:14             ` [U-Boot] " Stephen Warren
2013-03-18 19:57               ` Wolfgang Denk
2013-03-18 19:51           ` Wolfgang Denk
2013-03-18 18:29     ` [U-Boot] " Tom Rini

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=5126778A.4040705@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=Linux@theia.denx.de \
    --cc=glikely@secretlab.ca \
    --cc=grant.likely@secretlab.ca \
    --cc=joelagnel@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=nico@fluxnic.net \
    --cc=tony@atomide.com \
    --cc=trini@ti.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox