* problem with insmod
@ 2004-11-04 1:40 Arrigo Benedetti
2004-11-04 14:00 ` evilninja
0 siblings, 1 reply; 4+ messages in thread
From: Arrigo Benedetti @ 2004-11-04 1:40 UTC (permalink / raw)
To: linuxppc-dev
First of all I would like to thank everyone in this list who has
answered my questions so far, especially Ben...
Now I'm trying to write and and install a kernel module on 2.6, YDL 4.0.
I compiled the example module by
Alessandro Rubin at http://www.linux.it/~rubini/docs/modules26/src.tar.gz
When I try to load it with insmod I get:
[root@localhost root]# insmod empty.ko
insmod: error inserting '/home/arrigo/linux/modules/src/empty.ko': -1
Invalid module format
After some research I found that to load a module on the 2.6 kernel one
should insmod from module-init-tools
<ftp://ftp.it.kernel.org/pub/linux/utils/kernel/module-init-tools/>,
not the default insmod from the modutils package that comes with YDL.
So I compile and install module-init-tools, but I get the same error.
Does anyone know what's going on?
Thanks
-Arrigo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with insmod
2004-11-04 1:40 problem with insmod Arrigo Benedetti
@ 2004-11-04 14:00 ` evilninja
2004-11-04 19:26 ` Arrigo Benedetti
0 siblings, 1 reply; 4+ messages in thread
From: evilninja @ 2004-11-04 14:00 UTC (permalink / raw)
To: linuxppc-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Arrigo Benedetti schrieb:
> After some research I found that to load a module on the 2.6 kernel one
yes, http://www.linux.org.uk/~davej/docs/post-halloween-2.6.txt is a good
start for 2.4 -> 2.6 upgrades.
> So I compile and install module-init-tools, but I get the same error.
> Does anyone know what's going on?
hm, are you sure the new "insmod" and "modprobe" are the *right* ones?
the PATH variable will help here or try to specify the exact path on the
cmd line. here i have:
evil@prinz:~$ /sbin/modprobe -V
module-init-tools version 3.1-pre6
vil@prinz:~$ file /sbin/modprobe*
/sbin/modprobe: ELF 32-bit LSB executable, Intel 80386, [...]
/sbin/modprobe.Lmodutils: symbolic link to `insmod'
/sbin/modprobe.modutils: symbolic link to `insmod.modutils'
Christian.
- --
BOFH excuse #391:
We already sent around a notice about that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBijXsC/PVm5+NVoYRAkspAJ9v5khRZVwpPxsmTL/v5tYKUUkrDgCg2np7
85mBGkq+rCRLwO7DJMNjoQA=
=xfHv
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with insmod
2004-11-04 14:00 ` evilninja
@ 2004-11-04 19:26 ` Arrigo Benedetti
2004-11-04 23:31 ` evilninja
0 siblings, 1 reply; 4+ messages in thread
From: Arrigo Benedetti @ 2004-11-04 19:26 UTC (permalink / raw)
To: linuxppc-dev list
evilninja wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Arrigo Benedetti schrieb:
>
>
>>After some research I found that to load a module on the 2.6 kernel one
>>
>>
>
>yes, http://www.linux.org.uk/~davej/docs/post-halloween-2.6.txt is a good
>start for 2.4 -> 2.6 upgrades.
>
>
>
>>So I compile and install module-init-tools, but I get the same error.
>>Does anyone know what's going on?
>>
>>
>
>hm, are you sure the new "insmod" and "modprobe" are the *right* ones?
>the PATH variable will help here or try to specify the exact path on the
>cmd line. here i have:
>
>evil@prinz:~$ /sbin/modprobe -V
>module-init-tools version 3.1-pre6
>vil@prinz:~$ file /sbin/modprobe*
>/sbin/modprobe: ELF 32-bit LSB executable, Intel 80386, [...]
>/sbin/modprobe.Lmodutils: symbolic link to `insmod'
>/sbin/modprobe.modutils: symbolic link to `insmod.modutils'
>
>
>
Yes, I have verified that. Someone has also suggested to check that the
compiler used to build the module
is the same compiler that build the kernel. The Makefile is below and it
seems that this is also ok.
-Arrigo
ifndef KERNELRELEASE
LINUX ?= /usr/src/linux-2.6
PWD := $(shell pwd)
all:
$(MAKE) -C $(LINUX) SUBDIRS=$(PWD) modules
clean:
rm -f *.o *.ko *~ core .depend *.mod.c *.cmd
else
obj-m := empty.o
endif
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: problem with insmod
2004-11-04 19:26 ` Arrigo Benedetti
@ 2004-11-04 23:31 ` evilninja
0 siblings, 0 replies; 4+ messages in thread
From: evilninja @ 2004-11-04 23:31 UTC (permalink / raw)
To: linuxppc-dev list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Arrigo Benedetti schrieb:
> Yes, I have verified that. Someone has also suggested to check that the
> compiler used to build the module
> is the same compiler that build the kernel. The Makefile is below and it
> seems that this is also ok.
hm, i've built module-init-tools from source too once, but now your distro
of choice will hat a binary package too, i think. maybe you can go with
this package to get modules in 2.6 running and can go on with the
debugging of your compiled version afterwards. (maybe "strace modprobe"
will help here...? or is the module itself not proper compiled? (make
mrproper)...)
just my 2¢....
- --
BOFH excuse #16:
somebody was calculating pi on the server
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBiru9C/PVm5+NVoYRAkJsAJ9JytrFkpj/y7CA8Y8fuL6oQ5WwZgCeKTsm
YW2BlwyhM24P/L4YG9uAvd0=
=BrnQ
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-04 23:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-04 1:40 problem with insmod Arrigo Benedetti
2004-11-04 14:00 ` evilninja
2004-11-04 19:26 ` Arrigo Benedetti
2004-11-04 23:31 ` evilninja
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).