LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where do I find modules (https://www.linuxquestions.org/questions/linux-newbie-8/where-do-i-find-modules-503860/)

Kansalliskala 11-22-2006 04:57 AM

where do I find modules
 
(have been using linux since 1998 but feel like newbie..) I think I need irtty_sir.o but don't know where to find it. Tried sourceforge.net but they only offer "programs". Kernel.org has just kernels.

matthewg42 11-22-2006 05:22 AM

when I do "locate irtty_sir", I get:
Code:

/lib/modules/2.6.17-10-generic/kernel/drivers/net/irda/irtty-sir.ko
/lib/modules/2.6.17-10-386/kernel/drivers/net/irda/irtty-sir.ko
/usr/src/linux-headers-2.6.17-10-generic/include/config/irtty
/usr/src/linux-headers-2.6.17-10-generic/include/config/irtty/sir
/usr/src/linux-headers-2.6.17-10-generic/include/config/irtty/sir/module.h

What distro are you using?

titopoquito 11-22-2006 08:09 AM

To specify what matthewg42's post says: The code is part of the kernel, no need to download and install it seperately. You can compile your kernel so that it includes the stuff or builds as a module that you can load. Probably you already have that module...
What happens if you try as root "modprobe irtty-sir" (note the dash instead of underscore)?

Micro420 11-22-2006 11:53 AM

I recently got a new ASUS motherboard and Ubuntu 6.10 and CentOS were not able to recognize the NIC. It kept telling me to load the modules that I got from the vendor. Of course, ASUS doesn't have these. So I just ended up using a spare 10/100Mbps NIC I had lying around. But how would I have loaded the NIC module specific to this ASUS motherboard? Would that have been in the kernel???

masonm 11-22-2006 12:44 PM

Quote:

Originally Posted by Micro420
I recently got a new ASUS motherboard and Ubuntu 6.10 and CentOS were not able to recognize the NIC. It kept telling me to load the modules that I got from the vendor. Of course, ASUS doesn't have these. So I just ended up using a spare 10/100Mbps NIC I had lying around. But how would I have loaded the NIC module specific to this ASUS motherboard? Would that have been in the kernel???

You would have to find out what chipset it uses and go from there. lspci would get you going in the right direction.

Kansalliskala 11-23-2006 03:36 AM

Quote:

Originally Posted by titopoquito
To specify what matthewg42's post says: The code is part of the kernel, no need to download and install it seperately. You can compile your kernel so that it includes the stuff or builds as a module that you can load. Probably you already have that module...
What happens if you try as root "modprobe irtty-sir" (note the dash instead of underscore)?

Thank you, now I think I got it. So loadable modules is usually part of the kernel code that is compiled separately and then loaded -- there is no separate code. (Sometimes there is, I think I loaded ppscsi somewhere).

Code:

debian:~# modprobe irtty-sir
modprobe: Can't locate module irtty-sir
debian:~# locate irtty-sir
debian:~# locate irtty
/lib/modules/2.4.27-2-k6/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-k7/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-k7-smp/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-386/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-586tsc/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-686/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-686-smp/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-k6/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-k7/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-k7-smp/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-386/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-586tsc/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-686/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-686-smp/kernel/drivers/net/irda/irtty.o
/usr/src/kernel-headers-2.4.27-3/include/net/irda/irtty.h
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty/sir
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty/sir.h
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty/sir/module.h

Now just have to compile it .. :scratch:

titopoquito 11-23-2006 03:59 AM

Quote:

Code:

debian:~# modprobe irtty-sir
modprobe: Can't locate module irtty-sir
debian:~# locate irtty-sir
debian:~# locate irtty
/lib/modules/2.4.27-2-k6/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-k7/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-k7-smp/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-386/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-586tsc/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-686/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-2-686-smp/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-k6/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-k7/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-k7-smp/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-386/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-586tsc/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-686/kernel/drivers/net/irda/irtty.o
/lib/modules/2.4.27-3-686-smp/kernel/drivers/net/irda/irtty.o
/usr/src/kernel-headers-2.4.27-3/include/net/irda/irtty.h
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty/sir
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty/sir.h
/usr/src/kernel-headers-2.4.27-3-k7/include/config/irtty/sir/module.h

Now just have to compile it .. :scratch:
It is called irtty-sir with my 2.6.17.x kernel, but I guess it's only irtty for you!? Try to "modprobe irtty".

Kansalliskala 11-23-2006 04:50 AM

Quote:

Originally Posted by titopoquito
It is called irtty-sir with my 2.6.17.x kernel, but I guess it's only irtty for you!? Try to "modprobe irtty".

I think I have to migrate to 2.6 anyways some day. Meanwhile I'll get old 2 GB disk and put some mini-distro there.. My aim is to get a reserve backup network connection with Nokia 5210 and maybe a fax-machine.

Thank you again, this has cleared the concept 'module' for me.

titopoquito 11-23-2006 06:22 AM

You're welcome :)


All times are GMT -5. The time now is 02:43 AM.