LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 02-04-2004, 04:10 PM   #1
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Rep: Reputation: 15
Question Wireless adapter install


I am now trying to switch to linux from Windows. So far, my experience has been great, except for my wirless adapter.

Specs:
Microsoft
802.11b
MN-510
USB
Prism2/2.5/3

I have Mandrake 9.2 and I downloaded "linux-wlan-ng-0.1.16-pre9.tar" driver and ran the config file to install the drivers, which went well, untill I got to the question about the directory my linux source. I have nothing in the default folder and I am hoping I can get some assistance to maybe where to find the files I need for the folder. I think I am looking for the kernel-source RPM and gcc compiler. I actually searched for the gcc compiler on my software program thing, and installed a couple of those.

Last edited by Rnastyracer; 02-04-2004 at 04:15 PM.
 
Old 02-05-2004, 08:06 AM   #2
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
Somewhere on your install CDs is the "kernel source" or maybe "kernel headers" (almost as good). Look for this and install with rpm or however you would use. Then do, as root, "ldconfig" and it should work. You might possibly have to reboot but I don't think so.

Good Luck
Alan
 
Old 02-05-2004, 10:35 AM   #3
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Original Poster
Rep: Reputation: 15
I found:

kernel-2.4.22.10mdk-1-1mdk.i586
kernel2.4-marcelo-2.4.22-1mdk.i586
kernel-enterprise-2.4.22.10mdk-1-1mdk.i586
kernel-i686-up-4GB-2.4.22.10mdk-1-1mdk.i586
kernel-p3-smp-64GB-2.4.22.10mdk-1-1mdk.i586
kernel-secure-2.4.22.10mdk-1-1mdk.i586
kernel-smp-2.4.22.10mdk-1-1mdk.i586

on the first cd, but I did not find nothing with "kernel source" in the name exactly or anything.
 
Old 02-05-2004, 10:58 AM   #4
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
I looked on the Mandrake site at the download mirrors and there is a directory called "Mandrake" and in it are subdirectories of "RPMS", "RPMS2", and "RPMS3". In RPMS2 there are source files for the various kernels. Pick which kernel you used and get the appropriate source code. This may be on another installation CD- I don't use Mandrake- but most distros will give you the source (usually on another CD).

Good Luck
Alan
 
Old 02-05-2004, 11:25 AM   #5
laltopi
Member
 
Registered: Jan 2004
Location: Silicon Valley
Distribution: Fedora[2-3]
Posts: 44

Rep: Reputation: 15
Sources are usually in the second or the third installation cd, depending on
your distribution. After you install the source from a rpm, chdir to /usr/src/linux where all the source files get copied.
 
Old 02-05-2004, 02:49 PM   #6
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Original Poster
Rep: Reputation: 15
Okay, I am getting somewhere. I downloaded a source file from a site and I extracted it to the folder. When I try to install my wlan driver, at the end (where it asks for the dir of the source code) it reads "the kernel header files are present, but not the whole source code."

My usr/src/linux folder has the files from the file I downloaded and includes sub folders. Should I extract the files from those sub folders, to the main linux folder?

RnastyRacer
 
Old 02-05-2004, 03:05 PM   #7
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
What was the file called? Was it "something kernel-sources something.rpm"?If so, then that should be it after you install it. It looks from the message that the program wants all the kernel source. Usually this is going to be in the 30 Meg size (compressed) and 150 Meg uncompressed.

Alan
 
Old 02-05-2004, 03:38 PM   #8
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Original Poster
Rep: Reputation: 15
The file was called: linux-2.4.22.tar.bz2 and is 29.2 megs.
 
Old 02-05-2004, 03:57 PM   #9
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
Did you use "tar jxvf filename.bz" to decompress the file? And where did you decompress it? If you had installed it via rpm then it will be where it belongs for routine use. Usually this is /usr/src/. If you had problems with your compile, check "configure --help" and read where the program expects things to be and if the source code is elsewhere, you can pass the appropriate option during the configure process.

Alan
 
Old 02-05-2004, 07:29 PM   #10
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Original Poster
Rep: Reputation: 15
Actually I used the command: tar xjf /here/is/file

What happen was, that it created the files in a folder, inside of my created linux folder and when I tried installing my drivers with it like that, it couldn't find it at all. I guess I could have told it to go to that folder, but thats not the point I took the files and subfolders and put it in the linux folder and when I tried to install it then, that when I got that message. I will maybe run it via rpm and see what happens. Do I need to make a config file for this to work?
 
