Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1402 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [debian] ath9k_htc récalcitrant

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[debian] ath9k_htc récalcitrant

n°1251765
thana54
made in concept
Posté le 23-11-2010 à 21:49:19  profilanswer
 

Résumé du problème:
J'ai une clef usb TP-Link WN321G. Au branchement de la clef sous debian sid avec un kernel d'experimental 2.6.35/36, j'obtiens un message me disant que le firmware est introuvable. Soit, même en installant le paquet firmware-atheros (version 0.27 en date), le message persiste. J'ai lu quelques topics sur d'autres forums, certains utilisateurs arrivent à faire marcher leur clef.
 
Note: La clef marche fonctionne sous Ubuntu live 10.10 sans rien installer en plus.
Bizarrement (ou pas), la clef réagit mieux sous aptosid que sous debian pur [:cerveau paysan], la led fonctionne, obtention d'adresse ip...
 
Résumé de l'épisode précédent:


thana54 a écrit :

C'est moi ou modinfo/kernouille qui déconne ?
Je branche ma clef wifi en ath9k_htc, et il me sort tout le temps et quelque soit le kernel que le firmware ar9271.fw est introuvable :/
 
Et copier/coller le ath9k_htc de {uname -r}/kernel/drivers-truc[...]/ath/ath9k/ath9k_htc.ko dans /lib/firmware n'arrange rien :/


 
 
 

thana54 a écrit :

Même pas :/
Toujours la même ligne ar9271.fw introuvable, même après reboots, débranchages de la clef. Reste la prière vaudou.
 
Alors que la clef marche bien sous un livecd ubuntu.


 
 
 

thana54 a écrit :


La clef TP-Link TL-WN722N.
Testée depuis un bon mois sous les différents noyaux, donc le plus récent 2.6.36-exp.
Livecd testé 10.10, réseaux détectés par le chip intel du portable et de la clef, clef branchée sans rallonge usb.
Sur le fixe avec petite rallonge:

Code :
  1. Nov 23 07:07:49 thanux kernel: [  576.784052] usb 1-3: new high speed USB device using ehci_hcd and address 4
  2. Nov 23 07:07:49 thanux kernel: [  576.932983] usb 1-3: New USB device found, idVendor=0cf3, idProduct=9271
  3. Nov 23 07:07:49 thanux kernel: [  576.932988] usb 1-3: New USB device strings: Mfr=16, Product=32, SerialNumber=48
  4. Nov 23 07:07:49 thanux kernel: [  576.932991] usb 1-3: Product: USB2.0 WLAN
  5. Nov 23 07:07:49 thanux kernel: [  576.932993] usb 1-3: Manufacturer: ATHEROS
  6. Nov 23 07:07:49 thanux kernel: [  576.932995] usb 1-3: SerialNumber: 12345
  7. Nov 23 07:07:49 thanux kernel: [  576.953798] cfg80211: Calling CRDA to update world regulatory domain
  8. Nov 23 07:07:49 thanux kernel: [  576.990966] firmware 1-3: firmware_loading_store: vmap() failed
  9. Nov 23 07:07:49 thanux kernel: [  576.991025] usb 1-3: ath9k_htc: Firmware - ar9271.fw not found
  10. Nov 23 07:07:49 thanux kernel: [  576.991040] ath9k_hif_usb: probe of 1-3:1.0 failed with error -22
  11. Nov 23 07:07:49 thanux kernel: [  576.991063] usbcore: registered new interface driver ath9k_hif_usb


ifconfig ne me montre que lo et eth0.
 
j'ai aussi une autre clef qui ne marche pas des masses:
Bewan 315N

