All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] autoboot in U-boot
       [not found] <1058522316.1188.104.camel@localhost.localdomain>
@ 2003-07-18 10:15 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-07-18 10:15 UTC (permalink / raw)
  To: u-boot

Hello,

in message <1058522316.1188.104.camel@localhost.localdomain> you wrote:
> 
> > What do you get when you run the "printenv" command?
> this is what i get when i issue printenv
> 
> :>printenv
> 0A"
> $`
> $A
> .aB@
> stdgut=seri`l
> stdin=serial
> stdout=serial
> stderr=serial
> 
> Environment size: 71/262140 bytes

As you can see, the environment contains only garbage. So it is not a
big surprise that autoboot does not work  as  U-Boot  cannot  find  a
valid definition of the "bootdelay" environment variable.

My suspicion that your  environment  is  misconfigured  seems  to  be
correct.

> > Why do you reserve 512 kB for  U-Boot?  U-Boot  is  needs  much  less
> > memory!
> > 
> err .. i dunno why..  did i reserve that much? hmm where do i configure
> this. I hav just upgrade from ppcboot actually... and i am very new at
> this boot loader stuff.

All this is set in the  board's  config  file.  The  relevant  config
variables are documented in the README file.

> > Where are your environment variables stored? In flash? Embedded with
> > the U-Boot image or separate?
> > 
> environment variables?? i m really sorry, i m not sure what you are
> talkin about. Is it board.c? Everything , the u-boot, kernel and ramdisk
> is in flash.

I am talking about variables and configuration parameters that U-Boot
stores in the "environment". The envrionment can be stored in  flash,
I2C or SPI EEPROM, NVRAM, etc.

Your environment is obviously misconfigured, which is the reason  for
your problems.


> Thanks for your time in helping me out. I am sorry but I am new at this.
> Well everyone has to start learning from somewhere.

Maybe you find it useful to have a look at http://www.denx.de/re/DPLG.html

Although this does not answer your immediate questions, it might help
you to understand the concept of environment variables and what  they
can be used for.


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
All your people must learn before you can reach for the stars.
	-- Kirk, "The Gamesters of Triskelion", stardate 3259.2

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

* [U-Boot-Users] autoboot in U-boot
  2003-07-18  7:22 Sung
@ 2003-07-18  9:14 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-07-18  9:14 UTC (permalink / raw)
  To: u-boot

In message <1058512975.1188.79.camel@localhost.localdomain> you wrote:
> 
> Can someone help me on this autoboot? I successfully configured the
> u-boot-0.4.0 for mpc857 custom board but somehow the bootcommand and
> boot arg would not run, it just skip the autoboot and goes to prompt. so
> help!!!
...
> So i don't understand... where did the autoboot go??

I asked you thefollowing questions in my reply to your semi-identical
posting to linuxppc-embedded:

What do you get when you run the "printenv" command?

Why do you reserve 512 kB for  U-Boot?  U-Boot  is  needs  much  less
memory!

Where are your environment variables stored? In flash? Embedded with
the U-Boot image or separate?


Please answer these questions.


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
People seldom know what they want until you give them what  they  ask
for.

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

* [U-Boot-Users] autoboot in U-boot
@ 2003-07-18  7:22 Sung
  2003-07-18  9:14 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Sung @ 2003-07-18  7:22 UTC (permalink / raw)
  To: u-boot


hi there,

Can someone help me on this autoboot? I successfully configured the
u-boot-0.4.0 for mpc857 custom board but somehow the bootcommand and
boot arg would not run, it just skip the autoboot and goes to prompt. so
help!!!

this is part of the configuration

....................................................................
#if 0
#define CONFIG_BOOTDELAY        -1      /* autoboot disabled*/
#else
#define CONFIG_BOOTDELAY        3       /* autoboot after 3 sec */
#endif

#define CONFIG_BOOTCOMMAND      "bootm 02800000 02880000"
#define CONFIG_BOOTARGS         "root=/dev/ram rw"


#undef  CONFIG_WATCHDOG                 /* watchdog disabled*/

#define CONFIG_SCC2_ENET        1       /* use SCC2 ethernet */
#undef  CONFIG_FEC_ENET                 /* disable FEC ethernet  */

/* this must be included AFTER the definition of CONFIG_COMMANDS (if
any) */
#include <cmd_confdefs.h>

/*
 * Miscellaneous configurable options
 */
#undef  CFG_LONGHELP            /* undef to save memory*/
#define CFG_PROMPT      ":>"    /* Monitor CommandPrompt        */
..................................................................

and this is the output displayed:-

......................................................................
U-Boot 0.4.0 (Jul 18 2003 - 10:17:35)

CPU:   unknown MPC850 (0x07000003) at 48 MHz: 4 kB I-Cache 4 kB D-Cache
FEC pret
         *** Warning: CPU Core has Silicon Bugs -- Check the Errata ***
SDRAM:  16 MB
Top of RAM usable for U-Boot at: 01000000
Reserving 512k for U-Boot at: 00f80000
Reserving 256k for malloc() at: 00f40000
Reserving 60 Bytes for Board Info at: 00f3ffc4
Reserving 52 Bytes for Global Data at: 00f3ff90
Stack Pointer at: 00f3ff78
New Stack Pointer is: 00f3ff78
Now running in RAM - U-Boot at: 00f80000
FLASH:  8 MB
In:    serial
Out:   serial
Err:   serial
U-Boot relocated to 00f80000
Net:   SCC ETHERNET
:>
:>

...................................................................

So i don't understand... where did the autoboot go??

the u-boot is store in flash 0x2b00000
the kernel is store in flash 0x2800000
and the ramdisk is in flash  0x2880000


hmm.... thanks guys


regards,
Mike G.

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

end of thread, other threads:[~2003-07-18 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1058522316.1188.104.camel@localhost.localdomain>
2003-07-18 10:15 ` [U-Boot-Users] autoboot in U-boot Wolfgang Denk
2003-07-18  7:22 Sung
2003-07-18  9:14 ` Wolfgang Denk

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.