View previous topic :: View next topic |
Author |
Message |
Lionheart n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2005 Posts: 37
|
Posted: Fri Jul 01, 2005 2:48 pm Post subject: [WIFI] comment faire fonctionner ma AirPlusXtremeG DWL-G520 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kwenspc Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/60652782845d9438939a35.jpg)
Joined: 21 Sep 2003 Posts: 4954
|
Posted: Fri Jul 01, 2005 2:50 pm Post subject: |
|
|
change ton titre : [HOWTO] c'est pour indique que toi tu as fait un howto justement
mets plutôt [WIFI] ou un truc comme ça _________________ membre officieux du SAV Ati GEntoo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NiLuJe Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Nov 2004 Posts: 303 Location: Paris, France
|
Posted: Fri Jul 01, 2005 2:58 pm Post subject: |
|
|
<= 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 |
|
![](templates/gentoo/images/spacer.gif) |
Will11 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 08 May 2005 Posts: 90 Location: Belgium
|
Posted: Fri Jul 01, 2005 4:08 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lionheart n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2005 Posts: 37
|
Posted: Fri Jul 01, 2005 6:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Will11 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 08 May 2005 Posts: 90 Location: Belgium
|
Posted: Fri Jul 01, 2005 8:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lionheart n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2005 Posts: 37
|
Posted: Sat Jul 02, 2005 6:09 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
NiLuJe Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Nov 2004 Posts: 303 Location: Paris, France
|
Posted: Sat Jul 02, 2005 11:57 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lionheart n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2005 Posts: 37
|
Posted: Sun Jul 03, 2005 9:50 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lionheart n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2005 Posts: 37
|
Posted: Fri Jul 08, 2005 8:47 am Post subject: |
|
|
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 ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NiLuJe Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Nov 2004 Posts: 303 Location: Paris, France
|
Posted: Fri Jul 08, 2005 10:50 am Post subject: |
|
|
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 ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Adrien Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/212969820843e8bba236eee.jpg)
Joined: 13 Jul 2004 Posts: 2326 Location: Bretagne
|
Posted: Fri Jul 08, 2005 11:00 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lionheart n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jul 2005 Posts: 37
|
Posted: Fri Jul 08, 2005 11:35 am Post subject: |
|
|
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
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 ![Confused :?](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|