OpenWrt Forum Archive

Topic: Quallcomm qca9558/TP-Link WDR7500 support

The content of this topic has been archived between 1 May 2014 and 7 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Does the QCA SoC comes without heatsink?
If that is true might be an indication of > 1GHZ  when OCed?

zloop wrote:
jayrock wrote:

Are you referring to the 5 GHz PCIe card or to the Archer C7 product? The announcement talks about the chipset revision (I assume). I'm not certain wich version of the QCA9558 I have. The sticker on my Archer C7 says HW1.0 and I assume that this is this is the overall HW revision of the router product rather than the revision of the 5 GHz module only.

lspci gives this:

root@OpenWrt:~# lspci -v
01:00.0 Network controller: Atheros Communications Inc. Device 003c

You are correct. I was referring to the revision of the 5GHz PCIe card.

According to your lspci those cards should be supported by ath10k. 003c is found in source code.

#define QCA988X_1_0_DEVICE_ID (0xabcd)
#define QCA988X_2_0_DEVICE_ID (0x003c)

in: https://github.com/kvalo/ath/blob/maste … h10k/pci.c

I'm fairly savvy with linux and with command line stuff, but source code is not my strong suit. I'm sure I'm not the only OpenWRT user like that as well. Any way you could share a walkthrough on how to install the Ath10k drivers?

Or is this just a waiting game for the new kernel to be developed?

alphasparc wrote:

Hmm? I thought the mailing list said 1.0 will not be supported?
By 1.0 shouldn't it be refering to this?
#define QCA988X_1_0_DEVICE_ID (0xabcd)

Did you click on the link and read the email ? tongue
http://lists.infradead.org/pipermail/at … 00021.html

Soon I will change qca98xx hw1.0 support to ath10k as unsupported and
later on I will remove hw1.0 support entirely.

Does the QCA SoC comes without heatsink?

Archer C7 does not have heatsinks

Any way you could share a walkthrough on how to install the Ath10k drivers?
Or is this just a waiting game for the new kernel to be developed?

I think that waiting is a better idea for most ppl because:
- stability issues & functionality issues & speed issues (see bugs on ath10k mailing list, commits in git)
- development stuff (which ath10k stuff is in openwrt?)

Example dev stuff: There is a package compat-wireless that is used for wireless drivers. mac80211 in svn tree
compat-wireless (its called backports now) is from June (but uses linux-next). ath10k mailing list + ath.git was set up in July - obvious difference etc

complicated versions ...

ok all makes sense. only thing that confused me was this closed bugreport on OpenWRT development that seems to say Ath10k is already implemented. I wouldnt be surprised if I'm just reading it wrong tho

zloop wrote:

You are correct. I was referring to the revision of the 5GHz PCIe card.

According to your lspci those cards should be supported by ath10k. 003c is found in source code.

#define QCA988X_1_0_DEVICE_ID (0xabcd)
#define QCA988X_2_0_DEVICE_ID (0x003c)

in: https://github.com/kvalo/ath/blob/maste … h10k/pci.c

Cool. I'll just hang on a little longer than. I don't need 802.11 ac today but maybe by end of this year.

hill_william wrote:

When I try to use the method in post 63 to flash my tl-wdr7500 I get the error code 18005 "Upload file version does not match with the models." Is there any way around this?

Hi, I'm don't have a TL-wdr7500, I have a TP-Link Archer C7.

You should try to upload your firmware with TFTP.

Greetz,
Kris

.... just for the thrill of it I flashed the original TP-Link firmware using LuCI and it worked without any problems.

Hope this information is useful.

#jayrock

be very careful not to flash a firmware that contains bootloader (if it will ever exist..)..

(Last edited by nebbia88 on 28 Jul 2013, 10:14)

May someone help me, i locked myself out and now i cant login neither via webui or telnet, i figuered out that no failsafe mode is possible?

What do i do, exept to knock my head against the wall every damm second...?

TheProject wrote:

May someone help me, i locked myself out and now i cant login neither via webui or telnet, i figuered out that no failsafe mode is possible?

What do i do, exept to knock my head against the wall every damm second...?

If youre locked out and failsafe mode is impossible, you're probably going to need to try the serial route. The hardware page for the Archer C7 has a few pics of the pinout on the board

