Modify

Opened 4 years ago

Closed 4 years ago

#16624 closed defect (fixed)

ath9k: Not loading driver for TP-Link WDR4300

Reported by: AdamK Owned by: developers
Priority: response-needed Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

When building with trunk revision 40863 images build fine however upon flashing no WiFi interfaces come up and these errors show in the syslog whenever I attempt to enable the interfaces:

Tue May 27 15:45:40 2014 kern.warn kernel: [ 14.800000] ath9k_hw: Unknown symbol ar9003_hw_rtt_restore (err 0)
Tue May 27 15:45:40 2014 kern.warn kernel: [ 14.800000] ath9k_hw: Unknown symbol ar9003_hw_rtt_load_hist (err 0)
Tue May 27 15:45:40 2014 kern.warn kernel: [ 14.810000] ath9k_hw: Unknown symbol ar9003_hw_rtt_fill_hist (err 0)
Tue May 27 15:45:40 2014 kern.warn kernel: [ 14.820000] ath9k_hw: Unknown symbol ar9003_hw_rtt_set_mask (err 0)
Tue May 27 15:45:40 2014 kern.warn kernel: [ 14.820000] ath9k_hw: Unknown symbol ar9003_hw_rtt_clear_hist (err 0)
Tue May 27 15:45:40 2014 kern.warn kernel: [ 14.830000] ath9k_hw: Unknown symbol ar9003_hw_rtt_disable (err 0)
Tue May 27 15:45:40 2014 kern.warn kernel: [ 14.840000] ath9k_hw: Unknown symbol ar9003_hw_rtt_enable (err 0)

In my .config I have the following related to ath9k:

CONFIG_PACKAGE_kmod-ath=y
# CONFIG_ATH_USER_REGD is not set
# CONFIG_PACKAGE_ATH_DEBUG is not set
# CONFIG_PACKAGE_ATH_DFS is not set
# CONFIG_PACKAGE_kmod-ath10k is not set
# CONFIG_PACKAGE_kmod-ath5k is not set
CONFIG_PACKAGE_kmod-ath9k=y
CONFIG_ATH9K_SUPPORT_PCOEM=y
CONFIG_PACKAGE_kmod-ath9k-common=y
# CONFIG_PACKAGE_kmod-ath9k-htc is not set
# CONFIG_PACKAGE_kmod-b43 is not set
# CONFIG_PACKAGE_kmod-b43legacy is not set
# CONFIG_PACKAGE_kmod-brcmfmac is not set
# CONFIG_PACKAGE_kmod-brcmsmac is not set
# CONFIG_PACKAGE_kmod-brcmutil is not set
# CONFIG_PACKAGE_kmod-carl9170 is not set
CONFIG_PACKAGE_kmod-cfg80211=y

When I compiled trunk revision 40859 without CONFIG_ATH9K_SUPPORT_PCOEM=y the router would reboot when trying to bring up the WiFi interfaces.

What am I missing here? Or is this a bug?

Attachments (0)

Change History (13)

comment:1 Changed 4 years ago by AdamK

Might add that it appears WiFi interfaces work fine with the same config for a Netgear WNDR4300. Pretty sure the chipsets used are identical the only major difference being NAND flash?

comment:2 Changed 4 years ago by AdamK

Further update:
Compiled source from trunk revision 40858 and wifi works fine. But 40859 and it causes grief.
I am highly suspicious of revisions 40859 & 40860!

comment:3 Changed 4 years ago by unwired

With r40862 wifi is working fine on a TL-WDR3600. WDR4300 and WDR3600 are the same hardware, they differ only in number of antennas

comment:4 Changed 4 years ago by AdamK

Will try a build with r40865 and see how I go.
It does seem odd that the Netgear WNDR4300 is fine but my TP-Link is not -- and they too use the same chipsets. Of course, the Netgear uses a NAND flash but AFAIK that's the only major difference, so I would have assumed that if it worked on one, it would work on the other as well.

comment:5 Changed 4 years ago by AdamK

Tried with r40865 but got the exact same result. I had done a full rm -rf on the SVN trunk on the server so I know this is not the culprit i.e. stale object files etc.

Again this does not appear to be a problem when I do a build for a Netgear WNDR4300 (NAND generic device) but it is for a TP-Link TL-WDR4300. Any trunk revision prior to r40859 does not have any issues. The same errors show up whether I enable the PC_OEM support or not which was made optional in r40859.

