LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-19-2004, 11:25 AM   #1
khurrum
LQ Newbie
 
Registered: May 2004
Posts: 20

Rep: Reputation: 0
Mandrake 9.1 Internet: D-Link AirPlus DWL-G520 wireless PCI Adapter


hey all....

so i've got mandrake up and running on my computer dual boot with win 2k. now the thing is, i have a wireless card, i.e. D-Link AirPlus DWL-G520 wireless PCI Adapter. So how do i get Mandrake 9.1 to recognize this card, and get me on the internet.

I tried this so far: went into network, and selected the wizard option, however when it prompted me to select a network adapter from the list, my card was not in it at all. so at this point, i stopped.

how do I get it to populate the list with my card specifications so i can chose it, and get internet connectivity???
 
Old 05-19-2004, 11:52 AM   #2
bahramH
Member
 
Registered: Apr 2004
Location: France
Distribution: Mandrake
Posts: 67

Rep: Reputation: 15
Upgrade to Mandrake 10.0. Many of the wireless cards weren't recognized in older versions
of mandrake. The problem is solved for most in Mandrake 10.0
 
Old 05-19-2004, 12:48 PM   #3
khurrum
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
is upgrading easy? i just installed mandrake version 9.1 yesterday.
i have a dual boot configuration i.e. Windows 2000 on primary drive and linux on secondary slave drive.

isnt there a work around to upgrading?
will atheros drivers support.
 
Old 05-21-2004, 03:05 AM   #4
bahramH
Member
 
Registered: Apr 2004
Location: France
Distribution: Mandrake
Posts: 67

Rep: Reputation: 15
Yes, upgrading is very easy. Just insert the CD 1, boot on it, and let the autoinstaller manage everything. It will recognize what you already have and update all your files accordingly. It will not touch/modify your file partionning. (this is how it went for all the PC I have updated ! )

If you don't have the CDs, download it first and burn it.
 
Old 05-21-2004, 02:51 PM   #5
khurrum
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
well i wanted to leave out upgrading to version 10 as a last resort.
i've read that if you upgrade to mandrake 10, there will be a mixture of old and new files and as such, some people have said it is better to just perform a clean install i.e. wipe out mandrake 9.1 and install over it version 10.. what are your thoughts. did you come across any problems when you upgraded? or did mandrake 10 recognize all your hardware including the wireless card. remember, i have a D LInk G520 wireless.

btw, i really want to get version 9.2 to work with my current version of mandrake, 9.2.

i've done some research, an it said to install the wirleless tools package for linux. i checked on mandrakelinux.com but i cant seem to locate where the package is. the site shows a listing of packages available from mandrake 9.2, but where does one download it from ? i read you can get it from
freshmeat.org, but will that wireless package work for my version of mandrake !!!!

btw, how do you recompile the kernel, or should say rebuild the kernel?
do you use the make utility???

- thanks.
 
Old 05-21-2004, 04:01 PM   #6
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
this link has most drivers for d-link http://support.dlink.com/faq
but u may be better looking at the forums networking threads to see if their is anything that can help u in past posts, or maybe posting there
I would imagine u need some type of wifi driver sorry can`t help more specifically but i`m sure there is someone that can :-)
 
Old 05-27-2004, 02:50 AM   #7
jw99
LQ Newbie
 
Registered: May 2004
Location: Texas
Distribution: Mandrake 10, FreeBSD
Posts: 15

Rep: Reputation: 0
You need to download the madwifi package from sourceforge.net:

http://sourceforge.net/projects/madwifi/

Look here too:

http://www.mattfoster.clara.co.uk/madwifi-faq.htm

http://madwifiwiki.thewebhost.de/wiki/UserRecipies

This should get you through it. I can give more specific directions if you still can't figure it out, but I used Mandrake 10 so the process is probably different.
 
Old 05-28-2004, 05:06 PM   #8
khurrum
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, so I upgraded to mandrake version 10.0 official. Now mandrake claims that this version supports a wide range of wifi devices.
so after upgrading, which actually took longer than installation.
(and btw, i should have done a clean install of version 10 instead of upgrading.)

i went to configure my wireless network card which is the D-Link dwl g520.
so it gave a long list of drivers to choose from . so i selected the prism54 driver which some folks have claimed works.
but for me, it didnt. then i chocse the orinoco wireless pci driver, but that didnt work either.

so now question is, which one should i select from the drop down list???
secondly, jw99, can you give me exact directions on how you got it to work for you. i would really appreciate that.
do i need to get the madwifi package? will it be compatible with my kernel version ?? or will i have to recompile me kernel, something that
i dont know jack about !!!!


so help me out guys.

and secondly, on version 10 KDE is no longer working. I get to login prompt, select KDE, login into the system, and after a few seconds and
a blank screen i am redirected back to the login screen. I tried logging in under "linux_old" but that didnt work either.
i havent checked the /var/logs yet?

sorry for the long post. but i reallly want to solve my wireless conectivity issues first. so i dont have to swith b/w windows and linux. i just
wanna go linux all the way. and learn this feakin system inside out.