Code :
  1. Nov 23 07:10:34 thanux kernel: [  741.664039] usb 1-1: new high speed USB device using ehci_hcd and address 5
  2. Nov 23 07:10:34 thanux kernel: [  741.813703] usb 1-1: New USB device found, idVendor=07fa, idProduct=7712
  3. Nov 23 07:10:34 thanux kernel: [  741.813721] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  4. Nov 23 07:10:34 thanux kernel: [  741.813724] usb 1-1: Product: 802.11 n WLAN
  5. Nov 23 07:10:34 thanux kernel: [  741.813727] usb 1-1: Manufacturer: Ralink
  6. Nov 23 07:10:34 thanux kernel: [  741.813728] usb 1-1: SerialNumber: 1.0
  7. Nov 23 07:10:34 thanux kernel: [  741.858806] usbcore: registered new interface driver rt2800usb


bien disponible par ifconfig, mais qui ne veut rien faire:

Code :
  1. Nov 23 07:12:04 thanux kernel: [  832.043108] phy0 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.
  2. Nov 23 07:12:06 thanux kernel: [  833.658205] phy0 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.


 
firmware-ralink et firmware-atheros sont bien installés (0.27).


 
 
 

thana54 a écrit :

J'ai déjà vu ca oui :jap:
Je préférerai rester sur un paquet bien de chez nous dans un dépôt, car la méthode du ath9k_htc installer me freine un peu:

Code :
  1. Every time where upgrade kernel, must be run the program.


 
La clef ne devra pas rester sur mes pc perso, mais le pc de ma mère, donc je préfère minimiser les manips à la main (j'ai déjà fait une réinstall de kernel hier soir "ca coince, y a plus rien §§§", c'est bien ssh quand même :o)
Je pensais qu'Atheros c'était au poil outofthebox, mais pas trop en fait :/ j'ai pas de bol.


 

thana54 a écrit :


Je ne dois pas avoir toutes les cases d'allumées, mais je sens qu'il se paye ma tête là:

Code :
  1. ┌─(thana@thanux mar., 23 nov. 10)─————————————————————————————————————————————————————————————————─(/tmp/compat-wireless-2.6/compat-wireless-2010-11-22)─┐
  2. └─(20:20 $)─> sudo make
  3. /tmp/compat-wireless-2.6/compat-wireless-2010-11-22/config.mk:196: "WARNING: CONFIG_CFG80211_WEXT will be deactivated or not working because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface like iwconfig will not work. To activate it build your kernel e.g. with CONFIG_LIBIPW=m."
  4. ./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
  5. make -C /lib/modules/2.6.36-trunk-amd64/build M=/tmp/compat-wireless-2.6/compat-wireless-2010-11-22 modules
  6. make: *** /lib/modules/2.6.36-trunk-amd64/build: Aucun fichier ou dossier de ce type. Arrêt.
  7. make: *** [modules] Erreur 2
  8. ┌─(thana@thanux mar., 23 nov. 10)─————————————————————————————————————————————————————————————————─(/tmp/compat-wireless-2.6/compat-wireless-2010-11-22)─┐
  9. └─(20:20 $)─> ls /boot/config-2.6.3*
  10. /boot/config-2.6.35-trunk-amd64  /boot/config-2.6.36-trunk-amd64
  11. ┌─(thana@thanux mar., 23 nov. 10)─————————————————————————————————————————————————————————————————─(/tmp/compat-wireless-2.6/compat-wireless-2010-11-22)─┐
  12. └─(20:22 $)─> grep WIRELESS /boot/config-2.6.3*
  13. /boot/config-2.6.35-trunk-amd64:CONFIG_WIRELESS=y
  14. /boot/config-2.6.35-trunk-amd64:CONFIG_WIRELESS_EXT=y
  15. /boot/config-2.6.35-trunk-amd64:# CONFIG_WIRELESS_EXT_SYSFS is not set
  16. /boot/config-2.6.35-trunk-amd64:CONFIG_IPWIRELESS=m
  17. /boot/config-2.6.35-trunk-amd64:CONFIG_USB_SERIAL_SIERRAWIRELESS=m
  18. /boot/config-2.6.36-trunk-amd64:CONFIG_WIRELESS=y
  19. /boot/config-2.6.36-trunk-amd64:CONFIG_WIRELESS_EXT=y
  20. /boot/config-2.6.36-trunk-amd64:# CONFIG_WIRELESS_EXT_SYSFS is not set
  21. /boot/config-2.6.36-trunk-amd64:CONFIG_IPWIRELESS=m
  22. /boot/config-2.6.36-trunk-amd64:CONFIG_USB_SERIAL_SIERRAWIRELESS=m
  23. ┌─(thana@thanux mar., 23 nov. 10)─————————————————————————————————————————————————————————————————─(/tmp/compat-wireless-2.6/compat-wireless-2010-11-22)─┐
  24. └─(20:22 $)─> grep LIBIPW /boot/config-2.6.3*
  25. /boot/config-2.6.35-trunk-amd64:CONFIG_LIBIPW=m
  26. /boot/config-2.6.35-trunk-amd64:# CONFIG_LIBIPW_DEBUG is not set
  27. /boot/config-2.6.36-trunk-amd64:CONFIG_LIBIPW=m
  28. /boot/config-2.6.36-trunk-amd64:# CONFIG_LIBIPW_DEBUG is not set



 


