LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-06-2004, 05:05 PM   #1
asphyxia
LQ Newbie
 
Registered: Nov 2003
Location: California
Posts: 24

Rep: Reputation: 15
how to use ndiswrapper to run windows driver?


hello, everybody.

i'm trying to use ndiswrapper to run a windows driver for my new d-link pci adapter (dwl-g520). when i run "ndiswrapper -l", it tells me that neta3ab, the driver, is present - but then i run "modprobe ndiswrapper", then "dmesg" to see if the driver is loaded, and it doesn't come up.

i have redhat 9 on an hp pavilion computer, and just got kernel-source-2.4.20-6.i386.rpm specially for ndiswrapper, in case that's important.

any help would be greatly appreciated. thank you!
 
Old 07-06-2004, 06:17 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Are you running modprobe as root? Also check the output of lsmod. If ndiswrapper is loading, it will definitely show there. If it's not loading, is modprobe giving any errors?
 
Old 07-06-2004, 06:23 PM   #3
asphyxia
LQ Newbie
 
Registered: Nov 2003
Location: California
Posts: 24

Original Poster
Rep: Reputation: 15
lsmod lists ndiswrapper; modprobe doesn't give any errors, sorry.
 
Old 07-06-2004, 09:15 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
lsmod lists ndiswrapper;
Then you got no problems, you ought to be good to go. Check the output of iwconfig and see if your wireless card shows up.
 
Old 07-07-2004, 12:28 AM   #5
asphyxia
LQ Newbie
 
Registered: Nov 2003
Location: California
Posts: 24

Original Poster
Rep: Reputation: 15
but when i do that, it simply says:

[root@localhost Drivers]# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ppp0 no wireless extensions.


T_T
 
Old 07-07-2004, 07:39 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
OK, lets back up a touch and make sure that everything is OK so far.....

What kind of card do you have and are you sure the chipset is supported by ndiswrapper? Do you have any indication that the card has power and has been recongized by the system (Can you see anything with lspci)?

When you ran make install, there were no errors of any kind?

When you ran ndiswrapper -i /path/to/drivername.inf were there any errors? Did it create a /etc/ndiswrapper/drivername directory?

Running ndiswrapper shows the output of drivername present. The word present is, uh, present, right?
 
Old 07-07-2004, 07:39 AM   #7
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
When booting up are you running the Network service, you will need to do this in order for wlan0 to show up.
 
Old 07-07-2004, 11:15 AM   #8
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
maybe you already did this....

ndiswrapper -m
 
Old 07-07-2004, 03:10 PM   #9
asphyxia
LQ Newbie
 
Registered: Nov 2003
Location: California
Posts: 24

Original Poster
Rep: Reputation: 15
OMG now dmesg works!!!!!!!! where was i told to do this "ndiswrapper -m" crap?? now it says "wlan0: ndiswrapper ethernet device 00:0f:3d:a8:e2:03 using driver a3ab.sys" just like it's supposed to!! thanks SOOO much trey! thanks to all you guys. you're geniuses, simply geniuses. now to see if it'll work...
 
Old 07-07-2004, 04:00 PM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
where was i told to do this "ndiswrapper -m" crap??
I believe that would be found in the INSTALL file........
 
Old 07-07-2004, 04:22 PM   #11
asphyxia
LQ Newbie
 
Registered: Nov 2003
Location: California
Posts: 24

Original Poster
Rep: Reputation: 15
but it says to do that way at the very END "once everything works fine"...way past anything i had done yet...

anyway, do i have to now create a startup driver configuration file in the /etc/init.d directory? and if so what should its name be?
 
Old 07-08-2004, 07:29 AM   #12
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'd put the necessary commands in your /etc/rc.d/rc.local file
 
Old 07-08-2004, 10:24 AM   #13
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Quote:
Originally posted by asphyxia
but it says to do that way at the very END "once everything works fine"...way past anything i had done yet...

anyway, do i have to now create a startup driver configuration file in the /etc/init.d directory? and if so what should its name be?
try this first.... (i used this on mandrake 10)


vi /etc/sysconfig/network-scripts/ifcfg-wlan0

add these lines

ESSID=youressid
KEY=yourkeyhere

EDIT: if needed add ONBOOT=YES to have the card start on bootup

Last edited by trey85stang; 07-08-2004 at 10:25 AM.
 
Old 07-08-2004, 10:51 AM   #14
asphyxia
LQ Newbie
 
Registered: Nov 2003
Location: California
Posts: 24

Original Poster
Rep: Reputation: 15
O.o it didn't work...well actually what was it supposed to do? am i not doing something because that's probably it. ;_;
 
Old 07-08-2004, 11:21 AM   #15
Fissional
Member
 
Registered: Jul 2004
Location: Harrison Township MI
Distribution: fluxbox-0.9.13 on Slackware 10.2 2.6.15.1 kernel
Posts: 48

Rep: Reputation: 15
you can do that same stuff with iwconfig,

what he told you to do was set your ESSID or accesspoint to use, and KEY, or..your encryption key so you can use well..encryption.

you can do this with iwconfig also, just type
$ iwconfig essid youressid
$ iwconfig key yourkey

it should set both and you should be good to go, no restarting or even bringing the device down then up or anything. if you dont know your key, or which essid you use, you can put
$iwconfig essid any
$iwconfig key off

you wont have encryption with these settings and it will use whatever access point it can find to connect to.

edit: and for getting it to do everything for you on boot. do what Hangdog42 said and just add the lines to your /etc/rc.d/rc.local file.

you'll probly only need to add

dhcpcd wlan0

at most i would say add

ifconfig wlan0 up
dhcpcd wlan0

Last edited by Fissional; 07-08-2004 at 11:24 AM.
 
  


Reply



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
BCM4306 - ndiswrapper - Windows driver couldn't initialize the device Darvocet Linux - Hardware 8 04-27-2006 05:51 PM
NdisWrapper driver UmneyDurak Fedora 3 09-09-2005 12:48 PM
ndiswrapper can't initialize device using windows driver calcon Linux - Wireless Networking 5 03-24-2005 03:52 PM
automaticly run ndiswrapper at start-up drethenerd Linux - Wireless Networking 6 08-15-2004 04:55 PM
Cannot run ndiswrapper 0.8 for Linksys WPC54G toolkit Slackware 0 08-01-2004 09:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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