Old 02-05-2004, 08:51 PM   #11
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
This actually sounds OK. Do a "configure --help" and read what it says about where it expects the kernel source files. It will be something like "./configure --src_dir=/your/path/to/source" and then hit "enter". Hopefully the driver will compile OK and all will be well. Usually you run tar in the directory where you want to untar the files, so if you want it in /usr/src you would do:
cd /usr/src <enter>
tar xjvf something.tar.bz2 <enter>
unzips here in /usr/src --> now you have /usr/src/something/.

If that doesn't work then try the rpm as that should go to the default location and create any necessary symbolic links automatically.

Good Luck
Alan
 
Old 02-06-2004, 12:12 PM   #12
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks for the feedback. I actually got my driver to install by giving the dir of the main config file. However, there were errors. Maybe you can spot some problems with it below. I also ran some other commands, that maybe can help the situation. I will post those next.

Install:
Code:
[root@localhost root]# cd /root/linux-wlan-ng-0.2.1-pre9
[root@localhost linux-wlan-ng-0.2.1-pre9]# ./Configure
 
-------------- Linux WLAN Configuration Script -------------
 
The default responses are correct for most users.
 
Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [n]:
 
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]:
 
Build Prism2.5 native PCI (_pci) driver? (y/n) [n]:
 
Build Prism2.5 USB (_usb) driver? (y/n) [y]:
 
