From: Ian Lepore <ian@freebsd.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: rpi: Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support
Date: Tue, 25 Aug 2015 19:46:42 -0600 [thread overview]
Message-ID: <1440553602.1313.42.camel@freebsd.org> (raw)
In-Reply-To: <55DD17B7.4080206@wwwdotorg.org>
On Tue, 2015-08-25 at 19:34 -0600, Stephen Warren wrote:
> On 08/21/2015 03:47 AM, Guillaume Gardet wrote:
> >
> >
> > Le 19/08/2015 05:14, Stephen Warren a ?crit :
> >> On 08/18/2015 08:03 AM, Guillaume GARDET wrote:
> >>> Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support to set 'board_rev' and
> >>> 'board_name' envs.
> >> That states what the patch does rather than why its useful to do it. Can
> >> you expand on why it's useful to set these variables?
> >
> > Using boot scripts you may need to get the board version / revision
> > infos, for example to select the right DTB since u-boot DTB names and
> > kernel DTB files do not match.
>
> The fix here isn't to craft all kinds of complex scripts in U-Boot based
> on a slew of extra variables. Rather, the set of DT files in the kernel
> should be expanded so that there is one DT per board design, i.e. so the
> filenames in the kernel match the filenames that U-Boot expects.
>
You speak of "the kernel" as if there were only one. FreeBSD also uses
dtb files, and we often have to do local patches to u-boot source to
make it emit identifying info such as soc type/model/rev and board rev
so that we can choose the right dtb file.
The way we handle dtb files is nothing like what linux does, but we use
the same dts source and dtb files as linux. In some cases we need
u-boot to load those files, in other cases we just need some u-boot
script code to set fdt_file to the right name, then our next-stage
kernel loader handles the actual loading of the file. Who does the
loading isn't as important as being able to choose the right file to
load, given an sdcard image that contains a single kernel that works for
a variety of related boards, but multiple dtb files, one per board.
-- Ian
next prev parent reply other threads:[~2015-08-26 1:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 14:03 [U-Boot] [PATCH] ARM: rpi: Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support Guillaume GARDET
2015-08-19 3:14 ` Stephen Warren
2015-08-21 9:47 ` Guillaume Gardet
2015-08-26 1:34 ` Stephen Warren
2015-08-26 1:46 ` Ian Lepore [this message]
2015-08-26 1:59 ` Stephen Warren
2015-08-25 13:10 ` [U-Boot] [PATCH V2] " Guillaume GARDET
2015-08-26 1:40 ` Stephen Warren
2015-10-24 21:15 ` [U-Boot] [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=1440553602.1313.42.camel@freebsd.org \
--to=ian@freebsd.org \
--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