Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Tue, 27 May 2008 05:50:20 -0700
Received: from dalesmta2-2.messageone.com ([129.41.169.249]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Tue, 27 May 2008 05:50:20 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by dalesmta2-2.messageone.com (8.13.8/8.13.8) with ESMTP id m4RCoIB0019376
	for <andy.sharp@onstor.com>; Tue, 27 May 2008 07:50:19 -0500
Received: from localhost.localdomain ([127.0.0.1]:36068 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S20044078AbYE0MuF (ORCPT <rfc822;andy.sharp@onstor.com>);
	Tue, 27 May 2008 13:50:05 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 27 May 2008 13:49:49 +0100 (BST)
Received: from bobafett.staff.proxad.net ([213.228.1.121]:46006 "HELO
	bobafett.staff.proxad.net") by ftp.linux-mips.org with SMTP
	id S20044076AbYE0Mtr (ORCPT <rfc822;linux-mips@linux-mips.org>);
	Tue, 27 May 2008 13:49:47 +0100
Received: from localhost (localhost [127.0.0.1])
	by bobafett.staff.proxad.net (Postfix) with ESMTP id 807A916586;
	Tue, 27 May 2008 14:49:46 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at staff.proxad.net
Received: from bobafett.staff.proxad.net ([127.0.0.1])
	by localhost (bobafett.staff.proxad.net [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id U6O4-c5-g8bx; Tue, 27 May 2008 14:49:45 +0200 (CEST)
Received: from nschichan.priv.staff.proxad.net (nschichan.priv.staff.proxad.net [172.18.3.120])
	by bobafett.staff.proxad.net (Postfix) with ESMTP id 46763F232;
	Tue, 27 May 2008 14:49:45 +0200 (CEST)
From: Nicolas Schichan <nschichan@freebox.fr>
Organization: Freebox
To: Tomasz Chmielewski <mangoo@wpkg.org>
Subject: Re: kexec on mips - anyone has it working?
Date: 	Tue, 27 May 2008 14:49:44 +0200
User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405)
References: <483BCB75.4050901@wpkg.org> <200805271405.55346.nschichan@freebox.fr> <483C0135.9070203@wpkg.org>
In-Reply-To: <483C0135.9070203@wpkg.org>
Cc: linux-mips@linux-mips.org
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200805271449.45124.nschichan@freebox.fr>
X-archive-position: 19363
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: nschichan@freebox.fr
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-05-27_02:2008-05-26,2008-05-27,2008-05-27 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0805270069
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 27 May 2008 12:50:20.0249 (UTC) FILETIME=[389A4C90:01C8BFF8]

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



