Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/07/2007, à 21:39

MarcAya

Problème madwifi / wifi (macbook)

Salut à tous !

J'ai quelques soucis avec le wifi sur mon macbook (13" version 2), une fois sur 2-3 lorsque je démarre l'ordi pas moyen de lancer le wifi.
J'ai donc créé un script de reconnexion, me disant que ça résolverait le problème, mais ce n'est pas le cas:

#!/bin/sh
sudo ifconfig ath0 down
sudo iwconfig ath0 essid MY_SSID key my_key
sudo dhclient ath0

J'ai le retour suivant:

marco@macbook:~/.kde/mes_scripts$ ./wifi
Password:
ath0: ERREUR en récupérant les signaux de l'interface: Aucun périphérique de ce type
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device ath0 ; No such device.
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

SIOCSIFADDR: No such device
ath0: ERROR while getting interface flags: No such device
ath0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device



J'utilise le driver madwifi (0.9.30.13).
"dmsg" renvoit:

marco@macbook:~/.kde/mes_scripts$ dmesg | grep ath_pci
[   21.044000] ath_pci: disagrees about version of symbol _ath_hal_attach
[   21.044000] ath_pci: Unknown symbol _ath_hal_attach
[   21.044000] ath_pci: disagrees about version of symbol ath_hal_process_noisefloor
[   21.044000] ath_pci: Unknown symbol ath_hal_process_noisefloor
[   21.044000] ath_pci: disagrees about version of symbol ath_hal_computetxtime
[   21.044000] ath_pci: Unknown symbol ath_hal_computetxtime
[   21.048000] ath_pci: disagrees about version of symbol ath_hal_mhz2ieee
[   21.048000] ath_pci: Unknown symbol ath_hal_mhz2ieee
[   21.048000] ath_pci: disagrees about version of symbol ath_hal_detach
[   21.048000] ath_pci: Unknown symbol ath_hal_detach
[   21.048000] ath_pci: disagrees about version of symbol ath_hal_init_channels
[   21.048000] ath_pci: Unknown symbol ath_hal_init_channels
[   21.048000] ath_pci: disagrees about version of symbol ath_hal_getwirelessmodes
[   21.048000] ath_pci: Unknown symbol ath_hal_getwirelessmodes
[   23.240000] ath_pci: disagrees about version of symbol _ath_hal_attach
[   23.240000] ath_pci: Unknown symbol _ath_hal_attach
[   23.240000] ath_pci: disagrees about version of symbol ath_hal_process_noisefloor
[   23.240000] ath_pci: Unknown symbol ath_hal_process_noisefloor
[   23.240000] ath_pci: disagrees about version of symbol ath_hal_computetxtime
[   23.240000] ath_pci: Unknown symbol ath_hal_computetxtime
[   23.240000] ath_pci: disagrees about version of symbol ath_hal_mhz2ieee
[   23.240000] ath_pci: Unknown symbol ath_hal_mhz2ieee
[   23.240000] ath_pci: disagrees about version of symbol ath_hal_detach
[   23.240000] ath_pci: Unknown symbol ath_hal_detach
[   23.240000] ath_pci: disagrees about version of symbol ath_hal_init_channels
[   23.240000] ath_pci: Unknown symbol ath_hal_init_channels
[   23.240000] ath_pci: disagrees about version of symbol ath_hal_getwirelessmodes
[   23.240000] ath_pci: Unknown symbol ath_hal_getwirelessmodes