thanks.
 
Old 05-28-2004, 10:55 PM   #9
jw99
LQ Newbie
 
Registered: May 2004
Location: Texas
Distribution: Mandrake 10, FreeBSD
Posts: 15

Rep: Reputation: 0
hey khurrum we've all been there man. I actually just created the exact instructions at the madwifi wiki page, here:

http://madwifiwiki.thewebhost.de/wik...ndDLinkDWLG520

Yes, you will need to download madwifi. This card uses an Atheros chipset, not the Prism chipset, and the Atheros chipset does not yet have full support.... that's what the madwifi project is working on.

You don't have to recompile the kernel, although you do need to install the kernel source code since madwifi will need that to compile itself.

You might want to go ahead and do a clean install of Mandrake 10, since that's what I was doing and it worked well. I actually did this for two computers, and for one of them I screwed up the process and I just decided to start over from scratch. Of course, these were brand new machines anyway and didn't have any files or settings changed on them. So, good luck, and if it doesn't work then try a fresh install of Mandrake 10.

No idea on the KDE failures. I had KDE fail on me on a Mandrake 9.2 machine, and I still haven't got it back working yet. I was using it as a server anyway If I were you I'd just re-install Mandrake 10.... but then that's the "Microsoft Windows User" in me speaking.
 
Old 05-31-2004, 05:32 PM   #10
khurrum
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
hey jw99 thanks for the post. !!!

so i performed a clean install of mandrake 10.0.
downloaded wincvs, got the madwifi package. most recent just a couple days newer than then one you got on may 26th.

btw, did you get any errors at all when installing madwifi driver?
i did what your instructions said:



after i ran make install, i got some errors (see output below) so at this point i stopped.
and the other thing, is the file ifcfg-ath0 created by installing the driver, or is it a file that i have to create i.e copy and paste into a file???

also about #9 in your directions: /etc/modules is a directory how do you add "alias ath0 ath_pci" to it? does the alias command take care of it.

here is the output i received after executing, in order, the following: make clean, make and make install (see below). i got errors at the bottom so i decided to stop. did you get any of the errors shown below???



[root@localhost madwifi]# make clean
for i in ./ath_hal ./wlan ./driver; do \
(cd $i; make clean); \
done
make[1]: Entering directory `/madwifi/ath_hal'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -f ah_osdep.c opt_ah.h hal.o
make[1]: Leaving directory `/madwifi/ath_hal'
make[1]: Entering directory `/madwifi/wlan'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/madwifi/wlan'
make[1]: Entering directory `/madwifi/driver'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/madwifi/driver'
[root@localhost madwifi]# make
for i in ./ath_hal ./wlan ./driver; do \
(cd $i; make); \
done
make[1]: Entering directory `/madwifi/ath_hal'
cp ./../hal/linux/ah_osdep.c ah_osdep.c
uudecode ./../hal/linux/i386-elf.hal.o.uu
uudecode: ./../hal/linux/i386-elf.hal.o.uu: No `end' line
make[1]: *** [hal.o] Error 1
make[1]: Leaving directory `/madwifi/ath_hal'
make[1]: Entering directory `/madwifi/wlan'
make -C /lib/modules/2.6.3-7mdk/build SUBDIRS=/madwifi/wlan modules
make[2]: Entering directory `/usr/src/linux-2.6.3-7mdk'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[3]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /madwifi/wlan/if_media.o
CC [M] /madwifi/wlan/rc4.o
CC [M] /madwifi/wlan/if_ieee80211subr.o
/madwifi/wlan/if_ieee80211subr.c: In function `ieee80211_recv_beacon':
/madwifi/wlan/if_ieee80211subr.c:2930: warning: comparison is always false due t o limited range of data type
/madwifi/wlan/if_ieee80211subr.c: At top level:
/madwifi/wlan/if_ieee80211subr.c:2752: warning: `ieee80211_send_tspec' defined b ut not used
CC [M] /madwifi/wlan/if_ieee80211wireless.o
LD [M] /madwifi/wlan/wlan.o
Building modules, stage 2.
MODPOST
CC /madwifi/wlan/wlan.mod.o
LD [M] /madwifi/wlan/wlan.ko
make[2]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
make[1]: Leaving directory `/madwifi/wlan'
make[1]: Entering directory `/madwifi/driver'
make -C /lib/modules/2.6.3-7mdk/build SUBDIRS=/madwifi/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.3-7mdk'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[3]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /madwifi/driver/if_ath_module.o
/madwifi/driver/if_ath_module.c:39:20: opt_ah.h: No such file or directory
make[3]: *** [/madwifi/driver/if_ath_module.o] Error 1
make[2]: *** [/madwifi/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/madwifi/driver'
make: *** [all] Error 2
[root@localhost madwifi]# make install
for i in ./ath_hal ./wlan ./driver; do \
(cd $i; make install); \
done
make[1]: Entering directory `/madwifi/ath_hal'
uudecode ./../hal/linux/i386-elf.hal.o.uu
uudecode: ./../hal/linux/i386-elf.hal.o.uu: No `end' line
make[1]: *** [hal.o] Error 1
make[1]: Leaving directory `/madwifi/ath_hal'
make[1]: Entering directory `/madwifi/wlan'
make -C /lib/modules/2.6.3-7mdk/build SUBDIRS=/madwifi/wlan modules
make[2]: Entering directory `/usr/src/linux-2.6.3-7mdk'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[3]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
Building modules, stage 2.
MODPOST
make[2]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
test -d //lib/modules/2.6.3-7mdk/net || mkdir -p //lib/modules/2.6.3-7mdk/net
strip -S wlan.ko
cp wlan.ko //lib/modules/2.6.3-7mdk/net
make[1]: Leaving directory `/madwifi/wlan'
make[1]: Entering directory `/madwifi/driver'
make -C /lib/modules/2.6.3-7mdk/build SUBDIRS=/madwifi/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.3-7mdk'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[3]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /madwifi/driver/if_ath_module.o
/madwifi/driver/if_ath_module.c:39:20: opt_ah.h: No such file or directory
make[3]: *** [/madwifi/driver/if_ath_module.o] Error 1
make[2]: *** [/madwifi/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/madwifi/driver'
make: *** [install] Error 2
 
Old 05-31-2004, 06:05 PM   #11
jw99
LQ Newbie
 
Registered: May 2004
Location: Texas
Distribution: Mandrake 10, FreeBSD
Posts: 15

Rep: Reputation: 0
hmm, no I didn't get those errors. It looks like something might have changed in the CVS.

Try doing this (if the directories are different then you'll have to change them yourself)

ln -s /madwifi/ath_hal/opt_ah.h /madwifi/driver/opt_ah.h

basically what you're doing here is creating a link to the opt_ah.h file (which is in madwifi/ath_hal) from the madwifi/driver directory, since a file there expects to find it there. You could also just copy the file with cp.

let me know if the make fails again...
 
Old 05-31-2004, 06:06 PM   #12
jw99
LQ Newbie
 
Registered: May 2004
Location: Texas
Distribution: Mandrake 10, FreeBSD
Posts: 15

Rep: Reputation: 0
btw, you will get some of those warnings and other output, but don't worry about them.... just worry if you get errors at the bottom again.
 
Old 05-31-2004, 06:27 PM   #13
khurrum
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
i am missing this file: opt_ah.h

thats what is causing the error when i run "make install"

the way i downloaded the driver is thru wincvs. but for some reason the file opt_ah.h is not in
/hal/linux
and
/ath_hal


by the way, cvs says to hit enter for the password when logging in as anonymous, but when i do so, it fails authentication.

can u please check if you have this file: opt_ah.h


actually can you zip up your entire madwifi driver package and email to me? thanks pal.


*** does the file ifcfg-ath0 get generated of do i have to create it myself?



thanks.

Last edited by khurrum; 06-01-2004 at 07:58 PM.
 
Old 05-31-2004, 08:52 PM   #14
jw99
LQ Newbie
 
Registered: May 2004
Location: Texas
Distribution: Mandrake 10, FreeBSD
Posts: 15

Rep: Reputation: 0
ok, I've uploaded the CVS to here:

http://www.wbwither.net/madwifi.4-26-04.tar.gz

And yes you do have to create the file.

And on my system /etc/modules is a file. The file says:

# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.

alias ath0 ath_pci
 
Old 06-01-2004, 03:21 PM   #15
khurrum
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
hey jw99 !!!

thanks for the upload.

so here's where i upto:

downloaded you're wirless package.
installed the driver....didnt get any errors at all. just warnings which i ignored

created the file: ifcfg-athO (with an O right, not zero 0)
added the alias to etc/modules; etc/modules.conf; etc/modprobe.conf

ran depmod.

rebooted my machine. then i opened terminal and typed: ifconfig athO up
and here's what i get repeatedly:


athO: unknown interface: no such device



so this is where i'm at.

shoud i unplug my card from the pci bus slot, stick it back in, boot into linux and then do all of this over again???
FYI: when i select "configure my computer" and choose hardware, under ethernet, it recognizes the card as atheros.
with additional information listed underneath it.

 
  


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
Installing the D-Link AirPlus G DWL-G122 Wireless USB Adapter on SuSE 9.2 SuSE starter Linux - Wireless Networking 28 02-05-2006 02:27 PM
D-link DWL-510 PCI Wireless Adapter superdude_876 Linux - Hardware 3 10-27-2005 01:26 AM
D-Link DWL-G520 wireless card question linuxrobot Linux - Hardware 7 07-09-2005 10:55 PM
D-Link DWL-520+ Wireless PCI adapter timmytytim Linux - Hardware 1 12-26-2004 12:58 PM
D-Link Airplus Pci Adapter and Suse 9.0 joshsterm Linux - Wireless Networking 1 02-14-2004 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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