[Debian-eeepc-devel] Problems with Linux 2.6.26 and Madwifi (and Lenny?)
Paul Menzel
paulepanter at users.sourceforge.net
Fri Sep 5 07:21:01 UTC 2008
Dear Damyan,
I started this message two weeks ago, installing Debian Sid on the Eee
PC 701 4G (Debian-Installer with 2.6.26 Linux, Sid, BIOS 0801 – call it
B) I am owning. Strangely I got WLAN working and used it in several
occasions.
I thought that the issue was done and I could solve it on the other Eee
PC (Debian-Installer with 2.6.25, Lenny with a Linux 2.6.25 from Sid
back than, but now also in Lenny, BIOS 0910 – call it A) too.
But yesterday I had to find out that on the other Eee PC the problem
still exists.
Am Donnerstag, den 21.08.2008, 08:29 +0300 schrieb Damyan Ivanov:
> -=| Paul Menzel, Tue, Aug 19, 2008 at 11:26:41PM +0200 |=-
> > Am Montag, den 18.08.2008, 09:52 +0200 schrieb Paul Menzel:
> >
> > > Am Montag, den 18.08.2008, 08:32 +0300 schrieb Damyan Ivanov:
> > > > -=| Paul Menzel, Sun, Aug 17, 2008 at 10:32:40PM +0200 |=-
> > > > > Any ideas. I will appreciate any hints.
> > > >
> > > > run " sh -x /etc/acpi/actions/wireless.sh on" and see what fails
> > > > exactly.
> > >
> > > I will be able to try that tomorrow.
> >
> > I had to run it as root and did
> >
> > $ sudo sh -x /etc/acpi/actions/wireless.sh on
> > + 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
> > + modprobe ath_pci
> > + sleep 1
> > + ifconfig ath0 up
> > ath0: ERROR while getting interface flags: Kein passendes Gerät gefunden (translation: No suitable device found.)
> > + exec /etc/acpi/actions/wireless.sh off
> >
> > In my dmesg output (relevant parts attached at the end) I saw that udev
> > was naming the device wifi0. I substituted the respective lines
> >
> > $ sudo vim /etc/acpi/actions/wireless.sh
>
> you mean - replacing "ath0" with "wifi0"? This shouldn't be done. In
> my understanding there should be both wifi0 and ath0 interfaces, wifi0
> being a "control interface" and ath0 being used as an ordinary network
> interface.
On B I first could not get it to run at the first (two?) tries issuing
the command, but strangely wanting to sent this message it started to
work on the third try!? Now I see that I had set the LANG=C environment
variable to give you English output and than it ran. But it worked
without afterward. I forgot to try this yesterday on A.
$ sudo sh -x /etc/acpi/actions/wireless.sh off
+ wlan_control=/sys/devices/platform/eeepc/wlan
+ [ -e /sys/devices/platform/eeepc/wlan ]
+ cat /sys/devices/platform/eeepc/wlan
+ [ 1 = 1 ]
+ ifdown --force ath0
+ modprobe -r ath_pci
+ echo 0
paul at uinonah:~$ sudo sh -x /etc/acpi/actions/wireless.sh on
+ 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
+ modprobe ath_pci
+ sleep 1
+ ifconfig ath0 up
ath0: ERROR while getting interface flags: Kein passendes Gerät gefunden
+ exec /etc/acpi/actions/wireless.sh off
paul at uinonah:~$ sudo sh -x /etc/acpi/actions/wireless.sh off
+ wlan_control=/sys/devices/platform/eeepc/wlan
+ [ -e /sys/devices/platform/eeepc/wlan ]
+ cat /sys/devices/platform/eeepc/wlan
+ [ 0 = 1 ]
paul at uinonah:~$ LANG=C sudo sh -x /etc/acpi/actions/wireless.sh off
+ wlan_control=/sys/devices/platform/eeepc/wlan
+ [ -e /sys/devices/platform/eeepc/wlan ]
+ cat /sys/devices/platform/eeepc/wlan
+ [ 0 = 1 ]
paul at uinonah:~$ LANG=C sudo sh -x /etc/acpi/actions/wireless.sh on
+ 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
+ modprobe ath_pci
+ sleep 1
+ ifconfig ath0 up
$ sudo sh -x /etc/acpi/actions/wireless.sh off
+ wlan_control=/sys/devices/platform/eeepc/wlan
+ [ -e /sys/devices/platform/eeepc/wlan ]
+ cat /sys/devices/platform/eeepc/wlan
+ [ 1 = 1 ]
+ ifdown --force ath0
+ modprobe -r ath_pci
+ echo 0
paul at uinonah:~$ sudo sh -x /etc/acpi/actions/wireless.sh on
+ 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
+ modprobe ath_pci
+ sleep 1
+ ifconfig ath0 up
$ dmesg
[...]
[ 13.065704] Error: Driver 'pcspkr' is already registered, aborting...
[ 14.011475] Synaptics Touchpad, model: 1, fw: 6.5, id: 0x1c0b1, caps: 0xa04751/0xa00000
[ 14.085588] input: SynPS/2 Synaptics TouchPad as /class/input/input7
[ 14.512549] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
[ 14.571862] ath_pci: wifi0: Atheros 5424/2424: mem=0xfbef0000, irq=18
[ 14.572132] ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 19 (level, low) -> IRQ 19
[ 15.453250] EXT3 FS on sda1, internal journal
[ 16.230073] loop: module loaded
[ 17.031122] atl2: eth0 NIC Link is Up<100 Mbps Full Duplex>
[ 17.799523] NET: Registered protocol family 10
[ 17.800943] lo: Disabled Privacy Extensions
[ 21.409781] [drm] Initialized drm 1.1.0 20060810
[ 21.421710] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
[ 21.421735] PCI: Setting latency timer of device 0000:00:02.0 to 64
[ 21.421956] [drm] Initialized i915 1.6.0 20060119 on minor 0
[ 23.173416] ACPI: EC: GPE storm detected, disabling EC GPE
[ 28.152104] eth0: no IPv6 routers present
[ 76.008136] ACPI: PCI interrupt for device 0000:01:00.0 disabled
[ 84.603703] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 84.608082] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
[ 84.613817] Load service driver hpdriver on pcie device 0000:00:1c.0:pcie02
[ 84.613859] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
[ 85.616099] pciehp: Device 0000:03:00.0 already exists at 3:0, cannot hot-add
[ 85.616118] pciehp: Cannot add device 0x3:0
[ 86.620099] Load service driver hpdriver on pcie device 0000:00:1c.1:pcie02
[ 86.620154] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
[ 86.620274] Load service driver hpdriver on pcie device 0000:00:1c.2:pcie02
[ 86.620306] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 86.622946] pciehp: Card present on Slot(3)
[ 87.624089] pciehp: Device 0000:01:00.0 already exists at 1:0, cannot hot-add
[ 87.624108] pciehp: Cannot add device 0x1:0
[ 87.755639] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 87.755668] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
[ 87.755696] PCI: Setting latency timer of device 0000:01:00.0 to 64
[ 87.759957] MadWifi: unable to attach hardware: 'Hardware didn't respond as expected' (HAL status 3)
[ 87.759992] ACPI: PCI interrupt for device 0000:01:00.0 disabled
[ 88.989046] pciehp: Card not present on Slot(3)
[ 298.065162] Unload service driver hpdriver on pcie device 0000:00:1c.2:pcie02
[ 298.065259] Unload service driver hpdriver on pcie device 0000:00:1c.1:pcie02
[ 298.065312] Unload service driver hpdriver on pcie device 0000:00:1c.0:pcie02
[ 298.069351] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 unloaded
[ 298.089902] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 298.096236] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
[ 298.096774] Load service driver hpdriver on pcie device 0000:00:1c.0:pcie02
[ 298.096810] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
[ 299.100089] pciehp: Device 0000:03:00.0 already exists at 3:0, cannot hot-add
[ 299.100109] pciehp: Cannot add device 0x3:0
[ 300.104084] Load service driver hpdriver on pcie device 0000:00:1c.1:pcie02
[ 300.104139] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
[ 300.104248] Load service driver hpdriver on pcie device 0000:00:1c.2:pcie02
[ 300.104280] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 300.106897] pciehp: Card present on Slot(3)
[ 301.108680] program_fw_provided_values: Could not get hotplug parameters
[ 301.239450] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 301.239478] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
[ 301.239505] PCI: Setting latency timer of device 0000:01:00.0 to 64
[ 301.733115] MadWifi: ath_attach: Switching rfkill capability off.
[ 301.735066] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
[ 301.736863] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18
[ 313.120077] ath0: no IPv6 routers present
[ 373.016152] ACPI: PCI interrupt for device 0000:01:00.0 disabled
[ 373.044126] pciehp: Card not present on Slot(3)
[ 379.797056] Unload service driver hpdriver on pcie device 0000:00:1c.2:pcie02
[ 379.797155] Unload service driver hpdriver on pcie device 0000:00:1c.1:pcie02
[ 379.797210] Unload service driver hpdriver on pcie device 0000:00:1c.0:pcie02
[ 379.799665] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 unloaded
[ 379.820263] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 379.826507] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
[ 379.827026] Load service driver hpdriver on pcie device 0000:00:1c.0:pcie02
[ 379.827064] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
[ 380.828139] pciehp: Device 0000:03:00.0 already exists at 3:0, cannot hot-add
[ 380.828158] pciehp: Cannot add device 0x3:0
[ 381.832147] Load service driver hpdriver on pcie device 0000:00:1c.1:pcie02
[ 381.832202] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
[ 381.832306] Load service driver hpdriver on pcie device 0000:00:1c.2:pcie02
[ 381.832338] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 381.845952] pciehp: Card present on Slot(3)
[ 382.848697] program_fw_provided_values: Could not get hotplug parameters
[ 382.967501] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 382.967528] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
[ 382.967555] PCI: Setting latency timer of device 0000:01:00.0 to 64
[ 383.461187] MadWifi: ath_attach: Switching rfkill capability off.
[ 383.463142] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
[ 383.464908] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18
[ 394.872072] ath0: no IPv6 routers present
$ lsmod
Module Size Used by
ath_pci 202104 0
pciehp 28540 0
pci_hotplug 23460 1 pciehp
i915 25280 2
drm 65256 3 i915
ipv6 235172 10
loop 12748 0
joydev 8480 0
wlan_scan_sta 11200 1
psmouse 32336 0
serio_raw 4740 0
iTCO_wdt 9508 0
i2c_i801 7920 0
i2c_core 19828 1 i2c_i801
rng_core 3940 0
video 16400 0
output 2912 1 video
pcspkr 2432 0
battery 6272 0
ac 3264 0
eeepc_laptop 7440 0
button 6064 0
ath_rate_sample 11008 1
snd_hda_intel 324248 0
wlan 193040 4 ath_pci,wlan_scan_sta,ath_rate_sample
ath_hal 300672 3 ath_pci,ath_rate_sample
snd_pcm 62628 1 snd_hda_intel
snd_timer 17800 1 snd_pcm
snd 45604 3 snd_hda_intel,snd_pcm,snd_timer
soundcore 6368 1 snd
snd_page_alloc 7816 2 snd_hda_intel,snd_pcm
atl2 22744 0
intel_agp 22300 1
agpgart 28776 3 drm,intel_agp
evdev 8000 1
ext3 105256 1
jbd 39444 1 ext3
mbcache 7108 1 ext3
sd_mod 22200 2
ata_generic 4676 0
ahci 23176 0
usb_storage 75712 0
ata_piix 14180 1
libata 140416 3 ata_generic,ahci,ata_piix
scsi_mod 129356 3 sd_mod,usb_storage,libata
dock 8272 1 libata
ide_pci_generic 3908 0 [permanent]
ide_core 92628 1 ide_pci_generic
ehci_hcd 28428 0
uhci_hcd 18672 0
usbcore 118160 4 usb_storage,ehci_hcd,uhci_hcd
thermal 15228 0
processor 32576 2 thermal
fan 4164 0
thermal_sys 10856 4 video,thermal,processor,fan
> > > > So far it seems that the wlan is enabled, but the 'ifconfig'
> > > > call fails for some reason and therefore the wlan is disabled
> > > > again.
> > >
> > > Ok. I do not know if it matters, but I installed and want to use wicd
> > > for managing wlan.
> >
> > So you were right. It looks like since 2.6.26 the devices are named
> > differently. Or does it depend on udev?
>
> Loooking at the dmesg output you gave, it seems to me that the ath5k
> module is not blacklisted, causing for ath_pci to fail to properly
> create ath0 or something like that. Does ath5k appear in lsmod output?
>
> > > > Also, did you update initrd's? That's mandatory after changing files
> > > > under /etc/modprobe.d like blacklisting a module or adding options to
> > > > a module.
> > >
> > > I think I did not. I will do it tomorrow.
> >
> > Sorry, I forgot to look into this. But it looks like this did not
> > matter.
>
> It certainly matters if you blacklist ath5k as it will still be loaded
> during boot until the initrd is updated.
I think it was always blacklisted by /etc/modprobe.de/madwifi, as you
mentioned in another post. But I updated the initrd anyways and no
difference. The ath5k is not loaded.
I created the madwifi package from source with module-assistant again,
no luck.
I compared the output of dmesg/syslog from A and B running
$ sudo sh -x /etc/acpi/actions/wireless.sh on
Sep 4 21:39:48 x kernel: [ 132.803283] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Sep 4 21:39:48 x kernel: [ 132.811444] pciehp: HPC vendor_id 8086 device_id 2660 ss_vid 0 ss_did 0
Sep 4 21:39:48 x kernel: [ 132.816608] pciehp: HPC vendor_id 8086 device_id 2662 ss_vid 0 ss_did 0
Sep 4 21:39:50 x kernel: [ 134.824250] pciehp: HPC vendor_id 8086 device_id 2664 ss_vid 0 ss_did 0
Sep 4 21:39:50 x kernel: [ 134.824393] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Sep 4 21:39:50 x kernel: [ 134.827031] pciehp: Card present on Slot(3)
Sep 4 21:39:51 x kernel: [ 135.828793] program_fw_provided_values: Could not get hotplug parameters
Sep 4 21:39:52 x kernel: [ 136.065700] ath_hal: module license 'Proprietary' taints kernel.
The line above does not get displayed on A.
Sep 4 21:39:52 x kernel: [ 136.069330] AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417)
Sep 4 21:39:52 x kernel: [ 136.131006] ath_pci 0000:01:00.0: enabling device (0000 -> 0002)
Sep 4 21:39:52 x kernel: [ 136.131035] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 18
Sep 4 21:39:52 x kernel: [ 136.625729] MadWifi: ath_attach: Switching rfkill capability off.
Sep 4 21:39:52 x kernel: [ 136.725451] wifi0: Atheros AR2425 chip found (MAC 14.2, PHY SChip 7.0, Radio 10.2)
Sep 4 21:39:52 x kernel: [ 136.785687] ath_pci: wifi0: Atheros 5424/2424: mem=0xf8000000, irq=18
On A udev now says something about renaming the device and than a
message that no card in the slot is present.
I checked the version of linux and madwifi and they are the same. The
only difference is in udev (A: 0.125-5, B: 0.125-6), but the
changelog.Debian.gz entry does not mention anything regarding this
topic.
Does anyone of you have an idea, what might be the reason and how to
solve this?
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/20080905/63268be1/attachment.pgp
More information about the Debian-eeepc-devel
mailing list