LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Mandrake 9.1 Internet: D-Link AirPlus DWL-G520 wireless PCI Adapter (https://www.linuxquestions.org/questions/mandriva-30/mandrake-9-1-internet-d-link-airplus-dwl-g520-wireless-pci-adapter-183330/)

khurrum 05-19-2004 11:25 AM

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???

bahramH 05-19-2004 11:52 AM

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

khurrum 05-19-2004 12:48 PM

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.

bahramH 05-21-2004 03:05 AM

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.

khurrum 05-21-2004 02:51 PM

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.

mermxx 05-21-2004 04:01 PM

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 :-)

jw99 05-27-2004 02:50 AM

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.

khurrum 05-28-2004 05:06 PM

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.

jw99 05-28-2004 10:55 PM

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 :D If I were you I'd just re-install Mandrake 10.... but then that's the "Microsoft Windows User" in me speaking.

khurrum 05-31-2004 05:32 PM

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

jw99 05-31-2004 06:05 PM

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...

jw99 05-31-2004 06:06 PM

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.

khurrum 05-31-2004 06:27 PM

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.

jw99 05-31-2004 08:52 PM

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

khurrum 06-01-2004 03:21 PM

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.

:confused: :( :newbie:


All times are GMT -5. The time now is 03:45 AM.