linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to store kernel pranic/oops
@ 2009-12-28 11:43 Marco Stornelli
  2009-12-28 12:12 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Stornelli @ 2009-12-28 11:43 UTC (permalink / raw)
  To: CeLinux, Linux Embedded

Hi,

I know the open project proposal 2010 is closed, but it's just to start
a discussion. It would be nice to save oops/panic automatically in a
structure/file in ram. At the moment there are two way to save
information: mtdoops (save the information in flash), with kdump/kexec
(we can extract the dmesg from vmcore file). With these tools there are
some drawbacks:

1) There are embedded systems without a flash where to save the information;
2) we could consider this kind of logs too volatile for a flash, I mean
there's no reason to store it for a long time, it's important to recover
and read them as soon as possible, at next boot for example.
3) kdump requires a lot of ram and resources for embedded systems.
4) kexec is available only for some archs.

It would be nice to have a "ramoops" to save in a circular buffer in a
persistent ram this kind of information. Any comments? Is there already
anything similar out-of-tree?

Marco

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

* Re: How to store kernel pranic/oops
  2009-12-28 11:43 How to store kernel pranic/oops Marco Stornelli
@ 2009-12-28 12:12 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2009-12-28 12:12 UTC (permalink / raw)
  To: Marco Stornelli; +Cc: CeLinux, Linux Embedded

On Mon, 2009-12-28 at 12:43 +0100, Marco Stornelli wrote:
> It would be nice to have a "ramoops" to save in a circular buffer in a
> persistent ram this kind of information. Any comments? Is there already
> anything similar out-of-tree? 

Can't it be done with what's in the tree already? Just create an MTD
device using phram or something else, then point mtdoops at it.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation

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

end of thread, other threads:[~2009-12-28 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-28 11:43 How to store kernel pranic/oops Marco Stornelli
2009-12-28 12:12 ` David Woodhouse

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).