linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Handling power failure - MPC5200
@ 2004-11-05 14:48 VanBaren, Gerald (AGRE)
  2004-11-05 15:09 ` Mark Chambers
  0 siblings, 1 reply; 9+ messages in thread
From: VanBaren, Gerald (AGRE) @ 2004-11-05 14:48 UTC (permalink / raw)
  To: linuxppc-embedded


> -----Original Message-----
> From: linuxppc-embedded-bounces@ozlabs.org=0D
> [mailto:linuxppc-embedded-bounces@ozlabs.org] On Behalf Of=0D
> J=F3n Benediktsson
> Sent: Friday, November 05, 2004 9:14 AM
> To: Wolfgang Denk
> Cc: linuxppc-embedded@ozlabs.org
> Subject: Re: Handling power failure - MPC5200
>=0D
> > In message <OF368071C2.FBC6B7BC-ON00256F42.003F3DF3-00256F42.
> > 0044E8BB@marel.is> you wrote:
> > >=0D
> > > Capacitors on the supply provide me with some=0D
> milliseconds to repond
> to=0D
> > > power failure, which I would
> > > like to use to do as much cleanup as possible before power is=0D
> > > totally gone.  In particular, I am concerned
> >=0D
> > How many is "some"? If it's not >100 or so it is probably =0D
> not  worht=0D
> > the effort...
>=0D
> With the current design "some" is <50, but we can change the=0D
> design if we find it necessary.
> =0D
> >=0D
> > Use the standard methods: use the CF card read-only  (many =0D
> CF  cards=0D
> > can  be  damaged  [beyond  repair]  when  you power off=0D
> while a write=0D
> > operation is in progress).
>=0D
> Is this an acknowledged fact by CF manufacturers or based on=0D
> experiece ?
>=0D
> Thank you very much for your input.
>=0D
> Regards,
> J=F3n Benediktsson
> Marel hf.

Hi J=F3n,

Read the CF card detailed specifications carefully (and if it ain't in=
 writing, it ain't real).

What I've seen is marketing bullet points saying the cards can survive a=
 power loss event with no loss of data, but when I read the detailed CF=
 specification, the disclaimer was that power had to be held up for X mSec=
 (I forgot what X was, 2mSec or 10mSec most likely) after the last write=
 operation.  The marketing bullet point was exactly that: marketing.  The=
 real requirement levied on the user (you) was that you had to have X mSec=
 power hold up after the last write operation (i.e. a X mSec power fail=
 warning with no write operations after the PF warning).  The hold-up=
 requirement gave the CF internals enough time to complete a flash write=
 cycle.

gvb

******************************************
The following messages are brought to you by the Lawyers' League of=
 IdioSpeak:

******************************************
The information contained in, or attached to, this e-mail, may contain=
 confidential information and is intended solely for the use of the=
 individual or entity to whom they are addressed and may be subject to=
 legal privilege.  If you have received this e-mail in error you should=
 notify the sender immediately by reply e-mail, delete the message from=
 your system and notify your system manager.  Please do not copy it for any=
 purpose, or disclose its contents to any other person.  The views or=
 opinions presented in this e-mail are solely those of the author and do=
 not necessarily represent those of the company.  The recipient should=
 check this e-mail and any attachments for the presence of viruses.  The=
 company accepts no liability for any damage caused, directly or=
 indirectly, by any virus transmitted in this email.
******************************************

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Handling power failure - MPC5200
@ 2004-11-04 12:32 Jón Benediktsson
  2004-11-04 16:22 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Jón Benediktsson @ 2004-11-04 12:32 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

Hi

I am running Linux 2.4.25, based on linux_2_4_devel from Denx, on a custom 
MPC5200 board.
The boad has a TPS3705 chip for reset and watchdog.  The chip also 
provides a powerfail interrupt
when the supply voltage goes below a certain level, which is connected to 
IRQ0 on the MPC5200.

Capacitors on the supply provide me with some milliseconds to repond to 
power failure, which I would
like to use to do as much cleanup as possible before power is totally 
gone.  In particular, I am concerned
with trying to prevent damage to filesystems.  The board has Compact Flash 
and onboard flash which
are used as filesystems.  The board will be used as an industrial 
controller.

Can anyone point me to examples of how this can be handled ?
Can anyone share experience of a similar setup, which filesystems to 
select etc ?

Regards,
Jón Benediktsson
Marel hf

[-- Attachment #2: Type: text/html, Size: 1467 bytes --]

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

end of thread, other threads:[~2004-11-06  1:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-05 14:48 Handling power failure - MPC5200 VanBaren, Gerald (AGRE)
2004-11-05 15:09 ` Mark Chambers
2004-11-05 20:47   ` Wolfgang Denk
2004-11-05 21:26     ` Mark Chambers
2004-11-06  0:52       ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-11-04 12:32 Jón Benediktsson
2004-11-04 16:22 ` Wolfgang Denk
2004-11-05 14:13   ` Jón Benediktsson
2004-11-05 14:32     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).