Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[WIFI] comment faire fonctionner ma AirPlusXtremeG DWL-G520
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Lionheart
n00b
n00b


Joined: 01 Jul 2005
Posts: 37

PostPosted: Fri Jul 01, 2005 2:48 pm    Post subject: [WIFI] comment faire fonctionner ma AirPlusXtremeG DWL-G520 Reply with quote

Tout d'abord bonjour à tous.

Etant pocesseur d'une carte wifi PCI AirPlusXtremeG DWL-G520 et après plusieurs tentatives sans résultat je vais exposer mon problème : lorsque j'utilise les pilotes madwifi après un ifconfig ethxx/athxx up (selon le pilote que je tente d'utilisé) le pc freeze, bien entendu le support Wifi est bien activé sous le noyau et lors d'un dmesg la carte est bien détectée. Donc j'aimerais savoir si quelqu'un a réussi à faire fonctionner une tel carte avec le support WPA et si oui si il peut m'indiquer la démarche a suivre de A à Z ansi que les bon pilotes à utiliser.

J'utilise la version 2005.0 de Gentoo avec un nouyau 2.6.11-gentoo-r3

D'avance merci


Last edited by Lionheart on Fri Jul 01, 2005 6:30 pm; edited 2 times in total
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Fri Jul 01, 2005 2:50 pm    Post subject: Reply with quote

change ton titre : [HOWTO] c'est pour indique que toi tu as fait un howto justement :wink:

mets plutôt [WIFI] ou un truc comme ça
_________________
membre officieux du SAV Ati GEntoo
Back to top
View user's profile Send private message
NiLuJe
Guru
Guru


Joined: 06 Nov 2004
Posts: 303
Location: Paris, France

PostPosted: Fri Jul 01, 2005 2:58 pm    Post subject: Reply with quote

<= DWL-G520 ici, et heu, ça marche très bien .. (Bon, okay, j'suis sur la version cvs branche bsd, mais ça marchait très bien avec la version de portage :) ) [J'ai des ebuilds en stock si ça te tente d'installer 'proprement' la version cvs]
Back to top
View user's profile Send private message
Will11
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2005
Posts: 90
Location: Belgium

PostPosted: Fri Jul 01, 2005 4:08 pm    Post subject: Reply with quote

Egalement la même et elle fonctionne bien (sauf en ad-hoc j'ai pas encore réussi). Mais moi j'ai athx et pas ethx.
Sinon t'es sur de pas avoir un dérivé, genre 520+ (qui n'a pas le même chipset).
Pour le wpa j'ai pas encore essayé mais le wep fonctionne avec iwconfig.
Sinon tu peux toujours jeter un coup d'oeil là http://www.gentoo.org/doc/fr/handbook/handbook-x86.xml?full=1#book_part4_chap4
Back to top
View user's profile Send private message
Lionheart
n00b
n00b


Joined: 01 Jul 2005
Posts: 37

PostPosted: Fri Jul 01, 2005 6:35 pm    Post subject: Reply with quote

En faite j'aurais voulu avoir plus de précision sur le pilote à utiliser car pour ma carte wifi pcmcia pour mon portable tout c'est déroulé sans problème (ayant eu le lien du pilote directement sur le site de ndiswrapper) ce qui n'est pas le cas pour la carte wifi PCI norme Super G 108Mo à base de chipset Atheros.
Back to top
View user's profile Send private message
Will11
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2005
Posts: 90
Location: Belgium

PostPosted: Fri Jul 01, 2005 8:28 pm    Post subject: Reply with quote

Oui c'est bien les modules madwifi.

Dans le noyau tu dois activer:
- dans Cryptographic Options => Cryptographic API
- dans device drivers => Networking support => Wireless LAN (non-hamradio) => Wireless LAN drivers (non-hamradio) & Wireless Extensions

Il te faut le package sharutils pour la compilation des modules:wink:

Tu récupère madwifi, tu vas dans le dossier et tu tape make puis make install. Ensuite tu les charges modprobe ath_pci.

Et là c'est bon normalement.
Back to top
View user's profile Send private message
Lionheart
n00b
n00b


Joined: 01 Jul 2005
Posts: 37

PostPosted: Sat Jul 02, 2005 6:09 am    Post subject: Reply with quote

Le problème c'est que le module se charge sans aucun soucis (aucune erreur) mais lorsque je veux Up l'interface pour la configurer avec wpa_supplicant/dhcp grâce à la commande : ifconfig athxx la gros pépin linux freeze rien n'est faisable sauf un reboot de la machine via le bouton reset.
Back to top
View user's profile Send private message
NiLuJe
Guru
Guru


Joined: 06 Nov 2004
Posts: 303
Location: Paris, France

PostPosted: Sat Jul 02, 2005 11:57 am    Post subject: Reply with quote

Hum, j'ai jamais testé en wpa de mon côté (Peux plus faire passer ma PSP si j'passe le routeur en wpa :/) ...

Tu peux essayer avec la version cvs branche BSD? je c/p mes ebuilds :

madwifi-driver :
Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#

inherit linux-mod cvs

DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
HOMEPAGE="http://madwifi.sourceforge.net/"
SRC_URI=""
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
#KEYWORDS="-*"
IUSE="madwifi-bsd madwifi-onoe madwifi-amrr madwifi-sample"
DEPEND="app-arch/sharutils"
RDEPEND=""

# CVS Branch Config
ECVS_SERVER="cvs.sourceforge.net:/cvsroot/madwifi"

ECVS_MODULE="madwifi"

ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
use madwifi-bsd && ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}-bsd"