lsmod:
marco@macbook:~/.kde/mes_scripts$ lsmod
Module                  Size  Used by
ipv6                  268960  10
i915                   24448  2
drm                    81044  3 i915
hci_usb                18204  6
binfmt_misc            12680  1
rfcomm                 40856  6
l2cap                  25856  5 rfcomm
bluetooth              55908  15 hci_usb,rfcomm,l2cap
snd_hda_intel          21912  1
uinput                 10240  2
ppdev                  10116  0
acpi_cpufreq           10056  0
cpufreq_powersave       2688  0
cpufreq_stats           7360  0
cpufreq_userspace       5408  0
cpufreq_ondemand        9228  2
cpufreq_conservative     8200  0
tc1100_wmi              8068  0
pcc_acpi               13184  0
sony_acpi               6284  0
dev_acpi               12292  0
battery                10756  0
container               5248  0
ac                      6020  0
asus_acpi              17308  0
backlight               7040  1 asus_acpi
dock                   10268  0
sbs                    15652  0
i2c_ec                  6016  1 sbs
button                  8720  0
video                  16388  0
nls_utf8                3072  1
hfsplus                78212  1
uvcvideo               42500  0
videodev               28160  1 uvcvideo
v4l1_compat            15236  2 uvcvideo,videodev
v4l2_common            25216  2 uvcvideo,videodev
wlan_scan_sta          14848  0
eeprom                  8336  0
i2c_i801                9356  0
i2c_core               22656  3 i2c_ec,eeprom,i2c_i801
msr                     5764  0
freq_table              5792  3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
sbp2                   23812  0
parport_pc             36388  0
lp                     12452  0
parport                36936  3 ppdev,parport_pc,lp
af_packet              23816  4
snd_hda_codec         205056  1 snd_hda_intel
snd_pcm_oss            44544  0
snd_mixer_oss          17408  1 snd_pcm_oss
snd_pcm                79876  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy           4740  0
snd_seq_oss            32896  0
snd_seq_midi            9600  0
snd_rawmidi            25472  1 snd_seq_midi
snd_seq_midi_event      8448  2 snd_seq_oss,snd_seq_midi
joydev                 10816  0
xpad                    9988  0
appletouch             10368  0
wlan                  203568  1 wlan_scan_sta
appleir                 7040  0
sky2                   43528  0
snd_seq                52592  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              23684  2 snd_pcm,snd_seq
snd_seq_device          9100  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
applesmc               14512  0
ath_hal               192592  0
snd                    54020  12 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               8672  1 snd
iTCO_wdt               11812  0
iTCO_vendor_support     4868  1 iTCO_wdt
shpchp                 34324  0
pci_hotplug            32576  1 shpchp
led_class               5380  1 applesmc
intel_agp              25244  1
agpgart                35400  3 drm,intel_agp
snd_page_alloc         10888  2 snd_hda_intel,snd_pcm
tsdev                   8768  0
evdev                  11008  11
ext3                  133128  1
jbd                    59816  1 ext3
mbcache                 9604  1 ext3
sg                     36252  0
sd_mod                 23428  4
sr_mod                 17060  0
cdrom                  37664  1 sr_mod
generic                 5124  0 [permanent]
usbhid                 26592  0
hid                    27392  1 usbhid
ata_piix               15492  4
ohci1394               36528  0
ieee1394              299448  2 sbp2,ohci1394
ata_generic             9092  0
libata                125720  2 ata_piix,ata_generic
scsi_mod              142348  5 sbp2,sg,sd_mod,sr_mod,libata
uhci_hcd               25360  0
ehci_hcd               34188  0
usbcore               134280  9 hci_usb,uvcvideo,xpad,appletouch,appleir,usbhid,uhci_hcd,ehci_hcd
thermal                14856  0
processor              31048  2 acpi_cpufreq,thermal
fan                     5636  0
fbcon                  42656  0
tileblit                3584  1 fbcon
font                    9216  1 fbcon
bitblit                 6912  1 fbcon
softcursor              3200  1 bitblit
vesafb                  9220  0
capability              5896  0
commoncap               8192  1 capability


Mon /etc/modules contient pourtant bien les 2 modules nécessaires:

marco@macbook:~/.kde/mes_scripts$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
lp
speedstep_centrino
ath_pci
wlan_scan_sta
# isight
uvcvideo



marco@macbook:~$ sudo rmmod ath_pci
Password:
ERROR: Module ath_pci does not exist in /proc/modules

marco@macbook:~$ sudo modprobe ath_pci
FATAL: Error inserting ath_pci (/lib/modules/2.6.20-16-generic/net/ath_pci.ko): Unknown symbol in module, or unknown parameter (see dmesg)



Merci d'avance wink.

Dernière modification par MarcAya (Le 14/07/2007, à 21:43)

Hors ligne

#2 Le 14/07/2007, à 22:18

belga

Re : Problème madwifi / wifi (macbook)