So if this is not an issue that others can replicate, can someone suggest what I may be doing wrong in order to be getting these errors??? Both 2.4GHz AND 5GHz interfaces fail to work.

Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.320000] ath9k_hw: Unknown symbol ar9003_hw_rtt_restore (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.330000] ath9k_hw: Unknown symbol ar9003_hw_rtt_load_hist (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.330000] ath9k_hw: Unknown symbol ar9003_hw_rtt_fill_hist (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.340000] ath9k_hw: Unknown symbol ar9003_hw_rtt_set_mask (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.350000] ath9k_hw: Unknown symbol ar9003_hw_rtt_clear_hist (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.350000] ath9k_hw: Unknown symbol ar9003_hw_rtt_disable (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.360000] ath9k_hw: Unknown symbol ar9003_hw_rtt_enable (err 0)
Wed May 28 16:39:45 2014 kern.info kernel: [ 17.440000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
Wed May 28 16:39:45 2014 kern.info kernel: [ 17.460000] usbcore: registered new interface driver option
Wed May 28 16:39:45 2014 kern.info kernel: [ 17.460000] usbserial: USB Serial support registered for GSM modem (1-port)
Wed May 28 16:39:45 2014 kern.info kernel: [ 17.480000] usbcore: registered new interface driver qcserial
Wed May 28 16:39:45 2014 kern.info kernel: [ 17.500000] usbserial: USB Serial support registered for Qualcomm USB modem
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.530000] ath9k_hw: Unknown symbol ar9003_hw_rtt_restore (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.530000] ath9k_hw: Unknown symbol ar9003_hw_rtt_load_hist (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.540000] ath9k_hw: Unknown symbol ar9003_hw_rtt_fill_hist (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.550000] ath9k_hw: Unknown symbol ar9003_hw_rtt_set_mask (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.550000] ath9k_hw: Unknown symbol ar9003_hw_rtt_clear_hist (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.560000] ath9k_hw: Unknown symbol ar9003_hw_rtt_disable (err 0)
Wed May 28 16:39:45 2014 kern.warn kernel: [ 17.570000] ath9k_hw: Unknown symbol ar9003_hw_rtt_enable (err 0)

comment:6 Changed 4 years ago by AdamK

Tried r40862 as it was suggested that WiFi may work. Sadly no in my case.
My WDR4300 is a v1.7 which again all trunk revisions up to and including r40858 work perfectly with it.
I will get a clean checkout of r40858 and do a diff on the files between that and r40860 which encompass the 2 changes I suspect have broken things for me. If I revert those changes in those 2 revisions into a current trunk revision and WiFi comes up, that will nail it.

comment:7 Changed 4 years ago by AdamK

Compiled trunk r40875 without the 2 patch files added and modified Makefile which were done in trunk r40859 & r40860

Tested on both a Netgear WNDR4300 (wifi interfaces came up successfully) and a TP-Link WDR4300 v1.7 (wifi interfaces also came up successfully)

This appears to be an issue with The TP-Link and the changes made in r40859 & r40860

Can a dev please investigate this with a view to resolving this or rolling back their change? Especially if others are seeing their TP-Link's not bringing up WiFi interfaces in current trunk.

comment:8 Changed 4 years ago by jow

  • Priority changed from normal to response-needed

Did you also start with a fresh .config? If you took over your old one, did you run make defconfig on it?
Whats the output of ./scriots/diffconfig.sh ?

comment:9 Changed 4 years ago by AdamK

Hi jow,
No I did not do a fresh config, as I don't see any problem with the Netgear WNDR4300 (NAND generic device)

Running a diffconfig.sh doesn't show up any real problems with the existing config either...