ECVS_AUTH="pserver"
ECVS_USER="anonymous"
ECVS_PASS=""

use madwifi-bsd && ECVS_BRANCH="BSD"

S=${WORKDIR}/madwifi

pkg_setup() {
        linux-mod_pkg_setup

        use x86 && TARGET=i386-elf
        use amd64 && TARGET=x86_64-elf
        MODULE_NAMES="ath_hal(net:${S}/ath_hal) wlan(net:${S}/net80211) wlan_acl(net:${S}/net80211)
                wlan_ccmp(net:${S}/net80211) wlan_tkip(net:${S}/net80211) wlan_wep(net:${S}/net80211)
                wlan_xauth(net:${S}/net80211)"

        # Rate USE Selection
        use madwifi-onoe && MODULE_NAMES="${MODULE_NAMES} ath_rate_onoe(net:${S}/ath_rate/onoe)"
        use madwifi-amrr && MODULE_NAMES="${MODULE_NAMES} ath_rate_amrr(net:${S}/ath_rate/amrr)"
        use madwifi-sample && MODULE_NAMES="${MODULE_NAMES} ath_rate_sample(net:${S}/ath_rate/sample)"
        if use !madwifi-onoe && use !madwifi-amrr && use !madwifi-sample ; then
                MODULE_NAMES="${MODULE_NAMES} ath_rate_amrr(net:${S}/ath_rate/amrr)"
        fi
    MODULE_NAMES="${MODULE_NAMES} ath_pci(net:${S}/ath)"

        BUILD_PARAMS="KERNELPATH=${ROOT}${KV_DIR} KERNELRELEASE=${KV_FULL}
                TARGET=${TARGET} TOOLPREFIX=/usr/bin/ ATH_RATE=ath_rate/sample"
        BUILD_TARGETS="all"
}

src_unpack() {
        cvs_src_unpack

        cd ${S}

        for dir in ath ath_hal net80211 ath_rate/amrr ath_rate/onoe ath_rate/sample; do
                convert_to_m ${S}/${dir}/Makefile
        done

     # Patch/Workaround for RTP Kernel
         RTP_TEST=`grep 'RTP' ${ROOT}${KV_DIR}/.config`
         VOLUNTARY_TEST=`grep 'PREEMPT_VOLUNTARY' ${ROOT}${KV_DIR}/.config`
         DESKTOP_TEST=`grep 'PREEMPT_DESKTOP' ${ROOT}${KV_DIR}/.config`

     if [[ $RTP_TEST || $VOLUNTARY_TEST || $DESKTOP_TEST ]] ; then
         ebegin "RTP Kernel detected ... Enabling workaround ..."
     sed -i "s/rwlock_is_locked/raw_rwlock_is_locked/g" net80211/ieee80211_linux.h
         eend $?
     fi

}

src_install() {
        dodoc README COPYRIGHT

        linux-mod_src_install
}

pkg_postinst() {
        linux-mod_pkg_postinst

        einfo ""
        einfo "The madwifi drivers create an interface named 'athX'"
        einfo "Symlink /etc/init.d/net.lo to /etc/init.d/net.ath0 and"
        einfo "configure it in /etc/conf.d/wireless"
        einfo ""
}


madwifi-tools:
Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#

inherit cvs

DESCRIPTION="Wireless tools for Atheros chipset a/b/g cards"
HOMEPAGE="http://madwifi.sourceforge.net/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="madwifi-bsd"
DEPEND="virtual/libc"

# CVS Branch Config
ECVS_SERVER="cvs.sourceforge.net:/cvsroot/madwifi"

ECVS_MODULE="madwifi"

ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}"
use madwifi-bsd && ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}-bsd"

ECVS_AUTH="pserver"
ECVS_USER="anonymous"
ECVS_PASS=""

use madwifi-bsd && ECVS_BRANCH="BSD"

S=${WORKDIR}/madwifi/tools

pkg_setup() {
        use x86 && TARGET=i386-elf
        use amd64 && TARGET=x86_64-elf
        export TARGET
}

src_unpack() {
        cvs_src_unpack
        cd ${S}
}

src_install() {
        dobin 80211debug 80211stats athchans athctrl athdebug athkey athstats
}


Pour les drivers, 4 useflags locaux :

madwifi-bsd : utilise la branche BSD du cvs, et pas le Head (plus à jour, peut-être plus instable du coup, perso j'ai jamais eu de problème avec) (valable aussi pour madwifi-tools)

Et le choix du module de rate : madwifi-amrr (celui par défaut) madwifi-onoe (l'ancien par défaut) madwifi-sample (le dernier sorti, perso c'est celui que j'utilise)
Back to top
View user's profile Send private message
Lionheart
n00b
n00b


Joined: 01 Jul 2005
Posts: 37

PostPosted: Sun Jul 03, 2005 9:50 am    Post subject: Reply with quote

N'y connaissant rien en cvs (et n'ayant pas le net sur la machine ayant la carte wifi) j'ai donc téléchargé un snapshot CVS en bz2 mais pourriez vous m'indiquer ou extraire celui-ci pour que lorsque je fais un emerge il n'essai pas de contacter le serveur CVS pour télécharger les fichiers et ainsi passer directement à l'installation
Back to top
View user's profile Send private message
Lionheart
n00b
n00b


Joined: 01 Jul 2005
Posts: 37

PostPosted: Fri Jul 08, 2005 8:47 am    Post subject: Reply with quote

Alors après avoir utilisé les pilotes de la branche CVS lorsque je lance wpa_supplicant voici l'erreur que j'obtiens :
Code:
no rates------------[ cut here ]------------
kernel BUG at /var/tmp/portage/madwifi-driver-cvs/work/madwifi/ath_rate/sample/sample.c:497!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: ath_pci wlan ath_rate_sample ath_hal
CPU:    0
EIP:    0060:[<c8858d54>]    Tainted: P      VLI
EFLAGS: 00010282   (2.6.11-gentoo-r3)
EIP is at ath_rate_ctl_start+0x174/0x1d0 [ath_rate_sample]
eax: 00000008   ebx: c6f2a3f4   ecx: c0452410   edx: 00000001
esi: c7efe000   edi: c6f2a000   ebp: 00000003   esp: c6bcde30
ds: 007b   es: 007b   ss: 0068
Process wpa_supplicant (pid: 8942, threadinfo=c6bcc000 task=c756dac0)
Stack: c8858fa6 c6aa5662 c88e4720 c7efe1b4 c6aa4000 c6f2a000 00000004 00000003
c8872b50 c6f2a000 c7efe000 00000000 00000020 c64ec4c0 c647c000 c647c020
c6f2b01c c6f2b038 c6f2a070 c7efe000 c6f2a000 0000007f c6f2aa0a c6f2a3f4
Call Trace:
[<c8872b50>] ath_newstate+0x190/0x3b0 [ath_pci]
[<c990e8c0>] ieee80211_ioctl_siwscan+0x110/0x190 [wlan]
[<c02ec5a7>] wireless_process_ioctl+0xe7/0x790
[<c88737b0>] ath_ioctl_siwscan+0x0/0x20 [ath_pci]
[<c02e0886>] dev_load+0x36/0x80
[<c02e275c>] dev_ioctl+0x1fc/0x2e0
[<c02d7842>] sock_ioctl+0x242/0x260
[<c016a79e>] do_ioctl+0x8e/0xa0
[<c0157d2f>] __fput+0x11f/0x190
[<c016a9e5>] vfs_ioctl+0x65/0x1f0
[<c016abb5>] sys_ioctl+0x45/0x70
[<c010274f>] syscall_call+0x7/0xb
Code: ff ff 89 6c 24 04 c7 04 24 88 8f 85 c8 e8 95 da 8b f7 0f 0b 03 02 80 90 85 c8 e9 56 ff ff ff c7 04 24 a6 8f 85 c8 e8 7c da 8b f7 <0f> 0b f1 01 80 90 85 c8 0f b6 8e e9 00 00 00 e9 c9 fe ff ff 8b


Suivit d'un kernel panic que je dois défreezer via Sysrq U et Sysrq B :?
Back to top
View user's profile Send private message
NiLuJe
Guru
Guru


Joined: 06 Nov 2004
Posts: 303
Location: Paris, France

PostPosted: Fri Jul 08, 2005 10:50 am    Post subject: Reply with quote

T'as essayé avec la branche BSD du cvs? Essaye aussi avec un autre module de rate control, genre amrr ou onoe, étant donné que sample est le p'tit dernier, donc pas forcément le plus stable :)
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2326
Location: Bretagne

PostPosted: Fri Jul 08, 2005 11:00 am    Post subject: Reply with quote

Lionheart wrote:
Le problème c'est que le module se charge sans aucun soucis (aucune erreur) mais lorsque je veux Up l'interface pour la configurer avec wpa_supplicant/dhcp grâce à la commande : ifconfig athxx la gros pépin linux freeze rien n'est faisable sauf un reboot de la machine via le bouton reset.

j'ai eu le même problème avec d'autres cartes ça s'est résolu en virant les 4kb stacks dans le kernel!
tu vas dans :
> kernel hacking
et tu décoches ça:
Code:
[ ] use 4kb stacks instead of 8kb stacks...
Back to top
View user's profile Send private message
Lionheart
n00b
n00b


Joined: 01 Jul 2005
Posts: 37

PostPosted: Fri Jul 08, 2005 11:35 am    Post subject: Reply with quote

Pour le 4kb stacks il n'est pas déjà coché donc sa ne peut pas être sa, sinon je vais essayer les autres type de module on verra bien :wink:

Edit : il s'avère que finallement après plusieurs test chez d'autres personnes que la carte est HS, encore désolé pour le dérangement :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum