All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robherring2@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] wandboard: add pxe support, set default boot command like highbank
Date: Thu, 01 Aug 2013 12:19:13 -0500	[thread overview]
Message-ID: <51FA9891.9040000@gmail.com> (raw)
In-Reply-To: <51FA221D.5090006@denx.de>

On 08/01/2013 03:53 AM, Stefano Babic wrote:
> Hi Dennis,
> 
> On 01/08/2013 01:27, Robert Nelson wrote:
> 
>>> kernel_boot=echo Trying kernel...; ${fs}load ${devtype} ${devnum}
>>> ${kernel_addr_r} ${prefix}vmlinuz && ${fs}load ${devtype} ${devnum}
>>> ${ramdisk_addr_r} ${prefix}initrd.img && bootz ${kernel_addr_r}
>>> ${ramdisk_addr_r}:${filesize} ${fdt_addr}
>>> script_boot=echo Trying script images...; for script in
>>> ${boot_scripts}; do ${fs}load ${devtype} ${devnum} ${script_addr}
>>> ${prefix}${script} && echo Executing ${prefix}${script}... && source
>>> ${script_addr}; done;
>>> env_boot=echo Trying environment file...; ${fs}load ${devtype}
>>> ${devnum} ${script_addr} ${prefix}uEnv.txt && Executing
>>> ${prefix}uEnv.txt... && env import -t  ${script_addr} ${filesize}};
>>
>> Guys, this is just silly.. Your using both uEnv.txt/boot.scr scripts
>> by default, which you could use to "hide" all this extra stuff in a
>> text file on the boot drive, that way mainline u-boot doesn't have to
>> be patched for every little change. ;)
>>
>> I know it's bikeshedding, but most boards can be converted to just:
>>
>> #define CONFIG_BOOTCOMMAND \
>> 	"mmc dev ${mmcdev};" \
>> 	"if mmc rescan; then " \
>> 		"echo SD/MMC found on device ${mmcdev};" \
>> 		"if run loadbootenv; then " \
>> 			"run importbootenv;" \
>> 		"fi;" \
>> 		"if test -n $uenvcmd; then " \
>> 			"echo Running uenvcmd ...;" \
>> 			"run uenvcmd;" \
>> 		"fi;" \
>> 		"if run loadsomefailsafedefault; then " \
>> 			"run mmcboot;" \
>> 		"fi;" \
>> 	"fi;"
>> #endif

That really works great on boards that don't have SD...

>>
> 
> Right - the meaning of CONFIG_EXTRA_ENV_SETTINGS is to have a minimal
> default environment, allowing the user to extend it to a full blown
> adding whatever he wants. However, in the last times I see that the
> meaning is moving to *the environment*. There is something wrong,  also
> because, as Robert says, each small change require to patch u-boot. But
> then, why do you need the environment at all ?
> 
> And the setup is then suitable for a strict range of applications, but
> not all.

You both are missing the point. This patch doesn't address the problem,
but does highlight it. The distros want to get out of having to know the
u-boot environment details for every single board and need some level of
standardization across platforms. The distros should only have to
specify "boot the kernel at path/name X on device Y." They should not
need to know what address to load the kernel to, but only that
$kernel_addr_r is already setup. Variables are the first step. The
second step is standardizing the boot commands.

Rob

  parent reply	other threads:[~2013-08-01 17:19 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 [this message]
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
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=51FA9891.9040000@gmail.com \
    --to=robherring2@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.