Skip to contentSkip to conversation

autoboot in U-boot

U-Boot-Users Wolfgang Denk 1 participant 1 message Jul 18, 2003 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hello,

Quoted 14 lines · in message <[email protected]> you wrote:
Quoted 2 lines

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

Quoted 1 line

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 6 lines
Quoted 3 lines

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.

Quoted 2 lines

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

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