Linux source directory [cp /boot/config /usr/src/linux/.config]:
./Configure: line 299: [: too many arguments
/bin/sh: line 1: [: too many arguments
/bin/sh: line 1: [: too many arguments
cc: /usr/src/linux/.config/include: No such file or directory
make: *** [get_version] Error 1
./Configure: line 311: scripts/make.opts: No such file or directory
 
grep: cp: No such file or directory
grep: /usr/src/linux/.config/include/linux/version.h: No such file or directory
The kernel source tree is version .
./Configure: line 327: [: -lt: unary operator expected
./Configure: line 332: [: -gt: unary operator expected
WARNING: the current running kernel is actually version 2.4.22-10mdk.
./Configure: line 343: [: too many arguments
The current kernel build date is Thu Sep 18 12:30:58 2003.
./Configure: line 360: [: too many arguments
 
./Configure: line 403: scripts/make.opts: No such file or directory
Alternate target install root directory on host []:
  Module install directory [/lib/modules/]:
 
It looks like you have a System V init file setup.
 
 
Prefix for build host compiler? (rarely needed) []:
 
Build for debugging (see doc/config.debug) (y/n) [n]:
 
 
Configuration successful.
 
[root@localhost linux-wlan-ng-0.2.1-pre9]# make all
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/root/linux-wlan-ng-0.2.1-pre9/src'
set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make -C $d ; done
make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre9/src/mkmeta'
gcc -E -M -I../include -Icp /boot/config /usr/src/linux/.config/include -D__LINUX_WLAN__ ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c  mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c  mkmetastruct.c > .depend
gcc: /usr/src/linux/.config/include: No such file or directory
make[2]: *** [.depend] Error 1
make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre9/src/mkmeta'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre9/src'
make: *** [all] Error 2
[root@localhost linux-wlan-ng-0.2.1-pre9]# make install
find . -name .depend -exec rm {} \;
set -e; for d in src doc man etc; do make -C $d install ; done
make[1]: Entering directory `/root/linux-wlan-ng-0.2.1-pre9/src'
set -e; for d in p80211 prism2 shared wlanctl wland nwepgen mkmeta wlancfg; do make -C $d install ; done
make[2]: Entering directory `/root/linux-wlan-ng-0.2.1-pre9/src/p80211'
gcc -c -D__KERNEL__ -Icp /boot/config /usr/src/linux/.config/include   -I../include   -DEXPORT_SYMTAB p80211mod.c -o p80211mod.o
gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [p80211mod.o] Error 1
make[2]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre9/src/p80211'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/linux-wlan-ng-0.2.1-pre9/src'
make: *** [install] Error 2
 
Old 02-06-2004, 12:37 PM   #13
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Original Poster
Rep: Reputation: 15
This should help also:

Code:
[root@localhost root]# ifconfig -a
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:542 errors:0 dropped:0 overruns:0 frame:0
          TX packets:542 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:38642 (37.7 Kb)  TX bytes:38642 (37.7 Kb)
 
wlan0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
[root@localhost root]# iwconfig
lo        no wireless extensions.
 
wlan0     IEEE 802.11-b  ESSID:""
          Mode:Auto  Access Point: 00:00:00:00:00:00
          Encryption key:off
           
[root@localhost root]# cat /proc/bus/usb/devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=ef80
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=045e ProdID=006e Rev= 1.32
S:  Manufacturer=Microsoft®
S:  Product=Wireless USB Adapter MN-510
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=prism2_usb
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=1ms
[root@localhost root]# lsmod
Module                  Size  Used by    Not tainted
nls_cp850               4284   1  (autoclean)
vfat                   11820   1  (autoclean)
fat                    38040   0  (autoclean) [vfat]
parport_pc             25544   1  (autoclean)
lp                      8160   0  (autoclean)
parport                34472   1  (autoclean) [parport_pc lp]
es1371                 27788   1
ac97_codec             15828   0  [es1371]
soundcore               6340   0  [es1371]
gameport                3268   0  [es1371]
nfsd                   75280   8  (autoclean)
af_packet              14856   0  (autoclean)
sr_mod                 19384   0  (autoclean)
floppy                 55932   2
nls_iso8859-1           3484   2  (autoclean)
prism2_usb             72324   0  (unused)
ntfs                   77292   1  (autoclean)
supermount             84032   3  (autoclean)
p80211                 23424   0  [prism2_usb]
ide-cd                 33956   0
cdrom                  32608   0  [sr_mod ide-cd]
ide-scsi               11376   0
scsi_mod              106176   2  [sr_mod ide-scsi]
usb-uhci               25136   0  (unused)
usbcore                74988   1  [prism2_usb usb-uhci]
rtc                     9004   0  (autoclean)
ext3                   60048   2
jbd                    39264   2  [ext3]
[root@localhost root]#
 
Old 02-06-2004, 01:24 PM   #14
aclaunch
Member
 
Registered: Sep 2003
Posts: 91

Rep: Reputation: 15
Well the first thing is look at the line about 1/3 way down in the configure output where it says

The kernel source tree is version .
./Configure: line 327: [: -lt: unary operator expected
./Configure: line 332: [: -gt: unary operator expected
WARNING: the current running kernel is actually version 2.4.22-10mdk.

In order for this to compile properly you need to have the actual source code for your running kernel-you can't just have any source code. That's one of the problems with most distros, they compile custom kernels and it is harder to make other apps against (because you can't just get the source from www.kernel.org). You need to recheck your installation CDs or else the Mandrake site to get the proper version of the source. You can do "uname -r" to get your kernel release and then match that to the mandrake source.

That said, it looks like it compiled as you have the module loaded. Have you tried to initialize the card? I don't know how Mandrake does it but I do
"iwconfig wlan0 192.168.1.10"
"iwconfig wlan0 mode Managed essid XXXXXX channel 6 key restricted XXXXXXXXXXX (X=my info for essid and WEP)
"route add default gw 192.168.1.1" and it all works. If the module is not built properly it probably won't work but it doesn't hurt to try.

Good Luck
Alan
 
Old 02-06-2004, 02:01 PM   #15
Rnastyracer
Member
 
Registered: Dec 2002
Posts: 44

Original Poster
Rep: Reputation: 15
[root@localhost root]# iwconfig wlan0 192.168.2.34
Error : unrecognised wireless request "192.168.2.34"
[root@localhost root]# route add default gw 192.168.2.1
SIOCADDRT: Network is unreachable
[root@localhost root]#

I don't know what a essid is.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install acx100 chipset pci wireless adapter pathak Linux - Wireless Networking 0 05-09-2005 05:45 AM
Easy to install wireless adapter el_pajaro! Linux - Wireless Networking 1 01-12-2005 09:40 PM
Wireless Notebook adapter install ccflashback Linux - Wireless Networking 2 11-20-2004 04:40 PM
How to install usb wireless adapter in linux? jarrywhu Linux - Wireless Networking 0 09-01-2004 08:56 AM
Linksys Wireless USB Network Adapter, How do I Install? Kevin Nash Red Hat 0 02-07-2004 11:41 PM


All times are GMT -5. The time now is 02:09 PM.

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
Open Source Consulting | Domain Registration