Nouveaux essais sous ubuntu 10.10 et aptosid:
10.10 kernel 2.6.35-22, /lib/firmware/ar9271.fw est présent

Code :
  1. Nov 23 19:59:20 ubuntu kernel: [   73.040135] usb 2-1: new high speed USB device using ehci_hcd and address 4
  2. Nov 23 19:59:20 ubuntu kernel: [   73.545201] usb 2-1: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
  3. Nov 23 19:59:22 ubuntu kernel: [   74.856697] ath: EEPROM regdomain: 0x809c
  4. Nov 23 19:59:22 ubuntu kernel: [   74.856701] ath: EEPROM indicates we should expect a country code
  5. Nov 23 19:59:22 ubuntu kernel: [   74.856705] ath: doing EEPROM country->regdmn map search
  6. Nov 23 19:59:22 ubuntu kernel: [   74.856707] ath: country maps to regdmn code: 0x52
  7. Nov 23 19:59:22 ubuntu kernel: [   74.856716] ath: Country alpha2 being used: CN
  8. Nov 23 19:59:22 ubuntu kernel: [   74.856717] ath: Regpair used: 0x52
  9. Nov 23 19:59:22 ubuntu kernel: [   74.858214] cfg80211: Calling CRDA for country: CN
  10. Nov 23 19:59:22 ubuntu kernel: [   74.860966] Registered led device: ath9k-phy1::radio
  11. Nov 23 19:59:22 ubuntu kernel: [   74.860987] Registered led device: ath9k-phy1::assoc
  12. Nov 23 19:59:22 ubuntu kernel: [   74.861025] Registered led device: ath9k-phy1::tx
  13. Nov 23 19:59:22 ubuntu kernel: [   74.861043] Registered led device: ath9k-phy1::rx
  14. Nov 23 19:59:22 ubuntu kernel: [   74.861046] usb 2-1: ath9k_htc: USB layer initialized
  15. Nov 23 19:59:22 ubuntu kernel: [   74.861065] usbcore: registered new interface driver ath9k_hif_usb
  16. Nov 23 19:59:22 ubuntu kernel: [   74.866660] cfg80211: Regulatory domain changed to country: CN
  17. Nov 23 19:59:22 ubuntu kernel: [   74.866665]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  18. Nov 23 19:59:22 ubuntu kernel: [   74.866668]     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
  19. Nov 23 19:59:22 ubuntu kernel: [   74.866670]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)
  20. Nov 23 19:59:22 ubuntu kernel: [   75.359087] ADDRCONF(NETDEV_UP): wlan1: link is not ready


Et en image:
http://pix.toile-libre.org/upload/thumb/1290545296.png
Aptosid 2.6.35-4.slh.9-aptosid-amd64 en copiant simplement ar9271.fw dans /lib/firmware:

