LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 05-24-2004, 06:05 PM   #1
kcblah
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake 10
Posts: 8

Rep: Reputation: 0
How do I use ndis wrapper for WLAN?


I have a DLink WLAN card that works with my xp, but im having a hard time trying to get it to work with Fedora Core 2. I installed ndiswrapper, used that to install the drivers for dlink-520 rev.D( my wireless card)but then I don't know what to do from there. I checked the list of wireless cards to add,but i don't think anything was added. I don't know what to do.
 
Old 05-24-2004, 06:16 PM   #2
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
If you have done everything in the install doc all you need to do is "modprobe ndiswrapper". Once you have run modprobe you should see another network interface using ifconfig then setup your wireless stuff using iwconfig.
 
Old 05-24-2004, 07:09 PM   #3
kcblah
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake 10
Posts: 8

Original Poster
Rep: Reputation: 0
That didn't work, probably because i don't have an install doc, Dlink doesn't give linux drivers so i use ndiswrapper but I still am unclear about what to do. Is there anything i have to do before modprobe, or maybe i skipped a step and before ndiswrapper? very
 
Old 05-24-2004, 07:32 PM   #4
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
In the source directory there is a file call INSTALL it is all in there. If you downloaded a binary download the source and get the INSTALL file. Here is the contents

Installation
============

1. Compile and install
----------------------
As root run

> make install

This should compile both the kernel module and the userspace utilities.

2. Install your windows driver
------------------------------
Download the Windows XP drivers, unpack it and locate the .inf for your card.
Run ndiswrapper -i to install the driver

> ndiswrapper -i </path/to/inffile.inf>

This copies all necessary files to /etc/ndiswrapper and creates the config
files for your card.

After installing you can run

> ndiswrapper -l

to see the status of your installed drivers. If you have installed the correct
driver you should see something like this:

Installed ndis drivers:
bcmwl5 present

Where "present" means that you have a PCI-device present that can be used with the
driver bcmwl5.

3. Load module
--------------
To load the module type

> modprobe ndiswrapper.

If you get no error the driver should now be loaded and active. You can verify
this by checking system log (produced by 'dmesg'). If the driver is loaded
successfully, you should see a message:

wlan0: ndiswrapper ethernet device xx:xx:xx:xx:xx:xx

4. Configure interface
----------------------
Use iwconfig to configure wireless network interface. First, locate
the wireless interface:

> iwconfig

This will print the wireless interface (e.g., wlan0). In
the examples below wlan0 is used; replace wlan0 with the interface
reported by iwconfig above.

Set the operating mode of the interface according to your setup. In
most cases, it is Managed:

> iwconfig wlan0 mode Managed

If you use encryption (WEP), set the key:

> iwconfig wlan0 key restricted XXXXXXXX

You can use 6 hex digits for 40-bit encryption or 10 hex digits for
128-bit encryption. You may need to use 'open' security mode instead
of 'restricted' depending on the setup of your AP (access point).

Set the network name:

> iwconfig wlan0 essid ESSID

Replace ESSID with the network name used by your AP.

Now, setup the network parameters for the interface wlan0. This varies
from distribution to distribution. Refer to your distribution's
documents on how to do this. Once this is done, you can use network
tools to bring up the network; e.g.,

> ifconfig wlan0 up

5. Automate
-----------
Once everything works fine you can write the correct modeprobe settings to
load ndiswrapper automatically by running

> ndiswrapper -m
 
Old 05-26-2004, 03:13 PM   #5
kcblah
LQ Newbie
 
Registered: May 2004
Distribution: Mandrake 10
Posts: 8

Original Poster
Rep: Reputation: 0
I did it all right, i get present next to the driver name, netr33x, but when i modprobe ndiswrapper it says module not found. It should work, i dont know what the problem is. It might be my distro, Fedora core 2.
 
Old 05-30-2004, 02:18 PM   #6
HellFireXQ
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
I'm having troubles with the wrapper myself. I installed the RPM's and what not, loaded in my driver, and put it in modprobe, and when I check ndiswrapper everytime, it does say that driver is present, but modprobe doesn't work. So I can't actually get my wan0 device working to continue, here is what happens.

[root@localhost root]# modprobe ndiswrapper
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol remove_wait_queue_R1947093e
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol netif_rx_R733de01d
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol softnet_data_Rd997498d
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol create_proc_entry_R4948717d
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol eth_type_trans_R626450ab
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol skb_over_panic_Rd402c01d
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol irq_stat_Rd032f027
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol misc_deregister_R079bdc5b
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol __kfree_skb_Ra94f0814
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol __netdev_watchdog_up_R486f2ecf
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol misc_register_Rf9895fac
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol remove_proc_entry_Rd7de1670
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol add_wait_queue_R53621d0f
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol proc_mkdir_Rb8b992f9
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol alloc_skb_Rbc023ad0
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol skb_copy_and_csum_dev_Red0cd491
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: unresolved symbol proc_net_Rd3e67137
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: insmod /lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o failed
/lib/modules/2.4.20-31.9/kernel/drivers/net/ndiswrapper/ndiswrapper.o: insmod ndiswrapper failed

Any ideas as to how to fix this, or another way other than this where I can configure my wireless and set up a network connection? Keep it simple, I'm a noob hehe. Thanks.
 
Old 05-30-2004, 03:34 PM   #7
phlogistonjohn
LQ Newbie
 
Registered: Jul 2003
Location: MA, USA
Distribution: Mandrake,Debian,Zaurus
Posts: 17

Rep: Reputation: 0
Last time I had that many unresolved symbols in a module, I had compiled the module with the "wrong" version of gcc. In other words, the kernel and module had been compiled with different versions of gcc.

If you execute dmesg do you see any messages pertaining to that?

I really don't know if that's it, but I'm just thowing this idea out there.
 
Old 06-02-2004, 01:20 AM   #8
HellFireXQ
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Yeah, your right hehe. I got ndis wrapper to work, but going ndiswrapper -m, does not work for me. It adds the wlan0 alias to modprobe, but everytime I restart the machine, it won't automatically load wlan0 despite being in modprobe. If I go 'modprobe ndiswrapper' in a terminal each time, it will come up, but it would be nice for this to happen automatically.
 
Old 06-02-2004, 02:43 AM   #9
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Rep: Reputation: 30
ndiswrapper -m only enables the driver at startup. The actual wlan0 has to be configured and set to start automatically /etc/sysconfig/network-scripts/ifcfg-wlan0

there should be an entry in there for boot just type yes right next to it
 
Old 06-02-2004, 08:36 AM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
There is a very nice how-to for ndiswrapper and RH here
 
  


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
NDIS wrapper hates me Iaremonkey Linux - Software 7 08-04-2005 07:54 AM
Removing NDIS Wrapper 8.0 Ilium Mandriva 4 02-18-2005 09:14 AM
NDIS Wrapper Help Please FuGeE Linux - Wireless Networking 1 12-11-2004 12:14 PM
ndis wrapper compile tjb Linux - Software 7 08-21-2004 05:09 PM
ndis wrapper citrus Linux - Hardware 3 01-08-2004 07:10 AM


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