[Debian-eeepc-devel] madwifi: unwanted device renaming by udev (was: Re: Problems with Linux 2.6.26 and Madwifi)

Paul Menzel paulepanter at users.sourceforge.net
Sat Sep 13 14:00:06 UTC 2008


Dear list,


thank you for the answers. New question for problem at the very end.


Am Donnerstag, den 11.09.2008, 12:45 +0300 schrieb Damyan Ivanov:
> -=| Paul Menzel, Thu, Sep 11, 2008 at 10:08:41AM +0200 |=-
> > 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.
> > > 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
> 
> Did that actually build the modules? It may have used a previously 
> built .deb.  add "-f" to m-a a-i arguments to force module building.

I think it rebuilded the modules because I did delete the deb file
in /usr/src/ . Anyway tried this again, but to no avail. Just for
reference.

$ sudo aptitude remove --purge madwifi-source madwifi-tools madwifi-modules-2.6.26-1-686
$ sudo rm /var/cache/apt/archives/madwifi-*
$ sudo rm /usr/src/madwifi-modules-2.6.26-1-686_0.9.4+r3772.20080716-1+2.6.26-4_i386.deb
$ sudo rmmod pciehp
$ sudo rmmod ath_rate_sample
$ sudo rmmod ath_hal
$ sudo rmmod wlan_scan_sta
$ sudo rmmod wlan
$ sudo m-a a-i -f madwifi

> > $ # It still does not work.
> > 
> > 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
> > 
> > 
> > $ 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
> 
> At least there is no "HAL status 3" error.

Right.

> > >  unload/reload the module and all should be fine.
> > 
> > Which modules should I have to reload? Is not that done by the 
> > scripts.
> 
> The scripts only un/load ath_pci. There are also others, I should have 
> mentioned that.
> 
> > 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,
> 
> Hopefully the owher will reboot and suddelny find out that wireless 
> works :)

Well it did not.

> The only other idea I have is to increment the sleep value after 
> modprobe ath_pci. Please see if a reboot helps first, having to wait 
> for yet another second for the network to get up is irritating :)

I set it to 2 and 5 and it did not help.


$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh off
Sa 13. Sep 15:05:43 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 ]
paul at localhost:~$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh on
Sa 13. Sep 15:05:50 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


Sep 13 15:05:50 localhost kernel: [  403.655246] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 unloaded
Sep 13 15:05:50 localhost kernel: [  403.710038] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Sep 13 15:05:50 localhost kernel: [  403.722736] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
Sep 13 15:05:50 localhost kernel: [  403.723315] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
Sep 13 15:05:52 localhost kernel: [  405.728147] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
Sep 13 15:05:52 localhost kernel: [  405.728281] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Sep 13 15:05:52 localhost kernel: [  405.741878] pciehp: Card present on Slot(3)
Sep 13 15:05:53 localhost kernel: [  406.744699] program_fw_provided_values: Could not get hotplug parameters
Sep 13 15:05:54 localhost kernel: [  407.946072] ath_hal: module license 'Proprietary' taints kernel.
Sep 13 15:05:54 localhost kernel: [  407.951757] AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417)
Sep 13 15:05:56 localhost kernel: [  408.814961] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
Sep 13 15:05:56 localhost kernel: [  408.814989] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
Sep 13 15:05:56 localhost kernel: [  409.309860] MadWifi: ath_attach: Switching rfkill capability off.
Sep 13 15:05:56 localhost kernel: [  409.406205] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
Sep 13 15:05:56 localhost kernel: [  409.450919] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18
Sep 13 15:05:56 localhost kernel: [  409.533061] udev: renamed network interface ath0 to wlan0
Sep 13 15:05:57 localhost kernel: [  411.056195] ACPI: PCI interrupt for device 0000:01:00.0 disabled
Sep 13 15:05:57 localhost kernel: [  411.105303] pciehp: Card not present on Slot(3)


What still bugged me was the message

Sep 13 15:05:56 localhost kernel: [  409.533061] udev: renamed network interface ath0 to wlan0

even before the sleep command in the script. Therefore I tried

$ LANG=C dpkg -l udev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                                                  Version                                               Description
+++-=====================================================-=====================================================-===================================
ii  udev                                                  0.125-6                                               /dev/ and hotplug management daemon
$ sudo aptitude reinstall udev

