LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-13-2005, 08:12 PM   #1
SeekAndDestroy
LQ Newbie
 
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11

Rep: Reputation: 0
linksys wireless adapter


i downloaded ndis wrapper, installed it, installed the drivers for the card, and every time i do what the instractions say to do after that point does not work. heres what it says:
If you get no error the driver should now be loaded. You can verify this by checking system log produced by dmesg. If the driver is loaded successfully, you should see a message in the system log
ndiswrapper version <version> loadedMake sure the version <version> here matches the version of ndiswrapper package that you downloaded and installed. If you get a different version, you have old version of package, which you should Uninstall and go back to step 1.
If after modprob'ing, system is locked up no response to keyboard etc., it indicates that kernel has crashed. See Distributions and FAQ for hints on what may cause problems for your distribution/kernel.

If you have successfully installed windows drivers earlier with ndiswrapper -i INFfile, the ndiswrapper module will load them all. You should then see the following messages in system log
ndiswrapper: driver ''driver1'' addedfor each of the drivers. If you don't see these messages, it usually means that there are no usable drivers installed in /etc/ndiswrapper directory. Check if the /etc/ndiswrapper directory has one sub-directory for each driver and if in each driver's directory there are inf, sys and conf files. Otherwise, you may need to repeat step 2.
If this does not bring up the lights on the card, try ejecting it and re-inserting it.

If the system has a card that works with one of the loaded drivers, you should see the following message in the system log

wlan0: ndiswrapper ethernet device xx:xx:xx:xx:xx:xx
[edit]Configure interface:
Use iwconfig to configure wireless network interface. First, see if the interface is available, with
iwconfigThis tool is not likely to be present on your system : it is part of the package Wireless Tools for Linux, which you should install. 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. The wireless configuration to be used should match what your Access Point AP uses. First, find out if you can see your access point (AP) with
iwlist wlan0 scanNote: You may have to set the network name before the scan can find your Access Point. If the scan does not find your AP, try issuing the command
iwconfig wlan0 essid ESSIDbefore the using the command
iwlist wlan0 scanIf this lists your AP, you can continue. Otherwise, you may have one of two problems: Your AP doesn't broadcast SSID see the FAQ for more information or the radio of the card is off again, see the FAQ for details. If you see the AP in scan above, set the operating mode of the interface according to your setup. In most cases, it is Managed
iwconfig wlan0 mode ManagedIf you use encryption WEP, set the key:
iwconfig wlan0 key restricted XXXXXXXXYou can use 10 hex digits for 40-bit encryption or 26 hex digits for 128-bit encryption. You may need to use open security mode instead of restricted depending on the setup of your AP. If you want to write the key in ASCII use s: e.g. iwconfig wlan0 key restricted sassword. Set the network name
iwconfig wlan0 essid ESSIDReplace ESSID with the network name used by your AP.
At this point, check to make sure that ESSID is set in output of iwconfig wlan0. If you see the ESSID as you set, you can proceed to next step. If you see ESSID: off/any, then your card is not associated to AP. Check if WEP encryption is set exactly as used by AP and the AP broadcasts ESSID. See FAQ for more details. Until ESSID is set in output of iwconfig wlan0, you may not use wlan0 as network interface.

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 upor
dhclient wlan0or
dhcpcd wlan0etc.
Remember, if you have a firewall, to let it know that wlan0 is an external interface and allow it to pass traffic otherwise you won't even be able to ping your AP

Create module alias: Once everything works fine you can write the correct modprobe settings to load ndiswrapper automatically when wlan0 interface is used, by running
ndiswrapper -mNote that this doesn't automatically load ndiswrapper module at boot time. If you want the module to be loaded automatically at boot time, you should configure your module setup, which depends on the distrbution. Most distributions will load all modules listed in /etc/modules at boot time. Mandrake 10.x uses /etc/modprobe.preload. For them, you can add a line
ndiswrapperin /etc/modules.
WPA support: See WPA Wiki on how to use Wi-fi Protected Access with ndiswrapper
Retrieved from "http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation"

now, i didnt get any errors, so it should be fine, however, i have no clue where the system log files is so i cant go back and check it. anyone have any suggestions?
 
Old 11-14-2005, 01:11 PM   #2
torsin
LQ Newbie
 
Registered: Oct 2005
Location: minnesota
Distribution: debian (sarge)
Posts: 15

Rep: Reputation: 0
If you type: dmesg you should be able to see the latest information from the system log. There should be a line saying ndiswrapper is running and which version is being used.

Hope that helps, Torsin
 
Old 11-14-2005, 07:32 PM   #3
SeekAndDestroy
LQ Newbie
 
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11

Original Poster
Rep: Reputation: 0
i found it, and it said error installing, so im lost now. this isnt my first attempt at installing this either. the first time was when i just got linux and didnt know anything, i tryed to do it the way the instructions said, compile it and everything, then i found the rpm file and ive been using that. but, now that that doesnt work either, im stuck. id really like to have my wireless network card back, i want to put it back in my room. is there any other way to install it? o yeah, and ive used every version there is an rpm file for.

Last edited by SeekAndDestroy; 11-14-2005 at 07:33 PM.
 
