Problème avec ath9k (Wi-Fi)

Bonjour,

suite à plusieurs coupures de courant je pense (mais le disque dur est intact) dont une pendant qu’apt-get était en train de fonctionner, je ne peux plus désinstaller/réinstaller des paquets, j’ai donc changé de machine pour passer sur une plus puissante :

[code]AMD Duron 800Mhz, cpuinfo :
root@srv1-net1:~# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 3
model name : AMD Duron™ Processor
stepping : 1
cpu MHz : 799.949
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow up
bogomips : 1599.89
clflush size : 32
cache_alignment : 32
address sizes : 36 bits physical, 32 bits virtual
power management:

384Mb de RAM,

Carte réseau Ethernet NETGEAR Gigabit,
Carte réseau Ethernet TP-Link 10/100 (premier prix),
Carte réseau Wi-Fi Atheros AR922X (carte mini-PCI récupérée d’une Livebox et installée dans un adaptateur mini-PCI -> PCI, fonctionnait parfaitement dans l’ancienne machine)

lspci :
root@srv1-net1:~# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 02)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10)
00:07.2 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10)
00:07.3 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 20)
00:0b.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:12.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI 3D Rage IIC AGP (rev 7a)

deux interfaces réseau; eth0 pour Internet connectée à une Freebox en mode Bridge (le PC fera office de routeur), et lan0 pour le réseau local (c’est un bridge regroupant eth1 et wlan0), /etc/network/interfaces :
root@srv1-net1:~# 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

auto eth0
iface eth0 inet static
address 88.170.193.138
netmask 255.255.255.0
gateway 88.170.193.254
pre-up iptables-restore < /etc/iptables-rules

auto lan0
iface lan0 inet static
bridge_ports eth1 wlan0
address 192.168.1.1
netmask 255.255.255.0
pre-up hostapd -B /etc/hostapd/hostapd.conf
pre-down killall -w -q hostapd

ifconfig -a (hostapd étant arrêté pour les raisons mentionnées plus bas) :
root@srv1-net1:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr f8:d1:11:04:4f:df
inet addr:88.170.193.138 Bcast:88.170.193.255 Mask:255.255.255.0
inet6 addr: 2a01:e35:8aac:18a0:fad1:11ff:fe04:4fdf/64 Scope:Global
inet6 addr: fe80::fad1:11ff:fe04:4fdf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4067 errors:0 dropped:0 overruns:0 frame:0
TX packets:2883 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3637341 (3.4 MiB) TX bytes:512001 (500.0 KiB)
Interrupt:10 Base address:0xbc00

eth1 Link encap:Ethernet HWaddr e0:46:9a:29:4d:7e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3490 errors:0 dropped:1 overruns:0 frame:0
TX packets:4055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:603440 (589.2 KiB) TX bytes:3506435 (3.3 MiB)
Interrupt:11 Base address:0xa000

