Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error loading ndiswrapper
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
amdocer
n00b
n00b


Joined: 22 Jan 2005
Posts: 30

PostPosted: Sat Jan 22, 2005 6:06 am    Post subject: error loading ndiswrapper Reply with quote

Well, I installed gentoo on my laptop, and got everything up and running except for one thing - my wireless. I have a microsoft wireless card (it was a gift, I swear), and I had it working on the same laptop using Mandrake 10.0. I decided to step up with the big boys with gentoo, but I can't get the kernel module for ndiswrapper to load.

I installed using emerge ndiswrapper, and then ran modules-update. When I try to modprobe ndiswrapper, I get this error:
Code:

FATAL: Error inserting ndiswrapper (/lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko): Invalid module format


Here's what I got when I installed:
Code:
emerge ndiswrapper
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/ndiswrapper-0.12-r3 to /
>>> md5 src_uri ;-) ndiswrapper-0.12.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.10-gentoo-r6
 * Checking for suitable kernel configuration options
>>> Unpacking source...
>>> Unpacking ndiswrapper-0.12.tar.gz to /var/tmp/portage/ndiswrapper-0.12-r3/work
>>> Source unpacked.
make -C driver
make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C //usr/src/linux M=/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver \
        NDISWRAPPER_VERSION=0.12 \
        EXTRA_VERSION= modules
make[2]: Entering directory `/usr/src/linux-2.6.10-gentoo-r6'
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/wrapper.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/iw_ndis.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/pe_loader.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndis.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ntoskernel.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/misc_funcs.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/proc.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/divdi3.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/hal.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/usb.o
  LD [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST
  CC      /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndiswrapper.mod.o
  LD [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/linux-2.6.10-gentoo-r6'
make[1]: Leaving directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver'
make -C utils
make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/utils'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
cc -Wall -g -DNDISWRAPPER_VERSION=\"0.12\"    -c -o loadndisdriver.o loadndisdriver.c
gcc -o loadndisdriver loadndisdriver.o
make[1]: Leaving directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/utils'
>>> Test phase [not enabled]: net-wireless/ndiswrapper-0.12-r3

>>> Install ndiswrapper-0.12-r3 into /var/tmp/portage/ndiswrapper-0.12-r3/image/ category net-wireless
man:
prepallstrip:
strip:
strip:
   sbin/loadndisdriver
>>> Completed installing into /var/tmp/portage/ndiswrapper-0.12-r3/image/

>>> Merging net-wireless/ndiswrapper-0.12-r3 to /
--- /usr/
--- /usr/sbin/
>>> /usr/sbin/ndiswrapper
>>> /usr/sbin/ndiswrapper-buginfo
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/ndiswrapper-0.12-r3/
>>> /usr/share/doc/ndiswrapper-0.12-r3/README.gz
>>> /usr/share/doc/ndiswrapper-0.12-r3/INSTALL.gz
>>> /usr/share/doc/ndiswrapper-0.12-r3/AUTHORS.gz
>>> /usr/share/doc/ndiswrapper-0.12-r3/ChangeLog.gz
--- /usr/share/man/
--- /usr/share/man/man8/
>>> /usr/share/man/man8/ndiswrapper.8.gz
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.10-gentoo-r6/
--- /lib/modules/2.6.10-gentoo-r6/misc/
>>> /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko
--- /sbin/
>>> /sbin/loadndisdriver
--- /etc/
--- /etc/modules.d/
>>> /etc/modules.d/ndiswrapper
--- /etc/ndiswrapper/

 * Checking kernel module dependencies

 * ndiswrapper requires .inf and .sys files from a Windows(tm) driver
 * to function. Download these to /root for example, then
 * run 'ndiswrapper -i /root/foo.inf'. After that you can delete them.
 * They will be copied to the proper location.
 * Once done, please run 'update-modules'.
 *
 * As of release 0.9, you no longer have to call 'loadndiswrapper'
 * explicitly.  The module will handle it automatically.
 *
 * check http://ndiswrapper.sf.net/supported_chipsets.html for drivers
 * Look for the following on that page for your driver:
 * 100b:0020
 *
 * Please have a look at http://ndiswrapper.sourceforge.net/wiki/
 * for the FAQ, HowTos, Tips, Configuration, and installation
 * information.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> net-wireless/ndiswrapper-0.12-r3 merged.
>>> Recording net-wireless/ndiswrapper in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 11 config files in /etc need updating.
 * IMPORTANT: 13 config files in /usr/X11R6/lib/X11/xkb need updating.
 * Type emerge --help config to learn how to update config files.

Lee-09-62 root # modules-update
emerge ndiswrapper
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/ndiswrapper-0.12-r3 to /
>>> md5 src_uri ;-) ndiswrapper-0.12.tar.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.10-gentoo-r6
 * Checking for suitable kernel configuration options
>>> Unpacking source...
>>> Unpacking ndiswrapper-0.12.tar.gz to /var/tmp/portage/ndiswrapper-0.12-r3/work
>>> Source unpacked.
make -C driver
make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C //usr/src/linux M=/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver \
        NDISWRAPPER_VERSION=0.12 \
        EXTRA_VERSION= modules
make[2]: Entering directory `/usr/src/linux-2.6.10-gentoo-r6'
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/wrapper.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/iw_ndis.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/pe_loader.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndis.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ntoskernel.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/misc_funcs.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/proc.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/divdi3.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/hal.o
  CC [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/usb.o
  LD [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST
  CC      /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndiswrapper.mod.o
  LD [M]  /var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/linux-2.6.10-gentoo-r6'
make[1]: Leaving directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/driver'
make -C utils
make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/utils'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
cc -Wall -g -DNDISWRAPPER_VERSION=\"0.12\"    -c -o loadndisdriver.o loadndisdriver.c
gcc -o loadndisdriver loadndisdriver.o
make[1]: Leaving directory `/var/tmp/portage/ndiswrapper-0.12-r3/work/ndiswrapper-0.12/utils'
>>> Test phase [not enabled]: net-wireless/ndiswrapper-0.12-r3

>>> Install ndiswrapper-0.12-r3 into /var/tmp/portage/ndiswrapper-0.12-r3/image/ category net-wireless
man:
prepallstrip:
strip:
strip:
   sbin/loadndisdriver
>>> Completed installing into /var/tmp/portage/ndiswrapper-0.12-r3/image/

>>> Merging net-wireless/ndiswrapper-0.12-r3 to /
--- /usr/
--- /usr/sbin/
>>> /usr/sbin/ndiswrapper
>>> /usr/sbin/ndiswrapper-buginfo
--- /usr/share/
--- /usr/share/doc/
>>> /usr/share/doc/ndiswrapper-0.12-r3/
>>> /usr/share/doc/ndiswrapper-0.12-r3/README.gz
>>> /usr/share/doc/ndiswrapper-0.12-r3/INSTALL.gz
>>> /usr/share/doc/ndiswrapper-0.12-r3/AUTHORS.gz
>>> /usr/share/doc/ndiswrapper-0.12-r3/ChangeLog.gz
--- /usr/share/man/
--- /usr/share/man/man8/
>>> /usr/share/man/man8/ndiswrapper.8.gz
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.10-gentoo-r6/
--- /lib/modules/2.6.10-gentoo-r6/misc/
>>> /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko
--- /sbin/
>>> /sbin/loadndisdriver
--- /etc/
--- /etc/modules.d/
>>> /etc/modules.d/ndiswrapper
--- /etc/ndiswrapper/

 * Checking kernel module dependencies

 * ndiswrapper requires .inf and .sys files from a Windows(tm) driver
 * to function. Download these to /root for example, then
 * run 'ndiswrapper -i /root/foo.inf'. After that you can delete them.
 * They will be copied to the proper location.
 * Once done, please run 'update-modules'.
 *
 * As of release 0.9, you no longer have to call 'loadndiswrapper'
 * explicitly.  The module will handle it automatically.
 *
 * check http://ndiswrapper.sf.net/supported_chipsets.html for drivers
 * Look for the following on that page for your driver:
 * 100b:0020
 *
 * Please have a look at http://ndiswrapper.sourceforge.net/wiki/
 * for the FAQ, HowTos, Tips, Configuration, and installation
 * information.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> net-wireless/ndiswrapper-0.12-r3 merged.
>>> Recording net-wireless/ndiswrapper in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 11 config files in /etc need updating.
 * IMPORTANT: 13 config files in /usr/X11R6/lib/X11/xkb need updating.
 * Type emerge --help config to learn how to update config files.

Lee-09-62 root # modules-update

Lee-09-62 root # modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko): Invalid module format


[/code]
Back to top
View user's profile Send private message
amdocer
n00b
n00b


Joined: 22 Jan 2005
Posts: 30

PostPosted: Sat Jan 22, 2005 10:45 pm    Post subject: Reply with quote

After some googling, I am still baffled. I heard that the dmesg output could be helpful, so this is what I got.
Code:

ndiswrapper: Unknown symbol wireless_send_event
ndiswrapper: version magic '2.6.10-gentoo-r6 SMP preempt PENTIUM4 gcc-3.3' should be '2.6.10-gentoo-r6 SMP preempt PENTIUM4 4KSTACKS gcc-3.3'

Any ideas?
Back to top
View user's profile Send private message
amdocer
n00b
n00b


Joined: 22 Jan 2005
Posts: 30

PostPosted: Sun Jan 23, 2005 5:20 am    Post subject: Reply with quote

Another development. I've recompiled my kernel I don't know how many times trying to get this to work, but when I "make && make modules_install" I get this error:
Code:
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symbol_spin_lock_bh
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symbol_spin_unlock_bh
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symbol__per_cpu_offset
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symbol_spin_unlock
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symbol_spin_unlock_irqrestore
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symboldel_timer_sync
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symbol_spin_lock_irqsave
WARNING: /lib/modules/2.6.10-gentoo-r6/misc/ndiswrapper.ko needs unknown symbol_spin_lock
Back to top
View user's profile Send private message
pilgrim
n00b
n00b


Joined: 17 Jun 2003
Posts: 57
Location: Canada

PostPosted: Sun Jan 23, 2005 8:51 am    Post subject: Reply with quote

Hi,

I had the same thing and I know the agony of this.

For the last problem I think I was forgetting to do (the last two lines):
Code:

make && make modules_install ##did this
cp arch/i386/boot/bzImage /boot/
cp System.map /boot/


Here is the thread:
https://forums.gentoo.org/viewtopic.php?t=232017&highlight=

As for the ndiswrappers...what I did is download it from the site (the source of course) and followd installation directions...(note you need the .inf file from the windows partition)
http://ndiswrapper.sourceforge.net/

-GEzim


Last edited by pilgrim on Wed Jan 26, 2005 3:51 am; edited 1 time in total
Back to top
View user's profile Send private message
amdocer
n00b
n00b


Joined: 22 Jan 2005
Posts: 30

PostPosted: Wed Jan 26, 2005 2:32 am    Post subject: Reply with quote

I now have ndiswrapper working - it took a fresh gentoo install. A lot of work, but worth it I hope. Now on to the next issue...

My laptop won't boot unless there is an ethernet cable attached. I removed net.eth0 from the runlevel default and got a boot, but then my wireless won't work. Even when I boot with the ethernet attached and then remove the cable to attempt some kind of wireless internet browsing, I have no connection. iwconfig lists my connection and essid, and ifconfig shows an appropriate IP, but it's as if gentoo doesn't know that it can use wireless as well as eth0. Any new ideas?
Back to top
View user's profile Send private message
Randseed
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2004
Posts: 111

PostPosted: Wed Jan 26, 2005 3:09 am    Post subject: Reply with quote

amdocer wrote:
I now have ndiswrapper working - it took a fresh gentoo install. A lot of work, but worth it I hope. Now on to the next issue...

My laptop won't boot unless there is an ethernet cable attached. I removed net.eth0 from the runlevel default and got a boot, but then my wireless won't work. Even when I boot with the ethernet attached and then remove the cable to attempt some kind of wireless internet browsing, I have no connection. iwconfig lists my connection and essid, and ifconfig shows an appropriate IP, but it's as if gentoo doesn't know that it can use wireless as well as eth0. Any new ideas?


Cheap-ass solution if it's some fucked up BIOS thing (maybe): Buy an Ethernet plug and hardwire it to loopback.
Back to top
View user's profile Send private message
ToMaC
n00b
n00b


Joined: 30 Dec 2004
Posts: 13

PostPosted: Fri Jan 28, 2005 1:15 am    Post subject: Reply with quote

Did this issue ever get resolved? I'm having the same trouble on 2.6.10 ndiswrapper .12r3

modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.10-gentoo-r5/misc/ndiswrapper.ko): Invalid module format
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum