All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hawkins <dwh@ovro.caltech.edu>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] why eeprom vs flash
Date: Thu, 14 Feb 2008 13:20:05 -0800	[thread overview]
Message-ID: <47B4B085.4030009@ovro.caltech.edu> (raw)
In-Reply-To: <20080214201538.A489A2483C@gemini.denx.de>



>> So, as the designer, its up to you. But keep in mind that
>> you want to make it hard for a customer to screw up, so
>> a separate EEPROM could be a good choice.
> 
> In many cases it ain't. I've seen many board which lost their  EEPROM
> contents,  typically because of edge condition problems as documented
> in the file mentioned before - a poor power supply with too slow rise
> times of the voltages makes an excellent test case. I know of systems
> where it blows the EEPROM content in 2 out of 3 boot cycles :-(

Interesting failure mode.

In the case of say the MPC8349EA, it can use an I2C EEPROM as
the boot sequencer. So if a board design really needed to
use that mode, one would need to pay attention to the
above issue - independently of whether this same EEPROM was
used to store MAC addresses or serial numbers, etc.

An example EEPROM for the boot sequencer would be the AT24C512B.
Looking at its data sheet, there is a RESET MEMORY sequence
that could be used by the processor every time it booted
to ensure that the EEPROM was not left in a write-state.
I doubt the boot sequencer does this, so that would only
be a solution for storage of the environment in the EEPROM.
A better solution, is that the part also has a write-protect
pin, which can be controlled by a GPIO. If the GPIO is
tri-stated on power-up (likely), then a pull-up on the
pin can ensure that the part can not be written to
in error.

How slow is 'too slow' for a power-supply rise time?
(doc/I2C_Edge_Conditions doesn't mention).

To ensure correct power-supply sequencing, I use hot-swap
controllers (on cPCI power supply inputs), dc-to-dc converters
with programmable turn on times and slew-rates (for PPC/FPGA
core voltages, and DDR voltages), and linear regulators with
slew-rate controls. I've got most of them set to about 5-10ms.
The PowerPC docs state it can handle about 20ms between
all supplies, while the FPGAs want under 100ms, with
monotonic ramps on them all.

I doubt that I'll see this issue, but its an interesting
problem to be aware of.

Cheers,
Dave

PS. If anyone is interested, the power supply design notes,
and board design is here:
http://www.ovro.caltech.edu/~dwh/carma_board/

  reply	other threads:[~2008-02-14 21:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14 18:38 [U-Boot-Users] why eeprom vs flash Jon Smirl
2008-02-14 18:47 ` David Hawkins
2008-02-14 18:59   ` Jon Smirl
2008-02-14 19:36     ` Edward Jubenville
2008-02-14 20:50       ` Andrew Dyer
2008-02-14 20:01     ` Jerry Van Baren
2008-02-14 20:15   ` Wolfgang Denk
2008-02-14 21:20     ` David Hawkins [this message]
2008-02-14 18:51 ` Mike Frysinger
2008-02-14 19:12 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B4B085.4030009@ovro.caltech.edu \
    --to=dwh@ovro.caltech.edu \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.