lan0 Link encap:Ethernet HWaddr e0:46:9a:29:4d:7e
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:70ff:fe56:1b12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3320 errors:0 dropped:0 overruns:0 frame:0
TX packets:4049 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:505791 (493.9 KiB) TX bytes:3506219 (3.3 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:122 errors:0 dropped:0 overruns:0 frame:0
TX packets:122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10685 (10.4 KiB) TX bytes:10685 (10.4 KiB)

wlan0 Link encap:Ethernet HWaddr 00:19:70:56:1b:12
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:11800 (11.5 KiB)
[/code]

le problème qui se pose, c’est que dès que Hostapd est démarré (dès le boot donc), le noyau commence à afficher énormément d’erreurs de ce type :

Jul 24 14:41:03 srv1-net1 kernel: [ 70.683886] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jul 24 14:41:04 srv1-net1 kernel: [ 71.101790] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00006040 Jul 24 14:41:04 srv1-net1 kernel: [ 71.170811] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jul 24 14:41:04 srv1-net1 kernel: [ 71.688354] ath: Failed to stop TX DMA, queues=0x001! Jul 24 14:41:05 srv1-net1 kernel: [ 71.764450] ath: Failed to stop TX DMA, queues=0x001! Jul 24 14:41:05 srv1-net1 kernel: [ 71.843612] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00006040 Jul 24 14:41:05 srv1-net1 kernel: [ 71.912269] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up Jul 24 14:41:05 srv1-net1 kernel: [ 72.005561] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 DMADBG_7=0x00008040 Jul 24 14:41:05 srv1-net1 kernel: [ 72.075263] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up

et le point d’accès Wi-Fi devient inopérant… d’après Google, le bug est assez ancien (certains messages remontent jusqu’en 2010) : google.fr/search?q=DMA+fail … refox-beta

mais j’ai pas vraiment trouvé de solution, certains disent de compiler manuellement la version de ath9k (le pilote pour la carte), mais je comprends pas vraiment, qu’est ce que je dois compiler ? ath9k ? compat-wireless ? le noyau Linux ? actuellement je suis sous Debian Wheezy, quelqu’un peut m’expliquer comment faire pour installer le dernier ath9k depuis les repo de la Sid ?

Le site de ath9k : linuxwireless.org/en/users/Drivers/ath9k
Le “datasheet” (ce n’est pas vraiment un datasheet mais bon) de la carte : zcom.com.tw/program1/doc/AN- … 110921.pdf

Merci d’avance.

(ci-dessous le message que j’ai posté mais qui est maintenant obsolète car j’ai réinstallé la machine)

[quote]installation de mysql-server

root@ara66-2-88-170-193-138:~# apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done mysql-server is already the newest version. Suggested packages: tinyca Recommended packages: mailx libhtml-template-perl The following packages will be upgraded: mysql-server-5.5 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 14 not fully installed or removed. Need to get 0 B/8,818 kB of archives. After this operation, 31.4 MB of additional disk space will be used. Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3. debconf: DbDriver "config": mkdir :No such file or directory (Reading database ... 47251 files and directories currently installed.) Preparing to replace mysql-server-5.5 5.5.24+dfsg-4 (using .../mysql-server-5.5_5.5.24+dfsg-4_i386.deb) ... Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3. debconf: DbDriver "config": mkdir :No such file or directory dpkg: error processing /var/cache/apt/archives/mysql-server-5.5_5.5.24+dfsg-4_i386.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3. debconf: DbDriver "config": mkdir :No such file or directory dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.5_5.5.24+dfsg-4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

ce qui est bizarre c’est qu’il dit que mysql-server est déja installé et à la dernière version, et que pour une raison inconnue il veut remplacer la version actuelle avec la même version…

voilà quand j’essaie de désinstaller mysql-server

root@ara66-2-88-170-193-138:~# apt-get remove mysql-server Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: mysql-server-5.5 Suggested packages: tinyca Recommended packages: mailx libhtml-template-perl The following packages will be REMOVED: mysql-server The following packages will be upgraded: mysql-server-5.5 1 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. 14 not fully installed or removed. Need to get 0 B/8,818 kB of archives. After this operation, 31.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3. debconf: DbDriver "config": mkdir :No such file or directory (Reading database ... 47251 files and directories currently installed.) Removing mysql-server ... (Reading database ... 47247 files and directories currently installed.) Preparing to replace mysql-server-5.5 5.5.24+dfsg-4 (using .../mysql-server-5.5_5.5.24+dfsg-4_i386.deb) ... Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3. debconf: DbDriver "config": mkdir :No such file or directory dpkg: error processing /var/cache/apt/archives/mysql-server-5.5_5.5.24+dfsg-4_i386.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3. Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3. debconf: DbDriver "config": mkdir :No such file or directory dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mysql-server-5.5_5.5.24+dfsg-4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

comme vous pouvez le voir, la même erreur se produit… ce qui est bizarre c’est qu’il y a mysql-server et mysql-server-5.5… ??? le troisième probème c’est qu’il y a 14 paquets à moitié installés et je pense que c’est la cause de tous ces soucis…

quelqu’un sait comment se débarasser de ces 14 paquets pour les réinstaller et que (j’espère) tout rentrera dans l’ordre… ?

Merci d’avance.[/quote]

Si Syam passe par là, il va te donner la marche à suivre.
Patiente.

Euh tu t’avances un peu là ricardo, ça a l’air d’être un sacré bazar… :mrgreen:

@andrei944 : pourrais-tu déjà nous indiquer quelle version de Debian tu utilises, et nous donner le résultat de :

dpkg -s mysql-server-5.5 mysql-server

Cela dit vu les messages d’erreur j’ai comme l’impression que c’est debconf qui s’est pris un jeton.
Ça donne quoi si tu fais :

apt-get install debconf --reinstall

Ça débloque la situation ?

Les lignes 44, 46 font référence à un nom de fichier dans le processus d’initialisation de debconf. Il suffirait de faire une impression de ce nom de fichier pour voir où est le souci…

Merci de votre aide, mais j’ai finalement réinstallé la machine, mais j’ai un autre problème :frowning: merci de relire le 1er message.

Autre problème = autre fil = autre titre spécifique et explicite !