LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-06-2005, 09:11 AM   #1
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Rep: Reputation: 15
modprobe in Debian 3.1r0a


I have installed Debian 3.1r0a from the 14-disc set. I have no net access yet. I want to get my prism2 wireless card working. I have installed and compiled linux-wlan-ng and I now have two files /lib/modules/2.6.8/p80211.ko and /lib/modules/2.6.8/prism2_usb.ko. The man page on modprobe says that out of kernel modules should go under /lib/modules which is where they are but modprobe p80211 returns the error 'module p80211 not found'. Where should these modules be put?
I am aware that some people use ndiswrapper but I have used linux-wlan-ng before
with Red Hat and it was fine there so I'd rather do it this way.

Tony Sumner
 
Old 12-06-2005, 06:15 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
You may need to run depmod -a if you haven't rebooted in the meantime (man depmod also). The paths used should be listed in /etc/modules.conf. Alternatively, have you tried using insmod ?

Cheers,

Michael.
 
Old 12-07-2005, 04:19 PM   #3
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for reply. This has helped to advance my understanding but
I am not there yet.

devmod -a didn't help (but I had rebooted by then). insmod returned
the same error message. /etc/modules.conf used to be the place to go
but with 3.1r0a the use of this has changed. /etc/modules.conf says do
not edit this file, read the man page for update-modules. The man page
says update-modules is obsolete but not much else. man depmod mentions
/etc/modprobe.d and this has files
arch arch-aliases aliases isapnp
(arch-aliases is a symlink to arch/i386). The directory arch contains the
file i386 which lists aliases including (probably put there when I
compiled linux-wlan-ng)
alias wlan0 prism2_usb
but this is hardly useful since man modprobe says that files under
/etc/modprobe.d/arch are ignored. Can you see why I am confused?

I read a bit further in /etc/modules.conf and it says that
/etc/modutils/aliases tells modprobe what modules to load. So I added
alias lines for p80211 and prism2_usb. modprobe p80211 still says
module not found but modprobe wlan0 returns 'prism2_usb not found' so
at least the alias works but I am back with the original question,
where should p80211 and prism2_usb be put?
 
Old 12-07-2005, 04:47 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Yes, I can see why you're confused !

Just to check, are you certain that you're kernel versions match ? How many directories do you have under /lib/modules ? If more than one, then run uname -r to check the currently running kernel version. This must match exactly to the /lib/modules/2.6.8-xxx version. Oftentimes if you have compiled a new kernel, but left the existing debian vanilla kernel remaining then you will have two or more module trees.

I must confess that I still use 2.4.27 almost all most of the time, thus am not entirely sure of the protocols for 2.6.x. Under the former, seperately compiled modules are readily insmod'ed after placing in /lib/modules/`uname -r`/, and can be autoloaded at boot time by listing in /etc/modules -- perhaps this has changed since, however.

I hope that this helps a little -- let me know either way.

Cheers,

Michael.
 
Old 12-08-2005, 05:07 AM   #5
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Original Poster
Rep: Reputation: 15
linux-wlan-ng needs the source tree so I d/l the kernel source, ran make config. I now have two directories under /lib/modules,
2.6.8-2-386 and 2.6.8, the last having been put there by linux-wlan-ng. The 2.6 kernel does things differently, and the
documentation is a mess, so the question can only be answered I think by someone who uses a 2.6 kernel. So why am I trying to
install it? It may be time to cut my losses and go for ndiswrapper.

Thanks for your help

Tony
 
Old 12-08-2005, 02:23 PM   #6
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Quote:
Originally Posted by whittycat
I now have two directories under /lib/modules, 2.6.8-2-386 and 2.6.8, the last having been put there by linux-wlan-ng.
I suspect that this is the problem -- you are presumably running 2.6.8-2-386, while your new modules are sitting patiently in 2.6.8. You could try copying them across to the former directory, but in my experience this seldom works.

Failing this, you could recompile the kernel using your new sources, giving you a slimmer system as well as matching kernel and module versions.

Cheers,

Michael.
 
Old 12-09-2005, 11:13 AM   #7
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Original Poster
Rep: Reputation: 15
Smile

You may be right. I thought the wireless modules should be put in a directory under /lib/modules but I think they are meant to
be under /lib/modules/`uname -r`. Any way I did what you suggest, moved them to /lib/modules/2.6.8-2-386/linux-wlan and now
modprobe does load them. Hurrah, etc!

Thanks,
Tony
 
Old 12-09-2005, 03:03 PM   #8
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Great to hear !

Cheers,

Michael.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Sarge 3.1r0a won't work w/ nForce3 ethernet haertig Linux - Networking 3 10-25-2005 04:45 AM
KDE 3.4 on Debian 3.1r0a? MasterOfTheWind Linux - Software 1 10-09-2005 10:28 AM
Debian 3.1R0A DVD ISO Buring Problem jhcatch22 Debian 0 09-26-2005 10:19 PM
need to run KDE on debian 3.1r0a issey Linux - Newbie 3 09-08-2005 10:51 AM
Debian - ATI Radeon 8500 - modprobe problems bladepdx Linux - Hardware 0 06-13-2004 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration