[Debian-eeepc-devel] Problems with Linux 2.6.26 and Madwifi

Paul Menzel paulepanter at users.sourceforge.net
Thu Sep 11 08:08:41 UTC 2008


Dear Damyan,


Am Freitag, den 05.09.2008, 13:29 +0300 schrieb Damyan Ivanov:
> -=| Paul Menzel, Fri, Sep 05, 2008 at 09:21:01AM +0200 |=-
> 
> This:
> > > >         + echo 1
> > > >         + modprobe ath_pci
> > > >         + sleep 1
> > > >         + ifconfig ath0 up
> > > >         ath0: ERROR while getting interface flags: Kein passendes Gerät gefunden (translation: No suitable device found.)
> 
> and this:
> > [   87.759957] MadWifi: unable to attach hardware: 'Hardware didn't 
> > respond as expected' (HAL status 3)
> 
> ring some bells from the past. You probably use an old version of 
> madwifi sources, that does not work with the atheros chip in the eee.  
> We used to distribute a patched package (madwifi-eeepc-source), but 
> this is no longer necesary.

These packages were installed before.

$ dpkg -l madwifi*
[…]
||/ Name                                                  Version                                               Beschreibung
+++-=====================================================-=====================================================-=======================================================================
ii  madwifi-modules-2.6.26-1-686                          1:0.9.4+r3772.20080716-1+2.6.26-4                     modules for the Multiband Atheros Driver for WiFi (kernel 2.6.26-1-686)
ii  madwifi-source                                        1:0.9.4+r3772.20080716-1                              source for the Multiband Atheros Driver for WiFi
ii  madwifi-tools                                         1:0.9.4+r3685.20080531+dfsg-1                         tools for the Multiband Atheros Driver for WiFi

> Get fresh madwifi-source package from Sid, build and install the 
> -modules package from it using module-assistant,

Ok. I did.

$ # uncomment the eeepc.debian.net repository in /etc/apt/sources.list
$ # I did not add a sid repository, because packages.debian.org shows that the versions are the same for linux-image-2.6.26-1-686 and madwifi* packages
$ sudo aptitude update && sudo aptitude safe-upgrade
$ sudo aptitude remove --purge madwifi-modules-2.6.26-1-686 madwifi-source madwifi-tools
$ sudo m-a update
$ sudo m-a a-i madwifi # it installed also madwifi-tools
$ # It still does not work.

$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh off
Do 11. Sep 09:34:19 CEST 2008
+ . /usr/share/eeepc-acpi-scripts/functions.sh
+ wlan_control=/sys/devices/platform/eeepc/wlan
+ [ -e /sys/devices/platform/eeepc/wlan ]
+ cat /sys/devices/platform/eeepc/wlan
+ [ 0 = 1 ]


$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh on
Do 11. Sep 09:34:28 CEST 2008
+ . /usr/share/eeepc-acpi-scripts/functions.sh
+ wlan_control=/sys/devices/platform/eeepc/wlan
+ [ -e /sys/devices/platform/eeepc/wlan ]
+ cat /sys/devices/platform/eeepc/wlan
+ [ 0 = 0 ]
+ modprobe -r pciehp
+ modprobe pciehp pciehp_force=1
+ echo 1
+ detect_wlan
+ lspci
+ grep -i network controller
+ grep -q RaLink
+ lspci
+ grep -i atheros
+ grep -q -i wireless
+ WLAN_IF=ath0
+ WLAN_MOD=ath_pci
+ echo Detected WLAN module ath_pci on ath0
Detected WLAN module ath_pci on ath0
+ modprobe ath_pci
+ sleep 1
+ ifconfig ath0 up
ath0: ERROR while getting interface flags: No such device
+ exec /etc/acpi/actions/wireless.sh off
Detected WLAN module ath_pci on ath0


$ tail -f /var/log/messages
Sep 11 09:32:33 localhost kernel: [ 2179.559780] pciehp: Card present on Slot(3)
Sep 11 09:32:34 localhost kernel: [ 2180.560682] program_fw_provided_values: Could not get hotplug parameters
Sep 11 09:32:35 localhost kernel: [ 2180.840568] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
Sep 11 09:32:35 localhost kernel: [ 2180.840599] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
Sep 11 09:32:35 localhost kernel: [ 2181.332544] MadWifi: ath_attach: Switching rfkill capability off.
Sep 11 09:32:35 localhost kernel: [ 2181.334629] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
Sep 11 09:32:35 localhost kernel: [ 2181.336463] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18
Sep 11 09:32:35 localhost kernel: [ 2181.535623] udev: renamed network interface ath0 to wlan0
Sep 11 09:32:37 localhost kernel: [ 2183.403510] ACPI: PCI interrupt for device 0000:01:00.0 disabled
Sep 11 09:32:37 localhost kernel: [ 2183.459397] pciehp: Card not present on Slot(3)
Sep 11 09:34:28 localhost kernel: [ 2294.618092] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 unloaded
Sep 11 09:34:28 localhost kernel: [ 2294.675118] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Sep 11 09:34:28 localhost kernel: [ 2294.683210] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
Sep 11 09:34:28 localhost kernel: [ 2294.686400] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
Sep 11 09:34:30 localhost kernel: [ 2296.692125] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
Sep 11 09:34:30 localhost kernel: [ 2296.692273] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Sep 11 09:34:30 localhost kernel: [ 2296.703247] pciehp: Card present on Slot(3)
Sep 11 09:34:31 localhost kernel: [ 2297.704674] program_fw_provided_values: Could not get hotplug parameters
Sep 11 09:34:32 localhost kernel: [ 2297.995130] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
Sep 11 09:34:32 localhost kernel: [ 2297.995160] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
Sep 11 09:34:32 localhost kernel: [ 2298.487022] MadWifi: ath_attach: Switching rfkill capability off.
Sep 11 09:34:32 localhost kernel: [ 2298.489110] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
Sep 11 09:34:32 localhost kernel: [ 2298.490921] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18
Sep 11 09:34:32 localhost kernel: [ 2298.695679] udev: renamed network interface ath0 to wlan0
Sep 11 09:34:34 localhost kernel: [ 2300.272155] ACPI: PCI interrupt for device 0000:01:00.0 disabled
Sep 11 09:34:34 localhost kernel: [ 2300.325578] pciehp: Card not present on Slot(3)

>  unload/reload the module and all should be fine.

Which modules should I have to reload? Is not that done by the scripts.
Anyway I did not have time to do a reboot because the person owning the
Eee PC had to go.

Now reading the logs, probably it was ath_hal not being reloaded. I will
test this soon.


Any ideas? Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080911/2e0bff96/attachment.pgp 


More information about the Debian-eeepc-devel mailing list