linux-mips
[Top] [All Lists]

Re: kexec on mips - anyone has it working?

To: Tomasz Chmielewski <mangoo@wpkg.org>
Subject: Re: kexec on mips - anyone has it working?
From: Nicolas Schichan <nschichan@freebox.fr>
Date: Tue, 1 Jul 2008 15:42:28 +0200
Cc: linux-mips@linux-mips.org, Kexec Mailing List <kexec@lists.infradead.org>, openwrt-devel@lists.openwrt.org
In-reply-to: <483FE764.1090901@wpkg.org>
Organization: Freebox
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <483BCB75.4050901@wpkg.org> <200805301327.11925.nschichan@freebox.fr> <483FE764.1090901@wpkg.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
On Friday 30 May 2008 13:39:16 Tomasz Chmielewski wrote:

Hello,

> Nicolas Schichan schrieb:
> > On Thursday 29 May 2008 22:15:47 Tomasz Chmielewski wrote:
> >> Will call new kernel at 00305000
> >
> > The calling address of the kernel looks quite wrong, it should clearly
> > be inside the KSEG0 zone. could  you please indicate the output of the
> > command "mips-linux-readelf -l vmlinux" ?
>
> # uname -m
> mips
> # readelf -l vmlinux
>
> Elf file type is EXEC (Executable file)
> Entry point 0x80251b50

This is  quite surprising.   The jump address  that kexec will  use is
cleary not what  I expected. I would have expected it  to be the Entry
point address given by readelf.

could  you try  the  following patch  to  make sure  that the  kimage*
structure is not corrupted by the code in machine_kexec() ?

Index: linux/arch/mips/kernel/machine_kexec.c
===================================================================
--- linux/arch/mips/kernel/machine_kexec.c      (revision 8056)
+++ linux/arch/mips/kernel/machine_kexec.c      (working copy)
@@ -49,6 +49,8 @@
        unsigned long entry;
        unsigned long *ptr;
 
+       printk("image->start = %p", image->start);
+
        reboot_code_buffer =
          (unsigned long)page_address(image->control_code_page);
 


Regards,

-- 
Nicolas Schichan



<Prev in Thread] Current Thread [Next in Thread>