adamk@jupiter:~/trunk$ ./scripts/diffconfig.sh
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_Default=y
CONFIG_OPENSSL_WITH_EC=y
CONFIG_OPENVPN_openssl_ENABLE_DEF_AUTH=y
CONFIG_OPENVPN_openssl_ENABLE_FRAGMENT=y
CONFIG_OPENVPN_openssl_ENABLE_HTTP=y
CONFIG_OPENVPN_openssl_ENABLE_LZO=y
CONFIG_OPENVPN_openssl_ENABLE_MULTIHOME=y
CONFIG_OPENVPN_openssl_ENABLE_PF=y
CONFIG_OPENVPN_openssl_ENABLE_PORT_SHARE=y
CONFIG_OPENVPN_openssl_ENABLE_SERVER=y
CONFIG_OPENVPN_openssl_ENABLE_SMALL=y
CONFIG_OPENVPN_openssl_ENABLE_SOCKS=y
CONFIG_PACKAGE_6in4=y
CONFIG_PACKAGE_6rd=y
CONFIG_PACKAGE_SAMBA_MAX_DEBUG_LEVEL=-1
CONFIG_PACKAGE_aiccu=y
CONFIG_PACKAGE_arptables=y
CONFIG_PACKAGE_arpwatch=y
CONFIG_PACKAGE_block-mount=y
CONFIG_PACKAGE_chat=y
CONFIG_PACKAGE_comgt=y
CONFIG_PACKAGE_ddns-scripts=y
CONFIG_PACKAGE_dnsmasq-dhcpv6=y
CONFIG_PACKAGE_hd-idle=y
CONFIG_PACKAGE_hostapd-utils=y
CONFIG_PACKAGE_httping=y
CONFIG_PACKAGE_iftop=y
CONFIG_PACKAGE_ip=y
CONFIG_PACKAGE_ipset=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-filter=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_iptables-mod-iprange=y
CONFIG_PACKAGE_iputils-ping=y
CONFIG_PACKAGE_iputils-ping6=y
CONFIG_PACKAGE_iputils-tracepath=y
CONFIG_PACKAGE_iputils-tracepath6=y
CONFIG_PACKAGE_kmod-8021q=y
CONFIG_PACKAGE_kmod-arptables=y
CONFIG_PACKAGE_kmod-crypto-ecb=y
CONFIG_PACKAGE_kmod-crypto-hash=y
CONFIG_PACKAGE_kmod-crypto-manager=y
CONFIG_PACKAGE_kmod-crypto-pcompress=y
CONFIG_PACKAGE_kmod-crypto-sha1=y
CONFIG_PACKAGE_kmod-fs-ext4=y
CONFIG_PACKAGE_kmod-fs-msdos=y
CONFIG_PACKAGE_kmod-fs-nfs-common=y
CONFIG_PACKAGE_kmod-fs-ntfs=y
CONFIG_PACKAGE_kmod-fs-vfat=y
CONFIG_PACKAGE_kmod-gre=y
CONFIG_PACKAGE_kmod-ifb=y
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
CONFIG_PACKAGE_kmod-ipt-filter=y
CONFIG_PACKAGE_kmod-ipt-ipopt=y
CONFIG_PACKAGE_kmod-ipt-iprange=y
CONFIG_PACKAGE_kmod-ipt-ipset=y
CONFIG_PACKAGE_kmod-iptunnel=y
CONFIG_PACKAGE_kmod-iptunnel4=y
CONFIG_PACKAGE_kmod-l2tp=y
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-lib-textsearch=y
CONFIG_PACKAGE_kmod-mii=y
CONFIG_PACKAGE_kmod-mppe=y
CONFIG_PACKAGE_kmod-nfnetlink=y
CONFIG_PACKAGE_kmod-nls-cp437=y
CONFIG_PACKAGE_kmod-nls-iso8859-1=y
CONFIG_PACKAGE_kmod-pppol2tp=y
CONFIG_PACKAGE_kmod-pptp=y
CONFIG_PACKAGE_kmod-sched=y
CONFIG_PACKAGE_kmod-sched-connmark=y
CONFIG_PACKAGE_kmod-sched-core=y
CONFIG_PACKAGE_kmod-scsi-cdrom=y
CONFIG_PACKAGE_kmod-scsi-core=y
CONFIG_PACKAGE_kmod-sit=y
CONFIG_PACKAGE_kmod-tun=y
CONFIG_PACKAGE_kmod-usb-acm=y
CONFIG_PACKAGE_kmod-usb-net=y
CONFIG_PACKAGE_kmod-usb-net-hso=y
CONFIG_PACKAGE_kmod-usb-net-sierrawireless=y
CONFIG_PACKAGE_kmod-usb-printer=y
CONFIG_PACKAGE_kmod-usb-serial=y
CONFIG_PACKAGE_kmod-usb-serial-option=y
CONFIG_PACKAGE_kmod-usb-serial-qualcomm=y
CONFIG_PACKAGE_kmod-usb-serial-sierrawireless=y
CONFIG_PACKAGE_kmod-usb-serial-wwan=y
CONFIG_PACKAGE_kmod-usb-storage=y
CONFIG_PACKAGE_kmod-usb-storage-extras=y
CONFIG_PACKAGE_kmod-usb-wdm=y
CONFIG_PACKAGE_libdaemon=y
CONFIG_PACKAGE_libelf1=y
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblzo=y
CONFIG_PACKAGE_libmnl=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libnet1=y
CONFIG_PACKAGE_libnetsnmp=y
CONFIG_PACKAGE_libnfnetlink=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libpcap=y
CONFIG_PACKAGE_libpolarssl=y
CONFIG_PACKAGE_libpthread=y
CONFIG_PACKAGE_librt=y
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_libuci-lua=y
CONFIG_PACKAGE_libusb-1.0=y
CONFIG_PACKAGE_libustream-polarssl=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-commands=y
CONFIG_PACKAGE_luci-app-ddns=y
CONFIG_PACKAGE_luci-app-diag-core=y
CONFIG_PACKAGE_luci-app-diag-devinfo=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-hd-idle=y
CONFIG_PACKAGE_luci-app-multiwan=y
CONFIG_PACKAGE_luci-app-ntpc=y
CONFIG_PACKAGE_luci-app-p910nd=y
CONFIG_PACKAGE_luci-app-qos=y
CONFIG_PACKAGE_luci-app-radvd=y
CONFIG_PACKAGE_luci-app-samba=y
CONFIG_PACKAGE_luci-app-upnp=y
CONFIG_PACKAGE_luci-app-wshaper=y
CONFIG_PACKAGE_luci-i18n-english=y
CONFIG_PACKAGE_luci-lib-core=y
CONFIG_PACKAGE_luci-lib-ipkg=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-lib-sys=y
CONFIG_PACKAGE_luci-lib-web=y
CONFIG_PACKAGE_luci-mod-admin-core=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-proto-3g=y
CONFIG_PACKAGE_luci-proto-core=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-sgi-cgi=y
CONFIG_PACKAGE_luci-ssl=y
CONFIG_PACKAGE_luci-theme-base=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_mac-to-devinfo=y
CONFIG_PACKAGE_miniupnpd=y
CONFIG_PACKAGE_multiwan=y
CONFIG_PACKAGE_netdiscover=y
CONFIG_PACKAGE_netdiscover-to-devinfo=y
CONFIG_PACKAGE_ntpclient=y
CONFIG_PACKAGE_openssl-util=y
CONFIG_PACKAGE_openvpn-easy-rsa=y
CONFIG_PACKAGE_openvpn-openssl=y
CONFIG_PACKAGE_p910nd=y
CONFIG_PACKAGE_ppp-mod-pppol2tp=y
CONFIG_PACKAGE_ppp-mod-pptp=y
CONFIG_PACKAGE_ppp-mod-radius=y
CONFIG_PACKAGE_px5g=y
CONFIG_PACKAGE_qos-scripts=y
CONFIG_PACKAGE_radvd=y
CONFIG_PACKAGE_resolveip=y
CONFIG_PACKAGE_samba36-server=y
CONFIG_PACKAGE_screen=y
CONFIG_PACKAGE_smap=y
CONFIG_PACKAGE_smap-to-devinfo=y
CONFIG_PACKAGE_snmpd=y
CONFIG_PACKAGE_tc=y
CONFIG_PACKAGE_tcpdump=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_usb-modeswitch=y
CONFIG_PACKAGE_usbreset=y
CONFIG_PACKAGE_usbutils=y
CONFIG_PACKAGE_whereis=y
CONFIG_PACKAGE_wireless-tools=y
CONFIG_PACKAGE_wpad=y
# CONFIG_PACKAGE_wpad-mini is not set
CONFIG_PACKAGE_wshaper=y
CONFIG_PACKAGE_zlib=y
CONFIG_WPA_SUPPLICANT_INTERNAL=y

comment:10 Changed 4 years ago by anonymous

I think there is a typo in the patch.

ath9k-hw-$(CPTCFG_ATH9K_PCOEM) += ar9003_rtt.o

should be ath9k_

Please check.

comment:11 Changed 4 years ago by AdamK

Workaround until a dev can investigate:

  1. Check out trunk revision 40858
  2. cd to trunk/package/kernel/mac80211/
  3. cp Makefile Makefile.bak
  4. Check out latest trunk
  5. cd back to trunk/package/kernel/mac80211/ then cd patches
  6. rm 560-ath9k_pcoem_optional.patch & 561-ath9k_remove_gain_tables.patch
  7. cd .. then cp Makefile.bak Makefile
  8. Build OpenWRT as per your normal process

comment:12 Changed 4 years ago by AdamK

I'll test that typo theory during the weekend as well & report back. Thank you to whoever you are for posting that possible solution.

comment:13 Changed 4 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r41021

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.