MOD-WIFI-AR9271 problem on Lime2

Started by mbosschaert, December 23, 2018, 11:28:54 AM

Previous topic - Next topic

mbosschaert

Hi,
One of my Lime2 boards has a problem with the wifi dongle (MOD-WIFI-AR9271). After a reboot it takes a couple of hours before it actually is detected and the modules (ath) are loaded.


modprobe output:
...
ath9k_htc              53697  0
ath9k_common            3222  1 ath9k_htc
ath9k_hw              356457  2 ath9k_common,ath9k_htc
ath                    17225  3 ath9k_common,ath9k_htc,ath9k_hw
mac80211              247555  1 ath9k_htc
...


after the modules are loaded I need to ifup wlan0 and the wifi connection is activated. In the dmesg output below the board is booted on 22/12 around 21hrs. The wifi-dongle is recognized by the usb system at 23/12 at 04:15:46
At 08:50:57 the device is actually inactivated again:


dmesg -T
...
[Sat Dec 22 21:33:34 2018] ehci_irq: port change detect
[Sat Dec 22 21:33:35 2018] ehci_irq: port change detect
[Sat Dec 22 21:33:35 2018] The port change to OHCI now!
[Sat Dec 22 21:33:35 2018] usb 3-1: new full-speed USB device number 3 using sw-ohci
[Sat Dec 22 21:33:35 2018] ====usb_stor_huawei_e220_init===>
[Sat Dec 22 21:33:35 2018] usbcore: registered new interface driver usbserial
[Sat Dec 22 21:33:35 2018] usbcore: registered new interface driver usbserial_generic
[Sat Dec 22 21:33:36 2018] USB Serial support registered for generic
[Sat Dec 22 21:33:36 2018] usbserial_generic 3-1:1.0: generic converter detected
[Sat Dec 22 21:33:36 2018] usb 3-1: generic converter now attached to ttyUSB0
[Sat Dec 22 21:33:36 2018] ADDRCONF(NETDEV_UP): usb0: link is not ready
[Sat Dec 22 21:33:36 2018] usbserial_generic 3-1:1.1: generic converter detected
[Sat Dec 22 21:33:36 2018] usb 3-1: generic converter now attached to ttyUSB1
[Sat Dec 22 21:33:36 2018] usbserial_generic 3-1:1.2: generic converter detected
[Sat Dec 22 21:33:36 2018] usb 3-1: generic converter now attached to ttyUSB2
[Sat Dec 22 21:33:36 2018] usbserial_generic 3-1:1.3: generic converter detected
[Sat Dec 22 21:33:36 2018] usb 3-1: generic converter now attached to ttyUSB3
[Sat Dec 22 21:33:36 2018] usbserial: USB Serial Driver core
[Sat Dec 22 21:33:36 2018] usbcore: registered new interface driver option
[Sat Dec 22 21:33:36 2018] USB Serial support registered for GSM modem (1-port)
[Sat Dec 22 21:40:07 2018] ehci_irq: port change detect
[Sat Dec 22 21:40:07 2018] ehci_irq: port change detect
[Sat Dec 22 22:45:10 2018] ehci_irq: port change detect
[Sat Dec 22 22:45:10 2018] ehci_irq: port change detect
[Sat Dec 22 22:50:46 2018] ehci_irq: port change detect
[Sat Dec 22 22:50:46 2018] ehci_irq: port change detect
[Sat Dec 22 22:53:07 2018] ehci_irq: port change detect
[Sat Dec 22 22:53:07 2018] ehci_irq: port change detect
[Sun Dec 23 01:16:09 2018] PHY: sunxi_gmac-0:00 - Link is Up - 10/Half
[Sun Dec 23 01:16:11 2018] PHY: sunxi_gmac-0:00 - Link is Down
[Sun Dec 23 04:15:46 2018] ehci_irq: port change detect
[Sun Dec 23 04:15:46 2018] usb 4-1: new high-speed USB device number 2 using sw-ehci
[Sun Dec 23 04:15:48 2018] usb 4-1: ath9k_htc: Firmware htc_9271.fw requested
[Sun Dec 23 04:15:48 2018] usbcore: registered new interface driver ath9k_htc
[Sun Dec 23 04:15:48 2018] usb 4-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[Sun Dec 23 04:15:49 2018] ath9k_htc 4-1:1.0: ath9k_htc: HTC initialized with 33 credits
[Sun Dec 23 04:15:49 2018] ath9k_htc 4-1:1.0: ath9k_htc: FW Version: 1.3
[Sun Dec 23 04:15:49 2018] ath: EEPROM regdomain: 0x809c
[Sun Dec 23 04:15:49 2018] ath: EEPROM indicates we should expect a country code
[Sun Dec 23 04:15:49 2018] ath: doing EEPROM country->regdmn map search
[Sun Dec 23 04:15:49 2018] ath: country maps to regdmn code: 0x52
[Sun Dec 23 04:15:49 2018] ath: Country alpha2 being used: CN
[Sun Dec 23 04:15:49 2018] ath: Regpair used: 0x52
[Sun Dec 23 04:15:49 2018] ieee80211 phy0: Atheros AR9271 Rev:1
[Sun Dec 23 04:15:49 2018] Registered led device: ath9k_htc-phy0
[Sun Dec 23 05:59:22 2018] PHY: sunxi_gmac-0:00 - Link is Up - 10/Half
[Sun Dec 23 05:59:24 2018] PHY: sunxi_gmac-0:00 - Link is Down
[Sun Dec 23 06:31:30 2018] PHY: sunxi_gmac-0:00 - Link is Up - 10/Half
[Sun Dec 23 06:31:32 2018] PHY: sunxi_gmac-0:00 - Link is Down
[Sun Dec 23 07:16:03 2018] PHY: sunxi_gmac-0:00 - Link is Up - 10/Half
[Sun Dec 23 07:16:05 2018] PHY: sunxi_gmac-0:00 - Link is Down
[Sun Dec 23 08:01:23 2018] PHY: sunxi_gmac-0:00 - Link is Up - 10/Half
[Sun Dec 23 08:01:25 2018] PHY: sunxi_gmac-0:00 - Link is Down
[Sun Dec 23 08:15:25 2018] wlan0: no IPv6 routers present
[Sun Dec 23 08:29:25 2018] PHY: sunxi_gmac-0:00 - Link is Up - 10/Half
[Sun Dec 23 08:29:27 2018] PHY: sunxi_gmac-0:00 - Link is Down
[Sun Dec 23 08:50:57 2018] ehci_irq: port change detect
[Sun Dec 23 08:50:57 2018] hub 4-0:1.0: port 1 disabled by hub (EMI?), re-enabling... [ <----- ]
[Sun Dec 23 08:50:57 2018] ehci_irq: port change detect
[Sun Dec 23 08:50:57 2018] usb 4-1: USB disconnect, device number 2
[Sun Dec 23 08:50:59 2018] usb 4-1: ath9k_htc: USB layer deinitialized
[Sun Dec 23 08:53:01 2018] ehci_irq: port change detect
[Sun Dec 23 08:53:01 2018] ehci_irq: port change detect
[Sun Dec 23 09:14:38 2018] PHY: sunxi_gmac-0:00 - Link is Up - 10/Half
[Sun Dec 23 09:14:40 2018] PHY: sunxi_gmac-0:00 - Link is Down
[Sun Dec 23 09:34:56 2018] ehci_irq: port change detect
[Sun Dec 23 09:34:57 2018] usb 4-1: new high-speed USB device number 3 using sw-ehci
[Sun Dec 23 09:35:02 2018] usb 4-1: ath9k_htc: Firmware htc_9271.fw requested
[Sun Dec 23 09:35:02 2018] usb 4-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[Sun Dec 23 09:35:02 2018] ath9k_htc 4-1:1.0: ath9k_htc: HTC initialized with 33 credits
[Sun Dec 23 09:35:03 2018] ath9k_htc 4-1:1.0: ath9k_htc: FW Version: 1.3
[Sun Dec 23 09:35:03 2018] ath: EEPROM regdomain: 0x809c
[Sun Dec 23 09:35:03 2018] ath: EEPROM indicates we should expect a country code
[Sun Dec 23 09:35:03 2018] ath: doing EEPROM country->regdmn map search
[Sun Dec 23 09:35:03 2018] ath: country maps to regdmn code: 0x52
[Sun Dec 23 09:35:03 2018] ath: Country alpha2 being used: CN
[Sun Dec 23 09:35:03 2018] ath: Regpair used: 0x52
[Sun Dec 23 09:35:03 2018] ieee80211 phy1: Atheros AR9271 Rev:1
[Sun Dec 23 09:35:03 2018] Registered led device: ath9k_htc-phy1
[Sun Dec 23 09:35:13 2018] wlan0: no IPv6 routers present
[Sun Dec 23 10:06:33 2018] wlan0: no IPv6 routers present


Is this a problem of drivers, the wifi-dongle or the USB system on the board? I have the same setup (Lime2+AR9271) which has no problem.

All help appreciated!
Cheers,
Mike