Dear developers,

This kernel patch fixes problems with kexec call on some devices.
It allows booting whole system (incl. kernel!) from e.g. USB disk.
I tested it on Asus WL-500gP v2. I suppose it would behave well on all MIPS 
machines.
Applicable to 2.6.32 and 2.6.33

Signed-off-by: Adrian Byszuk <adebex_at_gmail.com>

---

--- a/arch/mips/kernel/machine_kexec.c  2010-03-15 15:52:04.000000000 +0000
+++ b/arch/mips/kernel/machine_kexec.c  2010-03-21 15:25:13.953615489 +0000
@@ -52,7 +52,8 @@
        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);
 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to