FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi, what is the correct method to make a module load at boot time in Fedora Core 5.
In the ndiswrapper-WiKi it says to add a "ndiswrapper" line in /etc/modules, but this file/directory doesn't exist. I've read something somewhere about putting modprobe ndiswrapper in /etc/rc.d/rc.local but I suspect that isn't the correct method.
I have the ndiswrapper file containing "alias wlan0 ndiswrapper", but this (as it says in the ndiswrapper install wiki) doesn't load the module automatically at boot time.
I've tried to put "modprobe ndiswrapper" in /etc/rc.d/rc.local, and this loads the module, but NetworkManager doesn't list the wireless option. If I restart the NetworkManager service the wireless comes up fine. The same thing happens when I load the module manually, so I suspect the NetworkManager is started before "modprobe ndiswrapper" is loaded. So again... Where do I put "ndiswrapper" or "modprobe ndiswrapper" or whatever to make the module load when it should (before NetworkManager is started at least) at boot time?
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
OK, quick question is your Fedora Core 5 installation the 64-bit version?
Please update your profile to reflect the Distribution in either case and if x86_64 also reflect that.
The reason I'm asking if your running x86_64 is a known bug with the 64-bit Broadcom Corporation BCM4318 [AirForce One 54g] drivers, they need to start them twice.
Yes I'v seen it. But I can't see any relevant answers in it. Everything compiles fine, and the driver installs just fine. The module loads, and I'm typing this wireless. I can't remember that this was a problem in FC4. Did it have /etc/modules ?
In the FC5 release notes (http://fedora.redhat.com/docs/releas...fc5/#id3092853) it says:
"The udev method now handles all module loading, both on system boot and for hotplugged devices."
Is this the answer? If so, how to...?
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
No, I do not think so..... see that I'm running a custom CentOS4.3 system which has the udev and hal versions (rebuilt from the source) from FC5 installed without any issues with my wireless, except I have to load the driver twice (the bug I mentioned). Some times selinux can be a problem, try turning it off at boot time and see what happens;
Now I have inserted the modprobe commands + ifup in .../rc.local as suggested above.
The module loads after NetworkManager is started, and NetworkManager doesn't know of any wireless connection before it is restarted.
In /var/log/messages (only relevant parts) (all of this happens at boot)
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
The 'ndiswrapper -l' command output looks good, you may want to consider updating to ndiswrapper 1.12, from the ChangeLog file;
Version 1.12 2006-04-04
======================
* Sis163 USB driver with version 1.11 failed to associate reliably. This is
fixed.
* TI 1450 USB driver failed to initialize card if module is reloaded. This is
fixed.
* WPA with TKIP with TI ACX100 driver now works with 'ap_scan=2' in
wpa_supplicant's configuration file. Driver for D-Link DWL-650+ has support
for WPA with TKIP for this chipset.
* Added support for non-encrypted networks with wpa_supplicant.
* Am1772 with WPA and TKIP authenticates reliably now.
* Compilation issue with 2.4 kernels fixed.
* Added support for WEP with wpa_supplicant through 'wext' driver
interface. There is no need for 'ndiswrapper' interface with wpa_supplicant
anymore.
* Fixed an issue with 64-bit USB drivers. No 64-bit USB driver is known to
work, though.
Do not know if any of the changes apply to your hardware or not. Ndiswrapper is crashing at boot [ndiswrapper (iw_set_bitrate:520): setting bitrate failed (C00000BB)] which could mean the driver (bcmwl5) is close but not quite right or is one of the bugs fixed in ndiswrapper 1.12.
The update to 1.12 was straight forward, but there was no change. I don't think there is any problem with the driver at all, rather that the module isn't loaded before the NetworkManager is started. I found the reason for the ndiswrapper (iw_set_bitrate:520): setting bitrate failed (C00000BB)]: Every time "ifup wlan0" is run it appears in dmesg. But when I use NetworkManager "ifup " doesn't work (since dhclient is already running).
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
No, I have no reason to and it is not even installed on any of my systems. If I move my laptop from home or work to wherever and I want to access the Internet, I just connect to one of the open places I frequent(DHCP connection), the ones that are not I already have scripts available to connect with (4thStreet is one of them).
Basically the scripts go like;
ifdown wlan0
sudo service network restart
ifup wlan0[-XXXX]*
*one of the places that requires a password or some other response
Not had a problem since I started using wireless in 1996.
Solution?!?!?!?
After reading "/etc/rc.d/rc.sysinit" I found that usermodules should lie in "/etc/sysconfig/modules/*.modules" as executables, and did (echo "modprobe ndiswrapper" >> my.modules; chmod ugo+x my.modules). Now NetworkManager starts the wireless automatically after I log in. Now I'm satisfied, but if anyone have a more proper solution, or can confirm that this was the proper way to do it, I'm listening:-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.