Skip to contentSkip to conversation

How to use module in 2.6

DISCUSSION ocsy 8 participants 9 messages Oct 1, 2003

lore
Share & tools
lore

ocsy

author
#0 lore raw

Maybe i'm stuped but...
I'can compile linux kernel 2.6.0.test4 and after reboot i can't use module))
Can anybody help me to solve this problem!
ocsy

#1 lore raw
Quoted 4 lines · ocsy

Maybe i'm stuped but...
I'can compile linux kernel 2.6.0.test4 and after reboot i can't use module))
Can anybody help me to solve this problem!

I'm not sure If I understand you correctly, but did you do "make modules_install"?

Signature · 3 lines
AVR-Tutorial, über 350 Links
Forum für AVRGCC und MSPGCC
-> http://www.mikrocontroller.net
#2 lore raw

Yes i make it))Kernel comile and modules was done (make modules after that make modules_install)And than reboot....
But after that I type insmod <module_name> and I see on a screen a LITTLE warning (fatal error) that talk to me module can be load to the kernel becouse it have old format))
I think than I must look for modutils (witch can support kernell 2.6 new modules format) but I can't find it...

#3 lore raw

On 01 Oct 2003 15:54:00 +0400 ocsy <[email protected]> wrote:

| Yes i make it))Kernel comile and modules was done (make modules after
| that make modules_install)And than reboot....
| But after that I type insmod <module_name> and I see on a screen a
| LITTLE warning (fatal error) that talk to me module can be load to the
| kernel becouse it have old format))

insmod module.ko, not insmod module.o

Or (preferable) use modprobe module

| I think than I must look for modutils (witch can support kernell 2.6 new | modules format) but I can't find it...

modutils are for before 2.6.
2.6 uses module-init-tools only.

--
~Randy

#4 lore raw
Quoted 9 lines · Randy.Dunlap

On 01 Oct 2003 15:54:00 +0400 ocsy <[email protected]> wrote:

| Yes i make it))Kernel comile and modules was done (make modules after
| that make modules_install)And than reboot....
| But after that I type insmod <module_name> and I see on a screen a
| LITTLE warning (fatal error) that talk to me module can be load to the
| kernel becouse it have old format))

insmod module.ko, not insmod module.o

Quoted 7 lines

Or (preferable) use modprobe module

| I think than I must look for modutils (witch can support kernell 2.6 new | modules format) but I can't find it...

modutils are for before 2.6.
2.6 uses module-init-tools only.

Not really an improvement IMHO. The returned errors are unclear, the tools seem to ignore the verbose command line option. As a result I have been fighting with ALSA modules, modprobe.conf and modules.conf for days now. I've not managed to get all dependancies right yet, the only way to get my SB Live working is loading 20 modules by hand, one at a time... Somehow modprobe remains complaining about unresolved symbols.

FWIW: 2.6.0 test 6, module-init-tools 0.9.14, mandrake 9.1 with modutils deinstalled.

Jos

author
#6 lore raw
Quoted 2 lines

Did you upgrade your module-init-tools (insmod, lsmod, ....) ?
(http://www.kernel.org/pub/linux/kernel/people/rusty/modules/

Ok!I do that now))
I think it's possible that you can help me to understand what different between old module for kernell 2.4 and new module fo 2.6? And where can I look for the modutils ver 2.6?
ocsy

#7 lore raw
Quoted 9 lines · On 01 Oct 2003 15:58:06 +0400 ocsy <[email protected]> wrote:
Quoted 2 lines

Did you upgrade your module-init-tools (insmod, lsmod, ....) ?
(http://www.kernel.org/pub/linux/kernel/people/rusty/modules/

Ok!I do that now))
I think it's possible that you can help me to understand what different between old module for kernell 2.4 and new module fo 2.6? And where can I look for the modutils ver 2.6?
ocsy

the lwn webpage have a article on modules of kernel 2.6 (http://lwn.net/Articles/driver-porting/ ,exactly ) and talk about on some differences with 2.6 kernel

the new version of kernel changed much things, the load module for example, and scheduling were the most commented.

the module-init-tools that you need, you can download from http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-0.9.15-pre2.tar.gz it is last version

Oscar Peredo

#8 lore raw
Quoted 2 lines · Oscar Peredo
Quoted 1 line

the lwn webpage have a article on modules of kernel 2.6 (http://lwn.net/Articles/driver-porting/ ,exactly ) and talk about on some differences with 2.6 kernel

A really good source of information is Dave J. kernel-2.5 document. Find it on www.codemonkey.org.uk

Sam