Skip to contentSkip to conversation

autoboot in U-boot

U-Boot-Users Sung 2 participants 2 messages Jul 18, 2003

lore
Share & tools
lore

Sung

author
#0 lore raw

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.

#1 lore raw
Quoted 5 lines · In message <[email protected]> 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!!!

...

Quoted 1 line

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

Signature · 4 lines
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.