LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-10-2007, 07:01 PM   #1
moracca
LQ Newbie
 
Registered: Aug 2007
Posts: 10

Rep: Reputation: 0
autorunning modules in fedora 7


Every time I boot, I have to manually modprobe my ndiswrapper module for my wireless card to work. The tutorial I followed to get it installed said to edit the modules.autostart.d file to have the module get loaded at boot. Unfortunately this file doesn't exist in fedora 7. Does anyone know what I need to do to get this file loaded at boot? and while we're at it, how do I get linux to stop loading the default module for my wireless card at each boot. I have to rmmod the current one before I can modprobe the ndiswrapper module. Thanks in advance!

Moracca
 
Old 08-10-2007, 07:42 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
add it to rc.local
 
Old 08-10-2007, 08:38 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
No, add a ndiswrapper file to /etc/modprobe.d/ thusly:
Code:
$ ls /etc/modprobe.d
blacklist  blacklist-compat  modprobe.bcm43xx  modprobe.conf.dist  ndiswrapper

$ cat /etc/modprobe.d/ndiswrapper
alias wlan0 ndiswrapper
And, at least once, you should do a sudo modprobe ndiswrapper.

Note: Are you sure that ndiswrapper is needed? Fedora 7 automatically installs FOSS drivers for any hardware it finds for which such drives are available. For example, many PCI wireless cards use Brodcom chipsets for some (but not all) of their products (e.g., Linksys), and Fedora will load one of the two bcm43xx divers if lspci shows a Broadcom chipset.

If Fedora has loaded a driver for you, you'll need to remove it (modprobe -r ...) and add the driver to /etc/modprobe.d/blacklist before ndiswrapper will work, since, of course, two drivers trying to access the same hardware is seldom a workable situation.
 
Old 08-10-2007, 08:54 PM   #4
moracca
LQ Newbie
 
Registered: Aug 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much for your help, that worked for me. Yes, I needed ndiswrapper because, as you said, linux was loading one of the broadcom drivers by default, however that was not working for my device. I wasn't able to activate the card when it was using those drivers, only after I rmmod'ed it and loaded the ndiswrapper.

Thanks again -- its frustrating how all the different distributions have different methodologies for this type of thing, so its hard to look online for answers because they vary so much. Glad I have it working tho.
 
Old 08-11-2007, 02:38 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
There's a "trick" to getting the bcm43xx drivers to actually work, even if they are "installed" by anaconda: You have to run the bcm43xx_fwcutter program using the Windows inf and sys files as input to extract the propitiatory microcode for the bcm43xx driver to use. (Because the code is "propitiatory," Fedora can not include it in it's distribution.)

<edit>
For my laptop, with a Broadcom chipset on the m/b, the ndiswrapper solution works much better. When I last checked, the bcm43xx driver was limited to 11 Mb/sec, and it failed to report correct signal strengths for access points. And I was unable to access my own WPA2-encrypted access point using the bcm43xx_ieee80311 driver. (That name is from memory since I'm using my desktop system with a different drive setup right now.)
</edit>

Last edited by PTrenholme; 08-11-2007 at 02:46 PM.
 
Old 08-11-2007, 11:37 PM   #6
moracca
LQ Newbie
 
Registered: Aug 2007
Posts: 10

Original Poster
Rep: Reputation: 0
I had everything working perfectly. ndiswrapper would load up at boot, wireless gets activated, no problems. Last night, fedora tells me that there are some 200 package updates that need to be installed, so I figured sure, might as well be up to date. After the next reboot everything went to shit. I now have 2 options in my boot loader menu:
Fedora (2.6.22.1-41.fc7)
Fedora (2.6.21-1.3194.fc7)

when I boot into 2.6.22, I am unable to modprobe ndiswrapper, as it says module not found. I am also unable to modprobe usbcore, same error. Not sure what went haywire but something definitely got screwed up. When i boot into the older kernel everything works perfectly. any suggestions?
 
Old 08-12-2007, 12:23 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I'm assuming you have already done a yum install livna-release to set up the livna repository definitions. If you haven't, do it first.

Did you install the fedorakmod plug-in? Without it updated ndiswrapper releases from livna will not be automatically detected and installed when you do a kernel update. If you haven't, do a yum install yum-fedorakmod. You might want to also consider installing the yum-fastestmirror and yum-skip-broken plugins at the same time.

For now, just do a yum install ndiswrapper-kmod-1.46-1.2.6.22.1_41.fc7

Last edited by PTrenholme; 08-12-2007 at 12:25 PM.
 
  


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
Create an autorunning CD indraveni Debian 10 06-07-2006 03:46 PM
How to create an autorunning CD indraveni Linux - Software 1 06-05-2006 12:26 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM
Automounting, autoloading, autorunning... Thymox Linux - General 2 01-11-2002 07:14 AM

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

All times are GMT -5. The time now is 09:47 PM.

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