LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums HCL Reviews 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 12-07-2004, 10:17 AM   #1
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Rep: Reputation: 15
ndiswrapper, Debian, Intel PRO/Wireless - HOWTO


Please see response below for how I sorted this problem...

Hi

Sony VAIO VGN-A217M
Debian Unstable - w/ 2.6.8 Kernel
Intel Pro / Wireless 2200BG

I have installed ndiswrapper 0.12. It built fine (kernel sources etc all in place).

ndiswrapper -l /path/to/drivers/w22n51.INF loaded fine, but they did say 'Warning: Cannot locate w22n5msg.dll' - continued anyway, can't find this file anywhere!!

modprobe ndiswrapper worked fine and when I did a dmesg I got;
ndiswrapper: using irq 7
wlan0: ndiswrapper ethernet device **:**:**:**:**:** using driver w22n51
wlan0: encryption modes supported: WEP, WPA with TKIP
ndiswrapper: driver w22n51 (Intel,03/08/2004,8.0.12.20000) added
wlan0: no IPv6 routers present

I set the appropriate iwconfig params, did a iwconfig and got this result;
IEEE 802.11g ESSID:"*******"
Mode:Managed Frequency:2.462 GHz Access Point: **:**:**:**:**
Bit Rate:54 Mb/s
RTS thr:1600 B Fragment thr:2304 B
Encryption key:****-****-** Security mode:restricted
Power Managementff
Link Quality:51/100 Signal level:-49 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

This is all correct.

if I do a [Bifconfig[/B] I get the same as above (my cabled eth0 is down!!)

It allows me to scan using iwscan wlan0 and everything seems fine there

BUT if I ping say 'ping www.google.co.uk' I get;
ping: unknown host www.google.co.uk

It's not connecting!!!

It's driving me barmy - can any one help please... (obviously the '*' characters above are to protect the innocent - me :-) )

Cheers
Steve

Last edited by steve1401; 12-08-2004 at 10:57 AM.
 
Old 12-07-2004, 06:20 PM   #2
steve1401
Member
 
Registered: May 2003
Location: UK
Distribution: Debian
Posts: 73

Original Poster
Rep: Reputation: 15
This is now sorted. I ended up finding out how to use the ipw2200 drivers from the sourceforge site.

I wrote a howto, and submited it to the tutorials area. It doesn't seem to have appeared there, so I guess it's a moderated thing??

Anyway, I'll post it in this reply...

Setting up Wireless LAN on Sony VAIO VGN-A217M On Debian Unstable


Preamble
OK, I bought this fantastic laptop and got just about all the features working on it in Linux bar one – the wireless card. It's a Intel PRO/Wireless 2200BG card, and there seems to be a lot of people out there with similar issues to what I had. This document will server to remind me how to do it again if needed, and, hopefully, to help others. Anyway, on with the show...

Prerequisites
I use Debian as my distro of choice, so things may be slightly different for your machine. I am also running 'unstable' and my apt sources list looks like this;

...

deb ftp://ftp.uk.debian.org/debian/ unstable main contrib non-free
deb-src ftp://ftp.uk.debian.org/debian/ unstable main contrib non-free
...

Packages required are;

wireless-tools
ipw2200
firmware

You will need to make sure you have the correct 'make' tools and gcc compilers installed.

Also, you will need a 2.6(.4+ I think) kernel, compiled from source with HAM_RADIO compiled as module and HOTPLUG support enabled. Once installed, you will need to make a link from your /lib/modules/[Kernel.Vers] directory, called 'build' and aimed at your kernel source files. In my case this was created like so;

ln -s /usr/src/kernel-source-2.6.8 /lib/modules/2.6.8/build

Install Packages
This is specific install to Debian, but there are RPM's out there and source packages as well, but next we need to install wireless-tools;

apt-get update
apt-get install wireless-tools

Next, download the ipw2200-0.16.tgz package from sourceforge, and save it somewhere safe in your home directory – I saved mine to ~[username]/software/. To install it;

cd /usr/local/src
tar xzvf ~[username]/software/ipw2200.tgz
cd ipw2200-0.16
make
make install

I didn't encounter any problems here. If you do, check that you have the correct apps installed to comile with and that you have the kernel source built correctly etc. Don't forget the symlink in /lib/modules/[kernel.vers]

Download the firmware from sourceforge. Make sure you get the correct one, for the ipw2200-0.16 used here the ipw2200-fw-2.0.tgz is the correct one. This will contain 4 firmware files which need copying to;
/usr/lib/hotplug/firmware

Get things going
If you've tried getting things going previously with an 'ndis' package, remove it, remove the installed module (modprobe -r ndiswrapper) and reboot.

Load the ipw2200 module;

modprobe ipw2200

Check this is loaded without errors by looking at you dmesg output;

dmesg | grep ipw2200

Make sure there are no errors, then adjust your interfaces file to look something like this (I used vi...);

vi /etc/network/interfaces

...

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).


# The primary network interface
#auto eth0
#iface eth0 inet dhcp


#name Ethernet LAN card
iface eth0 inet dhcp
wireless_essid *********
wireless_key **********
wireless_mode Managed
wireless_ap any
wireless_channel 11
auto eth0

...

Obviously the particular settings only you will know. 'iwlist' is your friend here;

iwlist [interface] scan

Notice how the origonal eth0 setting for your origonal wired connection are just blanked out. This will make things easy to uncomment/comment things if you are working away from a wireless LAN and don't want too much hassle re-inputting details.

Now restart the network and cross fingers;

/etc/init.d/networking restart

Notes
The ipw2200-0.16 drivers and firmware can be downloaded from
http://ipw2200.sourceforge.net/

There is plenty of extra help on their pages too.

Steve

Last edited by steve1401; 12-08-2004 at 06:14 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
intel wireless pro 2200 detected as atheros wireless card? whf SUSE / openSUSE 5 08-29-2005 07:04 PM
ndiswrapper with intel/pro wireless 2915 card [LAG] Prude Linux - Wireless Networking 2 03-31-2005 05:31 PM
connecting to the internet via wireless through Intel PRo/Wireless LAN 2100 3B Mini P k_wjss Linux - Newbie 1 09-28-2004 06:00 PM
FC2 not recognizing the Intel PRO/Wireless 2200BG wireless card mdslf Linux - Laptop and Netbook 2 08-24-2004 03:25 AM
ndiswrapper with intel pro/wireless 2200BG Fedora 1 patrickclay Linux - Wireless Networking 9 07-12-2004 01:17 PM

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

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