LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-14-2007, 07:55 AM   #1
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
ndiswrapper FATAL error


Hi,
i'm having a problem loading a wireless driver with ndiswrapper. i did the following to compile ndiswrapper.
Code:
su root
yum install kernel-devel 
ln -s  /usr/src/kernels/2.6.15-1.2054_FC5/lib/modules/<kernel-version>/build
cd ndiswrapper
make uninstall
make 
make install
then i unpacked the windows drvier:
Code:
upzip R115321.EXE
mkdir /lib/windriver
cd R115321
cp * /lib/windrivers
cd /usr/sbin
./ndiwrapper -i bcmw15.inf
./ndiswrapper -l
bcmwl5 : driver installed
        device (14E4:4320) present
uptill now everything is working great. but when i try modprobe it comes back with this:
Code:
su root
cd /sbin
./modprobe ndiswrapper 
[root@localhost sbin]# ./modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.15-1.2054_FC5/misc/ndiswrapper.ko): Invalid module format
pleaes look at the output of dmesg:
Code:
ndiswrapper: disagrees about version of symbol struct_module
ndiswrapper: no version for "struct_module" found: kernel tainted.
ndiswrapper: no version magic, tainting kernel.
ndiswrapper: Unknown symbol __netif_schedule
ndiswrapper: Unknown symbol init_waitqueue_head
ndiswrapper: Unknown symbol netif_device_detach
ndiswrapper: Unknown symbol netif_device_attach
ndiswrapper: Unknown symbol local_bh_disable
ndiswrapper: Unknown symbol dev_kfree_skb_any
ndiswrapper: Unknown symbol __spin_lock_init
ndiswrapper: disagrees about version of symbol struct_module
ndiswrapper: disagrees about version of symbol struct_module
ndiswrapper: disagrees about version of symbol struct_module

i have searched the internet bur i couldn't find similar cases. any ideas?

Last edited by waelaltaqi; 02-14-2007 at 08:07 AM.
 
Old 02-15-2007, 07:05 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Which version of ndiswrapper??? Also check the kernel source tree /~kernel/module.c file around line #1717 for;

if (strcmp(mod->name, "ndiswrapper") == 0)
add_taint_module(mod, TAINT_PROPRIETARY_MODULE);

If present remove the two lines listed above.

You really should bring FC5 current first, lots of changes sine FC5 came out, kernel-2.6.15-1.2054_FC5 is old and has been replaced a number of times for starters.
 
Old 02-15-2007, 07:11 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
if (strcmp(mod->name, "ndiswrapper") == 0)
add_taint_module(mod, TAINT_PROPRIETARY_MODULE);

If present remove the two lines listed above.
I promise, I won't derail this thread, but what it the impact of removing those lines? It seems to me that messing with the kernel code is asking an awful lot of new users.
 
Old 02-15-2007, 11:54 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Certain versions of ndiswrapper (<1.27) do not work with kernels having these two lines. The same holds true for Linuxant's driverloader (the next two lines in the file). Newer version of ndiswrapper do not have this issue, I'm not sure about newer versions of Linuxant's driverloader.

See: http://www.ussg.iu.edu/hypermail/lin...10.2/2546.html

Last edited by Lenard; 02-15-2007 at 12:03 PM.
 
Old 02-19-2007, 11:45 AM   #5
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Original Poster
Rep: Reputation: 31
it worked

i had to upgrade my kernel from 2.6.15-1.2257.fc5 to 2.6.18-1.2257.fc5. then i uninstalled ndiswrapper. i will list what i did in case somebody viewed this post later. to uninstall ndiswrapper:

Code:
rm /usr/sbin/ndiswrapper
rm /sbin/loadndiswrapper
you also need to remove the kernel module from /lib/modules/'uname -r'/misc

then i recompiled ndiswrapper, the latest stable version. then i did the following:

Code:
ndiswrapper -i /lib/windrivers/bcwml5.inf
ndiswrapper -m # write config for modprobe 
ndiswrapper -ma # write module aliases
ndiswrapper -mi # write module install config for all devices. 
/sbin/modproe ndiswrapper # which was successful without no problem
/sbin/iwconfig 
[root@localhost sbin]# /sbin/iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

vmnet8    no wireless extensions.

vmnet1    no wireless extensions.

Warning: Driver for device wlan0 has been compiled with version 20
of Wireless Extension, while this program supports up to version 19.
Some things may be broken...

wlan0     IEEE 802.11g  ESSID:off/any
          Mode:Managed  Frequency:2.462 GHz  Access Point: Not-Associated
          Bit Rate:54 Mb/s   Tx-Power:32 dBm
          RTS thr:2347 B   Fragment thr:2346 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
ndiswrapper created an alias for wlan0. the other vmnet interfaces were created by vmware.
in the end i didn't have to modify kernel code. by the way i couldn't fine the file module.c at all.
updatedb
Code:
[root@localhost sbin]# locate module.c
/etc/gnome-vfs-2.0/modules/smb-module.conf
it looks like FC6 or FC5 are coming more and more complicated to maintain. back in the day, yum install used to work for everything. Slackware is still my preferred distro.that might not be a professional statement, but that's what i feel about fedora right now.
thanks for all your help.

Last edited by waelaltaqi; 02-19-2007 at 11:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FATAL: Error inserting ndiswrapper raxxal Mandriva 7 07-06-2007 01:27 PM
fatal error with ndiswrapper guitarhero14 Linux - Wireless Networking 2 11-19-2006 06:32 PM
FATAL: Error inserting ndiswrapper derfaust Slackware 11 06-03-2006 02:41 PM
FATAL ndiswrapper error perez Linux - Software 1 04-21-2006 08:08 AM
ndiswrapper - Fatal error when modprobe badboyben3000 Linux - Software 9 12-11-2005 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:11 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