From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 18/20] Add Chrome OS config header
Date: Fri, 15 May 2015 09:27:54 -0600 [thread overview]
Message-ID: <5556107A.3090406@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ29m-7KpR5DH7Od2uw_RM4LH+eg_20S0uc=X3CbWPr4dA@mail.gmail.com>
On 05/13/2015 07:19 AM, Simon Glass wrote:
> Hi Stephen,
>
> On 25 February 2015 at 16:28, Stephen Warren <swarren@wwwdotorg.org> wrote:
>>
>> On 02/17/2015 03:29 PM, Simon Glass wrote:
>>>
>>> From: Doug Anderson <dianders@chromium.org>
>>>
>>> This header includes useful scripts which can be used with any board that
>>> can boot Chrome OS.
>>>
>>> In particular, 'run nvboot' will boot a board without verified boot enabled.
>>
>> I think this needs a bit of minification for an upstream U-Boot. In
>> particular, many of the environment variables overlap semantically or
>> by name with those from include/config_distro_*.h, and I'd like to
>> see any U-Boot for the Tegra Chromebooks (at least) support booting both
>> ChromeOS kernels and arbitrary distros using the environment from
>> config_distro_bootcmd.h.
>
> That would be good. I think it is possible also, although I haven't
> been able to make it work so far. I can get it to find the kernel,
> although not the one that it needs and the U-Boot scripts are in a
> different place on the disk in Chrome OS. Also the command line args
> are wrong.
I would not expect the scripts from config_distro_bootcmd.h to just work
for ChromeOS; I'd expect it to be an alternate set of scripts. I'm
mainly looking for the ChromeOS scripts to use the same variables where
they mean the same thing, to avoid having two completely different sets.
Re: the command-line; wouldn't the ChromeOS scripts just set bootargs
from scratch whenever they were used? The scripts in
config_distro_bootcmd.h expect the complete command-line to come from
the extlinux.conf or boot.scr file that they load; the scripts in
config_distro_bootcmd.h shouldn't be providing a command-line.
> So I think for now we should either apply this as it is (since it
> works) or wait until someone has time to rationalise things a bit and
> figure out how to support Chrome OS booting in the distro stuff.
I really think this should be cleaned up before it's applied. As soon as
it's applied, it'll serve as an example and other boards will pick up
the same code. That'll make the eventual required cleanup more involved.
>>> +#define CONFIG_CROS_FULL
>>
>>
>> There are a ton of macros in here without much in the way of explanation.
>> Shouldn't everything be documented in the README?
>
> The documentation for these is at the top of the file:
>
> + * In anticipation of implementing early firmware selection, these defines
> + * signal the features that are required in U-Boot.
Not all of them by far; I mean things like CONFIG_CHROMEOS,
CONFIG_CHROMEOS_TEST, CONFIG_CHROMEOS_CONST_FLAG,
CONFIG_VBOOT_REGION_READ, CONFIG_CROS_RO, CONFIG_CHROMEOS_DISPLAY,
CONFIG_CROS_LEGACY_VBOOT, CONFIG_CHROMEOS_USB, and probably a variety of
others I didn't pick up in a quick scan. I don't see any of those in
u-boot/master as of a few days ago either, so I think they're all
introduced new in this patch?
next prev parent reply other threads:[~2015-05-15 15:27 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-17 22:29 [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 01/20] dm: spi: Avoid setting the speed with every transfer Simon Glass
2015-05-02 20:58 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 02/20] cros_ec: Show the protocol version in the debug message Simon Glass
2015-05-02 20:58 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 03/20] cros_ec: Handle the single duplex requirement in cros_ec Simon Glass
2015-05-02 20:58 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 04/20] tegra: Provide more accurate microsecond time Simon Glass
2015-02-25 23:10 ` Stephen Warren
2015-03-29 13:00 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 05/20] tegra: cros_ec: Add tegra support for Chrome OS EC Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 06/20] tegra: spi: Drop the claim_bus() method to correct delays Simon Glass
2015-02-25 23:14 ` Stephen Warren
2015-03-29 13:10 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 07/20] dm: tegra: cros_ec: Enable Chrome OS EC on Nyan-big Simon Glass
2015-02-25 23:15 ` Stephen Warren
2015-03-29 13:00 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 08/20] dm: gpio: Add an implementation for gpio_get_number() Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 09/20] tegra: spi: Support slow SPI rates Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 10/20] tegra: clock: Support enabling external clocks Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 11/20] tegra: clock: Adjust PLL access to avoid a warning Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 12/20] tegra: Introduce SRAM repair on tegra124 Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 13/20] tegra: Add missing tegra124 peripherals Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 14/20] tegra: Increase maximum arguments to 32 Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 15/20] tegra: lcd: Tidy up clock init Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 16/20] tegra: Allow board-specific init Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 17/20] tegra: nyan-big: Add additional clock and kernel init Simon Glass
2015-02-25 23:23 ` Stephen Warren
2015-03-29 13:02 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 18/20] Add Chrome OS config header Simon Glass
2015-02-25 23:28 ` Stephen Warren
2015-02-26 9:15 ` thomas.langer at lantiq.com
2015-05-13 13:19 ` Simon Glass
2015-05-15 15:27 ` Stephen Warren [this message]
2015-05-18 21:40 ` Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 19/20] tegra: config: Allow Chrome OS environment settings to be included Simon Glass
2015-02-17 22:29 ` [U-Boot] [PATCH 20/20] tegra: config: nyan-big: Add options required by Chrome OS boot Simon Glass
2015-02-25 23:31 ` Stephen Warren
2015-05-13 13:56 ` Simon Glass
2015-05-15 15:34 ` Stephen Warren
2015-05-18 21:33 ` Simon Glass
2015-05-19 15:41 ` Stephen Warren
2015-05-19 18:01 ` Simon Glass
2015-05-19 21:36 ` Stephen Warren
2015-05-19 23:27 ` Simon Glass
2015-05-20 1:44 ` Stephen Warren
2015-05-20 3:00 ` Simon Glass
2015-05-20 10:21 ` Peter Robinson
2015-05-20 13:40 ` Simon Glass
2015-05-20 14:04 ` Stephen Warren
2015-05-20 14:14 ` Simon Glass
2015-02-26 0:12 ` [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support Sjoerd Simons
2015-02-28 5:11 ` Simon Glass
2015-03-30 8:14 ` Sjoerd Simons
2015-03-30 23:51 ` Simon Glass
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=5556107A.3090406@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