peux tu poster

sudo lshw -C network

Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#3 Le 14/07/2007, à 22:42

MarcAya

Re : Problème madwifi / wifi (macbook)

marco@macbook:~$ lshw -C network
WARNING: you should run this program as super-user.
  *-network
       description: Ethernet interface
       product: 88E8053 PCI-E Gigabit Ethernet Controller
       vendor: Marvell Technology Group Ltd.
       physical id: 0
       bus info: pci@01:00.0
       logical name: eth0
       version: 22
       serial: 00:17:f2:35:46:c1
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list ethernet physical
       configuration: broadcast=yes driver=sky2 driverversion=1.13 firmware=N/A latency=0 multicast=yes
       resources: iomemory:50200000-50203fff ioport:1000-10ff irq:17
  *-network
       description: Wireless interface
       product: Atheros Communications, Inc.
       vendor: Atheros Communications, Inc.
       physical id: 0
       bus info: pci@02:00.0
       logical name: wifi0
       version: 01
       serial: 00:19:e3:01:f3:66
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list logical ethernet physical wireless
       configuration: broadcast=yes driver=ath_pci ip=192.168.0.3 latency=0 multicast=yes wireless=IEEE 802.11g
       resources: iomemory:50100000-5010ffff irq:16

Hors ligne

#4 Le 14/07/2007, à 22:43

MarcAya

Re : Problème madwifi / wifi (macbook)

Est-ce que ça pourrait venir du driver madwifi (c'est vrai qu'il est encore expérimental pour cette carte)?

Hors ligne

#5 Le 14/07/2007, à 23:07

belga

Re : Problème madwifi / wifi (macbook)

salut
peux tu poster aussi

cat /etc/network/interfaces
lspci|grep Atheros

Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#6 Le 15/07/2007, à 00:01

MarcAya

Re : Problème madwifi / wifi (macbook)

marco@macbook:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

#iface eth0 inet dhcp
#iface ath0 inet dhcp
#wireless-essid MY_ESSID
#wireless-key mykey
#auto ath0

iface ath0 inet dhcp
wireless-essid MY_SSID
wireless-key mykey

auto ath0

iface eth0 inet dhcp
auto eth0




marco@macbook:~$ lspci | grep Atheros
02:00.0 Network controller: Atheros Communications, Inc. Unknown device 0024 (rev 01)

Dernière modification par MarcAya (Le 15/07/2007, à 12:35)

Hors ligne

#7 Le 15/07/2007, à 00:09

belga

Re : Problème madwifi / wifi (macbook)

sudo kate /etc/network/interfaces

efface tout et colle ceci, si ton essid est MARCO_NETWORK
et la clé 6e8d7e7329

auto lo
iface lo inet loopback

# The primary network interface

auto wifi0
iface wifi0 inet dhcp
wireless-essid MARCO_NETWORK
wireless-key 6e8d7e7329

enregistre, puis
poste le retour des commandes

sudo dhclient wifi0
iwlist scan
ping -c6 www.google.com

Dernière modification par belga (Le 15/07/2007, à 00:10)


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#8 Le 15/07/2007, à 08:07

tinux

Re : Problème madwifi / wifi (macbook)

Bonjour,

moi je prend ma version de madwifi ici : "svn checkout http://svn.madwifi.org/trunk madwifi"

Et tout fonctionne sans problème.

Dernière modification par tinux (Le 15/07/2007, à 08:07)


Tinux

Hors ligne

#9 Le 15/07/2007, à 12:35

MarcAya

Re : Problème madwifi / wifi (macbook)

marco@macbook:~/Compiz$ sudo dhclient wifi0
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/wifi0/
Sending on   LPF/wifi0/
Sending on   Socket/fallback
DHCPDISCOVER on wifi0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wifi0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wifi0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wifi0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


wifi0     Interface doesn't support scanning.


Le retour de la commande ne me surprend pas trop, quand le wifi fonctionne ça passe par ath0...

Je vais essayer de récupérer la dernière version du driver avec subversion des fois que ça viendrait de madwifi (ce que je pense).

Je vous tiens au courant, encore merci ^_^V

Je vous tiens au courant.

