Go to Post All those crazy teenagers walking around Atlanta trying to "Save the world" looking like gang members with their attire. - BrendanB [more]
Home
Go Back   Chief Delphi > Other > Chit-Chat
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-01-2006, 17:08
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Linux Wireless Card Problems

I have a dualboot on my HP Pavilion zv5000. Windows XP and Debian (Sarge)

Kernel 2.6.8 AMD64 Generic

The only problem with my Linux partition, is that it doesn't like to recognize my Broadcom wireless adapter. From what I've heard, Linux in general does not like Broadcoms. Broadcom doesn't make a driver for linux either

So now I'm stuck with using a clunky, external ethernet bridge. I've heard of solutions using ndiswrapper, but most "How-To"'s are very sparse with details.

I have ndiswrapper-utils installed. I now understand that I need to get the Windows drivers. The HP site only provides them in .exe format. How do I get the raw .inf and .sys drivers? Do I need to install WINE and then run the extracting .exe? If so, how?

Another minor problem: The not-so-good-looking interface. It looks like Win95 :shudder: I set KDE up to use Window's fonts, but it still doesn't look the same. Is there a theme that anyone recommends?

Thanks
-Mike
__________________
http://www.mikesorrenti.com/
Reply With Quote
  #2   Spotlight this post!  
Unread 01-01-2006, 19:02
Timothy D. Ginn's Avatar
Timothy D. Ginn Timothy D. Ginn is offline
I check here maybe once a year.
no team
 
Join Date: Apr 2003
Rookie Year: 2002
Location: Port Perry, ON. Canada
Posts: 247
Timothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to allTimothy D. Ginn is a name known to all
Send a message via ICQ to Timothy D. Ginn Send a message via AIM to Timothy D. Ginn Send a message via MSN to Timothy D. Ginn Send a message via Yahoo to Timothy D. Ginn
Re: Linux Wireless Card Problems

Since you said you're dual booting anyway, why not search out and grab the installed drivers from your Windows partition? Device Manager should tell you what the files are called (and possibly even where they are).

If you're getting an interface that looks really like Windows 95 perhaps you're using KDE 2 instead of KDE 3? (I'm not sure on the versions that come with Debian; but, if that's the case and it's possible it would be good to upgrade to a newer version of KDE). There's updated KDE packages for Debian available from 3rd party sources, too, if you feel like going past whatever version is in the official Debian repository.
__________________
Alumni of FRC Team 1006
Former mentor of Full Lego Alchemist (FLL 5621) - Sempar School / Computing Students' Association of Queen's University
Reply With Quote
  #3   Spotlight this post!  
Unread 03-01-2006, 03:53
Andrew Hospodor's Avatar
Andrew Hospodor Andrew Hospodor is offline
Mentor
FRC #1072 (Harker Robotics Team)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2004
Location: San Jose, CA
Posts: 17
Andrew Hospodor is on a distinguished road
Send a message via ICQ to Andrew Hospodor Send a message via AIM to Andrew Hospodor Send a message via MSN to Andrew Hospodor Send a message via Yahoo to Andrew Hospodor
Re: Linux Wireless Card Problems

Quote:
Originally Posted by Mike
I have ndiswrapper-utils installed. I now understand that I need to get the Windows drivers. The HP site only provides them in .exe format. How do I get the raw .inf and .sys drivers? Do I need to install WINE and then run the extracting .exe? If so, how?
-Mike
Hey Mike. I had a similar problem with a USB wireless device made by netgear (I have my laptop running Debian). ndiswrappers is kind of a pain in the neck, but once you figure it out, it becomes quite easy to use. (It took me about 5 hours of painful work on the netgear drivers until finally it gave up and let me make it work. Hopefully this guide will spare you the hardship)

Step 1.
You already have the utils, so the next thing you need to do is apt-get install the ndiswrapper module for your kernel. Once you have it, go to module-assistant (a very easy to use module manager, if you don't have it -- apt-get install module-assistant). Then go to the select menu in module-assistant. Look for the ndiswrapper module in the list and select it. From there, you might have to get the source for the ndiswrapper module (module-assistant is pretty intuitive). Build then Install.

Step 2.
To get the files you want out of the exe you have to use cabextract. The command looks basically like this: cabextract [filename.exe]
Note: The cabextract will extract the filename.exe's contents into the folder the filename.exe is currently in (it will not make a new folder.)

Step 3.
Once you have the exe unpacked you will want to sort through and find the .inf file. Now you will use ndiswrapper and type a command that looks like: ndiswrapper -i filename2.inf
Note, make sure that at this point in the /etc/ndiswrapper/drivername/ there is a .inf file and a .sys file. If the files aren't present, simply search through the unpacked exe until you find them and move them over into the /etc/ndiswrapper/drivername/ folder.

Step 4. Now for the fun part. If the card is pci, lspci and find the address of the card. If it is usb, lsusb. Take the device address (which is what appears first on everyline of lspci per device) and then type the command: ndiswrapper -d [devid] drivername.
Note, "where 'devid' is either PCIID or USBID of the form XXXX:XXXX" --from the -h of ndiswrapper
SubNote: to get a list of installed drivers and their names, type ndiswrapper -l.
SubNote2: There should now be a .conf file in /etc/ndiswrapper/drivername

Step 5. The easy part
Type ndiswrapper -m, hit return
If you want to update the the hotplug information, say ndiswrapper -h and hit return.

Step 6. Making modprobe happy
You might have to edit the /etc/modprobe.d/ndiswrapper file to alias ndiswrapper to wlan0.
This is quite simple, my file looks like this:
Quote:
alias wlan0 ndiswrapper
Step 7. Interfaces file
Debian makes network interfaces incredibly easy (I like this feature a lot). In the /etc/network/interfaces file add the lines (the comment just makes the file nicer to read):
Quote:
#wlan0 interface
iface wlan0 inet dhcp
Step 8. Testing
To test, first modprobe ndiswrapper with the card hooked up appropriatley.
Assuming this works, you should now be able to use your wireless card. To find access points near you type "iwlist scanning".
To connect the command is iwconfig wlan0 essid [ssid]
then type ifup wlan0
Make sure that all other connections are ifdown, otherwise the direction of packets might get confusing for the computer.
Now, try pinging fbi.gov. Hopefully it works!

To remove the card "safely" type modprobe -r ndiswrapper and then remove the card. I have not been able to get hotplug working, so I have been stuck modprobing and modprobe -r ing.

I wrote a nice script that does all of the connecting for you if you want it (add it to your /bin and call it "iwconnect". chmod 777 it so you can execute it.):
Quote:
#This is a script written by Andrew Hospodor (andrewh@gixel.org). To use, modify, or replicate, this line must be kept intact.
#Name of Script: iwconnect
#Permissions: user needs sudo to run
#!/bin/bash
modprobe -r ndiswrapper
modprobe ndiswrapper
echo "Here is a list of essids:"
iwlist wlan0 scanning | grep ESSID
echo "What is the essid?"
read myEssid
iwconfig wlan0 essid $myEssid
ifup wlan0
#end file
If you have any questions, don't be shy, please post them.

Have a nice day and Happy New Year!

...Andrew Hospodor

Note, this guide was written by Andrew Hospodor and has no restrictions on distribution.
ndiswrapper could possibly be a copyright, I'm not sure if it is. However, their website can be found at ndiswrapper.sourceforge.net and their wiki can be found at: http://ndiswrapper.sourceforge.net/m....php/Main_Page
Debian's page can be found at www.debian.org
__________________
Andrew Hospodor
Team 1072
Electronics Subteam Leader
andrew@hospodor.com


1072 2005 Season
Sacramento Regional Champion
Judges Award - Silicon Valley Regional
Reply With Quote
  #4   Spotlight this post!  
Unread 03-01-2006, 03:57
Andrew Hospodor's Avatar
Andrew Hospodor Andrew Hospodor is offline
Mentor
FRC #1072 (Harker Robotics Team)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2004
Location: San Jose, CA
Posts: 17
Andrew Hospodor is on a distinguished road
Send a message via ICQ to Andrew Hospodor Send a message via AIM to Andrew Hospodor Send a message via MSN to Andrew Hospodor Send a message via Yahoo to Andrew Hospodor
Re: Linux Wireless Card Problems

Quote:
Originally Posted by Mike
Another minor problem: The not-so-good-looking interface. It looks like Win95 :shudder: I set KDE up to use Window's fonts, but it still doesn't look the same. Is there a theme that anyone recommends?
Gnome is nice. It is simple and useful. I use xfce4 which is nice, but needs a lot of user configuration (not too many default buttons on the task bar, one has to add them). I've never really liked KDE. Why do you want it to look the same as windows? Be different you are a linux user! (jk)

Again, Happy New Year!
__________________
Andrew Hospodor
Team 1072
Electronics Subteam Leader
andrew@hospodor.com


1072 2005 Season
Sacramento Regional Champion
Judges Award - Silicon Valley Regional
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Let's have Linux Robots Next Year! jdong Control System 52 22-08-2005 09:40
QUICK WIRELESS HELP JamesBrown IT / Communications 17 20-04-2005 02:33
Wireless Networks: Connecting buildings together KTorak IT / Communications 1 29-03-2005 20:41
Yellow card / Red card usage at 2004 IRI Andy Baker Rules/Strategy 53 02-08-2004 00:35
Linux SteveC116 3D Animation and Competition 22 25-03-2004 15:07


All times are GMT -5. The time now is 13:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi