public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kdump: Trouble reading /dev/oldmem from capture kernel
@ 2011-08-05 21:01 Seemanta Dutta
  2011-08-09  7:41 ` Mika Westerberg
  0 siblings, 1 reply; 2+ messages in thread
From: Seemanta Dutta @ 2011-08-05 21:01 UTC (permalink / raw)
  To: linux-kernel

Greetings kernel hackers,

I am trying to dump the raw memory from the /dev/oldmem device from within
a kexec()'ed capture kernel. But it seems to be that I can only read 4k of
data from /dev/oldmem. I am following the kdump documentation given in:
http://www.mjmwired.net/kernel/Documentation/kdump/. And according to the
documentation in the above link, /dev/oldmem *should* present the raw view
of memory.

Some details about my scenario:
1. Production kernel panics, and I boot into the dump capture kernel
without any issues.

2. Dump capture kernel provides two interfaces to access 'old' kernel
memory (as per kdump dpcumentation): /dev/oldmem and /proc/vmcore. The
latter works perfectly. But I am more interested in the raw memory, rather
than the core file.

My expectation in this scenario was that I would be able to access entire
physical RAM using the /dev/oldmem device. But turns out, I can't.

I would be grateful if anyone pointed out if I was doing something wrong
or missing something.

This is happening over ARM. Could that have to do something with this ?
Not sure if the ARM integration of KDUMP/KEXEC has something to do with
it.

Your help would be greatly appreciated!

regards,
Seemanta

--

Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum



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

* Re: kdump: Trouble reading /dev/oldmem from capture kernel
  2011-08-05 21:01 kdump: Trouble reading /dev/oldmem from capture kernel Seemanta Dutta
@ 2011-08-09  7:41 ` Mika Westerberg
  0 siblings, 0 replies; 2+ messages in thread
From: Mika Westerberg @ 2011-08-09  7:41 UTC (permalink / raw)
  To: Seemanta Dutta; +Cc: linux-kernel

On Fri, Aug 05, 2011 at 02:01:03PM -0700, Seemanta Dutta wrote:
> 
> 2. Dump capture kernel provides two interfaces to access 'old' kernel
> memory (as per kdump dpcumentation): /dev/oldmem and /proc/vmcore. The
> latter works perfectly. But I am more interested in the raw memory, rather
> than the core file.

Is there some specific reason to use /dev/oldmem instead? At least I've
never needed that interface. crash utility works pretty well with
/dev/vmcore.

> My expectation in this scenario was that I would be able to access entire
> physical RAM using the /dev/oldmem device. But turns out, I can't.
> 
> I would be grateful if anyone pointed out if I was doing something wrong
> or missing something.
> 
> This is happening over ARM. Could that have to do something with this ?
> Not sure if the ARM integration of KDUMP/KEXEC has something to do with
> it.

I haven't tried lately but it looks like ARM is missing setting of
'saved_max_pfn' which could explain why it works that way.

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

end of thread, other threads:[~2011-08-09  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-05 21:01 kdump: Trouble reading /dev/oldmem from capture kernel Seemanta Dutta
2011-08-09  7:41 ` Mika Westerberg

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