LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Howto install ndiswrapper?! (https://www.linuxquestions.org/questions/linux-newbie-8/howto-install-ndiswrapper-280888/)

Ruben2 01-22-2005 12:25 PM

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

david_ross 01-22-2005 12:53 PM

The installation instructions are here:
http://ndiswrapper.sourceforge.net/p...p?Installation

Ruben2 01-22-2005 12:55 PM

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

david_ross 01-22-2005 01:19 PM

That needs to happen in the ndiswrapper source directory.

Ruben2 01-23-2005 04:35 AM

Quote:

Originally posted by david_ross
That needs to happen in the ndiswrapper source directory.
Ok:D, 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.

Ruben2 01-23-2005 05:33 AM

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

david_ross 01-23-2005 12:48 PM

Did you create the link? Can you post the output from:
ls -l /lib/modules/2.4.27-1-386

Ruben2 01-25-2005 01:31 PM

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


Ruben2 01-25-2005 02:14 PM

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?

Matir 01-25-2005 02:25 PM

Please post results from 'uname -a'. It looks like your kernel source and running kernel are different versions.

Ruben2 01-26-2005 08:56 AM

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?

Matir 01-26-2005 09:21 AM

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.

Ruben2 01-26-2005 10:22 AM

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.

Matir 01-26-2005 10:55 AM

Unfortunately, yes. Though most default kernels have /proc/config.gz support, so that should help you extract the neccessary settings.

Ruben2 01-26-2005 10:57 AM

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?


All times are GMT -5. The time now is 02:32 AM.