kernel modules
Hi,
I'm asking, whether loadable modules support is working and if not, what's still missing.
I tried the current RH6.2 beta, and compiled the parport code as module. (which compiled after I copied include/asm-i386/parport.h to include/asm-ia64).
But it crashed at load time. The crash seems to be happening at a function call itself, as a printk exactly before the call is displayed and a printk right at the beginning of the called function isn't. Seems like the module hasn't been linked correctly.
I upgraded the kernel then to 2.4.0-test4, but no change.
Then I upgraded modutils to 2.3.12, and now when I do lsmod it aborts with "get_kernel_syms: Function not implemented".
As far as I can tell, browsing thru the kernel code, there is a handler for this function and also in the sys_call_table. But I couldn't find the place where this error is generated.
Any insights would be greatly appreciated.
regards,
chris
-----Original Message-----
Quoted 9 lines
From: Christian Groessler [mailto:[email protected]]
Sent: Wednesday, July 19, 2000 6:45 AM
To: [email protected]
Subject: [Linux-ia64] kernel modulesHi,
I'm asking, whether loadable modules support is working and if not, what's still missing.
Yes modules can be made to work. However there are still a work in progress, i.e. there are still bugs that need to be fix.
Quoted 10 lines
I tried the current RH6.2 beta, and compiled the parport code as module. (which compiled after I copied
include/asm-i386/parport.htoinclude/asm-ia64).But it crashed at load time. The crash seems to be happening at a function call itself, as a printk exactly before the call is displayed and a printk right at the beginning of the called function isn't. Seems like the module hasn't been linked correctly.
Unless you make changes to the Makefile they don't get linked correctly. The current IA64 version modutils can't load a module if it (or the kernel) was compiled with the -mconstant-gp flag, which is part of the CFLAGS define in arch/ia64/Makefile.
Using a 2.4.0-test1 + 0609 patch (or newer kernel) and compile without the constant-gp flag about 95% of the modules I have tried work.
Quoted 5 lines
I upgraded the kernel then to 2.4.0-test4, but no change.
Then I upgraded modutils to 2.3.12, and now when I do lsmod it aborts with "
get_kernel_syms: Function not implemented".
This is caused by a problems in the configure and makefile that cause the modutils to get link wrong for IA64. The quick fix is add USE_SYSCALL=n to the top of util/Makefile.
I hope to have a patch to fix this and a couple of other bugs out some time this week.
Quoted 9 lines
As far as I can tell, browsing thru the kernel code, there is a handler for this function and also in the
sys_call_table. But I couldn't find the place where this error is generated.Any insights would be greatly appreciated.
regards,
chris
regards
Mike
_______________________
[email protected]
Hi,
Quoted 8 lines · Mike
Quoted 6 lines
But it crashed at load time. The crash seems to be happening at a function call itself, as a printk exactly before the call is displayed and a printk right at the beginning of the called function isn't. Seems like the module hasn't been linked correctly.
Unless you make changes to the
Makefilethey don't get linked correctly. The current IA64 version modutils can't load a module if it (or the
kernel)
Quoted 1 line
was compiled with the -mconstant-gp flag, which is part of the CFLAGS
define
Quoted 4 lines
in
arch/ia64/Makefile.Using a 2.4.0-test1 + 0609 patch (or newer kernel) and compile without the constant-gp flag about 95% of the modules I have tried work.
Thanks. When compiling w/o constant-gp the parport modules work, but...
Quoted 6 lines
Quoted 3 lines
Then I upgraded modutils to 2.3.12, and now when I do lsmod it aborts with "
get_kernel_syms: Function not implemented".This is caused by a problems in the configure and makefile that cause the modutils to get link wrong for IA64. The quick fix is add USE_SYSCALL=n to the top of util/Makefile.
Regardless of USE_SYSCALL=n is there or not, I get the "Function not implemeted" error with modutils-2.3.12.
I reverted to using the (precompiled) modutils which came on the RedHat CD...
regards,
chris