[U-Boot-Users] Question about Bad CRC

Rugunda, Solo Solomon.Rugunda at nov.com
Wed Jul 16 00:13:44 CEST 2008


Wolfgang, 

1. I think I might be making an error with the syntax. Can you verify
that this is the exact correct syntax to fix the Bad CRC (quotations,
colons etc)
(or am I making an error somewhere in the syntax)

#define CONFIG_PREEBOOT "setenv preboot 'setenv preboot;saveenv';"


2. And also can you verify that I would add this line in the file that I
am adding this line of code to is at91rm9200dk.h in
/u-boot/include/configs

Thanks a lot


-----Original Message-----
From: wd at denx.de [mailto:wd at denx.de] 
Sent: Wednesday, May 21, 2008 1:43 PM
To: Rugunda, Solo
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Question about Bad CRC

In message <7773DF3D5AD05647B155E7F56554B45CB35ED6 at srvhouexc13.nov.com>
you wrote:
> 
> I know that with UBoot, to fix the Bad CRC, all you have to do is to
> type saveenv during the boot process. However, what if someone does
not
> have access to a terminal to be able to type in the saveenv command?

If you don't have access to the  console,  you  won;t  even  see  the
warning  message,  so  just ignore it and continue to use the default
environment. Where's the problem?

> Basically, I want to know of a way that a Bad CRC can be fixed without
a
> user having to interact with the boot up process.

You can do tricks like defining a CONFIG_PREBOOT command equivalent to
this one:

	=> setenv preboot 'setenv preboot;saveenv'

At the time of the next boot this will first delete this setting (so
it's run exactly once only), and then save the environment.

> ------_=_NextPart_001_01C8BB67.BD30E8ED
> Content-Type: text/html;
> 	charset="US-ASCII"
> Content-Transfer-Encoding: quoted-printable

Please don't post HTML here!

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How many hardware guys does it take to change a light bulb? "Well the
diagnostics say it's fine buddy, so it's a software problem."




More information about the U-Boot mailing list