[U-Boot] [PATCH] wandboard: add pxe support, set default boot command like highbank
Rob Herring
robherring2 at gmail.com
Tue Aug 6 00:16:32 CEST 2013
On Mon, Aug 5, 2013 at 12:29 AM, Wolfgang Denk <wd at denx.de> wrote:
> Dear Rob Herring,
>
> In message <CAL_JsqK++KbAajYtp9UnJuHWd=f8pjHSK0x3hzf73PCHdL_M6A at mail.gmail.com> you wrote:
>>
>> > Maybe can be mkenvimage a solution (tools/mkenvimage) ? It creates an
>> > environment image from a simple ASCII text. The resulting image could be
>> > concatenated together with u-boot and in CONFIG_EXTRA_ENV_SETTINGS we
>> > could have for all boards a way to load it. Only a first idea, but as we
>> > recognize the issue, any idea to solve it ?
>>
>> I definitely agree that we should move this out of C code and support
>> standalone text files as input. IIRC, CONFIG_EXTRA_ENV_SETTINGS is
>> replaced by any separate environment. I think it also needs to support
>> being merged with a separate environment.
>
> Why would you ever want to compile this into U-Boot at all? Then any
> changes you need to make mean compiling and installing a new U-Boot,
> which is something you normally don't want to do.
You may want to have factory default and "user" settings. Building in
the factory settings would be one way to accomplish that.
> U-Boot is perfectly able to import such settings from text files (or
> text blobs stored somewhere, even attached to the U-Boot image, if you
> want), so just use the text files separately, instead of hard
> compiling them into the code.
In my case, I don't want to compile the environment into u-boot. But
some people do as I copied my scripts from Tegra which has them
built-in. Since built-in is C and standalone is text file, sharing is
impossible. That is the main thing I'd like to see changed. Whether we
support merging builtin and standalone envs is secondary.
Rob
More information about the U-Boot
mailing list