public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Re: boot commands
       [not found] <406B2558.2070000@icarus.com>
@ 2004-03-31 20:36 ` Stephen Williams
  2004-03-31 20:57   ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Williams @ 2004-03-31 20:36 UTC (permalink / raw)
  To: u-boot

Stephen Williams wrote:
> 
> I am setting up my device to autoboot, and I want to compile
> in a default boot command (a la CONFIG_BOOTCOMMAND) and only
> use the bootcmd variable if it is defined. I want to use the
> other environment for other things, though.
> 
> It appears to me, though, that in main.c autoboot will be
> prevented if getenv("bootcmd") returns 0, no matter what
> the CONFIG_BOOTCOMMAND value is set.
> 
> Am I mis-reading this? Is this an error in need of fixing?
> 

Arg! It seems like *all* the autoboot related variables, including
BOOTARGS and AUTOBOOT_PROMPT are ignored if there is *any*
environment. This makes no sense to me. Surely people want to
set per-board stuff in environment and keep common autoboot
settings compiled in. My BOOTCOMMAND and BOOTARGS together are
too large to fit into my 256byte EEPROM.

-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at XXXXXXXXXX           But I have promises to keep,
http://www.XXXXXXXXXX         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Re: boot commands
  2004-03-31 20:36 ` [U-Boot-Users] Re: boot commands Stephen Williams
@ 2004-03-31 20:57   ` Wolfgang Denk
  2004-03-31 21:15     ` Stephen Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2004-03-31 20:57 UTC (permalink / raw)
  To: u-boot

In message <31968-89888@sneakemail.com> you wrote:
>
> Arg! It seems like *all* the autoboot related variables, including
> BOOTARGS and AUTOBOOT_PROMPT are ignored if there is *any*
> environment. This makes no sense to me. Surely people want to

Wrong. They are not ignored. They are  used  to  define  the  DEFAULT
environment.

> set per-board stuff in environment and keep common autoboot
> settings compiled in. My BOOTCOMMAND and BOOTARGS together are
> too large to fit into my 256byte EEPROM.

You misunderstand  how  the  environment  works.  There  are  no  two
separate  sets,  it  is only one set, which gets pre-initialized form
the default settings, which get used in case of corrupted checksum or
so...

If you cannot fit your environment in 256  bytes  you  should  use  a
bigger   EEPROM.   Or  even  better  (much  more  reliable)  put  the
environment in flash.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"If the code and  the  comments  disagree,  then  both  are  probably
wrong."                                                - Norm Schryer

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Re: boot commands
  2004-03-31 20:57   ` Wolfgang Denk
@ 2004-03-31 21:15     ` Stephen Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Williams @ 2004-03-31 21:15 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wd-at-denx.de |u-boot-users| wrote:
> In message <31968-89888@sneakemail.com> you wrote:
> 
>>Arg! It seems like *all* the autoboot related variables, including
>>BOOTARGS and AUTOBOOT_PROMPT are ignored if there is *any*
>>environment. This makes no sense to me. Surely people want to
> 
> 
> Wrong. They are not ignored. They are  used  to  define  the  DEFAULT
> environment.
> 
> 
>>set per-board stuff in environment and keep common autoboot
>>settings compiled in. My BOOTCOMMAND and BOOTARGS together are
>>too large to fit into my 256byte EEPROM.
> 
> 
> You misunderstand  how  the  environment  works.  There  are  no  two
> separate  sets,  it  is only one set, which gets pre-initialized form
> the default settings, which get used in case of corrupted checksum or
> so...

Ah, I get it now. And yes, it does make sense. I was able to
find more EEPROM space and when I cleared out the EEPROM, I
got my compiled in values, which I was then able to store into
the EEPROM and use there from then on. Autoboot is happy now,
and so am I.

Thanks,
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at XXXXXXXXXX           But I have promises to keep,
http://www.XXXXXXXXXX         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-31 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <406B2558.2070000@icarus.com>
2004-03-31 20:36 ` [U-Boot-Users] Re: boot commands Stephen Williams
2004-03-31 20:57   ` Wolfgang Denk
2004-03-31 21:15     ` Stephen Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox