public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Environment in EEPROM on MPC5200 based board
@ 2004-12-07  8:39 Sebastian Schau
  2004-12-07  9:56 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Schau @ 2004-12-07  8:39 UTC (permalink / raw)
  To: u-boot

Hi all,
I'm using Lite5200 Board and tried to configure U-Boot to have
environment in EEPROM. I use Hard I2C driver an everything works fine
when the environment is in flash.
When setting CFG_ENV_IS_IN_EEPROM U-Boot don't start (hang-up before any 
messages are printed on screen).
If anyone know something about this problem, any help is greatly 
appreciated.

Thanks, Sebastian

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

* [U-Boot-Users] Environment in EEPROM on MPC5200 based board
  2004-12-07  8:39 [U-Boot-Users] Environment in EEPROM on MPC5200 based board Sebastian Schau
@ 2004-12-07  9:56 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2004-12-07  9:56 UTC (permalink / raw)
  To: u-boot

Hallo, Herr Schau!

In message <41B56C25.8070906@MAZeT.de> you wrote:
>
> I'm using Lite5200 Board and tried to configure U-Boot to have
> environment in EEPROM. I use Hard I2C driver an everything works fine

Why don't you keep the environment in flash as it is no?

In my opinion using the environment in  EEPROM  is  just  asking  for
trouble. It has serious disadvantages:

* Loooooong boot  times,  which  are  also  not  deterministic  (just
  setting  the  board  to a new console baud rate can double the boot
  time, etc.)

* Less reliable -- in flash, you can have redundand flash sectors; so
  far I never heard  of  a  single  case  of  data  loss  in  such  a
  configuration. In EEPROM, you may experience the infamous "I2C Edge
  Conditions"  problem  (see  doc/I2C_Edge_Conditions)  - I have seen
  cases where a failing power supply caused slow voltage rise  times;
  when powering on such a board, the CPU would start to run, then the
  watchdog  would  resert it because the voltages were still too low.
  This happened 2...5 times for each power on. In  the  end  the  CPU
  would  run  fine,  but in 2 out of 3 boot cycles the environment in
  EEPROM was lost because of the Edge Conditions problem.

I _strongly_ recommend NOT to put the envrionment in EEPROM (nor  any
other critical data).

> When setting CFG_ENV_IS_IN_EEPROM U-Boot don't start (hang-up before any 
> messages are printed on screen).

Maybe you have some debugging enabled? This will try to use  printf()
to  the  console  when  the  "badrate"  variable  is  being  read  to
initialize the console --> deadlock.

> If anyone know something about this problem, any help is greatly 
> appreciated.

Just don't do it.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If a group of N persons implements a COBOL compiler,  there  will  be
N-1 passes. Someone in the group has to be the manager. - T. Cheatham

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

end of thread, other threads:[~2004-12-07  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07  8:39 [U-Boot-Users] Environment in EEPROM on MPC5200 based board Sebastian Schau
2004-12-07  9:56 ` Wolfgang Denk

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