Code :
  1. Nov 23 20:17:30 aptosid kernel: [  395.524282] usb 2-3: new high speed USB device using ehci_hcd and address 4
  2. Nov 23 20:17:30 aptosid kernel: [  395.661922] usb 2-3: New USB device found, idVendor=0cf3, idProduct=9271
  3. Nov 23 20:17:30 aptosid kernel: [  395.661931] usb 2-3: New USB device strings: Mfr=16, Product=32, SerialNumber=48
  4. Nov 23 20:17:30 aptosid kernel: [  395.661937] usb 2-3: Product: USB2.0 WLAN
  5. Nov 23 20:17:30 aptosid kernel: [  395.661941] usb 2-3: Manufacturer: ATHEROS
  6. Nov 23 20:17:30 aptosid kernel: [  395.661946] usb 2-3: SerialNumber: 12345
  7. Nov 23 20:17:31 aptosid kernel: [  396.049743] usb 2-3: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
  8. Nov 23 20:17:32 aptosid kernel: [  397.388506] ath: EEPROM regdomain: 0x809c
  9. Nov 23 20:17:32 aptosid kernel: [  397.388513] ath: EEPROM indicates we should expect a country code
  10. Nov 23 20:17:32 aptosid kernel: [  397.388518] ath: doing EEPROM country->regdmn map search
  11. Nov 23 20:17:32 aptosid kernel: [  397.388523] ath: country maps to regdmn code: 0x52
  12. Nov 23 20:17:32 aptosid kernel: [  397.388528] ath: Country alpha2 being used: CN
  13. Nov 23 20:17:32 aptosid kernel: [  397.388531] ath: Regpair used: 0x52
  14. Nov 23 20:17:32 aptosid kernel: [  397.404197] cfg80211: Calling CRDA for country: CN
  15. Nov 23 20:17:32 aptosid kernel: [  397.406491] Registered led device: ath9k-phy1::radio
  16. Nov 23 20:17:32 aptosid kernel: [  397.406506] Registered led device: ath9k-phy1::assoc
  17. Nov 23 20:17:32 aptosid kernel: [  397.406520] Registered led device: ath9k-phy1::tx
  18. Nov 23 20:17:32 aptosid kernel: [  397.406532] Registered led device: ath9k-phy1::rx
  19. Nov 23 20:17:32 aptosid kernel: [  397.406534] usb 2-3: ath9k_htc: USB layer initialized
  20. Nov 23 20:17:32 aptosid kernel: [  397.406554] usbcore: registered new interface driver ath9k_hif_usb
  21. Nov 23 20:17:32 aptosid kernel: [  397.427923] cfg80211: Regulatory domain changed to country: CN
  22. Nov 23 20:17:32 aptosid kernel: [  397.427927]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
  23. Nov 23 20:17:32 aptosid kernel: [  397.427930]     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
  24. Nov 23 20:17:32 aptosid kernel: [  397.427933]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)


 
Sous aptosid j'arrive à avoir une adresse ip (mais freewifi me demande non stop mes identifiants grrr), ce qui me suffit pour l'instant.

mood
Publicité
Posté le 23-11-2010 à 21:49:19  profilanswer
 

n°1251768
thana54
made in concept
Posté le 23-11-2010 à 22:02:17  profilanswer
 

Bon, j'y comprend rien, je viens de recopier le même fichier (ar9271.fw) dans /lib/firmware et ca marche sur le fixe via un hub usb [:velasquez:3]

n°1251772
o'gure
Modérateur
Multi grognon de B_L
Posté le 23-11-2010 à 22:25:49  profilanswer
 

thana54 a écrit :

Je n'ai pas compilé le kernel, j'ai juste installé le paquet .deb.
Je pensais que le /boot/config contenait les paramètres de configurations utilisés lors de la compil du kernel contenu dans le .deb, ai-je tort ?
 
topic créé :o


Oui, /boot/config contient les paramètres de compilation du kernel. Sinon tu as le fichier dans /proc pour le kernel en cours d'utilisation (si ça n'a pas été rendu obsolète, j'ai un doute et si le kernel a été compilé avec cette fonctionnalité).
 
