From: Mitch D. <mj...@al...> - 2000-09-23 07:25:59
|
>Mitch Davis wrote: > >> I would like to be able to use kernel modules with >> the latest 2.4.x kernel. Does anyone know how >> to do this? > >Hi Mitch, > >I wrote a insmod.c patch for the BusyBox project which enables their >insmod to load SH modules. It seems to work OK with my module code, but >it complains about some symbols not being availible if I try to load >modules built from the kernel sources (af_packet, ramfs, dummy, >etc)--usually it's memset, memcpy, etc but sometimes flush_dcache_page >is also unresolved. I'm not sure if this is a problem with my patch or >with the kernel code, but if you want to give it a shot: Thanks Bryan, I really appreciate that. Actually, David McKay also sent me his version, which was great. I compiled his version (based on modutils 2.3.7) and had the same problem. I fixed it quite simply by adding these lines to arch/sh/kernel/sh_ksyms.c: #include <asm/pgtable.h> EXPORT_SYMBOL(flush_dcache_page); EXPORT_SYMBOL(memset); EXPORT_SYMBOL(memcpy); (I don't know if this is the way to really fix it - simply does not imply correctly!) I too compiled busybox this evening. Wow, it's truly impressive! >CVS kernel code. Did the module interface change between 2.2 and 2.4, >causing modutils-2.1.121 to have trouble loading 2.4 modules? (I based >my patch on an SH patch for 2.1.121). Yes I'm fairly sure it did. Anyway, my thanks again to you and David. Regards, Mitch. http://www.alphalink.com.au/ |