[LEDE-DEV] ar71xx v4.4 testing

Hannu Nyman hannu.nyman at iki.fi
Sun May 15 00:42:41 PDT 2016


On 14.5.2016 22:59, Felix Fietkau wrote:
> On 2016-05-14 21:32, Hannu Nyman wrote:
>> However, a negative symptom is that the radios are disabled. I did not apply
>> your new mac80211 patch, so that might be a reason. "wifi detect" produces no
>> output.
> Please use the commits from my staging tree as-is and skip John's patches.
>
> - Felix

I made a build from Felix's commits, but no help. No trace of the radios with 
kernel 4.4.

There is some difference in the kernel bootlog regarding the PCI 
initialisation. The later part of "PCI: enabling device..." is missing 
completely from the 4.4 bootlog.

Below is data from r222 build with kernel 4.1 and the same data from kernel 
4.4 build.

I tried to collect the relevant-looking info below, but please give hints for 
further debugging.

----------------------

LEDE r222 kernel 4.1

root at lede:~# ls -l /proc/bus/pci/00/11.0
-rw-r--r--    1 root     root           256 May 15 10:02 bus/pci/00/11.0
root at lede:~# cat /proc/bus/pci/devices
0088    168c0029        28 10000000                       0 
0                       0 0                       0                       0 
10001                       0 0                       0 
0                       0                       0      ath9k
0090    168c0029        29 10010000                       0 
0                       0 0                       0                       0 
10001                       0 0                       0 
0                       0                       0      ath9k

root at lede:~# lsmod | grep ath
ath                    17541  3 ath9k
ath9k                  88774  2
ath9k_common           19182  1 ath9k
ath9k_hw              336961  2 ath9k
cfg80211              215491  4 ath9k
compat                  3899  4 ath9k
mac80211              392218  1 ath9k

kernel bootlog:

[    2.752896] registering PCI controller with io_map_base unset
[    2.765569] PCI host bridge to bus 0000:00
[    2.769715] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[    2.776574] pci_bus 0000:00: root bus resource [io  0x0000]
[    2.782140] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.788914] pci_bus 0000:00: No busn resource found for root bus, will use 
[bus 00-ff]
[    2.796882] pci 0000:00:11.0: fixup device configuration
[    2.803649] pci 0000:00:12.0: fixup device configuration
[    2.810426] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[    2.817207] pci 0000:00:12.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
[    2.824007] pci 0000:00:11.0: using irq 40 for pin 1
[    2.828958] pci 0000:00:12.0: using irq 41 for pin 1
[    2.834590] Switched to clocksource MIPS
...
[   17.709507] PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
[   17.720146] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[   17.744713] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[   17.794665] PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
[   17.805314] ath: phy1: Ignoring endianness difference in EEPROM magic bytes.
[   17.832025] ieee80211 phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=41


----------------

LEDE with kernel 4.4 (and new mac80211)

root at lede:~# wifi detect
root at lede:~# iw list
root at lede:~#

root at lede:~# ls -l /proc/bus/pci/00/11.0
-rw-r--r--    1 root     root           256 May 15 10:09 bus/pci/00/11.0
root at lede:~# cat /proc/bus/pci/devices
0088    ffffffff        28 10000000                       0 
0                       0                       0 0                
0                   10001 0                       0 0                       
0                0                       0
0090    ffffffff        29 10010000                       0 
0                       0                       0 0                
0                   10001 0                       0 0                       
0                0                       0
root at lede:~# lsmod | grep ath
ath                    17573  3 ath9k
ath9k                  91173  0
ath9k_common           19182  1 ath9k
ath9k_hw              337185  2 ath9k
cfg80211              220032  4 ath9k
compat                  8400  4 ath9k
mac80211              395941  1 ath9k


kernel bootlog:

[    2.752857] registering PCI controller with io_map_base unset
[    2.765780] PCI host bridge to bus 0000:00
[    2.769925] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[    2.776782] pci_bus 0000:00: root bus resource [io  0x0000]
[    2.782348] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.789122] pci_bus 0000:00: No busn resource found for root bus, will use 
[bus 00-ff]
[    2.797086] pci 0000:00:11.0: [168c:ff1d] type 00 class 0x020000
[    2.797106] pci 0000:00:11.0: fixup device configuration
[    2.803621] pci 0000:00:11.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[    2.803852] pci 0000:00:12.0: [168c:ff1d] type 00 class 0x020000
[    2.803871] pci 0000:00:12.0: fixup device configuration
[    2.810413] pci 0000:00:12.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[    2.810621] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    2.810652] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[    2.817432] pci 0000:00:12.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
[    2.824239] pci 0000:00:11.0: using irq 40 for pin 1
[    2.829191] pci 0000:00:12.0: using irq 41 for pin 1
[    2.834887] clocksource: Switched to clocksource MIPS
...
[    2.882628] PCI: CLS 0 bytes, default 32

No further messages regarding PCI or radio initalisation.





More information about the Lede-dev mailing list