public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dennis Gilmore <dennis@ausil.us>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] wandboard: add pxe support, set default boot command like highbank
Date: Tue, 6 Aug 2013 11:22:22 -0500	[thread overview]
Message-ID: <20130806112222.2b84df43@adria.ausil.us> (raw)
In-Reply-To: <20130806113751.957DA380DF0@gemini.denx.de>

On Tue, 06 Aug 2013 13:37:51 +0200
Wolfgang Denk <wd@denx.de> wrote:

> Dear Rob Herring,
> 
> In message
> <CAL_JsqJTg4CVfk0o9hLd4ZVksj+DNEsKLjcv6T7-6F-=BR+J+Q@mail.gmail.com>
> you wrote:
> >
> > > 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.
> 
> No. Handling these independently, outside of the compiled U-Boot image
> is as easy, and much more flexible.
How exactly should it be handled outside of the compiled u-boot image.
with my distro hat on, I honesty do not want to deal with u-boot at
all. The limit of my dealing with u-boot will be to run a script that
installs the u-boot binary onto disk for those systems that don't have
it in nand/nor/spi etc flash storage. 

In my mind you are talking about some file I need to write to disk that
gets loaded at boot time. the problem with this is its not flexible nor
portable. I honestly think one of the worst thing hardware vendors ever
did was to ship hardware that doesn't have anywhere built into it to
load and run u-boot from.

My issue with this is, we produce a unified image, it could be an
installer image or a installed disk image. it has a unified kernel in
it and can run on any number of soc's but we also need to provide
tooling that will setup the u-boot image so that it can be loaded by
different boards. be it copying files into place or dding the binary
into some offset. it kills the portability. i can't pull a sdcard from
one board with one type of soc and plug it into another and have it
just boot.

> > > 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.
> 
> Who says "impossible" here?  When using a file system with write
> support, you can use "env export -t" to create a text representation
> and write it out to the file system (or store it in some reserved area
> on some storage device).
Exactly what i want to avoid. I really do want it compiled into the
binary. because then I only have to put one file into place. on those
systems needing it.

another solution for me would be a unified u-boot that runs on all
soc's and all boards. Everytime we have to do something different for a
board or soc family is a step away from having something truly
universal and portable.

The only way I could see having us write a file to disk with the
environment working is if all boards implement standard variable to
define the memory locations and that is compiled into the u-boot binary.

some variables that would need to be compiled in 

fdt_addr
fdt_addr_r
kernel_addr_r
ramdisk_addr_r
pxefile_addr_r
scr_addr_r
uenv_addr_r

this should allow for for people to use boot.scr uEnv.txt or
pxe/extlinux 

Dennis

  parent reply	other threads:[~2013-08-06 16:22 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25 21:13 [U-Boot] [PATCH] wandboard: add pxe support, set default boot command like highbank dgilmore at fedoraproject.org
2013-07-26 13:52 ` Otavio Salvador
     [not found]   ` <20130726192012.1634241e@adria.ausil.us>
2013-07-29 18:47     ` Otavio Salvador
2013-07-31 23:01 ` Rob Herring
2013-07-31 23:27   ` Robert Nelson
2013-08-01  8:53     ` Stefano Babic
2013-08-01 17:06       ` Dennis Gilmore
2013-08-02  9:25         ` Stefano Babic
2013-08-04 20:00         ` Wolfgang Denk
2013-08-04 20:27           ` Tom Rini
2013-08-04 21:03             ` Wolfgang Denk
2013-08-04 21:47               ` Tom Rini
2013-08-04 22:11                 ` Wolfgang Denk
2013-08-05 15:33                   ` Tom Rini
2013-08-05 16:29                     ` Otavio Salvador
2013-08-05 19:09                       ` Tom Rini
2013-08-05 20:36                         ` Wolfgang Denk
2013-08-05 20:44                           ` Tom Rini
     [not found]           ` <20130804163442.31dca315@adria.ausil.us>
2013-08-04 22:26             ` Wolfgang Denk
2013-08-04 23:06           ` Dennis Gilmore
2013-08-01 17:19       ` Rob Herring
2013-08-02  9:14         ` Stefano Babic
2013-08-04 19:53           ` Wolfgang Denk
2013-08-04 20:14           ` Tom Rini
2013-08-05  2:21           ` Rob Herring
2013-08-05  5:29             ` Wolfgang Denk
2013-08-05 16:07               ` Tom Rini
2013-08-05 20:28                 ` Wolfgang Denk
2013-08-05 20:42                   ` Tom Rini
2013-08-05 22:16               ` Rob Herring
2013-08-06 11:37                 ` Wolfgang Denk
2013-08-06 15:50                   ` Stephen Warren
2013-08-06 16:18                     ` Otavio Salvador
2013-08-06 16:54                       ` Stephen Warren
2013-08-06 16:58                         ` Otavio Salvador
2013-08-06 17:12                           ` Stephen Warren
2013-08-06 17:17                             ` Otavio Salvador
2013-08-06 21:37                           ` Tom Rini
2013-08-06 21:44                             ` Otavio Salvador
2013-08-06 21:45                             ` Otavio Salvador
2013-08-06 16:22                   ` Dennis Gilmore [this message]
2013-08-06 16:29                     ` Otavio Salvador
2013-08-06 20:05                     ` Stephen Warren
2013-08-06 21:42                     ` Tom Rini
2013-08-06 23:11                       ` Dennis Gilmore
2013-08-07 13:19                         ` Tom Rini
2013-08-07 23:04                           ` Dennis Gilmore
2013-08-08 15:26                             ` Tom Rini
2013-08-10 20:50                               ` Dennis Gilmore
2013-08-12 13:49                                 ` Tom Rini
2013-08-04 20:32         ` 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=20130806112222.2b84df43@adria.ausil.us \
    --to=dennis@ausil.us \
    --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