but with no luck. Then I decided to stop the daemon

$ sudo invoke-rc.d udev stop
Stopping the hotplug events dispatcher: udevd.

and it WORKED ;).


$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh off
Sa 13. Sep 15:35:31 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 ]
paul at localhost:~$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh on
Sa 13. Sep 15:35:34 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 5
+ ifconfig ath0 up


Sep 13 15:35:34 localhost kernel: [ 2187.945980] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 unloaded
Sep 13 15:35:34 localhost kernel: [ 2187.991842] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Sep 13 15:35:34 localhost kernel: [ 2187.996665] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
Sep 13 15:35:34 localhost kernel: [ 2187.997170] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
Sep 13 15:35:36 localhost kernel: [ 2190.004109] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
Sep 13 15:35:36 localhost kernel: [ 2190.004236] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Sep 13 15:35:36 localhost kernel: [ 2190.007593] pciehp: Card present on Slot(3)
Sep 13 15:35:37 localhost kernel: [ 2191.012644] program_fw_provided_values: Could not get hotplug parameters
Sep 13 15:35:38 localhost kernel: [ 2191.396896] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
Sep 13 15:35:38 localhost kernel: [ 2191.396925] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
Sep 13 15:35:38 localhost kernel: [ 2191.891822] MadWifi: ath_attach: Switching rfkill capability off.
Sep 13 15:35:38 localhost kernel: [ 2191.893867] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
Sep 13 15:35:38 localhost kernel: [ 2191.895668] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18


Starting udev again did not rename the created device.

$ sudo invoke-rc.d udev start
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.

$ tail -f /var/log/messages
Sep 13 15:36:25 localhost kernel: [ 2238.466512] udevd version 125 started
Sep 13 15:36:33 localhost kernel: [ 2246.500715] intel_rng: FWH not detected

Trying it again with udev running, I get the not working result again.

$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh off
Sa 13. Sep 15:52:12 CEST 2008
[sudo] password for paul:
+ . /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
+ [ 1 = 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
+ ifdown --force ath0
+ modprobe -r ath_pci
+ echo 0
$ date && LANG=C sudo sh -x /etc/acpi/actions/wireless.sh on
Sa 13. Sep 15:52:35 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 5
+ 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


Sep 13 15:52:20 localhost kernel: [ 3193.888122] ACPI: PCI interrupt for device 0000:01:00.0 disabled
Sep 13 15:52:20 localhost kernel: [ 3193.915864] pciehp: Card not present on Slot(3)
Sep 13 15:52:35 localhost kernel: [ 3209.214639] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 unloaded
Sep 13 15:52:35 localhost kernel: [ 3209.271075] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Sep 13 15:52:35 localhost kernel: [ 3209.278871] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
Sep 13 15:52:35 localhost kernel: [ 3209.279442] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
Sep 13 15:52:37 localhost kernel: [ 3211.284115] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
Sep 13 15:52:37 localhost kernel: [ 3211.284250] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Sep 13 15:52:37 localhost kernel: [ 3211.286929] pciehp: Card present on Slot(3)
Sep 13 15:52:38 localhost kernel: [ 3212.292643] program_fw_provided_values: Could not get hotplug parameters
Sep 13 15:52:39 localhost kernel: [ 3212.573531] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
Sep 13 15:52:39 localhost kernel: [ 3212.573561] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
Sep 13 15:52:39 localhost kernel: [ 3213.068521] MadWifi: ath_attach: Switching rfkill capability off.
Sep 13 15:52:39 localhost kernel: [ 3213.070547] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
Sep 13 15:52:39 localhost kernel: [ 3213.072383] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18
Sep 13 15:52:39 localhost kernel: [ 3213.275366] udev: renamed network interface ath0 to wlan0
Sep 13 15:52:45 localhost kernel: [ 3218.708154] ACPI: PCI interrupt for device 0000:01:00.0 disabled
Sep 13 15:52:45 localhost kernel: [ 3218.760576] pciehp: Card not present on Slot(3)


So for me it looks like udev is the culprit. Any ideas how to fix this
or where this renaming stuff is located?


Thanks in advance. Bests,

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/20080913/a97431c9/attachment.pgp 


More information about the Debian-eeepc-devel mailing list