From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Unified u-boot feature set for simpler distro support
Date: Mon, 05 Aug 2013 14:45:52 -0600 [thread overview]
Message-ID: <52000F00.1060708@wwwdotorg.org> (raw)
In-Reply-To: <20130805151120.6b20569a@adria.ausil.us>
On 08/05/2013 02:11 PM, Dennis Gilmore wrote:
> On Mon, 5 Aug 2013 15:01:32 -0400
> Tom Rini <trini@ti.com> wrote:
>
>> On Sat, Aug 03, 2013 at 02:11:04AM -0500, Dennis Gilmore wrote:
>>
>>> Hi all,
>>>
>>> I wanted to start a discussion on defining a unified feature set
>>> that makes it simpler for the different distros to support ARM
>>> systems using u-boot. I have based a lot of my thoughts on how
>>> calxeda ship their systems configured as it works fairly well,
>>> recently i sent in a patch implementing most of what I would like
>>> to see for the wandboard[1]
>>>
>>> right or wrong we want things to be simple for the user and to
>>> largely look like a linux system on x86 would. The user and distro
>>> should never need to worry about memory locations
>>
>> OK. But lets remember up front that this is because in x86 land we've
>> got a quite long standing fixed memory map.
>
> yes, but omap, tegra, imx etc all know that they need to start at some
> address 0x0000800, 0x10008000, 0x4000000 etc so the starting point is
> known per soc.
If you can require a recent U-Boot, and place requirements on any U-Boot
that you will support, then you can simply say "${kernel_addr_r}"
instead of writing code to detect which SoC is in use, and manually
coming up with the correct value to use. This is *the* reason I switched
Tegra's default environment over to using the standard kernel_addr_r
variable, so that Tegra boards worked the same as other standardized
boards, and boot scripts could make assumptions re: the existence of the
kernel_addr_r variable, and "just work" the same everywhere.
Similar arguments apply to many other things, such as board name,
calculating DTB filename, etc.
I took a quick look at Fedora's arm-boot-config package. It seems like
it's approach is to detect which U-Boot is present, then create a
boot.scr that will work with it. This script will be different on
different boards due to the differences in U-Boot features etc. The
approach I was assuming was that for distros to support a board, you'd
need a recent upstream U-Boot with certain features enabled (this is
going to be true even if we all go enable PXE support...), hence the
same boot.scr could be used anywhere, hence most of a-b-c could be
radically simplified down to a single code-path. Then, I think the only
thing missing would be some interactive menu stuff to choose which
kernel to boot.
But, if the PXE support provides the interactive menu and solves the
other board-specific issues, then perhaps that's a reasonable approach too.
next prev parent reply other threads:[~2013-08-05 20:45 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-03 7:11 [U-Boot] Unified u-boot feature set for simpler distro support Dennis Gilmore
2013-08-03 10:08 ` Peter Maydell
2013-08-05 16:25 ` Tom Rini
2013-08-04 19:48 ` Wolfgang Denk
2013-08-04 23:02 ` Dennis Gilmore
2013-08-05 18:39 ` Stephen Warren
2013-08-05 18:48 ` Stephen Warren
2013-08-05 20:26 ` Dennis Gilmore
2013-08-05 20:54 ` Stephen Warren
2013-08-05 19:50 ` Dennis Gilmore
2013-08-05 20:14 ` Tom Rini
2013-08-05 20:21 ` Stephen Warren
2013-08-05 20:43 ` Wolfgang Denk
2013-08-05 20:49 ` Stephen Warren
2013-08-05 21:00 ` Tom Rini
2013-08-05 21:09 ` Stephen Warren
2013-08-05 21:20 ` Tom Rini
2013-08-05 21:08 ` Dennis Gilmore
2013-08-05 22:06 ` Stephen Warren
2013-08-06 11:34 ` Wolfgang Denk
2013-08-05 19:01 ` Tom Rini
2013-08-05 20:11 ` Dennis Gilmore
2013-08-05 20:25 ` Tom Rini
2013-08-05 20:54 ` Dennis Gilmore
2013-08-05 21:02 ` Tom Rini
2013-08-05 20:45 ` Stephen Warren [this message]
2013-08-08 18:48 ` Dirk Müller
2013-08-08 20:01 ` Stephen Warren
2013-08-08 20:37 ` Tom Rini
2013-08-13 12:23 ` Dirk Müller
2013-08-10 21:02 ` Dennis Gilmore
2013-08-09 22:20 ` Stephen Warren
2013-08-09 22:49 ` Wolfgang Denk
2013-08-09 23:00 ` Stephen Warren
2013-08-10 4:35 ` Stephen Warren
2013-08-10 21:07 ` Dennis Gilmore
2013-08-12 13:56 ` Tom Rini
2013-08-10 10:11 ` Wolfgang Denk
2013-08-10 14:29 ` Adam Conrad
2013-08-10 21:05 ` Dennis Gilmore
2013-08-13 13:42 ` 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=52000F00.1060708@wwwdotorg.org \
--to=swarren@wwwdotorg.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