J’essaye se faire fonctionner ath5k sur un noyau patche et compile par mes soins. Je vais tenter de detailler au maximum les etapes :
Je decompresse les sources du noyau :
Je me place dans le repertoire et je patche les sources :
$ cd linux-source-2.6.24/
$ bzcat ../patch-2.6.24.7-rt26.bz2 |patch -p1
J’ajoute “EXTRAVERSION = .7-rt26” dans le makefile
Je fais le make-menuconfig en prenant soin que les options soient bonnes :
[quote] Processor type and features -> Processor family -> Generic x86-64
Preemption mode -> Complete Preemption (Real-Time)
Timer frequency -> 1000hz
Networking -> Wireless -> <M> Generic IEEE 802.11 Networking Stack (mac80211)
{M} Generic IEEE 802.11 Networking Stack
-M- IEEE 802.11 WEP encryption (802.1x)
Device drivers -> Network device support -> Wireless LAN -> <M> Atheros 5xxx wireless cards support[/quote]
A ce niveau, premiere question sur la compilation. Pour “processor family” je laisse “Generic x86-64”, mais mon proc etant un amd64, ne ferais-je point mieux de le compiler avec “Opteron/Athlon64/Hammer/K8”?
Je sauve et je continue la compilation :
$ make-kpkg clean
$ time fakeroot make-kpkg --initrd -rev mz1 kernel_image kernel_headers
$ cd ..
J’ai bien mes paquets .deb, je les installe :
[code]$ ls
linux-headers-2.6.24.7-rt26_mz1_amd64.deb linux-source-2.6.24-7.tar.bz2
linux-image-2.6.24.7-rt26_mz1_amd64.deb patch-2.6.24.7-rt26.bz2
dpkg -i linux-image-2.6.24.7-rt26_mz1_amd64.deb linux-headers-2.6.24.7-rt26_mz1_amd64.deb[/code]
Je reboote sur le nouveau noyau, je teste le temps reel, ca marche. Par contre pour le wifi :
[code]# modprobe ath5k
lsmod | grep ath5k
ath5k 101252 0
mac80211 134540 1 ath5k
iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11g ESSID:""
Mode:Managed Channel:0 Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[/code]
Donc la carte est bien reconnue, mais impossible de scanner les reseaux :
# iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down
Je tente de relancer le script networking au cas ou :
[code]# invoke-rc.d networking restart
Reconfiguring network interfaces…done.
iwlist wlan0 scan
wlan0 Interface doesn’t support scanning : Network is down
[/code]
Je tente ca :
[code]# ifconfig wlan0 up
iwlist wlan0 scan
wlan0 No scan results[/code]
Dans ma liste de commandes a apprendre j’ai marque la commande qui suit dans la section wifi, mais j’ai oublie de noter l’utilite exacte de la chose, donc au cas ou ca aide je le mets aussi :
# tail -qf /var/log/syslog
Feb 5 13:29:23 xxxx /usr/sbin/cron[2679]: (CRON) INFO (pidfile fd = 3)
Feb 5 13:29:23 xxxx /usr/sbin/cron[2680]: (CRON) STARTUP (fork ok)
Feb 5 13:29:23 xxxx /usr/sbin/cron[2680]: (CRON) INFO (Running @reboot jobs)
Feb 5 13:29:33 xxxx acpid: client connected from 2749[0:0]
Feb 5 13:30:42 xxxx kernel: [ 132.313148] ACPI: PCI Interrupt Link [APC1] enabled at IRQ 16
Feb 5 13:30:42 xxxx kernel: [ 132.313157] ACPI: PCI Interrupt 0000:01:06.0[A] -> Link [APC1] -> GSI 16 (level, low) -> IRQ 16
Feb 5 13:30:42 xxxx kernel: [ 132.313259] ath5k_pci 0000:01:06.0: registered as 'phy0'
Feb 5 13:30:43 xxxx kernel: [ 132.408253] phy0: Selected rate control algorithm 'simple'
Feb 5 13:30:43 xxxx kernel: [ 132.518646] ath5k phy0: Atheros AR5213A chip found (MAC: 0x79, PHY: 0x45)
Feb 5 13:30:43 xxxx kernel: [ 132.518651] ath5k phy0: RF2112A 2GHz radio found (0x56)
Donc voila, les commandes que j’ai utilisees plus haut fonctionnent tres bien avec mon noyau generique venant des depots.
Alors, est-ce que j’ai oublie quelque chose a la compilation?
Il y a des commandes concernant le wifi que je ne connais pas?