Dernière modification par MarcAya (Le 15/07/2007, à 12:41)

Hors ligne

#10 Le 15/07/2007, à 12:48

MarcAya

Re : Problème madwifi / wifi (macbook)

Installation du driver sans soucis, ça s'est correctement connecté, je vais voir si à la prochaine connexion ça foire encore ou si cette fois c'est pour de bon. Merci ^_~

Hors ligne

#11 Le 15/07/2007, à 14:26

MarcAya

Re : Problème madwifi / wifi (macbook)

Mauvaise nouvelle, j'ai de nouveau perdu la connexion... C'est comme ci un tampon ne se vidait pas ou autre, je vois pas ce qui peut expliquer ça -_- (d'autant qu'une fois sur 3 ça se connecte sans soucis, et quand ça bogue pas d'autre choix que de redémarrer).
Enfin, j'ajoute les derniers logs du kernel si ça peut aider:

Jul 15 14:14:50 macbook kernel: [ 7389.648000] wifi0: rx FIFO overrun; resetting
Jul 15 14:14:53 macbook kernel: [ 7392.916000] wifi0: rx FIFO overrun; resetting
Jul 15 14:14:57 macbook kernel: [ 7396.496000] wifi0: rx FIFO overrun; resetting
Jul 15 14:15:01 macbook kernel: [ 7400.076000] wifi0: rx FIFO overrun; resetting
Jul 15 14:15:04 macbook kernel: [ 7403.652000] wifi0: rx FIFO overrun; resetting
Jul 15 14:15:08 macbook kernel: [ 7407.232000] wifi0: rx FIFO overrun; resetting
Jul 15 14:15:12 macbook kernel: [ 7410.808000] wifi0: rx FIFO overrun; resetting
Jul 15 14:15:15 macbook kernel: [ 7414.384000] wifi0: rx FIFO overrun; resetting
Jul 15 14:15:19 macbook kernel: [ 7417.964000] wifi0: rx FIFO overrun; resetting
Jul 15 14:16:18 macbook dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
Jul 15 14:16:23 macbook dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Jul 15 14:16:33 macbook dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
Jul 15 14:16:50 macbook dhclient: receive_packet failed on ath0: Network is down
Jul 15 14:16:50 macbook avahi-daemon[5082]: Interface ath0.IPv4 no longer relevant for mDNS.
Jul 15 14:16:50 macbook avahi-daemon[5082]: Leaving mDNS multicast group on interface ath0.IPv4 with address 192.168.0.3.
Jul 15 14:16:50 macbook avahi-daemon[5082]: Withdrawing address record for fe80::219:e3ff:fe01:f366 on ath0.
Jul 15 14:16:50 macbook avahi-daemon[5082]: Withdrawing address record for 192.168.0.3 on ath0.
Jul 15 14:16:50 macbook dhclient: There is already a pid file /var/run/dhclient.pid with pid 14706
Jul 15 14:16:50 macbook dhclient: killed old client process, removed PID file
Jul 15 14:16:50 macbook dhclient: Internet Systems Consortium DHCP Client V3.0.4
Jul 15 14:16:50 macbook dhclient: Copyright 2004-2006 Internet Systems Consortium.
Jul 15 14:16:50 macbook dhclient: All rights reserved.
Jul 15 14:16:50 macbook dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Jul 15 14:16:50 macbook dhclient:
Jul 15 14:16:50 macbook dhclient: wifi0: unknown hardware address type 801
Jul 15 14:16:50 macbook kernel: [ 7490.516000] ADDRCONF(NETDEV_UP): ath0: link is not ready
Jul 15 14:16:51 macbook dhclient: wifi0: unknown hardware address type 801
Jul 15 14:16:51 macbook dhclient: Listening on LPF/ath0/00:19:e3:01:f3:66
Jul 15 14:16:51 macbook dhclient: Sending on   LPF/ath0/00:19:e3:01:f3:66
Jul 15 14:16:51 macbook dhclient: Sending on   Socket/fallback
Jul 15 14:16:52 macbook dhclient: No DHCPOFFERS received.
Jul 15 14:16:52 macbook dhclient: No working leases in persistent database - sleeping.
Jul 15 14:16:54 macbook dhclient: DHCPREQUEST on ath0 to 255.255.255.255 port 67
Jul 15 14:17:01 macbook dhclient: DHCPREQUEST on ath0 to 255.255.255.255 port 67
Jul 15 14:17:16 macbook dhclient: DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 4
Jul 15 14:17:21 macbook dhclient: DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
Jul 15 14:17:30 macbook dhclient: DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 14
Jul 15 14:17:47 macbook dhclient: No DHCPOFFERS received.
Jul 15 14:17:47 macbook dhclient: Trying recorded lease 192.168.0.3
Jul 15 14:17:47 macbook avahi-daemon[5082]: Joining mDNS multicast group on interface ath0.IPv4 with address 192.168.0.3.
Jul 15 14:17:47 macbook avahi-daemon[5082]: New relevant interface ath0.IPv4 for mDNS.
Jul 15 14:17:47 macbook avahi-daemon[5082]: Registering new address record for 192.168.0.3 on ath0.IPv4.
Jul 15 14:17:51 macbook avahi-daemon[5082]: Withdrawing address record for 192.168.0.3 on ath0.
Jul 15 14:17:51 macbook avahi-daemon[5082]: Leaving mDNS multicast group on interface ath0.IPv4 with address 192.168.0.3.
Jul 15 14:17:51 macbook avahi-daemon[5082]: Interface ath0.IPv4 no longer relevant for mDNS.
Jul 15 14:17:51 macbook avahi-autoipd(ath0)[22037]: Found user 'avahi-autoipd' (UID 104) and group 'avahi-autoipd' (GID 110).
Jul 15 14:17:51 macbook avahi-autoipd(ath0)[22037]: Successfully called chroot().
Jul 15 14:17:51 macbook avahi-autoipd(ath0)[22037]: Successfully dropped root privileges.
Jul 15 14:17:51 macbook avahi-autoipd(ath0)[22037]: fopen() failed: Permission denied
Jul 15 14:17:51 macbook avahi-autoipd(ath0)[22037]: Starting with address 169.254.7.173
Jul 15 14:17:57 macbook avahi-autoipd(ath0)[22037]: Callout BIND, address 169.254.7.173 on interface ath0
Jul 15 14:17:57 macbook avahi-daemon[5082]: Joining mDNS multicast group on interface ath0.IPv4 with address 169.254.7.173.
Jul 15 14:17:57 macbook avahi-daemon[5082]: New relevant interface ath0.IPv4 for mDNS.
Jul 15 14:17:57 macbook avahi-daemon[5082]: Registering new address record for 169.254.7.173 on ath0.IPv4.
Jul 15 14:17:57 macbook avahi-autoipd(ath0)[22038]: client: RTNETLINK answers: File exists
Jul 15 14:18:03 macbook avahi-autoipd(ath0)[22037]: Successfully claimed IP address 169.254.7.173
Jul 15 14:18:03 macbook avahi-autoipd(ath0)[22037]: fopen() failed: Permission denied
Jul 15 14:18:03 macbook dhclient: No working leases in persistent database - sleeping.

Hors ligne

#12 Le 15/07/2007, à 15:54

belga

Re : Problème madwifi / wifi (macbook)

arrête avahi et regarde alors la connexion


Multi-bomb : Multi-doze : Mandoze, Ubundoze, Pardoze.

900s entre deux postes: mododoze

Hors ligne

#13 Le 16/07/2007, à 13:08

MarcAya

Re : Problème madwifi / wifi (macbook)

À priori ça ne vient pas d'avahi, mais faire un restart d'avahi et exécuter le script suivant me connecte au net:
sudo rmmod ath_pci
sudo rmmod wlan_scan_sta
sudo modprobe ath_pci
sudo modprobe wlan_scan_sta
sudo ifconfig ath0 down
sudo iwconfig ath0 essid MY_ESSID key my_key
sudo dhclient ath0

Hors ligne

#14 Le 16/07/2007, à 13:10

MarcAya

Re : Problème madwifi / wifi (macbook)

En tous cas merci pour votre aide, je vais lancer ce script au démarrage en attendant la prochaine version d'ubuntu wink.

Hors ligne