Old 11-14-2005, 08:19 PM   #4
SeekAndDestroy
LQ Newbie
 
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11

Original Poster
Rep: Reputation: 0
i tryed to complie it again and decided to put the errors i get on here

[root@monkeychildhosting ndiswrapper-1.5]# make
make -C driver
make[1]: Entering directory `/adam/ndiswrapper-1.5/driver'
Can't find kernel sources in /lib/modules/2.6.8.1-12mdk/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/adam/ndiswrapper-1.5/driver'
make: *** [all] Error 2
[root@monkeychildhosting ndiswrapper-1.5]#






[root@monkeychildhosting ndiswrapper-1.5]# make KSRC=/usr/src/linux/
make -C driver
make[1]: Entering directory `/adam/ndiswrapper-1.5/driver'
make -C /usr/src/linux/ SUBDIRS=/adam/ndiswrapper-1.5/driver \
DRIVER_VERSION=1.5
make[2]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make[3]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk/arch/i386/boot'
make[3]: Nothing to be done for `dep'.
make[3]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk/arch/i386/boot'
rm -f .depend .hdepend
make _sfdep_/adam/ndiswrapper-1.5/driver _FASTDEP_ALL_SUB_DIRS="/adam/ndiswrapper-1.5/driver"
make[3]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make -C /adam/ndiswrapper-1.5/driver fastdep
make[4]: Entering directory `/adam/ndiswrapper-1.5/driver'
make[4]: *** No rule to make target `fastdep'. Stop.
make[4]: Leaving directory `/adam/ndiswrapper-1.5/driver'
make[3]: *** [_sfdep_/adam/ndiswrapper-1.5/driver] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make[2]: *** [dep-files] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/adam/ndiswrapper-1.5/driver'
make: *** [all] Error 2
[root@monkeychildhosting ndiswrapper-1.5]#




[root@monkeychildhosting ndiswrapper-1.5]# make install
make -C driver install
make[1]: Entering directory `/adam/ndiswrapper-1.5/driver'
Can't find kernel sources in /lib/modules/2.6.8.1-12mdk/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/adam/ndiswrapper-1.5/driver'
make: *** [install] Error 2
[root@monkeychildhosting ndiswrapper-1.5]#






[root@monkeychildhosting ndiswrapper-1.5]# make install KSRC=/usr/src/linux/
make -C driver install
make[1]: Entering directory `/adam/ndiswrapper-1.5/driver'
make -C /usr/src/linux/ SUBDIRS=/adam/ndiswrapper-1.5/driver \
DRIVER_VERSION=1.5
make[2]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make[3]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk/arch/i386/boot'
make[3]: Nothing to be done for `dep'.
make[3]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk/arch/i386/boot'
rm -f .depend .hdepend
make _sfdep_/adam/ndiswrapper-1.5/driver _FASTDEP_ALL_SUB_DIRS="/adam/ndiswrapper-1.5/driver"
make[3]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make -C /adam/ndiswrapper-1.5/driver fastdep
make[4]: Entering directory `/adam/ndiswrapper-1.5/driver'
make[4]: *** No rule to make target `fastdep'. Stop.
make[4]: Leaving directory `/adam/ndiswrapper-1.5/driver'
make[3]: *** [_sfdep_/adam/ndiswrapper-1.5/driver] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make[2]: *** [dep-files] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/adam/ndiswrapper-1.5/driver'
make: *** [install] Error 2
[root@monkeychildhosting ndiswrapper-1.5]#



i can see why the make and make install doesnt work, but when i specify where the kernels are, there shouldnt be any reason it wont work
 
Old 11-15-2005, 09:00 AM   #5
torsin
LQ Newbie
 
Registered: Oct 2005
Location: minnesota
Distribution: debian (sarge)
Posts: 15

Rep: Reputation: 0
It may be better to make a link to where your kernel is. In my /lib/modules/ folder I have folders /2.4.27-2-386/ and then a link build that points to my kernel souce headers. Here's the output from ls -l in folder /lib/modules/2.4.27-2-386:

lrwxrwxrwx 1 root root 36 2005-10-04 12:30 build -> /usr/src/kernel-headers-2.4.27-2-386

So, check what your system has in the folder /lib/modules/2.6.8.1-12mdk/ and what the file build is. Make your own link in that directory (/lib/modules/2.6.8.1-12mdk/) and see if that works. Here's how you would make the link:

ln -s /usr/src/linux build

That is of course if your kernel headers are in the /usr/src/linux folder. You may need to install them; if you do install them make sure you install the exact same headers as is given from: uname -r. ls -r tells me: 2.4.27-2-386, and that is the same version of headers I have installed as you can see above.
 
  


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
Linksys USB Wireless Adapter Help... JediDB Linux - Wireless Networking 1 08-04-2005 12:00 PM
Linksys Wireless-B Adapter v4 on FC4 yayalasee Linux - Wireless Networking 0 08-01-2005 12:20 AM
Linksys Wireless Internet Adapter Zedd129 Fedora 3 10-17-2004 04:27 PM
LInksys Wireless Network adapter rj686 Linux - Hardware 4 10-14-2004 03:09 AM
Linksys WPC55AG Wireless Adapter wirelessnewbie Linux - Hardware 0 06-12-2004 02:52 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration