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, 27 May 2008 14:49:44 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <483C0135.9070203@wpkg.org>
Organization: Freebox
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <483BCB75.4050901@wpkg.org> <200805271405.55346.nschichan@freebox.fr> <483C0135.9070203@wpkg.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
On Tuesday 27 May 2008 14:40:21 you wrote:
> > Could you try to add the following line in machine_kexec.c, just before
> > jumping to the trampoline:
> >
> >        change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
>
> And machine_kexec.c file is in where? It's not in the above one, it's
> not in kexec-tools-testing-20080324?


machine_kexec.c is in the kernel not in the kexec userland tools.

it's in arch/mips/kernel/machine_kexec.c, just apply the following patch:

--- linux/arch/mips/kernel/machine_kexec.c      (revision 8056)
+++ linux/arch/mips/kernel/machine_kexec.c      (working copy)
@@ -81,5 +81,6 @@
        printk("Will call new kernel at %08lx\n", image->start);
        printk("Bye ...\n");
        __flush_cache_all();
+       change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
        ((noretfun_t) reboot_code_buffer)();
 }



-- 
Nicolas Schichan



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