-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Florian, hi devs

I just saw that you have kexec-tools running on mipsel. (great news :-)
I know that it is running as well for armeb, but it requires a small
patch against the kernel headers.

I tried hard  to express it as an openwrt-style patch, but didn't
succeed yet. Can somebody help me?

part a)
in
staging_dir/toolchain-armeb_gcc4.1.2/armeb-linux-uclibc/sys-include/asm/

a symlink is needed: arch -> arch-ixp4xx

probably not ixp4xx but something like ${BOARD}

part b)

The patch needed against the kernel comes here, but it needs to be
applied *before* the kernel-includes are moved to the staging dir,
essentially

staging_dir/toolchain-armeb_gcc4.1.2/armeb-linux-uclibc/sys-include/asm/memory.h

is the file that needs to be patched.

- --- a/include/asm-arm/memory.h  2008-07-13 23:51:29.000000000 +0200
+++ b/include/asm-arm/memory.h  2008-07-16 20:33:16.696747067 +0200
@@ -165,6 +165,7 @@
  * translation for translating DMA addresses.  Use the driver
  * DMA support - see dma-mapping.h.
  */
+#ifdef __KERNEL__
 static inline unsigned long virt_to_phys(void *x)
 {
        return __virt_to_phys((unsigned long)(x));
@@ -174,6 +175,8 @@
 {
        return (void *)(__phys_to_virt((unsigned long)(x)));
 }
+#endif
+

 /*
  * Drivers should NOT use these either.
@@ -188,6 +191,7 @@
  * memory.  Use of these is *deprecated* (and that doesn't mean
  * use the __ prefixed forms instead.)  See dma-mapping.h.
  */
+#ifdef __KERNEL__
 static inline __deprecated unsigned long virt_to_bus(void *x)
 {
        return __virt_to_bus((unsigned long)x);
@@ -197,6 +201,8 @@
 {
        return (void *)__bus_to_virt(x);
 }
+#endif
+

 /*
  * Conversion between a struct page and a physical address.



- --
Harald Schiöberg
Technische Universität Berlin | T-Laboratories | FG INET
www: http://www.net.t-labs.tu-berlin.de
Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIgIdYJgyxs71kcx4RAmGdAKDqzRe3YpGPfLNiswUQwZek7fFFNACePuid
KseaHG1PouE+11vL0+iPJtw=
=VB6/
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to