Hi,
19.05.2012 18:10, Brian J. Murrell:
[...]

To do this though, I need a kexec-ing image I can flash to my router to
become my "boot loader".

Anyone got one for an ar71xx?
Yes. I sometimes use kexec to chain-boot debian from USB hard disk on wndr3800. I'm using backfire 10.03.1 slightly patched and customized for my specific needs. So generally it is doable, but not quite out-of-the-box apparently.

Somewhat related, Quentin Armitage proposed a block-extroot-kexec to do
just this at
https://lists.openwrt.org/pipermail/openwrt-devel/2010-April/006671.html.
I wonder why it didn't even get a comment, nevermind not getting
committed.  Was there objection to it?
No idea. Anyway, most probably it won't work for ar71xx as is because of yet 2 issues (as of 10.03.1):

First:
--- 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);

Second: drivers for onboard network stuff have to be compiled as modules and must NOT be loaded before kexecing, or otherwise kexec'ed system would crash at random points for some reason.

Finally, IIRC kexec feature was not even enabled by default in the kernel in backfire (though I might be wrong).

HTH
Nikolai


I would really love to see the openwrt project itself producing
"bootloader" flash images in addition to the traditional images they
currently produce so that people wanting this feature didn't have to
roll their own.

Any chance of that happening?

Cheers,
b.




_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to