Ce que je voulais dire par là, c'est que tu es en train de compiler un truc qui s'attache à un fichier config. Es tu sûr qu'il va chercher le bon pour la compilation ? visiblement non. Il y a vraisemblablement un mécanisme d'import pour aller récupérer le bon :
  - script qui a foiré ou qui va chercher un fichier au mauvais endroit (style /usr/src/linux/.config alors que ce n'est pas le répertoire de compilation du kernel en cours)
  - lien sympbolique ne pointant pas vers le bon fichier
  - ...
 


---------------
Relax. Take a deep breath !
n°1251778
thana54
made in concept
Posté le 24-11-2010 à 07:08:51  profilanswer
 

En fait je ne suis pas sur de ce qui se passe lors de la compil.
je n'ai pas souvenir d'avoir vu un ./autogen.sh ou un configure dans le dossier de compil, il se peut alors qu'il y ai un paramètre par défaut qui ne pointe pas sur les bons fichiers (surtout que ca viens d'un forum ubuntu, méfiance :whistle: )
Je vais quand même essayer avec d'anciens kernels et voir si ca pose le même problème.

n°1251781
mr_pouit
Posté le 24-11-2010 à 07:45:38  profilanswer
 

Citation :

make: *** /lib/modules/2.6.36-trunk-amd64/build: Aucun fichier ou dossier de ce type. Arrêt.


 
Tu as bien installé linux-headers-2.6.36-trunk-amd64 et linux-kbuild-2.6.36, hein ? :whistle:

n°1251800
thana54
made in concept
Posté le 24-11-2010 à 09:35:54  profilanswer
 

Ah non :whistle: (mais faut se faire avoir au moins une fois connaitre, pas très parlant ce message)

n°1251802
o'gure
Modérateur
Multi grognon de B_L
Posté le 24-11-2010 à 09:44:41  profilanswer
 

[:prozac]
Dès que tu veux compiler un module ou un truc lié au noyau ou au périphérique il faut les headers du kernel pour qui c'est destiné...


---------------
Relax. Take a deep breath !
n°1251901
Profil sup​primé
Posté le 24-11-2010 à 14:22:56  answer
 

Par contre Thana, t'as de la chance que le linux-kbuild pour le kernel *.36 soit dans les dépôts, tu aurais du le faire toi-même sinon  :pt1cable:

n°1251903
thana54
made in concept
Posté le 24-11-2010 à 14:29:15  profilanswer
 

Oui je sais. Mais vu que je ne tourne plus avec des drivers graphiques proprios, je n'ai plus l'habitude de prendre les headers/kbuild qui vont avec.
Ce qui me gêne le plus c'est la dernière copie manuelle du .fw qui fait tout marcher. Je ne pense pas avoir modifié/retéléchargé ce firm.
 
Si l'opération consiste à copier/coller un fichier sur un autre pc, ca me va dans l'immédiat.

n°1252462
thana54
made in concept
Posté le 26-11-2010 à 18:59:59  profilanswer
 

clef wifi up & running sur un 2.6.35 en copiant simplement le .fw
Virage du profile de connexion de network-manager qui me foutait en 192.168.1.10 au lieu de .101.

 

Y a seulement un petit souci au niveau du débit identifié, 1Mbps au lieu d'au moins 54.


Message édité par thana54 le 26-11-2010 à 19:01:28

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [debian] ath9k_htc récalcitrant

 

Sujets relatifs
[Debian] Problème au niveau des PTR avec Bind9[Debian]Problème d'affichage d'un site sous debian
affichage par usb de debian sur plug computer dockstar, pogoplug[serveur debian lenny] erreur hda
Passerelle debian pour checker un flux de donnéesDebian/ubuntu : faire un point d'acces wifi avec une eee box
Probleme image grise sur debian et webcam philips[debian]bind devenu fou
acidlab : package inexistant sous Debian ?[Résolu] [DEBIAN] Support LDAP
Plus de sujets relatifs à : [debian] ath9k_htc récalcitrant


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR