LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2005, 01:25 PM   #1
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Rep: Reputation: 15
Howto install ndiswrapper?!


Hey,
I've bought an Linksys WMP11 v4 wireless card 'cause it's in the list at the ndiswrapper page.
I'm using debian testing/sarge with the 2.4.27-1-386 kernel.
But now I don't know to install ndiswrapper
I've used dselect to install ndiswrapper-source, it didn't work after this, so I downloaded the source (ndiswrapper-1.0rc3) from sourceforge.net, but it didn't had an make file so I couldn't go on after this.
What do I've to do to install it?
Ruben
 
Old 01-22-2005, 01:53 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The installation instructions are here:
http://ndiswrapper.sourceforge.net/p...p?Installation
 
Old 01-22-2005, 01:55 PM   #3
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
The installation instructions are here:
http://ndiswrapper.sourceforge.net/p...p?Installation
I know and I've seen them, but I don't get a clew of it
things whit the kernel source and then I've to link it (i THINK i did that)
But later it's talking about make distclean, but in wich folder has this to happen?
Ruben
 
Old 01-22-2005, 02:19 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
That needs to happen in the ndiswrapper source directory.
 
Old 01-23-2005, 05:35 AM   #5
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
That needs to happen in the ndiswrapper source directory.
Ok, but which directory is that?
EDIT: I have it now, I just used the tar from internet. There's only one problem left: I can't seem to be able to link the kernel sources correct. Please help with it, I'm using the 2.4.27-1-386 kernel.

Last edited by Ruben2; 01-23-2005 at 06:10 AM.
 
Old 01-23-2005, 06:33 AM   #6
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
I just installed the kernel-sources with dselect, and I link it the way that the manual says at nr.3 but when I do make install it returns this error (translated):
Code:
make -C driver install
make[1]: Entering directory `/root/ndis-install/ndiswrapper-0.12/driver'
Can't find kernel sources in /lib/modules/2.4.27-1-386/build;
  give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndis-install/ndiswrapper-0.12/driver'
make: *** [install] Error 2
What did I do wrong when linking the kernel?
Ruben2

Last edited by Ruben2; 01-23-2005 at 06:35 AM.
 
Old 01-23-2005, 01:48 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Did you create the link? Can you post the output from:
ls -l /lib/modules/2.4.27-1-386
 
Old 01-25-2005, 02:31 PM   #8
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
here is the output:
Code:
totaal 424
lrwxrwxrwx  1 root root     36 2005-01-25 19:28 build -> /usr/src/kernel-headers-2.4.27-2-386
drwxr-xr-x  2 root root   4096 2005-01-25 18:06 initrd
drwxr-xr-x  8 root root   4096 2005-01-25 18:06 kernel
drwxr-xr-x  2 root root   4096 2005-01-25 20:33 misc
-rw-r--r--  1 root root 128120 2005-01-25 20:33 modules.dep
-rw-r--r--  1 root root     31 2005-01-25 20:33 modules.generic_string
-rw-r--r--  1 root root    443 2005-01-25 20:33 modules.ieee1394map
-rw-r--r--  1 root root   8038 2005-01-25 20:33 modules.isapnpmap
-rw-r--r--  1 root root     29 2005-01-25 20:33 modules.parportmap
-rw-r--r--  1 root root  81439 2005-01-25 20:33 modules.pcimap
-rw-r--r--  1 root root     24 2005-01-25 20:33 modules.pnpbiosmap
-rw-r--r--  1 root root 169201 2005-01-25 20:33 modules.usbmap
 
Old 01-25-2005, 03:14 PM   #9
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
The 'make install' worked after doing
# ln -s /usr/src/kernel-source-2.4.27 /lib/modules/2.4.27-1-386/build

But now I get a error-output when doing:
# modprobe ndiswrapper

It looks like this:
Code:
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol remove_wait_queue_R5dbd8645
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_get_descriptor_Rb0b6ec0a
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_ifnum_to_if_R6586d168
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol netif_rx_R86c60d40
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_reset_device_R10e60f3f
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_clear_halt_R70e19cad
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol irq_stat_R7228bf63
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol __netdev_watchdog_up_R80f97538
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol pidhash_R701cbc6e
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol __kfree_skb_R9ecd04e6
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol softnet_data_Rfeb9b41f
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_unlink_urb_R20ca45d7
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_submit_urb_Rc30485d3
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol misc_register_R852aab78
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol misc_deregister_R5c8bd137
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_alloc_urb_R827e2dfc
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol usb_deregister_Rb5e3e19b
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol create_proc_entry_Ra52db232
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol proc_mkdir_Rba727c62
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper
.o: unresolved symbol skb_over_panic_R0f704938
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol add_wait_queue_Rf89d8ae0
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol eth_type_trans_R6b47b152
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol wireless_send_event_R13877bce
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol remove_proc_entry_Rf2afedc2
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol usb_register_R791122f0
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol usb_set_interface_R07f760d0
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol alloc_skb_R22cf598a
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol skb_copy_and_csum_dev_Rdefa9b80
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol proc_net_Rff86b932
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: /lib/modules/2.4.27-1-386/misc/ndiswrapper.o: unresolved symbol usb_free_urb_Ree17dd38
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: insmod /lib/modules/2.4.27-1-386/misc/ndiswrapper.o failed
/lib/modules/2.4.27-1-386/misc/ndiswrapper.o: insmod ndiswrapper failed
I don't know what the problem causes. I still think I did something wrong whit the linking.
So what I also want to know is which file do I have to link? Did I link the correct one? And how can I solve this problem?
 
Old 01-25-2005, 03:25 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Please post results from 'uname -a'. It looks like your kernel source and running kernel are different versions.
 
Old 01-26-2005, 09:56 AM   #11
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
here is the output:
Code:
p2:~# uname -a
Linux p2 2.4.27-1-386 #1 Wed Dec 1 19:43:08 JST 2004 i686 GNU/Linux
BTW. is it a problem if I use the 2.4.27-2 kernel-packages (kernel-headers, kernel-source, kernel-build) instead of the 2.4.27-1 kernel-packages?

Last edited by Ruben2; 01-26-2005 at 10:06 AM.
 
Old 01-26-2005, 10:21 AM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Yes, it is. Unless you reinstall your kernel to be the new -2. Your running kernel version MUST match (EXACTLY) the source you compiled ndiswrapper against, as a result of the way modules work. If it does not match, errors like the ones you experienced occur.
 
Old 01-26-2005, 11:22 AM   #13
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Matir
Yes, it is. Unless you reinstall your kernel to be the new -2. Your running kernel version MUST match (EXACTLY) the source you compiled ndiswrapper against, as a result of the way modules work. If it does not match, errors like the ones you experienced occur.
So that means that I have to reinstall my kernel
But thanks for the help.
 
Old 01-26-2005, 11:55 AM   #14
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Unfortunately, yes. Though most default kernels have /proc/config.gz support, so that should help you extract the neccessary settings.
 
Old 01-26-2005, 11:57 AM   #15
Ruben2
Member
 
Registered: Sep 2004
Location: Lelystad, NL
Distribution: Debian Etch
Posts: 123

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Matir
Unfortunately, yes. Though most default kernels have /proc/config.gz support, so that should help you extract the neccessary settings.
I don't understand what you mean. Can you please be more specific?
 
  


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
howto load ndiswrapper at boot time with suse 9.3 Nieko04 Linux - Wireless Networking 8 09-07-2005 05:43 AM
DISCUSSION: NDISwrapper for RTL8180 mini-HOWTO coindood LinuxAnswers Discussion 3 04-22-2005 05:24 PM
Can't get ndiswrapper to install NewToLinux2005 Linux - Wireless Networking 9 12-30-2004 09:31 PM
ndiswrapper install help moo113 Linux - Wireless Networking 7 10-16-2004 03:20 PM
ndiswrapper install help Vashtheddrfreak Linux - Wireless Networking 17 08-26-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration