| To: | OpenWrt Development List <openwrt-devel@lists.openwrt.org>, linux-mips@linux-mips.org |
|---|---|
| Subject: | kexec on mips |
| From: | Nikolai Zhubr <n-a-zhubr@yandex.ru> |
| Date: | Mon, 20 Feb 2012 23:13:16 +0400 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1329764843; bh=U/R5XbpG3r+JHUnzPXx1zuYexHX9mG3NbKVCkQ9QlHA=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=Fjrdp05POiwf1MESqOjeGN9bx0BTp/IG0GYy1vNirih1AY37mz9pygDhVrocN6JxW vu74CkpAaqJheetD+fkN/dH7IA310J/xEwKSPSuZObXvWqWptCWTxjnaZJebFLwjK+ CPSj82lV90+Swl+ms65doxoG76F2PQSrqxfPKcF8= |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1329764843; bh=U/R5XbpG3r+JHUnzPXx1zuYexHX9mG3NbKVCkQ9QlHA=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=Fjrdp05POiwf1MESqOjeGN9bx0BTp/IG0GYy1vNirih1AY37mz9pygDhVrocN6JxW vu74CkpAaqJheetD+fkN/dH7IA310J/xEwKSPSuZObXvWqWptCWTxjnaZJebFLwjK+ CPSj82lV90+Swl+ms65doxoG76F2PQSrqxfPKcF8= |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
Hello all,I'm running both openwrt and debian on a mips-based wndr3800 netgear router/ap and I'm using kexec to arrange kind of dual-boot in a safe and comfortable manner. Now, I've found that the following is critical for kexec to actually work:--- arch/mips/kernel/machine_kexec.c.orig 2012-02-08 01:58:13.000000000 +0300
+++ arch/mips/kernel/machine_kexec.c 2012-02-20 22:19:11.000000000 +0300
@@ -52,7 +52,7 @@
reboot_code_buffer =
(unsigned long)page_address(image->control_code_page);
- kexec_start_address = image->start;
+ kexec_start_address = (unsigned long) phys_to_virt(image->start);
kexec_indirection_page =
(unsigned long) phys_to_virt(image->head & PAGE_MASK);
I've found that in openwrt repository this change was present (among
others) in a big patchset targeted for kernel 2.6.30 and now it is still
present as a small separate patch for 2.6.38
(target/linux/generic/patches-2.6.38/303-mips_fix_kexec.patch) and maybe
others. Meanwhile, the latest _stable_ openwrt for the moment (backfire
10.03.1) was released with kernel 2.6.32 without this patch so I had to
dig through some forums to find the reason of kexec not working
out-of-the-box. I've just now checked and the latest kernel.org's stable
kernel (3.2.6) does not seem to include this either. Ok, since I know
the secret already I'll fix it for myself anytime, but maybe some kind
soul could just submit this _one_ line upstream? I'd say this feature is
really handy in some cases.
Thank you. (Please CC me, I'm not subscribed to linux-mips) Nikolai |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 11/11] MIPS: BCM47XX: provide sprom to bcma bus, Sergei Shtylyov |
|---|---|
| Next by Date: | Re: SMP MIPS and Linux 3.2, tiejun.chen |
| Previous by Thread: | SMP MIPS and Linux 3.2, Mikael Starvik |
| Next by Thread: | [PATCH v1 07/11] mips/PCI: replace pci_probe_only with pci_flags, Bjorn Helgaas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |