* Re: [Fastboot] [Patch] Kexec-tools: Fix physcal address value in vmcore ELF segment header
@ 2006-09-21 11:15 Horms
2006-09-21 20:44 ` Vivek Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Horms @ 2006-09-21 11:15 UTC (permalink / raw)
To: linux-ia64
On Thu, Sep 21, 2006 at 01:01:04PM +0800, Zou Nan hai wrote:
>
> I used fixed 64M as physical offset in vmcore ELF segment header.
> This gives trouble to crash utility to analyze vmcore on platform that
> load kernel to a different address.
>
> This patch will fix it.
>
> Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Thanks,
I have merged this into kexec-tools-testing
Signed-off-by: Simon Horman <horms@verge.net.au>
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Fastboot] [Patch] Kexec-tools: Fix physcal address value in vmcore ELF segment header
2006-09-21 11:15 [Fastboot] [Patch] Kexec-tools: Fix physcal address value in vmcore ELF segment header Horms
@ 2006-09-21 20:44 ` Vivek Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Vivek Goyal @ 2006-09-21 20:44 UTC (permalink / raw)
To: linux-ia64
On Thu, Sep 21, 2006 at 01:01:04PM +0800, Zou Nan hai wrote:
>
> I used fixed 64M as physical offset in vmcore ELF segment header.
> This gives trouble to crash utility to analyze vmcore on platform that
> load kernel to a different address.
>
> This patch will fix it.
>
> Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
>
> diff -Nraup kexec-tools-1.101/kexec/arch/ia64/crashdump-ia64.c kexec-tools-1.101-fix/kexec/arch/ia64/crashdump-ia64.c
> --- kexec-tools-1.101/kexec/arch/ia64/crashdump-ia64.c 2006-09-20 15:29:29.000000000 +0800
> +++ kexec-tools-1.101-fix/kexec/arch/ia64/crashdump-ia64.c 2006-09-20 15:32:27.000000000 +0800
> @@ -28,7 +28,7 @@
> #include "crashdump-ia64.h"
>
> int memory_ranges = 0;
> -#define LOAD_OFFSET (0xa000000000000000UL + 0x100000000UL - (1UL<<26))
> +#define LOAD_OFFSET (0xa000000000000000UL + 0x100000000UL - kernel_code_start)
This will work as long as virtual address for which kernel is being compiled
remains same. (I guess, 0xa000000000000000UL + 0x100000000UL). If you shift
the kernel little bit in virtual address space, this assumption will be
broken.
That's why I put a patch to read /proc/kcore and determine for which
virtual address the kernel has been built and there is no hardcoding.
(Thanks to Eric for the suggestion.)
-Vivek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-21 20:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-21 11:15 [Fastboot] [Patch] Kexec-tools: Fix physcal address value in vmcore ELF segment header Horms
2006-09-21 20:44 ` Vivek Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox