Opened 18 months ago
Last modified 18 months ago
#23010 new defect
OpenMesh OM2P HSv3 ath9k: probe of ar934x_wmac failed with error -5
Reported by: | lockwobr@… | Owned by: | developers |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | kernel | Version: | Trunk |
Keywords: | Cc: |
Description
I am working getting a OpenMesh OM2P HSv3 image that is fully functional, I am working off of the trunk, but the kernel module can't initialize the wifi device. I build the image with ATH_DEBUG to try to get some extra info, and now I can see that is a timeout error.
[ 9.861069] ath: phy0: timeout (1000 us) on reg 0x30018: 0xbadc0ffe & 0x00000007 != 0x00000004
Any help to figure out if this is a bug on the trunk or what I need to do to get it work would be very welcome. Also tested the nightly snapshot and got the same failed with error -5 dmesg error.
dmesg:
[ 0.000000] Linux version 4.4.14 (pk@omegacentauri) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 49876) ) #4 Wed Aug 3 06:46:48 UTC 2016 [ 0.000000] MyLoader: sysp=ff3f0004, boardp=ffff0000, parts=ffff0000 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc) [ 0.000000] SoC: Atheros AR9341 rev 1 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] No valid device tree found, continuing without [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff] [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat 804003d0, node_mem_map 81000000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit board=OM2P-HSv3 root=31:04 mtdparts=spi0.0:256k(u-boot),256k(u-boot-env),1280k(custom),1536k(kernel),5632k(rootfs),7168k(inactive),256k(ART) mem=64M rootfstype=squashfs,jffs2 noinitrd [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 60228K/65536K available (2933K kernel code, 151K rwdata, 744K rodata, 260K init, 200K bss, 5308K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.000000] Clocks: CPU:535.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7144898866 ns [ 0.000010] sched_clock: 32 bits at 267MHz, resolution 3ns, wraps every 8027976190ns [ 0.008304] Calibrating delay loop... 266.64 BogoMIPS (lpj=1333248) [ 0.091156] pid_max: default: 32768 minimum: 301 [ 0.096212] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.103266] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.113844] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.125129] NET: Registered protocol family 16 [ 0.131570] MIPS: machine is OpenMesh OM2P HSv3 [ 0.138570] ar71xx: using random MAC address for eth0 [ 0.587470] clocksource: Switched to clocksource MIPS [ 0.594376] NET: Registered protocol family 2 [ 0.599950] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.607390] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.614223] TCP: Hash tables configured (established 1024 bind 1024) [ 0.621101] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.627335] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.634401] NET: Registered protocol family 1 [ 0.639144] PCI: CLS 0 bytes, default 32 [ 0.640264] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.664936] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.671224] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.684667] io scheduler noop registered [ 0.688921] io scheduler deadline registered (default) [ 0.694599] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.701923] console [ttyS0] disabled [ 0.725838] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A [ 0.735040] console [ttyS0] enabled [ 0.742464] bootconsole [early0] disabled [ 0.754391] m25p80 spi0.0: s25sl12800 (16384 Kbytes) [ 0.759552] 7 cmdlinepart partitions found on MTD device spi0.0 [ 0.765558] Creating 7 MTD partitions on "spi0.0": [ 0.770445] 0x000000000000-0x000000040000 : "u-boot" [ 0.778010] 0x000000040000-0x000000080000 : "u-boot-env" [ 0.785255] 0x000000080000-0x0000001c0000 : "custom" [ 0.792197] 0x0000001c0000-0x000000340000 : "kernel" [ 0.799119] 0x000000340000-0x0000008c0000 : "rootfs" [ 0.805969] mtd: device 4 (rootfs) set to be root filesystem [ 0.811862] 1 squashfs-split partitions found on MTD device rootfs [ 0.818162] 0x000000880000-0x0000008c0000 : "rootfs_data" [ 0.825520] 0x0000008c0000-0x000000fc0000 : "inactive" [ 0.832632] 0x000000fc0000-0x000001000000 : "ART" [ 0.855764] libphy: ag71xx_mdio: probed [ 1.449569] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd042, driver=Generic PHY] [ 1.459648] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII [ 2.049352] ag71xx-mdio.1: Found an AR934X built-in switch [ 2.091724] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII [ 2.100625] NET: Registered protocol family 10 [ 2.110064] NET: Registered protocol family 17 [ 2.114662] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 2.127659] 8021q: 802.1Q VLAN Support v1.8 [ 2.139551] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. [ 2.148499] Freeing unused kernel memory: 260K (8041f000 - 80460000) [ 3.197119] init: Console is alive [ 3.200923] init: - watchdog - [ 4.252575] init: - preinit - [ 4.663151] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 4.691888] random: procd urandom read with 7 bits of entropy available [ 7.569709] eth0: link up (100Mbps/Full duplex) [ 7.574349] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 7.983374] mount_root: jffs2 not ready yet, using temporary tmpfs overlay [ 8.018891] eth0: link down [ 8.034214] procd: - early - [ 8.037310] procd: - watchdog - [ 8.749214] procd: - ubus - [ 8.805460] procd: - init - [ 9.598658] tun: Universal TUN/TAP device driver, 1.6 [ 9.603795] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 9.615889] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 9.636046] Loading modules backported from Linux version wt-2016-05-12-0-g7a54796 [ 9.643803] Backport generated by backports.git backports-20160216-0-ge3c56e4 [ 9.654676] ip_tables: (C) 2000-2006 Netfilter Core Team [ 9.671504] nf_conntrack version 0.5.0 (945 buckets, 3780 max) [ 9.719317] xt_time: kernel timezone is -0000 [ 9.793367] PPP generic driver version 2.4.2 [ 9.800781] NET: Registered protocol family 24 [ 9.861069] ath: phy0: timeout (1000 us) on reg 0x30018: 0xbadc0ffe & 0x00000007 != 0x00000004 [ 9.862123] ath: phy0: timeout (1000 us) on reg 0x30018: 0xbadc0ffe & 0x00000007 != 0x00000004 [ 9.862140] ath: phy0: Unable to initialize hardware; initialization status: -5 [ 9.869590] ath9k ar934x_wmac: failed to initialize device [ 9.875201] ath9k: probe of ar934x_wmac failed with error -5 [ 18.038866] jffs2: Too few erase blocks (1) [ 22.891434] device eth0 entered promiscuous mode [ 22.908895] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 23.179444] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 24.909799] eth0: link up (100Mbps/Full duplex) [ 24.914471] br-lan: port 1(eth0) entered forwarding state [ 24.920049] br-lan: port 1(eth0) entered forwarding state [ 24.978811] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 26.917491] br-lan: port 1(eth0) entered forwarding state [ 52.597527] random: nonblocking pool is initialized [ 480.768144] br-lan: port 1(eth0) entered disabled state [ 480.837985] device eth0 left promiscuous mode [ 480.842515] br-lan: port 1(eth0) entered disabled state [ 480.856609] eth0: link down [ 480.865907] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 484.366560] device eth0 entered promiscuous mode [ 484.378900] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 484.462139] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 486.139827] eth0: link up (100Mbps/Full duplex) [ 486.144502] br-lan: port 1(eth0) entered forwarding state [ 486.150088] br-lan: port 1(eth0) entered forwarding state [ 486.166983] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 488.147482] br-lan: port 1(eth0) entered forwarding state
cpuinfo:
system type : Atheros AR9341 rev 1 machine : OpenMesh OM2P HSv3 processor : 0 cpu model : MIPS 74Kc V4.12 BogoMIPS : 266.64 wait instruction : yes microsecond timers : yes tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : mips16 dsp dsp2 shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available
lsmod:
ath 20069 3 ath9k,ath9k_common,ath9k_hw ath9k 100613 0 ath9k_common 21710 1 ath9k ath9k_hw 358177 2 ath9k,ath9k_common cfg80211 220032 4 ath9k,ath9k_common,ath,mac80211 compat 8400 4 ath9k,ath9k_common,mac80211,cfg80211 crc_ccitt 1035 1 ppp_async gpio_button_hotplug 6096 0 ip6_tables 9185 3 ip6table_raw,ip6table_mangle,ip6table_filter ip6t_REJECT 976 2 ip6table_filter 656 1 ip6table_mangle 1136 1 ip6table_raw 624 0 ip_tables 9325 4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter ipt_MASQUERADE 688 1 ipt_REJECT 944 2 iptable_filter 720 1 iptable_mangle 944 1 iptable_nat 784 1 iptable_raw 688 0 mac80211 395813 1 ath9k nf_conntrack 49449 9 nf_nat_ipv4,nf_conntrack_ipv6,nf_conntrack_ipv4,xt_state,xt_conntrack,xt_CT,nf_nat_masquerade_ipv4,nf_nat,nf_conntrack_rtcache nf_conntrack_ipv4 4816 11 nf_conntrack_ipv6 5168 6 nf_conntrack_rtcache 2448 0 nf_defrag_ipv4 918 1 nf_conntrack_ipv4 nf_defrag_ipv6 9335 1 nf_conntrack_ipv6 nf_log_common 2383 2 nf_log_ipv4,nf_log_ipv6 nf_log_ipv4 3216 0 nf_log_ipv6 3408 0 nf_nat 9179 4 nf_nat_ipv4,xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4 nf_nat_ipv4 3697 1 iptable_nat nf_nat_masquerade_ipv4 1436 1 ipt_MASQUERADE nf_nat_redirect 987 1 xt_REDIRECT nf_reject_ipv4 2179 1 ipt_REJECT nf_reject_ipv6 2312 1 ip6t_REJECT ppp_async 6320 0 ppp_generic 20226 3 pppoe,ppp_async,pppox pppoe 7920 0 pppox 1354 1 pppoe slhc 4411 1 ppp_generic tun 14927 0 x_tables 11527 26 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_id,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_CT,iptable_raw,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_raw,ip6table_mangle,ip6table_filter,ip6_tables xt_CT 2416 0 xt_LOG 784 0 xt_REDIRECT 688 0 xt_TCPMSS 2736 2 xt_comment 528 62 xt_conntrack 2192 16 xt_id 528129 xt_limit 1040 20 xt_mac 656 0 xt_mark 688 0 xt_multiport 1168 0 xt_nat 1168 0 xt_state 720 0 xt_tcpudp 1744 10 xt_time 1648 0
I think i found the issue none of the patches have been accepted into openwrt
https://patchwork.ozlabs.org/project/openwrt/list/?submitter=&state=&q=om2p-hsv3&archive=&delegate=