looking forward to a build that could be flashed to WDR7500 via official web GUI

hi, Guys, may i ask what your /etc/config/network is? after i compiled a image by selecting ap135 board, the system can successfully boot. but the wan port cannot get ip from upper link and the lan ports doesn't give any ip to the clients. Looks like the router is working like a switch, because the lan clients can get ip from upper link instead from the router. In the first place i though that the dhcp server is not running on the router. but when i connect through wifi, the wireless clients can still get lan ip from the router. the following is my network setting:
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd40:798a:7adb::/48'

config interface 'lan'
        option ifname 'eth1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option ifname 'eth0'
        option proto 'dhcp'

config interface 'wan6'
        option ifname '@wan'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 1 2 3 4'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '5 6'
and my wireless settings are:
config wifi-device  radio0
        option type     mac80211
        option channel  11
        option hwmode   11ng
        option path     'platform/qca955x_wmac'
        option htmode   HT20
        list ht_capab   LDPC
        list ht_capab   SHORT-GI-20
        list ht_capab   SHORT-GI-40
        list ht_capab   TX-STBC
        list ht_capab   RX-STBC1
        list ht_capab   DSSS_CCK-40



config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

(Last edited by vubvub on 13 Aug 2013, 08:47)

vubvub, check post #38.

jayrock wrote:

vubvub, check post #38.

Thanks for your help.
i tried the method in #38, however, the br-lan is always 192.168.1.1,
the eth0 can get an ip (192.168.0.100) from the upper linked router, the lan client also get another ip(192.168.0.102) from the upper linked router.
seems to me that all the switch ports are through.

HI, Guy, I am new to openwrt, it will be nice if you can share your network and wireless settings. Thanks

vubvub wrote:

HI, Guy, I am new to openwrt, it will be nice if you can share your network and wireless settings. Thanks

It seems the problem is not from the settings. In the boot log, i don't see the loading of ar8327 driver. IF anyone know how to add it in menuconfig? I have already tried to add all Atheros drivers in there, but nothing changes. Thanks please give some help.


Starting kernel ...                                                             
                                                                               

[    0.000000] bootconsole [early0] enabled                                     
[    0.000000] CPU revision is: 00019750 (MIPS 74Kc)                           
[    0.000000] SoC: Qualcomm Atheros QCA9558 rev 0                             
[    0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:240.000MHz, Ref:40.0z
[    0.000000] Determined physical RAM map:                                     
[    0.000000]  memory: 08000000 @ 00000000 (usable)                           
[    0.000000] Initrd not found or empty - disabling initrd                     
[    0.000000] Zone ranges:                                                     
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]                           
[    0.000000] Movable zone start for each node                                 
[    0.000000] Early memory node ranges                                         
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]                         
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. 
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32s
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa2
[    0.000000] Kernel command line:  board=AP135-020 console=ttyS0,115200 mtdpad
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)             
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)   
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)     
[    0.000000] Writing ErrCtl register=00000000                                 
[    0.000000] Readback ErrCtl register=00000000                               
[    0.000000] Memory: 124136k/131072k available (2321k kernel code, 6936k rese)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1       
[    0.000000] NR_IRQS:51                                                       
[    0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)         
[    0.060000] pid_max: default: 32768 minimum: 301                             
[    0.060000] Mount-cache hash table entries: 512                             
[    0.070000] NET: Registered protocol family 16                               
[    0.070000] MIPS: machine is Atheros AP135-020 reference board               
[    0.480000] registering PCI controller with io_map_base unset               
[    0.480000] registering PCI controller with io_map_base unset               
[    0.490000] bio: create slab <bio-0> at 0                                   
[    0.500000] usbcore: registered new interface driver usbfs                   
[    0.500000] usbcore: registered new interface driver hub                     
[    0.510000] usbcore: registered new device driver usb                       
[    0.510000] PCI host bridge to bus 0000:00                                   
[    0.510000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]   
[    0.520000] pci_bus 0000:00: root bus resource [io  0x0000]                 
[    0.520000] pci_bus 0000:00: No busn resource found for root bus, will use []
[    0.530000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10007fff 64b]
[    0.530000] PCI host bridge to bus 0000:01                                   
[    0.540000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]   
[    0.540000] pci_bus 0000:01: root bus resource [io  0x0001]                 
[    0.550000] pci_bus 0000:01: No busn resource found for root bus, will use []
[    0.550000] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64b]
[    0.560000] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pre]
[    0.560000] pci 0000:00:00.0: using irq 40 for pin 1                         
[    0.570000] pci 0000:01:00.0: using irq 41 for pin 1                         
[    0.570000] Switching to clocksource MIPS                                   
[    0.580000] NET: Registered protocol family 2                               
[    0.580000] TCP established hash table entries: 1024 (order: 1, 8192 bytes) 
[    0.580000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)         
[    0.580000] TCP: Hash tables configured (established 1024 bind 1024)         
[    0.590000] TCP: reno registered                                             
[    0.590000] UDP hash table entries: 256 (order: 0, 4096 bytes)               
[    0.600000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)         
[    0.610000] NET: Registered protocol family 1                               
[    2.770000] squashfs: version 4.0 (2009/01/31) Phillip Lougher               
[    2.780000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORI.
[    2.790000] msgmni has been set to 242                                       
[    2.790000] io scheduler noop registered                                     
[    2.800000] io scheduler deadline registered (default)                       
[    2.800000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled         
[    2.830000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A   
[    2.840000] console [ttyS0] enabled, bootconsole disabled                   
[    2.840000] console [ttyS0] enabled, bootconsole disabled                   
[    2.850000] ath79-spi ath79-spi: master is unqueued, this is deprecated     
[    2.860000] m25p80 spi0.0: found mx25l12805d, expected m25p80               
[    2.860000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)                       
[    2.870000] 6 cmdlinepart partitions found on MTD device spi0.0             
[    2.870000] Creating 6 MTD partitions on "spi0.0":                           
[    2.880000] 0x000000000000-0x000000040000 : "u-boot"                         
[    2.880000] 0x000000040000-0x000000050000 : "u-boot-env"                     
[    2.890000] 0x000000050000-0x000000e80000 : "rootfs"                         
[    2.900000] mtd: partition "rootfs" set to be root filesystem               
[    2.900000] split_squashfs: no squashfs found in "spi0.0"                   
[    2.910000] 0x000000e80000-0x000000ff0000 : "kernel"                         
[    2.910000] 0x000000ff0000-0x000001000000 : "art"                           
[    2.920000] 0x000000050000-0x000000ff0000 : "firmware"                       
[    2.940000] libphy: ag71xx_mdio: probed                                     
[    2.950000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII           
[    3.500000] ag71xx ag71xx.0 eth0: connected to PHY at ag71xx-mdio.0:00 [uid=]
[    3.510000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII           
[    4.070000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver       
[    4.080000] ehci-pci: EHCI PCI platform driver                               
[    4.080000] ehci-platform: EHCI generic platform driver                     
[    4.090000] ehci-platform ehci-platform.0: EHCI Host Controller             
[    4.090000] ehci-platform ehci-platform.0: new USB bus registered, assigned 1
[    4.100000] ehci-platform ehci-platform.0: TX-TX IDP fix enabled             
[    4.110000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000         
[    4.140000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00       
[    4.140000] hub 1-0:1.0: USB hub found                                       
[    4.150000] hub 1-0:1.0: 1 port detected                                     
[    4.150000] ehci-platform ehci-platform.1: EHCI Host Controller             
[    4.160000] ehci-platform ehci-platform.1: new USB bus registered, assigned 2
[    4.170000] ehci-platform ehci-platform.1: TX-TX IDP fix enabled             
[    4.170000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000         
[    4.200000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00       
[    4.200000] hub 2-0:1.0: USB hub found                                       
[    4.210000] hub 2-0:1.0: 1 port detected                                     
[    4.210000] TCP: cubic registered                                           
[    4.210000] NET: Registered protocol family 17                               
[    4.220000] 8021q: 802.1Q VLAN Support v1.8                                 
[    4.230000] Freeing unused kernel memory: 2244K (8033f000 - 80570000)       
procd: Console is alive                                                         
procd: - watchdog -                                                             
[    4.260000] SCSI subsystem initialized                                       
[    4.280000] usbcore: registered new interface driver usb-storage             
procd: - preinit -                                                             
Press the [f] key and hit [enter] to enter failsafe mode                       
[    6.500000] eth0: link up (100Mbps/Full duplex)                             
[    7.450000] eth0: link down                                                 
procd: - early -                                                               
procd: - watchdog -                                                             
procd: - init -                                                                 
Please press Enter to activate this console.                                   
[    8.220000] Loading modules backported from Linux version master-2013-06-27-5
[    8.230000] Backport generated by backports.git backports-20130617-4-ge3220f5
[    8.240000] cfg80211: Calling CRDA to update world regulatory domain         
[    8.260000] cfg80211: World regulatory domain updated:                       
[    8.270000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_ga)
[    8.280000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2)
[    8.290000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2)
[    8.290000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2)
[    8.300000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2)
[    8.310000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2)
[    8.330000] NET: Registered protocol family 10                               
[    8.390000] cfg80211: Calling CRDA for country: US                           
[    8.400000] cfg80211: Regulatory domain changed to country: US               
[    8.400000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_ga)
[    8.410000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2)
[    8.420000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1)
[    8.430000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2)
[    8.430000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2)
[    8.440000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2)
[    8.450000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3)
[    8.460000] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47     
[    8.480000] PPP generic driver version 2.4.2                                 
[    8.480000] ip_tables: (C) 2000-2006 Netfilter Core Team                     
[    8.500000] xt_time: kernel timezone is -0000                               
[    8.500000] NET: Registered protocol family 24                               
[    8.510000] nf_conntrack version 0.5.0 (1974 buckets, 7896 max)             
[    8.570000] ip6_tables: (C) 2000-2006 Netfilter Core Team                   
[   10.830000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready               
[   10.830000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready             
[   10.840000] device eth0.1 entered promiscuous mode                           
[   10.850000] device eth0 entered promiscuous mode                             
[   10.860000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready             
[   10.870000] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready             
[   11.500000] eth0: link up (100Mbps/Full duplex)                             
[   11.500000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready         
[   11.510000] br-lan: port 1(eth0.1) entered forwarding state                 
[   11.510000] br-lan: port 1(eth0.1) entered forwarding state                 
[   11.520000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready       
[   11.530000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready       
[   11.530000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready       
[   13.510000] br-lan: port 1(eth0.1) entered forwarding state                 
[   15.970000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready             
[   15.990000] device wlan0 entered promiscuous mode                           
[   16.010000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready             
[   16.020000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready         
[   16.030000] br-lan: port 2(wlan0) entered forwarding state                   
[   16.040000] br-lan: port 2(wlan0) entered forwarding state                   
[   18.040000] br-lan: port 2(wlan0) entered forwarding state

(Last edited by vubvub on 14 Aug 2013, 10:20)

I did some experimenting and now I am a little bit confused with ath10k ...

1. update wireless driver package

package/kernel/mac80211
from compat-wireless-2013-06-27.1.tar.bz2 to
to (project was renamed) backports-20130712.tar.bz2
DL - see: http://drvbp1.linux-foundation.org/~mcg … backports/

updated the package ( see wiki, involves program "quilt" )
removed 300-pending.work.patch (afaik these are other fixes upstream or not yet commited in older versions of backports or openwrt exclusive patches i dont think they are affecting ath10k)

2. created,flashed archer c7 firmware image

ath10k isn't loaded per default : entries in modules.d are missing
insmod ath10k_common - no problem
manual loading results in Kernel Oops

insmod ath10k_pci.ko 
[  900.210000] ath10k_pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[  900.220000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[  900.230000] ath10k: MSI-X didn't succeed (-1), trying MSI
[  900.230000] ath10k: MSI didn't succeed (-1), trying legacy INTR
[  900.260000] ath10k: legacy interrupt handling
[  900.320000] Data bus error, epc == 86a7a5b0, ra == 86a7a5b0
[  900.320000] Oops[#1]:
[  900.320000] CPU: 0 PID: 8127 Comm: insmod Not tainted 3.10.4 #1
[  900.320000] task: 8790dd50 ti: 86a2c000 task.ti: 86a2c000
[  900.320000] $ 0   : 00000000 80350000 deadc0de 1000fc03
[  900.320000] $ 4   : b2080000 8790dd50 1000fc00 ffff00fe
[  900.320000] $ 8   : 86a2dfe0 0000fc00 00000000 00000000
[  900.320000] $12   : 00000005 00000000 00000000 00420000
[  900.320000] $16   : 00000009 8788d400 869f9000 87821800
[  900.320000] $20   : 00000009 b2080008 b2080000 00000001
[  900.320000] $24   : 00000000 8006b784                  
[  900.320000] $28   : 86a2c000 86a2dba8 b2080004 86a7a5b0
[  900.320000] Hi    : 000000d1
[  900.320000] Lo    : 9ea86180
[  900.320000] epc   : 86a7a5b0 ath10k_do_pci_sleep+0xf88/0x1bb0 [ath10k_pci]
[  900.320000]     Not tainted
[  900.320000] ra    : 86a7a5b0 ath10k_do_pci_sleep+0xf88/0x1bb0 [ath10k_pci]
[  900.320000] Status: 1000fc03 KERNEL EXL IE 
[  900.320000] Cause : 4080801c
[  900.320000] PrId  : 00019750 (MIPS 74Kc)
[  900.320000] Modules linked in: ath10k_pci(+) ath10k_core ath9k_htc ledtrig_usbdev ledtrig_netdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp xt_REDIRECT ipt_MASQUERADE iptable_nat xt_nat nf_nat_ipv4 nf_nat pppoe xt_conntrack xt_CT iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppox xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic vfat fat slhc ath9k ath9k_common ath9k_hw ath5k ath mac80211 lib80211_crypt_tkip lib80211_crypt_ccmp lib80211_crypt_wep lib80211 crc_ccitt ipv6 cfg80211 compat arc4 crypto_blkcipher aead usb_storage leds_gpio ohci_hcd ledtrig_timer ledtrig_default_on ehci_platform ehci_hcd sd_mod gpio_button_hotplug ext4 jbd2 mbcache usbcore usb_common scsi_mod nls_base crc16 crypto_hash
[  900.320000] Process insmod (pid: 8127, threadinfo=86a2c000, task=8790dd50, tls=775b1440)
[  900.320000] Stack : 80301d90 8790dd50 8790dd50 80301d90 8790c430 80067e78 00000000 87821800
          00080000 00000000 80373900 86a2dc0c 80373900 0000ea80 00000009 b2080008
          b2080000 00000001 80373900 80066964 86a2dc0c 80081e80 8790dd50 86a63924
          00000001 00000000 00200200 0000ea80 80373900 80081e80 8790dd50 ffffffff
          8788d400 00000009 8788d400 86a2dc58 87821800 80082398 86a2dc5c 86a7d140
          ...
[  900.320000] Call Trace:
[  900.320000] [<86a7a5b0>] ath10k_do_pci_sleep+0xf88/0x1bb0 [ath10k_pci]
[  900.320000] 
[  900.320000] 
Code: 2410000a  0c0621d3  02c02021 <30420400> 10400006  00002021  24040001  0c0208de  2610ffff 
[  900.570000] ---[ end trace 1e4e2b7fd4ac9eb8 ]---
Segmentation fault

Any Ideas why it's happening ?

Shouldn't MSI be enabled because of :

jayrock wrote:
root@OpenWrt:~# lspci -v
        Capabilities: [50] MSI: Enable- Count=1/16 Maskable+ 64bit-
        Capabilities: [70] Express Endpoint, MSI 00

Another strange Log entry - is it related ?

[    0.080000] ar724x-pci ar724x-pci.0: PCIe link is down

Isn't this a PCIe card that other devs removed from their router and put to use with normal PCs ?

The wireless card in archer c7 is a V2 (168c:003c) and it should be fully supported with ath10k


Edit: ... some time later ...
I did have a look at a diff of ath10k git and the backports source of ath10k.
I searched for pci.c - because the "pci sleep" stuff was part of the Oops message.
I found:

+static void ath10k_pci_device_reset(struct ath10k *ar);
+static int ath10k_pci_reset_target(struct ath10k *ar);
+static int ath10k_pci_start_intr(struct ath10k *ar);
+static void ath10k_pci_stop_intr(struct ath10k *ar);

(and other stuff relating to intr(..) functions)

because the Module init has no MSI-X or MSI it gets to default to INTR before it crashes so those missing stuff might fix it ...
There could be a new backports release but the git tree of the maintainer:
https://git.kernel.org/cgit/linux/kerne … ports.git/
is currently at 3.10.4 when stable is at 3.10.7 since yesterday. So that road could take a little while longer

(Last edited by zloop on 16 Aug 2013, 19:04)

zloop wrote:

I did some experimenting and now I am a little bit confused with ath10k ...
Isn't this a PCIe card that other devs removed from their router and put to use with normal PCs ?

If this works,I want to put it to some actual use.Where is the driver of qca9880 for windows? :)

I wouldn't trust the PCI ID to identify the hardware version. My Archer C7 v1.0 definitely has a QCA9880 v1 despite a PCI ID of 168c:003c. I'm pretty sure that TP-Link has to make a new hardware revision of Archer C7 if/when they start to use QCA9880 v2, since it will also need a different router firmware due to a different chip firmware. I think I'll try to return or resell my unit...

Hello,

I just got this router (C7) and started experimenting with it. Since I have no use for the ac-wifi card, I wanted to replace this with a mini-PCIe CDMA modem using Qualcomm's MDM6600 chipset. On another machine I have, running Ubuntu 13.10, the only driver needed for the card to work is serial-option, as the modem exposes itself as a USB device and creates two ttyUSB-devices. USB modeswitch is also needed.

However, when I connect my modem, it is nowhere to be seen and in the log file (dmesg) I see the following messages and the modem does not appear:

[    0.080000] ar724x-pci ar724x-pci.0: PCIe link is down
[    0.080000] registering PCI controller with io_map_base unset
[    0.090000] ar724x-pci ar724x-pci.1: PCIe link is down
[    0.090000] registering PCI controller with io_map_base unset

The lspci-output is also empty.

If I leave the original WLAN-card in the router, everything works as intended. dmesg only contains one of the "PCIe link is down" messages and lspci displays information about the WLAN-card.

My question is, has anyone experienced similar behavior or has any tips on where to start looking/what to try? Is there something limiting me from connection other mini PCIe-cards to the router? I use the most recent trunk build (19th August).

Update: After doing some digging, this looks like a driver issue. I tried with some more mini-PCIe-devices and some work, while others do not. The common denominator between those that do not work is that they are exposed as USB devices. I have tried with the CDMA modem (identified as usb device 2692:9005 by my Ubuntu machine) and a Sierra Wireless LTE modem. When looking at lsmod on my Ubuntu-machine and comparing with the OpenWRT the output from the OpenWRT-router (with any of the PCI devices inserted), I can't see any obvious difference.

Thanks in advance for any help,
Kristian

(Last edited by kristrev on 19 Aug 2013, 14:46)

zloop wrote:

How can you detect a QCA9880 v1 board ?

I just noted differences on the chip itself :

QCA9880-AR1A NFH090.002C 1251 - Archer C7 my unit
QCA9880-AR1A NFH090.001C 1251 - Archer C7 ( http://forums.overclockers.co.uk/showth … p=24424655 )
QCA9880-AR1A NFH089.00C 1248 - TP-Link WDR 7500 ( http://wikidevi.com/wiki/TP-LINK_TL-WDR7500_v2.x )

official FCC internal photos of Archer C7 are confidential until January 2014

AR1A are v1 chips.
BR4A are v2 chips.

Looks like ath10k may not support Archer C7 until they update to v2 chips.

There are two other routers based on similar HW.
Sitecom WLR-8100 and ZyXEL NBG6716.

http://wikidevi.com/wiki/Sitecom_WLR-8100
http://wikidevi.com/wiki/ZyXEL_NBG6716

If someone could open their router, then we'd know if they are v2.
Then maybe there will be better luck getting OpenWRT to work on these HW.

I just opened up my new Archer C7 labeled with HW1.1 (TP-Link HW) and unfortunately it was an AR1A chip in there as well.

nicjo814 wrote:

I just opened up my new Archer C7 labeled with HW1.1 (TP-Link HW) and unfortunately it was an AR1A chip in there as well.

The number after the dot denotes a software revision; it's just a model with a newer firmware pre-loaded. What we want to see is 2.0.