LEDE Project

Welcome to the LEDE Project bug reporting and issue tracking system

Problems to be reported here are for the LEDE Project targets, sources, toolchain, core packages, build procedures, distribution and infrastructure. Guidelines for submitting a good bug report can be found at the LEDE Project website. Problems related to LuCI or OpenWrt/LEDE packages need to be reported in their repositories:

Notifications of all submissions and task changes are sent to lede-bugs@infradead.org.

OpenedIDCategoryTask TypePrioritySeverity  descSummaryReported InStatus
10.12.2016330KernelBug ReportMediumCriticalBt Home Hub 5 (xrx200): kernel panic at boot when LAN p...AllResearching Task Description

When a LAN port of the Bt Home Hub 5 is plugged to a gigabit network, upon booting, the Bt Home Hub 5 goes into a kernel panic boot loop. The kernel panic is either about unaligned access or unhandled paging request.

//Original report://

Bt Home Hub 5 is connected to the internet via ADSL and acquires a subnet.
The 4 ports Switch is on the fixed public IP Internet subnet, 1 port connected to WNDR3700v4 WAN port and the others to servers on fixed public IP subnet.
The red Ethernet is not connected.
Masquerading is not configured, used as proper router.
WiFi Disabled

WNDR3700v4 WAN port connected to BT Home Hub 5 Switch and assigned 1 IP in the public subnet
WNDR3700v4 4 port switch connected to local switch and other devices on local private lan.
Configured for Masquerading from LAN and WiFi to WAN.

Bt Home Hub 5 panics at boot only if:
1) the 4 port switch is connected to the WNDR3700v4 WAN port
2) WNDR3700v4 runs LEDE > r2393. I have no releases between r2393 and r2443, thus it begins to happen if I upgrade WNDR3700v4 to 2443.

It is really peculiar because a firmware upgrade on one router, WNDR3700v4, causes a panic on a Home Hub 5 type!

If I downgrade WNDR3700v4 to r2393, I can reboot the Home Hub as many times as I want and there is no panic.

Attached is the boot console log from Home Hub 5

[    3.877651] init: - preinit -
[    4.072951] Reserved instruction in kernel code[#1]:
[    4.076461] CPU: 0 PID: 391 Comm: ip Not tainted 4.4.36 #0
[    4.081940] task: 87d20f00 ti: 87f9c000 task.ti: 87f9c000
[    4.087330] $ 0   : 00000000 00000000 97ff97ff 00000000
[    4.092552] $ 4   : afffffdf 87c0f6c0 00000020 00000000
[    4.097774] $ 8   : 00000040 87e17962 00000000 00000000
[    4.102996] $12   : 10032094 7737d2b0 00000000 00400bd4
[    4.108219] $16   : 87c0f6c0 afffffdf 87c0f6c0 afffffdf
[    4.113441] $20   : 00000000 c0000000 00000020 87d14800
[    4.118664] $24   : 00000000 800285d0                  
[    4.123886] $28   : 87f9c000 87f9db68 8066c878 802e76bc
[    4.129109] Hi    : 000001cb
[    4.131981] Lo    : 00001e75
[    4.134861] epc   : 97ff97ff 0x97ff97ff
[    4.138708] ra    : 802e76bc eth_type_trans+0x30/0x210
[    4.143819] Status: 1100fc03	KERNEL EXL IE 
[    4.147999] Cause : 10800028 (ExcCode 0a)
[    4.152002] PrId  : 00019556 (MIPS 34Kc)
[    4.155916] Modules linked in: usb_storage dwc2 ledtrig_transient ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug xfs libcrc32c ext4 jbd2 mbcache exportfs cryptomgr aead crypto_null crc32c_generic
[    4.174377] Process ip (pid: 391, threadinfo=87f9c000, task=87d20f00, tls=7737ee50)
[    4.182028] Stack : 87f9c000 87f9db90 8066c878 802c8904 8066cca8 71000040 87c0f6c0 8066cca8
	  00000040 80277ad8 87f380a7 00000b0e 00000000 00000000 8000003f 8049d0ac
	  8066cca8 00000020 00000008 0000012c 804e8960 87f9dbf0 fffedee6 804e0000
	  804f0000 802c8904 00001000 00000003 00000001 8048944c 804f0000 804b350c
	  804e0000 804b3898 87f9dbf0 87f9dbf0 87f9dbf8 87f9dbf8 80643f24 00000004
	  ...
[    4.217542] Call Trace:
[    4.220013] [<802c8904>] net_rx_action+0x118/0x2e0
[    4.224781] [<80277ad8>] xrx200_poll_rx+0x134/0x1d8
[    4.229653] [<802c8904>] net_rx_action+0x118/0x2e0
[    4.234456] [<80030c6c>] __do_softirq+0x2a0/0x2b8
[    4.239135] [<8005cd40>] handle_level_irq+0x100/0x170
[    4.244185] [<802786e8>] xrx200_open+0x128/0x1e8
[    4.248808] [<8000d15c>] ltq_hw_irqdispatch+0xa8/0xe4
[    4.253854] [<80144cb4>] do_readpage+0x438/0x6a0
[    4.258458] [<80002430>] ret_from_irq+0x0/0x4
[    4.262815] [<802786e8>] xrx200_open+0x128/0x1e8
[    4.267427] [<802786e8>] xrx200_open+0x128/0x1e8
[    4.272039] [<80278704>] xrx200_open+0x144/0x1e8
[    4.276649] [<80278614>] xrx200_open+0x54/0x1e8
[    4.281189] [<802cbd20>] __dev_open+0xf0/0x1ac
[    4.285633] [<80087b08>] filemap_map_pages+0x250/0x2f4
[    4.290755] [<802cc08c>] __dev_change_flags+0xc0/0x17c
[    4.295901] [<800aea7c>] do_set_pte+0x180/0x1d4
[    4.300416] [<802cc170>] dev_change_flags+0x28/0x70
[    4.305286] [<802e26b8>] dev_load+0x18/0x8c
[    4.309475] [<8033bf28>] devinet_ioctl+0x2b4/0x8a8
[    4.314273] [<802acd1c>] sock_ioctl+0x294/0x2f0
[    4.318788] [<800d980c>] do_vfs_ioctl+0x584/0x5ec
[    4.323480] [<800dc664>] d_instantiate+0x24/0x38
[    4.328093] [<802ab698>] sock_alloc_file+0xb8/0x118
[    4.332970] [<800e3a7c>] __alloc_fd+0xb0/0x208
[    4.337411] [<800d98c4>] SyS_ioctl+0x50/0x94
[    4.341676] [<8000455c>] syscall_common+0x30/0x54
[    4.346373] [<80006960>] __bzero+0xc4/0x164
[    4.350543] 
[    4.352017] 
Code: ffff  ffff  ffff <ffff> ffff  ffff  ffff  ffff  ffff 
[    4.358872] ---[ end trace 248345993f4ae135 ]---
[    4.365919] Kernel panic - not syncing: Fatal exception in interrupt
[    4.372104] Rebooting in 1 seconds..


10.02.2017494Base systemBug ReportVery LowCriticalNETDEV WATCHDOG: ptm0 (): transmit queue 0 timed outAllNew Task Description

I have a VDSL line with Plusnet (UK) - the connection is pppoe - ptm0.101. With the supplied modem/router the line and connection is stable with no disconnects. With LEDE the connection is established and works well until it disconnects (sometimes as early as few minutes other times it stays connected up to an hour). After the disconnect there is no reconnection until a reboot. Restarting wan interface (ifdown wan/ifup wan) or dsl connection (/etc/init.d/dslcontrol stop/start) does not help.

Supply the following if possible:
- Device problem occurs on TP-w8970 and BTHomehub 5A (same crash on both lantiq based devices)
- Software versions of LEDE release, packages, etc. Tested on LEDE RC2, earlier LEDE snapshot from October 2016, Openwrt CC - same symptoms
- Steps to reproduce - VDSL connection on ptm0.101 via pppoe

Here is a trace of the crash (dmesg):

[ 1414.124413] —[ beginning trace ff034b465cdad16b ]— [ 1414.125631] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x1a8/0x2f0()
[ 1414.126471] NETDEV WATCHDOG: ptm0 (): transmit queue 0 timed out
[ 1414.132456] Modules linked in: ltq_ptm_vr9 option iptable_nat ath9k usb_wwan rt2800usb rt2800lib
pppoe nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 l2tp_ppp ipt_REJECT ipt_MASQUERADE ath9k_common
xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_policy xt_nat xt_multiport xt_mark xt_mac
xt_limit xt_length xt_id xt_hl xt_helper xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit
xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial rt2x00usb
rt2x00lib pppox ppp_async nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6
nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack ltq_deu_vr9 iptable_raw iptable_mangle iptable_filter ipt_ah ipt_ECN
ip_tables crc_itu_t crc_ccitt cdc_acm ath9k_hw ath10k_pci ath10k_core ath mac80211 cfg80211 compat drv_dsl_cpe_api
drv_mei_cpe xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net
ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark
ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6
nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc
l2tp_ip6 l2tp_ip l2tp_eth sit l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ipcomp xfrm4_tunnel xfrm4_mode_tunnel
xfrm4_mode_transport xfrm4_mode_beet esp4 ah4 tunnel4 ip_tunnel tun af_key xfrm_user xfrm_ipcomp xfrm_algo br2684 atm
drv_ifxos echainiv sha256_generic sha1_generic jitterentropy_rng drbg md5 hmac des_generic cbc authenc usb_storage
dwc2 uhci_hcd ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache aead crypto_null
[ 1414.287462] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.7 #1
[ 1414.293130] Stack : 804b0000 00000001 00000000 00000000 805172b8 80516f43 80489a24 00000000
[ 1414.293130] 80673844 00010000 80510000 805159bc 80515abc 80055664 00000003 80510000
[ 1414.293130] 80491b4c 00000000 8048ff50 80511c44 80515abc 800535b0 00000006 00000001
[ 1414.293130] 00000000 80512000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1414.293130] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1414.293130] ...
[ 1414.328618] Call Trace:
[ 1414.331095] [<800178a8>] show_stack+0×50/0×84 [ 1414.335454] [<8002af48>] warn_slowpath_common+0xa0/0xd0
[ 1414.340670] [<8002afa4>] warn_slowpath_fmt+0x2c/0×38 [ 1414.345636] [<802e637c>] dev_watchdog+0x1a8/0x2f0
[ 1414.350348] [<8005f7b0>] call_timer_fn.isra.5+0×24/0×80 [ 1414.355557] [<8005fa2c>] run_timer_softirq+0x1a4/0×208 [ 1414.360694] [<8002de80>] __do_softirq+0×298/0x2b0
[ 1414.365388] [<80002430>] ret_from_irq+0×0/0×4 [ 1414.369760] [<80013a8c>] r4k_wait_irqoff+0×18/0×20 [ 1414.374528] [<8004ff6c>] cpu_startup_entry+0xa4/0xf8
[ 1414.379508] [<80539bf8>] start_kernel+0×474/0×494 [ 1414.384180]
[ 1414.385631] —[ end trace ff034b465cdad16b ]—

 


29.03.2017665Base systemBug ReportVery LowCriticalLede 17.01.0-r3205-59508e3 on Nucom 5010UN v2 acting as...lede-17.01Unconfirmed Task Description

Supply the following if possible:
- Device problem occurs on: Nucom 5010UN v2 (brcm63xx)
- Software versions of LEDE release, packages, etc.: Just download and install latest Lede build (lede-17.01.0-r3205-59508e3) for Nucom 5010UN v2 from https://downloads.lede-project.org/releases/17.01.0/targets/brcm63xx/generic/lede-17.01.0-r3205-59508e3-brcm63xx-generic-R5010UNv2-squashfs-cfe.bin - Steps to reproduce: Configure Nucom 5010UN v2 as Wireless Routed Client
- Bug: After one hour or two, the Wireless Routed Clients looses connection with the Router it is connected to. It means, connecting by ssh or Luci website on Wireless Routed Client and running “ping 192.168.1.1” where 192.168.1.1 is the router it is connected to returns 100% of packets loss, also, “ping google.com” doesn’t work. But logging into Luci website and navigating to Network → WiFi, in Wireless Overview it shows as the Wireless Client Routed router is connected to the main one but there’s no working connection between them, at least pings are not working on both sides. Restarting the router seems to fix the issue but after one or two hours of uptime, the issue arises again.

Note, the bug was first introduced on OpenWrt Chaos Calmer 15.05 as OpenWrt Barrier Breaker does not suffer from this bug.

The following is as more complete explanation:

Hi,

i’ve just installed latest Lede-Project build, version 17.01.0-r3205-59508e3, on a Nucom 5010UN V2 router and everything seemed to work fine until i noticed that it keeps loosing Internet/network connection. The router is configured as Wireless Routed Client and the firmware was downloaded from https://downloads.lede-project.org/releases/17.01.0/targets/brcm63xx/generic/lede-17.01.0-r3205-59508e3-brcm63xx-generic-R5010UNv2-squashfs-cfe.bin

Also note, i think it’s a common bug inherited from OpenWrt as i suffered the same exact bug on an ADB P.DG A4001N1 router running latest build of OpenWrt, Chaos Calmer 15.05 and also 15.05.1. Also note that after posting on OpenWrt forums more users complained about the same bug.

Also, i want to state that in OpenWrt, the issue can be workarounded by downgrading to Barrier Breaker 14.07 which means the bug was introduced on the next build or next commits.

Anyway, my current setup is on Nucom 5010UN v2 is Wireless Routed Client [https://wiki.openwrt.org/doc/howto/clientmode#routed] + Static Route [https://wiki.openwrt.org/doc/recipes/routedclient#usingrouting] so clients on Nucom (Client Router) can “see” hosts on ADSL router (acting as AP).

I performed a clean install by resetting my custom configuration and the update went fine, but after reconfiguring the router as Wireless Routed Client it always happens that after being operating as Wifi Routed Client for about 2 hours suddenly it loses Internet connection/connection to AP. I say Internet connection because running a ping to google.com from ssh within inside the router doesn’t work but if i check through LUCI Network→Wifi it shows the router Wifi is still connected to the main ADSL router.

Here’s [https://forum.openwrt.org/viewtopic.php?pid=355180#p355180] a post on OpwnWrt site where i exposed the same issue for an ADB P.DG A4001N1 router and some other users replied complaining about the same issue.

These are the files modified by me through LUCI when configuring the routed as Wireless Routed Client, as i’ve been entirely configuring the router through LUCI except for the Static Route [https://wiki.openwrt.org/doc/recipes/routedclient#usingrouting] where i followed the indications on the link:
ddns
dhcp
dropbear
firewall
fstab
luci
network
rpcd
system
ucitrack
uh_t_tpd (I had to add underscores because of the buggy URL detection of the forum)
wireless

This is dhcp and dnmasq config:
cat etc config dhcp
config dnsmasq

      option domainneeded '1'
      option boguspriv '1'
      option localise_queries '1'
      option rebind_protection '1'
      option rebind_localhost '1'
      option local '/lan/'
      option domain 'lan'
      option expandhosts '1'
      option readethers '1'
      option leasefile '/tmp/dhcp.leases'
      option resolvfile '/tmp/resolv.conf.auto'
      option localservice '1'

config dhcp ‘lan’

      option interface 'lan'
      option dhcpv6 'server'
      option ra 'server'
      option ra_management '1'
      option start '100'
      option limit '150'
      option leasetime '12h'

config dhcp ‘wan’

      option interface 'wan'
      option ignore '1'

config odhcpd ‘odhcpd’

      option maindhcp '0'
      option leasefile '/tmp/hosts/odhcpd'
      option leasetrigger '/usr/sbin/odhcpd-update'

config host

      option name 'Host1'
      option mac 'XX:XX:XX:XX:XX:XY'
      option ip '192.168.2.2'

config host

      option name 'Host2'
      option mac 'XX:XX:XX:XX:XX:XZ'
      option ip '192.168.2.3'

config host

      option name 'ClientRouter'
      option mac 'XX:XX:XX:XX:XX:XX'
      option ip '192.168.2.92'

This is network:
cat etc config network
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 'fd05:6cbe:d307::/48'

config interface ‘lan’

      option force_link '1'
      option type 'bridge'
      option proto 'static'
      option netmask '255.255.255.0'
      option ip6assign '60'
      option _orig_ifname 'eth0.1'
      option _orig_bridge 'true'
      option ipaddr '192.168.2.1'
      option dns '8.8.8.8'
      option ifname 'eth0.1'

config switch

      option name 'eth0'
      option reset '1'
      option enable_vlan '1'

config switch_vlan

      option device 'eth0'
      option vlan '1'
      option ports '0 1 2 3 8t'

config interface ‘wwan’

      option proto 'dhcp'

This is wireless:
cat etc config wireless
config wifi-device ‘radio0’

      option type 'mac80211'
      option hwmode '11g'
      option path 'pci0000:00/0000:00:00.0/0000:01:00.0/bcma0:1'
      option disabled '0'
      option channel '13'
      option txpower '20'
      option country 'ES'

config wifi-device ‘radio1’

      option type 'mac80211'
      option path 'platform/ehci-platform/usb1/1-1/1-1:1.0'
      option txpower '20'
      option country 'ES'
      option hwmode '11a'
      option channel 'auto'

config wifi-iface

      option ssid 'MainADSLSSID'
      option device 'radio0'
      option mode 'sta'
      option bssid 'XX:XX:XX:XX:XX:YY'
      option key 'WiFiPassword'
      option encryption 'psk-mixed'
      option network 'wwan lan'
 


10.04.2017698Base systemBug ReportVery LowCriticalNexx WT3020F wifi packet loss problemlede-17.01Unconfirmed Task Description

I have two this devices. I try to figure out which is the ideal firmware for it so I tested it with a few. I tested it with OpenWRT 15.05.1, LEDE 17.01.0 and Gargoyle 1.9.1/1.9.2. But I found a common issue. The device lose packets via wifi. Tested with several clients/devices. No matter what configuration I use. No problem on LAN but on wifi it lose a bunch of packets. Maybe it’s a driver issue? Would be good to figure out.

i.imgur.comqpycapq.jpg

I also noticed that the latency is unstable on wifi. I guess it’s also a related with this issue. Should I open another ticket for it?

11.05.2017775Base systemBug ReportVery LowCriticalflashing kirkwood u-boot page not aligned [Zyxel NSA-32...TrunkUnconfirmed Task Description

[code]/e-data/4089-AD8E/tools # flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 – 100 % complete[/code]

now when I flash the LEDE uboot I get this

[code]/e-data/4089-AD8E # nandwrite /dev/mtd0 kirkwood/generic/u-boot-nsa325/u-boot.kwb
Input file is not page aligned Data did not fit into device, due to bad blocks
: Success[/code]

the expected should be
[code]/ # nandwrite /dev/mtd0 /e-data/4089-AD8E/uboot.2016.05-tld-1.nsa325.mtd0.kwb
Writing data to block 0 at offset 0×0 Writing data to block 1 at offset 0×20000 Writing data to block 2 at offset 0×40000 Writing data to block 3 at offset 0×60000[/code]

now I can’t even turn off my device. Hopeful to be resolve asap.

23.05.2017800KernelBug ReportVery LowCriticalath9k sta and ap mode change. system hangTrunkUnconfirmed Task Description

mips device with ar9580 wireless card sta and ap mode change by use test.sh
test.sh
while [ 1 ]
do
mv /etc/config/wireless /etc/config/wirelessbak
mv /etc/config/wireless1 /etc/config/wireless
mv /etc/config/wirelessbak /etc/config/wireless1
/etc/init.d/network restart
sleep 50
done

I found the system will hang , It like a deadlock but I can’t verify

Use the same shell I change the ath9k code

just delete the full sleep timer

modify ath9k_ps_wakeup ath9k_ps_restore
delete mod_timer(&sc→sc_pm_lock,flags);
detete del_timer_sync(&sc→sc_pm_lock);
The system run ok

 


24.05.2017801Base systemBug ReportVery LowCriticalR7800 wifi crashingTrunkUnconfirmed Task Description

- Device problem occurs on: Netgear Nighthawk X4S R7800
- Software versions of LEDE release, packages, etc.: LEDE Reboot SNAPSHOT r4173-5d48dc1146 / LuCI Master (git-17.141.68918-5ca3864)
- Steps to reproduce
Boot device, wait for it to crash within 24hours

The paste ending in Hn was recorder after wifi stopped working and i turned wifi off and on.
The paste ending in Wu happend about 30 minutes after that and could only be resolved by rebooting the device.

 


02.06.2017823KernelBug ReportVery LowCriticalUSB WIFI dongle TP-LINK TP-WN726N 1.0(rt8188eus) cannot...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on Raspberry Pi 3 Model B Rev 1.2, TP-LINK TP-WN726N 1.0(rt8188eus) USB WIFI dongle
- Software versions of LEDE release, r4297-1893b56 / LuCI Master (git-17.152.36261-b6dd992)
- Steps to reproduce:

 1. Compile rom with rt8xxxu driver and firmware.
 2. Insert TP-LINK TP-WN726N 1.0(rt8188eus) USB WIFI dongle
 3. Boot the system, log is attached.
 4. Type command "cat /ect/config/wireless" in console, TP-WN726N info is listed.
 5. Type command "ifconfig" in console, observe that TP-WN726N is not listed.
 6. Go to Luci web management tool, observe that TP-WN726N is listed, without signal strength. 

- More info:

 TP-LINK TP-WN726N 1.0(rt8188eus) USB WIFI dongle is tested on PC with Ubuntu 16.04, works fine.
27.06.2017872Base systemBug ReportVery LowCriticalRelease image will brick Archer C7 v1.1 lede-17.01Unconfirmed Task Description

- Device problem occurs on: TP-Link Archer C7 v1.1
- Software versions of LEDE release, packages, etc: https://downloads.lede-project.org/releases/17.01.2/targets/ar71xx/generic/lede-17.01.2-ar71xx-generic-archer-c7-v1-squashfs-factory.bin - Steps to reproduce: trying to re-flash router with lede-17.01.2-ar71xx-generic-archer-c7-v1-squashfs-factory.bin image will result in bricked router stuck in reboot loop. I tried flashing from both factory image (from factory firmware) and sysupgrade image (from OpenWRT using both SSH and web interface). Both images result in bricked router.

Unbricking was done by forcing router into failsafe mode, SSH:in into it and uploading/flashing old firmware via NC from a PC.

I suggest pulling this image from a list of supported images for Archer C7 v1.1, until issues have been solved. Otherwise, it might result in bricked equipment.

05.10.2016205Base systemBug ReportVery LowHighCannot install LEDE on Ubiquiti PicoStation M2TrunkNew Task Description

This is the same as issue 20982 on dev.openwrt.org

Using the nightly build of LEDE and installing on a Ubiquiti PicoStation M2 (Ar7xxx, XM hardware rev, AirOS 5.6.3), got the following error:

sent DATA <block=6657, 412 bytes>
received ERROR <code=2, msg=Firmware check failed>
Error code 2: Firmware check failed
Sent 3407872 bytes in 6.6 seconds

The only work-around I have found works consistently is to:

Flash from recovery (tftp) the AirOS 5.6 image,
Downgrade to AirOS 5.5, then
Flash LEDE (or OpenWRT).

This same error seems to occur on the Bullet M2 (same hardware) and the NanoStation LOCO M2.

The severity is high - it can be worked around, but it prevents installation without significant work-arounds. I view this as a high-priority bug, because the Ubiquiti hardware is popular and the problem has been fixed in AirOS and DD-WRT.

14.10.2016227Base systemBug ReportMediumHighVLAN support mismatch between preinit and default netwo...TrunkResearching Task Description

PPPoE is broken on WRT1900ACS

Upgraded from Lede r578 to latest Lede r1814 and PPPOE doesn’t work anymore altough the pppd version and PPPoE version are the same:
- Linksys WRT1900ACS
- LEDE reboot r1814

pppd debug log:

Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Timeout waiting for PADO packets
Unable to complete PPPoE Discovery
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]

While on the same hardware running LEDE r578, the PPPoE module works as expected:

Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Send PPPOE Discovery V1T1 PADI session 0×0 length 4
dst ff:ff:ff:ff:ff:ff src c2:56:27:ca:d7:d4
[service-name]
Recv PPPOE Discovery V1T1 PADO session 0×0 length 40
dst c2:56:27:ca:d7:d4 src a0:f3:e4:34:d8:21
[service-name] [AC-name acc-aln1.hac] [AC-cookie 75 58 37 a5 ba 3c e4 a5 2a 61 bb 23 92 5c 1b dc]
Send PPPOE Discovery V1T1 PADR session 0×0 length 24
dst a0:f3:e4:34:d8:21 src c2:56:27:ca:d7:d4
[service-name] [AC-cookie 75 58 37 a5 ba 3c e4 a5 2a 61 bb 23 92 5c 1b dc]
Recv PPPOE Discovery V1T1 PADS session 0x30b length 4
dst c2:56:27:ca:d7:d4 src a0:f3:e4:34:d8:21
[service-name]
PADS: Service-Name: ‘’ PPP session is 779
Connected to a0:f3:e4:34:d8:21 via interface eth0
using channel 2
Using interface pppoe-wan
Connect: pppoe-wan ←→ eth0
sent [LCP ConfReq id=0×1 <mru 1492> <magic 0xc6952556>]
rcvd [LCP ConfReq id=0×66 <mru 1492> <auth chap MD5> <magic 0x4cc73648>]
sent [LCP ConfAck id=0×66 <mru 1492> <auth chap MD5> <magic 0x4cc73648>]
rcvd [LCP ConfAck id=0×1 <mru 1492> <magic 0xc6952556>]
sent [LCP EchoReq id=0×0 magic=0xc6952556]
rcvd [CHAP Challenge id=0×1 <7131a44524d1de8f1cd1061cac6d8c071d8bfe7351bc4ea7bd08f56684428475f229ba177a192696ebab32>, name = “acc-aln1.hac”]
sent [CHAP Response id=0×1 <4bb1a418b298790b128ad4d7ef3109ad>, name = “bthomehub@btbroadband.com”]
rcvd [LCP EchoRep id=0×0 magic=0x4cc73648]
rcvd [CHAP Success id=0×1 “CHAP authentication success”]
CHAP authentication succeeded: CHAP authentication success
CHAP authentication succeeded
peer from calling number A0:F3:E4:34:D8:21 authorized
sent [IPCP ConfReq id=0×1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPV6CP ConfReq id=0×1 <addr fe80::c595:37d1:3987:1929>]
rcvd [IPV6CP ConfReq id=0x7b <addr fe80::0221:05ff:feb4:8824>]
sent [IPV6CP ConfAck id=0x7b <addr fe80::0221:05ff:feb4:8824>]
rcvd [IPCP ConfReq id=0×38 <addr 172.16.12.12>]
sent [IPCP ConfAck id=0×38 <addr 172.16.12.12>]
rcvd [IPCP ConfNak id=0×1 <addr 81.146.2.155> <ms-dns1 81.139.57.100> <ms-dns2 81.139.56.100>]
sent [IPCP ConfReq id=0×2 <addr 81.146.2.155> <ms-dns1 81.139.57.100> <ms-dns2 81.139.56.100>]
rcvd [IPV6CP ConfAck id=0×1 <addr fe80::c595:37d1:3987:1929>]
local LL address fe80::c595:37d1:3987:1929
remote LL address fe80::0221:05ff:feb4:8824
Script /lib/netifd/ppp-up started (pid 2646)
rcvd [IPCP ConfAck id=0×2 <addr 81.146.2.155> <ms-dns1 81.139.57.100> <ms-dns2 81.139.56.100>]
local IP address 81.146.2.155
remote IP address 172.16.12.12
primary DNS address 81.139.57.100
secondary DNS address 81.139.56.100
ppp.log
secondary DNS address 81.139.56.100
Script /lib/netifd/ppp-up started (pid 2653)
Script /lib/netifd/ppp-up finished (pid 2646), status = 0×9 Script /lib/netifd/ppp-up finished (pid 2653), status = 0×9

27.10.2016253Base systemBug ReportVery LowHighMulticast over wireless ceases to work properly after a...AllNew Task Description

I am having a problem on a UBNT UAP-LR where, if many clients stay connected the router for a long time, multicast packets will stop being reliably sent to the wireless clients. I can reproduce this with LEDE r1953, but it goes back at least as far as OpenWRT 15.05.1 with kernel 3.18. I can not, however, reproduce it on another network with the same WAP but with only one or two wireless clients.

This originally manifested as IPv6 ceasing to work since the (multicasted) RA packets were not reaching the wireless clients. I used tcpdump on the WAP and determined that the RAs were arriving through the wired interface and leaving through the wireless interface as they should, but tcpdump on the client indicates that a vast majority of the RAs are never received. (Please note that the IPv6 issue is not reproducible with the router running OpenWRT/LEDE and odhcpd, since odhcpd unicasts RAs sent as a response to an RS instead of multicasting them, while it is reproducible when the router is running radvd, for example as pfSense does.)

21.11.2016295KernelBug ReportVery LowHighath10k_pci 0001:01:00.0: SWBA overrun on vdevTrunkWaiting on reporter Task Description

Supply the following if possible:

- TP-LINK c2600 v1.1
- LEDE Reboot r2244
- after some hours, the network device produce the below stacktrace.

[61789.980553] ————[ cut here ]———— [61789.980600] WARNING: CPU: 0 PID: 3 at net/core/dev.c:4837 net_rx_action+0×154/0x2e4()
[61789.984240] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY ts_kmp ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt br_netfilter em_cmp sch_teql em_nbyte sch_htb sch_pie sch_gred sch_dsmark cls_basic act_ipt sch_prio em_text
[61790.061568] sch_codel sch_tbf sch_sfq em_meta act_police sch_fq sch_red act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ifb ip6_tunnel tunnel6 tun snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore
[61790.130320] usb_storage uhci_hcd f2fs ext4 jbd2 mbcache crc32c_generic crypto_hash leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom dwc3_of_simple ohci_platform ohci_hcd phy_qcom_dwc3 ahci ehci_platform ehci_hcd sd_mod ahci_platform libahci_platform libahci libata scsi_mod gpio_button_hotplug usbcore nls_base usb_common
[61790.158798] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.4.30 #0
[61790.159062] Hardware name: Qualcomm (Flattened Device Tree)
[61790.165160] [<c02207f4>] (unwind_backtrace) from [<c021d2e4>] (show_stack+0×14/0×20)
[61790.170534] [<c021d2e4>] (show_stack) from [<c03b82a4>] (dump_stack+0x8c/0xa0)
[61790.178521] [<c03b82a4>] (dump_stack) from [<c0228aec>] (warn_slowpath_common+0xa4/0xd0)
[61790.185550] [<c0228aec>] (warn_slowpath_common) from [<c0228bcc>] (warn_slowpath_null+0x1c/0×24)
[61790.193798] [<c0228bcc>] (warn_slowpath_null) from [<c050bcd0>] (net_rx_action+0×154/0x2e4)
[61790.202568] [<c050bcd0>] (net_rx_action) from [<c022bc90>] (do_softirq+0xdc/0×230)
[61790.210636] [<c022bc90>] (
do_softirq) from [<c022be18>] (run_ksoftirqd+0×34/0×64)
[61790.218626] [<c022be18>] (run_ksoftirqd) from [<c0246784>] (smpboot_thread_fn+0×190/0x1b8)
[61790.226006] [<c0246784>] (smpboot_thread_fn) from [<c02438e4>] (kthread+0xf8/0×100)
[61790.234335] [<c02438e4>] (kthread) from [<c0209cb8>] (ret_from_fork+0×14/0x3c)
[61790.241951] —[ end trace bbf62e8dea16c714 ]— [61790.250226] ath10k_pci 0001:01:00.0: SWBA overrun on vdev 1, skipped old beacon

21.11.2016296Base systemBug ReportVery LowHighUbiquiti Bullet M 10/100 ethernet interface comes up as...TrunkUnconfirmed Task Description

For the last month or so, and persisting in r2248, when a Ubiquiti Bullet M is booted through typical Ubiquiti 10/100 passive PoE injector, the interface appears to come up in gigabit mode (see timestamp 18.990274 below), despite being only a 10/100 Mbps interface. Restarting /etc/init.d/network fixes it. I am running batman-adv over the ethernet interface, which may be involved. I will check if it happens when batman-adv is not used on the interface and report in a followup comment.

The dmesg look like this:

[    0.000000] Linux version 4.4.32 (openwrt@hawg) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1439) ) #0 Mon Nov 21 07:14:51 2016
[    0.000000] MyLoader: sysp=00030800, boardp=088201a0, parts=fdeffeff
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7240 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 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-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 80412320, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    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: 8128
[    0.000000] Kernel command line:  board=UBNT-BM mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 27616K/32768K available (2990K kernel code, 174K rwdata, 756K rodata, 296K init, 198K bss, 5152K 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:390.000MHz, DDR:390.000MHz, AHB:195.000MHz, Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[    0.000013] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[    0.007858] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.080537] pid_max: default: 32768 minimum: 301
[    0.085319] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091915] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.102739] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.113516] NET: Registered protocol family 16
[    0.120053] MIPS: machine is Ubiquiti Bullet M
[    0.126714] registering PCI controller with io_map_base unset
[    0.357171] PCI host bridge to bus 0000:00
[    0.361273] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.368174] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.373719] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.380486] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.388422] pci 0000:00:00.0: [168c:002a] type 00 class 0x028000
[    0.388466] pci 0000:00:00.0: fixup device configuration
[    0.395018] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    0.395154] pci 0000:00:00.0: supports D1
[    0.395179] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.395521] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.395573] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.402864] pci 0000:00:00.0: using irq 40 for pin 1
[    0.408959] clocksource: Switched to clocksource MIPS
[    0.415845] NET: Registered protocol family 2
[    0.421435] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.428393] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.434796] TCP: Hash tables configured (established 1024 bind 1024)
[    0.441291] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.447126] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.453786] NET: Registered protocol family 1
[    0.458221] PCI: CLS 0 bytes, default 32
[    0.464223] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.470512] Crashlog allocated RAM at address 0x1f00000
[    0.495166] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.501050] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.514332] io scheduler noop registered
[    0.518252] io scheduler deadline registered (default)
[    0.523724] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.530709] console [ttyS0] disabled
[    0.554342] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12187500) is a 16550A
[    0.563020] console [ttyS0] enabled
[    0.570030] bootconsole [early0] disabled
[    0.582486] m25p80 spi0.0: found mx25l6405d, expected m25p80
[    0.588201] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.593207] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.599160] Creating 5 MTD partitions on "spi0.0":
[    0.603978] 0x000000000000-0x000000040000 : "u-boot"
[    0.611975] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.619659] 0x000000050000-0x0000007b0000 : "firmware"
[    0.638850] 2 uimage-fw partitions found on MTD device firmware
[    0.644866] 0x000000050000-0x0000001a0000 : "kernel"
[    0.651748] 0x0000001a0000-0x0000007b0000 : "rootfs"
[    0.658927] mtd: device 4 (rootfs) set to be root filesystem
[    0.664753] 1 squashfs-split partitions found on MTD device rootfs
[    0.671002] 0x000000550000-0x0000007b0000 : "rootfs_data"
[    0.678725] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.685799] 0x0000007f0000-0x000000800000 : "EEPROM"
[    0.713743] libphy: ag71xx_mdio: probed
[    1.302694] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY]
[    1.312905] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.322158] NET: Registered protocol family 10
[    1.332118] NET: Registered protocol family 17
[    1.336691] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.349583] 8021q: 802.1Q VLAN Support v1.8
[    1.362372] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.372025] Freeing unused kernel memory: 296K (80436000 - 80480000)
[    2.887723] init: Console is alive
[    2.891524] init: - watchdog -
[    4.278153] usbcore: registered new interface driver usbfs
[    4.283867] usbcore: registered new interface driver hub
[    4.289377] usbcore: registered new device driver usb
[    4.301662] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.310384] ehci-platform: EHCI generic platform driver
[    4.319460] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.327414] ohci-platform: OHCI generic platform driver
[    4.336259] init: - preinit -
[    5.148878] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.181862] random: procd: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[    7.440590] eth0: link up (100Mbps/Full duplex)
[    7.445184] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.484066] jffs2: notice: (361) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.501955] mount_root: switching to jffs2 overlay
[    8.517794] urandom-seed: Seeding with /etc/urandom.seed
[    8.794632] eth0: link down
[    8.814035] procd: - early -
[    8.817063] procd: - watchdog -
[    9.492101] procd: - ubus -
[    9.545805] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.555498] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.564637] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.574254] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.583375] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.593373] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.602738] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.612394] procd: - init -
[   10.066368] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[   10.074041] Backport generated by backports.git backports-20160324-9-g0e38f5c
[   10.125220] batman_adv: B.A.T.M.A.N. advanced 2016.4 (compatibility version 15) loaded
[   10.213939] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   10.224958] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[   10.233630] ath: EEPROM regdomain: 0x0
[   10.233647] ath: EEPROM indicates default country code should be used
[   10.233661] ath: doing EEPROM country->regdmn map search
[   10.233689] ath: country maps to regdmn code: 0x3a
[   10.233705] ath: Country alpha2 being used: US
[   10.233718] ath: Regpair used: 0x3a
[   10.248634] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.257391] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[   11.870351] random: jshn: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.001559] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   18.855427] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.875510] IPv6: ADDRCONF(NETDEV_UP): br-pub: link is not ready
[   18.990274] eth0: link up (1000Mbps/Full duplex)
[   18.994964] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   19.330349] batman_adv: bat0: Adding interface: eth0
[   19.335365] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the
 performance. Setting the MTU to 1532 would solve the problem.
[   19.359419] batman_adv: bat0: Interface activated: eth0
[   19.367077] 8021q: adding VLAN 0 to HW filter on device bat0
[   19.406417] device bat0 entered promiscuous mode
[   19.411309] br-pub: port 1(bat0) entered forwarding state
[   19.416772] br-pub: port 1(bat0) entered forwarding state
[   19.422579] IPv6: ADDRCONF(NETDEV_CHANGE): br-pub: link becomes ready
[   19.870508] batman_adv: bat0: bridge_loop_avoidance: Changing from: enabled to: disabled
[   20.359133] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[   20.367269] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[   21.412169] br-pub: port 1(bat0) entered forwarding state
[   21.549966] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   21.563679] device wlan0 entered promiscuous mode
[   21.591315] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   21.597879] br-pub: port 2(wlan0) entered forwarding state
[   21.603541] br-pub: port 2(wlan0) entered forwarding state
[   21.784924] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
[   21.912131] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
[   22.268273] batman_adv: bat0: Adding interface: mesh0
[   22.273432] batman_adv: bat0: Interface activated: mesh0
[   23.599046] br-pub: port 2(wlan0) entered forwarding state
[   29.369162] batman_adv: bat0: IGMP Querier appeared
[   29.374093] batman_adv: bat0: MLD Querier appeared
[   34.068975] ------------[ cut here ]------------
[   34.073700] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:306 dev_watchdog+0x1dc/0x260()
[   34.082197] NETDEV WATCHDOG: eth0 (ag71xx): transmit queue 0 timed out
[   34.088754] Modules linked in: ath9k ath9k_common mac80211 ath9k_hw ath batman_adv libcrc32c cfg80211 compat ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common crc16
 cryptomgr aead crypto_null crc32c_generic crypto_hash
[   34.112252] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.32 #0
[   34.118013] Stack : 803c8fc4 00000000 00000001 80420000 80413038 80412cc3 803aa67c 00000000
[   34.118013] 	  8048379c 8041135c 00000200 00100000 0000000a 800a71a8 803afce8 80410000
[   34.118013] 	  00000003 8041135c 803ae0f4 8040dc2c 0000000a 800a5124 00000006 00000000
[   34.118013] 	  00000000 801f3100 00000000 00000000 00000000 00000000 00000000 00000000
[   34.118013] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   34.118013] 	  ...
[   34.153969] Call Trace:
[   34.156440] [<80071af0>] show_stack+0x50/0x84
[   34.160843] [<80081870>] warn_slowpath_common+0xa0/0xd0
[   34.166096] [<800818cc>] warn_slowpath_fmt+0x2c/0x38
[   34.171111] [<80290970>] dev_watchdog+0x1dc/0x260
[   34.175854] [<800b0460>] call_timer_fn.isra.5+0x24/0x80
[   34.181125] [<800b06e4>] run_timer_softirq+0x1b4/0x1fc
[   34.186296] [<80083dec>] __do_softirq+0x250/0x298
[   34.191059] [<8006a5d0>] plat_irq_dispatch+0xd4/0x10c
[   34.196134] [<80060830>] ret_from_irq+0x0/0x4
[   34.200526] [<80060a80>] __r4k_wait+0x20/0x40
[   34.204906] [<800a2304>] cpu_startup_entry+0x9c/0xe8
[   34.209934] [<80436bd4>] start_kernel+0x470/0x490
[   34.214656] 
[   34.216159] ---[ end trace ef06a4b3ec78272a ]---
[   34.220810] eth0: tx timeout
[   37.565193] random: nonblocking pool is initialized
[   44.068999] eth0: tx timeout
[   54.069064] eth0: tx timeout
[   64.068993] eth0: tx timeout
[   74.069871] eth0: tx timeout
[   82.660973] batman_adv: bat0: MLD Querier disappeared - multicast optimizations disabled
[   84.070901] eth0: tx timeout
[   92.701961] batman_adv: bat0: MLD Querier appeared
[   94.071717] eth0: tx timeout
[  104.072355] eth0: tx timeout
[  114.072669] eth0: tx timeout
[...]

When I do an /etc/init.d/network restart, the interface recovers to normal function, and I get this in dmesg:

[ 1296.763793] br-pub: port 2(wlan0) entered disabled state
[ 1296.769232] br-pub: port 1(bat0) entered disabled state
[ 1296.808305] device bat0 left promiscuous mode
[ 1296.812986] br-pub: port 1(bat0) entered disabled state
[ 1296.862085] IPv6: ADDRCONF(NETDEV_UP): bat0: link is not ready
[ 1296.879239] device wlan0 left promiscuous mode
[ 1296.883945] br-pub: port 2(wlan0) entered disabled state
[ 1296.904196] batman_adv: bat0: Interface deactivated: mesh0
[ 1296.909752] batman_adv: bat0: Removing interface: mesh0
[ 1296.963462] batman_adv: bat0: Interface deactivated: eth0
[ 1296.993492] eth0: link down
[ 1296.998705] batman_adv: bat0: Removing interface: eth0
[ 1301.629484] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1301.649941] IPv6: ADDRCONF(NETDEV_UP): br-pub: link is not ready
[ 1301.985100] eth0: link up (100Mbps/Full duplex)
[ 1301.989698] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 1302.191373] batman_adv: bat0: Adding interface: eth0
[ 1302.196453] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the
 performance. Setting the MTU to 1532 would solve the problem.
[ 1302.220488] batman_adv: bat0: Interface activated: eth0
[ 1302.228092] 8021q: adding VLAN 0 to HW filter on device bat0
[ 1302.275944] device bat0 entered promiscuous mode
[ 1302.280747] br-pub: port 1(bat0) entered forwarding state
[ 1302.286292] br-pub: port 1(bat0) entered forwarding state
[ 1302.292106] IPv6: ADDRCONF(NETDEV_CHANGE): br-pub: link becomes ready
[ 1302.590333] batman_adv: bat0: bridge_loop_avoidance: Changing from: enabled to: disabled
[ 1303.213417] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[ 1303.221556] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[ 1304.283452] br-pub: port 1(bat0) entered forwarding state
[ 1304.672382] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1304.782643] device wlan0 entered promiscuous mode
[ 1304.827845] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1304.834479] br-pub: port 2(wlan0) entered forwarding state
[ 1304.840053] br-pub: port 2(wlan0) entered forwarding state
[ 1305.112607] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
[ 1305.190600] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
[ 1305.692918] batman_adv: bat0: Adding interface: mesh0
[ 1305.698080] batman_adv: bat0: Interface activated: mesh0
[ 1306.833410] br-pub: port 2(wlan0) entered forwarding state
[ 1312.303688] batman_adv: bat0: IGMP Querier appeared
[ 1312.308629] batman_adv: bat0: MLD Querier appeared

If I disconnect the other end of the ethernet cable so that there is no link peer, I do not see the problem (see below):

[    0.000000] Linux version 4.4.32 (openwrt@hawg) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1439) ) #0 Mon Nov 21 07:14:51 2016
[    0.000000] MyLoader: sysp=00000000, boardp=00000000, parts=ffffffff
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7240 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 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-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 80412320, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    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: 8128
[    0.000000] Kernel command line:  board=UBNT-BM mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 27616K/32768K available (2990K kernel code, 174K rwdata, 756K rodata, 296K init, 198K bss, 5152K 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:390.000MHz, DDR:390.000MHz, AHB:195.000MHz, Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[    0.000013] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[    0.007859] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[    0.080537] pid_max: default: 32768 minimum: 301
[    0.085319] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091915] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.102743] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.113517] NET: Registered protocol family 16
[    0.120061] MIPS: machine is Ubiquiti Bullet M
[    0.126721] registering PCI controller with io_map_base unset
[    0.357179] PCI host bridge to bus 0000:00
[    0.361281] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.368182] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.373728] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.380495] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.388431] pci 0000:00:00.0: [168c:002a] type 00 class 0x028000
[    0.388474] pci 0000:00:00.0: fixup device configuration
[    0.395026] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    0.395163] pci 0000:00:00.0: supports D1
[    0.395187] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.395530] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.395581] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.402872] pci 0000:00:00.0: using irq 40 for pin 1
[    0.408968] clocksource: Switched to clocksource MIPS
[    0.415854] NET: Registered protocol family 2
[    0.421444] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.428402] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.434805] TCP: Hash tables configured (established 1024 bind 1024)
[    0.441299] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.447134] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.453795] NET: Registered protocol family 1
[    0.458229] PCI: CLS 0 bytes, default 32
[    0.464231] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.470521] Crashlog allocated RAM at address 0x1f00000
[    0.495175] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.501058] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.514341] io scheduler noop registered
[    0.518261] io scheduler deadline registered (default)
[    0.523733] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.530718] console [ttyS0] disabled
[    0.554351] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12187500) is a 16550A
[    0.563030] console [ttyS0] enabled
[    0.570040] bootconsole [early0] disabled
[    0.582496] m25p80 spi0.0: found mx25l6405d, expected m25p80
[    0.588212] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.593216] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.599171] Creating 5 MTD partitions on "spi0.0":
[    0.603989] 0x000000000000-0x000000040000 : "u-boot"
[    0.611984] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.619662] 0x000000050000-0x0000007b0000 : "firmware"
[    0.638852] 2 uimage-fw partitions found on MTD device firmware
[    0.644868] 0x000000050000-0x0000001a0000 : "kernel"
[    0.651750] 0x0000001a0000-0x0000007b0000 : "rootfs"
[    0.658926] mtd: device 4 (rootfs) set to be root filesystem
[    0.664753] 1 squashfs-split partitions found on MTD device rootfs
[    0.671004] 0x000000550000-0x0000007b0000 : "rootfs_data"
[    0.678725] 0x0000007b0000-0x0000007f0000 : "cfg"
[    0.685800] 0x0000007f0000-0x000000800000 : "EEPROM"
[    0.713752] libphy: ag71xx_mdio: probed
[    1.302703] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY]
[    1.312917] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.322177] NET: Registered protocol family 10
[    1.332146] NET: Registered protocol family 17
[    1.336720] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.349611] 8021q: 802.1Q VLAN Support v1.8
[    1.362390] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.372040] Freeing unused kernel memory: 296K (80436000 - 80480000)
[    2.887726] init: Console is alive
[    2.891520] init: - watchdog -
[    4.278086] usbcore: registered new interface driver usbfs
[    4.283799] usbcore: registered new interface driver hub
[    4.289318] usbcore: registered new device driver usb
[    4.301475] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.310215] ehci-platform: EHCI generic platform driver
[    4.319363] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.327317] ohci-platform: OHCI generic platform driver
[    4.336163] init: - preinit -
[    5.148612] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.181619] random: procd: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[    8.484735] jffs2: notice: (361) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.502585] mount_root: switching to jffs2 overlay
[    8.518273] urandom-seed: Seeding with /etc/urandom.seed
[    8.810840] procd: - early -
[    8.813863] procd: - watchdog -
[    9.487850] procd: - ubus -
[    9.541721] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.551409] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.560553] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.570163] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.579297] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.589333] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.598611] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.608223] procd: - init -
[   10.064115] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[   10.071796] Backport generated by backports.git backports-20160324-9-g0e38f5c
[   10.122372] batman_adv: B.A.T.M.A.N. advanced 2016.4 (compatibility version 15) loaded
[   10.205329] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   10.216362] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[   10.225034] ath: EEPROM regdomain: 0x0
[   10.225051] ath: EEPROM indicates default country code should be used
[   10.225065] ath: doing EEPROM country->regdmn map search
[   10.225093] ath: country maps to regdmn code: 0x3a
[   10.225109] ath: Country alpha2 being used: US
[   10.225122] ath: Regpair used: 0x3a
[   10.240049] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.248689] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[   11.861887] random: jshn: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   11.993063] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   18.833441] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.855566] IPv6: ADDRCONF(NETDEV_UP): br-pub: link is not ready
[   21.215610] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   21.255512] device wlan0 entered promiscuous mode
[   21.286637] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   21.293301] br-pub: port 1(wlan0) entered forwarding state
[   21.298864] br-pub: port 1(wlan0) entered forwarding state
[   21.335689] IPv6: ADDRCONF(NETDEV_CHANGE): br-pub: link becomes ready
[   21.541225] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
[   21.594616] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
[   22.284927] batman_adv: bat0: Adding interface: mesh0
[   22.290148] batman_adv: bat0: Interface activated: mesh0
[   22.297750] 8021q: adding VLAN 0 to HW filter on device bat0
[   22.362868] device bat0 entered promiscuous mode
[   22.367627] br-pub: port 2(bat0) entered forwarding state
[   22.373200] br-pub: port 2(bat0) entered forwarding state
[   22.718089] batman_adv: bat0: bridge_loop_avoidance: Changing from: enabled to: disabled
[   23.289035] br-pub: port 1(wlan0) entered forwarding state
[   23.309325] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[   23.317459] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[   24.369054] br-pub: port 2(bat0) entered forwarding state
[   29.389161] batman_adv: bat0: IGMP Querier appeared
[   38.069058] random: nonblocking pool is initialized
[   44.920666] eth0: link up (100Mbps/Full duplex)
[   44.925732] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   45.001214] batman_adv: bat0: Adding interface: eth0
[   45.006233] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the
 performance. Setting the MTU to 1532 would solve the problem.
[   45.030291] batman_adv: bat0: Interface activated: eth0
[   50.459193] batman_adv: bat0: MLD Querier appeared
[   67.509156] batman_adv: bat0: MLD Querier disappeared - multicast optimizations disabled
[   77.549128] batman_adv: bat0: MLD Querier appeared

My LEDE diffconfig looks like this:

CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_DEVICE_ubnt-bullet-m=y
CONFIG_DEVEL=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_ALFRED_NEEDS_lua=y
CONFIG_BUILD_LOG=y
CONFIG_BUSYBOX_CONFIG_MESG=y
CONFIG_BUSYBOX_CONFIG_PKILL=y
CONFIG_BUSYBOX_CONFIG_RDATE=y
# CONFIG_BUSYBOX_CONFIG_SHA256SUM is not set
CONFIG_KMOD_BATMAN_ADV_BATMAN_V=y
CONFIG_KMOD_BATMAN_ADV_BLA=y
CONFIG_KMOD_BATMAN_ADV_DAT=y
CONFIG_KMOD_BATMAN_ADV_DEBUGFS=y
CONFIG_KMOD_BATMAN_ADV_MCAST=y
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_NO_SMB="!"
CONFIG_LIBCURL_POLARSSL=y
CONFIG_LIBCURL_PROXY=y
CONFIG_OPENSSL_ENGINE_CRYPTO=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_EC=y
CONFIG_OPENSSL_WITH_NPN=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_PACKAGE_ALFRED_BATHOSTS=y
CONFIG_PACKAGE_ALFRED_VIS=y
CONFIG_PACKAGE_alfred=y
CONFIG_PACKAGE_batctl=y
CONFIG_PACKAGE_bridge=y
CONFIG_PACKAGE_curl=y
CONFIG_PACKAGE_diffutils=y
# CONFIG_PACKAGE_dnsmasq is not set
# CONFIG_PACKAGE_firewall is not set
CONFIG_PACKAGE_horst=y
CONFIG_PACKAGE_iftop=y
# CONFIG_PACKAGE_ip6tables is not set
CONFIG_PACKAGE_iperf3=y
# CONFIG_PACKAGE_iptables is not set
CONFIG_PACKAGE_kmod-batman-adv=y
CONFIG_PACKAGE_kmod-bridge=y
CONFIG_PACKAGE_kmod-crypto-aead=y
CONFIG_PACKAGE_kmod-crypto-crc32c=y
CONFIG_PACKAGE_kmod-crypto-hash=y
CONFIG_PACKAGE_kmod-crypto-manager=y
CONFIG_PACKAGE_kmod-crypto-null=y
CONFIG_PACKAGE_kmod-crypto-pcompress=y
# CONFIG_PACKAGE_kmod-ip6tables is not set
# CONFIG_PACKAGE_kmod-ipt-conntrack is not set
# CONFIG_PACKAGE_kmod-ipt-core is not set
# CONFIG_PACKAGE_kmod-ipt-nat is not set
# CONFIG_PACKAGE_kmod-lib-crc-ccitt is not set
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-lib-crc32c=y
CONFIG_PACKAGE_kmod-llc=y
# CONFIG_PACKAGE_kmod-nf-conntrack is not set
# CONFIG_PACKAGE_kmod-nf-conntrack6 is not set
# CONFIG_PACKAGE_kmod-nf-ipt is not set
# CONFIG_PACKAGE_kmod-nf-ipt6 is not set
# CONFIG_PACKAGE_kmod-nf-nat is not set
# CONFIG_PACKAGE_kmod-ppp is not set
CONFIG_PACKAGE_kmod-stp=y
CONFIG_PACKAGE_libcurl=y
# CONFIG_PACKAGE_libip4tc is not set
# CONFIG_PACKAGE_libip6tc is not set
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_libncursesw=y
CONFIG_PACKAGE_libnetsnmp=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libpcap=y
CONFIG_PACKAGE_libpcre=y
CONFIG_PACKAGE_libpolarssl=y
CONFIG_PACKAGE_libpopt=y
CONFIG_PACKAGE_libpthread=y
CONFIG_PACKAGE_librt=y
# CONFIG_PACKAGE_libxtables is not set
CONFIG_PACKAGE_lua=y
# CONFIG_PACKAGE_odhcp6c is not set
# CONFIG_PACKAGE_odhcpd is not set
# CONFIG_PACKAGE_ppp is not set
CONFIG_PACKAGE_procps-ng=y
CONFIG_PACKAGE_procps-ng-free=y
CONFIG_PACKAGE_procps-ng-kill=y
CONFIG_PACKAGE_procps-ng-pgrep=y
CONFIG_PACKAGE_procps-ng-pkill=y
CONFIG_PACKAGE_procps-ng-pmap=y
CONFIG_PACKAGE_procps-ng-ps=y
CONFIG_PACKAGE_procps-ng-pwdx=y
CONFIG_PACKAGE_procps-ng-skill=y
CONFIG_PACKAGE_procps-ng-slabtop=y
CONFIG_PACKAGE_procps-ng-snice=y
CONFIG_PACKAGE_procps-ng-tload=y
CONFIG_PACKAGE_procps-ng-top=y
CONFIG_PACKAGE_procps-ng-uptime=y
CONFIG_PACKAGE_procps-ng-vmstat=y
CONFIG_PACKAGE_procps-ng-w=y
CONFIG_PACKAGE_procps-ng-watch=y
CONFIG_PACKAGE_ptp-utils=y
CONFIG_PACKAGE_rsync=y
CONFIG_PACKAGE_snmpd=y
CONFIG_PACKAGE_tcpdump=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_wget=y
CONFIG_PACKAGE_wireless-tools=y
CONFIG_PACKAGE_zlib=y
CONFIG_RSYNC_zlib=y

My uci show looks like this (system and wireless elided):

alfred.alfred=alfred
alfred.alfred.mode='master'
alfred.alfred.batmanif='bat0'
alfred.alfred.start_vis='1'
alfred.alfred.run_facters='1'
alfred.alfred.interface='br-pub'
alfred.alfred.disabled='0'
batman-adv.bat0=mesh
batman-adv.bat0.bridge_loop_avoidance='0'
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth='on'
dropbear.@dropbear[0].RootPasswordAuth='on'
dropbear.@dropbear[0].Port='22'
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.pub=interface
network.pub.type='bridge'
network.pub.proto='static'
network.pub.ip6assign='60'
network.pub.ifname='bat0'
network.pub.ipaddr='10.11.x.y'
network.pub.netmask='255.255.252.0'
network.pub.gateway='10.11.x.1'
network.pub.dns='10.11.x.1'
network.mesh=interface
network.mesh.mtu='1532'
network.mesh.proto='batadv'
network.mesh.mesh='bat0'
network.meshwire=interface
network.meshwire.proto='batadv'
network.meshwire.mesh='bat0'
network.meshwire.ifname='eth0'
07.02.2017476Base systemBug ReportVery LowHighfail to detect usb storage at boot time on apu2c4.lede-17.01Unconfirmed Task Description

version: 17.01.0-rc1, r3042-ec095b5 and latest master
device: pcengine apu2c4, toshiba 32GB usb3.0 storage
packages: kmod-usb-storage, kmod-usb-core, kmod-scsi-core

<success case>
After boot, inserting usb storage is detected successfully, like this

BusyBox v1.25.1 () built-in shell (ash)

   _________
  /        /\      _    ___ ___  ___
 /  LE    /  \    | |  | __|   \| __|
/    DE  /    \   | |__| _|| |) | _|

// LE \ ||_|_/|_| lede-project.org
\ \ DE /
\ LE \ / ———————————————————– \ DE \ / Reboot (17.01.0-rc1, r3042-ec095b5)
\
\/ ———————————————————– root@lede:/# ls /dev/|grep sd (← Not inserted yet)
root@lede:/# [ 73.924056] usb 3-2: new SuperSpeed USB device number 2 using xhci_hcd (← Detected)
[ 73.948714] usb-storage 3-2:1.0: USB Mass Storage device detected
[ 73.955124] scsi host4: usb-storage 3-2:1.0
[ 74.954867] scsi 4:0:0:0: Direct-Access TOSHIBA TransMemory-Mx PMAP PQ: 0 ANSI: 6
[ 74.963873] sd 4:0:0:0: [sda] 60456960 512-byte logical blocks: (31.0 GB/28.8 GiB)
[ 74.971758] sd 4:0:0:0: [sda] Write Protect is off
[ 74.976597] sd 4:0:0:0: [sda] Mode Sense: 45 00 00 00
[ 74.981951] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn’t support DPO or FUA
[ 75.107329] sda:
[ 75.110561] sd 4:0:0:0: [sda] Attached SCSI removable disk root@lede:/# ls /dev/|grep sd
sda (← device file found)
root@lede:/#
======================================================================================= <failure case>
After reboot keeping usb storage inserted, inserting usb storage is not detected, like this
=======================================================================================
BusyBox v1.25.1 () built-in shell (ash)
_
/ /\ _
_ _ _

 /  LE    /  \    | |  | __|   \| __|
/    DE  /    \   | |__| _|| |) | _|

// LE \ ||_|_/|_| lede-project.org
\ \ DE /
\ LE \ / ———————————————————– \ DE \ / Reboot (17.01.0-rc1, r3042-ec095b5)
\
__\/ ———————————————————–

root@lede:/# ls /dev/|grep sd
root@lede:/#

Do you know the clue fixing this issue?

Thanks in advance.

18.02.2017533Base systemBug ReportVery LowHighanon_mount 1 in fstab freezes boot in wrt3200acmlede-17.01Unconfirmed Task Description

I have run into strange trouble with my new WRT3200ACM:

anon_mount 1 option in /etc/config/fstab causes the boot process to hang.
Hang can be triggered manually with “/sbin/block mount” when that option is set.
Kernel log fills from entries “pxa3xx-nand f10d0000.flash: Wait time out!!!”

I am filing this bug report for 17.01, but the bug seems to be also in master.


For some reason enabling the anon_mount option in /etc/config/fstab prevents the boot process from completing. The boot progresses to some stage and router e.g. answers ping, but power led blinks and it does not allow login and does not provide dhcp etc. services.

I have had that option in all my routers (WNDR3700, WNDR3800, R7800) to make USB memory sticks to automount when inserted into the router’s USB port. So it is a quite normal setting.

I first compiled a mvebu wrt3200acm firmware image from master with kernel 4.9, and that failed to boot. I thought that the new kernel 4.9 might be the reason. So I installed 17.01.0-rc2 official image and it booted ok. I installed packages, configured, rebooted and everything was ok as long as I did not change that anon_mount to 1 in fstab. After changing that, the next boot again gets stuck. (Editing the option in failsafe enables the router to boot normally.)

Boot completes ok with the output of “block detect” entered into fstab:

  config 'global'
          option  anon_swap       '0'
          option  anon_mount      '0'
          option  auto_swap       '1'
          option  auto_mount      '1'
          option  delay_root      '5'
          option  check_fs        '0'

Boot does not complete with anon_mount 1 in /etc/config/fstab:

  config 'global'
          option  anon_swap       '0'
          option  anon_mount      '1'
          option  auto_swap       '1'
          option  auto_mount      '1'
          option  delay_root      '5'
          option  check_fs        '0'

I have no good guess about the reason. My initial guess was some connection to ubi1:syscfg being mounted as /tmp/syscfg as that is different than in my other devices, but it is hard to see how that could be the reason. (That mounting is done in /lib/preinit/81_linksys_syscfg )

After some investigation it looks like the reason is actually “/sbin/block mount”.

At the boot the init script /etc/init.d/fstab actually runs “/sbin/block mount”.
Running that command manually from console (with anon_mount 1) makes the console to hang. From another console window I can see that system & kernel log fills from entries like these:

  kern.err kernel: [ 3032.483307] pxa3xx-nand f10d0000.flash: Wait time out!!!
  kern.err kernel: [ 3032.683301] pxa3xx-nand f10d0000.flash: Wait time out!!!
  kern.err kernel: [ 3032.883296] pxa3xx-nand f10d0000.flash: Wait time out!!!
  kern.err kernel: [ 3033.083293] pxa3xx-nand f10d0000.flash: Wait time out!!!
  kern.err kernel: [ 3033.283291] pxa3xx-nand f10d0000.flash: Wait time out!!!
  kern.err kernel: [ 3033.483287] pxa3xx-nand f10d0000.flash: Wait time out!!!
  kern.err kernel: [ 3033.683283] pxa3xx-nand f10d0000.flash: Wait time out!!!

And the “block” process can’t even be killed with “kill -9” or “kill -15”.
I rebooted the router from power switch to get it killed.

With anon_mount 0 in fstab the same command works ok and produces:

 root@LEDE:~# /sbin/block mount
 block: /dev/ubiblock0_0 is already mounted on /rom
 block: /dev/ubi0_1 is already mounted on /overlay
19.02.2017534Base systemBug ReportVery LowHighUSB xHCI deadlock on bootlede-17.01Assigned Task Description

Supply the following if possible:
- Device problem occurs on
VirtualBox x86_64 Version 5.0.32 r112930
- Software versions of LEDE release, packages, etc.
17.01.00rc2
- Steps to reproduce
Create the disk image
Switch from EHCI (the default in a new VM) to xHCI.
Boot the machine
The machine will deadlock soon after initializing the USB ports


19.02.2017535KernelBug ReportVery LowHigh5GHz radios not working properly on Netgear R8000lede-17.01Unconfirmed Task Description

After upgrading my R8000 from Chaos Calmer (15.05.1) to LEDE Reboot (17.01.0-rc2, r3131-42f3c1f), I found that I could no longer get the 5GHz radios to work as before. The 2.4GHz radio is fine.

In CC I was using the following configuration:
- radio0 on channel 149, country code ‘00’, VHT80
- radio2 on channel 48, country code ‘00’, VHT80

The firmware apparently only accepts 00 and US as country codes, which is why I was using 00. This discussed at length in: https://forum.openwrt.org/viewtopic.php?id=55367&p=19 (and previous pages)

In 17.01.0-rc2, I can’t get radio0 to come up at all. radio2 can be configured, still on channel 48 and country 00, but in VHT40 mode. If I use VHT80, it stays disabled.

This was discussed previously in this forum post: https://forum.lede-project.org/t/r8000-5ghz-wifi-issue/236 and I get the same error messages and channel selection as the OP, so I will not repeat them here.

I’m not sure if this issue is really related to the country code setting, but I will note that the factory system apparently sets the country code to “EU”:

root@x6:~# nvram show | grep country_code
wl1_country_code=EU
wl0_country_code=EU
wl2_country_code=EU
wl_country_code=
root@x6:~#

I see that LEDE carries a patch on brcmfmac which translates the configured country code to an internal code for the firmware on this specific model (https://git.lede-project.org/?p=source.git;a=blob_plain;f=package/kernel/mac80211/patches/863-brcmfmac-add-in-driver-tables-with-country-codes.patch;hb=refs/heads/lede-17.01). I’m willing to test patches if anyone knows the right internal country code for Europe.

28.02.2017569Base systemBug ReportVery LowHighUnable to conenct with wpa2-eaplede-17.01Waiting on reporter Task Description

Device: TP-Link Archer C7 V2
LEDE: 17.01.0, r3205-59508e3

Sometimes it is impossible to connect to an AP. It just looks like that he pairwise key handshake fails. This is what i see in the log:

Feb 28 20:13:41 10.0.0.3 hostapd: wlan1: STA 00:13:ef:60:0a:3a IEEE 802.11: authenticated
Feb 28 20:13:41 10.0.0.3 hostapd: wlan1: STA 00:13:ef:60:0a:3a IEEE 802.11: associated (aid 1)
Feb 28 20:13:41 10.0.0.3 hostapd: wlan1: CTRL-EVENT-EAP-STARTED 00:13:ef:60:0a:3a
Feb 28 20:13:41 10.0.0.3 hostapd: wlan1: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1

My config for wpa2-eap is pretty simple:

config wifi-iface ‘default_radio1’

      option device 'radio1'
      option mode 'ap'
      option ssid 'SSID'
      option encryption 'wpa2'
      option auth_server '10.0.0.1'
      option auth_port '1812'
      option auth_secret 'foobar'
      option nasid 'ap02g'
      option network 'lan'
      option wpa_group_rekey '2000'
07.03.2017602Base systemBug ReportVery LowHighwifi degrade over time, with packet lost and reconnecti...lede-17.01Unconfirmed Task Description

Since I upgraded to LEDE 17.01.0 (r3205-59508e3) on my tl-wr2543 (AR9380), my WIFI (2.5Ghz) became very unstable over time.

At first, it works nicely. However, in a matter of hours, it starts to lag, degrade until after a day or two I start to get packets lost. This is a simple ping sequence:

64 bytes from 192.168.3.1: icmp_seq=906 ttl=64 time=10.7 ms
64 bytes from 192.168.3.1: icmp_seq=908 ttl=64 time=9.60 ms
64 bytes from 192.168.3.1: icmp_seq=909 ttl=64 time=21.3 ms
64 bytes from 192.168.3.1: icmp_seq=912 ttl=64 time=22.3 ms
64 bytes from 192.168.3.1: icmp_seq=913 ttl=64 time=10.6 ms
64 bytes from 192.168.3.1: icmp_seq=920 ttl=64 time=27.4 ms
64 bytes from 192.168.3.1: icmp_seq=921 ttl=64 time=18.3 ms
64 bytes from 192.168.3.1: icmp_seq=924 ttl=64 time=12.8 ms
64 bytes from 192.168.3.1: icmp_seq=925 ttl=64 time=9.13 ms
64 bytes from 192.168.3.1: icmp_seq=926 ttl=64 time=11.5 ms
64 bytes from 192.168.3.1: icmp_seq=929 ttl=64 time=23.0 ms
64 bytes from 192.168.3.1: icmp_seq=930 ttl=64 time=8.02 ms
64 bytes from 192.168.3.1: icmp_seq=931 ttl=64 time=11.4 ms
64 bytes from 192.168.3.1: icmp_seq=933 ttl=64 time=13.0 ms

My WiFi is idle, however, the air is crowded with wifi (34 at the moment) but it was never a problem before. Wired LAN seems to be nice. If I restart wifi (wifi command), it magically returns to normal behavior. The latency is reduced back to about 3-5ms.

64 bytes from 192.168.3.1: icmp_seq=1 ttl=64 time=3.12 ms
64 bytes from 192.168.3.1: icmp_seq=2 ttl=64 time=4.73 ms
64 bytes from 192.168.3.1: icmp_seq=3 ttl=64 time=3.24 ms
64 bytes from 192.168.3.1: icmp_seq=4 ttl=64 time=5.35 ms
64 bytes from 192.168.3.1: icmp_seq=5 ttl=64 time=3.09 ms
64 bytes from 192.168.3.1: icmp_seq=6 ttl=64 time=3.42 ms
64 bytes from 192.168.3.1: icmp_seq=7 ttl=64 time=6.72 ms
64 bytes from 192.168.3.1: icmp_seq=8 ttl=64 time=3.19 ms
64 bytes from 192.168.3.1: icmp_seq=9 ttl=64 time=10.7 ms

Is there anything from /sys/kernel/debug/ieee80211/phy0 that can help? dmesg shows no sign of problem.

Maybe it is related to bug #447. My WiFi config do have WDS enabled but I kept my wifi repeater (tl-wr710nd with LEDE) off since before upgrade.

This is my wireless config:

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option path 'pci0000:00/0000:00:00.0'
	option txpower '17'
	option country 'BR'
	option htmode 'HT40'
	option channel '11'

config wifi-iface
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'PB1202'
	option key 'xxxxxxxx'
	option wds '1'
	option encryption 'psk2+ccmp'

config wifi-iface
	option device 'radio0'
	option mode 'ap'
	option network 'lan'
	option macfilter 'allow'
	list maclist '00:1f:3a:5e:3b:f3'
	option encryption 'wep-open'
	option key '1'
	option key1 's:aaaaaeaaaaaaa'
	option disabled '1'

config wifi-iface
	option device 'radio0'
	option mode 'ap'
	option ssid 'PB1202-1'
	option wds '1'
	option network 'lan'
	option key 'xxxxxxxx'
	option encryption 'psk2+ccmp'

config wifi-iface
	option device 'radio0'
	option ssid 'tania'
	option mode 'sta'
	option encryption 'psk2'
	option key 'xxxxxxxx'
	option network 'wan2'
	option disabled '1'

config wifi-iface
	option device 'radio0'
	option mode 'ap'
	option encryption 'none'
	option ssid 'Festa da Giovana'
	option wds '1'
	option network 'guest'
	option disabled '1'

I can deal with patches/build a custom firmware if needed.

08.03.2017608Base systemBug ReportVery LowHighwds AP/STA disconnecting every 10 minutesTrunkUnconfirmed Task Description

Devices:
AP WDS: Netgear r7800
STA WDS: TP-LINK Archer c7 v2

Problem exists on:

  1. with both latest trunk and 17.01
  2. with both ath10k and ath10k-ct
  3. with STP enabled or not on both sides
  4. with STP enabled or not on only one side
  5. with both WPA2 tkip and aes
  6. with 2.4Ghz and 5Ghz bands

Steps to reproduce

  1. Configure AP WDS
  2. Configure STA WDS
  3. Wait exactly 10 minutes and you’ll see this in the log:

AP:

daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 IEEE 802.11: authenticated
daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 IEEE 802.11: associated (aid 1)
daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 RADIUS: starting accounting session F72C76B14648E205
daemon.info hostapd: wlan1-1: STA 30:b5:c2:08:b9:e1 WPA: pairwise key handshake completed (RSN)

STA:

daemon.notice netifd: Network device 'wlan1' link is down
kern.info kernel: [  387.179978] wlan1: deauthenticated from de:ef:09:f2:99:75 (Reason: 2=PREV_AUTH_NOT_VALID)
kern.info kernel: [  387.188344] br-lan: port 3(wlan1) entered disabled state
kern.info kernel: [  388.139233] wlan1: authenticate with de:ef:09:f2:99:75
kern.info kernel: [  388.170697] wlan1: send auth to de:ef:09:f2:99:75 (try 1/3)
kern.info kernel: [  388.195249] wlan1: authenticated
Wkern.info kernel: [  388.225092] wlan1: associate with de:ef:09:f2:99:75 (try 1/3)
kern.info kernel: [  388.235224] wlan1: RX AssocResp from de:ef:09:f2:99:75 (capab=0x431 status=0 aid=1)
kern.info kernel: [  388.243356] wlan1: associated
daemon.notice netifd: Network device 'wlan1' link is up

I think this has to do with wpa_supplicant in some way, maybe it doesn’t receive the correct packets and force disconnect the client?

Now, this only happens in WDS bridge mode. I’m currently using relayd in order to overcome this issue and it works like a charm.
I want to solve this problem since relayd uses much more cpu power (indeed this is a true routing procotol after all) and total troughput is halved right now.


09.03.2017611Base systemBug ReportVery LowHighdnsmasq Ignore resolv file option forget at restartAllUnconfirmed Task Description

If you set up dnsmasq to ignore resolv file it will ignore it until reboot is performed. To make ignore it again the option must be uncheck and apply and then check and apply again.

I have /etc/resolv.conf as a symlink to /tmp/resolv.conf, when the router boots up the contents are the dns offered from dhcp over the wan interface. When the ignore resolv option is checked or unchecked the contens are overwrited to search lan and nameserver 127.0.0.1 but it doesn’t seems to affect as if you uncheck ignore resolv the router resolv names, and when you check again the option it can resolv names even the contents still are search lan and nameserver 127.0.0.1.

I haven’t seen yet any other change that can cause the reboot to make dnsmasq follow resolv file when the option is checked until you uncheck-apply and check-apply.

09.03.2017612Base systemBug ReportVery LowHighWAN to LAN leakage on MT7620 devicesTrunkUnconfirmed Task Description

I am currently testing two MT7620 devices - the ZBT WE826 and the Sanlinking D240. During the first seconds of the boot, I see that packets leak between the WAN and LAN ports. Typically, this results in clients receiving a DHCP reply from my upstream router, rendering the clients without connectivity when the switch is properly initialized. I have also tested with the default firmware and do not see this behavior. Also, if I stop the devices in the bootloader, then packets do not leak until I resume boot again.

In order to try to solve this bug, I have tried to port some (at least to me) missing steps from the bootloader switch code and to the mt7620 switch driver in LEDE. This did not have an effect, at least not on the packet leak. A work-around I have found is to update u-boot and remove the input delay, so that the device will boot immediately. However, this is quite cumbersome to install and not very reliable. I suspect my luck with this work-around is more due to the timing of the DHCP clients in Ubuntu and Windows 10.

Does anyone have any idea as to what could be wrong and where to start looking?

Thanks in advance for any help.

 


10.03.2017615KernelBug ReportMediumHighWDS AP: kernel panic under high traffic loadTrunkNew Task Description

I built a WDS bridge with two TL-WR841 v8, running LEDE r3670-154b3a6 from the buildbot snapshots.

When sending a high amount of traffic through the bridge (bidirectional iperf from one computer to another through the bridge), the WDS AP crashes repeatedly (roughly every hour, sometimes it takes a bit longer).

This is possibly related to other WDS issues  FS#447  and FS#608.

AP wireless config:

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'LEDE'
	option encryption 'psk-mixed'
	option key 'XXX'
	option wds '1'

STA wireless config:

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'sta'
	option ssid 'LEDE'
	option encryption 'psk2'
	option key 'XXX'
	option wds '1'

The network configuration is unchanged on both devices (except changing the LAN IP).

Some kernel crashes I obtained with /sys/kernel/debug/crashlog after a crash:


[ 2581.160504] Trap instruction in kernel code[#1]:
[ 2581.165297] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.52 #0
[ 2581.171239] task: 8042ef58 ti: 80428000 task.ti: 80428000
[ 2581.176814] $ 0   : 00000000 804a0000 00000000 fffffffe
[ 2581.182253] $ 4   : 00afc0cc 009f844e 0000007f a0e7c980
[ 2581.187691] $ 8   : 009f849c 00000052 0000004a 01000000
[ 2581.193129] $12   : 80000000 8000004e 00000000 00000002
[ 2581.198559] $16   : 81b27000 80df7000 81a15000 81942f00
[ 2581.203989] $20   : 00000000 00000000 8042a4e0 80d18400
[ 2581.209428] $24   : 00000000 8007d2d4
[ 2581.214866] $28   : 80428000 81809a58 8042a4e0 80272104
[ 2581.220305] Hi    : 00000019
[ 2581.223280] Lo    : 00000000
[ 2581.226272] epc   : 80272128 __dev_queue_xmit+0x2d8/0x4c4
[ 2581.231852] ra    : 80272104 __dev_queue_xmit+0x2b4/0x4c4
[ 2581.237428] Status: 1100f403 KERNEL EXL IE
[ 2581.241785] Cause : 00800034 (ExcCode 0d)
[ 2581.245924] PrId  : 0001974c (MIPS 74Kc)
[ 2581.249972] Modules linked in: ath9k ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT
ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc
nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache
nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter
ip6_tables x_tables gpio_button_hotplug
[ 2581.309535] Process swapper (pid: 0, threadinfo=80428000, task=8042ef58, tls=00000000)
[ 2581.317710] Stack : 80ecf420 8187992c 81809b2c 81879900 81b27068 00000001 80430000 fffffff4
[ 2581.317710]    80ece09c 80ed7000 0000004a 80ed7000 80d18400 80ed7000 00000000 8035b5a4
[ 2581.317710]    00000000 80df7000 00000000 80905e00 80f81000 80430000 80df7000 80271cd0
[ 2581.317710]    80428000 00440002 00000020 0000000e 00000003 80df7000 8042a4e0 00000000
[ 2581.317710]    80d18400 80271718 80430000 803fc6cc 8190af00 80ece090 80430000 80df7000
[ 2581.317710]    ...
[ 2581.354706] Call Trace:
[ 2581.357239] [] __dev_queue_xmit+0x2d8/0x4c4
[ 2581.362495] [] vlan_dev_hard_start_xmit+0x98/0x128
[ 2581.368341] [] dev_hard_start_xmit+0x2a8/0x354
[ 2581.373834] [] __dev_queue_xmit+0x3c0/0x4c4
[ 2581.379068] [] br_dev_queue_push_xmit+0x16c/0x1a0
[ 2581.384828] [] br_forward_finish+0x3c/0xb0
[ 2581.389963] [] __br_forward+0xa8/0x114
[ 2581.394741] [] br_handle_frame_finish+0x4f4/0x550
[ 2581.400500] [] br_handle_frame+0x380/0x418
[ 2581.405662] [] __netif_receive_skb_core+0x42c/0x898
[ 2581.411768] [] ieee80211_attach_ack_skb+0x103c/0x19e8 [mac80211]
[ 2581.418913]
[ 2581.420454]
[ 2581.420454] Code: 02002025  10000014  00008825  00431024  ae020074  1000000f  00008825  8e020000
[ 2581.430831] ---[ end trace 8251bd1741f30e24 ]---
[ 2581.437731] Kernel panic - not syncing: Fatal exception in interrupt

Another one which is a bit different:

[  420.687915] Reserved instruction in kernel code[#1]:
[  420.693066] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.52 #0
[  420.699008] task: 8042ef58 ti: 80428000 task.ti: 80428000
[  420.704583] $ 0   : 00000000 804a0000 00000002 00000002
[  420.710022] $ 4   : 81809e34 00000003 00000000 a0fb5980
[  420.715460] $ 8   : 0179f4bc 000005f2 000005ea 01000000
[  420.720898] $12   : 80000000 800005ee 00000000 772a02c0
[  420.726328] $16   : 81809e34 00000000 80f82420 8179eed2
[  420.731758] $20   : 80d54b40 00000000 80f82000 81809ddc
[  420.737197] $24   : 00000000 8007d2d4                  
[  420.742635] $28   : 80428000 81809d28 00000000 80da2a4c
[  420.748066] Hi    : 00000008
[  420.751041] Lo    : 00000023
[  420.754198] epc   : 80da2a4c ieee80211_sta_uapsd_trigger+0xff4/0x2d7c [mac80211]
[  420.761875] ra    : 80da2a4c ieee80211_sta_uapsd_trigger+0xff4/0x2d7c [mac80211]
[  420.769508] Status: 1100f403	KERNEL EXL IE 
[  420.773864] Cause : 80800028 (ExcCode 0a)
[  420.778004] PrId  : 0001974c (MIPS 74Kc)
[  420.782050] Modules linked in: ath9k ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables gpio_button_hotplug
[  420.841606] Process swapper (pid: 0, threadinfo=80428000, task=8042ef58, tls=00000000)
[  420.849779] Stack : 8086da00 8034a074 00000141 81809e14 00000042 81a18c20 00000003 81a18800
[  420.849779] 	  804c0000 00000000 0000002f 00000080 803c9c94 80dd6e74 80de0000 80dd6e40
[  420.849779] 	  80df9780 80440000 80f81420 8034a304 00000032 81b90010 00000001 00000008
[  420.849779] 	  80fc1380 81809e34 80fa9cc0 000008c9 8086f460 00000008 8086f460 00000000
[  420.849779] 	  00000001 80da5abc 815d1746 80df9780 00000000 8034bc5c 00000003 81a18800
[  420.849779] 	  ...
[  420.886779] Call Trace:
[  420.889373] [<80da2a4c>] ieee80211_sta_uapsd_trigger+0xff4/0x2d7c [mac80211]
[  420.896693] 
[  420.898234] 
[  420.898234] Code: 00402825  0c3687a9  02002025 <1000fe1b> 8ee20000  0c36817d  02402025  0441ff8b  24420012 
[  420.908615] ---[ end trace 2fd42b1e71175ff5 ]---
[  420.915438] Kernel panic - not syncing: Fatal exception in interrupt
10.03.2017616KernelBug ReportVery LowHighEthernet port fails to receive traffic if traffic was r...TrunkUnconfirmed Task Description

Symptoms: Fails to receive address via DHCP on WAN port
Board: WPJ558
Lede ver: 92b5b360fe39a4e446742ab3de9d0b2f91991d46 (Mar 7, 2017)
Steps to reproduce: ping -f wan_port_ip from another machine, reboot WPJ558

I have tracked the problem down to commit https://github.com/lede-project/source/commit/94e4ee5395b437e9ddaec8cdea47c1a4a9ba0c01 , more specifically enabling flow control on ports 1-5.

The problem goes away if I comment out line 693 from the patch:

+ t |= AR8216_PORT_STATUS_FLOW_CONTROL;

Funny how this caused the problem it was trying to solve...

20.03.2017644Base systemBug ReportVery LowHighWiFi fails with AP & Meshpoint interfacesTrunkUnconfirmed Task Description

Since this commit:

  r3307-649e766"mac80211: update to wireless-testing 2017-01-31" dated 2 Fed 2017

wifi does not correctly support concurrent AP and Meshpoint interfaces.

Immediately prior to the commit (r3306-91fce81), the problem is not in evidence.

  

In failure, the ‘iw dev’ command shows details of both interfaces, but he “channel” line is missing from the command output for the Meshpoint interface and the Meshpoint interface is not actually working.

The firmware operates correctly with two AP interfaces defined, or with two Meshpoint interfaces defined.

Also the “top” command shows a high level of CPU utilisation, typically 50% for [kworker/u2:2]

- Device problem occurs on:

  Various. Tested here on AR9331 based Dragino-2 / VT MeshPotato-2  device

- Software versions of LEDE release, packages, etc.

  Working
  DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r3306-91fce81' 
  Not Working
  DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r3307-649e766' 

- Steps to reproduce

 Check out the required version of LEDE
 Remove .config
 Run 'make menuconfig' and select a suitable device
 Set up a suitable file in ./files/etc/config/wireless to set up AP and Meshpoint interface
 Run make
 Flash the sysupgrade file on to the device
 Run  'iw  dev' and check to see if both interface are working properly.
 In failure, the Meshpoint interface will not show a "channel" line in 'iw dev output.

Sample test results


Working


DISTRIB_DESCRIPTION=’LEDE Reboot SNAPSHOT r3306-91fce81’
DISTRIB_REVISION=’r3306-91fce81’ Dragino

root@MP2-20:~# iw dev
phy#0

Interface wlan0
	ifindex 7
	wdev 0x3
	addr 02:03:7f:11:22:33
	ssid MyTestAP
	type AP
	channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
	txpower 16.00 dBm
Interface wlan0-1
	ifindex 6
	wdev 0x2
	addr 00:03:7f:11:22:33
	type mesh point
	channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
	txpower 16.00 dBm

Mem: 19992K used, 40440K free, 148K shrd, 2168K buff, 6232K cached
CPU: 5% usr 3% sys 0% nic 89% idle 0% io 0% irq 0% sirq
Load average: 0.38 0.39 0.17 1/41 1811

PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND

1200 1 root S 1648 3% 1% /usr/sbin/hostapd -s -P /var/run/wifi
1784 1695 root R 1180 2% 1% top -d 2

950     1 root     S     1672   3%   0% /sbin/netifd

Not Working


DISTRIB_DESCRIPTION=’LEDE Reboot SNAPSHOT r3307-649e766’
DISTRIB_REVISION=’r3307-649e766’ Dragino


root@MP2-20:~# iw dev
phy#0

Interface wlan0
	ifindex 7
	wdev 0x3
	addr 02:03:7f:11:22:33
	ssid MyTestAP
	type AP
	channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
	txpower 16.00 dBm
Interface wlan0-1
	ifindex 6
	wdev 0x2
	addr 00:03:7f:11:22:33
	type mesh point
	txpower 16.00 dBm

Mem: 19624K used, 40808K free, 56K shrd, 2128K buff, 5604K cached
CPU: 0% usr 50% sys 0% nic 47% idle 0% io 0% irq 0% sirq
Load average: 2.24 1.75 0.83 7/40 2271

PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND

2162 2 root RW 0 0% 50% [kworker/u2:2]

578     1 root     R     1228   2%   1% /sbin/logd -S 64

2163 2130 root R 1184 2% 1% top -d2

Example wireless config file


config wifi-device ‘radio0’

option type 'mac80211'
option phy 'phy0'
option htmode 'HT20'
option channel '1'
option disabled '0'
option coverage '5'

config wifi-iface ‘ap_0’

option device 'radio0'
option ifname 'wlan0'
option network 'lan'
option mode 'ap'
option ssid 'MyTestAP'
option encryption 'psk2'
option key 'mypassword'
option hidden '0'
option disabled '0'
option isolate '0'

config wifi-iface ‘ah_0’

option device 'radio0'
option ifname 'wlan0-1'
option mode 'mesh'
option mesh_id 'mytestmesh'
option network 'mesh_0'
option encryption 'none'
option disabled '0'
option mesh_fwding '0'

28.03.2017661Base systemBug ReportVery LowHighUSB hostless modem is not detected during boot - HooToo...lede-17.01Unconfirmed Task Description

After flashing my HooToo HT-TM02 with LEDE 17.01 I noticed that my hostless modem
ZTE MF823 is not detected when attached during boot. lsusb or cat /sys/kernel/debug/usb/devices
just shows nothing. Also dmesg is logging nothing regarding the device during boot.
If the modem is hotplugged, everything works fine. Same behaviour in OpenWRT Chaos Chalmer.

Tried unloading and reloading all usb related modules with no success. No detection at all.
Only unplugging and replugging helps. If the modem is detected after replugging, a
router reboot will detect it properly. A reboot without a forced detection via replugging leads to
no detection. Powering the router down, also results in no detection after rebooting.

If attached to a “non powered” USB-Hub it gets detected during boot, so no power issue here.

And the modem works perfekt after boot on a WD MyNet 600 with LEDE 17.01. So i think it’s a
platform related issue handling the usb modules.

Hope there is enough info for someone to find the bug.

THX.

03.04.2017677Base systemBug ReportVery LowHighdnsmasq-full does not respond to DNS queries on IPv6 li...TrunkUnconfirmed Task Description

LEDE 17.01 on Buffalo WZR-HP-AG300NH, tested with both dnsmasq-full 2.76 from 17.01 and 2.77test4-1 from trunk

The link-local address of the router is advertised as DNS resolver in the IPv6 router advertisement. Queries to that address are received on the router, logged in dnsmasq, but an answer is never sent (verified with tcpdump).

Tue Apr 4 00:10:20 2017 daemon.info dnsmasq[29569]: 15 fe80::6600:6aff:fe6a:9cf4%br-lan/34427 query[A] www.heise.de from fe80::6600:6aff:fe6a:9cf4
Tue Apr 4 00:10:20 2017 daemon.info dnsmasq[29569]: 15 fe80::6600:6aff:fe6a:9cf4%br-lan/34427 cached www.heise.de is 193.99.144.85

A query to the global address of the very same router works just fine.

10.04.2017697Base systemBug ReportVery LowHighLEDE tl-wdr3320-v2 No 2.4GHzlede-17.01Waiting on reporter Task Description

ar9344+ar9287

this:
https://downloads.lede-project.org/releases/17.01.0/targets/ar71xx/generic/lede-17.01.0-r3205-59508e3-ar71xx-generic-tl-wdr3320-v2-squashfs-sysupgrade.bin
No 2.4GHz

17.04.2017714Base systemBug ReportVery LowHighARP/Broadcast does not reach other clients in the same ...AllUnconfirmed Task Description

I have the default bridge with ethernet and WLAN in it. When i try to send data from a client to another, both connected to the same WLAN SSID, it doesn’t work (Destination unreachable).
Wireshark shows that it sends endless ARP requests to Broadcast, but the other clients in that WLAN never get it (and therefore can’t answer). The broadcast gets still delivery to every client connected through Ethernet. If i create a second WLAN SSID (even on the same adapter) and and add it to the bridge, it gets also all broadcast packets from the other WLAN...
So if i put the 2 clients in different WLAN SSIDs or ethernet they get the broadcast from each other, but not when both are connected to the same.

The isolate option is not set in the wireless config.
Archer C5 v1 with latest LEDE snapshot (no difference to 17.01 stable or rc).

19.04.2017717Base systemBug ReportVery LowHighWRT3200ACM USB 3.0 ProblemAllUnconfirmed Task Description

I can´t get my Seagate Expansion Portable 1TB STEA1000400 USB3.0 drive to be be recognized on the USB 3.0 port of the router after a reboot or cold start on WRT3200 but if i remove and hotplug the drive, it is automatically detected and can be mounted.
It happens with images from Openwrt 15.05.1, LEDE 17.01.1 and many snapshots from both projects that i have installed. I have no problem with another usb2.0 drive from Samsung that is installed in another USB2.0 port.

After Cold START or REBOOT

 root@LEDE:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.20 (ag33e33@ubuntu) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3963-7ae58be) ) #0 SMP Wed Apr 12 16:12:18 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Linksys WRT3200ACM
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0646900, node_mem_map dfbf9000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] percpu: Embedded 13 pages/cpu @dfbce000 s22732 r8192 d22324 u53248
[    0.000000] pcpu-alloc: s22732 r8192 d22324 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock6 ro rootdelay=1 rootfstype=jffs2 earlyprintk mtdparts=armada-nand:2048K(uboot)ro,128K(u_env),256K(s_env),256K@8064K(devinfo),1920K@8320K(sysdiag),80m@10m(kernel),74m@16m(rootfs),80m@90m(alt_kernel),74m@96m(alt_rootfs),160m@10m(ubifs),-@170m(syscfg)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 512848K/524288K available (4545K kernel code, 180K rwdata, 1244K rodata, 280K init, 310K bss, 11440K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0478918   (4547 kB)
                     .init : 0xc05d4000 - 0xc061a000   ( 280 kB)
                     .data : 0xc061a000 - 0xc0647200   ( 181 kB)
                      .bss : 0xc0647200 - 0xc0694a00   ( 310 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Selected CPU frequency (16) unsupported
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000002] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000008] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000114] Calibrating local timer... 933.22MHz.
[    0.060032] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.060037] pid_max: default: 32768 minimum: 301
[    0.060076] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060079] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060274] CPU: Testing write buffer coherency: ok
[    0.060365] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060376] Setting up static identity map for 0x8280 - 0x82d8
[    0.060434] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.060494] mvebu-pmsu: Initializing Power Management Service Unit
[    0.060904] Booting CPU 1
[    0.061041] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.061070] Brought up 2 CPUs
[    0.061075] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.061078] CPU: All CPU(s) started in SVC mode.
[    0.062739] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.062790] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.062796] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.062831] pinctrl core: initialized pinctrl subsystem
[    0.063142] NET: Registered protocol family 16
[    0.063575] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.090041] cpuidle: using governor ladder
[    0.090171] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.090177] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.120467] reg-fixed-voltage xhci0-vbus: could not find pctldev for node /soc/internal-regs/pinctrl@18000/xhci0-vbus-pins, deferring probe
[    0.120607] SCSI subsystem initialized
[    0.120687] libata version 3.00 loaded.
[    0.120790] usbcore: registered new interface driver usbfs
[    0.120815] usbcore: registered new interface driver hub
[    0.120835] usbcore: registered new device driver usb
[    0.121329] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.121647] NET: Registered protocol family 2
[    0.121869] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.121890] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.121920] TCP: Hash tables configured (established 4096 bind 4096)
[    0.121941] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.121952] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.122009] NET: Registered protocol family 1
[    0.122021] PCI: CLS 0 bytes, default 64
[    0.122803] Crashlog allocated RAM at address 0x3f00000
[    0.122877] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.124945] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.124953] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.125699] io scheduler noop registered
[    0.125703] io scheduler deadline registered (default)
[    0.126071] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.126671] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.126679] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.126683] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.126687] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.126701] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    0.126784] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    0.126859] PCI: bus0: Fast back to back transfers disabled
[    0.126864] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.126870] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.126918] pci 0000:01:00.0: [11ab:2b40] type 00 class 0x020000
[    0.126933] pci 0000:01:00.0: reg 0x10: [mem 0x40000000-0x401fffff 64bit pref]
[    0.126943] pci 0000:01:00.0: reg 0x18: [mem 0x40200000-0x402fffff 64bit pref]
[    0.127002] pci 0000:01:00.0: supports D1 D2
[    0.127005] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.127068] PCI: bus1: Fast back to back transfers disabled
[    0.127073] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.127132] pci 0000:02:00.0: [11ab:2b40] type 00 class 0x020000
[    0.127151] pci 0000:02:00.0: reg 0x10: [mem 0x42000000-0x421fffff 64bit pref]
[    0.127162] pci 0000:02:00.0: reg 0x18: [mem 0x42200000-0x422fffff 64bit pref]
[    0.127244] pci 0000:02:00.0: supports D1 D2
[    0.127246] pci 0000:02:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.127310] PCI: bus2: Fast back to back transfers disabled
[    0.127315] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.127384] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[    0.127390] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0400000-0xe06fffff]
[    0.127396] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit pref]
[    0.127405] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0200000-0xe02fffff 64bit pref]
[    0.127413] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.127418] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    0.127425] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0400000-0xe05fffff 64bit pref]
[    0.127434] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0600000-0xe06fffff 64bit pref]
[    0.127443] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.127448] pci 0000:00:02.0:   bridge window [mem 0xe0400000-0xe06fffff]
[    0.127646] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.181754] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.181840] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.241717] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.241857] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.242621] console [ttyS0] disabled
[    0.262683] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 12500000) is a 16550A
[    0.983287] console [ttyS0] enabled
[    0.988691] loop: module loaded
[    0.992090] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.001176] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.010274] scsi host0: ahci-mvebu
[    1.013847] scsi host1: ahci-mvebu
[    1.017348] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    1.025306] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    1.033594] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.041369] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xda
[    1.047747] nand: AMD/Spansion S34ML02G2
[    1.051690] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
[    1.059379] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.066556] Bad block table found at page 131008, version 0x01
[    1.072752] Bad block table found at page 130944, version 0x01
[    1.078863] 11 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.085074] Creating 11 MTD partitions on "pxa3xx_nand-0":
[    1.090582] 0x000000000000-0x000000200000 : "u-boot"
[    1.095830] 0x000000200000-0x000000220000 : "u_env"
[    1.100951] 0x000000220000-0x000000260000 : "s_env"
[    1.106089] 0x0000007e0000-0x000000820000 : "devinfo"
[    1.111433] 0x000000820000-0x000000a00000 : "sysdiag"
[    1.116797] 0x000000a00000-0x000005a00000 : "kernel1"
[    1.122301] 0x000001000000-0x000005a00000 : "ubi"
[    1.127404] 0x000005a00000-0x00000aa00000 : "kernel2"
[    1.132905] 0x000006000000-0x00000aa00000 : "rootfs2"
[    1.138362] 0x00000aa00000-0x000010000000 : "syscfg"
[    1.143774] 0x000000260000-0x000000820000 : "unused_area"
[    1.149701] libphy: Fixed MDIO Bus: probed
[    1.154064] libphy: orion_mdio_bus: probed
[    1.158297] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.166962] mvneta f1070000.ethernet eth0: Using hardware mac address 60:38:e0:b9:ea:c0
[    1.175959] mvneta f1034000.ethernet eth1: Using random mac address a2:8d:5e:6d:ee:98
[    1.183881] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.190435] ehci-pci: EHCI PCI platform driver
[    1.194928] ehci-platform: EHCI generic platform driver
[    1.200245] ehci-orion: EHCI orion driver
[    1.204336] orion-ehci f1058000.usb: EHCI Host Controller
[    1.209765] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.217412] orion-ehci f1058000.usb: irq 37, io mem 0xf1058000
[    1.251329] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.257480] hub 1-0:1.0: USB hub found
[    1.261254] hub 1-0:1.0: 1 port detected
[    1.265551] usbcore: registered new interface driver usb-storage
[    1.271723] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.279341] i2c /dev entries driver
[    1.294252] orion_wdt: Initial timeout 171 sec
[    1.298933] sdhci: Secure Digital Host Controller Interface driver
[    1.305146] sdhci: Copyright(c) Pierre Ossman
[    1.362546] ata1: SATA link down (SStatus 0 SControl 300)
[    1.367991] ata2: SATA link down (SStatus 0 SControl 300)
[    1.371354] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[    1.371428] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.377154] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.377556] NET: Registered protocol family 10
[    1.391590] NET: Registered protocol family 17
[    1.391604] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.391605] 8021q: 802.1Q VLAN Support v1.8
[    1.391661] Registering SWP/SWPB emulation handler
[    1.392791] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.392803] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    1.392861] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.392881] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    1.393134] hub 2-0:1.0: USB hub found
[    1.393160] hub 2-0:1.0: 1 port detected
[    1.393247] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.393253] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.393292] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.393478] hub 3-0:1.0: USB hub found
[    1.393501] hub 3-0:1.0: 1 port detected
[    1.393820] UBI: auto-attach mtd6
[    1.393824] ubi0: attaching mtd6
[    1.397930] random: fast init done
[    1.401551] mmc0: new high speed SDIO card at address 0001
[    1.593092] ubi0: scanning is finished
[    1.601334] ubi0: attached mtd6 (name "ubi", size 74 MiB)
[    1.606756] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.613664] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.620479] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.627475] ubi0: good PEBs: 592, bad PEBs: 0, corrupted PEBs: 0
[    1.633508] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.640759] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1419003487
[    1.649932] ubi0: available PEBs: 0, total reserved PEBs: 592, PEBs reserved for bad PEB handling: 40
[    1.659197] ubi0: background thread "ubi_bgt0d" started, PID 668
[    1.659208] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.659643] block ubiblock0_0: created from ubi0:0(rootfs)
[    1.659645] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.659829] mvsw61xx 10.mvsw61xx: Found MV88E6352 at f1072004.mdio-mi:10
[    1.659832] mvsw61xx 10.mvsw61xx: Using direct addressing
[    1.671972] armada38x-rtc f10a3800.rtc: setting system clock to 2101-11-05 12:45:50 UTC (4160637950)
[    1.705850] Waiting 1 sec before mounting root device...
[    1.852932] usb-storage 1-1:1.0: USB Mass Storage device detected
[    1.859142] scsi host2: usb-storage 1-1:1.0
[    2.722974] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    2.730260] Freeing unused kernel memory: 280K (c05d4000 - c061a000)
[    2.736655] This architecture does not have kernel memory protection.
[    2.855724] init: Console is alive
[    2.859203] init: - watchdog -
[    2.924338] scsi 2:0:0:0: Direct-Access     Samsung  S2 Portable           PQ: 0 ANSI: 2 CCS
[    3.111498] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.151660] sd 2:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    3.159777] sd 2:0:0:0: [sda] Write Protect is off
[    3.164597] sd 2:0:0:0: [sda] Mode Sense: 28 00 00 00
[    3.165152] sd 2:0:0:0: [sda] No Caching mode page found
[    3.170490] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.179038]  sda: sda1
[    3.183653] sd 2:0:0:0: [sda] Attached SCSI disk
[    3.188738] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.195221] ohci-platform: OHCI generic platform driver
[    3.200902] uhci_hcd: USB Universal Host Controller Interface driver
[    3.207556] ohci-pci: OHCI PCI platform driver
[    3.212156] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.228593] init: - preinit -
[    3.422394] mvneta f1070000.ethernet tmp0: renamed from eth0
[    3.462586] mvneta f1034000.ethernet eth0: renamed from eth1
[    3.512510] mvneta f1070000.ethernet eth1: renamed from tmp0
[    3.833291] mvneta f1034000.ethernet eth0: configuring for fixed link mode
[    3.840562] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.846607] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    3.854578] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.909798] mount_root: loading kmods from internal overlay
[    5.921475] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    5.929503] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    6.328768] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 806
[    6.357145] UBIFS (ubi0:1): recovery needed
[    6.403932] random: crng init done
[    6.431762] UBIFS (ubi0:1): recovery completed
[    6.436249] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    6.444117] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    6.454076] UBIFS (ubi0:1): FS size: 61329408 bytes (58 MiB, 483 LEBs), journal size 3047424 bytes (2 MiB, 24 LEBs)
[    6.464556] UBIFS (ubi0:1): reserved for root: 2896739 bytes (2828 KiB)
[    6.471198] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID DEE50754-EFFE-4990-A7A6-C97266C9BEF0, small LPT model
[    6.483473] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[    6.493882] block: extroot: not configured
[    6.531369] UBIFS (ubi0:1): un-mount UBI device 0
[    6.536097] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
[    6.544028] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 809
[    6.591527] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    6.599392] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    6.609356] UBIFS (ubi0:1): FS size: 61329408 bytes (58 MiB, 483 LEBs), journal size 3047424 bytes (2 MiB, 24 LEBs)
[    6.619838] UBIFS (ubi0:1): reserved for root: 2896739 bytes (2828 KiB)
[    6.626483] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID DEE50754-EFFE-4990-A7A6-C97266C9BEF0, small LPT model
[    6.641627] mount_root: loading kmods from internal overlay
[    6.652909] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    6.670201] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    7.078279] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[    7.086484] block: extroot: not configured
[    7.132013] mount_root: switching to ubifs overlay
[    7.176201] ubi1: attaching mtd9
[    7.407547] ubi1: scanning is finished
[    7.415742] ubi1: attached mtd9 (name "syscfg", size 86 MiB)
[    7.421435] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.428338] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.435155] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.442148] ubi1: good PEBs: 680, bad PEBs: 8, corrupted PEBs: 0
[    7.448177] ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
[    7.455430] ubi1: max/mean erase counter: 6/4, WL threshold: 4096, image sequence number: 1148089792
[    7.464603] ubi1: available PEBs: 0, total reserved PEBs: 680, PEBs reserved for bad PEB handling: 32
[    7.473869] ubi1: background thread "ubi_bgt1d" started, PID 824
[    7.485213] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 828
[    7.537764] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "syscfg"
[    7.545202] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.555161] UBIFS (ubi1:0): FS size: 80375808 bytes (76 MiB, 633 LEBs), journal size 4063232 bytes (3 MiB, 32 LEBs)
[    7.565642] UBIFS (ubi1:0): reserved for root: 3796347 bytes (3707 KiB)
[    7.572287] UBIFS (ubi1:0): media format: w4/r0 (latest is w4/r0), UUID A5EAB2F8-92D3-4D0B-A69A-9F6CA9A608B3, small LPT model
[    7.585463] urandom-seed: Seeding with /etc/urandom.seed
[    7.684142] procd: - early -
[    7.687055] procd: - watchdog -
[    8.315049] procd: - ubus -
[    8.371904] procd: - init -
[    8.546612] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.557859] tun: Universal TUN/TAP device driver, 1.6
[    8.562965] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    8.571391] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    8.580401] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.587876] cryptodev: driver 1.8 loaded.
[    8.592340] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[    8.600387] Backport generated by backports.git backports-20160324-13-g24da7d3c
[    8.615059] <<Marvell 802.11ac Wireless Network Driver version 10.3.2.0-20170110>>
[    8.622702] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    8.628443] ieee80211 phy0: priv->iobase0 = e0f80000
[    8.628454] ieee80211 phy0: priv->iobase1 = e1200000
[    8.628463] ieee80211 phy0: priv->pcmd_buf = ddf08000  priv->pphys_cmd_buf = 1df08000
[    8.636458] ieee80211 phy0: fw download start
[    8.699990] ieee80211 phy0: FwSize = 207660 downloaded Size = 207660 curr_iteration 65522
[   12.431324] ieee80211 phy0: fw download complete
[   12.431783] ieee80211 phy0: pcmd = ddf08000
[   12.449817] ieee80211 phy0: firmware version: 0x7080004
[   12.809338] ieee80211 phy0: firmware region code: 10
[   12.851995] ieee80211 phy0: 2G disabled, 5G enabled
[   12.856895] ieee80211 phy0: 4 TX antennas, 4 RX antennas
[   12.862298] pci 0000:00:02.0: enabling device (0140 -> 0142)
[   12.868032] ieee80211 phy1: priv->iobase0 = e1380000
[   12.868043] ieee80211 phy1: priv->iobase1 = e1600000
[   12.868052] ieee80211 phy1: priv->pcmd_buf = dddf0000  priv->pphys_cmd_buf = 1ddf0000
[   12.874418] ieee80211 phy1: fw download start
[   12.939175] ieee80211 phy1: FwSize = 207660 downloaded Size = 207660 curr_iteration 65527
[   14.327325] ieee80211 phy1: fw download complete
[   14.327812] ieee80211 phy1: pcmd = dddf0000
[   14.345344] ieee80211 phy1: firmware version: 0x7080004
[   14.706323] ieee80211 phy1: firmware region code: 10
[   14.750021] ieee80211 phy1: 2G enabled, 5G disabled
[   14.754934] ieee80211 phy1: 4 TX antennas, 4 RX antennas
[   14.762803] u32 classifier
[   14.765522]     input device check on
[   14.769196]     Actions configured
[   14.773037] Mirror/redirect action on
[   14.778285] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[   14.790080] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.799009] mwifiex: rx work enabled, cpus 2
[   14.846998] usbcore: registered new interface driver ums-alauda
[   14.853672] usbcore: registered new interface driver ums-cypress
[   14.860218] usbcore: registered new interface driver ums-datafab
[   14.866723] usbcore: registered new interface driver ums-freecom
[   14.873187] usbcore: registered new interface driver ums-isd200
[   14.879542] usbcore: registered new interface driver ums-jumpshot
[   14.886112] usbcore: registered new interface driver ums-karma
[   14.892282] usbcore: registered new interface driver ums-sddr09
[   14.898499] usbcore: registered new interface driver ums-sddr55
[   14.904752] usbcore: registered new interface driver ums-usbat
[   14.917781] xt_time: kernel timezone is -0000
[   14.925132] PPP generic driver version 2.4.2
[   14.929843] NET: Registered protocol family 24
[   14.935112] kmodloader: done loading kernel modules from /etc/modules.d/*
[   15.469997] mwifiex_sdio mmc0:0001:1: info: FW download over, size 391772 bytes
[   15.831665] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[   15.864262] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x242 error, result=0x2
[   15.871261] mwifiex_sdio mmc0:0001:1: mwifiex_process_cmdresp: cmd 0x242 failed during       initialization
[   15.890625] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (15.68.7.p5)
[   15.898674] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (15.68.7.p5)
[   16.052347] mvneta f1034000.ethernet eth0: configuring for fixed link mode
[   16.059309] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   16.065375] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   16.073372] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   16.081683] br-lan: port 1(eth0.1) entered blocking state
[   16.087106] br-lan: port 1(eth0.1) entered disabled state
[   16.092675] device eth0.1 entered promiscuous mode
[   16.097485] device eth0 entered promiscuous mode
[   16.103227] br-lan: port 1(eth0.1) entered blocking state
[   16.108650] br-lan: port 1(eth0.1) entered forwarding state
[   16.122758] mvneta f1070000.ethernet eth1: configuring for fixed link mode
[   16.130044] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   16.136169] mvneta f1070000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   16.144170] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   16.342477] pppoe-wan: renamed from ppp0
[   16.900336] ieee80211 phy1: change: 0xffffffff
[   17.006509] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   17.137396] ieee80211 phy0: change: 0xffffffff
[   17.271596] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   17.277594] br-lan: port 2(wlan1) entered blocking state
[   17.282955] br-lan: port 2(wlan1) entered disabled state
[   17.288408] device wlan1 entered promiscuous mode
[   17.293166] br-lan: port 2(wlan1) entered blocking state
[   17.298502] br-lan: port 2(wlan1) entered forwarding state
[   17.304255] br-lan: port 2(wlan1) entered disabled state
[   17.309734] br-lan: port 3(wlan0) entered blocking state
[   17.315091] br-lan: port 3(wlan0) entered disabled state
[   17.320543] device wlan0 entered promiscuous mode
[   17.327109] ieee80211 phy0: change: 0x100
[   17.344423] ieee80211 phy0: change: 0x40
[   17.380440] ieee80211 phy1: change: 0x100
[   17.392530] ieee80211 phy1: change: 0x42
[   17.593821] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   17.600257] br-lan: port 2(wlan1) entered blocking state
[   17.605603] br-lan: port 2(wlan1) entered forwarding state
[   17.611269] ieee80211 phy0: change: 0x40
[   17.671185] ieee80211 phy1: change: 0x20
[   17.861365] ieee80211 phy0: change: 0x40
[   17.993370] ieee80211 phy0: change: 0x100
[   18.060535] ieee80211 phy0: change: 0x100
[   18.073629] ieee80211 phy0: change: 0x42
[   18.341340] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   18.347812] br-lan: port 3(wlan0) entered blocking state
[   18.353170] br-lan: port 3(wlan0) entered forwarding state
 root@LEDE:~# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 04e8:1f05 Samsung Electronics Co., Ltd S2 Portable [JMicron] (500GB)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

After i remove the cable and hotplug i get this additional lines in DMESG:

 #
[  527.103849] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[  527.134880] usb-storage 3-1:1.0: USB Mass Storage device detected
[  527.141155] scsi host3: usb-storage 3-1:1.0
[  528.154087] scsi 3:0:0:0: Direct-Access     Seagate  Expansion        1805 PQ: 0 ANSI: 6
[  529.455313] sd 3:0:0:0: [sdb] 1953525167 512-byte logical blocks: (1.00 TB/932 GiB)
[  529.463210] sd 3:0:0:0: [sdb] Write Protect is off
[  529.468032] sd 3:0:0:0: [sdb] Mode Sense: 33 00 00 08
[  529.473381] sd 3:0:0:0: [sdb] No Caching mode page found
[  529.478724] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[  529.499962]  sdb: sdb1 sdb2
[  529.503903] sd 3:0:0:0: [sdb] Attached SCSI disk
[  612.132851] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts:
root@LEDE:~# lsusb
Bus 003 Device 002: ID 0bc2:231b Seagate RSS LLC
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 04e8:1f05 Samsung Electronics Co., Ltd S2 Portable [JMicron] (500GB)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 


19.04.2017721FlysprayBug ReportVery LowHighwrong token error when submitting bug reportAllWaiting on reporter Task Description

I wrote a whole bug report about broken port forwarding on the Flyspray page https://bugs.lede-project.org/index.php?do=newtask&project=2. Flyspray ate my report when I pressed “Add this task”, and it showed me a page that was blank except for the words “wrong token”. It would be better if this feedback were a lot less cryptic. It would be better if my bug report didn’t have to be written again. I’ll try one more time, and I won’t write it this time on the webpage itself. I’ll just paste it there.

20.04.2017726KernelBug ReportVery LowHighUSB not working on TL-WDR4900 v1.xAllUnconfirmed Task Description

USB ports are empty but hub is deteched periodically. Usb ports work abnormal when some devices are inserted.
This bug exists inprevious versions ( in openwrt too).

cat /etc/banner

   _________
  /        /\      _    ___ ___  ___
 /  LE    /  \    | |  | __|   \| __|
/    DE  /    \   | |__| _|| |) | _|

// LE \ ||_|_/|_| lede-project.org
\ \ DE /
\ LE \ / ———————————————————– \ DE \ / Reboot (17.01.1, r3316-7eb58cf109)
\
__\/ ———————————————————–

root@openwrt:~# dmesg | grep -i usb

[ 0.029483] usbcore: registered new interface driver usbfs
[ 0.029537] usbcore: registered new interface driver hub
[ 0.029580] usbcore: registered new device driver usb
[ 2.075954] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.104850] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[ 2.138024] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[ 2.144048] hub 1-0:1.0: USB hub found
[ 2.535450] usb 1-1: new high-speed USB device number 2 using fsl-ehci
[ 2.728493] hub 1-1:1.0: USB hub found
[ 3.511480] usb 1-1: USB disconnect, device number 2
[ 3.814034] usb 1-1: new high-speed USB device number 3 using fsl-ehci
[ 3.952117] hub 1-1:1.0: USB hub found
[ 4.484403] usb 1-1: USB disconnect, device number 3
[ 4.730021] usb 1-1: new high-speed USB device number 4 using fsl-ehci
[ 4.868111] hub 1-1:1.0: USB hub found
[ 5.265649] usb 1-1: USB disconnect, device number 4
[ 5.510021] usb 1-1: new high-speed USB device number 5 using fsl-ehci
[ 6.098025] usb 1-1: device not accepting address 5, error -71
[ 6.398018] usb 1-1: new high-speed USB device number 7 using fsl-ehci
[ 6.536098] hub 1-1:1.0: USB hub found
[ 6.844167] usb 1-1: USB disconnect, device number 7
[ 7.110026] usb 1-1: new high-speed USB device number 8 using fsl-ehci
[ 7.706027] usb 1-1: device not accepting address 8, error -71
[ 8.010025] usb 1-1: new high-speed USB device number 10 using fsl-ehci
[ 8.156084] hub 1-1:1.0: USB hub found
[ 8.417000] usb 1-1: USB disconnect, device number 10
..........................
Thu Apr 20 10:41:22 2017 kern.info kernel: [ 961.300660] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:41:47 2017 kern.info kernel: [ 986.577885] usb 1-1: USB disconnect, device number 124
Thu Apr 20 10:41:47 2017 kern.info kernel: [ 986.821924] usb 1-1: new high-speed USB device number 125 using fsl-ehci
Thu Apr 20 10:41:48 2017 kern.info kernel: [ 986.960029] hub 1-1:1.0: USB hub found
Thu Apr 20 10:41:48 2017 kern.info kernel: [ 986.964202] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 991.933221] usb 1-1: USB disconnect, device number 125
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 992.177825] usb 1-1: new high-speed USB device number 126 using fsl-ehci
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 992.315980] hub 1-1:1.0: USB hub found
Thu Apr 20 10:41:53 2017 kern.info kernel: [ 992.320159] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:02 2017 kern.info kernel: [ 1001.763764] usb 1-1: USB disconnect, device number 126
Thu Apr 20 10:42:03 2017 kern.info kernel: [ 1002.009660] usb 1-1: new high-speed USB device number 127 using fsl-ehci
Thu Apr 20 10:42:03 2017 kern.info kernel: [ 1002.159774] hub 1-1:1.0: USB hub found
Thu Apr 20 10:42:03 2017 kern.info kernel: [ 1002.163953] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.033730] usb 1-1: USB disconnect, device number 127
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.281597] usb 1-1: new high-speed USB device number 2 using fsl-ehci
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.419736] hub 1-1:1.0: USB hub found
Thu Apr 20 10:42:07 2017 kern.info kernel: [ 1006.423795] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:10 2017 kern.info kernel: [ 1009.824073] usb 1-1: USB disconnect, device number 2
Thu Apr 20 10:42:11 2017 kern.info kernel: [ 1010.076110] usb 1-1: new high-speed USB device number 3 using fsl-ehci
Thu Apr 20 10:42:11 2017 kern.info kernel: [ 1010.215709] hub 1-1:1.0: USB hub found
Thu Apr 20 10:42:11 2017 kern.info kernel: [ 1010.220010] hub 1-1:1.0: 4 ports detected
Thu Apr 20 10:42:12 2017 kern.info kernel: [ 1011.588932] usb 1-1: USB disconnect, device number 3
Thu Apr 20 10:42:12 2017 kern.info kernel: [ 1011.833503] usb 1-1: new high-speed USB device number 4 using fsl-ehci

cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 4.04
S: Manufacturer=Linux 4.4.61 ehci_hcd
S: Product=Freescale On-Chip EHCI Host Controller
S: SerialNumber=fsl-ehci.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 45 Spd=480 MxCh= 4
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=05e3 ProdID=0608 Rev=85.36
S: Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms

lsusb -v

Bus 001 Device 048: ID 05e3:0608 Genesys Logic, Inc. Hub
Device Descriptor:

bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         1 Single TT
bMaxPacketSize0        64
idVendor           0x05e3 Genesys Logic, Inc.
idProduct          0x0608 Hub
bcdDevice           85.36
iManufacturer           0 
iProduct                1 USB2.0 Hub
iSerial                 0 
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           25
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0 
  bmAttributes         0xe0
    Self Powered
    Remote Wakeup
  MaxPower              100mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           1
    bInterfaceClass         9 Hub
    bInterfaceSubClass      0 Unused
    bInterfaceProtocol      0 Full speed (or root) hub
    iInterface              0 
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0001  1x 1 bytes
      bInterval              12

Hub Descriptor:

bLength               9
bDescriptorType      41
nNbrPorts             4
wHubCharacteristic 0x00e9
  Per-port power switching
  Per-port overcurrent protection
  TT think time 32 FS bits
  Port indicators
bPwrOn2PwrGood       50 * 2 milli seconds
bHubContrCurrent    100 milli Ampere
DeviceRemovable    0x00
PortPwrCtrlMask    0xff

Hub Port Status:

 Port 1: 0000.0100 power
 Port 2: 0000.0100 power
 Port 3: 0000.0100 power
 Port 4: 0000.0100 power

Device Qualifier (for other device speed):

bLength                10
bDescriptorType         6
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         0 Full speed (or root) hub
bMaxPacketSize0        64
bNumConfigurations      1

Device Status: 0x0001

Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:

bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         1 Single TT
bMaxPacketSize0        64
idVendor           0x1d6b Linux Foundation
idProduct          0x0002 2.0 root hub
bcdDevice            4.04
iManufacturer           3 Linux 4.4.61 ehci_hcd
iProduct                2 Freescale On-Chip EHCI Host Controller
iSerial                 1 fsl-ehci.0
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           25
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0 
  bmAttributes         0xe0
    Self Powered
    Remote Wakeup
  MaxPower                0mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           1
    bInterfaceClass         9 Hub
    bInterfaceSubClass      0 Unused
    bInterfaceProtocol      0 Full speed (or root) hub
    iInterface              0 
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0004  1x 4 bytes
      bInterval              12

Hub Descriptor:

bLength               9
bDescriptorType      41
nNbrPorts             1
wHubCharacteristic 0x0009
  Per-port power switching
  Per-port overcurrent protection
  TT think time 8 FS bits
bPwrOn2PwrGood       10 * 2 milli seconds
bHubContrCurrent      0 milli Ampere
DeviceRemovable    0x00
PortPwrCtrlMask    0xff

Hub Port Status:

 Port 1: 0000.0503 highspeed power enable connect

Device Status: 0x0001

Self Powered
25.04.2017737Base systemBug ReportVery LowHighKernel panic on Buffalo WZR600DHP when LAN plugged at b...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

Buffalo WZR600DHP (multiple different devices)

- Software versions of LEDE release, packages, etc.

All recent versions tested, including “Reboot (SNAPSHOT, r3939+1-de5b8e5d2f)” ... currently building HEAD to try there

- Steps to reproduce

 
* Remove power (warm boots seem more likely to boot successfully)
* Plug a powered-on ethernet-connected device into one of the LAN ports (I used port 2)
* Apply power to the Buffalo, watch as the red diagnostic light goes on steadily, blinks fast, blinks slower, then goes off without the WLAN leds turning on normally, then repeat indefinitely.  Eventually, one of the reboots may succeed.

A panic looks like this:

[   20.142060] eth0: link up (1000Mbps/Full duplex)
[   20.148486] Unhandled kernel unaligned access[#1]:
[   20.153285] CPU: 0 PID: 960 Comm: basename Not tainted 4.4.59 #0
[   20.159280] task: 87cf1e30 ti: 86c9c000 task.ti: 86c9c000
[   20.164661] $ 0   : 00000000 00000001 00000000 00000001
[   20.169907] $ 4   : 871193ff 87311068 800f3538 87311068
[   20.175154] $ 8   : 87311068 80065058 7701b000 00002000
[   20.180402] $12   : 00000000 00003000 fffffffc 00000000
[   20.185649] $16   : 87119980 871193ff 87cf1e30 76f870d0
[   20.190896] $20   : 000a1f10 7701bf6f 7701cdcc 86c6d1e0
[   20.196143] $24   : 00000000 800f3538                  
[   20.201391] $28   : 86c9c000 86c9dda8 86c9ddf0 8010ba2c
[   20.206638] Hi    : 00000000
[   20.209505] Lo    : 00000008
[   20.212393] epc   : 80099ad8 commit_creds+0x3c/0x20c
[   20.217356] ra    : 8010ba2c install_exec_creds+0x18/0x38
[   20.222735] Status: 1000fc03 KERNEL EXL IE 
[   20.226936] Cause : 00800010 (ExcCode 04)
[   20.230935] BadVA : 871193ff
[   20.233802] PrId  : 00019374 (MIPS 24Kc)
[   20.237714] Modules linked in: ath9k ath9k_common ath9k_hw ath nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ipt_ECN ip_tables compat br_netfilter ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   20.319746] Process basename (pid: 960, threadinfo=86c9c000, task=87cf1e30, tls=778c5d48)
[   20.327896] Stack : 86c8d634 7701bf6f 7701cdcc 86c6d1e0 86c9ddf0 800746d0 86c9ddf0 800f5f14
          86c6c400 87119a80 86c6c400 8010ba2c fffffff2 87119a80 86c6c400 76f870d0
          00000000 8014596c 00000000 800f6d60 00000000 800763c0 00002012 00000091
          55555554 80410000 0045a000 00000008 0045a535 0045a000 004497c0 00400000
          76f78000 00400000 86c6c500 87119f00 86c6c300 00000000 00000003 00000003
          ...
[   20.363640] Call Trace:
[   20.366082] [<80099ad8>] commit_creds+0x3c/0x20c
[   20.370700] [<8010ba2c>] install_exec_creds+0x18/0x38
[   20.375752] [<8014596c>] load_elf_binary+0xae0/0x112c
[   20.380794] [<8010bad8>] search_binary_handler+0x8c/0x1cc
[   20.386189] [<8010d09c>] do_execveat_common+0x400/0x5ac
[   20.391400] 
[   20.392880] 
Code: 8c820000  28420001  00020336 <c2220000> 24420001  e2220000  1040fffc  00000000  8e260014 
[   20.402936] ---[ end trace f860d77d4ae98434 ]---
[   20.409602] Fatal exception: panic in 5 seconds
[   20.414551] CPU 0 Unable to handle kernel paging request at virtual address 00000200, epc == 87fe0254, ra == 87fe1ce8
[   20.425372] Oops[#2]:
[   20.427647] CPU: 0 PID: 3 Comm: ksoftirqd/0 Tainted: G      D         4.4.59 #0
[   20.434942] task: 87c2ca10 ti: 87c44000 task.ti: 87c44000
[   20.440323] $ 0   : 00000000 80480000 80000001 00000200
[   20.445570] $ 4   : 86c9e000 00000001 00000000 dcbc842b
[   20.450817] $ 8   : 86c9e058 86c9e058 00000000 00000000
[   20.456064] $12   : 00440002 ffffffff 00000000 ffffffff
[   20.461311] $16   : 86c9e000 000006ec 00000377 804275d8
[   20.466559] $20   : 000006ec 00000004 804275d8 00000000
[   20.471805] $24   : 00000000 87fe7890                  
[   20.477053] $28   : 87c44000 87c45b20 86c9e040 87fe1ce8
[   20.482300] Hi    : 00000377
[   20.485167] Lo    : 3456f000
[   20.488079] epc   : 87fe0254 nf_ct_untracked_status_or+0x78/0x98 [nf_conntrack]
[   20.495383] ra    : 87fe1ce8 __nf_conntrack_confirm+0xbc/0x364 [nf_conntrack]
[   20.502493] Status: 1000fc03 KERNEL EXL IE 
[   20.506694] Cause : 0080000c (ExcCode 03)
[   20.510693] BadVA : 00000200
[   20.513560] PrId  : 00019374 (MIPS 24Kc)
[   20.517472] Modules linked in: ath9k ath9k_common ath9k_hw ath nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ipt_ECN ip_tables compat br_netfilter ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   20.599503] Process ksoftirqd/0 (pid: 3, threadinfo=87c44000, task=87c2ca10, tls=00000000)
[   20.607740] Stack : 00000002 87fd97c0 00000001 02000000 87c45b9c 87c45bd4 804279ec 87118cc0
          00000001 00000004 fffffffd 00000000 02080020 80294f60 00000300 71a45669
          00000000 00000000 87118cc0 87118cc0 87118cc0 87c45bd4 fffffffb 00000001
          00000003 80295004 804279e4 71a45669 87c45c04 87c45c3c 00000000 8741d284
          87118cc0 80420000 00000001 87118cc0 02080020 00000800 8720b05c 8029b5f0
          ...
[   20.643491] Call Trace:
[   20.645944] [<87fe0254>] nf_ct_untracked_status_or+0x78/0x98 [nf_conntrack]
[   20.652919] [<87fe1ce8>] __nf_conntrack_confirm+0xbc/0x364 [nf_conntrack]
[   20.659709] [<80294f60>] nf_iterate+0x7c/0xc8
[   20.664055] [<80295004>] nf_hook_slow+0x58/0xf8
[   20.668582] [<8029b5f0>] ip_local_deliver+0xb8/0xe8
[   20.673451] [<8029b8e8>] ip_rcv+0x2c8/0x334
[   20.677629] [<80268c5c>] __netif_receive_skb_core+0x614/0x6d0
[   20.683373] [<8032f74c>] br_pass_frame_up+0x94/0x10c
[   20.688328] [<8032ffd0>] br_handle_frame+0x2cc/0x418
[   20.693279] [<802689dc>] __netif_receive_skb_core+0x394/0x6d0
[   20.699028] [<8023703c>] ag71xx_poll+0x430/0x5c0
[   20.703637] [<80269ab4>] net_rx_action+0x10c/0x2c8
[   20.708420] [<80084134>] __do_softirq+0x250/0x298
[   20.713116] [<800841a4>] run_ksoftirqd+0x28/0x60
[   20.717725] [<8009abf8>] smpboot_thread_fn+0x158/0x188
[   20.722851] [<80098628>] kthread+0xd8/0xec
[   20.726936] [<80060878>] ret_from_kernel_thread+0x14/0x1c
[   20.732315] 
[   20.733795] 
Code: 00020336  8c820008  30450001 <ac620000> 14a00002  00000000  ac430004  24020200  ac82000c 
[   20.743784] ---[ end trace f860d77d4ae98435 ]---
[   20.749725] Kernel panic - not syncing: Fatal exception in interrupt
[   20.757339] Rebooting in 3 seconds..

Or another one:

[   20.121647] eth0: link up (1000Mbps/Full duplex)
[   20.131943] Unhandled kernel unaligned access[#1]:
[   20.136738] CPU: 0 PID: 937 Comm: snmpd Not tainted 4.4.59 #0
[   20.142474] task: 87d92840 ti: 86c7c000 task.ti: 86c7c000
[   20.147854] $ 0   : 00000000 7fe40058 8010de54 00000000
[   20.153101] $ 4   : 873b557f 86c7de7c 86c7de74 00000001
[   20.158348] $ 8   : 00000020 80065050 80107538 00000000
[   20.163595] $12   : 7fe40040 00000000 00000000 77d382c0
[   20.168842] $16   : 00000000 873b557f 86c7df08 00000080
[   20.174090] $20   : 00000080 77d2e000 86c831e0 77d32d8c
[   20.179336] $24   : 00000fa3 77c9d000                  
[   20.184584] $28   : 86c7c000 86c7de08 00000000 8010de9c
[   20.189832] Hi    : 00000004
[   20.192707] Lo    : 00000000
[   20.195596] epc   : 800685a8 mutex_lock+0x0/0x30
[   20.200203] ra    : 8010de9c pipe_read+0x48/0x284
[   20.204889] Status: 1000fc03 KERNEL EXL IE 
[   20.209090] Cause : 00800010 (ExcCode 04)
[   20.213089] BadVA : 873b557f
[   20.215957] PrId  : 00019374 (MIPS 24Kc)
[   20.219869] Modules linked in: ath9k ath9k_common ath9k_hw ath nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ipt_ECN ip_tables compat br_netfilter ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   20.301899] Process snmpd (pid: 937, threadinfo=86c7c000, task=87d92840, tls=77d39d48)
[   20.309790] Stack : 8730d004 068b46ad 86c84e70 00000012 00000000 00000000 00000000 873b0780
          87cf2efc 86c7de7c 00000000 86c831e0 86c7df08 00000080 77d2e000 77d2e000
          77d31518 77d32d8c 00000000 8010647c 0045acd4 80076b6c 80410000 8008a31c
          00000080 00000000 77d31518 7fe4015c 00000080 00000000 00000000 00000080
          86c7de74 00000001 86c831e0 00000000 00000000 00000000 00000000 00000000
          ...
[   20.345535] Call Trace:
[   20.347973] [<800685a8>] mutex_lock+0x0/0x30
[   20.352235] [<8010de9c>] pipe_read+0x48/0x284
[   20.356586] [<8010647c>] __vfs_read+0xc4/0x104
[   20.361023] [<80106bfc>] vfs_read+0x84/0x130
[   20.365284] [<80107590>] SyS_read+0x58/0xc4
[   20.369462] [<80062c2c>] syscall_common+0x30/0x54
[   20.374153] 
[   20.375640] 
Code: 8fb00024  03e00008  27bd0040 <c0820000> 2443ffff  e0830000  1060fffc  00000000  2442ffff 
[   20.385691] ---[ end trace 7089734b36069ee3 ]---
[   20.392349] Fatal exception: panic in 5 seconds
[   20.400076] CPU 0 Unable to handle kernel paging request at virtual address 00000200, epc == 87ff0254, ra == 87ff1ce8
[   20.410891] Oops[#2]:
[   20.413160] CPU: 0 PID: 3 Comm: ksoftirqd/0 Tainted: G      D         4.4.59 #0
[   20.420456] task: 87c2ca10 ti: 87c44000 task.ti: 87c44000
[   20.425836] $ 0   : 00000000 80480000 80000001 00000200
[   20.431083] $ 4   : 8730e000 00000001 00000000 409e9f5a
[   20.436331] $ 8   : 8730e058 8730e058 00000000 00000000
[   20.441578] $12   : 00440002 ffffffff 00000000 ffffffff
[   20.446825] $16   : 8730e000 000002e0 00000655 804275d8
[   20.452073] $20   : 000002e0 00000004 804275d8 00000000
[   20.457320] $24   : 00000000 87ff7890                  
[   20.462567] $28   : 87c44000 87c45b20 8730e040 87ff1ce8
[   20.467814] Hi    : 00000655
[   20.470680] Lo    : 17458800
[   20.473587] epc   : 87ff0254 nf_ct_untracked_status_or+0x78/0x98 [nf_conntrack]
[   20.480887] ra    : 87ff1ce8 __nf_conntrack_confirm+0xbc/0x364 [nf_conntrack]
[   20.487999] Status: 1000fc03 KERNEL EXL IE 
[   20.492199] Cause : 0080000c (ExcCode 03)
[   20.496199] BadVA : 00000200
[   20.499075] PrId  : 00019374 (MIPS 24Kc)
[   20.502986] Modules linked in: ath9k ath9k_common ath9k_hw ath nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CLASSIFY ts_kmp ts_fsm ts_bm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ipt_ECN ip_tables compat br_netfilter ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[   20.585017] Process ksoftirqd/0 (pid: 3, threadinfo=87c44000, task=87c2ca10, tls=00000000)
[   20.593254] Stack : 00000002 874187c0 00000001 02000000 87c45b9c 87c45bd4 804279ec 87312180
          00000001 00000004 fffffffd 00000000 02080020 80294f60 00000300 d41771e8
          00000000 00000000 87312180 87312180 87312180 87c45bd4 fffffffb 00000001
          00000003 80295004 804279e4 d41771e8 87c45c04 87c45c3c 00000000 87413604
          87312180 80420000 00000001 87312180 02080020 00000800 8721105c 8029b5f0
          ...
[   20.629004] Call Trace:
[   20.631457] [<87ff0254>] nf_ct_untracked_status_or+0x78/0x98 [nf_conntrack]
[   20.638422] [<87ff1ce8>] __nf_conntrack_confirm+0xbc/0x364 [nf_conntrack]
[   20.645214] [<80294f60>] nf_iterate+0x7c/0xc8
[   20.649561] [<80295004>] nf_hook_slow+0x58/0xf8
[   20.654087] [<8029b5f0>] ip_local_deliver+0xb8/0xe8
[   20.658957] [<8029b8e8>] ip_rcv+0x2c8/0x334
[   20.663134] [<80268c5c>] __netif_receive_skb_core+0x614/0x6d0
[   20.668878] [<8032f74c>] br_pass_frame_up+0x94/0x10c
[   20.673833] [<8032ffd0>] br_handle_frame+0x2cc/0x418
[   20.678785] [<802689dc>] __netif_receive_skb_core+0x394/0x6d0
[   20.684534] [<8023703c>] ag71xx_poll+0x430/0x5c0
[   20.689142] [<80269ab4>] net_rx_action+0x10c/0x2c8
[   20.693926] [<80084134>] __do_softirq+0x250/0x298
[   20.698622] [<800841a4>] run_ksoftirqd+0x28/0x60
[   20.703231] [<8009abf8>] smpboot_thread_fn+0x158/0x188
[   20.708365] [<80098628>] kthread+0xd8/0xec
[   20.712450] [<80060878>] ret_from_kernel_thread+0x14/0x1c
[   20.717829] 
[   20.719309] 
Code: 00020336  8c820008  30450001 <ac620000> 14a00002  00000000  ac430004  24020200  ac82000c 
[   20.729304] ---[ end trace 7089734b36069ee4 ]---
[   20.735253] Kernel panic - not syncing: Fatal exception in interrupt
[   20.742878] Rebooting in 3 seconds..

I have more panics, available on request.

04.05.2017759Base systemBug ReportVery LowHighEA4500 with mwk8k driver: Wireless instability and WPA-...lede-17.01Unconfirmed Task Description

Device: Linksys EA4500 (mwl8k driver)
LEDE: 17.01.1

Hi all
I would like to recall to attention an issue that various user are
observing running mwl8k driver together with android and iOS clients
Relevant information can be found here:

https://dev.openwrt.org/ticket/21284 http://www.spinics.net/lists/linux-wireless/msg151171.html

I can add that the problem seems to get worst depending on the
bandwidth usage (higher is worst).
And I can confirm that apparently only android clients are affected,
in the sense that here I have also iPhones and some IP WebCam that
work rock stable with the same router.
Also both 5Ghz and 2.5Ghz radio are affected
Userland seems to have no influence, I have tried wpad and hostapd.
Actually I was trying to workaround the below problem using WPA2-EAP.
But the PEAP-mschapv2 doesn’t work with mwl8k driver on 5Ghz radio
My setup include two different Cisco/Linksys EA4500 running LEDE
17.01.1 and one TPLink WDR3600 with ath9x radios
The EA4500 chipset is Marvell 88W8366 v48.
Well with both 5Ghz radio of my two EA4500 the PEAP MSCHAPV2
authentication fails at the certificates exchange
This is the log I see in freeradius 2

Wed May 3 21:17:26 2017 : Debug: Going to the next request
Wed May 3 21:17:26 2017 : Debug: Waking up in 4.9 seconds.
Wed May 3 21:17:31 2017 : Info: Cleaning up request 34 ID 41 with timestamp +574
Wed May 3 21:17:31 2017 : Info: Cleaning up request 35 ID 42 with timestamp +574
Wed May 3 21:17:31 2017 : Info: Cleaning up request 36 ID 43 with timestamp +574
Wed May 3 21:17:31 2017 : Debug: WARNING:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Wed May 3 21:17:31 2017 : Debug: WARNING: !! EAP session for state
0xd1f19d03d34c849e did not finish!
Wed May 3 21:17:31 2017 : Debug: WARNING: !! Please read
http://wiki.freeradius.org/guide/Certificate_Compatibility Wed May 3 21:17:31 2017 : Debug: WARNING:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Wed May 3 21:17:31 2017 : Info: Ready to process requests.

On hostapd size the logs say that the radius response is received but
the next stage never arrives.
Using the same freeradius 2 I can get PEAP working with the 2.4Ghz
radio with no issue and most important with both 2.4Ghz and 5Ghz radio
on wdr3600, that run the same LEDE release (same kernel) and the same
userland app, so it seems that the problem is really in the
interaction between the mwl8k driver, 5Ghz radio and hostapd and
freeradius.
The problem is shared by two android device (one 7.0.1 and one 6.1)
and and iPhone 7.

12.05.2017776KernelBug ReportVery LowHighath9k wds mode station break offTrunkUnconfirmed Task Description

atheros ar9331
Linux version 4.4.61 (gcc version 5.4.0 (LEDE GCC 5.4.0 r4099-4c3953b) )

wds ap:

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'platform/ar933x_wmac'
        option distance '3000'
        option txpower '18'
        option country '00'
        option channel '1'
        option htmode 'HT40'

config wifi-iface
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option encryption 'psk2'
        option key '12345600'
        option max_inactivity '20'
        option wds '1'
        option ssid 'LK-M2-Jianxi'

wds station:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '1'
        option hwmode '11g'
        option path 'platform/ar933x_wmac'
        option htmode 'HT20'
        option distance '3000'
        option txpower '19'
        option country '00'

config wifi-iface
        option device 'radio0'
        option network 'lan'
        option encryption 'psk2'
        option key '12345600'
        option max_inactivity '20'
        option wds '1'
        option mode 'sta'
        option ssid 'LK-M2-Jianxi'

When the station break off, ping can not reach ap. wifi still connect. kernel have no error info. iwinfo signal still change.

ap with the other station still alive.

Use wpa_cli scan command, will awake station, and ping alive.
wifi command also work.

/proc/interrupts ath9k still alive.


25.05.2017804KernelBug ReportVery LowHighmt7621: kernel errors - rcu_sched detected stalls on CP...TrunkRequires testing Task Description

current trunk
hardware: zbt3526 mt7621
it give more and more often this kernel bugs ...
(i did not have that much for 2 months ago)
can it be related to newer kernel on TRUNK ?

Thu May 25 18:20:04 2017 user.notice root: Subject: [router.xxx.com] KERNEL error/warnings issue - 2017-05-25:18:20:01
Thu May 25 18:20:39 2017 kern.err kernel: [ 4797.640000] INFO: rcu_sched detected stalls on CPUs/tasks:
Thu May 25 18:20:39 2017 kern.err kernel: [ 4797.640000] 2-...: (0 ticks this GP) idle=dc4/0/0 softirq=370963/370963 fqs=0
Thu May 25 18:20:39 2017 kern.err kernel: [ 4797.650000] (detected by 1, t=6003 jiffies, g=119392, c=119391, q=19565)
Thu May 25 18:20:39 2017 kern.info kernel: [ 4797.650000] Task dump for CPU 2:
Thu May 25 18:20:39 2017 kern.info kernel: [ 4797.660000] swapper/2 R running 0 0 1 0×00100000 Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.660000] Stack : 00000000 00003a99 00000000 77de22c0 00000000 00000000 804df2a4 80490000
Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.660000] 8048c75c 00000001 00000000 8048c5e0 8048c724 80490000 00000000 800135e4
Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.660000] 00000000 814a37e0 8fc72000 8fc73ec0 80490000 8005ec74 1100fc03 00000002
Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.660000] 00000000 80490000 804df2a4 8005ec6c 80490000 8001b1a8 1100fc03 00000000
Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.660000] 00000004 8048c4a0 000000a0 8001b1b0 e8c7e2d3 3a8bf07f 2cfde824 eeff5ebf
Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.660000] ...
Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.700000] Call Trace:
Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.700000] [<8000be98>] __schedule+0×574/0×758 Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.710000] [<800135e4>] r4k_wait_irqoff+0×0/0×20 Thu May 25 18:20:39 2017 kern.warn kernel: [ 4797.710000]
Thu May 25 18:20:39 2017 kern.err kernel: [ 4797.710000] rcu_sched kthread starved for 6009 jiffies! g119392 c119391 f0x0 s3 →state=0×1

 


01.06.2017822Base systemBug ReportMediumHighbusybox (ash) sporadically segfaults running shell scri...lede-17.01Researching Task Description

I’m often seeing this message in my logs:

[ 2183.499756] do_page_fault(): sending SIGSEGV to dhcpv6.script for invalid read access from 00000000    
[ 2183.509195] epc = 0041efe9 in busybox[400000+4b000]                                                    
[ 2183.514285] ra  = 0041efb1 in busybox[400000+4b000]                                                    

The issue might be a new variant of  FS#251 , which disappeared after a busybox upgrade.

I’m on a recent lede-17.01 version (dfecce60e6e75abf3ea817fe7bf29fd432693f13), with the follow adjustments to busybox:

CONFIG_BUSYBOX_CUSTOM=y
# CONFIG_BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set

Hardware: TP-Link TL-WR841ND v9 (QCA9533)

My analysis so far:

Registers:

          zero       at       v0       v1       a0       a1       a2       a3
 R0   00000000 7fcfd4c8 00000000 0090b7c0 00910df4 00910df9 2f2f2f2f bcd0a2f0 
            t0       t1       t2       t3       t4       t5       t6       t7
 R8   fefefeff 80808080 80083c3c 002f3634 7fcf9698 00000000 00000000 77a6e2c0 
            s0       s1       s2       s3       s4       s5       s6       s7
 R16  0090ccc0 7fcf9900 00000004 0040788d 77a64000 77a64000 77a67518 77a68d8c 
            t8       t9       k0       k1       gp       sp       s8       ra
 R24  0045b0e8 77a36d44 00000000 00000000 77a6e2c0 7fcf97d0 00000000 0041efb1 
            sr       lo       hi      bad    cause       pc
      0000f413 00000048 00000013 00000000 00800008 0041efe9 
           fsr      fir
      00000000 00000000 

Disassembly:

Dump of assembler code for function find_command:                                                         
   0x0041ef45 <+0>:     save    a0-a3,232,ra,s0-s1                                                        
   0x0041ef49 <+4>:     move    s1,a1                                                                     
   0x0041ef4b <+6>:     jal     0x449c61 <strchr@mips16plt>                                               
   0x0041ef4f <+10>:    li      a1,47
   0x0041ef51 <+12>:    beqz    v0,0x41ef79 <find_command+52>
   0x0041ef53 <+14>:    li      v0,1
   0x0041ef55 <+16>:    neg     v0
   0x0041ef57 <+18>:    lw      v1,240(sp)
   0x0041ef59 <+20>:    sw      v0,4(s1)
   0x0041ef5b <+22>:    li      v0,2
   0x0041ef5d <+24>:    and     v0,v1
   0x0041ef5f <+26>:    bnez    v0,0x41ef65 <find_command+32>
   0x0041ef61 <+28>:    li      v0,0
   0x0041ef63 <+30>:    b       0x41ef75 <find_command+48>
   0x0041ef65 <+32>:    lw      a0,232(sp)
   0x0041ef67 <+34>:    jal     0x44a441 <stat@mips16plt>
   0x0041ef6b <+38>:    addiu   a1,sp,56
   0x0041ef6d <+40>:    slti    v0,0
   0x0041ef6f <+42>:    bteqz   0x41ef61 <find_command+28>
   0x0041ef71 <+44>:    li      v0,1
   0x0041ef73 <+46>:    neg     v0
   0x0041ef75 <+48>:    sb      v0,0(s1)
   0x0041ef77 <+50>:    b       0x41f1af <find_command+618>
   0x0041ef79 <+52>:    lw      v0,0x41f1b4 <find_command+623>
   0x0041ef7b <+54>:    lw      a0,244(sp)
   0x0041ef7d <+56>:    lw      v0,0(v0)
   0x0041ef7f <+58>:    addiu   v0,124
   0x0041ef81 <+60>:    lw      v0,88(v0)
   0x0041ef83 <+62>:    addiu   v0,5
   0x0041ef85 <+64>:    xor     v0,a0
   0x0041ef87 <+66>:    sltiu   v0,1
   0x0041ef89 <+68>:    move    v1,t8
   0x0041ef8b <+70>:    sw      v1,40(sp)
   0x0041ef8d <+72>:    beqz    v0,0x41efa9 <find_command+100>
   0x0041ef8f <+74>:    lw      v0,240(sp)
   0x0041ef91 <+76>:    li      s0,8
   0x0041ef93 <+78>:    lw      a1,0x41f1b8 <find_command+627>
   0x0041ef95 <+80>:    jal     0x449ba1 <strstr@mips16plt>
   0x0041ef99 <+84>:    or      s0,v0
   0x0041ef9b <+86>:    beqz    v0,0x41efa7 <find_command+98>
   0x0041ef9d <+88>:    lw      v1,240(sp)
   0x0041ef9f <+90>:    li      v0,40
   0x0041efa1 <+92>:    or      v1,v0
   0x0041efa3 <+94>:    sw      v1,240(sp)
   0x0041efa5 <+96>:    b       0x41efa9 <find_command+100>
   0x0041efa7 <+98>:    sw      s0,240(sp)
   0x0041efa9 <+100>:   lw      a0,232(sp)
   0x0041efab <+102>:   jal     0x41a75d <cmdlookup>
   0x0041efaf <+106>:   li      a1,0
   0x0041efb1 <+108>:   move    s0,v0
   0x0041efb3 <+110>:   beqz    v0,0x41efdd <find_command+152>
   0x0041efb5 <+112>:   lb      v0,8(v0)
   0x0041efb7 <+114>:   cmpi    v0,1
   0x0041efb9 <+116>:   bteqz   0x41efc3 <find_command+126>
   0x0041efbb <+118>:   cmpi    v0,2
   0x0041efbd <+120>:   btnez   0x41efc7 <find_command+130>
   0x0041efbf <+122>:   li      v0,32
   0x0041efc1 <+124>:   b       0x41efc9 <find_command+132>
   0x0041efc3 <+126>:   li      v0,4
   0x0041efc5 <+128>:   b       0x41efc9 <find_command+132>
   0x0041efc7 <+130>:   li      v0,8
   0x0041efc9 <+132>:   lw      v1,240(sp)
   0x0041efcb <+134>:   and     v0,v1
   0x0041efcd <+136>:   bnez    v0,0x41efd7 <find_command+146>
   0x0041efcf <+138>:   lbu     v0,9(s0)
   0x0041efd1 <+140>:   beqz    v0,0x41f1a3 <find_command+606>
   0x0041efd5 <+144>:   b       0x41efdd <find_command+152>
   0x0041efd7 <+146>:   li      v0,0
   0x0041efd9 <+148>:   li      s0,0
   0x0041efdb <+150>:   sw      v0,40(sp)
   0x0041efdd <+152>:   jal     0x41b025 <find_builtin>
   0x0041efe1 <+156>:   lw      a0,232(sp)
   0x0041efe3 <+158>:   sw      v0,44(sp)
   0x0041efe5 <+160>:   beqz    v0,0x41f00f <find_command+202>
   0x0041efe7 <+162>:   lw      v0,0(v0)
=> 0x0041efe9 <+164>:   lbu     v1,0(v0)
   0x0041efeb <+166>:   li      v0,2
   0x0041efed <+168>:   and     v0,v1
   0x0041efef <+170>:   bnez    v0,0x41f177 <find_command+562>
   0x0041eff3 <+174>:   lw      v1,240(sp)
   0x0041eff5 <+176>:   li      v0,8
   0x0041eff7 <+178>:   and     v0,v1
   0x0041eff9 <+180>:   beqz    v0,0x41f005 <find_command+192>
   0x0041effb <+182>:   li      v0,32
   0x0041effd <+184>:   and     v0,v1
   0x0041efff <+186>:   beqz    v0,0x41f177 <find_command+562>
   0x0041f003 <+190>:   b       0x41f00f <find_command+202>
   0x0041f005 <+192>:   lw      v0,0x41f1bc <find_command+631>
   0x0041f007 <+194>:   lw      v0,0(v0)
...

As in  FS#251 , the contents of the registers don’t really make sense. Unless I’m overlooking something, it should not be possible for $pc to reach 0x0041efe9 with $ra on 0x0041efb1 (return from cmdlookup); rather, $ra should have the value 0x0041efe3 (return from find_builtin). There are no code paths reaching 0x0041efe9 that don’t call find_builtin.

13.06.2017844Base systemBug ReportVery LowHighWMM Mode bug with Wifi 2,4Ghz Archer C7 1750 V2 with L...lede-17.01Unconfirmed Task Description

Hi,

I meet a bug with certain ring roads(peripherals) (Xbox 360 and Epson SX425) using the WiFi 2,4Ghz of my TP(PRACTICAL CLASS) Link Archer C7 1750 under LEDE 17.01.2 (noticed also with LEDE 17.01.1) with activated WMM mode.

When WMM mode is active ring roads(peripherals) Xbox 360 and Epson SX425 does not receive an IP address while quite my other PC works carefree in WiFi 2,4Ghz.

By deactivating WMM mode and by restarting the router(route planner) everything works perfectly.

I specify that with OpenWrt 15.05.1 WMM Mode worked perfectly.

19.06.2017857Base systemBug ReportVery LowHighPSG1218 v17.01.2 cannot connect to host with wifi clien...lede-17.01Unconfirmed Task Description

PSG1218 v17.01.2 cannot connect to host with wifi client mode,but v17.01.1 works

 


29.06.2017875Base systemBug ReportMediumHighx86: APU1: The network interface of lan & wan changed b...AllAssigned Task Description

Board: pc engines APU 1

In 17.01.1 the apu uses

  • eth0 for wan
  • eth1 for wan

In 17.01.2 the apu uses

  • eth0 for wan
  • eth1 for lan
  • eth2 for lan

Do we want to change this again?
I like the new interface binding. But I really dislike it, that it changed within a minor stable release.

I would like to revert the commit in 17.01. But will be there a 17.01.4 release?

Best,
lynxis

commit 443d705e381ef214191a2a427f3c1b29f4c41456

Add missing APU1 reference to x86 board.d

05.07.2017886Base systemBug ReportVery LowHighNewifi D1 ethernat ports freeze after boot with cable p...lede-17.01Unconfirmed Task Description

Newifi D1 is a router device with MT7621 inside, more detailed information can be found at WikiDevi.

I have LEDE 17.01.2 running on the device, but experienced a bug with ethernat port. The bug is easy to reproduce: just powner on or reboot the device with RJ45 cable plugin. You will find that the LED blinks when booting, but freezes after boot. The frozen status of LED is on(wan port), off(lan port), on(lan port) in my situation which have both 3 ports connected.

But every thing works fine if I power on/reboot the device first, then plugin the RJ45 cable.

I could not connect to the device via the ethernat when it is frozen, but can login via wireless network provided by the device. I have checked the network status with ifconfig, the RX counter of eth0, eth0.1 and eth0.2 shows 0 when TX counter seems OK if I ping someone. I checked the switch as well by command: swconfig dev mt7530 show , every thing shows 0 on each port, excepted for port 6. No error message on dmesg.

Some one mentioned it is switch chip driver bug: https://dev.openwrt.org/ticket/20890?cversion=0&cnum_hist=1 . But no further information can be find by google any more.

06.07.2017891KernelBug ReportVery LowHighSlow download speed over Ethernet (wpj344, QCA8334)TrunkUnconfirmed Task Description

Version: Reboot (SNAPSHOT, r4512+1-f3ae0f8), master/trunk
Device: wpj344 (Switch QCA8334)
Problem: Slow download speed over Ethernet, upload works fine.
Steps to reproduce: Use iperf tool to perform network throughput test.

root@LEDE:~# iperf3 -s
-----------------------------------------------------------                                
Server listening on 5201                     
-----------------------------------------------------------                                
Accepted connection from 192.168.1.200, port 51144                                         
[  5] local 192.168.1.1 port 5201 connected to 192.168.1.200 port 51146                    
[ ID] Interval           Transfer     Bandwidth                                            
[  5]   0.00-1.00   sec   294 KBytes  2.41 Mbits/sec                                       
[  5]   1.00-2.00   sec   390 KBytes  3.20 Mbits/sec                                       
[  5]   2.00-3.00   sec   192 KBytes  1.58 Mbits/sec                                       
[  5]   3.00-4.00   sec   291 KBytes  2.39 Mbits/sec                                       
[  5]   4.00-5.00   sec  99.0 KBytes   810 Kbits/sec                                       
[  5]   5.00-6.00   sec  79.2 KBytes   649 Kbits/sec                                       
[  5]   6.00-7.00   sec   281 KBytes  2.31 Mbits/sec                                       
[  5]   7.00-8.00   sec   165 KBytes  1.36 Mbits/sec                                       
[  5]   8.00-9.00   sec   262 KBytes  2.14 Mbits/sec                                       
[  5]   9.00-10.00  sec   117 KBytes   961 Kbits/sec                                       
[  5]  10.00-10.01  sec  0.00 Bytes  0.00 bits/sec                                         
- - - - - - - - - - - - - - - - - - - - - - - - -                                          
[ ID] Interval           Transfer     Bandwidth                                            
[  5]   0.00-10.01  sec  0.00 Bytes  0.00 bits/sec                  sender                 
[  5]   0.00-10.01  sec  2.12 MBytes  1.78 Mbits/sec                  receiver

Using exactly the same node and the same setup and reverting:

commit 967b6be118e3217e8d6a28df9c615d3255e7b1ae     
Author: Vittorio Gambaletta <openwrt@vittgam.net>   
Date:   Sun Mar 26 10:08:20 2017 +0200              

    ar8327: Add workarounds for AR8337 switch.

The new results are:

root@LEDE:~# iperf3 -s    
-----------------------------------------------------------                                             
Server listening on 5201  
-----------------------------------------------------------                                             
Accepted connection from 192.168.1.200, port 50800  
[  5] local 192.168.1.1 port 5201 connected to 192.168.1.200 port 50802                                 
[ ID] Interval           Transfer     Bandwidth     
[  5]   0.00-1.00   sec  27.5 MBytes   230 Mbits/sec                                                    
[  5]   1.00-2.01   sec  24.1 MBytes   201 Mbits/sec                                                    
[  5]   2.01-3.00   sec  23.5 MBytes   198 Mbits/sec                                                    
[  5]   3.00-4.01   sec  24.1 MBytes   201 Mbits/sec                                                    
[  5]   4.01-5.00   sec  27.4 MBytes   231 Mbits/sec                                                    
[  5]   5.00-6.00   sec  25.1 MBytes   210 Mbits/sec                                                    
[  5]   6.00-7.00   sec  28.3 MBytes   238 Mbits/sec                                                    
[  5]   7.00-8.00   sec  30.2 MBytes   253 Mbits/sec                                                    
[  5]   8.00-9.00   sec  21.6 MBytes   181 Mbits/sec                                                    
[  5]   9.00-10.00  sec  28.6 MBytes   241 Mbits/sec                                                    
[  5]  10.00-10.01  sec   181 KBytes   128 Mbits/sec                                                    
- - - - - - - - - - - - - - - - - - - - - - - - -   
[ ID] Interval           Transfer     Bandwidth     
[  5]   0.00-10.01  sec  0.00 Bytes  0.00 bits/sec                  sender                              
[  5]   0.00-10.01  sec   261 MBytes   218 Mbits/sec             receiver   


07.07.2017896Base systemBug ReportVery LowHighmt7620 - dropping frames (WiFi)TrunkUnconfirmed Task Description

Device: Nexx WT3020 (MT7620)
LEDE release: LEDE Reboot 17.01-SNAPSHOT r3435-65eec8b

Latest LEDE on Nexx WT3020 with MT7620 is getting syslog spammed with:

ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2

It usually occurs with high-bandwidth usage of WiFi client (Android i.e.) and results with need to reboot router (or WiFi won’t even work for devices - it’s seen but unable to connect).

# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'platform/10180000.wmac'
        option country 'PL'
        option disabled '0'
        option htmode 'HT40'
        option distance '3'
        option txpower '20'
        option channel '6'

config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option ssid 'xxx'
        option network 'lan'
        option encryption 'psk2+ccmp'
        option key 'xxx'

Also it’s connected with the issue of android devices loosing connectivity/dropping wifi even 1 meter next to router:

Fri Jul  7 00:32:11 2017 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Fri Jul  7 00:32:11 2017 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: associated (aid 2)
Fri Jul  7 00:32:11 2017 daemon.notice hostapd: wlan0: AP-STA-CONNECTED xx:xx:xx:xx:xx:xx
Fri Jul  7 00:32:11 2017 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx WPA: pairwise key handshake completed (RSN)
Fri Jul  7 00:32:51 2017 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: disconnected due to excessive missing ACKs
Fri Jul  7 00:32:51 2017 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED xx:xx:xx:xx:xx:xx
Fri Jul  7 00:32:55 2017 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Fri Jul  7 00:32:55 2017 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: associated (aid 2)
Fri Jul  7 00:32:55 2017 daemon.notice hostapd: wlan0: AP-STA-CONNECTED xx:xx:xx:xx:xx:xx
Fri Jul  7 00:32:55 2017 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx WPA: pairwise key handshake completed (RSN)
12.07.2017902Base systemBug ReportVery LowHighUnable to restore stock ROM in TP-Link CPE210 HW 1.1 af...lede-17.01Unconfirmed Task Description

Hello

Has anybody tried to restore stock ROM in CPE210 hardware version 1.1. after flashing LEDE? I have reviewed TP-Link´s forum and it seems it is not possible. People has tried the Pharos OS TFTP recovery (http://forum.tp-link.com/showthread.php?81684-How-to-use-firmware-recovery-function-of-Pharos-CPE1) as well as from the OpenWRT/LEDE web GUI, and both fail.

Everybody labels flashing to OpenWRT or LEDE as “one-way” action because they suspect that OpenWRT/LEDE “changes something” in the flash, so it breaks a restore to stock ROM . Bellow I list them:

1) OpenWRT/LEDE misses partitions of the stockROM partitions. Bellow is the partition table with stock ROM:

U-Boot partition
partition fs-uboot base 0×00000 size 0×20000 partition partition-table base 0×20000 size 0×02000

Firmware partitions
fwup-ptn partition-table base 0×00800 size 0×00800 fwup-ptn os-image base 0×01000 size 0xcbf29
fwup-ptn soft-version base 0xccf29 size 0×00015 fwup-ptn support-list base 0xccf3e size 0x0063c
fwup-ptn file-system base 0xcd57a size 0x3e4001

2) OpenWRT/LEDE changes something in the environment of the SafeLoader, which breaks the standard recovery mode.

3) Log from an attempt to transfer recovery.bin (the recovery.bin file is firmware pharos-up-ver1-3-3-P9[20160705-rel52453].bin). Safeloader request a “vmlinuz” file from the TFTP ad, of course, it does not exists.

Connection received from 192.168.0.254 on port 4011 [16/03 07:27:19.543]
Read request for file <recovery.bin>. Mode octet [16/03 07:27:19.543]
OACK: <timeout=5,blksize=512,> [16/03 07:27:19.823]
Using local port 49447 [16/03 07:27:19.823]
<recovery.bin>: sent 9643 blks, 4936747 bytes in 2 s. 0 blk resent [16/03 07:27:21.708]
Connection received from 192.168.0.254 on port 3164 [16/03 07:27:24.831]
Read request for file <vmlinuz>. Mode octet [16/03 07:27:24.831]
File <vmlinuz> : error 2 in system call CreateFile Das System kann die angegebene Datei nicht finden. [16/03 07:27:24.831]

I think it is important to check and solve it, because this behavior avoids warranty.

13.06.20169KernelBug ReportVery LowMediumKernel panic with SQM scriptsTrunkUnconfirmed Task Description

When i select a script different than simplest.qos in the sqm list i get the log full of kernel panic message
If you need more information tell me.
To reproduce i have a wdr3600
just install the sqm package and select the script and watch the log
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.147796] ————[ cut here ]———— Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.147817] WARNING: CPU: 0 PID: 20621 at net/sched/sch_hfsc.c:1426 0x871e9e6c()
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.147825] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCMon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148143] CPU: 0 PID: 20621 Comm: dropbear Tainted: G W 4.4.12 #1
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148151] Stack : 803dc584 00000000 00000001 80430000 8782a080 80426f63 803bdcb0 0000508d
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148151] 80493790 873e9f90 873e9c68 0000000a 00000100 800a6854 803c32bc 80420000
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148151] 00000003 873e9f90 803c16c8 8500fad4 00000100 800a4820 00000000 00000000
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148151] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148151] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148151] ...
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148240] Call Trace:
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148255] [<80071a94>] show_stack+0×50/0×84 Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148271] [<80081628>] warn_slowpath_common+0xa0/0xd0
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148286] [<800816dc>] warn_slowpath_null+0×18/0×24 Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148315] [<871e9e6c>] 0x871e9e6c
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148326]
Mon Jun 13 21:13:07 2016 kern.warn kernel: [30780.148335] —[ end trace ce6ca764afdc3e14 ]—

here the log i get a lot

05.07.201644Base systemBug ReportVery LowMediumAth9k - TX performance regression on greater coverage s...TrunkWaiting on reporter Task Description

Synopsis:

When increasing coverage distance on the transmitting device, frame aggregation is heavily reduced.
Even when conditions are perfect.

This is regression compared to the BarrierBreaker release.

Hardware used:
2x cns3xxx GW-2388, each containing a single SR71-15

Setup:
- 2 devices are 1 meter apart.
- RSSI = -40
- Completely free channel
- Using wpa_supplicant, AES2, HT20 rates, IBSS

Repro rate:
100%

Repro steps:
- Set coverage distance on device 1 to >10000m
- Set Device 1 as iperf client
- Set Device 2 as iperf server

Obervations:
- iwinfo and iw wlanx station dump reveal 130Mbit/s raw link rate and 45Mbps net throughput
- The actual throughput is stuck @ 7Mbit/s
- Checking debugfs-xmit reveals that frame aggregation is at a rate of 2 frames/s
- When setting the coverage range of device 1 to 50m, the aggregation rate is easily >5000 frames/s
- Switching to HT40 yields the same issues.

Other observations:
- Setting coverage to 12000m and starting the iperf yields 7Mbit/s
- setting coverage to 50m and starting iperf yields >55Mbit/s
- Setting coverage to 50m, starting iperf and increase coverage to >10000m while running reduces the rate to 25Mbit.

When stopping and restarting iperf it drops again to 7Mbit/s

In barrierbreaker release, increasing coverage distance to 10000m dropped to the throughput to ~50Mbit iso 7

16.08.201694Base systemBug ReportVery LowMediumnetifd: PPPoE MTU problemTrunkNew Task Description

When you set the MTU of a ppp interface with proto=pppoe and ifname=nas0 via the mtu option,
the configured mtu will not be set on the ppp interface (what you want), but on the
underlying interface named by ifname (what you normally don’t want to change).

This leeds to log messages like this:


pppd[5641]: Interface nas0 has MTU of 1448 – should be at least 1500.


and MTUs other than what you really want.

example:


desired PPPoE MTU: 1448
actual nas0 MTU: 1448
actual PPPoE MTU: 1440

This issue seems to be related to the commit 7ac29b75319fd69a8a7c0aeea7804d381ec07d3d of netifd.

Regards,
Martin

20.08.2016105Base systemBug ReportMediumMediumlantiq: high latency on adsl lines using pppo[ae]TrunkNew Task Description

based on the thread
[LEDE-DEV] [OpenWrt-Devel] latency on PPPoA ADSL Annex A on using Lantiq

http://lists.infradead.org/pipermail/lede-dev/2016-August/002138.html

When using ssh onto the box via adsl, there is a high latency.
The last 3.18 version of lede works. Known good:

  • 161179f40bd7899516518f3844fea28c6dd86efc r47130

Known broken versions:

  • 2795592d913ba8ba57ba537d40714407ea463426 r47131
  • 2a0e1b7f8d59f795abb29d20007822f0da232c43 r47958

mkresin also has a patch for lantiq+4.0, which also has a high latency.
blogic mentioned linux commit 7424ce65065852bdf7a040bf2490da4a8fc4b464 [atm] switch vcc_sendmsg() to copy_from_iter() could be the issue.

Also an interesting side-effect. setup a uhttpd on the device and serve a file to the internet is very slow (using 4mb file random data). it only uploads 5kb/s

24.08.2016115Base systemBug ReportVery LowMediumWWAN-connections using 3g with HUAWEI ME909u-521 unstab...TrunkUnconfirmed Task Description

Actually, I am trying to stabilize wwan (3g actually; LTE later on) using pppd with my HUAWEI ME909u-521,
because either my MT7620-based router locks up during boot already; or after short period of real usage.
During night, when router is almost idle, just some watchdog date sent via wwan, no problem.

First trace of a possible problem was this msg in logread:
daemon.notice netifd: wwan (1676): Error setting WWAN mode!

Wich is expected, as in /lib/netifd/proto/3g.sh:

...

                      elif echo "$cardinfo" | grep -qi huawei; then
                              case "$service" in
                                      umts_only) CODE="14,2";;
                                      gprs_only) CODE="13,1";;
                                      *) CODE="2,2";;
                              esac
                              export MODE="AT^SYSCFG=${CODE},3FFFFFFF,2,4"    #####Will not work !!!!! Switching USB-Stick to 3g-preferred ?

...
...

                      [ -n "$MODE" ] && gcom -d "$device" -s /etc/gcom/setmode.gcom

Will not work, because the ME909u-521 rejects AT^SYSCFG . However, AT^SYSCFGEX will work, but having different syntax.
MODE=”AT^SYSCFG=${CODE},3FFFFFFF,2,4” will be effective for simpler modems.

/etc/gcom/setmode.gcom returns exit 1; but this error is not checked in 3g.sh

Not shure, whether this is the reason for my problems; however, reason of concern, as high speed modems
are more and more common.
Willing to participate in testing/debugging.

For details regarding my modem, consult
HUAWEI ME909u-521 LTE LGA Module AT Command Interface Specification
http://www.paoli.cz/out/media/HUAWEI_ME909u-521_LTE_LGA_Module_AT_Command_Interface_Specification-V100R001_02.pdf

30.08.2016126KernelBug ReportVery LowMediumkernel panic on brcm47xx (netgear wgt634u) when routing...TrunkUnconfirmed Task Description

With LEDE version reboot-1444-g1bb914d, when pulling data through the WAN interface to the LAN interface at a sufficiently high speed, e.g. on a Raspberry Pi connected by ethernet to a LAN port, and the WAN interface connected to a gigabit internet service and issuing a command like:

curl https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.7.2.tar.xz > /dev/null

From the pi, I see something like:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  9 86.2M    9 7977k    0     0  1834k      0  0:00:48  0:00:04  0:00:44 1835k[  352.295252] smsc95xx 1-1.1:1.0 eth0: link down
  9 86.2M    9 7977k    0     0  1255k      0  0:01:10  0:00:06  0:01:04 1155k[  353.959380] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
  9 86.2M    9 7977k    0     0  43292      0  0:34:48  0:03:08  0:31:40     0

or

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  8 86.2M    8 7440k    0     0  1478k      0  0:00:59  0:00:05  0:00:54 1478k[ 1100.164849] smsc95xx 1-1.1:1.0 eth0: link down
  8 86.2M    8 7440k    0     0  1232k      0  0:01:11  0:00:06  0:01:05 1300k[ 1101.836954] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
  8 86.2M    8 7440k    0     0   740k      0  0:01:59  0:00:10  0:01:49     0

Where the “link down” is the WGT634U panic’ing and rebooting. The panic on the WGT634U looks like this:

[  171.966841] CPU 0 Unable to handle kernel paging request at virtual address 008224d8, epc == 80077ecc, ra == 801d8100
[  171.977700] Oops[#1]:
[  171.980093] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.1.20 #0
[  171.986265] task: 8181e008 ti: 8182a000 task.ti: 8182a000
[  171.991711] $ 0   : 00000000 1000b800 008224d8 b41c479b
[  171.997140] $ 4   : 008224d8 00010000 80361ef8 00000000
[  172.002557] $ 8   : 81018b14 8101da14 00100100 dceb27b8
[  172.007983] $12   : ffffffff 00000001 ffffff80 000042c6
[  172.013400] $16   : b41c479b 00000001 81b450a8 81b7d260
[  172.018817] $20   : 803b5dcc 00000002 00000008 0000000a
[  172.024235] $24   : 00000000 80072b24                  
[  172.029653] $28   : 8182a000 8182bdb8 00000100 801d8100
[  172.035083] Hi    : 00000000
[  172.038026] Lo    : 0000006c
[  172.041036] epc   : 80077ecc put_compound_page+0x78/0x240
[  172.046547] ra    : 801d8100 skb_release_data+0xa8/0x10c
[  172.051920] Status: 1000b803 KERNEL EXL IE 
[  172.056254] Cause : 00800008
[  172.059194] BadVA : 008224d8
[  172.062144] PrId  : 00029007 (Broadcom BMIPS3300)
[  172.066891] Modules linked in: pppoe ppp_async iptable_nat ath5k ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 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 slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables leds_gpio ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common ssb_hcd
[  172.132913] Process ksoftirqd/0 (pid: 3, threadinfo=8182a000, task=8181e008, tls=00000000)
[  172.141213] Stack : 1000b803 00000000 0000006c b41c479b 81b45080 801d8100 00000000 0000012c
          00000001 801e7d60 81becb60 81b7d260 81b7d260 80335b3c 81bece60 801d818c
          80360000 803623e0 81becb60 80335b3c 803623e0 801e63d8 8182be10 8182be10
          00000001 00000002 803b5dd0 00000001 803b5dd4 00000003 803b0000 80024fec
          81841048 80361100 819bb770 80007664 80364510 8181e008 80362898 04208040
          ...
[  172.178058] Call Trace:
[  172.180640] [<80077ecc>] put_compound_page+0x78/0x240
[  172.185822] [<801d8100>] skb_release_data+0xa8/0x10c
[  172.190895] [<801d818c>] __kfree_skb+0x28/0xb4
[  172.195466] [<801e63d8>] net_tx_action+0xd8/0x140
[  172.200329] [<80024fec>] __do_softirq+0x184/0x2b0
[  172.205184] [<80025140>] run_ksoftirqd+0x28/0x80
[  172.209953] [<8003bae0>] smpboot_thread_fn+0x148/0x178
[  172.215246] [<80039390>] kthread+0xdc/0xe8
[  172.219459] [<800010a8>] ret_from_kernel_thread+0x14/0x1c
[  172.224921] 
[  172.226470] 
Code: 30840001  0204100a  00402021 <8c420000> 000211c2  30420001  10400018  00000000  8e020000 
[  172.237022] ---[ end trace 89a3318b662df6d8 ]---
[  172.250536] Kernel panic - not syncing: Fatal exception in interrupt
[  172.262338] Rebooting in 3 seconds..

or

[ 1317.958261] Unhandled kernel unaligned access[#1]:
[ 1317.963173] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.1.20 #0
[ 1317.969349] task: 8181e008 ti: 8182a000 task.ti: 8182a000
[ 1317.974795] $ 0   : 00000000 1000b801 00000001 00200000
[ 1317.980232] $ 4   : 647b394a 00010000 00018da4 00000000
[ 1317.985658] $ 8   : 8181e040 b1e1b104 00000017 40000000
[ 1317.991085] $12   : 500018dd 00000000 00000000 010102f2
[ 1317.996510] $16   : 80e4d1e0 00000001 80e4d208 81acb0e0
[ 1318.001936] $20   : 803b5dcc 00000002 00000008 0000000a
[ 1318.007362] $24   : 00000010 8001ead0                  
[ 1318.012789] $28   : 8182a000 8182bdd0 00000100 801d8100
[ 1318.018220] Hi    : 00000001
[ 1318.021160] Lo    : 00000001
[ 1318.024169] epc   : 80078474 put_page+0x0/0x4c
[ 1318.028732] ra    : 801d8100 skb_release_data+0xa8/0x10c
[ 1318.034104] Status: 1000b803 KERNEL EXL IE 
[ 1318.038439] Cause : 00800010
[ 1318.041380] BadVA : 647b394a
[ 1318.044330] PrId  : 00029007 (Broadcom BMIPS3300)
[ 1318.049076] Modules linked in: pppoe ppp_async iptable_nat ath5k ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 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 slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables leds_gpio ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common ssb_hcd
[ 1318.115124] Process ksoftirqd/0 (pid: 3, threadinfo=8182a000, task=8181e008, tls=00000000)
[ 1318.123424] Stack : 00000000 80c60c94 00db35c0 626a006e ff330000 81acb0e0 81acb0e0 80335b3c
          80c28260 801d818c 80360000 8004f368 00000018 0000000a 803623e0 801e63d8
          8182be10 8182be10 80361100 00000002 803b5dd0 00000001 803b5dd4 00000013
          803b0000 80024fec 80364510 80361100 80360000 8000736c 80364510 8181e008
          80362898 04208040 00018da4 80360000 80310000 803b5dcc 803615a0 803114f4
          ...
[ 1318.160295] Call Trace:
[ 1318.162885] [<80078474>] put_page+0x0/0x4c
[ 1318.167108] [<801d8100>] skb_release_data+0xa8/0x10c
[ 1318.172182] [<801d818c>] __kfree_skb+0x28/0xb4
[ 1318.176752] [<801e63d8>] net_tx_action+0xd8/0x140
[ 1318.181614] [<80024fec>] __do_softirq+0x184/0x2b0
[ 1318.186471] [<80025140>] run_ksoftirqd+0x28/0x80
[ 1318.191238] [<8003bae0>] smpboot_thread_fn+0x148/0x178
[ 1318.196530] [<80039390>] kthread+0xdc/0xe8
[ 1318.200744] [<800010a8>] ret_from_kernel_thread+0x14/0x1c
[ 1318.206200] 
[ 1318.207747] 
Code: 00003021  0801e0ce  24a57888 <8c820000> 3042c000  10400003  00801821  0801df95  00000000 
[ 1318.218397] ---[ end trace 2502a626803fb4b9 ]---
[ 1318.231740] Kernel panic - not syncing: Fatal exception in interrupt
[ 1318.243362] Rebooting in 3 seconds..

This looks similar to: https://dev.openwrt.org/ticket/11091

17.09.2016181Base systemBug ReportVery LowMediumChanging TX power doesn't nothing (MediaTek MT7628AN ve...TrunkUnconfirmed Task Description

Hello,

As I said, if I change the TX power from 0 dBm to 20 dBm doesn’t nothing. There isn’t any visible change in tx power. I tested other powers too (5, 8, 15,..).

It is a Xiaomi Nano (lite).

SoC Type: MediaTek MT7628AN ver:1 eco:2
MIPS: machine is MiWiFi Nano
Linux version 4.4.19 (-) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1444) ) #0 Fri Aug 26 15:03:40 2016.

11.10.2016219ToolchainBug ReportVery LowMediumBad paths in SDK makefileTrunkUnconfirmed Task Description

I’m seeing this on fresh trunk during SDK “compilation”.

tar -xf - -C /home/diizzy/lede-testme-tarball/source/build_dir/target-mips_24kc_musl-1.1.15/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64
find: '/home/diizzy/lede-testme-tarball/source/build_dir/target-mips_24kc_musl-1.1.15/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/host/usr/bin': No such file or directory
find: '/home/diizzy/lede-testme-tarball/source/build_dir/target-mips_24kc_musl-1.1.15/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/host/usr/lib': No such file or directory
Makefile:69: recipe for target '/home/diizzy/lede-testme-tarball/source/bin/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.bz2' failed
make[3]: [/home/diizzy/lede-testme-tarball/source/bin/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.bz2] Error 123 (ignored)
17.10.2016235Base systemBug ReportVery LowMediumArcher C50 loses settings on sysupgradeTrunkAssigned Task Description

Sysupgrade on r1925 to another r1925 build makes the device lose all settings and return to factory settings.

This problem was there before on the Archer C50.

 


02.11.2016262Base systemBug ReportVery LowMediumTP-Link Archer C2600 LED's not working properlyTrunkUnconfirmed Task Description

The LEDs on the Archer C2600 don’t work properly. The WLAN lights don’t work at all (I believe that they are controlled PCIE chips and not GPIO) and the LAN and WAN lights are always on regardless of a cable being connected.

JW


02.11.2016263KernelBug ReportVery LowMediumWRT3200ACM WAN connection failure in under 24 hoursTrunkWaiting on reporter Task Description

Symptom

WAN connectivity is lost until the device is rebooted; failure aligns with stack trace (attached). I’ve observed three failures of this same type, and all have occurred at around 18 hours of device up time. Work-around (yet to be tested) is to schedule a periodic device reboot every 12 hours.

Device problem occurs on

  • Linksys WRT3200ACM (version 1)
  • LEDE configuration is near-stock, with the only modifications being PPPoE configuration and WiFi setup/enable. Issue does not appear to be similar to FS#227 (PPPoE).

Software versions of LEDE release, packages, etc.

Release:

  [0.000000] Linux version 4.4.28 (buildbot@builds) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2062) ) #0 SMP Mon Oct 31 16:13:37 2016
  [0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
  [0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  [0.000000] Machine model: Linksys WRT3200ACM

Packages:

  Default packages + luci-ssl

Possibly helpful info (80211 related output in log):

  <<Marvell 802.11ac Wireless Network Driver version 10.3.2.0-20161011>>
  pci 0000:00:01.0: enabling device (0140 -> 0142)
  ieee80211 phy0: priv->iobase0 = e0e00000
  ieee80211 phy0: priv->iobase1 = e1080000
  ieee80211 phy0: priv->pcmd_buf = de248000  priv->pphys_cmd_buf = 1e248000
  ieee80211 phy0: fw download start
  ieee80211 phy0: FwSize = 207660 downloaded Size = 207660 curr_iteration 65522
  ieee80211 phy0: fw download complete
  ieee80211 phy0: pcmd = de248000
  ieee80211 phy0: firmware version: 0x7080004
  ieee80211 phy0: firmware region code: 10
  ieee80211 phy0: 2G disabled, 5G enabled
  ieee80211 phy0: 4 TX antennas, 4 RX antennas
  pci 0000:00:02.0: enabling device (0140 -> 0142)
  ieee80211 phy1: priv->iobase0 = e1200000
  ieee80211 phy1: priv->iobase1 = e1480000
  ieee80211 phy1: priv->pcmd_buf = dda20000  priv->pphys_cmd_buf = 1da20000
  ieee80211 phy1: fw download start
  ieee80211 phy1: FwSize = 207660 downloaded Size = 207660 curr_iteration 65527
  ieee80211 phy1: fw download complete
  ieee80211 phy1: pcmd = dda20000
  ieee80211 phy1: firmware version: 0x7080004
  ieee80211 phy1: firmware region code: 10
  ieee80211 phy1: 2G enabled, 5G disabled
  ieee80211 phy1: 4 TX antennas, 4 RX antennas

Steps to reproduce

Device was idle before the stack trace, but logs show some DHCP-related activity within 1 minute prior to the fault.

Stack Trace

Wed Nov  2 17:10:41 2016 kern.err kernel: [74541.045379] ieee80211 phy1: create ba result error 1
Wed Nov  2 17:10:41 2016 kern.err kernel: [74541.059396] ieee80211 phy1: ampdu operation error code: -22
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.085673] ------------[ cut here ]------------
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.090364] WARNING: CPU: 0 PID: 5305 at compat-wireless-2016-10-08/net/mac80211/agg-tx.c:398 ___ieee80211_stop_tx_ba_session+0x1e8/0x1f8 [mac80211]()
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.103914] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 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 slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_fWed Nov  2 17:10:42 2016 kern.warn kernel: [74542.162765] CPU: 0 PID: 5305 Comm: kworker/u4:2 Not tainted 4.4.28 #0
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.169230] Hardware name: Marvell Armada 380/385 (Device Tree)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.175192] Workqueue: phy1 ieee80211_iface_work [mac80211]
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.180804] [<c0027d80>] (unwind_backtrace) from [<c0024500>] (show_stack+0x10/0x14)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.188584] [<c0024500>] (show_stack) from [<c021779c>] (dump_stack+0x8c/0xa0)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.195838] [<c021779c>] (dump_stack) from [<c0034e5c>] (warn_slowpath_common+0x94/0xb0)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.203962] [<c0034e5c>] (warn_slowpath_common) from [<c0034f14>] (warn_slowpath_null+0x1c/0x24)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.212799] [<c0034f14>] (warn_slowpath_null) from [<bf0849fc>] (___ieee80211_stop_tx_ba_session+0x1e8/0x1f8 [mac80211])
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.223749] [<bf0849fc>] (___ieee80211_stop_tx_ba_session [mac80211]) from [<bf084df0>] (__ieee80211_stop_tx_ba_session+0x2c/0x40 [mac80211])
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.236527] [<bf084df0>] (__ieee80211_stop_tx_ba_session [mac80211]) from [<bf089174>] (ieee80211_iface_work+0x1c0/0x610 [mac80211])
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.248510] [<bf089174>] (ieee80211_iface_work [mac80211]) from [<c00494a4>] (process_one_work+0x228/0x3bc)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.258292] [<c00494a4>] (process_one_work) from [<c0049948>] (worker_thread+0x310/0x504)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.266505] [<c0049948>] (worker_thread) from [<c004e65c>] (kthread+0xf0/0xf8)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.273758] [<c004e65c>] (kthread) from [<c0009d38>] (ret_from_fork+0x14/0x3c)
Wed Nov  2 17:10:42 2016 kern.warn kernel: [74542.281021] ---[ end trace 09d229b863156d80 ]---
07.11.2016273KernelBug ReportVery LowMediummac80211 IBSS: Error print on IBSS joinTrunkUnconfirmed Task Description

Hardware:
- Gateworks iMX6
- Radio MiktroTik R11e-5HnD

LEDE version used:
578f7b9c597b0ea9bcf0726cc681713c0672edfe

Repro rate:
1%

After some time in a IBSS setup, following below appeared
When it does, the connection still works but it still doesnt look fine and could lead to worse.. :

If more info is required, please let me know.
The board showing this error is still running in this state.

[ 743.735572] device wlan0 entered promiscuous mode
[ 748.945565] device wlan0 left promiscuous mode
[ 1102.652670] ————[ cut here ]———— [ 1102.652763] WARNING: CPU: 0 PID: 4070 at compat-wireless-2016-10-08/net/mac80211/sta_info.c:451 sta_info_insert_rcu+0×78/0×594 [mac80211]()
[ 1102.652772] Modules linked in: mbt_netlink mbt ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath sierra pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE ftdi_sio ebtable_nat ebtable_filter ebtable_broute cfg80211 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_DNETMAP xt_CT xt_CLASSIFY usbserial ts_kmp ts_fsm ts_bm slhc sky2 nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables flexcan ebtables ebt_vlan ebt_stp ebt_snat ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_ip ebt_dnat ebt_arpreply ebt_arp ebt_among ebt_802_3 crc_ccitt compat_xtables compat can_raw can_dev can br_netfilter at24 em_cmp sch_teql em_nbyte sch_tbf sch_dsmark sch_pie sch_codel sch_gred sch_htb cls_basic act_ipt sch_prio em_text em_meta act_police sch_red sch_sfq sch_fq act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress gsc hwmon snd_soc_imx_sgtl5000 snd_soc_sgtl5000 snd_soc_fsl_ssi imx_pcm_dma snd_soc_imx_audmux snd_soc_core ledtrig_heartbeat xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables gw16083 igb i2c_algo_bit ifb dummy tun snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore leds_gpio phy_mxs_usb ci_hdrc_imx usbmisc_imx ci_hdrc udc_core uhci_hcd ehci_platform ehci_hcd usbcore usb_common pps_gpio
[ 1102.653485] CPU: 0 PID: 4070 Comm: kworker/u4:0 Not tainted 4.4.30 #0
[ 1102.653495] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 1102.653564] Workqueue: phy0 ieee80211_iface_work [mac80211]
[ 1102.653574] Backtrace:
[ 1102.653600] [<800239fc>] (dump_backtrace) from [<80023bf4>] (show_stack+0×18/0x1c)
[ 1102.653609] r7:000001c3 r6:7f4a94e2 r5:60000013 r4:00000000
[ 1102.653640] [<80023bdc>] (show_stack) from [<801f08cc>] (dump_stack+0×84/0xa4)
[ 1102.653664] [<801f0848>] (dump_stack) from [<800323cc>] (warn_slowpath_common+0x8c/0xb8)
[ 1102.653671] r5:00000009 r4:00000000
[ 1102.653695] [<80032340>] (warn_slowpath_common) from [<8003249c>] (warn_slowpath_null+0×24/0x2c)
[ 1102.653703] r8:9ec3ea08 r7:9ec3e950 r6:9ec3e480 r5:9e4ee000 r4:9ebbcfb4
[ 1102.653780] [<80032478>] (warn_slowpath_null) from [<7f468524>] (sta_info_insert_rcu+0×78/0×594 [mac80211])
[ 1102.653867] [<7f4684ac>] (sta_info_insert_rcu [mac80211]) from [<7f473724>] (ieee80211_sta_join_ibss+0×614/0×1060 [mac80211])
[ 1102.653875] r10:00000088 r9:9f7f0400 r8:9ec3ea08 r7:9ec3e950 r6:9ec3e480 r5:9ec3ea04
[ 1102.653898] r4:9e4ee000
[ 1102.653978] [<7f4735a0>] (
ieee80211_sta_join_ibss [mac80211]) from [<7f4748b4>] (ieee80211_ibss_work+0x7c/0×430 [mac80211])
[ 1102.653986] r6:9e4ee000 r5:9ec3ea04 r4:9ec3e480
[ 1102.654072] [<7f474838>] (ieee80211_ibss_work [mac80211]) from [<7f475624>] (ieee80211_iface_work+0x33c/0×598 [mac80211])
[ 1102.654080] r10:00000088 r9:9f7f0400 r8:9ec3e884 r7:9ebbcb60 r6:00000000 r5:9ec3e480
[ 1102.654103] r4:9f5a2e80
[ 1102.654158] [<7f4752e8>] (ieee80211_iface_work [mac80211]) from [<80045550>] (process_one_work+0x1e0/0×318)
[ 1102.654165] r10:00000088 r9:9f7f0400 r8:00000000 r7:9f5a2e98 r6:9ec3e884 r5:9f40bc00
[ 1102.654187] r4:9f5a2e80
[ 1102.654208] [<80045370>] (process_one_work) from [<800462e8>] (worker_thread+0x2e0/0×430)
[ 1102.654215] r10:00000088 r9:00000000 r8:9f40bc14 r7:9f5a2e98 r6:9f40bc00 r5:9f40bc00
[ 1102.654238] r4:9f5a2e80
[ 1102.654262] [<80046008>] (worker_thread) from [<8004a500>] (kthread+0xe0/0xf4)
[ 1102.654269] r10:00000000 r9:00000000 r8:00000000 r7:80046008 r6:9f5a2e80 r5:00000000
[ 1102.654290] r4:9e641b00 r3:9ef65400
[ 1102.654316] [<8004a420>] (kthread) from [<80009c78>] (ret_from_fork+0×14/0x3c)
[ 1102.654323] r7:00000000 r6:00000000 r5:8004a420 r4:9e641b00
[ 1102.654342] —[ end trace 2a69f6e20e6ebe6c ]— [ node-11 ]

29.11.2016315Base systemFeature RequestVery LowMediumImprove sysupgrade (CLI) on dual-partition routersTrunkUnconfirmed Task Description

Some of the recent Linksys (maybe other) routers have two partitions: WRT1900, EA8500, etc.

Would be great if when running sysupgrade on those routers it did NOT kill all active processes and kept the router working while writing an image to the inactive partition.

Would also be great if there was an option to prevent automatic reboot after writing an image.

Ultimate goal is to have an upgrade process where current working state is uninterrupted and only when you reboot – you boot into new image.

28.12.2016362Base systemBug ReportVery LowMediumWR1043ND v4 Slow WAN -> LAN Whilst Synced @100MbpsTrunkWaiting on reporter Task Description

Recently, builds for this device have started to be made, but there’s a very peculiar issue I’ve found. Any client that is synced to 100 Mbps (and not 1 Gbps, in my case due to incapacity of the cable used) gets their speed seemingly throttled to 20-30 Mbps. My connection is a 100 Mbps connection, and I get full 95 Mbps (Hardware NAT disabled) on the stock firmware, and I also get this speed on LEDE only if I use a 1 Gbps link.

Speedtest on the stock firmware with the 100 Mbps link: http://www.speedtest.net/result/5904234776.png Speedtest on the latest LEDE with the 100 Mbps link: http://www.speedtest.net/result/5915271748.png 1 Gbps links get full speed, as expected.

If I perform a transfer from LAN to LAN, I get full speed on the 100 Mbps link. The resulting speed graph is not a hard-cap, but seemingly some kind of throttle/flow control being applied. I cannot change any settings with ethtool as it throws ‘not supported’ errors.

Only happens WAN > LAN connections.
Nothing of interest in the logs, unless I can somehow get a more verbose log of the connection status.

08.01.2017375ToolchainBuild FailureVery LowMediumBulidbots should have multilib support installed to pre...TrunkUnconfirmed Task Description

I’ve run into this earlier myself and now we are seeing at least one package failing because of it.
https://github.com/openwrt/packages/pull/2823

People seem to have run into this issue before since it’s listed as a requirement for Ubuntu 64-bit as an example.
https://wiki.openwrt.org/doc/howto/buildroot.exigence#examples_of_package_installations

24.01.2017427Base systemBug ReportVery LowMediumSwitch broken with WRT3200ACM (removes wifi adapters an...TrunkUnconfirmed Task Description

- Device problem occurs on:

WRT3200ACM

- Software versions of LEDE release, packages, etc.:

master tree (and v17.01), bisected to f24ffb901e0408917748773b883841eca52eea05.

- Steps to reproduce

* Flash a recent LEDE snapshot on the WRT3200ACM (and factory reset),
* enable wifi (2 or 5 Gz) → Wifi works
* disable wifi → errors in the dmesg about not being able to set a feature (can’t remember the exact error)
* re-enable wifi → errors in the dmesg saying that the adapter does not exist. This gets shouted in the dmesg every 5 seconds

A reboot doesn’t fix the issue. I need to downgrade the firmware prior to f24ffb901e0408917748773b883841eca52eea05 and factory reset to get the wifi adapters back.

For the Vlan bridge, symptoms are easier to detect:
* create a new adapter bridged on eth0.100 eth1.100
* no traffic goes through it. An snapshot before f24ffb901 used to work
(the setup is the Free french provider which has a vlan between the modem and the TV adapter over VLAN 100. So the LEDE box should act like a pass-through here only)

I bisected to the commit mentioned above (which, to me seems suspicious given that the driver is for mvsw61xx and the switch in the WRT3200ACM is MV88E6352, so a different generation). I don’t have enough knowledge of the chip to understand why this fails, but I don’t feel confident enough to simply send a PR with the revert.

Reverting f24ffb901e on top of master makes the Wifi and VLAN back to normal.


02.02.2017455Base systemBug ReportVery LowMediumLEDE 17.01.0-rc1 & Netgear WNDR3400v2 - No Wi-Fi menulede-17.01Unconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
- Software versions of LEDE release, packages, etc.
- Steps to reproduce

 

Fresh install of 17.01.0-rc1 on Netgear WNDR3400v2

Powered by LuCI 472dc4b9e2ca71c114f5da70cb612c1089b8daa7 branch (git-17.025.85178-472dc4b) / LEDE Reboot 17.01.0-rc1 r3042-ec095b5 r0+3043-68a04db

The LuCI web gui does not show Network → WiFi, nor does /etc/config/wireless exist when I ssh in. Is this expected? Can it be fixed? (I don’t know, and can’t tell from the OpenWrt Device Page, whether Wi-Fi should work on this device.) Thanks!

04.02.2017461Base systemBug ReportVery LowMediumMass Cascade of DHCP ULA Prefix Assignments with DHCP-P...AllUnconfirmed Task Description

Here is one that gets a bit ugly. Lets say we chain a bunch of LEDE based routers together. Lets also enable a nice numbering system in IP4 and IP6. Lets enable DHCP-PD through the network, because our ISP was generous with a /56. The IP4 is only static and is easy to control, see table below. Its tedious, but easy. The problem is in parallel the IP6 addresses compound in the ULA region. Each router DHCP-PD the ULA above it, and gets its own ULA from Global settings in Network UCI. There seems no easy way to control this mass cascade of ULA, and get good fail over.

Ideal Requirements:
(1) If router above is unavailable, then next tier router uses ULA (network global UCI) to begin assigning addresses to clients and subnets.
(2) If router above is available, then next tier router expires its self-generated ULA and subnets, and gets ULA from delegation above to then re-delegate to subnets.
(*) Bonus: make some parts optional

IP4 WAN Name Serves Subnet
(NAT) Router-1 172.16.0.1/24
172.16.0.2 Router-2A 172.17.0.1/24
172.17.0.2 Router-3A 172.24.0.1/24
172.17.0.3 Router-3B 172.25.0.1/24
172.16.0.3 Router-2B 172.18.0.1/24

IP6 Roots Name Serves Subnet Delegates Subnet
2001:db8/56 Router-1 2001:db8::1/64 2001:db8:0:10/60
fd00:ac10/48 fd00:ac10::1/64 2001:db8:0:20/60

                                                fd00:ac10:0:10/60
                                                fd00:ac10:0:20/60

2001:db8:0:10/60 Router-2A 2001:db8:0:10::1/64 2001:db8:0:14/62
fd00:ac10:0:10/60 fd00:ac10:0:10::1/64 2001:db8:0:18/62
fd00:ac11/48 fd00:ac11::1/64 fd00:ac10:0:14/62

                                                fd00:ac10:0:18/62
                                                fd00:ac11:0:14/62
                                                fd00:ac11:0:18/62

* please, i don’t want to type more. see how the ULA prefixes just keep multiplying.
** ‘172.16’ = ‘ac10’

06.02.2017472Base systemBug ReportVery LowMedium6to4 support with 1:1 natTrunkWaiting on reporter Task Description

One-to-one NAT means you have LAN address on interface and its mapped 1:1 to external ip addresses.
You can have incoming connections.

In such configuration “ipaddr” must be specified in 6to4 protocol section.
But due to bug this addr is submitted as local address for tunnel creation.
It does not work.

I fixed this with the following patch to /lib/netifd/proto/6to4.sh

48,53c48,53
< [ -z “$ipaddr” ] && {
< if ! network_get_ipaddr ipaddr “$wanif”; then
< proto_notify_error “$cfg” “NO_WAN_ADDRESS” < return
< fi
< }

if ! network_get_ipaddr ipladdr “$wanif”; then
> proto_notify_error “$cfg” “NO_WAN_ADDRESS”
return
> fi
>
> [ -z “$ipaddr” ] && ipaddr=$ipladdr
76c76
< json_add_string local “$ipaddr”

json_add_string local “$ipladdr”

I suggest you integrate this patch or do something similar yourself.

06.02.2017475KernelBug ReportVery LowMediumPSG1208 LEDAllUnconfirmed Task Description

Mon Feb 6 22:38:18 2017 kern.err kernel: [10214.442640] rt2880-pinmux pinctrl: pin 39 is not set to gpio mux
Mon Feb 6 22:38:18 2017 kern.err kernel: [10214.454723] rt2880-pinmux pinctrl: request() failed for pin 39
Mon Feb 6 22:38:18 2017 kern.err kernel: [10214.466369] rt2880-pinmux pinctrl: pin-39 (pio:39) status -22
Mon Feb 6 22:38:29 2017 kern.err kernel: [10218.295289] rt2880-pinmux pinctrl: pin 39 is not set to gpio mux
Mon Feb 6 22:38:29 2017 kern.err kernel: [10218.307342] rt2880-pinmux pinctrl: request() failed for pin 39
Mon Feb 6 22:38:29 2017 kern.err kernel: [10218.318994] rt2880-pinmux pinctrl: pin-39 (pio:39) status -22
Mon Feb 6 22:38:39 2017 kern.err kernel: [10221.792414] rt2880-pinmux pinctrl: pin 39 is not set to gpio mux
Mon Feb 6 22:38:39 2017 kern.err kernel: [10221.804466] rt2880-pinmux pinctrl: request() failed for pin 39
Mon Feb 6 22:38:39 2017 kern.err kernel: [10221.816116] rt2880-pinmux pinctrl: pin-39 (pio:39) status -22
Mon Feb 6 22:39:03 2017 kern.err kernel: [10229.884578] rt2880-pinmux pinctrl: pin 39 is not set to gpio mux
Mon Feb 6 22:39:03 2017 kern.err kernel: [10229.896642] rt2880-pinmux pinctrl: request() failed for pin 39
Mon Feb 6 22:39:03 2017 kern.err kernel: [10229.908283] rt2880-pinmux pinctrl: pin-39 (pio:39) status -22
Mon Feb 6 22:39:10 2017 kern.warn kernel: [10232.226049] export_store: invalid GPIO 40
Mon Feb 6 22:39:21 2017 kern.warn kernel: [10235.827719] export_store: invalid GPIO 41
Mon Feb 6 22:39:26 2017 kern.warn kernel: [10237.735140] export_store: invalid GPIO 42
Mon Feb 6 22:39:32 2017 kern.warn kernel: [10239.839502] export_store: invalid GPIO 43
Mon Feb 6 22:39:38 2017 kern.warn kernel: [10241.622103] export_store: invalid GPIO 44

 


09.02.2017487KernelBug ReportVery LowMediumVGV7510KW22 / o2 Box 6431 / RT3062F: Very poor Wi-Fi pe...AllNew Task Description

Actual Wi-Fi performance is abnormally poor and unusually variable, no matter the settings (mode, channels, encryption).

These tests were carried out in quick succession while the LuCI web interface showed a signal strength of -46 - -50 dBm:

[localhost ~]$ iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.171 port 42922 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  1.36 MBytes  11.4 Mbits/sec    0   14.1 KBytes       
[  4]   1.00-2.00   sec   964 KBytes  7.90 Mbits/sec    5   11.3 KBytes       
[  4]   2.00-3.00   sec   816 KBytes  6.68 Mbits/sec    4   4.24 KBytes       
[  4]   3.00-4.00   sec   979 KBytes  8.02 Mbits/sec    5   9.90 KBytes       
[  4]   4.00-5.00   sec  1.38 MBytes  11.6 Mbits/sec    0   11.3 KBytes       
[  4]   5.00-6.00   sec  1.24 MBytes  10.4 Mbits/sec    1   9.90 KBytes       
[  4]   6.00-7.00   sec   943 KBytes  7.72 Mbits/sec    2   7.07 KBytes       
[  4]   7.00-8.00   sec  1024 KBytes  8.39 Mbits/sec    7   8.48 KBytes       
[  4]   8.00-9.00   sec  1.11 MBytes  9.29 Mbits/sec    1   9.90 KBytes       
[  4]   9.00-10.00  sec  1.41 MBytes  11.8 Mbits/sec    0   11.3 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  11.1 MBytes  9.32 Mbits/sec   25             sender
[  4]   0.00-10.00  sec  11.1 MBytes  9.30 Mbits/sec                  receiver

iperf Done.
[localhost ~]$ iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.171 port 42954 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   187 KBytes  1.53 Mbits/sec    3   9.90 KBytes       
[  4]   1.00-2.00   sec   638 KBytes  5.22 Mbits/sec    0   11.3 KBytes       
[  4]   2.00-3.00   sec   561 KBytes  4.60 Mbits/sec    0   14.1 KBytes       
[  4]   3.00-4.00   sec   417 KBytes  3.42 Mbits/sec    0   14.1 KBytes       
[  4]   4.00-5.00   sec   307 KBytes  2.51 Mbits/sec    4   8.48 KBytes       
[  4]   5.00-6.00   sec   370 KBytes  3.04 Mbits/sec    2   8.48 KBytes       
[  4]   6.00-7.00   sec   365 KBytes  2.99 Mbits/sec    1   8.48 KBytes       
[  4]   7.00-8.00   sec   281 KBytes  2.30 Mbits/sec    2   1.41 KBytes       
[  4]   8.00-9.00   sec   204 KBytes  1.67 Mbits/sec    8   8.48 KBytes       
[  4]   9.00-10.00  sec   344 KBytes  2.81 Mbits/sec    2   8.48 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  3.59 MBytes  3.01 Mbits/sec   22             sender
[  4]   0.00-10.00  sec  3.56 MBytes  2.99 Mbits/sec                  receiver

iperf Done.
[localhost ~]$ iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.171 port 42960 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   259 KBytes  2.12 Mbits/sec    2   9.90 KBytes       
[  4]   1.00-2.00   sec   923 KBytes  7.57 Mbits/sec    2   11.3 KBytes       
[  4]   2.00-3.00   sec  1.08 MBytes  9.06 Mbits/sec    0   11.3 KBytes       
[  4]   3.00-4.00   sec  1.34 MBytes  11.2 Mbits/sec    2   9.90 KBytes       
[  4]   4.00-5.00   sec   652 KBytes  5.34 Mbits/sec    8   4.24 KBytes       
[  4]   5.00-6.00   sec  1.31 MBytes  11.0 Mbits/sec    1   11.3 KBytes       
[  4]   6.00-7.00   sec  1.37 MBytes  11.5 Mbits/sec    0   15.6 KBytes       
[  4]   7.00-8.00   sec  1.24 MBytes  10.4 Mbits/sec    1   12.7 KBytes       
[  4]   8.00-9.00   sec   683 KBytes  5.59 Mbits/sec    8   9.90 KBytes       
[  4]   9.00-10.00  sec  1.16 MBytes  9.72 Mbits/sec    2   7.07 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  9.96 MBytes  8.35 Mbits/sec   26             sender
[  4]   0.00-10.00  sec  9.93 MBytes  8.33 Mbits/sec                  receiver

iperf Done.

Confirmed with 17.01.0-rc1, 17.01.0-rc2, SNAPSHOT r3350-aab344d (all NOR images) and different client machines.

On a side note, ethernet performance is also diminished:

[localhost ~]$ iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.161 port 57264 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  9.70 MBytes  81.3 Mbits/sec    0    215 KBytes       
[  4]   1.00-2.00   sec  8.96 MBytes  75.2 Mbits/sec    0    215 KBytes       
[  4]   2.00-3.00   sec  9.37 MBytes  78.6 Mbits/sec    4    156 KBytes       
[  4]   3.00-4.00   sec  10.3 MBytes  86.6 Mbits/sec    6    106 KBytes       
[  4]   4.00-5.00   sec  10.4 MBytes  87.0 Mbits/sec    0    161 KBytes       
[  4]   5.00-6.00   sec  8.88 MBytes  74.5 Mbits/sec    2    156 KBytes       
[  4]   6.00-7.00   sec  9.01 MBytes  75.6 Mbits/sec    2    143 KBytes       
[  4]   7.00-8.00   sec  9.47 MBytes  79.5 Mbits/sec    8    140 KBytes       
[  4]   8.00-9.00   sec  10.3 MBytes  86.6 Mbits/sec    6    141 KBytes       
[  4]   9.00-10.00  sec  10.4 MBytes  87.3 Mbits/sec    4    144 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  96.8 MBytes  81.2 Mbits/sec   32             sender
[  4]   0.00-10.00  sec  96.5 MBytes  80.9 Mbits/sec                  receiver

iperf Done.
09.02.2017488Base systemBug ReportVery LowMediumdynamic VLAN doesn't work on ath10klede-17.01Unconfirmed Task Description

Dynamic vlan config on ath10k seems not to work. Same config on ath9k works fine.

Config:

config wifi-device  radio0
        option type     mac80211
        option channel  36
        option hwmode   11a
        option path     'pci0000:01/0000:01:00.0'
        option htmode   VHT80
[...]

config wifi-iface
        option device   radio0
        option network  vlan1
        option mode     ap
[...]
        option dynamic_vlan     '1'
        option 'vlan_tagged_interface' 'eth1'
        option 'vlan_bridge' 'br-vlan'
        option 'vlan_naming' '0'

Log:

Thu Feb  9 15:54:37 2017 daemon.err hostapd: WPA initialization for VLAN 1 failed (-1)
Thu Feb  9 15:54:37 2017 daemon.err hostapd: WPA deinit of wlan0.1 failed
Thu Feb  9 15:54:37 2017 daemon.debug hostapd: wlan0: STA ac:22:0b:a1:c7:6b IEEE 802.11: could not add dynamic VLAN interface for vlan=1
11.02.2017496KernelBug ReportVery LowMediumNo USB on Buffalo WZR-HP-AG300Hlede-17.01Unconfirmed Task Description

Hi,
I have just tried installing lede-17.01.0-rc2-r3131-42f3c1f-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin on my Buffalo WZR-HP-AG300H.

I would like to use it with my iPhone or USB WWAN device, but it does not detect either of them. When I plug the iPhone in, it doesn’t even start to charge.

I downgraded to openwrt-15.05.1-ar71xx-generic-wzr-hp-ag300h-squashfs-sysupgrade.bin and both the devices show up in dmesg and the iPhone starts charging.

Thanks,
Wayne

12.02.2017502Base systemBug ReportVery LowMediumSwitch not configured on Asus RT-N12 B1 (brcm47xx)lede-17.01New Task Description

Device problem occurs on is Asus RT-N12 B1

lede-17.01.0-rc2-r3131-42f3c1f-brcm47xx-mips74k-asus-rt-n12-b1-squashfs.trx

Switch is not recognized so a WAN is not available. Switch was automatically recognized in OpenWrt 15.05.1 and only issue with network was that WAN was initially set on swith port 0 when it should have been set on switch port 4.



dmesg output from lede 17.01.0-rc2:

[    0.000000] Linux version 4.4.47 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3104-41de9a2) ) #0 Tue Feb 7 08:32:47 2017
[    0.000000] CPU0 revision is: 00019749 (MIPS 74Kc)
[    0.000000] bcm47xx: Using bcma bus
[    0.000000] bcma: bus0: Found chip with id 53572, rev 0x01 and package 0x08
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 8034e4c0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 32kB, 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: 8128
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28452K/32768K available (2974K kernel code, 139K rwdata, 368K rodata, 156K init, 294K bss, 4316K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x27, class 0x0)
[    0.000000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1C, class 0x0)
[    0.000000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x03, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x05, class 0x0)
[    0.000000] bcma: bus0: Core 4 found: SDR/DDR1 Memory Controller (manuf 0x4BF, id 0x835, rev 0x02, class 0x0)
[    0.000000] bcma: bus0: Found rev 9 PMU (capabilities 0x28982A09)
[    0.000000] bcma: bus0: Found serial flash
[    0.000000] bcma: bus0: Found M25P64 serial flash (size: 8192KiB, blocksize: 0x10000, blocks: 128)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Asus RT-N12B1
[    0.000000] bcm47xx: Setting up vectored interrupts
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
[    0.000020] sched_clock: 32 bits at 150MHz, resolution 6ns, wraps every 14316557820ns
[    0.000106] Calibrating delay loop... 149.91 BogoMIPS (lpj=749568)
[    0.070106] pid_max: default: 32768 minimum: 301
[    0.070427] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070469] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.075669] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.077282] NET: Registered protocol family 16
[    0.104780] clocksource: Switched to clocksource MIPS
[    0.107686] NET: Registered protocol family 2
[    0.109893] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109974] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110031] TCP: Hash tables configured (established 1024 bind 1024)
[    0.110257] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.110437] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.111015] NET: Registered protocol family 1
[    0.111161] PCI: CLS 0 bytes, default 32
[    0.597625] bcma: bus0: Using SPROM revision 8 provided by platform.
[    0.597676] bcma: bus0: PMU resource config unknown or not needed for device 0xD144
[    0.599703] bcma: bus0: Workarounds unknown or not needed for device 0xD144
[    0.599729] bcma: bus0: Initializing MIPS core...
[    0.599766] bcma: bus0: set_irq: core 0x0812, irq 3 => 3
[    0.599798] bcma: bus0: set_irq: core 0x082d, irq 4 => 4
[    0.599829] bcma: bus0: set_irq: core 0x0800, irq 2 => 2
[    0.599851] bcma: bus0: IRQ reconfiguration done
[    0.599874] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I 
[    0.599945] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I 
[    0.600007] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I 
[    0.600068] bcma: core 0x082c, irq : 2(S)  3  4  5  6  D  I*
[    0.600131] bcma: core 0x0835, irq : 2(S)  3  4  5  6  D* I 
[    0.601715] bcma: bus0: Bus registered
[    0.603117] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.603286] Crashlog allocated RAM at address 0x1f00000
[    0.643551] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.643594] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.650495] io scheduler noop registered
[    0.650540] io scheduler deadline registered (default)
[    0.651053] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.658270] console [ttyS0] disabled
[    0.678614] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2, base_baud = 1250000) is a U6_16550A
[    1.074009] console [ttyS0] enabled
[    1.250464] 6 bcm47xxpart partitions found on MTD device bcm47xxsflash
[    1.257198] Creating 6 MTD partitions on "bcm47xxsflash":
[    1.262711] 0x000000000000-0x000000020000 : "boot"
[    1.273234] 0x000000020000-0x0000007f0000 : "firmware"
[    1.282638] 0x0000007f0000-0x000000800000 : "nvram"
[    1.291759] 0x00000002001c-0x00000002091c : "loader"
[    1.300949] 0x00000002091c-0x000000145800 : "linux"
[    1.310167] 0x000000145800-0x0000007f0000 : "rootfs"
[    1.319386] mtd: device 5 (rootfs) set to be root filesystem
[    1.325369] 1 squashfs-split partitions found on MTD device rootfs
[    1.331711] 0x000000300000-0x0000007f0000 : "rootfs_data"
[    1.345795] libphy: Fixed MDIO Bus: probed
[    1.350282] bgmac_bcma bcma0:2: Found PHY addr: 30 (NOREGS)
[    1.360669] libphy: bcma_mdio mii bus: probed
[    1.365256] bgmac_bcma bcma0:2: Support for Roboswitch not implemented
[    1.496122] b53_common: found switch: BCM5325, rev 4
[    1.502998] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    1.509629] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.520532] NET: Registered protocol family 10
[    1.534005] NET: Registered protocol family 17
[    1.538839] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.551744] 8021q: 802.1Q VLAN Support v1.8
[    1.568624] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.577364] Freeing unused kernel memory: 156K (80369000 - 80390000)
[    3.716189] init: Console is alive
[    3.720170] init: - watchdog -
[    4.287930] init: - preinit -
[    5.088942] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    6.694965] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.904669] jffs2: notice: (305) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   10.923756] mount_root: switching to jffs2 overlay
[   10.943399] urandom-seed: Seeding with /etc/urandom.seed
[   11.186490] procd: - early -
[   11.189714] procd: - watchdog -
[   11.994109] procd: - ubus -
[   12.179305] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.190479] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.200799] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.210171] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.220413] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.229786] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.240661] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.250494] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   12.260797] procd: - init -
[   13.845284] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.878283] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.901560] nf_conntrack version 0.5.0 (447 buckets, 1788 max)
[   13.981015] xt_time: kernel timezone is -0000
[   14.011330] PPP generic driver version 2.4.2
[   14.021580] NET: Registered protocol family 24
[   15.963517] random: jshn: uninitialized urandom read (4 bytes read, 25 bits of entropy available)
[   16.145341] random: ubusd: uninitialized urandom read (4 bytes read, 25 bits of entropy available)
[   24.737871] device eth0 entered promiscuous mode
[   24.768279] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   26.365075] br-lan: port 1(eth0) entered forwarding state
[   26.370711] br-lan: port 1(eth0) entered forwarding state
[   26.401836] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   28.364908] br-lan: port 1(eth0) entered forwarding state

dmesg output from OpenWrt 15.05.1:

[    0.000000] Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r48532) ) #1 Tue Mar 1 09:17:19 CET 2016
[    0.000000] CPU0 revision is: 00019749 (MIPS 74Kc)
[    0.000000] bcm47xx: Using bcma bus
[    0.000000] bcma: bus0: Found chip with id 53572, rev 0x01 and package 0x08
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802e4300, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 32kB, 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: 8128
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28904K/32768K available (2594K kernel code, 119K rwdata, 324K rodata, 148K init, 288K bss, 3864K reserved, 0K highmem)
[    0.000000] NR_IRQS:128
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x27, class 0x0)
[    0.000000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1C, class 0x0)
[    0.000000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x03, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x05, class 0x0)
[    0.000000] bcma: bus0: Core 4 found: SDR/DDR1 Memory Controller (manuf 0x4BF, id 0x835, rev 0x02, class 0x0)
[    0.000000] bcma: bus0: Found rev 9 PMU (capabilities 0x28982A09)
[    0.000000] bcma: bus0: Found serial flash
[    0.000000] bcma: bus0: Found M25P64 serial flash (size: 8192KiB, blocksize: 0x10000, blocks: 128)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Asus RT-N12B1
[    0.000000] bcm47xx: Setting up vectored interrupts
[    0.070000] Calibrating delay loop... 149.91 BogoMIPS (lpj=749568)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] NET: Registered protocol family 16
[    0.090000] Switched to clocksource MIPS
[    0.090000] NET: Registered protocol family 2
[    0.100000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.100000] TCP: reno registered
[    0.100000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 1
[    0.100000] PCI: CLS 0 bytes, default 32
[    0.540000] bcma: bus0: Using SPROM revision 8 provided by platform.
[    0.540000] bcma: bus0: PMU resource config unknown or not needed for device 0xD144
[    0.540000] bcma: bus0: Workarounds unknown or not needed for device 0xD144
[    0.540000] bcma: bus0: Initializing MIPS core...
[    0.540000] bcma: bus0: set_irq: core 0x0812, irq 3 => 3
[    0.540000] bcma: bus0: set_irq: core 0x082d, irq 4 => 4
[    0.540000] bcma: bus0: set_irq: core 0x0800, irq 2 => 2
[    0.540000] bcma: bus0: IRQ reconfiguration done
[    0.540000] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I 
[    0.540000] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I 
[    0.540000] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I 
[    0.540000] bcma: core 0x082c, irq : 2(S)  3  4  5  6  D  I*
[    0.540000] bcma: core 0x0835, irq : 2(S)  3  4  5  6  D* I 
[    0.540000] bcma: bus0: Bus registered
[    0.540000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.550000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.550000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.550000] msgmni has been set to 56
[    0.550000] io scheduler noop registered
[    0.550000] io scheduler deadline registered (default)
[    0.550000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.560000] console [ttyS0] disabled
[    0.580000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2, base_baud = 1250000) is a U6_16550A
[    0.920000] console [ttyS0] enabled
[    1.030000] 6 bcm47xxpart partitions found on MTD device bcm47xxsflash
[    1.030000] Creating 6 MTD partitions on "bcm47xxsflash":
[    1.040000] 0x000000000000-0x000000020000 : "boot"
[    1.050000] 0x000000020000-0x0000007f0000 : "firmware"
[    1.050000] 0x00000002001c-0x00000002090c : "loader"
[    1.060000] 0x00000002090c-0x000000127800 : "linux"
[    1.070000] 0x000000127800-0x0000007f0000 : "rootfs"
[    1.070000] mtd: device 4 (rootfs) set to be root filesystem
[    1.080000] 1 squashfs-split partitions found on MTD device rootfs
[    1.090000] 0x000000350000-0x0000007f0000 : "rootfs_data"
[    1.090000] 0x0000007f0000-0x000000800000 : "nvram"
[    1.100000] bgmac bcma0:2: Found PHY addr: 30 (NOREGS)
[    1.110000] bgmac bcma0:2: Support for Roboswitch not implemented
[    1.170000] libphy: bgmac mii bus: probed
[    1.290000] b53_common: found switch: BCM5325, rev 4
[    1.290000] bgmac: Broadcom 47xx GBit MAC driver loaded
[    1.300000] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.310000] TCP: cubic registered
[    1.310000] NET: Registered protocol family 17
[    1.310000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.330000] Bridge firewalling registered
[    1.330000] 8021q: 802.1Q VLAN Support v1.8
[    1.350000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.360000] Freeing unused kernel memory: 148K (802fb000 - 80320000)
[    3.710000] init: Console is alive
[    3.710000] init: - watchdog -
[    5.850000] init: - preinit -
[    6.870000] random: mktemp urandom read with 10 bits of entropy available
[   10.460000] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   10.520000] procd: - early -
[   10.520000] procd: - watchdog -
[   11.660000] procd: - ubus -
[   12.670000] procd: - init -
[   17.250000] NET: Registered protocol family 10
[   17.270000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   17.300000] Loading modules backported from Linux version master-2015-03-09-0-g141f155
[   17.310000] Backport generated by backports.git backports-20150129-0-gdd4a670
[   17.320000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.350000] nf_conntrack version 0.5.0 (453 buckets, 1812 max)
[   17.430000] xt_time: kernel timezone is -0000
[   17.480000] cfg80211: Calling CRDA to update world regulatory domain
[   17.520000] cfg80211: World regulatory domain updated:
[   17.520000] cfg80211:  DFS Master region: unset
[   17.530000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   17.540000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   17.550000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   17.550000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   17.560000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   17.570000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   17.580000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   17.590000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   17.600000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   17.710000] PPP generic driver version 2.4.2
[   17.720000] NET: Registered protocol family 24
[   17.770000] b43-phy0: Broadcom 53572 WLAN found (core revision 28)
[   17.780000] b43-phy0: Found PHY: Analog 9, Type 4 (N), Revision 17
[   17.790000] b43-phy0 ERROR: FOUND UNSUPPORTED RADIO (Manuf 0x17F, ID 0x2057, Revision 13, Version 0)
[   17.800000] b43: probe of bcma0:1 failed with error -122
[   17.800000] Broadcom 43xx driver loaded [ Features: NL ]
[   32.590000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   32.590000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   32.600000] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   38.630000] device eth0.1 entered promiscuous mode
[   38.640000] device eth0 entered promiscuous mode
12.02.2017503KernelBuild FailureVery LowMediumBuild fails with CONFIG_KERNEL_GIT_CLONE_URI beig setAllAssigned Task Description

When specifying

CONFIG_KERNEL_GIT_CLONE_URI

a clean build fails, as the system assumes a already downloaded/cloned/packed linux-source is present in dl/ which on a freshly checked out openwrt/lede source isn’t the case yet, when

toolchain/kernel-headers

is about to be built.

The build error looks like:

make[3]: Entering directory `/build/lede.git/toolchain/kernel-headers'
zcat /build/lede.git/dl/linux-4.4.42.tar.gz | tar -C /build/lede.git/build_dir/toolchain-arm_cortex-a9+neon_gcc-6.3.0_glibc-2.24_eabi -xf -
gzip: /build/lede.git/dl/linux-4.4.42.tar.gz: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

The issue apparently is located in

include/kernel-defaults.mk

, line 53ff::

  ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
    define Kernel/Prepare/Default
        zcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
        $(Kernel/Patch)
        $(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
    endef
  else
    define Kernel/Prepare/Default
        zcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
    endef
  endif

For the package

kernel-headers

it just tries to access the not-yet downloaded/cloned/packed linux kernel source archive.

13.02.2017506Base systemBug ReportVery LowMediumBT Home Hub 5: 5g WiFi jumps to channel 36 and stops wo...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on BT Home Hub 5
- Software versions of LEDE release, packages, r3425-f28eef4 and previous versions
- Steps to reproduce

It can be after a few hours, if WiFi 5g radio0 Qualcomm Atheros QCA9880 802.11nac (radio0) is configured to a Band B channel, it jumps to Channel 36 even though there is no apparent interference.
This appears to happen more frequently overnight during long periods of inactivity. Whilst the device is being used it does not happen.

After it does make the jump, if I stop and restart the device (using luci disable/enable) the device stops, but it fails to restart. Attempts to change the channel and re-enable the device also do not help.

It requires a reboot to restore service.

 


15.02.2017519KernelBug ReportVery LowMediumStack trace on ieee80211_i.h:1004lede-17.01Unconfirmed Task Description

Device: Archer C7 V2 with 17.01.0-rc2, r3131-42f3c1f.

I just ran ‘wifi’ from the console and saw severall stack traces on ieee80211_i.h:1004

 
Feb 15 17:48:45 10.0.0.3 kernel: [164189.216127] br-ocm: topology change detected, sending tcn bpdu
Feb 15 17:48:45 10.0.0.3 kernel: [164189.222158] br-ocm: port 2(wlan0) entered forwarding state
Feb 15 17:48:45 10.0.0.3 kernel: [164189.228201] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
Feb 15 17:48:45 10.0.0.3 kernel: [164189.235725] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
Feb 15 17:48:45 10.0.0.3 hostapd: send_auth_reply: send failed
Feb 15 17:48:46 10.0.0.3 kernel: [164189.291069] ------------[ cut here ]------------
Feb 15 17:48:46 10.0.0.3 kernel: [164189.295879] WARNING: CPU: 0 PID: 10121 at compat-wireless-2016-10-08/net/mac80211/ieee80211_i.h:1004 0x8759ea7c [mac80211@87580000+0x5f500]()
Feb 15 17:48:46 10.0.0.3 kernel: [164189.308890] Modules linked in: pppoe ppp_async iptable_nat ath9k pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ath9k_common xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle
Feb 15 17:48:46 10.0.0.3 kernel: [164189.383057]          ...
Feb 15 17:48:46 10.0.0.3 kernel: [164189.375549] CPU: 0 PID: 10121 Comm: hostapd Tainted: G        W       4.4.47 #0
Feb 15 17:48:46 10.0.0.3 kernel: [164189.383057] Stack : 803864d4 00000000 00000001 803e0000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.383057]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.383057]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.383057]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.383057]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.419514] Call Trace:[<80071a50>] 0x80071a50
Feb 15 17:48:46 10.0.0.3 kernel: [164189.424120] [<80071a50>] 0x80071a50
Feb 15 17:48:46 10.0.0.3 kernel: [164189.427755] [<800817d8>] 0x800817d8
Feb 15 17:48:46 10.0.0.3 kernel: [164189.431399] [<8759ea7c>] 0x8759ea7c [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.437500] [<80081890>] 0x80081890
Feb 15 17:48:46 10.0.0.3 kernel: [164189.441143] [<8759ea7c>] 0x8759ea7c [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.447260] [<87586b64>] 0x87586b64 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.453369] [<875870d0>] 0x875870d0 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.459473] [<8025d324>] 0x8025d324
Feb 15 17:48:46 10.0.0.3 kernel: [164189.463113] [<87587184>] 0x87587184 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.469221] [<875849b4>] 0x875849b4 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.475308] [<80102008>] 0x80102008
Feb 15 17:48:46 10.0.0.3 kernel: [164189.478954] [<87587234>] 0x87587234 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.485054] [<8750c2e4>] 0x8750c2e4 [cfg80211@87500000+0x36220]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.491154] [<8029a124>] 0x8029a124
Feb 15 17:48:46 10.0.0.3 kernel: [164189.494800] [<80299ea8>] 0x80299ea8
Feb 15 17:48:46 10.0.0.3 kernel: [164189.498436] [<802992e8>] 0x802992e8
Feb 15 17:48:46 10.0.0.3 kernel: [164189.502060] [<800a1a94>] 0x800a1a94
Feb 15 17:48:46 10.0.0.3 kernel: [164189.505690] [<80299e90>] 0x80299e90
Feb 15 17:48:46 10.0.0.3 kernel: [164189.509324] [<80298b4c>] 0x80298b4c
Feb 15 17:48:46 10.0.0.3 kernel: [164189.512945] [<8025c820>] 0x8025c820
Feb 15 17:48:46 10.0.0.3 kernel: [164189.516581] [<8013c000>] 0x8013c000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.520206] [<802990b4>] 0x802990b4
Feb 15 17:48:46 10.0.0.3 kernel: [164189.523831] [<801b6260>] 0x801b6260
Feb 15 17:48:46 10.0.0.3 kernel: [164189.527478] [<80252ad4>] 0x80252ad4
Feb 15 17:48:46 10.0.0.3 kernel: [164189.531104] [<80253eec>] 0x80253eec
Feb 15 17:48:46 10.0.0.3 kernel: [164189.534732] [<80252ad4>] 0x80252ad4
Feb 15 17:48:46 10.0.0.3 kernel: [164189.538369] [<801f8300>] 0x801f8300
Feb 15 17:48:46 10.0.0.3 kernel: [164189.541995] [<8011328c>] 0x8011328c
Feb 15 17:48:46 10.0.0.3 kernel: [164189.545629] [<8009eff0>] 0x8009eff0
Feb 15 17:48:46 10.0.0.3 kernel: [164189.549269] [<80254e18>] 0x80254e18
Feb 15 17:48:46 10.0.0.3 kernel: [164189.552898] [<80066c10>] 0x80066c10
Feb 15 17:48:46 10.0.0.3 kernel: [164189.556535] [<80062c2c>] 0x80062c2c
Feb 15 17:48:46 10.0.0.3 kernel: [164189.560161]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.561759] ---[ end trace 09e93eac26043f54 ]---
Feb 15 17:48:46 10.0.0.3 kernel: [164189.590354] ------------[ cut here ]------------
Feb 15 17:48:46 10.0.0.3 kernel: [164189.595205] WARNING: CPU: 0 PID: 10121 at compat-wireless-2016-10-08/net/mac80211/ieee80211_i.h:1004 0x87584e44 [mac80211@87580000+0x5f500]()
Feb 15 17:48:46 10.0.0.3 kernel: [164189.608230] Modules linked in: pppoe ppp_async iptable_nat ath9k pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ath9k_common xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle
Feb 15 17:48:46 10.0.0.3 kernel: [164189.674864] CPU: 0 PID: 10121 Comm: hostapd Tainted: G        W       4.4.47 #0
Feb 15 17:48:46 10.0.0.3 kernel: [164189.682384] Stack : 803864d4 00000000 00000001 803e0000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.682384]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.682384]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.682384]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.682384]          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 15 17:48:46 10.0.0.3 kernel: [164189.682384]          ...
Feb 15 17:48:46 10.0.0.3 kernel: [164189.718837] Call Trace:[<80071a50>] 0x80071a50
Feb 15 17:48:46 10.0.0.3 kernel: [164189.723442] [<80071a50>] 0x80071a50
Feb 15 17:48:46 10.0.0.3 kernel: [164189.727078] [<800817d8>] 0x800817d8
Feb 15 17:48:46 10.0.0.3 kernel: [164189.730716] [<87584e44>] 0x87584e44 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.736834] [<80081890>] 0x80081890
Feb 15 17:48:46 10.0.0.3 kernel: [164189.740460] [<80177ce0>] 0x80177ce0
Feb 15 17:48:46 10.0.0.3 kernel: [164189.744100] [<87584e44>] 0x87584e44 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.750221] [<8759e840>] 0x8759e840 [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.756330] [<875d1a8c>] 0x875d1a8c [mac80211@87580000+0x5f500]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.762436] [<8751a54c>] 0x8751a54c [cfg80211@87500000+0x36220]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.768548] [<8029a124>] 0x8029a124
Feb 15 17:48:46 10.0.0.3 kernel: [164189.772176] [<802989ac>] 0x802989ac
Feb 15 17:48:46 10.0.0.3 kernel: [164189.775817] [<80299ea8>] 0x80299ea8
Feb 15 17:48:46 10.0.0.3 kernel: [164189.779456] [<802992e8>] 0x802992e8
Feb 15 17:48:46 10.0.0.3 kernel: [164189.783079] [<800a1a94>] 0x800a1a94
Feb 15 17:48:46 10.0.0.3 kernel: [164189.786715] [<80299e90>] 0x80299e90
Feb 15 17:48:46 10.0.0.3 kernel: [164189.790340] [<8025d324>] 0x8025d324
Feb 15 17:48:46 10.0.0.3 kernel: [164189.793968] [<80298b4c>] 0x80298b4c
Feb 15 17:48:46 10.0.0.3 kernel: [164189.797600] [<8025c820>] 0x8025c820
Feb 15 17:48:46 10.0.0.3 kernel: [164189.801227] [<802990b4>] 0x802990b4
Feb 15 17:48:46 10.0.0.3 kernel: [164189.804851] [<801b6260>] 0x801b6260
Feb 15 17:48:46 10.0.0.3 kernel: [164189.808485] [<8026100c>] 0x8026100c
Feb 15 17:48:46 10.0.0.3 kernel: [164189.812118] [<80252ad4>] 0x80252ad4
Feb 15 17:48:46 10.0.0.3 kernel: [164189.815748] [<80253eec>] 0x80253eec
Feb 15 17:48:46 10.0.0.3 kernel: [164189.819382] [<802970a0>] 0x802970a0
Feb 15 17:48:46 10.0.0.3 kernel: [164189.823007] [<80253320>] 0x80253320
Feb 15 17:48:46 10.0.0.3 kernel: [164189.826644] [<80254b2c>] 0x80254b2c
Feb 15 17:48:46 10.0.0.3 kernel: [164189.830275] [<80254e18>] 0x80254e18
Feb 15 17:48:46 10.0.0.3 kernel: [164189.833899] [<800b23b0>] 0x800b23b0
Feb 15 17:48:46 10.0.0.3 kernel: [164189.837537] [<80062c2c>] 0x80062c2c
Feb 15 17:48:46 10.0.0.3 kernel: [164189.841163]
Feb 15 17:48:46 10.0.0.3 kernel: [164189.842761] ---[ end trace 09e93eac26043f55 ]---


17.02.2017527PackagesBug ReportVery LowMediumQMI modem Olivetti Techcenter (0b3c:c00a) freezes on uq...lede-17.01Unconfirmed Task Description

Hello,

I used to use modem Olivetti Techcenter (0b3c:c00a) on OpenWRT CC.1 without problems.
However, testing on LEDE 17.01.0-rc2, I’m unable to connect.

I traced the problem to ‘uqmi -s -d “$device” –sync’ at https://github.com/lede-project/source/blob/master/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh#L101.

My config is simple as:

config interface 'wwan'
        option ifname 'wwan0'
        option proto 'qmi'
        option device '/dev/cdc-wdm0'
        option apn 'gprs.oi.com.br'
        option auth 'none'

Using strace, it always stops at this point:

...
open("/dev/cdc-wdm0", O_RDWR|O_EXCL|O_NOCTTY|O_NONBLOCK|O_LARGEFILE) = 6
fcntl64(6, F_GETFL)                     = 0x2082 (flags O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(3, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLRDHUP|EPOLLET, {u32=4305304, u64=18491139879337984}}) = 0
write(6, "\1\v\0\0\0\0\0\1'\0\0\0", 12) = 12
rt_sigaction(SIGINT, NULL, {sa_handler=0x401071, sa_mask=[RT_66 RT_67 RT_68 RT_69 RT_70 RT_71], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0}, 16) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=0x401071, sa_mask=[RT_66 RT_67 RT_68 RT_69 RT_70 RT_71], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0}, 16) = 0
rt_sigaction(SIGCHLD, NULL, {sa_handler=SIG_DFL, sa_mask=[RT_66 RT_67 RT_68 RT_69 RT_70 RT_71], sa_flags=0}, 16) = 0
rt_sigaction(SIGCHLD, {sa_handler=0x77d85541, sa_mask=[RT_68 RT_69 RT_73 RT_74 RT_75 RT_76 RT_78 RT_80 RT_82 RT_84 RT_85 RT_87 RT_88 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], sa_flags=SA_RESTORER, sa_restorer=0}, NULL, 16) = 0
rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[RT_65 RT_68 RT_70], sa_flags=0}, 16) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[RT_68 RT_69 RT_73 RT_74 RT_75 RT_76 RT_78 RT_80 RT_82 RT_84 RT_85 RT_87 RT_88 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], sa_flags=SA_RESTORER, sa_restorer=0}, NULL, 16) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=7909, tv_nsec=543507701}) = 0
clock_gettime(CLOCK_MONOTONIC, {tv_sec=7909, tv_nsec=544052152}) = 0
epoll_pwait(3, 

If I comment the “uqmi –sync” call, it simply works. “–sync” is a new action for uqmi since OpenWRT CC.1

My System is:



LEDE 17.01.0-rc2, r3131-42f3c1f
uqmi 2016-12-19-8ceeab69-1
machine: TP-LINK TL-WDR3600/4300/4310 (ar71xx) with QMI modem Olivetti Techcenter (0b3c:c00a)

18.02.2017532Base systemBug ReportVery LowMediumXiaomi mi nano (miwifi nano) unstable as WiFi Repeaterlede-17.01Unconfirmed Task Description

I run version 17.01.0-rc2 on my Xiaomi mi nano (https://lede-project.org/toh/hwdata/xiaomi/xiaomi_miwifi_nano)

I want to use it as wireless repeater with extra SSID (i think someone call it WISP client).

The miwifi is connected to my home wifi. And my device is connected to the SSID provided by the miwifi nano (no LAN connection).

If i do a speed test or download a large file to test the connection speed, the speed drops to a very low rate after some seconds. On the serial console i can see a call trace at this moment. After this, i have to reboot the miwifi nano to get a working WAN connection.

I will attach the serial console output. Hope that helps.

Tested with LAN connected was stable and fast.

drombo

25.02.2017554PackagesBug ReportVery LowMedium5 Ghz radio fails to initialize on D-Link DGL-5500lede-17.01Unconfirmed Task Description

While the 2.4 Ghz band works just fine on install, I have to install kmod-ath10k to get 5 Ghz functionality in OpenWRT 15.05.1 but the same package does not work on reboot 17.01.0. I have tried ath10k-firmware-qca988x-ct in an attempt to fix the issue but it did not work. Here is what I was able to pull from dmesg:

[ 0.000000] Linux version 4.4.50 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3101-bce140e) ) #0 Mon Feb 20 17:13:44 2017
[ 0.000000] MyLoader: sysp=42a08090, boardp=45a0e802, parts=12a80ca8
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 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 0×0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0×0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0×0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 803d04d0, node_mem_map 81000000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 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: 32512
[ 0.000000] Kernel command line: board=DGL-5500-A1 console=ttyS0,115200 mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,15296k(firmware),192k(lang)ro,512k(my-dlink)ro,64k(mac)ro,64k(art)ro rootfstype=squashfs,jffs2 noinitrd
[ 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: 125328K/131072K available (3071K kernel code, 165K rwdata, 412K rodata, 312K init, 205K bss, 5744K 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:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5309056796 ns
[ 0.000007] sched_clock: 32 bits at 360MHz, resolution 2ns, wraps every 5965232126ns
[ 0.008281] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[ 0.071186] pid_max: default: 32768 minimum: 301
[ 0.076195] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.083240] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.092564] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.103917] NET: Registered protocol family 16
[ 0.109647] MIPS: machine is D-Link DGL-5500 rev. A1
[ 0.335390] registering PCI controller with io_map_base unset
[ 0.341594] ar724x-pci ar724x-pci.1: PCIe link is down
[ 0.347083] registering PCI controller with io_map_base unset
[ 0.360391] PCI host bridge to bus 0000:00
[ 0.364761] pci_bus 0000:00: root bus resource [mem 0×10000000-0x11ffffff]
[ 0.372106] pci_bus 0000:00: root bus resource [io 0×0000]
[ 0.378026] pci_bus 0000:00: root bus resource [??? 0×00000000 flags 0×0]
[ 0.385250] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.393707] pci 0000:00:00.0: [168c:003c] type 00 class 0×028000 [ 0.393764] pci 0000:00:00.0: reg 0×10: [mem 0×00000000-0x001fffff 64bit]
[ 0.393817] pci 0000:00:00.0: reg 0×30: [mem 0×00000000-0x0000ffff pref]
[ 0.393876] pci 0000:00:00.0: supports D1 D2
[ 0.393890] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.394069] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.394096] pci 0000:00:00.0: BAR 0: assigned [mem 0×10000000-0x101fffff 64bit]
[ 0.401911] pci 0000:00:00.0: BAR 6: assigned [mem 0×10200000-0x1020ffff pref]
[ 0.409704] PCI host bridge to bus 0000:01
[ 0.414088] pci_bus 0000:01: root bus resource [mem 0×12000000-0x13ffffff]
[ 0.421394] pci_bus 0000:01: root bus resource [io 0×0001]
[ 0.427326] pci_bus 0000:01: root bus resource [??? 0×00000000 flags 0×0]
[ 0.434541] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.442984] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.443001] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.448844] clocksource: Switched to clocksource MIPS
[ 0.455085] NET: Registered protocol family 2
[ 0.460460] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.467878] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.474682] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.481524] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.487746] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.494626] NET: Registered protocol family 1
[ 0.499313] PCI: CLS 0 bytes, default 32
[ 0.502786] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.509355] Crashlog allocated RAM at address 0x3f00000
[ 0.526118] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.532359] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
[ 0.544698] io scheduler noop registered
[ 0.548904] io scheduler deadline registered (default)
[ 0.554531] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.563486] console [ttyS0] disabled
[ 0.587355] serial8250.0: ttyS0 at MMIO 0×18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.596540] console [ttyS0] enabled
[ 0.603957] bootconsole [early0] disabled
[ 0.616222] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.622114] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.627255] 7 cmdlinepart partitions found on MTD device spi0.0
[ 0.633265] Creating 7 MTD partitions on “spi0.0”:
[ 0.638123] 0×000000000000-0×000000030000 : “u-boot” [ 0.644859] 0×000000030000-0×000000040000 : “nvram” [ 0.651103] 0×000000040000-0x000000f30000 : “firmware” [ 0.689017] 2 uimage-fw partitions found on MTD device firmware
[ 0.695036] 0×000000040000-0x000000172d26 : “kernel” [ 0.701162] 0x000000172d26-0x000000f30000 : “rootfs” [ 0.707448] mtd: device 4 (rootfs) set to be root filesystem
[ 0.713266] 1 squashfs-split partitions found on MTD device rootfs
[ 0.719545] 0×000000390000-0x000000f30000 : “rootfs_data” [ 0.726317] 0x000000f30000-0x000000f60000 : “lang” [ 0.732480] 0x000000f60000-0x000000fe0000 : “my-dlink” [ 0.739016] 0x000000fe0000-0x000000ff0000 : “mac” [ 0.745042] 0x000000ff0000-0×000001000000 : “art” [ 0.760151] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[ 1.386590] libphy: ag71xx_mdio: probed
[ 1.980352] ag71xx ag71xx.1: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 1.991666] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
[ 1.999457] NET: Registered protocol family 10
[ 2.007009] NET: Registered protocol family 17
[ 2.011611] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.024493] 8021q: 802.1Q VLAN Support v1.8
[ 2.035323] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 2.043654] Freeing unused kernel memory: 312K (803f2000 - 80440000)
[ 3.242461] init: Console is alive
[ 3.246075] init: - watchdog -
[ 4.166284] init: - preinit -
[ 4.646623] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.669496] random: procd: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
[ 6.090276] eth0: link up (1000Mbps/Full duplex)
[ 6.095095] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 7.946659] jffs2: notice: (393) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 7.966483] mount_root: switching to jffs2 overlay
[ 7.983093] urandom-seed: Seeding with /etc/urandom.seed
[ 8.153377] eth0: link down
[ 8.167534] procd: - early -
[ 8.171586] procd: - watchdog -
[ 8.781925] procd: - ubus -
[ 8.895386] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.905781] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.915695] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.924857] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.934286] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.943444] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.952731] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.962417] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
[ 8.971869] procd: - init -
[ 9.697235] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.710393] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 9.718072] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 10.045627] PCI: Enabling device 0000:00:00.0 (0000 → 0002)
[ 10.051573] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 10.309904] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[ 10.320777] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.400233] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[ 10.409585] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/cal-pci-0000:00:00.0.bin failed with error -2
[ 10.420106] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.573594] firmware ath10k!cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[ 10.582558] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-5.bin failed with error -2
[ 10.593427] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.747728] firmware ath10k!QCA988X!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
[ 10.756986] ath10k_pci 0000:00:00.0: could not fetch firmware file ‘ath10k/QCA988X/hw2.0/firmware-5.bin’: -11
[ 10.767131] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-4.bin failed with error -2
[ 10.777988] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 10.933284] firmware ath10k!QCA988X!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
[ 10.942567] ath10k_pci 0000:00:00.0: could not fetch firmware file ‘ath10k/QCA988X/hw2.0/firmware-4.bin’: -11
[ 10.952717] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-3.bin failed with error -2
[ 10.963582] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 11.120695] firmware ath10k!QCA988X!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
[ 11.130628] ath10k_pci 0000:00:00.0: could not fetch firmware file ‘ath10k/QCA988X/hw2.0/firmware-3.bin’: -11
[ 11.140787] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-2.bin failed with error -2
[ 11.151646] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 11.304613] firmware ath10k!QCA988X!hw2.0!firmware-2.bin: firmware_loading_store: map pages failed
[ 11.313904] ath10k_pci 0000:00:00.0: could not fetch firmware file ‘ath10k/QCA988X/hw2.0/firmware-2.bin’: -11
[ 11.323985] ath10k_pci 0000:00:00.0: could not fetch firmware files (-11)
[ 11.330880] ath10k_pci 0000:00:00.0: could not probe fw (-11)
[ 11.394867] u32 classifier
[ 11.397622] input device check on
[ 11.401376] Actions configured
[ 11.410803] Mirror/redirect action on
[ 11.448524] nf_conntrack version 0.5.0 (1963 buckets, 7852 max)
[ 11.504925] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.555153] xt_time: kernel timezone is -0000
[ 11.572726] PPP generic driver version 2.4.2
[ 11.579165] NET: Registered protocol family 24
[ 11.600423] ath: EEPROM regdomain: 0×0 [ 11.600440] ath: EEPROM indicates default country code should be used
[ 11.600448] ath: doing EEPROM country→regdmn map search
[ 11.600464] ath: country maps to regdmn code: 0x3a
[ 11.600474] ath: Country alpha2 being used: US
[ 11.600481] ath: Regpair used: 0x3a
[ 11.616425] ieee80211 phy1: Selected rate control algorithm ‘minstrel_ht’ [ 11.620480] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[ 12.477022] random: jshn: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[ 18.916623] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 18.942714] device eth0.1 entered promiscuous mode
[ 18.947585] device eth0 entered promiscuous mode
[ 18.975859] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 19.045891] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[ 20.190340] eth0: link up (1000Mbps/Full duplex)
[ 20.195167] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 20.248214] br-lan: port 1(eth0.1) entered listening state
[ 20.253855] br-lan: port 1(eth0.1) entered listening state
[ 20.259606] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[ 21.436779] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 21.712752] device wlan1 entered promiscuous mode
[ 22.248889] br-lan: port 1(eth0.1) entered learning state
[ 24.248864] br-lan: topology change detected, propagating
[ 24.254354] br-lan: port 1(eth0.1) entered forwarding state
[ 24.272756] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 30.421868] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 30.428458] br-lan: port 2(wlan1) entered listening state
[ 30.434010] br-lan: port 2(wlan1) entered listening state
[ 32.428863] br-lan: port 2(wlan1) entered learning state
[ 34.428855] br-lan: topology change detected, propagating
[ 34.434354] br-lan: port 2(wlan1) entered forwarding state
[ 48.158869] random: nonblocking pool is initialized
[ 4015.854570] conntrack: generic helper won’t handle protocol 47. Please consider loading the specific helper module.
[14588.266824] device wlan1 left promiscuous mode
[14588.271416] br-lan: port 2(wlan1) entered disabled state
[14589.307578] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[14589.417089] device wlan1 entered promiscuous mode
[14596.007346] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[14596.013964] br-lan: port 2(wlan1) entered listening state
[14596.019476] br-lan: port 2(wlan1) entered listening state
[14596.031618] device wlan1-1 entered promiscuous mode
[14596.044319] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
[14596.050559] br-lan: port 3(wlan1-1) entered listening state
[14596.056279] br-lan: port 3(wlan1-1) entered listening state
[14596.442237] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[14598.013926] br-lan: port 2(wlan1) entered learning state
[14598.053935] br-lan: port 3(wlan1-1) entered learning state
[14600.013904] br-lan: topology change detected, propagating
[14600.019398] br-lan: port 2(wlan1) entered forwarding state
[14600.053918] br-lan: topology change detected, propagating
[14600.059405] br-lan: port 3(wlan1-1) entered forwarding state
[14627.152488] device wlan1-1 left promiscuous mode
[14627.157296] br-lan: port 3(wlan1-1) entered disabled state
[14627.626437] device wlan1 left promiscuous mode
[14627.631026] br-lan: port 2(wlan1) entered disabled state
[14629.739015] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[14629.919462] device wlan1 entered promiscuous mode
[14636.563382] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[14636.569999] br-lan: port 2(wlan1) entered listening state
[14636.575526] br-lan: port 2(wlan1) entered listening state
[14636.587660] device wlan1-1 entered promiscuous mode
[14636.604085] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
[14636.610361] br-lan: port 3(wlan1-1) entered listening state
[14636.616081] br-lan: port 3(wlan1-1) entered listening state
[14636.984050] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[14638.573709] br-lan: port 2(wlan1) entered learning state
[14638.613736] br-lan: port 3(wlan1-1) entered learning state
[14640.573697] br-lan: topology change detected, propagating
[14640.579195] br-lan: port 2(wlan1) entered forwarding state
[14640.613696] br-lan: topology change detected, propagating
[14640.619184] br-lan: port 3(wlan1-1) entered forwarding state
[14900.840621] device wlan1 left promiscuous mode
[14900.845258] br-lan: port 2(wlan1) entered disabled state
[14901.155292] br-lan: port 3(wlan1-1) entered disabled state
[14901.163070] device wlan1-1 left promiscuous mode
[14901.167772] br-lan: port 3(wlan1-1) entered disabled state
[14902.704697] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[14902.795529] device wlan1 entered promiscuous mode
[14902.800416] br-lan: port 2(wlan1) entered listening state
[14902.805971] br-lan: port 2(wlan1) entered listening state
[14903.192491] br-lan: port 2(wlan1) entered disabled state
[14909.415709] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[14909.422297] br-lan: port 2(wlan1) entered listening state
[14909.427854] br-lan: port 2(wlan1) entered listening state
[14909.439971] device wlan1-1 entered promiscuous mode
[14909.452749] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
[14909.459031] br-lan: port 3(wlan1-1) entered listening state
[14909.464744] br-lan: port 3(wlan1-1) entered listening state
[14909.852312] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[14911.422381] br-lan: port 2(wlan1) entered learning state
[14911.462362] br-lan: port 3(wlan1-1) entered learning state
[14913.422385] br-lan: topology change detected, propagating
[14913.427891] br-lan: port 2(wlan1) entered forwarding state
[14913.462383] br-lan: topology change detected, propagating
[14913.467886] br-lan: port 3(wlan1-1) entered forwarding state
[14938.394932] br-lan: port 3(wlan1-1) entered disabled state
[14938.406909] device wlan1-1 left promiscuous mode
[14938.411615] br-lan: port 3(wlan1-1) entered disabled state
[14938.454827] device wlan1 left promiscuous mode
[14938.459413] br-lan: port 2(wlan1) entered disabled state
[14940.088803] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[14940.185209] device wlan1 entered promiscuous mode
[14940.190067] br-lan: port 2(wlan1) entered listening state
[14940.195618] br-lan: port 2(wlan1) entered listening state
[14940.442300] br-lan: port 2(wlan1) entered disabled state
[14948.047769] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[14948.054389] br-lan: port 2(wlan1) entered listening state
[14948.059913] br-lan: port 2(wlan1) entered listening state
[14948.071978] device wlan1-1 entered promiscuous mode
[14948.090424] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
[14948.096667] br-lan: port 3(wlan1-1) entered listening state
[14948.102358] br-lan: port 3(wlan1-1) entered listening state
[14948.467326] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[14950.052194] br-lan: port 2(wlan1) entered learning state
[14950.102170] br-lan: port 3(wlan1-1) entered learning state
[14952.052194] br-lan: topology change detected, propagating
[14952.057685] br-lan: port 2(wlan1) entered forwarding state
[14952.102195] br-lan: topology change detected, propagating
[14952.107686] br-lan: port 3(wlan1-1) entered forwarding state
[14973.224021] device wlan1-1 left promiscuous mode
[14973.228784] br-lan: port 3(wlan1-1) entered disabled state
[14973.714741] device wlan1 left promiscuous mode
[14973.719333] br-lan: port 2(wlan1) entered disabled state
[14975.944107] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[14976.105031] device wlan1 entered promiscuous mode
[14983.961980] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[14983.968600] br-lan: port 2(wlan1) entered listening state
[14983.974146] br-lan: port 2(wlan1) entered listening state
[14983.986210] device wlan1-1 entered promiscuous mode
[14984.002370] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
[14984.008659] br-lan: port 3(wlan1-1) entered listening state
[14984.014372] br-lan: port 3(wlan1-1) entered listening state
[14984.397146] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[14985.971999] br-lan: port 2(wlan1) entered learning state
[14986.011994] br-lan: port 3(wlan1-1) entered learning state
[14987.971986] br-lan: topology change detected, propagating
[14987.977470] br-lan: port 2(wlan1) entered forwarding state
[14988.011988] br-lan: topology change detected, propagating
[14988.017484] br-lan: port 3(wlan1-1) entered forwarding state

26.02.2017557Base systemBug ReportVery LowMediumNexx wt3020 wifi rx sensitivity low with LEDE 17.01lede-17.01Unconfirmed Task Description

The rx sensitivity reported by a Nexx wt3020 is ~ 20dB lower than a comparable tp-link device located sided by side with the Nexx wt3020.
There have been reports of a similar problem with OpenWRT versions.

There is a ticket open with openwrt with a similar reported issue https://dev.openwrt.org/ticket/20369 as well as on the openwrt forum https://forum.openwrt.org/viewtopic.php?id=69042

lede trunk (and openwrt trunk) as of 24/2/17 also display similar poor rx sensitivity.

 


01.03.2017573KernelBug ReportVery LowMediumUnloading rt2800soc crashes rt3052 based devicesTrunkUnconfirmed Task Description

On LEDE trunk rt3052 based devices (and all other devices using rt2800 wireless chipset) crash whenever you try to unload rt2800soc. This happens because patch 604-rt2x00-load-eeprom-on-SoC-from-a-mtd-device-defines-.patch interferes with 602-rt2x00-introduce-rt2x00eeprom.patch. In 602 the struct rt2x00_dev is extended by the member eeprom_file. In its initialisation function rt2x00lib_request_eeprom_file eeprom_file is either initialized with a firmware struct from request_firmware or keeps being NULL if an error occurs. Patch 604 hooks into rt2x00lib_request_eeprom_file by the function rt2800lib_read_eeprom_mtd. rt2800lib_read_eeprom_mtd fills eeprom_file with a statically declared struct firmware if loading from the mtd partition succeeds. Now, when we come to uninitialization patch 602s rt2x00lib_free_eeprom_file is called. This function assumes that eeprom_file was dynamically allocated and calls release_firmware(eeprom_file) even if patch 604 allocated it statically. This leads to release_firmware kfree-ing eeprom_file although it was never kmalloced, resulting in a kernelpanic.

01.03.2017576Base systemBug ReportVery LowMediumath10k fails to load reporting a 'firmware crash' on QC...lede-17.01Unconfirmed Task Description

Problem occurs on a ZYXEL NBG6716. (802.11ac should be a QCA9880)
running 17.01.1 i.e. lede-17.01.0-r3205-59508e3-ar71xx-nand-nbg6716-squashfs-sysupgrade.bin
Crash occurs every time ath10k attempts to load

log with driver included in release

[   14.783881] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   15.000294] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
[   15.011181] ath10k_pci 0000:01:00.0: Falling back to user helper
[   15.090655] firmware ath10k!pre-cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
[   15.299839] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   15.309251] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   15.322304] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[   15.333090] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   15.343695] ath10k_pci 0000:01:00.0: Falling back to user helper
[   15.423744] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   15.442629] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   16.551704] ath10k_pci 0000:01:00.0: firmware crashed! (uuid 68334050-5a5e-48bf-bccc-87f25cba960e)
[   16.560832] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   16.570194] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   16.583244] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[   16.593975] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   16.601395] ath10k_pci 0000:01:00.0: htt-ver 0.0 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[   16.613031] ath10k_pci 0000:01:00.0: firmware register dump:
[   16.618783] ath10k_pci 0000:01:00.0: [00]: 0x4100016C 0x000015B3 0x009BA6A2 0x00955B31
[   16.626822] ath10k_pci 0000:01:00.0: [04]: 0x009BA6A2 0x00060130 0x0000001D 0x00000000
[   16.634857] ath10k_pci 0000:01:00.0: [08]: 0xFFFFFFFF 0x00401F6A 0x0000096C 0xFFFFFFFF
[   16.642883] ath10k_pci 0000:01:00.0: [12]: 0x00000009 0x00000000 0x009BAB4C 0x009BABA7
[   16.650916] ath10k_pci 0000:01:00.0: [16]: 0x00958080 0x0094E9B1 0x00000000 0x00000000
[   16.658951] ath10k_pci 0000:01:00.0: [20]: 0x409BA6A2 0x0040AA24 0x0040AAD4 0x00000001
[   16.666985] ath10k_pci 0000:01:00.0: [24]: 0x809BB189 0x0040AA84 0x0040EE0C 0xC09BA6A2
[   16.675020] ath10k_pci 0000:01:00.0: [28]: 0x809BB612 0x0040AAB4 0x000000E2 0x00000001
[   16.683047] ath10k_pci 0000:01:00.0: [32]: 0x80984880 0x0040ABA4 0x0040EE3C 0x0000003F
[   16.691089] ath10k_pci 0000:01:00.0: [36]: 0x8098FBA5 0x0040ABE4 0x0040E270 0x004062DC
[   16.699131] ath10k_pci 0000:01:00.0: [40]: 0x8098A79E 0x0040AC34 0x0040AC94 0x004062DC
[   16.707166] ath10k_pci 0000:01:00.0: [44]: 0x80988785 0x0040AC94 0x00410670 0x00400000
[   16.715200] ath10k_pci 0000:01:00.0: [48]: 0x8098AE78 0x0040AD44 0x00410670 0x00000001
[   16.723227] ath10k_pci 0000:01:00.0: [52]: 0x809B66F0 0x0040AD84 0x00410670 0x00411254
[   16.731269] ath10k_pci 0000:01:00.0: [56]: 0x809B2868 0x0040ADA4 0x00400000 0x00416EB4
[   21.543818] ath10k_pci 0000:01:00.0: wmi unified ready event not received
[   21.646943] ath10k_pci 0000:01:00.0: could not init core (-145)
[   21.653075] ath10k_pci 0000:01:00.0: could not probe fw (-145)
[   21.664514] ath10k_pci 0000:01:00.0: cannot restart a device that hasn't been started

log with alernative ath10k-ct from packages

Sun Feb 26 20:09:36 2017 kern.info kernel: [   15.991374] ath10k driver, optimized for CT firmware, probing pci.
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   15.998923] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
Sun Feb 26 20:09:36 2017 kern.info kernel: [   16.004876] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
Sun Feb 26 20:09:36 2017 kern.info kernel: [   16.115573] EXT4-fs (sda1): mounted filesystem without journal. Opts: 
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.220291] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.231178] ath10k_pci 0000:01:00.0: Falling back to user helper
Sun Feb 26 20:09:36 2017 kern.err kernel: [   16.309980] firmware ath10k!pre-cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.322702] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:01:00.0.txt failed with error -2
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.333430] ath10k_pci 0000:01:00.0: Falling back to user helper
Sun Feb 26 20:09:36 2017 kern.err kernel: [   16.483479] firmware ath10k!fwcfg-pci-0000:01:00.0.txt: firmware_loading_store: map pages failed
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.502812] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-5.bin failed with error -2
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.513707] ath10k_pci 0000:01:00.0: Falling back to user helper
Sun Feb 26 20:09:36 2017 kern.err kernel: [   16.656794] firmware ath10k!QCA988X!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
Sun Feb 26 20:09:36 2017 kern.err kernel: [   16.666061] ath10k_pci 0000:01:00.0: could not fetch firmware file 'ath10k/QCA988X/hw2.0/firmware-5.bin': -11
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.676241] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-4.bin failed with error -2
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.687110] ath10k_pci 0000:01:00.0: Falling back to user helper
Sun Feb 26 20:09:36 2017 kern.err kernel: [   16.839245] firmware ath10k!QCA988X!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
Sun Feb 26 20:09:36 2017 kern.err kernel: [   16.848512] ath10k_pci 0000:01:00.0: could not fetch firmware file 'ath10k/QCA988X/hw2.0/firmware-4.bin': -11
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.858690] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-3.bin failed with error -2
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   16.869560] ath10k_pci 0000:01:00.0: Falling back to user helper
Sun Feb 26 20:09:36 2017 kern.err kernel: [   17.020761] firmware ath10k!QCA988X!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
Sun Feb 26 20:09:36 2017 kern.err kernel: [   17.030028] ath10k_pci 0000:01:00.0: could not fetch firmware file 'ath10k/QCA988X/hw2.0/firmware-3.bin': -11
Sun Feb 26 20:09:36 2017 kern.info kernel: [   17.152659] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
Sun Feb 26 20:09:36 2017 kern.info kernel: [   17.162062] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
Sun Feb 26 20:09:36 2017 kern.info kernel: [   17.174406] ath10k_pci 0000:01:00.0: firmware ver 10.1.467-ct-_fW-019-647197c api 2 features wmi-10.x,has-wmi-mgmt-tx,txstatus-noack,wmi-10.x-CT,ratemask-CT crc32 ce5082a8
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   17.190041] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   17.200645] ath10k_pci 0000:01:00.0: Falling back to user helper
Sun Feb 26 20:09:36 2017 kern.err kernel: [   17.280425] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
Sun Feb 26 20:09:36 2017 kern.info kernel: [   17.293109] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   18.216205] ath10k_pci 0000:01:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.224910] ath10k_pci 0000:01:00.0: firmware crashed! (uuid 44fc9f0a-8adb-4077-ae4e-82113c83f387)
Sun Feb 26 20:09:36 2017 kern.info kernel: [   18.234031] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
Sun Feb 26 20:09:36 2017 kern.info kernel: [   18.243382] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
Sun Feb 26 20:09:36 2017 kern.info kernel: [   18.255705] ath10k_pci 0000:01:00.0: firmware ver 10.1.467-ct-_fW-019-647197c api 2 features wmi-10.x,has-wmi-mgmt-tx,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT crc32 ce5082a8
Sun Feb 26 20:09:36 2017 kern.info kernel: [   18.278224] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
Sun Feb 26 20:09:36 2017 kern.info kernel: [   18.285650] ath10k_pci 0000:01:00.0: htt-ver 0.0 wmi-op 2 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.297288] ath10k_pci 0000:01:00.0: firmware register dump:
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.303030] ath10k_pci 0000:01:00.0: [00]: 0x4100016C 0x000015B3 0x009B1635 0x00955B31
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.311074] ath10k_pci 0000:01:00.0: [04]: 0x009B1635 0x00060130 0x0000001D 0x009BAB8B
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.319114] ath10k_pci 0000:01:00.0: [08]: 0xFFFFFFFF 0x00401F6A 0x0000096C 0xFFFFFFFF
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.327147] ath10k_pci 0000:01:00.0: [12]: 0x00000009 0x00000000 0x009B1AD1 0x009B1B29
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.335182] ath10k_pci 0000:01:00.0: [16]: 0x00958080 0x0094085D 0x00000000 0x00000000
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.343210] ath10k_pci 0000:01:00.0: [20]: 0x409B1635 0x0040AA44 0x0040AAF4 0x00000001
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.351251] ath10k_pci 0000:01:00.0: [24]: 0x809B21C2 0x0040AAA4 0x00401F7E 0xC09B1635
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.359290] ath10k_pci 0000:01:00.0: [28]: 0x809B2676 0x0040AAD4 0x00401CC0 0x000000E2
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.367329] ath10k_pci 0000:01:00.0: [32]: 0x8098494F 0x0040ABC4 0x0040E07C 0x0000003F
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.375362] ath10k_pci 0000:01:00.0: [36]: 0x8098ED6F 0x0040AC04 0x0040D4B0 0x004062DC
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.383391] ath10k_pci 0000:01:00.0: [40]: 0x809892DD 0x0040AC54 0x0040ACB4 0x00400000
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.391431] ath10k_pci 0000:01:00.0: [44]: 0x809887C9 0x0040ACA4 0x0040F7B8 0x00400000
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.399463] ath10k_pci 0000:01:00.0: [48]: 0x809897B4 0x0040AD44 0x0040F7B8 0x00000001
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.407500] ath10k_pci 0000:01:00.0: [52]: 0x809AD74A 0x0040AD84 0x0040F7B8 0x0000A000
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.415535] ath10k_pci 0000:01:00.0: [56]: 0x809AA392 0x0040ADA4 0x00400000 0x00414F44
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   18.425582] ath10k_pci 0000:01:00.0: debug log header, dbuf: 0x412598  dropped: 0
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   18.434191] ath10k_pci 0000:01:00.0: [0] next: 0x4125b0 buf: 0x4103fc sz: 1500 len: 56 count: 2 free: 0
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.444731] ath10k_pci 0000:01:00.0: ath10k_pci ATH10K_DBG_BUFFER:
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.451001] ath10k: [0000]: 38700000 0500FC17 70201031 08000000 80000000 B8F74000 01000600 39700000
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.460186] ath10k: [0008]: 0100FC17 B3150000 B3150000 34A94000 6C010041 09000000
Sun Feb 26 20:09:36 2017 kern.err kernel: [   18.467775] ath10k_pci 0000:01:00.0: ATH10K_END
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   18.473385] ath10k_pci 0000:01:00.0: [1] next: 0x412598 buf: 0x4109ec sz: 1500 len: 0 count: 0 free: 0
Sun Feb 26 20:09:36 2017 kern.err kernel: [   23.223848] ath10k_pci 0000:01:00.0: wmi unified ready event not received
Sun Feb 26 20:09:36 2017 kern.err kernel: [   23.325855] ath10k_pci 0000:01:00.0: could not init core (-145)
Sun Feb 26 20:09:36 2017 kern.err kernel: [   23.331970] ath10k_pci 0000:01:00.0: could not probe fw (-145)
Sun Feb 26 20:09:36 2017 kern.info kernel: [   23.338980] i2c /dev entries driver
Sun Feb 26 20:09:36 2017 kern.warn kernel: [   23.344460] ath10k_pci 0000:01:00.0: cannot restart a device that hasn't been started


05.03.2017599Base systemBug ReportVery LowMediumHame MPR-A2 switch has unknown topologyTrunkUnconfirmed Task Description

Vlan don’t work.


08.03.2017606Base systemBug ReportVery LowMediumStall on Mediateklede-17.01Unconfirmed Task Description

On D-Link DIR-860L B1, processor MediaTek MT7621
LEDE 17.01.0

The system used connected to WAN and wifi is used (ac and n). WDS is also used (as server) and SQM is used on WAN. Only the WAN switch port is used.

After random time wifi is disconnected and connected again, can be seen in the log as: WARNING: CPU: 1 PID: 0 at net/core/skbuff.c:4194. However, after some time, which can be minutes or days wifi totally disconnects, and even DHCP does nor work on the LAN ports. The log shows: INFO: rcu_sched self-detected stall on CPU. Only a reboot can help. Sometimes the device reboots by itself.

The above could not be linked to any event (wifi connection, change in sqm settings, etc).

Switched back to Openwrt 15.05.1.

A similar issue was reported here: External Link

10.03.2017614Base systemBug ReportVery LowMedium/usr/lib/lua/luci/util.lua:623: Unable to establish ubu...TrunkUnconfirmed Task Description

when save&apply on system>mount luci always crash
error message:
/usr/lib/lua/luci/util.lua:623: Unable to establish ubus connection
stack traceback:

[C]: in function 'assert'
/usr/lib/lua/luci/util.lua:623: in function 'ubus'
/usr/lib/lua/luci/dispatcher.lua:347: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>
 


13.03.2017625PackagesBug ReportVery LowMediumno default route written using proto=wwanlede-17.01Unconfirmed Task Description

LEDE_RELEASE=”LEDE Reboot 17.01-SNAPSHOT r6469+17-c114383”

Configure steps as follows:

Run ubus listen in backround
ubus -t 9999 listen &

uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=wwan
uci set network.wwan.defaultroute=’0’ uci set network.wwan.pincode= uci set network.wwan.apn= uci commit && /etc/init.d/network restart
...
{ “ubus.object.add”: {”id”:107055350,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan_4”} }
...

As you see default route should not be written immediately. You see default route in inactive section in ubus. So now lets set the default route for this interface

uci set network.wwan.defaultroute=’1’ uci commit && /etc/init.d/network reload

You see no ubus message as well no change of default route. Now lets use QMI proto directly

uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=qmi
uci set network.wwan.device=/dev/cdc-wdm0
uci set network.wwan.defaultroute=’0’ uci set network.wwan.pincode= uci set network.wwan.apn= uci commit && /etc/init.d/network restart
...
{ “ubus.object.add”: {”id”:107055350,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan_4”} }
...

So now lets set the default route for this interface and you see ubus messages comming up as well default route is set

uci set network.wwan.defaultroute=’1’ uci commit && /etc/init.d/network reload
{ “network.interface”: {”action”:”ifdown”,”interface”:”wwan”} }
{ “network.interface”: {”action”:”ifdown”,”interface”:”wwan_4”} }
root@RED50:/lib# { “ubus.object.remove”: {”id”:399408035,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wan2”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan”} }
{ “ubus.object.add”: {”id”:828745890,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan_4”} }


14.03.2017630KernelBug ReportVery LowMediumrt2x00: bug with mt7620 target power parsing from eepro...TrunkUnconfirmed Task Description

I’ve noticed with default auto txpower config 5GHz radio will get proper target power and use it. 2.4GHz radio just gets 20dBm as default from somewhere, which clearly isn’t eeprom since it has also target power 17dBm.

-Xiaomi Miwifi Mini
-LEDE Reboot SNAPSHOT r3742-894ee95

17.03.2017634Base systemBug ReportMediumMediumFactory flashing fails because LEDE filename is too lon...AllNew Task Description

On a TP-Link TL-WR841N v11, flashing LEDE from the web interface of the stock firmware is not possible.

This is caused by a stupid check that refuses filename longer than 64 chars in the web interface. The check is implemented in javascript and returns a cryptic error message like “Please select a file to upload”, as if no file was selected.

The current naming scheme is quite long:

$ echo ‘lede-17.01.0-r3205-59508e3-ar71xx-generic-tl-wr841-v11-squashfs-factory-eu.bin’ | wc -c
79

Shortening the name like the following would decrease the length below 64 chars, and leave some space for a custom suffix (e.g. using EXTRA_IMAGE_NAME in the Imagebuilder):

$ echo ‘lede-17.01.0-ar71xx-tlwr841v11-squashfs-factory-eu.bin’ | wc -c
55

19.03.2017638Base systemBug ReportVery LowMediumdnsmasq user doesn't get created if you sysupgrade from...TrunkUnconfirmed Task Description

If you do a sysupgrade from a version of OpenWRT where dnsmasq runs as root it’ll fail to start afterwards because the dnsmasq user doesn’t exist.

25.03.2017654PackagesBug ReportVery LowMediumdial on demand not workinglede-17.01Unconfirmed Task Description

Using LEDE Reboot 17.01.0 r3205-59508e3 on Lenovo Y1.
After setting the Inactivity timeout to something not 0 in luci (option demand ‘5’ in the config file),the dial procedure will be stopping at some stage,can’t establish a connect.
And the log will be like this:

May  7 08:48:52 OpenWrt daemon.info pppd[9714]: Plugin rp-pppoe.so loaded.
May  7 08:48:52 OpenWrt daemon.info pppd[9714]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
May  7 08:48:52 OpenWrt daemon.notice pppd[9714]: pppd 2.4.5 started by root, uid 0
May  7 08:48:52 OpenWrt daemon.info pppd[9714]: Using interface pppoe-wan
May  7 08:48:52 OpenWrt daemon.notice pppd[9714]: local  IP address 10.64.64.64
May  7 08:48:52 OpenWrt daemon.notice pppd[9714]: remote IP address 10.112.112.112

Without the demand option everything works fine:

May  7 09:08:43 OpenWrt daemon.info pppd[2712]: Plugin rp-pppoe.so loaded.
May  7 09:08:43 OpenWrt daemon.info pppd[2712]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
May  7 09:08:43 OpenWrt daemon.notice pppd[2712]: pppd 2.4.5 started by root, uid 0
May  7 09:08:48 OpenWrt daemon.info pppd[2712]: PPP session is 9873
May  7 09:08:48 OpenWrt daemon.warn pppd[2712]: Connected to 00:30:88:1f:30:07 via interface eth2
May  7 09:08:48 OpenWrt daemon.info pppd[2712]: Using interface pppoe-wan
May  7 09:08:48 OpenWrt daemon.notice pppd[2712]: Connect: pppoe-wan <--> eth2
May  7 09:08:48 OpenWrt daemon.notice pppd[2712]: PAP authentication succeeded
May  7 09:08:48 OpenWrt daemon.notice pppd[2712]: peer from calling number 00:30:88:1F:30:07 authorized
May  7 09:08:49 OpenWrt daemon.notice pppd[2712]: local  IP address 93.232.124.118
May  7 09:08:49 OpenWrt daemon.notice pppd[2712]: remote IP address 217.0.119.51
May  7 09:08:49 OpenWrt daemon.notice pppd[2712]: primary   DNS address 217.0.43.17
May  7 09:08:49 OpenWrt daemon.notice pppd[2712]: secondary DNS address 217.0.43.49

(these logs is copy from the openwrt bug ticketExternal Link because my log for this part had be override by massive “ieee80211 phy1: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2”,sincere apology,smile)
It seems to be a historied legacy bug from Openwrt BB (or AA),and there is a solution by changing 2 files to make pppd disconnect when inactivity but can’t re-dial:
1./etc/config/network, disable IPv6

config interface 'wan'
        option ipv6 0

2./lib/netifd/proto/ppp.sh: change nodefaultroute to defaultroute in the function of ppp_generic_setup()

	proto_run_command "$config" /usr/sbin/pppd \
		nodetach ipparam "$config" \
		ifname "$pppname" \
		${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \
		${ipv6:++ipv6} \
		defaultroute \

Hope this stinking bug can be terminated in LEDE

26.03.2017656Base systemBug ReportVery LowMediumIPv6 relay mode does not worklede-17.01Assigned Task Description

My ISP does not support DHCPv6, so I need to use IPv6 relay mode to enable my devices to obtain IPv6 addresses via SLAAC. I have configured relay mode as indicated in the documentation on a HooToo TM-02 for the time being. If I can get all this to work I will upgrade to a more capable device.

Running tcpdump on the WLAN interface I can see the router solicitation requests coming from my clients. When I run tcpdump on the WAN interface I don’t see any router solicitations and, therefore, no router advertisements coming back from my ISP modem. The router itself gets an address from the modem, but the relaying of requests from clients is not happening.

I have posted my config files below, but they are basically stock. Is this a problem with the DHCPv6 server or some kind of firewall problem preventing the requests from getting out?

/etc/config/network:

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 'fd20:0787:2c66::/48'

config interface 'lan'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option _orig_ifname 'eth0'
	option _orig_bridge 'false'
	option ip6assign '64'

config device 'lan_dev'
	option name 'eth0'
	option macaddr '00:1c:c2:13:6f:05'

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

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

config interface 'wan6'
	option proto 'dhcpv6'
	option ifname 'eth0'
	option reqaddress 'try'
	option reqprefix 'auto'

/etc/config/dhcp:

config dnsmasq
	option domainneeded '1'
	option boguspriv '1'
	option filterwin2k '0'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option nonegcache '0'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.auto'
	option localservice '1'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv6 'relay'
	option ra 'relay'
	option ndp 'relay'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config dhcp 'wan6'
	option dhcpv6 'relay'
	option ra 'relay'
	option ndp 'relay'
	option master '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'

/etc/config/firewall:

config defaults
	option syn_flood '1'
	option input 'ACCEPT'
	option output 'ACCEPT'
	option forward 'REJECT'

config zone
	option name 'lan'
	list network 'lan'
	option input 'ACCEPT'
	option output 'ACCEPT'
	option forward 'ACCEPT'

config zone
	option name 'wan'
	list network 'wan'
	list network 'wan6'
	option input 'REJECT'
	option output 'ACCEPT'
	option forward 'REJECT'
	option masq '1'
	option mtu_fix '1'

config forwarding
	option src 'lan'
	option dest 'wan'

config rule
	option name 'Allow-DHCP-Renew'
	option src 'wan'
	option proto 'udp'
	option dest_port '68'
	option target 'ACCEPT'
	option family 'ipv4'

config rule
	option name 'Allow-Ping'
	option src 'wan'
	option proto 'icmp'
	option icmp_type 'echo-request'
	option family 'ipv4'
	option target 'ACCEPT'

config rule
	option name 'Allow-IGMP'
	option src 'wan'
	option proto 'igmp'
	option family 'ipv4'
	option target 'ACCEPT'

config rule
	option name 'Allow-DHCPv6'
	option src 'wan'
	option proto 'udp'
	option src_ip 'fc00::/6'
	option dest_ip 'fc00::/6'
	option dest_port '546'
	option family 'ipv6'
	option target 'ACCEPT'

config rule
	option name 'Allow-MLD'
	option src 'wan'
	option proto 'icmp'
	option src_ip 'fe80::/10'
	list icmp_type '130/0'
	list icmp_type '131/0'
	list icmp_type '132/0'
	list icmp_type '143/0'
	option family 'ipv6'
	option target 'ACCEPT'

config rule
	option name 'Allow-ICMPv6-Input'
	option src 'wan'
	option proto 'icmp'
	list icmp_type 'echo-request'
	list icmp_type 'echo-reply'
	list icmp_type 'destination-unreachable'
	list icmp_type 'packet-too-big'
	list icmp_type 'time-exceeded'
	list icmp_type 'bad-header'
	list icmp_type 'unknown-header-type'
	list icmp_type 'router-solicitation'
	list icmp_type 'neighbour-solicitation'
	list icmp_type 'router-advertisement'
	list icmp_type 'neighbour-advertisement'
	option limit '1000/sec'
	option family 'ipv6'
	option target 'ACCEPT'

config rule
	option name 'Allow-ICMPv6-Forward'
	option src 'wan'
	option dest '*'
	option proto 'icmp'
	list icmp_type 'echo-request'
	list icmp_type 'echo-reply'
	list icmp_type 'destination-unreachable'
	list icmp_type 'packet-too-big'
	list icmp_type 'time-exceeded'
	list icmp_type 'bad-header'
	list icmp_type 'unknown-header-type'
	option limit '1000/sec'
	option family 'ipv6'
	option target 'ACCEPT'

config include
	option path '/etc/firewall.user'

config rule
	option src 'wan'
	option dest 'lan'
	option proto 'esp'
	option target 'ACCEPT'

config rule
	option src 'wan'
	option dest 'lan'
	option dest_port '500'
	option proto 'udp'
	option target 'ACCEPT'
28.03.2017660PackagesBug ReportVery LowMediumDropbear stops working after issuing /etc/init.d/networ...lede-17.01Unconfirmed Task Description

- WR1043NDv4
- LEDE 17.01 stable

- login using SSH,
- issue command /etc/init.d/network restart
- try to login again using SSH - you’ll get Connection Refused.

 


28.03.2017662Base systemBug ReportVery LowMediumSysupgrade messes up Ubiquiti Unifi AP AC LiteAllUnconfirmed Task Description

Problem description

Performing a sysupgrade on a Ubiquiti Unifi AP AC Lite causes the device to operate erratically as, on reboot, it keeps the previous kernel while using the newly flashed rootfs.

Possible cause

This problem might be related to the way LEDE/OpenWrt must be flashed from the stock firmware, as detailed in OpenWrt's wiki. Flashing the image to kernel0 or kernel1 does not work; both partitions must be flashed with the same image.

Steps to reproduce it

  1. Revert to stock firmware (e.g. via Ubiquiti’s TFTP recovery procedure)
  2. Flash LEDE image (e.g. 17.01.0 stable) from stock firmware as described in OpenWrt's wiki (writing both to kernel0 and kernel1 partitions)
  3. On reboot, check kernel version (dmesg | head -n1)
  4. Sysupgrade to LEDE snapshot (sysupgrade -v -n lede-ar71xx-generic...)
  5. Check kernel version again (dmesg | head -n1)

Both kernel versions will be the same. Actually, it’s the same kernel, only the rootfs has been upgraded.

Suggestions

It seems Ubiquiti’s bootloader implements some mechanism to fallback to an older firmware/kernel/rootfs/image/whatever, or maybe the partitioning scheme has been updated in the stock firmware.

If instead of running sysupgrade, the LEDE image is dd’ed to both the “firmware” (mtd2) and the “ubnt-airos” (mtd6) partitions (mtd write /tmp/lede-ar71xx...lite.bin firmware && mtd -r write /tmp/lede-ar71xx...lite.bin ubnt-airos), the new image is booted (including the new kernel). However, the “ubnt-airos” partition is read-only so a LEDE image having this partition set to rw must be first compiled and flashed from the stock firmware.

30.03.2017666Base systemBug ReportVery LowMedium"Wireless is disabled or not associated" when channel m...AllUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on Banana Pi R1
- Software versions: all

When I set the channel mode to “auto”, then the message appears “Wireless is disabled or not associated” and the WLAN does’nt work.
I set the channel manually, then WLAN works fine.

The problem is already known with OpenWrt:
https://dev.openwrt.org/changeset/32630


01.04.2017670Base systemBug ReportVery LowMediumwhr-1166d gigabit port not workinglede-17.01Unconfirmed Task Description

This is on a WHR-1166D running 17.01.
Connections to to the gigabit (WAN) port don’t work. The LuCI switch menu shows it connected and the kernel message says link up, but the status page says not connected. The 100mbit ports work fine.

It *DOES* work in OpenWrt CC, but if CC is sysupgraded from LEDE the port still won’t work until a power cycle. Soft reboots don’t work, so I suspect LEDE is setting something on the switch or phy config that CC leaves at default.

Noticed differences:
Gigabit phy is driver=ICPlus IP1001 on LEDE, generic on CC.
Switch configuration gui in LuCI is different: CC has two extra ports that LEDE doesn’t. They’re not exposed on the device so it makes sense to hide them. LEDE swconfig shows the “hidden” ports.

Other possibly useful info:
ifconfig shows the port sends packets (perhaps DHCP requests), but never receives anything.
swconfig shows all octets received are bad, but also fewer octets than packets...
Port 5:

      mib: Port 5 MIB counters

TxGPC : 34472
TxBOC : 0
TxGOC : 56561081
TxEPC : 0
RxGPC : 3183869952
RxBOC : 13195604
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0

This device has a strange combination where one of the ports on the 7620 is connected to a 10/100 switch, but the other port is used as WAN and connected just to a gigabit phy.

02.04.2017671KernelBug ReportVery LowMediumMaybe something wrong with iptableslede-17.01Unconfirmed Task Description

- Device problem occurs on any reboot
- LEDE 17.01 on Archer C50 (CPU: MT7620A, 2G: MT7620A, 5G: MT7612EN)
- Packages installed:

  + kmod-nf-nathelper
  + kmod-nf-nathelper-extra
  + kmod-nfnetlink-log
  + kmod-nfnetlink-queue
  + iptables-mod-conntrack-extra
  + iptables-mod-nat-extra

[ 2523.002022] ————[ cut here ]———— [ 2523.006780] WARNING: CPU: 0 PID: 0 at net/core/skbuff.c:4194 0x801f1598()
[ 2523.013760] Modules linked in: pppoe ppp_async iptable_nat wireguard rt2800soc rt2800pci rt2800mmio rt2800lib qmi_wwan pppox ppp_generic nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_hashlimit xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbnet ts_kmp ts_fsm ts_bm slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nfnetlink_queue nfnetlink_log nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast iptable_mangle iptable_filter ipt_ECN ip_tables crc_itu_t crc_ccitt cdc_wdm sch_cake nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport mt7603e mt76x2e mt76 mac80211 cfg80211 compat xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ifb ip6_udp_tunnel udp_tunnel ipip tunnel4 ip_tunnel tun zram lzo_decompress lzo_compress lz4_decompress lz4_compress zsmalloc eeprom_93cx6 mii usb_storage ehci_platform ehci_hcd sd_mod scsi_mod f2fs usbcore nls_base usb_common leds_gpio gpio_button_hotplug
[ 2523.192336] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.50 #0
[ 2523.198196] Stack : 8031387c 00000000 00000001 80360000 00000000 00000000 00000000 00000000
[ 2523.198196] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2523.198196] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2523.198196] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2523.198196] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2523.198196] ...
[ 2523.234571] Call Trace:[<80014488>] 0×80014488 [ 2523.239162] [<80014488>] 0×80014488 [ 2523.242734] [<80024f98>] 0x80024f98
[ 2523.246311] [<801f1598>] 0x801f1598
[ 2523.249906] [<80025050>] 0×80025050 [ 2523.253507] [<801f1598>] 0x801f1598
[ 2523.257103] [<8024ae00>] 0x8024ae00
[ 2523.260713] [<82e707f4>] 0x82e707f4 [nf_conntrack@82e70000+0xc860]
[ 2523.267044] [<8024b3e8>] 0x8024b3e8
[ 2523.270646] [<8024fbf8>] 0x8024fbf8
[ 2523.274259] [<82e88448>] 0x82e88448 [ip_tables@82e88000+0×2410]
[ 2523.280324] [<80257968>] 0×80257968 [ 2523.283937] [<8025a094>] 0x8025a094
[ 2523.287506] [<8249436c>] 0x8249436c [nf_conntrack_ipv4@82494000+0x14e0]
[ 2523.294331] [<80231348>] 0×80231348 [ 2523.297918] [<802377c4>] 0x802377c4
[ 2523.301534] [<80237d7c>] 0x80237d7c
[ 2523.305137] [<80237668>] 0×80237668 [ 2523.308720] [<80238048>] 0×80238048 [ 2523.312359] [<8023788c>] 0x8023788c
[ 2523.315943] [<80200484>] 0×80200484 [ 2523.319524] [<82dace30>] 0x82dace30 [mac80211@82d80000+0x5ece0]
[ 2523.325577] [<80203954>] 0×80203954 [ 2523.329198] [<802dd2e8>] 0x802dd2e8
[ 2523.332793] [<801f229c>] 0x801f229c
[ 2523.336366] [<80079b30>] 0x80079b30
[ 2523.339992] [<802dd824>] 0x802dd824
[ 2523.343592] [<801f4028>] 0x801f4028
[ 2523.347200] [<802ddc24>] 0x802ddc24
[ 2523.350772] [<8025ea5c>] 0x8025ea5c
[ 2523.354371] [<8025edd4>] 0x8025edd4
[ 2523.357955] [<8026e6ec>] 0x8026e6ec
[ 2523.361545] [<802dd8a8>] 0x802dd8a8
[ 2523.365110] [<80200200>] 0×80200200 [ 2523.368752] [<80201bc8>] 0x80201bc8
[ 2523.372405] [<82d9fd68>] 0x82d9fd68 [mac80211@82d80000+0x5ece0]
[ 2523.378535] [<82da2b50>] 0x82da2b50 [mac80211@82d80000+0x5ece0]
[ 2523.384752] [<82da4d2c>] 0x82da4d2c [mac80211@82d80000+0x5ece0]
[ 2523.390930] [<82da5530>] 0x82da5530 [mac80211@82d80000+0x5ece0]
[ 2523.397107] [<82ce58ec>] 0x82ce58ec [mt76@82ce4000+0x3c00]
[ 2523.402820] [<82ce50e8>] 0x82ce50e8 [mt76@82ce4000+0x3c00]
[ 2523.408470] [<80201408>] 0×80201408 [ 2523.412112] [<80027518>] 0×80027518 [ 2523.415672] [<8004f0bc>] 0x8004f0bc
[ 2523.419231] [<8004b5d4>] 0x8004b5d4
[ 2523.422803] [<802f0000>] 0x802f0000
[ 2523.426363] [<800047f4>] 0x800047f4
[ 2523.429917]
[ 2523.431447] —[ end trace f575bdc1078df966 ]—

 


08.04.2017689Base systemBug ReportVery LowMedium WiFi disconnects on Dir300 b7lede-17.01Unconfirmed Task Description

This: https://github.com/nodemcu/nodemcu-firmware/issues/639 and this: https://forum.openwrt.org/viewtopic.php?id=43188

Device: Dlink Dir-300 b7 with latest LEDE 17.01

Solution: Adding an option ‘option disassoc_low_ack 0’ to /etc/config/wireless in the config wifi-iface section.

08.04.2017692Base systemBug ReportMediumMediumWLAN AP not working on RasPi (bcm2710 target)TrunkAssigned Task Description

When flashing the brcm2708 / bcm2710 target the WiFi interface gets stuck in “client mode” and the AP will not be able to be brought up.

Some screenshots and a load of discussion here:
https://forum.lede-project.org/t/ap-mode-radio0-in-raspi-3-always-acts-as-a-client-shows-as-wlan0-in-luci/2885

Two more days of tinkering, wifi-up’ing and -down’ing did not bring me further.
I flashed another Pi3 (to exclude a hardware defect) with the same result.

I tried latest snapshot and stable images.
I am happy to help debug – tell me what you need me to do.

Greetings,
–Thomas

11.04.2017704Base systemBug ReportMediumMediumbrcmfmac / Raspberry Pi 3 / wifi not working / adhoc an...TrunkAssigned Task Description

tested with a snapshot-image and a selfcompiled with r3923
wifi in adhoc mode or 80211s-mode ist not working. Messages in
syslog are the same. wifi-scanning works (iw dev wlan0 scan).

root@LEDE:~ :) dmesg | grep -i brcm
[   14.341639] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Aug 29 2016 20:48:16 version 7.45.41.26 (r640327) FWID 01-4527cfab
[   14.387220] usbcore: registered new interface driver brcmfmac

root@LEDE:~ wifi
root@LEDE:~ logread
Sun Apr  9 04:04:02 2017 daemon.notice netifd: Interface 'wlan' is now down
Sun Apr  9 04:04:02 2017 daemon.notice netifd: Interface 'wlan' is disabled
Sun Apr  9 04:04:03 2017 daemon.notice netifd: radio0 (5094): command failed: No error information (-524)
Sun Apr  9 04:04:03 2017 daemon.notice netifd: radio0 (5131): command failed: No error information (-524)
Sun Apr  9 04:04:03 2017 daemon.notice netifd: radio0 (5131): command failed: Not supported (-95)
Sun Apr  9 04:04:03 2017 daemon.notice netifd: radio0 (5131): command failed: I/O error (-5)
Sun Apr  9 04:04:03 2017 daemon.notice netifd: radio0 (5131): command failed: Too many open files in system (-23)
Sun Apr  9 04:04:04 2017 daemon.notice netifd: radio0 (5131): command failed: Too many open files in system (-23)
Sun Apr  9 04:04:04 2017 daemon.notice netifd: radio0 (5131): Device setup failed: INTERFACE_CREATION_FAILED
Sun Apr  9 04:04:04 2017 daemon.notice netifd: radio0 (5131): WARNING: Variable 'interfaces' does not exist or is not an array/object

root@LEDE:~ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.country='US'
wireless.radio0.channel='5'
wireless.radio0.path='platform/soc/3f300000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.hwmode='11g'
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device='radio0'
wireless.@wifi-iface[0].network='wlan'
wireless.@wifi-iface[0].mode='adhoc'
wireless.@wifi-iface[0].bssid='02:ca:ff:ee:ba:be'
wireless.@wifi-iface[0].macaddr='b8:27:eb:14:63:ea'
wireless.@wifi-iface[0].ssid='ffintern.2GHz'

root@LEDE:~ :) ip address show dev wlan0
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc prio state DOWN group default qlen 1000
    link/ether b8:27:eb:14:63:ea brd ff:ff:ff:ff:ff:ff
    inet 10.63.5.1/8 brd 10.255.255.255 scope global wlan0
       valid_lft forever preferred_lft forever
19.04.2017719ToolchainBug ReportVery LowMediummake menuconfig display problemTrunkUnconfirmed Task Description

I have Ubuntu 16.04 (64bit) with requirements for buildroot installed.

After clone I ran make defconfig.

But make menuconfig looks unusable. No cursor, scrolling not updates GUI, menus seems broken too.

I tried terminator, gnome-terminal and xterm but behavior is same everywhere.

19.04.2017723Base systemBug ReportVery LowMediumath10k fails station mode for QCA986x/988xlede-17.01Unconfirmed Task Description

Set-Up:

  • Board: NXP/Freescale Layerscape TWR-LS1021A Router/AP
  • Wireless Network Adapter: Qualcomm Atheros PCI QCA986x/988x 802.11ac
  • OS: LEDE (derivative from OpenWrt) Reboot/SNAPSHOT/r3044-21356a6

On host: menuconfig:

  • Kernel modules > Wireless Drivers: kmod-ath10k, kmod-ath, kmod-cfg80211, kmod-mac80211
  • Firmware: ath10k-firmware-qca988x
  • Network: wpad, wpa-cli
  • netifd + ubus + uci

On TWR-LS1021A:
Just in order to test if WiFi card is really QCA986x/988x 802.11ac:
root@lede:/# cat /sys/bus/pci/devices/0000\:01\:00.0/vendor

0x168c

root@lede:/# cat /sys/bus/pci/devices/0000\:01\:00.0/device

0x003c

Google: PCI 168c 0x003c gives QCA986x/988x


During the first boot, boot scripts create: /etc/config/wireless with the following contents:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '36'
        option hwmode '11a'
        option path 'soc/3400000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
        option htmode 'VHT80'
        option disabled '1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'LEDE'
        option encryption 'none'

We remove: option disabled ‘1’ (WiFi is disabled by default → enable it) and reboot.

Boot with USB-serial output:

…
[    6.270954] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    6.450972] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
[    6.461643] ath10k_pci 0000:01:00.0: Falling back to user helper
[    6.474916] firmware ath10k!pre-cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
[    6.484102] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/cal-pci-0000:01:00.0.bin failed with error -2
[    6.494431] ath10k_pci 0000:01:00.0: Falling back to user helper
[    6.507497] firmware ath10k!cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
[    6.528736] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[    6.537986] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[    6.548737] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[    6.599443] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[    6.609853] ath10k_pci 0000:01:00.0: Falling back to user helper
[    6.623269] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[    6.632927] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[    7.775018] ath10k_pci 0000:01:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
…
[   11.014199] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   11.022336] device wlan0 entered promiscuous mode
[   11.336732] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
…

Remarks:

  • pre-cal/cal-pci error messages are connected to pre-calibration issues, so ignore them
  • board-2.bin error: indeed /lib/firmware/ath10k/QCA988X/hw2.0/ contains only board.bin and firmware-5.bin. we have tried to copy hw2.0/board-2.bin from QCA proprietary driver but then: [ 6.590282] ath10k_pci 0000:01:00.0: failed to fetch board data for bus=pci,vendor=168c,device=003c,subsystem-vendor=0000,subsystem-device=0000 from ath10k/QCA988X/hw2.0/board-2.bin

Nevertheless, the driver is correctly started in AP mode:
root@lede:/# iwconfig

wlan0     IEEE 802.11  Mode:Master  Tx-Power=20 dBm   
          RTS thr:off   Fragment thr:off
          Power Management:off

root@lede:/# ifconfig

wlan0     Link encap:Ethernet  HWaddr 00:0E:8E:59:7D:8F  
          inet6 addr: fe80::20e:8eff:fe59:7d8f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:15588 (15.2 KiB)

Now try to switch to station mode with WPA:
AP: 802.11a, channel 36: 5.18 GHz, SSID: iwl3xxx, Security mode: WPA/PSK, CCMP/AES (WPA/RSN), Password: password

TWR-LS1021A: /etc/config/wireless:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '36'
        option hwmode '11a'
        option path 'soc/3400000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'wlan'
        option mode 'sta'
        option ssid 'iwl3xxx'
        option encryption 'psk'
        option key 'password'

config interface 'wlan'
        option ifname 'default_radio0'
        option proto 'static'
        option ipaddr '192.168.0.2'
        option netmask '255.255.255.0'

root@lede:/# iwconfig

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

It correctly switches to managed mode but no ESSID and no AP are assigned. Direct WPA supplicant employment also fails:

We create WPA config file /a:

country=00
network={
  ssid="iwl3xxx"
  psk="password"
  scan_ssid=1
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP
}

Start WPA supplicant:
root@lede:/# wpa_supplicant -c /a -i wlan0 -D nl80211

Successfully initialized wpa_supplicant
wlan0: SME: Trying to authenticate with 00:18:92:05:b6:ec (SSID='iwl3xxx' freq=5180 MHz)
[ 2736.691425] wlan0: authenticate with 00:18:92:05:b6:ec
[ 2736.702348] wlan0: send auth to 00:18:92:05:b6:ec (try 1/3)
[ 2736.709540] wlan0: authenticated
wlan0: Trying to associate with 00:18:92:05:b6:ec (SSID='iwl3xxx' freq=5180 MHz)
[ 2736.717183] wlan0: associate with 00:18:92:05:b6:ec (try 1/3)
[ 2736.725522] wlan0: RX AssocResp from 00:18:92:05:b6:ec (capab=0x411 status=0 aid=1)
[ 2736.734827] wlan0: associated
[ 2736.738114] wlan0: deauthenticating from 00:18:92:05:b6:ec by local choice (Reason: 3=DEAUTH_LEAVING)
wlan0: Associated with 00:18:92:05:b6:ec
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:18:92:05:b6:ec reason=3 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="iwl3xxx" auth_failures=1 duration=10 reason=WRONG_KEY

Though the key is correct, the driver delivers WRONG_KEY message. In order to eliminate any security issues, we switch to insecure communication:
AP: 802.11a, channel 36: 5.18 GHz, SSID: iwl3xxx, Security mode: NONE

TWR-LS1021A: WPA config file /a:

country=00
network={
  ssid="iwl3xxx"
  scan_ssid=1
  key_mgmt=NONE
}

Start WPA supplicant:
root@lede:/# wpa_supplicant -c /a -i wlan0 -D nl80211

Successfully initialized wpa_supplicant
wlan0: SME: Trying to authenticate with 00:18:92:05:b6:ec (SSID='iwl3xxx' freq=5180 MHz)
[   26.011997] wlan0: authenticate with 00:18:92:05:b6:ec
[   26.069291] wlan0: send auth to 00:18:92:05:b6:ec (try 1/3)
[   26.075992] wlan0: authenticated
wlan0: Trying to associate with 00:18:92:05:b6:ec (SSID='iwl3xxx' freq=5180 MHz)
[   26.087236] wlan0: associate with 00:18:92:05:b6:ec (try 1/3)
[   26.094140] wlan0: RX AssocResp from 00:18:92:05:b6:ec (capab=0x401 status=0 aid=1)
[   26.103088] wlan0: associated
[   26.106163] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: Associated with 00:18:92:05:b6:ec
wlan0: CTRL-EVENT-CONNECTED - Connection to 00:18:92:05:b6:ec completed [id=0 id_str=]
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
[   36.117315] wlan0: deauthenticating from 00:18:92:05:b6:ec by local choice (Reason: 3=DEAUTH_LEAVING)
wlan0: CTRL-EVENT-DISCONNECTED bssid=00:18:92:05:b6:ec reason=3 locally_generated=1

So, WPA supplicant reports: we were authenticated and associated, connection completed. And then we leave WiFi by local choice. WireShark shows that deauthenticate-request comes from from us to access point.

Result: ath10k fails station mode for QCA986x/988x

23.04.2017731Base systemBug ReportVery LowMediumOffline build not possible after "make download"lede-17.01Unconfirmed Task Description

I tried to do an offline build of almost the default configuration for x86_64 of 17.01.1. So I did “make download” (with that configuration) on a machine connected to the internet and then tried to build from there offline, but “make” tried to download files, that “make download” did not and failed.

The first few files were the following, then I gave up:

ncurses-6.0.tar.gz
lzo-2.09.tar.gz
usign-2015-07-04-ef641914.tar.xz
mbedtls-2.4.2-gpl.tgz
ustream-ssl-2016-07-02-ec80adaa.tar.xz
openssl-1.0.2k.tar.gz

28.04.2017740Base systemBug ReportVery LowMediumWRT54 Router Power LED continually flasheslede-17.01Unconfirmed Task Description
  • LEDE 17.01.1
  • WRT54G v3 and WRT54GS
  • after installing, power LED continually flashes
  • no noticeable difference in LED between failsafe/actual moment of soft reboot//when router is up
  • I had to failsafe the WRT54G multiple times due to other initial config errors (attempting to bridge wlan0 to LAN, which was possible in another OS), I could only identify failsafe by Pinging it then SSHing quickly
  • The method I described to identify failsafe is not mentioned in documentation
30.04.2017746Base systemBug ReportVery LowMediumdnsmasq-full should deselect dnsmasqTrunkUnconfirmed Task Description

When selecting package dnsmasq-full from make menuconfig I believe it should deselect package dnsmasq. They need to be mutually exclusive.

Otherwise this happens when selecting dnsmasq-full from an otherwise default config.

Configuring ppp-mod-pppoe.
> Collected errors:
> * check_data_file_clashes: Package dnsmasq-full wants to install file /data/lede/build_dir/target-mips_24kc_musl/root-ar71xx/etc/hotplug.d/ntp/25-dnsmasqsec
> But that file is already provided by package * dnsmasq
> * check_data_file_clashes: Package dnsmasq-full wants to install file /data/lede/build_dir/target-mips_24kc_musl/root-ar71xx/etc/init.d/dnsmasq
> But that file is already provided by package * dnsmasq
> * check_data_file_clashes: Package dnsmasq-full wants to install file /data/lede/build_dir/target-mips_24kc_musl/root-ar71xx/usr/sbin/dnsmasq
> But that file is already provided by package * dnsmasq
> * check_data_file_clashes: Package dnsmasq-full wants to install file /data/lede/build_dir/target-mips_24kc_musl/root-ar71xx/usr/share/dnsmasq/rfc6761.conf
> But that file is already provided by package * dnsmasq
> * opkg_install_cmd: Cannot install package dnsmasq-full.

http://lists.infradead.org/pipermail/lede-dev/2017-April/007228.html

01.05.2017749Base systemBug ReportVery LowMediumEdgeRouter Lite (octeon) f2fs WARNING in segment.clede-17.01Unconfirmed Task Description

Using a firmware built on my own, as well as downloaded from

https://downloads.lede-project.org/releases/17.01.1/targets/octeon/generic/

Freshly installed, there is a kernel WARNING (is that the right term?)

U-Boot 1.1.1 (UBNT Build ID: 4670715-gbd7e2d7) (Build time: May 27 2014 - 11:16:22)

BIST check passed.
UBNT_E100 r1:2, r2:18, f:4/71, serial #: 44D9E79F90C9
MPR 13-00318-18
Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
DRAM:  512 MB
Clearing DRAM....... done
Flash:  4 MB
Net:   octeth0, octeth1, octeth2

USB:   (port 0) scanning bus for devices... 1 USB Devices found
       scanning bus for storage devices...
  Device 0: Vendor:          Prod.: USB DISK 2.0     Rev: PMAP
            Type: Removable Hard Disk
            Capacity: 3824.0 MB = 3.7 GB (7831552 x 512)                                                                                                       0
reading vmlinux.64
............................

5555424 bytes read
argv[2]: coremask=0x3
argv[3]: root=/dev/sda2
argv[4]: rootdelay=15
argv[5]: rw
argv[6]: rootsqimg=squashfs.img
argv[7]: rootsqwdir=w
argv[8]: mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom)
ELF file is 64 bit
Allocating memory for ELF segment: addr: 0xffffffff81100000 (adjusted to: 0x1100000), size 0x16a3fa0
Allocated memory for ELF segment: addr: 0xffffffff81100000, size 0x16a3fa0
Processing PHDR 0
  Loading 54af00 bytes at ffffffff81100000
  Clearing 11590a0 bytes at ffffffff8164af00
## Loading Linux kernel with entry point: 0xffffffff811078a0 ...
Bootloader: Done loading app on coremask: 0x3
[    0.000000] Linux version 4.4.61 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 SMP Sat Apr 15 16:13:45 2017
[    0.000000] CVMSEG size: 2 cache lines (256 bytes)
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 000d0601 (Cavium Octeon+)
[    0.000000] Checking for the multiply/shift bug... no.
[    0.000000] Checking for the daddiu bug... no.
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0000000005800000 @ 0000000002800000 (usable)
[    0.000000]  memory: 0000000007c00000 @ 0000000008200000 (usable)
[    0.000000]  memory: 000000000fc00000 @ 0000000410000000 (usable)
[    0.000000]  memory: 00000000016a3fa0 @ 0000000001100000 (usable)
[    0.000000] Wasting 243712 bytes for tracking 4352 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using internal Device Tree.
[    0.000000] software IO TLB [mem 0x0378e000-0x0778e000] (64MB) mapped at [800000000378e000-800000000778dfff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000001100000-0x00000000efffffff]
[    0.000000]   Normal   [mem 0x00000000f0000000-0x000000041fbfffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000001100000-0x00000000027a2fff]
[    0.000000]   node   0: [mem 0x0000000002800000-0x0000000007ffffff]
[    0.000000]   node   0: [mem 0x0000000008200000-0x000000000fdfffff]
[    0.000000]   node   0: [mem 0x0000000410000000-0x000000041fbfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000001100000-0x000000041fbfffff]
[    0.000000] Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize 128 bytes.
[    0.000000] Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.
[    0.000000] PERCPU: Embedded 14 pages/cpu @8000000007849000 s20224 r8192 d28928 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 122875
[    0.000000] Kernel command line: mtdparts=phys_mapped_flash:512k(boot0)ro,512k(boot1)ro,64k(eeprom)ro root=/dev/sda2 rootfstype=squashfs,ext4 rootwait  console=ttyS0,115200
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Memory: 400736K/498316K available (4199K kernel code, 304K rwdata, 652K rodata, 1284K init, 16719K bss, 97580K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  CONFIG_RCU_FANOUT set to non-default value of 32
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:127
[    7.147901] clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns
[    7.158745] Calibrating delay loop (skipped) preset value.. 1000.00 BogoMIPS (lpj=2000000)
[    7.166921] pid_max: default: 32768 minimum: 301
[    7.171667] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    7.178141] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    7.185929] Checking for the daddi bug... no.
[    7.192506] SMP: Booting CPU01 (CoreId  1)...
[    7.196888] CPU1 revision is: 000d0601 (Cavium Octeon+)
[    7.197086] Brought up 2 CPUs
[    7.210207] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    7.219889] futex hash table entries: 512 (order: 4, 65536 bytes)
[    7.226749] NET: Registered protocol family 16
[    7.231886] Can't analyze schedule() prologue at ffffffff81109a08
[    7.249961] Not in host mode, PCI Controller not initialized
[    7.273539] SCSI subsystem initialized
[    7.277735] usbcore: registered new interface driver usbfs
[    7.283246] usbcore: registered new interface driver hub
[    7.288576] usbcore: registered new device driver usb
[    7.295690] clocksource: Switched to clocksource OCTEON_CVMCOUNT
[    7.303021] NET: Registered protocol family 2
[    7.308164] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    7.315205] TCP bind hash table entries: 4096 (order: 5, 131072 bytes)
[    7.321776] TCP: Hash tables configured (established 4096 bind 4096)
[    7.328094] UDP hash table entries: 256 (order: 2, 24576 bytes)
[    7.333965] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes)
[    7.340528] NET: Registered protocol family 1
[    7.351823] Crashlog allocated RAM at address 0x3f00000
[    7.372836] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    7.379094] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    7.393829] io scheduler noop registered
[    7.397778] io scheduler deadline registered (default)
[    7.403150] octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
[    7.410882] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    7.421840] console [ttyS0] disabled
[    7.425354] 1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 41, base_baud = 31250000) is a OCTEON
[    7.435125] console [ttyS0] enabled
[    7.435125] console [ttyS0] enabled
[    7.442028] bootconsole [early0] disabled
[    7.442028] bootconsole [early0] disabled
[    7.450602] 1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 42, base_baud = 31250000) is a OCTEON
[    7.461208] octeon_rng octeon_rng: Octeon Random Number Generator
[    7.476791] loop: module loaded
[    7.480859] of-flash 1f400000.nor: Can't get bank width from device tree
[    7.488130] libphy: mdio-octeon: probed
[    7.493863] mdio-octeon 1180000001800.mdio: Version 1.1
[    7.499514] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.506095] ehci-pci: EHCI PCI platform driver
[    7.510694] ehci-platform: EHCI generic platform driver
[    7.516232] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.522497] ohci-platform: OHCI generic platform driver
[    7.528113] usbcore: registered new interface driver usb-storage
[    7.534178] octeon_wdt: Initial granularity 5 Sec
[    7.542862] Interface 0 has 3 ports (RGMII)
[    7.551658] OcteonUSB 16f0010000000.usbc: Octeon Host Controller
[    7.557762] OcteonUSB 16f0010000000.usbc: new USB bus registered, assigned bus number 1
[    7.565863] OcteonUSB 16f0010000000.usbc: irq 124, io mem 0x00000000
[    7.573317] hub 1-0:1.0: USB hub found
[    7.577215] hub 1-0:1.0: 1 port detected
[    7.581735] OcteonUSB 16f0010000000.usbc: Registered HCD for port 0 on irq 124
[    7.590542] NET: Registered protocol family 10
[    7.597130] NET: Registered protocol family 17
[    7.601749] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    7.614421] 8021q: 802.1Q VLAN Support v1.8
[    7.618987] Bootbus flash: Setting flash for 4MB flash at 0x1f800000
[    7.625502] phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x000001 Chip ID 0x001a01
[    7.635895] Amd/Fujitsu Extended Query Table at 0x0040
[    7.641088]   Amd/Fujitsu Extended Query version 1.3.
[    7.646167] phys_mapped_flash: Swapping erase regions for top-boot CFI table.
[    7.653333] number of CFI chips: 1
[    7.656784] 3 cmdlinepart partitions found on MTD device phys_mapped_flash
[    7.663694] Creating 3 MTD partitions on "phys_mapped_flash":
[    7.669470] 0x000000000000-0x000000080000 : "boot0"
[    7.675929] 0x000000080000-0x000000100000 : "boot1"
[    7.682384] 0x000000100000-0x000000110000 : "eeprom"
[    7.690420] fdt: not creating '/sys/firmware/fdt': CRC check failed
[    7.697332] Waiting for root device /dev/sda2...
[    7.938987] usb 1-1: new high-speed USB device number 2 using OcteonUSB
[    8.379119] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.385761] scsi host0: usb-storage 1-1:1.0
[    9.388366] scsi 0:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 6
[    9.398568] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.01 GB/3.73 GiB)
[    9.407156] sd 0:0:0:0: [sda] Write Protect is off
[    9.412976] sd 0:0:0:0: [sda] No Caching mode page found
[    9.418386] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.429634]  sda: sda1 sda2
[    9.436532] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    9.513812] VFS: Mounted root (squashfs filesystem) readonly on device 8:2.
[    9.522021] Freeing unused kernel memory: 1284K (ffffffff8160f000 - ffffffff81750000)
[   10.250157] init: Console is alive
[   10.253922] init: - watchdog -
[   10.571309] init: - preinit -
cat: can't open '/tmp/sysinfo/board_name': No such file or directory
[   10.943161] random: jshn: uninitialized urandom read (4 bytes read, 89 bits of entropy available)
[   10.991547] random: jshn: uninitialized urandom read (4 bytes read, 90 bits of entropy available)
[   11.029533] random: jshn: uninitialized urandom read (4 bytes read, 91 bits of entropy available)
[   11.065314] eth0: 1000 Mbps Full duplex, port 0, queue 0
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   14.379000] random: nonblocking pool is initialized
[   14.436744] mount_root: rootdisk overlay filesystem has not been formatted yet

        F2FS-tools: mkfs.f2fs Ver: 1.8.0 (2017-02-03)

Info: Debug level = 0
Info: Label = rootfs_data
Info: Trim is enabled
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 3414144 (1667 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
  "Linux version 4.4.61 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 SMP Sat Apr 15 16:13:45 2017"
Info: [/dev/loop0] Discarding device
Info: This device doesn't support BLKSECDISCARD
Info: This device doesn't support BLKDISCARD
Info: Overprovision ratio = 4.960%
Info: Overprovision segments = 86 (GC reserved = 48)
Info: format successful
[   16.695198] mount_root: overlay filesystem has not been fully initialized yet
[   16.703760] mount_root: switching to f2fs overlay
[   16.753210] urandom-seed: Seed file not found (/etc/urandom.seed)
[   16.905217] eth0: Link down
[   16.917557] procd: - early -
[   16.920639] procd: - watchdog -
[   17.543389] procd: - ubus -
[   17.678625] procd: - init -
Please press Enter to activate this console.
[   17.928815] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   17.943136] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.954403] nf_conntrack version 0.5.0 (3140 buckets, 12560 max)
[   18.023028] xt_time: kernel timezone is -0000
[   18.036364] PPP generic driver version 2.4.2
[   18.041948] NET: Registered protocol family 24
[   19.332518] ------------[ cut here ]------------
[   19.337193] WARNING: CPU: 1 PID: 626 at fs/f2fs/segment.c:718 0xffffffff812cfd90()
[   19.344780] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables
[   19.396207] CPU: 1 PID: 626 Comm: uci Not tainted 4.4.61 #0
[   19.401780] Stack : 0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 800000041e107220 0000000000000000 ffffffff81125fc0
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 ffffffff81125fc0 0000000000000000 0000000000000000
          ...
[   19.467419] Call Trace:[<ffffffff81125fc0>] 0xffffffff81125fc0
[   19.473278] [<ffffffff81125fc0>] 0xffffffff81125fc0
[   19.478161] [<ffffffff813103dc>] 0xffffffff813103dc
[   19.483043] [<ffffffff8113baac>] 0xffffffff8113baac
[   19.487925] [<ffffffff812cfd90>] 0xffffffff812cfd90
[   19.492807] [<ffffffff812d0690>] 0xffffffff812d0690
[   19.497688] [<ffffffff812d2114>] 0xffffffff812d2114
[   19.502571] [<ffffffff812d24d0>] 0xffffffff812d24d0
[   19.507453] [<ffffffff812d261c>] 0xffffffff812d261c
[   19.512335] [<ffffffff812c844c>] 0xffffffff812c844c
[   19.517217] [<ffffffff812c88d4>] 0xffffffff812c88d4
[   19.522100] [<ffffffff812c5358>] 0xffffffff812c5358
[   19.526981] [<ffffffff812c56a0>] 0xffffffff812c56a0
[   19.531866] [<ffffffff8110c740>] 0xffffffff8110c740
[   19.536747] [<ffffffff811adcb4>] 0xffffffff811adcb4
[   19.541630] [<ffffffff812c59a0>] 0xffffffff812c59a0
[   19.546512] [<ffffffff811a26b0>] 0xffffffff811a26b0
[   19.551394] [<ffffffff812c25f8>] 0xffffffff812c25f8
[   19.556276] [<ffffffff812c2738>] 0xffffffff812c2738
[   19.561157] [<ffffffff811ad424>] 0xffffffff811ad424
[   19.566039] [<ffffffff8116fa64>] 0xffffffff8116fa64
[   19.570923] [<ffffffff812bcc14>] 0xffffffff812bcc14
[   19.575805] [<ffffffff8110c740>] 0xffffffff8110c740
[   19.580686] [<ffffffff8116f9d8>] 0xffffffff8116f9d8
[   19.585567] [<ffffffff812b6ed0>] 0xffffffff812b6ed0
[   19.590450] [<ffffffff812b3188>] 0xffffffff812b3188
[   19.595338] [<ffffffff812b329c>] 0xffffffff812b329c
[   19.600222] [<ffffffff812b0248>] 0xffffffff812b0248
[   19.605104] [<ffffffff811dd1b4>] 0xffffffff811dd1b4
[   19.609985] [<ffffffff811eb76c>] 0xffffffff811eb76c
[   19.614868] [<ffffffff811ec300>] 0xffffffff811ec300
[   19.619751] [<ffffffff811ecbf4>] 0xffffffff811ecbf4
[   19.624635] [<ffffffff8110c7c0>] 0xffffffff8110c7c0
[   19.629516] [<ffffffff811f9cac>] 0xffffffff811f9cac
[   19.634398] [<ffffffff811dd5cc>] 0xffffffff811dd5cc
[   19.639281] [<ffffffff811038d0>] 0xffffffff811038d0
[   19.644164] [<ffffffff81107668>] 0xffffffff81107668
[   19.649045] [<ffffffff811e2d8c>] 0xffffffff811e2d8c
[   19.653928]
[   19.655705] ---[ end trace 790531a03d0d7329 ]---
[   19.660688] ------------[ cut here ]------------
[   19.665362] WARNING: CPU: 1 PID: 626 at fs/f2fs/segment.c:718 0xffffffff812cfd90()
[   19.672952] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables
[   19.724383] CPU: 1 PID: 626 Comm: uci Tainted: G        W       4.4.61 #0
[   19.731172] Stack : 0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 800000041e107380 0000000000000000 ffffffff81125fc0
          0000000000000000 0000000000000000 0000000000000000 0000000000000000
          0000000000000000 ffffffff81125fc0 0000000000000000 0000000000000000
          ...
[   19.796810] Call Trace:[<ffffffff81125fc0>] 0xffffffff81125fc0
[   19.802671] [<ffffffff81125fc0>] 0xffffffff81125fc0
[   19.807554] [<ffffffff813103dc>] 0xffffffff813103dc
[   19.812435] [<ffffffff8113baac>] 0xffffffff8113baac
[   19.817317] [<ffffffff812cfd90>] 0xffffffff812cfd90
[   19.822200] [<ffffffff812d0690>] 0xffffffff812d0690
[   19.827081] [<ffffffff812d2114>] 0xffffffff812d2114
[   19.831964] [<ffffffff812d24d0>] 0xffffffff812d24d0
[   19.836846] [<ffffffff812d2580>] 0xffffffff812d2580
[   19.841727] [<ffffffff812ca1fc>] 0xffffffff812ca1fc
[   19.846610] [<ffffffff812cc2a0>] 0xffffffff812cc2a0
[   19.851492] [<ffffffff812c24d0>] 0xffffffff812c24d0
[   19.856375] [<ffffffff8110c740>] 0xffffffff8110c740
[   19.861256] [<ffffffff8116fa64>] 0xffffffff8116fa64
[   19.866138] [<ffffffff812c2788>] 0xffffffff812c2788
[   19.871020] [<ffffffff811ad424>] 0xffffffff811ad424
[   19.875902] [<ffffffff8116fa64>] 0xffffffff8116fa64
[   19.880786] [<ffffffff812bcc14>] 0xffffffff812bcc14
[   19.885668] [<ffffffff8110c740>] 0xffffffff8110c740
[   19.890548] [<ffffffff8116f9d8>] 0xffffffff8116f9d8
[   19.895430] [<ffffffff812b6ed0>] 0xffffffff812b6ed0
[   19.900313] [<ffffffff812b3188>] 0xffffffff812b3188
[   19.905200] [<ffffffff812b329c>] 0xffffffff812b329c
[   19.910085] [<ffffffff812b0248>] 0xffffffff812b0248
[   19.914966] [<ffffffff811dd1b4>] 0xffffffff811dd1b4
[   19.919848] [<ffffffff811eb76c>] 0xffffffff811eb76c
[   19.924730] [<ffffffff811ec300>] 0xffffffff811ec300
[   19.929613] [<ffffffff811ecbf4>] 0xffffffff811ecbf4
[   19.934497] [<ffffffff8110c7c0>] 0xffffffff8110c7c0
[   19.939378] [<ffffffff811f9cac>] 0xffffffff811f9cac
[   19.944260] [<ffffffff811dd5cc>] 0xffffffff811dd5cc
[   19.949143] [<ffffffff811038d0>] 0xffffffff811038d0
[   19.954026] [<ffffffff81107668>] 0xffffffff81107668
[   19.958907] [<ffffffff811e2d8c>] 0xffffffff811e2d8c
[   19.963790]
[   19.965526] ---[ end trace 790531a03d0d732a ]---
[   24.600671] device eth0 entered promiscuous mode
[   24.620295] br-lan: port 1(eth0) entered forwarding state
[   24.625817] br-lan: port 1(eth0) entered forwarding state
[   24.765769] eth1: 1000 Mbps Full duplex, port 1, queue 1
[   25.579165] br-lan: port 1(eth0) entered disabled state
[   27.591127] eth0: 1000 Mbps Full duplex, port 0, queue 0
[   27.596582] br-lan: port 1(eth0) entered forwarding state
[   27.602133] br-lan: port 1(eth0) entered forwarding state
[   29.602953] br-lan: port 1(eth0) entered forwarding state

Another capture from my build:
https://pastebin.com/usVfACu0

02.05.2017750Base systemBug ReportVery LowMedium802.11r Fast Transition Not workingTrunkUnconfirmed Task Description

Device: WRT1900ACSv2
Version: LEDE 17.0 - 17.01.1, and trunk

I was able to get 802.11r working on an older TP Link TL-WR1043ND v1.1 using the configuration below, however, when I use the same configuration on my WRT1900ACSv2, devices either refuse to associate, or ones that do associate, do so without FT-PSK.

Devices that attempt to use FT-PSK do not return the MDIE in their Associate Frame. I have tried to compile a hostapd without the debugging messages stripped, but no additional errors were provided by hostapd. I have looked at packet captures from the TL-WR1043ND that do work and I cannot see anything different with the probe responses or beacon frames between the two devices types that would immediately indicate an issue. Admittedly, I'm no expert with 802.11 protocols, so I'm seeking some help here. I've hit a wall. I can provide example frame captures and device configurations as needed.

My example configuration looks like the following:

config wifi-device 'radio0'

option type 'mac80211'
option hwmode '11a'
option path 'soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0'
option htmode 'VHT80'
option channel '149'
option country 'US'
option log_level '0'

config wifi-iface 'roaming_test'

option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'RoamIO'
option encryption 'psk2+ccmp'
option key 'somewpa2sharedkey'
option ieee80211r '1'
option pmk_r1_push '1'
option mobility_domain 'beef'
option nasid 'ap0wlan0'
option r1_key_holder 'deadbeefcafe'
option macaddr 'de:ad:be:ef:ca:fe'
list r0kh 'de:ad:be:ef:ca:fe,ap0wlan0,000102030405060708090a0b0c0d0e0f'
list r0kh 'de:ad:be:ef:4d:ad,ap1wlan0,000102030405060708090a0b0c0d0e0f'
list r1kh 'de:ad:be:ef:ca:fe,de:ad:be:ef:ca:fe,000102030405060708090a0b0c0d0e0f'
list r1kh 'de:ad:be:ef:4d:ad,de:ad:be:ef:4d:ad,000102030405060708090a0b0c0d0e0f'
03.05.2017752Base systemBug ReportVery LowMediummtk7688 radio in client mode throwing kernel stack trac...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

AsiaRF AWM688, based on the mtk7688 SoC, similar to the LinkIt 7688

- Software versions of LEDE release, packages, etc.

current HEAD (21c2e93e67bc44c1b72dbbe2dc9f9451d44f81a0)

- Steps to reproduce

Put your wifi interface into station mode, with something like this:

uci set wireless.@wifi-iface[0].mode=sta
uci set wireless.@wifi-iface[0].network=wan
uci set wireless.@wifi-iface[0].ssid="<yournetworkssid>"
uci set wireless.@wifi-iface[0].encryption=<yournetworkencryption>
uci set wireless.@wifi-iface[0].key=<yournetworkkey>
uci set network.wan.ifname=''
uci commit wireless
uci commit network
/etc/init.d/network restart

The stack traces look like this:

[  381.712245] ------------[ cut here ]------------
[  381.721603] WARNING: CPU: 0 PID: 0 at compat-wireless-2017-01-31/net/mac80211/tx.c:4230 ieee80211_csa_is_complete+0x4d4/0x668 [mac80211]()
[  381.746243] Modules linked in: pppoe ppp_async snd_usb_audio pppox ppp_generic pl2303 nf_conntrack_ipv6 mmc_spi iptable_nat ipt_REJECT ipt_MASQUERADE ftdi_sio cp210x ch341 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG usbserial usbmon ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda spidev snd_usbmidi_lib slhc pwm_mediatek of_mmc_spi nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc7 crc_itu_t crc_ccitt snd_soc_simple_card snd_soc_ralink_i2s snd_soc_wm8960 i2c_mt7621 snd_soc_core ralink_gdma virt_dma mt76x2e mt7603e i2c_dev mt76 mac80211 cfg80211 compat ledtrig_oneshot ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore vfat fat nls_utf8 nls_iso8859_1 nls_cp437 regmap_spi regmap_mmio regmap_i2c i2c_core regmap_core lzo_decompress lzo_compress mmc_block usb_storage mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ledtrig_transient ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[  381.997790] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.61 #0
[  382.011576] Stack : 8035bff4 00000000 00000001 803a0000 803a10dc 803a0d63 8033d94c 00000000
          803f3438 8380de90 00000000 82d2b630 00000001 8004ae6c 80342e54 803a0000
          00000003 8380de90 80341258 8380dd74 00000001 80048dd8 83012b40 00000000
          8039fe50 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[  382.082022] Call Trace:
[  382.086872] [<8001486c>] show_stack+0x50/0x84
[  382.095501] [<8002544c>] warn_slowpath_common+0xa0/0xd0
[  382.105857] [<80025504>] warn_slowpath_null+0x18/0x24
[  382.115987] [<832aa34c>] ieee80211_csa_is_complete+0x4d4/0x668 [mac80211]
[  382.129537] 
[  382.132479] ---[ end trace cedc8f2cca6a57da ]---
[  448.821439] ------------[ cut here ]------------
[  448.830796] WARNING: CPU: 0 PID: 0 at compat-wireless-2017-01-31/net/mac80211/tx.c:4230 ieee80211_csa_is_complete+0x4d4/0x668 [mac80211]()
[  448.855431] Modules linked in: pppoe ppp_async snd_usb_audio pppox ppp_generic pl2303 nf_conntrack_ipv6 mmc_spi iptable_nat ipt_REJECT ipt_MASQUERADE ftdi_sio cp210x ch341 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG usbserial usbmon ums_usbat ums_sddr55 ums_sddr09 ums_karma ms_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda spidev snd_usbmidi_lib slhc pwm_mediatek of_mmc_spi nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc7 crc_itu_t crc_ccitt snd_soc_simple_card snd_soc_ralink_i2s snd_soc_wm8960 i2c_mt7621 snd_soc_core ralink_gdma virt_dma mt76x2e mt7603e i2c_dev mt76 mac80211 cfg80211 compat ledtrig_oneshot ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore vfat fat nls_utf8 nls_iso8859_1 nls_cp437 regmap_spi regmap_mmio regmap_i2c i2c_core regmap_core lzo_decompress lzo_compress mmc_block usb_storage mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ledtrig_transient ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[  449.106963] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.61 #0
[  449.120752] Stack : 8035bff4 00000000 00000001 803a0000 803a10dc 803a0d63 8033d94c 00000000
          803f3438 8380de90 00000000 82d2b630 00000001 8004ae6c 80342e54 803a0000
          00000003 8380de90 80341258 8380dd74 00000001 80048dd8 831a7852 00000000
          8039fe50 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[  449.191202] Call Trace:
[  449.196044] [<8001486c>] show_stack+0x50/0x84
[  449.204680] [<8002544c>] warn_slowpath_common+0xa0/0xd0
[  449.215034] [<80025504>] warn_slowpath_null+0x18/0x24
[  449.225170] [<832aa34c>] ieee80211_csa_is_complete+0x4d4/0x668 [mac80211]
[  449.238722] 
[  449.241679] ---[ end trace cedc8f2cca6a57db ]---

The line number is a bit off, but it looks like maybe ieee80211_csa_is_complete is complaining because vif→type == station mode isn’t handled. I don’t know what “csa” means here.

04.05.2017761Base systemBug ReportVery LowMediumWRT54G image is too big for device.lede-17.01Unconfirmed Task Description

Device: WRT54G v2
Lede version/build: lede-17.01.1-brcm47xx-legacy-linksys-wrt54g-squashfs.bin

The image provided is 4001824 bytes, whereas device flash is 3866624 bytes.
Cannot upload firmware to device.

Source old wiki: https://wiki.openwrt.org/toh/linksys/wrt54g

06.05.2017764KernelBug ReportVery LowMediumMT7621: Any traffic shaping results in crashes/stack tr...AllRequires testing Task Description

There has been a large number of reports of bugs with MT7621 devices in combination with SQM. Debugging is difficult, because it often results in a hardcrash which leaves no log files. I believe I have some interesting details that might make it easier to debug.

Device: DIR-860L rev B1, but according to reports all MT7621 devices are affected.
LEDE Version: LEDE Reboot SNAPSHOT r4094-961c0ea
Steps to reproduce: Run a dslreports.com speedtest with a large number of upload and download streams (32/32) with either SQM or QOS enabled on your WAN interface.

Observations:

  • It happens both with SQM-scripts _and_ QOS. So I don’t believe it is an issue with the SQM package specifically. These two packages have in common that they both shape traffic.
  • It seems to be load dependent. 100/100 and 200/200 mbit egress/ingress limits crash less often than 300/300 or higher limits
  • It happens with all qdiscs: Cake + piece of cake, fq_codel + simple, fq_codel + simplest

Crash log:

There is usually no crash log because the router hardlocks and then reboots. But I got very lucky once and managed to get a log of the event:

[  710.140000] INFO: rcu_sched detected stalls on CPUs/tasks:
[  710.150000] 	1-...: (257 GPs behind) idle=dfc/0/0 softirq=48167/48179 fqs=1 
[  710.160000] 	(detected by 2, t=6004 jiffies, g=13114, c=13113, q=1063)
[  710.170000] Task dump for CPU 1:
[  710.180000] swapper/1       R running      0     0      1 0x00100000
[  710.190000] Stack : 00000000 5b6c286a 000000a3 ffffffff 00000090 773742c0 804df2a4 80490000
[  710.190000] 	  8048c75c 00000001 00000001 8048c540 8048c724 80490000 00000000 800135e4
[  710.190000] 	  00000000 00000001 87c70000 87c71ec0 80490000 8005ec74 1100fc03 00000001
[  710.190000] 	  00000000 80490000 804df2a4 8005ec6c 80490000 8001b1a8 1100fc03 00000000
[  710.190000] 	  00000004 8048c4a0 000000a0 8001b1b0 8c94e220 00008018 dc124877 a0020044
[  710.190000] 	  ...
[  710.260000] Call Trace:
[  710.270000] [<8000be98>] __schedule+0x574/0x758
[  710.280000] [<800135e4>] r4k_wait_irqoff+0x0/0x20
[  710.290000] 
[  710.290000] rcu_sched kthread starved for 6016 jiffies! g13114 c13113 f0x0 s3 ->state=0x1
[  782.470000] INFO: rcu_sched detected stalls on CPUs/tasks:
[  782.470000] 	1-...: (0 ticks this GP) idle=12c/0/0 softirq=48179/48179 fqs=0 
[  782.470000] 	(detected by 0, t=6002 jiffies, g=13324, c=13323, q=1260)
[  782.470000] Task dump for CPU 1:
[  782.470000] swapper/1       R running      0     0      1 0x00100000
[  782.470000] Stack : 00000000 00000001 0000000a 00000000 00000000 00000001 804df2a4 80490000
[  782.470000] 	  8048c75c 00000001 00000001 8048c540 8048c724 80490000 00000000 800135e4
[  782.470000] 	  00000000 00000001 87c70000 87c71ec0 80490000 8005ec74 1100fc03 00000001
[  782.470000] 	  00000000 80490000 804df2a4 8005ec6c 80490000 8001b1a8 1100fc03 00000000
[  782.470000] 	  00000004 8048c4a0 000000a0 8001b1b0 8c94e220 00008018 dc124877 a0020044
[  782.470000] 	  ...
[  782.470000] Call Trace:
[  782.470000] [<8000be98>] __schedule+0x574/0x758
[  782.470000] [<800135e4>] r4k_wait_irqoff+0x0/0x20
[  782.470000] 
[  782.470000] rcu_sched kthread starved for 6002 jiffies! g13324 c13323 f0x0 s3 ->state=0x1
[  860.040000] INFO: rcu_sched detected stalls on CPUs/tasks:
[  860.050000] 	1-...: (0 ticks this GP) idle=5a8/0/0 softirq=48179/48179 fqs=0 
[  860.060000] 	(detected by 3, t=6004 jiffies, g=13501, c=13500, q=2389)
[  860.070000] Task dump for CPU 1:
[  860.080000] swapper/1       R running      0     0      1 0x00100000
[  860.090000] Stack : 00000000 00002cd1 00000000 777882c0 00000000 00000000 804df2a4 80490000
[  860.090000] 	  8048c75c 00000001 00000001 8048c540 8048c724 80490000 00000000 800135e4
[  860.090000] 	  00000000 00000001 87c70000 87c71ec0 80490000 8005ec74 1100fc03 00000001
[  860.090000] 	  00000000 80490000 804df2a4 8005ec6c 80490000 8001b1a8 1100fc03 00000000
[  860.090000] 	  00000004 8048c4a0 000000a0 8001b1b0 8c94e220 00008018 dc124877 a0020044
[  860.090000] 	  ...
[  860.160000] Call Trace:
[  860.170000] [<8000be98>] __schedule+0x574/0x758
[  860.180000] [<800135e4>] r4k_wait_irqoff+0x0/0x20
[  860.190000] 
[  860.190000] rcu_sched kthread starved for 6017 jiffies! g13501 c13500 f0x0 s3 ->state=0x1

I hope it contains useful information for tracking down this bug. If there is anything else I can supply or test in order to help the debugging process, please let me know.

08.05.2017767ToolchainBug ReportVery LowMediumuml: Imagebuilder does not honor default packages for u...TrunkUnconfirmed Task Description

Stock LEDE - r4099-4c3953b

Plain UML images are fine and work. If you want to build images with the imagebuilder the default package list is not honored and modules are missing - like kmod-80211-hwsim and all related packages.

The squashfs image also does not work:

[    0.270000] squashfs: SQUASHFS error: Filesystem uses "zlib" compression. This is not supported

profiles.mk in Imagebuilder dir seems wonky:

$ cat .profiles.mk
PROFILE_NAMES = Default
Default_NAME:=Default
Default_PACKAGES:=

.targetinfo looks okay, but I don’t know:

Source-Makefile: target/linux/uml/Makefile
Target: uml
Target-Board: uml
Target-Name: User Mode Linux
Target-Arch: x86_64
Target-Arch-Packages: x86_64
Target-Features: audio ext4 source-only squashfs
Target-Depends:
Target-Optimization: -Os -pipe
CPU-Type:
Linux-Version: 4.4.61
Linux-Release: 1
Linux-Kernel-Arch: um
Target-Description:

@@
Default-Packages: base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd dnsmasq iptables ip6tables ppp ppp-mod-pppoe firewall odhcpd odhcp6c wpad-mini kmod-mac80211-hwsim mkf2fs e2fsprogs iwinfo
08.05.2017769Base systemBug ReportVery LowMediumFirewall stops traffic / DHCP to WAN interface.lede-17.01Unconfirmed Task Description

- WRT1900ACS v2
- LEDE Reboot 17.01.1 r3316-7eb58cf109 / LuCI lede-17.01 branch (git-17.100.70571-29fabe2)
- Happens periodically (restart firewall solves problem immediately)

 

From log:

conntrack: generic helper won’t handle protocol 47. Please consider loading the specific helper module.

Restarting firewall resolves the issue, and WAN gets DHCP address instant.

I don’t know if it happens when a new DHCP lease from my internet service provider on the WAN interface is occurring OR if connection tracking is failing and firewall blocks traffic totally OR some other thing happens :-)

14.05.2017783PackagesBug ReportVery LowMediumgpsd doesn't work with "Garmin USB binary" (nor NMEA200...TrunkUnconfirmed Task Description

Supply the following if possible:

- Device problem occurs on

I tried it on GL-AR150, but it should reproduce on any device w/ USB

- Software versions of LEDE release, packages, etc.

LEDE 17.01.1
gpsd 3.16-1

- Steps to reproduce

If you have a device with “Garmin USB binary” (eg : eTrex), then

gpsd -n -N -G -D 4 /dev/ttyUSB0

... should show data once a second.

From my reading of the code, even without a Garmin device, “-D 4” debug level should show a message of “Probing Garmin USB binary driver...\n”

From my reading of the code, it looks a a build problem. 2 “defines” need to be made :

NON_NMEA0183_ENABLE

HAVE_LIBUSB

FYI, there is a similiar bug for “NMEA2000” : If you do “gpsd -h”, you should see “NMEA2000” on the list of “drivers”. I can file a separate bug for this if you want.

Thanks !

14.05.2017784ToolchainBug ReportVery LowMediumlede-imagebuilder-17.01.1-ar71xx-generic w/ BIN_DIR and...TrunkUnconfirmed Task Description

Supply the following if possible:

- Device problem occurs on

HORNETUBx2

HORNETUB

- Software versions of LEDE release, packages, etc.

lede-imagebuilder-17.01.1-ar71xx-generic.Linux-x86_64

- Steps to reproduce

make image PROFILE=HORNETUBx2 BIN_DIR=/tmp/bld/

... dies with :

“Warning: /home/kjh/toolroot.d/lede-imagebuilder-17.01.1-ar71xx-generic.Linux-x86_64/bin/targets/ar71xx/generic/lede-17.01.1-ar71xx-generic-hornet-ub-x2-squashfs-sysupgrade.bin is too big (> 16318464 bytes)”

... but it seems to work OK without BIN_DIR :

make image PROFILE=HORNETUBx2

EXTRA_IMAGE_NAME also seems to cause this problem


15.05.2017786Base systemFeature RequestVery LowMediumPlease, add support to ecdsa key typelede-17.01Researching Task Description

At the moment dropbear tool is compiled without the ecdsa key type support.
ECDSA (https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm) is considere better than RSA as it requires fewer key bits to gain same security.

16.05.2017788Base systemBug ReportVery LowMediumMQMaker WiTi 5ghz interface does not workAllUnconfirmed Task Description

Supply the following if possible:
- MQMaker WiTi
- All released LEDE versions
- enable the 5ghz interface. LEDE reports that it’s up and running but it isn’t.

I tried 3 builds.

LEDE trunk - fail
LEDE 17.01.0 - fail
OpenWRT trunk - works.

Something broke in the mt76 driver between OpenWRT trunk and LEDE final.

AFAIK it’s after the bug fix to packet injection.

 


25.05.2017803PackagesBug ReportVery LowMediumNL80211_STA_INFO_INACTIVE_TIME incorrect value for IB...TrunkUnconfirmed Task Description

- ar71xx affected
- latest LEDE trunk affected and may be older versions
- Steps to reproduce

Buid current LEDE trunk with a10k-ct driver and CT firmware for QCA988x.
Flash devices with firmware.
Create IBSS interface for 2 or more ath10k devices and connect them.

 

iwinfo shows negative value for last activity. Value is rising. TX traffic can’t pass through interface.
All incoming packets come with “unknown” bitrate.

root@LEDE:~# iwinfo mesh5_0 assoclist
84:16:F9:B1:A0:3E -39 dBm / -103 dBm (SNR 64) -230820 ms ago

      RX: unknown                                      794 Pkts.
      TX: 6.0 MBit/s                                     0 Pkts.

root@LEDE:~# iwinfo mesh5_0 assoclist
84:16:F9:B1:A0:3E -39 dBm / -103 dBm (SNR 64) -127810 ms ago

      RX: unknown                                     2828 Pkts.
      TX: 6.0 MBit/s  
                                 0 Pkts.

root@LEDE:~# iwinfo mesh5_0 assoclist
84:16:F9:B1:A0:3E -40 dBm / -103 dBm (SNR 63) -117860 ms ago

      RX: unknown                                     3022 Pkts.
      TX: 6.0 MBit/s                                     0 Pkts.

According to iw output this value is close to th “unsigned long” value limit
root@LEDE:~# iw mesh5_0 station dump
Station 18:a6:f7:3e:b4:de (on mesh5_0)

      inactive time:  4294805756 ms
      rx bytes:       152352
      rx packets:     2208
      tx bytes:       0
      tx packets:     0
      tx retries:     0
      tx failed:      0
      rx drop misc:   0
      signal:         -39 dBm
      signal avg:     -37 dBm
      tx bitrate:     6.0 MBit/s
      authorized:     yes
      authenticated:  yes
      associated:     yes
      preamble:       long
      WMM/WME:        yes
      MFP:            no
      TDLS peer:      no
      DTIM period:    0
      beacon interval:100
      short slot time:yes
      connected time: 113 seconds

root@LEDE:~# iw mesh5_0 station dump
Station 18:a6:f7:3e:b4:de (on mesh5_0)

      inactive time:  4294878176 ms
      rx bytes:       250056
      rx packets:     3624
      tx bytes:       0
      tx packets:     0
      tx retries:     0
      tx failed:      0
      rx drop misc:   0
      signal:         -40 dBm
      signal avg:     -39 dBm
      tx bitrate:     6.0 MBit/s
      authorized:     yes
      authenticated:  yes
      associated:     yes
      preamble:       long
      WMM/WME:        yes
      MFP:            no
      TDLS peer:      no
      DTIM period:    0
      beacon interval:100
      short slot time:yes
      connected time: 185 seconds

After some time (3-5 minutes) the value overflows and starting from zero with normal values.

root@LEDE:~# iwinfo mesh5_0 assoclist
84:16:F9:B1:A0:3E -38 dBm / -103 dBm (SNR 65) 80 ms ago

      RX: unknown                                     5732 Pkts.
      TX: 6.0 MBit/s                                     0 Pkts.

root@LEDE:~# iw mesh5_0 station dump
Station 18:a6:f7:3e:b4:de (on mesh5_0)

      inactive time:  50 ms
      rx bytes:       399372
      rx packets:     5788
      tx bytes:       0
      tx packets:     0
      tx retries:     0
      tx failed:      0
      rx drop misc:   0
      signal:         -41 dBm
      signal avg:     -39 dBm
      tx bitrate:     6.0 MBit/s
      authorized:     yes
      authenticated:  yes
      associated:     yes
      preamble:       long
      WMM/WME:        yes
      MFP:            no
      TDLS peer:      no
      DTIM period:    0
      beacon interval:100
      short slot time:yes
      connected time: 296 seconds
25.05.2017806Base systemBug ReportVery LowMediumDoes not equal iptables rule not workingTrunkUnconfirmed Task Description

The following was entered in LuCI and confirmed by looking at /etc/config/firewall:

config rule
	option enabled '1'
	option family 'ipv4'
	option proto 'all'
	option src '*'
	option src_ip '! 192.168.1.0/24'
	option target 'DROP'
	option name 'Drop_OUT_InvalidSRC'
	option dest '*'
	option extra '-o eth0.2'

I’ve also made the rule without option extra, and by specifying the dest WAN. The rule never appears on my firewall; but adding it via the Custom Firewall rule is works.

25.05.2017808Base systemBug ReportVery LowMediumbusybox: regexp related compile errorsTrunkUnconfirmed Task Description

Busybox fails to compile if any of the following config options is enabled (y):

BUSYBOX_CONFIG_FEATURE_VI_REGEX_SEARCH
BUSYBOX_CONFIG_GREP
BUSYBOX_CONFIG_EGREP
BUSYBOX_CONFIG_FGREP
BUSYBOX_CONFIG_XARGS

Busybox version 1.26.2

See the attached .config and build logs. Setting all of the above options to n makes busybox compile.

31.05.2017820Base systemBug ReportVery LowMediumTD-W8970 100 Mbps limited on LEDE 17.01.1lede-17.01Unconfirmed Task Description

Here’s a screenshot to visualize what the problem is really.

http://imgur.com/a/oHuw5

Something is bottle necked really and had to return to stock firmware on my TD-W8970. Is this because no hardware NAT support?

03.06.2017826Base systemFeature RequestVery LowMediumBetter implementation of upgrade system on ledeTrunkUnconfirmed Task Description

Hi,
It would be good to have an better implementation of upgrade system on lede , I’m talking about debian-like update system so for example after doing :
opkg update, opkg upgrade
it would upgrade all packages including kernel to the latest stable release of lede and leave one old kernel (it’s for getting back to old kernel if anything goes wrong)
After that reboot and we are in newest kernel.

08.06.2017831Base systemBug ReportVery LowMedium/etc/init.d/sysfixtime doesn't set sensible time with w...TrunkUnconfirmed Task Description

The WRT1200AC and the WRT1900AC (and quite possibly the WRT3200AC) has a hardware RTC on the Marvell SoC. The kernel recognises this and creates a /dev/rtc0 device.

The RTC is not battery backed so can come up with any random time set - have seen dates around 1970 and 2034 and 2036.

The /etc/init.d/sysfixtime script is designed to bring up the system with a sensible time and date (sourced from file dates in /etc) until it can be accurately set via NTP on systems with and without hardware RTCs.

The problem is at boot it assumes that because /etc/rtc0 exists and /sbin/hwclock exists, then it can obtain the sensible time from the hardware clock. This causes problems on my router with syslog-ng, vnstat and collectd if the date is in the future (collectd doesn’t log any data and syslog-ng writes spurious logs based on the date).

The issue is further compounded in that the hardware RTC appears to lock up sometimes (probably due to the hardware RTC Vbatt line having no power on boot) and can only be reset by doing a “date reset” command under U-Boot. When the RTC has locked up the command “hwclock -s -u -f /dev/rtc0” or “hwclock -w” has no effect.

The solution may be to not create /dev/rtc0 on devices with an RTC but no battery back up. Another solution may be to modify /etc/init.d/sysfixtime to account for systems with no RTC, systems with battery backed RTCs, and systems like this with an RTC but no battery backup.

Has also been noted by someone else on https://dev.openwrt.org/ticket/20629

/etc/init.d/sysfixtime
....

boot() {

start && exit 0
local maxtime="$(maxtime)"                            <------ this is not executed because start() succeeds
local curtime="$(date +%s)"
[ $curtime -lt $maxtime ] && date -s @$maxtime

}

start() {

[ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -u -f $RTC_DEV

}

.....


09.06.2017833Base systemBug ReportVery LowMediumpppoe memory problemlede-17.01Unconfirmed Task Description

I have observed a problem with pppoe connection. PPP runs well, but if the connection is interrupted by synchronization etc. then the free memory is less.

If I pull the plug and wait, then the system rapidly loses free memory and then crashes by approximately 25 MB of free RAM.

echo 3> /proc/sys/vm/drop_caches does not help in this case.

Tested on Linksys WRT1200AC, kernel 4.4.69 and 4.4.70
LEDE 17.01

Is there a way to investigate the problem more closely?

Many Thanks

Edy

10.06.2017836KernelBug ReportVery LowMediumZBT-WG3526 low wifi (2.4GHz) speedTrunkUnconfirmed Task Description

Hello.
Device ZBT-WG3526 (16Mb)
Software
Trunk LEDE Reboot SNAPSHOT r4362-5e4bb47 / LuCI Master (git-17.158.76358-75c8eba) (June 9, 2017)
Pakages

kmod-mt76-core - 4.4.71+2017-05-30-ef5b045d-1
kmod-mt7603 - 4.4.71+2017-05-30-ef5b045d-1
kmod-mt76x2 - 4.4.71+2017-05-30-ef5b045d-1

Steps to reproduce

  1. Choose a free channel, I have this channel 13

- Settings in the firmware, channel 13, band 40 MHz, type n.
- The distance between the laptop and the router is 1 meter.

Maximum connection speed 72 MB

On the factory old core (~ 3.3 ver), the connection speed was 150 mbps

12.06.2017840Base systemBug ReportVery LowMediumAR71xx - Recent firmware won't flash (building without ...TrunkWaiting on reporter Task Description

Device: TP-Link TL-WR841N/ND v8

LEDE release: anything I tried after r4335

Steps to reproduce:

  1. Build: make defconfig, make menuconfig, specify target = TL-WR841N/ND v8, exit (save), make defconfig, make. Everything OK.
  2. Try to flash (I use LuCI). After the usual “don’t turn me off” screen, the router page reappears and the firmware hasn’t been updated. It’s still the previous version.


13.06.2017842PackagesBug ReportVery LowMediumLEDE 17.01.2 - Problem/Error is caused by kmod-fs-btrfslede-17.01Unconfirmed Task Description

Installation of kmod-fs-btrfs causes/produces these error messages:

root@LEDE:/# opkg install kmod-fs-btrfs
Installing kmod-fs-btrfs (4.4.71-1) to root...
Downloading http://downloads.lede-project.org/releases/17.01.2/targets/mvebu/generic/packages/kmod-fs-btrfs_4.4.71-1_arm_cortex-a9_vfpv3.ipk
Configuring kmod-lib-zlib-deflate.
failed to find a module named zlib_deflate
Configuring kmod-lib-zlib-inflate.
failed to find a module named zlib_inflate
Configuring kmod-lib-lzo.
failed to find a module named lzo_compress
failed to find a module named lzo_decompress
Configuring kmod-fs-btrfs.
Collected errors:
 * pkg_run_script: package "kmod-lib-zlib-deflate" postinst script returned status 255.
 * opkg_configure: kmod-lib-zlib-deflate.postinst returned 255.
 * pkg_run_script: package "kmod-lib-zlib-inflate" postinst script returned status 255.
 * opkg_configure: kmod-lib-zlib-inflate.postinst returned 255.
 * pkg_run_script: package "kmod-lib-lzo" postinst script returned status 255.
 * opkg_configure: kmod-lib-lzo.postinst returned 255.

After that, the same error messages appear whatever package is installed, e.g. at nano installation:

root@LEDE:/# opkg install nano
Installing nano (2.7.5-1) to root...
Downloading http://downloads.lede-project.org/releases/17.01.2/packages/arm_cortex-a9_vfpv3/packages/nano_2.7.5-1_arm_cortex-a9_vfpv3.ipk
Configuring kmod-lib-zlib-deflate.
failed to find a module named zlib_deflate
Configuring nano.
Configuring kmod-lib-zlib-inflate.
failed to find a module named zlib_inflate
Configuring kmod-lib-lzo.
failed to find a module named lzo_compress
failed to find a module named lzo_decompress
Collected errors:
 * pkg_run_script: package "kmod-lib-zlib-deflate" postinst script returned status 255.
 * opkg_configure: kmod-lib-zlib-deflate.postinst returned 255.
 * pkg_run_script: package "kmod-lib-zlib-inflate" postinst script returned status 255.
 * opkg_configure: kmod-lib-zlib-inflate.postinst returned 255.
 * pkg_run_script: package "kmod-lib-lzo" postinst script returned status 255.
 * opkg_configure: kmod-lib-lzo.postinst returned 255.

Related forum topic:
https://forum.lede-project.org/t/17-01-2-final-frustrating-error-problem-caused-by-kmod-fs-btrfs/4344

14.06.2017845KernelBug ReportVery LowMediumMT7628 : wrong data reading the I2C busAllUnconfirmed Task Description

Hi,

I’ve already talked to blogic about this issue. He asked me to perform some tests on the platform even back to openwrt CC.

The bug in question occurs with the MT7628 chip and the I2C bus (WRTNode 2p board).
Configuring the pinmux and enabling the driver, the kernel correctly sees the i2c bus. But then going to use the “i2cdetect” command from i2c-tools package has a surprising result: devices are actually sees devices that are not connected.

Curious about the problem I connected my DSO and I did the probe of the SDA and SCL pins. Data and clock seem to be transferred correctly. So the problem seems to be in the “reading”.

According to the i2c specification if SDA is pull-low and you do an i2cdetect the system should identify in the bus an ACK for each slave address, this does does not happen and the same list appear again.

Turning back to different versions this still happens, unfortunately I have not been able to test every single commit.
The test I’ve made:

  • Openwrt CC the device was not supported.
  • Openwrt first commit of the device support: the i2c bus was not recognized by the driver.
  • Openwrt trunk, the i2c bus is not registered
  • LEDE 12.01 the problem as described above.
  • LEDE HEAD: the problem as described above.
  • LEDE HEAD 4.9 (kernel): The problem as described above.

i2cdetect result (same result with SDA pulled low) .config wrtnode2p.dts

Regards,
hitech95

18.06.2017855Base systemBug ReportVery LowMediumWrong MAC address (00:00:00:00:00:01) on Arcadyan AR751...lede-17.01Unconfirmed Task Description
root@LEDE:~# ifconfig | grep HW
br-lan    Link encap:Ethernet  HWaddr 00:00:00:00:00:01  
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:01  
eth0.1    Link encap:Ethernet  HWaddr 00:00:00:00:00:01  
eth0.2    Link encap:Ethernet  HWaddr 00:00:00:00:00:01  
wlan0     Link encap:Ethernet  HWaddr 00:00:00:00:00:02

I know MAC addresses can be overriden in config, but is it possible to automatically detect the original addresses?

20.06.2017858Base systemBug ReportVery LowMediumInstalling bind / named will cause resolving names fail...TrunkUnconfirmed Task Description

Device TP-LINK MR-3220 v2.1 and 2.3 and 2.4 tested, LEDE 17.01.1 version.

After installing bind-server, setting “option port ‘0’” for dnsmasq (to disable DNS configuration) and using provided named.conf file (below), resolution of domain names to IP addresses breaks down.

I was able to track down the problem. There is race condition in bringing interfaces up, starting nptd service and named service, resulting in:
* named service beeing unable to open sockets and/or
* ntpd service beeing unable to connect to ntp pool and set router time correctly and/or
* incorrect time setting causes dnssec of named to reject proper answers for dns resolving.

With no named installed, the dnsmasq itself often starts too early, but this is masked by it beeing reinitialized on lan interface up event.

This is a known openwrt problem, the workaround is described here: https://dev.openwrt.org/ticket/19427 and involves creating a “netwait” service. I have tested this workaround and confirmed it works, however it is not nice.

Here my named.conf:

This is the primary configuration file for the BIND DNS server named. acl locals {
localhost;
10.10.10/24;
}; options {
directory “/tmp”; forwarders {
8.8.8.8;
8.8.4.4;
}; recursion yes;
allow-query { locals; }; dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { none; };
listen-on { 127.0.0.1; 10.10.10.10; };
};
prime the server with knowledge of the root servers
zone “.” {

type hint;
file "/etc/bind/db.root";

};

be authoritative for the localhost forward and reverse zones, and for
broadcast zones as per RFC 1912

zone “localhost” {

type master;
file "/etc/bind/db.local";

};

zone “127.in-addr.arpa” {

type master;
file "/etc/bind/db.127";

};

zone “0.in-addr.arpa” {

type master;
file "/etc/bind/db.0";

};

zone “255.in-addr.arpa” {

type master;
file "/etc/bind/db.255";

};

 


20.06.2017859PackagesBug ReportVery LowMediumOpenVPN is beeing killed with "service openvpn stop" du...lede-17.01Assigned Task Description

TP-LINK TL-MR-3220 v.2.x with LEDE 17.01.2 onboard, installed OpenVPN.

Connection opens successfully, however, on stopping with “service openvpn stop”, logread shows:

Tue Jun 20 08:36:35 2017 daemon.info procd: Instance openvpn::instance1 pid 4084 not stopped on SIGTERM, sending SIGKILL instead
Tue Jun 20 08:36:35 2017 daemon.notice netifd: Network device ‘tun0’ link is down
Tue Jun 20 08:36:35 2017 daemon.notice netifd: Interface ‘vyprvpn’ has link connectivity loss

This causes OpenVPN scripts to abort.

If stopping openvpn with “killall -TERM openvpn”, then it gets enough time to end in a nice way and all scripts are OK.

22.06.2017863KernelBug ReportMediumMediumath9k failure with AP+11s VIFs ("unsupported hw bitrate...lede-17.01Assigned Task Description

A Gluon user reported the following issue, observed on a TL-WR841N v9 (QCA953x). LEDE version is 17.01.2.

Gluon uses AP+11s VIFs, with multicast_rate set to 12000.

The WLAN became unusable (no connection possible, WLAN LED permantently on) after a few hours of operation. Both VIFs were affected. The system recovered on its own after an hour in this state. Unfortunately, I have no information if beacons were still running in the broken state.

After the recovery, the large number of messages like the following were found in the kernel log:

[40085.953696] ath: phy0: unsupported hw bitrate detected 0x73 using 1 Mbit
[40200.844082] ath: phy0: unsupported hw bitrate detected 0x48 using 1 Mbit
[40281.298039] ------------[ cut here ]------------
[40281.303081] WARNING: CPU: 0 PID: 0 at compat-wireless-2017-01-31/net/mac80211/rx.c:4214 ieee80211_rx_napi+0x130/0x8b0 [mac80211]()
[40281.315230] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 100 (0x64)
[40281.325023] Modules linked in: iptable_nat ath9k nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ebtable_nat ebtable_filter ebtable_broute ath9k_common xt_time xt_tcpudp xt_state xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_LOG xt_CT nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack mac80211 iptable_mangle iptable_filter ip_tables ebtables ebt_vlan ebt_stp ebt_snat ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_ip6 ebt_ip ebt_dnat ebt_arpreply ebt_arp ebt_among ebt_802_3 br_netfilter ath9k_hw ath em_nbyte em_cmp sch_pie em_meta sch_gred sch_teql act_ipt sch_prio em_text sch_codel sch_red sch_fq sch_sfq sch_dsmark act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_htb sch_hfsc batman_adv libcrc32c cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables dummy veth tun act_police cls_basic sch_tbf sch_ingress gpio_button_hotplug crc16 crc32c_generic crypto_hash
[40281.433128] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.71 #0
[40281.440330] Stack : 803e32a4 00000000 00000001 80440000 8042d1dc 8042ce63 803c48ac 00000000
[40281.440330]    804a378c 00000004 00000000 8180e918 00000000 800a7664 803c9fa8 80430000
[40281.440330]    00000003 00000004 803c83b4 81809d5c 00000000 800a55e0 00000002 00000000
[40281.440330]    8042bf70 801f5300 00000000 00000000 00000000 00000000 00000000 00000000
[40281.440330]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[40281.440330]    ...
[40281.477351] Call Trace:
[40281.479951] [<800a7664>] vprintk_default+0x24/0x30
[40281.484917] [<800a55e0>] printk+0x2c/0x38
[40281.489077] [<801f5300>] serial8250_get_mctrl+0x30/0x54
[40281.494512] [<80081c60>] warn_slowpath_common+0xa0/0xd0
[40281.499949] [<801a772c>] dump_stack+0x14/0x28
[40281.504473] [<80071ea8>] show_stack+0x50/0x84
[40281.509003] [<80081c60>] warn_slowpath_common+0xa0/0xd0
[40281.514543] [<80e25cf0>] ieee80211_rx_napi+0x130/0x8b0 [mac80211]
[40281.520918] [<80081cbc>] warn_slowpath_fmt+0x2c/0x38
[40281.526158] [<80e25cf0>] ieee80211_rx_napi+0x130/0x8b0 [mac80211]
[40281.532495] [<802623ec>] __build_skb+0x48/0xc8
[40281.537148] [<802625d0>] __netdev_alloc_skb+0xd0/0x148
[40281.542477] [<80060bf4>] handle_int+0x134/0x140
[40281.547181] [<80de8388>] ath9k_cmn_rx_skb_postprocess+0x50/0x168 [ath9k_common]
[40281.554852] [<80e88374>] ath_rx_tasklet+0xee8/0xf4c [ath9k]
[40281.560635] [<8006503c>] __bzero+0xa0/0x164
[40281.565012] [<80e88340>] ath_rx_tasklet+0xeb4/0xf4c [ath9k]
[40281.570828] [<80e851b8>] ath9k_tasklet+0x200/0x28c [ath9k]
[40281.576512] [<80084820>] tasklet_action+0x80/0xc8
[40281.581390] [<800841dc>] __do_softirq+0x250/0x298
[40281.586284] [<800a82bc>] generic_handle_irq+0x24/0x3c
[40281.591540] [<8006a9e0>] plat_irq_dispatch+0xd4/0x10c
[40281.596760] [<80060bf4>] handle_int+0x134/0x140
[40281.601447]
[40281.602992] ---[ end trace f41ea26ed5101c02 ]---

Both the numbers in the “unsupported hw bitrate detected” messages and the status→rate_idx values in the WARNINGs are seemingly random.

28.06.2017873Base systemBug ReportVery LowMediumproblems of mt7628 wifi driver on miwifi nanoAllRequires testing Task Description

I started using lede on my miwifi nano since the release of version 17.01.1. All function works well except its wireless function.

What makes it a problem is its stability. After a random period of time(ranging from a quarter of an hour to half of a day), it suddenly disconnected. If you try to reconnect, my device shows something like “setting the network address”(varing from devices to devices). After reboot, I found something like “deauthenticated due to inactivity (timer DEAUTH/REMOVE)”. Unfortunately, I haven’t found a way to reproduce the problem till now.

I thought there might be bugs on its wireless driver because on another firmware(http://downloads.pandorabox.com.cn/pandorabox/Xiaomi-Mini-R1CL/firmware/PandoraBox-ralink-mt7628-xiaomi-r1cl-squashfs-sysupgrade-r1752-20151201.bin) which is a variant of Openwrt, it works well.

There are many other problems like the inability to set channel to auto and the txpower option is of no use. But for my daily use, they may not so important compared to the connectivity problem.

Sorry for my bad English and thank you for fixing it.

05.07.2017888KernelBug ReportVery LowMediumWRT1900ACv1 random reboots since kernel 4.9TrunkUnconfirmed Task Description

- Device problem occurs only on WRT1900AC v1, others in the series are unaffected.
- Problem occurs on LEDE Snapshot since the introduction of kernel 4.9. Can be worked around by building with kernel 4.4.
- Steps to reproduce = Flash LEDE Snapshot (with/without keeping configs) via sysupgrade or factory image (tested all combinations).
- Frequency = sometimes during boot, sometimes after several days (in my experience, more often if in use).
- Logs = No crash log created (ideas on how to catch it are welcome).
- Discussion of the issue = https://forum.lede-project.org/t/wrt1900acv1-reboots-kernel-4-9/

 


14.07.2017907ToolchainFeature RequestVery LowMediumslow download - addAllUnconfirmed Task Description

after cloning the source and selecting desired packages, make download starts to download and when it reaches toolchain section some archives are downloaded at max 4Mbps.

tried to run make -j 7, it helped a bit, but the packages download does not start until last toolchain archive is finished downloading. depending on isp connection/routes this can happen with packages too.

please try to add an option for multi-segment resources download

16.07.2017910KernelBug ReportVery LowMediumRaspberry Pi 3 keeps attempting to change CPU frequency...TrunkUnconfirmed Task Description

I recently updated a Raspberry Pi 3 to a recent LEDE git master build: Reboot (SNAPSHOT, r4576-9fe9175)

The kernel keeps logging the following errors:

[  103.041158] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 600000 (-12)
[  103.044492] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (600000)
[  103.047857] cpufreq: __target_index: Failed to change cpu frequency: -22
[  103.401167] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 600000 (-12)
[  103.404517] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (600000)
[  103.407890] cpufreq: __target_index: Failed to change cpu frequency: -22
[  103.761155] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 600000 (-12)
[  103.764491] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (600000)
[  103.767870] cpufreq: __target_index: Failed to change cpu frequency: -22

I am seeing ~10ms latency spikes for traffic through the device and I believe these errors are the reason. If I force the scheduler to only run the CPU at its maximum speed with the command below then then errors cease and the latency spikes disappear:

# echo 1200000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq

I looked into the kernel sources and the messages above appear to be saying that there was an error when asking the Pi firmware to change the CPU speed.

I know there is a HW quirk in the RPi3 which means the UART is effected by the CPU speed. I wonder whether this has anything to do with the firmware rejecting the speed change:
https://github.com/RPi-Distro/repo/issues/22

22.06.201626FlysprayFeature RequestVery LowLowComment formatting syntax should be documentedTrunkResearching Task Description

Currently the formatting options are not documented anywhere, and I failed to find any documentation with google. There are a few buttons to use, but they seem to be rather limited (e.g. nothing for quotations).

13.07.201650Base systemBug ReportVery LowLowNo image or non-verbose output created if image is too ...TrunkUnconfirmed Task Description

The target/install target does not produce the *squashfs-factory.bin and *squashfs-sysupgrade.bin binaries if the images are too big to fit the selected flash size.
However, make doesn't say a word to the user but simply does not produce the files. The user has to either check the mtime of the files if they were created earlier or use

make target/install V=s

to derive what's wrong.
According to jow on IRC this is just an artifact of no way to bypass silent mode. That might be the common explanation but it is still a bug from my POV.

07.08.201681Base systemFeature RequestVery LowLowAdd ability to limit wifi channels for "auto" channel s...TrunkUnconfirmed Task Description

A nice feature for LEDE would be ability to limit what channels are used for when setting an interface up for “auto” channel selection.

For example, on 2.4 GHz, while channels 1-11 are often available, it’s better to just use 1, 6, and 11. But for “auto” mode, the router will still sometimes pick one of the in between channels. If there was some sort of checklist where you could pick only those channels you want the algorithm to use, it would allow finer grained control over the process.

It would be trickier for the GHz band though, since there are often different power limits associated with the different bands.

17.08.201697Base systemBug ReportMediumLowdnsmasq doesn't receive updated dns servers when runnin...TrunkNew Task Description

Bind-mounting /tmp/resolv.conf.auto apparently doesn’t forward inotify events arriving from the kernel when resolv.conf.auto was changed (e.g. upstream DNS servers were received by a DHCP client or pppd). Restarting dnsmasq or running it without ujail solves the issue.

22.08.2016110WebsiteFeature RequestVery LowLow[Request] Add SubmittingPatches guidelines similar to O...AllUnconfirmed Task Description

The legal department at work requires some legality regarding the way I (and some other colleagues) continue to upstream patches (and Pull Requests) to LEDE.

For OpenWrt, I referenced:
https://dev.openwrt.org/wiki/SubmittingPatches Specifically:
https://dev.openwrt.org/wiki/SubmittingPatches#a10.Signyourwork

It seems that the Signed-off-by tag is sufficient ; they still have to confer a bit (in the legal dept)
I also told them, that I prefer to use personal email vs work email.

The request:
Could a page similar to the OpenWrt’s be created for LEDE ?
I found this: https://www.lede-project.org/development.html Which has a Submitting Patches section, but (to me at least), the definition is incomplete or vague.

Thanks
Alex

02.09.2016133Base systemBug ReportVery LowLowNetgear r8000 cannot use 802.1x encryptionTrunkUnconfirmed Task Description

Github issue #305 reported by https://github.com/Halry

My android phone can’t connect to it.(tested on nexus 6p and samsung s7 edge)
Sun Aug 28 16:28:46 2016 daemon.debug hostapd: wlan2: STA 94:fe:22:11:22:33 IEEE 802.1X: Sending EAP Packet (identifier 247)
Sun Aug 28 16:28:46 2016 daemon.debug hostapd: wlan2: STA 94:fe:22:11:22:33 WPA: sending 1/4 msg of 4-Way Handshake
Sun Aug 28 16:28:46 2016 daemon.debug hostapd: wlan2: STA 94:fe:22:11:22:33 WPA: received EAPOL-Key frame (2/4 Pairwise)
Sun Aug 28 16:28:46 2016 daemon.debug hostapd: wlan2: STA 94:fe:22:11:22:33 WPA: sending 3/4 msg of 4-Way Handshake
Sun Aug 28 16:28:46 2016 daemon.info hostapd: wlan2: STA 94:fe:22:11:22:33 IEEE 802.11: disassociated
Sun Aug 28 16:28:46 2016 daemon.debug hostapd: wlan2: STA 94:fe:22:11:22:33 WPA: event 2 notification
Sun Aug 28 16:29:00 2016 daemon.info hostapd: wlan1: STA 94:fe:22:11:22:33 IEEE 802.11: associated
Sun Aug 28 16:29:00 2016 daemon.info hostapd: wlan1: STA 94:fe:22:11:22:33 IEEE 802.11: disassociated
Sun Aug 28 16:29:11 2016 daemon.info hostapd: wlan1: STA 94:fe:22:11:22:33 IEEE 802.11: associated
Sun Aug 28 16:29:11 2016 daemon.info hostapd: wlan1: STA 94:fe:22:11:22:33 IEEE 802.11: disassociated

However,Windows can connect to it.

Here are some my nexus 6p’s dmesg:
CFG80211-ERROR wl_cfg80211_disconnect:Reason 17

02.09.2016137KernelBug ReportVery LowLowKernel panic with zram TrunkUnconfirmed Task Description

Github issue #296, reported by https://github.com/Ansuel

I have compiled my image with zram support and i have this bug related to the kernel. After that my router panic and reboot

[ 33.149266] Kernel bug detected[#1]:
[ 33.152913] CPU: 0 PID: 7 Comm: kworker/u2:1 Not tainted 4.4.19 #0
[ 33.159203] Workqueue: writeback wb_workfn (flush-254:0)
[ 33.164610] task: 87c31e30 ti: 87cbe000 task.ti: 87cbe000
[ 33.170078] $ 0 : 00000000 00000001 00000001 00000001
[ 33.175410] $ 4 : 87f7d400 87cbf990 00000000 00008000
[ 33.180743] $ 8 : 87f7d800 00080000 00000001 00000001
[ 33.186076] $12 : 00000120 8100ca20 00000000 00000100
[ 33.191409] $16 : 87929068 87cbfa88 87f7d800 00000000
[ 33.196741] $20 : 87f7d800 87f7d400 87f7d400 00000001
[ 33.202075] $24 : 00000000 8748c9a4

[ 33.207407] $28 : 87cbe000 87cbf938 00000001 874bcbfc
[ 33.212740] Hi : 00000000
[ 33.215662] Lo : 00000001
[ 33.218662] epc : 874bc1c0 ext4_set_bits+0x2980/0x3ad0 [ext4]
[ 33.224687] ra : 874bcbfc ext4_set_bits+0x33bc/0x3ad0 [ext4]
[ 33.230685] Status: 1100dc03 KERNEL EXL IE 
[ 33.234963] Cause : 00800034 (ExcCode 0d)
[ 33.239029] PrId : 0001974c (MIPS 74Kc)
[ 33.243003] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 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 usblp ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_netlink nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbdev xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables usb_storage ehci_pci ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug usbcore nls_base usb_common ext4 mbcache jbd2 crypto_hash crc16 zram zsmalloc lzo_decompress lzo_compress lz4_decompress lz4_compress
[ 33.362435] Process kworker/u2:1 (pid: 7, threadinfo=87cbe000, task=87c31e30, tls=00000000)
[ 33.370902] Stack : 00000000 81000000 810e9d40 874fed80 804f7b10 00000000 00000000 0000000a
[ 33.370902] 00000000 80099df8 87d8d680 87929068 87cbfa88 87cbfa78 00000000 874bcbfc
[ 33.370902] 810d8bc0 00000000 87929068 87f7d800 87cbfa78 874b8224 00000000 801228c8
[ 33.370902] 00000000 00000001 87cbf9a8 87cbf9ac 00000001 00000000 87929068 87cbfa88
[ 33.370902] 87cbfa78 00000000 87f7d800 00000000 87f7d400 00000001 00000000 874be4d4
[ 33.370902] ...
[ 33.407231] Call Trace:
[ 33.409739] [<874bc1c0>] ext4_set_bits+0x2980/0x3ad0 [ext4]
[ 33.415428] [<874bcbfc>] ext4_set_bits+0x33bc/0x3ad0 [ext4]
[ 33.421087] 
[ 33.422593] 
[ 33.422593] Code: 8e420020 0062102b 38420001 <00020336> 96020050 30420200 10400080 00000000 8e420080 
[ 33.432826] ---[ end trace 6f97ef034652357b ]---

Any idea about this?

04.09.2016146Base systemFeature RequestVery LowLowwndr 3700v4 and 4300v1 couldn't effectively use 128 nan...TrunkUnconfirmed Task Description

Github issue #265 reported by: https://github.com/Cutepally

see https://dev.openwrt.org/ticket/22320
otherwise lede working fine on wndr3700v4
all ive noticed is /overlay isn't that big

Hostname lede
Model NETGEAR WNDR3700v4
Firmware Version LEDE Reboot r1309 / LuCI Master (git-16.217.35130-6a11f71)
Kernel Version 4.4.15

this was brought up on an arokh build on OpenWRT but i think he used a patch for it
see https://forum.openwrt.org/viewtopic.php?pid=310362#p310362
and https://forum.openwrt.org/viewtopic.php?pid=310473#p310473
finally https://forum.openwrt.org/viewtopic.php?pid=311402#p311402

the netgear wndr 3700v4 have 128 nand flash space,the current Flash Layout, use OEM’s firmware MTD partition as Openwrt firmware mtd partition, but the MTD partition only have 25MiB, and
at tail of the nand flash there have a 96MiB reserved MTD partition, the are also a reserved MTD partition in Openwrt.
Whether it is possible use the reserved MTD partition as openwrt firmware MTD partition。
Or the are no way boot from an differ MTD partiton, IF not hack the bootloader;
root@lede:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    61.0M      1.5M     59.5M   2% /tmp
/dev/ubi0_1              14.2M      9.7M      3.7M  72% /overlay
overlayfs:/overlay       14.2M      9.7M      3.7M  72% /
tmpfs                   512.0K         0    512.0K   0% /dev

root@lede:~# fdisk -l
Disk /dev/mtdblock0: 256 KiB, 262144 bytes, 512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock1: 256 KiB, 262144 bytes, 512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock2: 256 KiB, 262144 bytes, 512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock3: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock4: 2 MiB, 2097152 bytes, 4096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock5: 512 KiB, 524288 bytes, 1024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock6: 3 MiB, 3145728 bytes, 6144 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock7: 2 MiB, 2097152 bytes, 4096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock8: 23 MiB, 24117248 bytes, 47104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock9: 25 MiB, 26214400 bytes, 51200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock10: 256 KiB, 262144 bytes, 512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mtdblock11: 96 MiB, 100663296 bytes, 196608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/ubiblock0_0: 2.1 MiB, 2158592 bytes, 4216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
04.09.2016153KernelBug ReportVery LowLowKERNEL_DYNAMIC_FTRACE=y on mips => panic TrunkUnconfirmed Task Description

Github issue #129 reported by: https://github.com/stsydow

If KERNEL_DYNAMIC_FTRACE is enabled on a MIPS system it will panic in late boot. (tested on ar71xx and malta)
The error message is not very helpful, maybe some one has an idea how to track it down:

[    5.579744] procd: - init -
Please press Enter to activate this console.
[    5.854903] CPU 0 Unable to handle kernel paging request at virtual address 00c03849, epc == 8026a400, ra == 8026a3e4
[    5.855392] Oops[#1]:
[    5.855602] CPU: 0 PID: 1611 Comm: kmodloader Not tainted 4.4.13 #20
[    5.855862] task: 8d86a0a0 ti: 8fa22000 task.ti: 8fa22000
[    5.856060] $ 0   : 00000000 8026a3e4 80130620 00000000
[    5.856380] $ 4   : 8dc48ab0 00000001 0000000e 81b97540
[    5.856607] $ 8   : 0024f000 00003edc 00000000 00000001
[    5.856795] $12   : 8d8410c0 00000025 00000000 6261745f
[    5.856984] $16   : 8dc48a80 81980000 00c03821 801305f4
[    5.857174] $20   : 8dc48ad9 80130620 0000001d 024000c0
[    5.857362] $24   : 00000000 8015655c                  
[    5.857569] $28   : 8fa22000 8fa23bd0 80194d48 8026a3e4
[    5.857766] Hi    : 00000018
[    5.857863] Lo    : 00000007
[    5.858008] epc   : 8026a400 proc_register+0x74/0x130
[    5.858167] ra    : 8026a3e4 proc_register+0x58/0x130
[    5.858317] Status: 1000b703 KERNEL EXL IE 
[    5.858529] Cause : 00800008 (ExcCode 02)
[    5.858655] BadVA : 00c03849
[    5.858764] PrId  : 00019300 (MIPS 24Kc)
[    5.858895] Modules linked in: ip6_tables(+) x_tables mii
[    5.859219] Process kmodloader (pid: 1611, threadinfo=8fa22000, task=8d86a0a0, tls=77528e48)
[    5.859477] Stack : 8da50000 8026a1a4 8f898000 81b94a40 81945a40 8014d8c4 00000001 8dc48a80
      8da4e540 00000000 8f9d6370 8da50000 8da50000 8026a724 00000000 80650000
      8da4e400 00000000 8f9d6370 80650000 8da4e400 8da4d134 00000000 8d86a0e8
      801305f4 00000000 00000000 5ce6d83d 81b94a40 61745f78 73656c62 6d616e5f
      8d007365 0000af3b 81b94a40 81b94a40 8dad46b0 00000000 8fa23d30 80650000
      ...
[    5.861631] Call Trace:
[    5.861728] [<8026a400>] proc_register+0x74/0x130
[    5.861954] [<8026a724>] proc_create_data+0xac/0xd8
[    5.862188] [<8da4d134>] xt_proto_init+0xa4/0x1d0 [x_tables]
[    5.862414] [<8042e640>] ops_init.constprop.9+0x10c/0x150
[    5.862593] [<8042e71c>] register_pernet_operations.isra.4+0x98/0xec
[    5.862796] [<8042e7a4>] register_pernet_subsys+0x34/0x58
[    5.862986] [<8f9d7030>] init_module+0x28/0xcc [ip6_tables]
[    5.863174] [<801006b4>] do_one_initcall+0x1f8/0x224
[    5.863341] [<801c5c8c>] do_init_module+0x84/0x1f8
[    5.863504] [<80197ca0>] load_module+0x1888/0x1d58
[    5.863680] [<80198290>] SyS_init_module+0x120/0x164
[    5.863846] [<80113908>] syscall_common+0x30/0x54
[    5.864046] 
[    5.864130] 
Code: 12400014  26040030  92060058 <92420028> 00c2182b  14600008  00000000  0046102b  14400009 
[    5.864794] ---[ end trace 6cd948b6ebb870af ]---

To test, try this config: config.zip

(default config for malta-mips + KERNEL_DYNAMIC_FTRACE)
and run

qemu-system-mipsel -kernel bin/targets/malta/le/lede-malta-le-vmlinux-initramfs.elf -nographic -m 256

Full boot log: crash-dyn-trace.log.txt

05.09.2016160Base systemBug ReportVery LowLowusb-serial (pl2303) failures on mt7621 dlink dir860l-b1TrunkUnconfirmed Task Description
git describe
reboot-1497-ga810e77

with diffconfig:

CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_ramips_mt7621_DEVICE_dir-860l-b1=y
CONFIG_DEVEL=y
CONFIG_BUILD_LOG=y
CONFIG_PACKAGE_ip=y
CONFIG_PACKAGE_kmod-usb-core=y
CONFIG_PACKAGE_kmod-usb-ohci=y
CONFIG_PACKAGE_kmod-usb-ohci-pci=y
CONFIG_PACKAGE_kmod-usb-serial=y
CONFIG_PACKAGE_kmod-usb-serial-ftdi=y
CONFIG_PACKAGE_kmod-usb-serial-pl2303=y
CONFIG_PACKAGE_kmod-usb2=y
CONFIG_PACKAGE_kmod-usb2-pci=y
CONFIG_PACKAGE_kmod-usb3=y
CONFIG_PACKAGE_screen=y

screen starts, but doesn’t work. The usb-relevant dmesg’s are:

[    4.550000] usbcore: registered new interface driver usbfs
[    4.560000] usbcore: registered new interface driver hub
[    4.570000] usbcore: registered new device driver usb
[    4.580000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.620000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.670000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    4.720000] hub 1-0:1.0: USB hub found
[    4.740000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    4.760000] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.770000] hub 2-0:1.0: USB hub found
[    5.260000] usb 1-1: new full-speed USB device number 2 using xhci-mtk
[    5.410000] usb 1-1: no of_node; not parsing pinctrl DT
[   10.150000] usbcore: registered new interface driver usbserial
[   10.160000] usbcore: registered new interface driver usbserial_generic
[   10.180000] usbserial: USB Serial support registered for generic
[   10.220000] usbcore: registered new interface driver ftdi_sio
[   10.240000] usbserial: USB Serial support registered for FTDI USB Serial Device
[   10.260000] usbcore: registered new interface driver pl2303
[   10.270000] usbserial: USB Serial support registered for pl2303
[   10.290000] pl2303 ttyUSB0: no of_node; not parsing pinctrl DT
[   10.290000] usb 1-1: pl2303 converter now attached to ttyUSB0
[  871.510000] pl2303 ttyUSB0: pl2303_get_line_request - failed: -145
[  871.620000] pl2303 ttyUSB0: pl2303_set_line_request - failed: -145
[  871.840000] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -145

Screen also throws an error (which gets blanked out, but is captured by the serial console):

# screen /dev/ttyUSB0 115200
/dev/null/utmp: Not a directory
07.09.2016162Base systemBug ReportVery LowLowTwo issues with libuclient-openssl in luci-sslTrunkUnconfirmed Task Description

1: RC4 and 3DES are used when both have security issues. Actually the latter also is true of mbedtls/polarssl.

2: Only TLS 1.2 is supported. This makes multiple clients unable to connect.

BTW, I got this working after modifying the Makefile to luci-ssl to depend on libustream-openssl instead. No idea what the situation is but so far it works without a problem.

14.09.2016177Base systemBug ReportVery LowLowipq806x: USB3 ports fail if booted when USB3 flash driv...TrunkWaiting on reporter Task Description

I am seeing a strange problem on my new TRENDnet tew827dru, which is ipq8064 based. It has two USB3 ports.

I have noticed a problem with USB3 flash drives. If I boot the system with a USB3 flash drive in one of the USB ports, that port won’t allow any USB3 drive to work in it until the next reboot.

It seems to be a xhci driver issue.

This behavior is somewhat intermittent and varied. Occasionally my Silicon Power USB3 drive will work fine after boot, and the SanDisk USB3 drive almost always appears in “lsusb”, but the partitions can’t be seen, and it still doesn’t work right.

The USB3 flash drives works as-expected if I plug them in after boot is completed. The issue only appears if the drive was already in the USB port during boot time.

USB2 flash drives do not appear to be affected.

The USB3 hard drive I tested seems to be working normally.

USB flash drives tested:

  SanDisk Ultra Fit 16GB (USB3)
  Patriot Tab Series 32GB (USB3)
  Silicon Power 32GB (USB3)
  Kingston DTSE9 8GB (USB2)
  Patriot 8GB (USB2)

Below is an example boot log where I have a USB3 drive in each of the two ports. Neither works:

[ 6.275249] usbcore: registered new interface driver usbfs
[ 6.275322] usbcore: registered new interface driver hub
[ 6.279713] usbcore: registered new device driver usb
[ 6.320705] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 6.321204] ehci-platform: EHCI generic platform driver
[ 6.331613] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 6.332310] ohci-platform: OHCI generic platform driver
[ 6.841285] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 6.841329] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 6.845931] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0×100 quirks 0×00010010 [ 6.853327] xhci-hcd xhci-hcd.0.auto: irq 200, io mem 0×11000000 [ 6.862602] hub 1-0:1.0: USB hub found
[ 6.872028] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 6.875912] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 6.881170] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 6.889250] hub 2-0:1.0: USB hub found
[ 6.900865] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 6.904684] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 6.910066] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0×100 quirks 0×00010010 [ 6.917541] xhci-hcd xhci-hcd.1.auto: irq 201, io mem 0×10000000 [ 6.926734] hub 3-0:1.0: USB hub found
[ 6.936227] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 6.940023] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 6.945455] usb usb4: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 6.953458] hub 4-0:1.0: USB hub found
[ 6.965885] of_get_named_gpiod_flags: parsed ‘gpios’ property of node ‘/gpio-leds/usb[0]’ - status (0)
[ 6.967608] usbcore: registered new interface driver usb-storage
[ 7.182177] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 7.252035] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[ 7.382317] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 7.417343] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 7.428209] scsi host0: usb-storage 2-1:1.0
[ 7.442238] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 7.465865] usb-storage 4-1:1.0: USB Mass Storage device detected
[ 7.466672] scsi host1: usb-storage 4-1:1.0
[ 8.462818] scsi 1:0:0:0: Direct-Access USB DISK 3.0 PMAP PQ: 0 ANSI: 6
[ 17.195224] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
[ 17.195259] xhci-hcd xhci-hcd.0.auto: Assuming host is dying, halting host.
[ 17.227985] xhci-hcd xhci-hcd.0.auto: Host not halted after 16000 microseconds.
[ 17.228010] xhci-hcd xhci-hcd.0.auto: Non-responsive xHCI host is not halting.
[ 17.234094] xhci-hcd xhci-hcd.0.auto: Completing active URBs anyway.
[ 17.241418] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
[ 17.248041] usb usb1-port1: couldn’t allocate usb_device
[ 17.253296] usb 2-1: USB disconnect, device number 2
[ 17.263718] xhci-hcd xhci-hcd.1.auto: xHCI host not responding to stop endpoint command.
[ 17.263722] xhci-hcd xhci-hcd.1.auto: Assuming host is dying, halting host.
[ 17.289471] xhci-hcd xhci-hcd.1.auto: Host not halted after 16000 microseconds.
[ 17.289481] xhci-hcd xhci-hcd.1.auto: Non-responsive xHCI host is not halting.
[ 17.289491] xhci-hcd xhci-hcd.1.auto: Completing active URBs anyway.
[ 17.289534] xhci-hcd xhci-hcd.1.auto: HC died; cleaning up
[ 17.324608] usb usb3-port1: couldn’t allocate usb_device
[ 17.329821] usb 4-1: USB disconnect, device number 2

And here I am plugging both drives in after the system booted normally.

[ 6.193094] usbcore: registered new interface driver usbfs
[ 6.193173] usbcore: registered new interface driver hub
[ 6.197552] usbcore: registered new device driver usb
[ 6.238600] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 6.239108] ehci-platform: EHCI generic platform driver
[ 6.249525] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 6.250089] ohci-platform: OHCI generic platform driver
[ 6.761332] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 6.761378] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 6.765992] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0×100 quirks 0×00010010 [ 6.773385] xhci-hcd xhci-hcd.0.auto: irq 200, io mem 0×11000000 [ 6.782646] hub 1-0:1.0: USB hub found
[ 6.792070] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 6.795937] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 6.801200] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 6.809293] hub 2-0:1.0: USB hub found
[ 6.820906] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 6.824739] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 6.830118] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0×100 quirks 0×00010010 [ 6.837600] xhci-hcd xhci-hcd.1.auto: irq 201, io mem 0×10000000 [ 6.846784] hub 3-0:1.0: USB hub found
[ 6.856269] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 6.860070] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 6.865495] usb usb4: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 6.873508] hub 4-0:1.0: USB hub found
[ 6.885940] of_get_named_gpiod_flags: parsed ‘gpios’ property of node ‘/gpio-leds/usb[0]’ - status (0)
[ 27.122596] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 27.144608] usb-storage 4-1:1.0: USB Mass Storage device detected
[ 27.155356] scsi host0: usb-storage 4-1:1.0
[ 28.153237] scsi 0:0:0:0: Direct-Access USB DISK 3.0 PMAP PQ: 0 ANSI: 6
[ 30.753700] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 30.776011] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 30.776282] scsi host1: usb-storage 2-1:1.0

24.09.2016185Base systemBug ReportVery LowLow50% packet loss on LAN interface on Netgear R8000TrunkWaiting on reporter Task Description

Hi -

I am on the R8000 and have seen this issue across all builds I’ve tried for the last two months, and as far as I know this has been present forever. The device is connected on IPv4 with VLAN tagging to my ISP using PPPOE. The packet loss being seen is from a hardwired device, and this packet loss can be replicated on any port and with other devices. Attached is a PingPlotter output showing the packet loss. I tried disabling the syn rule in iptables, as I initially suspected that might be the cause. Right now, I am running:
Model Netgear R8000 (BCM4709)
Firmware Version LEDE Reboot r1597 / LuCI Master (git-16.266.66957-07591d7)
Kernel Version 4.4.19

I am happy to provide ANY additional information you required. I am an open source dev for Android and I TRULY APPRECIATE what you guys are doing here.

12.10.2016222Base systemFeature RequestVery LowLowproviding pre-built images for extroot for devices with...TrunkUnconfirmed Task Description

Currently, the only way to be able to make extroot (use an external drive as overlay) for 4MiB devices is to build an image with the Image Builder as they can’t fit the packages needed in the jffs.

For most linux users this isn’t a major issue as the Image Builder runs on Linux and with a couple commands you build all, but it’s still time-consuming.

For everyone else this is an issue, as they need to get a linux system, learn how to use the Image Builder, and so on.

I’m asking if it is possible to make pre-built images with the right packages to allow extroot on 4 MiB devices.

The packages I thing we need in these pre-built images are all is needed by the device to be able to format and check its own drive, because again most users don’t have access to a linux system to format a drive with ext4 or whatever.

It seems e2fsprogs is too big to fit with the other packages required, currently only f2fs filesystem tools are split and can be used in 4MiB devices for extroot.

These are the packages that currently should allow building an extrootable image that fits on 4MiB storage:

blkid block-mount kmod-fs-f2fs kmod-usb-storage kmod-usb-uhci kmod-usb-ohci mkf2fs f2fsck

(of course no luci is included).

13.10.2016224Base systemBug ReportVery LowLowwrong source IP when logging to remote IPv6 syslog serv...TrunkAssigned Task Description

Hello,

I’m trying to send log to remote IPv6 syslog server (x:y:z:12::1), but packets received by syslog server are invalid. Instead of public IPv6 address, syslog udp packets are sent with ::1 source IP and therefore ignored by destination server. Logging over IPv4 works ok.

tcpdump log from destination syslog server:
23:34:16.988433 IP6 ::1.38044 > x:y:z:12::1.514: SYSLOG daemon.notice, length: 65

Configuration:

/etc/config/system:

 option log_ip 'x:y:z:12::1'

Device is in the same range as syslog server (x:y:z:12::119/64) and has native IPv6 connectivity. Other services (dropbear, ntp client, snmpd, luci) are running fine over IPv6.

Device is TP-Link WDR3600, running lede reboot-1818-gb81fc29.

03.12.2016320Base systemFeature RequestVery LowLowrelayd feature requestTrunkUnconfirmed Task Description

I found a couple of bugs with relayd based bridge configuration and I would like to suggest a feature request. Will fill one entry per issue:

On today’s trunk

3- in a configuration where the network attached to the wireless radio is configured via DHCP, the listening interface is not set up automatically. DD-WRT and Gargoyle do this automatically ( they overwrite the config/network file with the gateway parameter and reload relayd.

 


09.12.2016329Base systemBug ReportVery LowLowAR9341 needs analog switch resetTrunkUnconfirmed Task Description

This is a bug report for the AR9341 SOC on LEDE trunk reboot-2445-gee5a6c1.

I have builded a custom firmware for a unsupported device based on the Atheros DB120 reference board.

The analog port of the ethernet switch needs to be resetted before it can operate.

Part of bootlog without analog reset:

[    2.179262] ag71xx-mdio.1: unknown phy id 'ffff:ffff'

Br-lan is not intialized due no analog switch reset.

Part of bootlog with analog reset:

[    2.059037] ag71xx-mdio.1: Found an AR934X built-in switch

And br-lan is initialized and networking is working fine.

A reset is performed by the function ath79_register_eth (defined in dev-eth.c):

ath79_device_reset_set(AR934X_RESET_ETH_SWITCH);
ath79_device_reset_clear(AR934X_RESET_ETH_SWITCH);

However, no analog reset is performed, for example:

ath79_device_reset_set(AR934X_RESET_ETH_SWITCH);
ath79_device_reset_clear(AR934X_RESET_ETH_SWITCH);

ath79_device_reset_set(AR934X_RESET_ETH_SWITCH_ANALOG);
ath79_device_reset_clear(AR934X_RESET_ETH_SWITCH_ANALOG);

Omitting the analog reset does not break the DB120 builds because the analog reset is already performed by ar934x_nfc_hw_reset in dev-nfc.c.

An easy fix is to do a analog reset in the device’s mach file. However, for the sake of consistency and autism, the reset should be performed by ath79_register_eth in dev_eth.c and not by ar934x_nfc_hw_reset in dev_nfc.c. My AR9341 device doesn’t even use a NAND flash.

12.12.2016331Base systemBug ReportVery LowLowmac80211 / warning / ieee80211_ibss_leave / r2449TrunkUnconfirmed Task Description

spotted on TP-Link 4900 v1 with LEDE r2449 (selfcompiled):

[ 2860.974569] ------------[ cut here ]------------
[ 2860.979191] WARNING: at compat-wireless-2016-10-08/net/mac80211/ibss.c:1082
[ 2860.986142] Modules linked in: ath9k ath9k_common iptable_nat ath9k_hw ath snd_usb_audio nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda snd_usbmidi_lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack macvlan iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables compat em_nbyte sch_dsmark sch_pie sch_codel sch_gred sch_htb em_cmp cls_basic act_ipt sch_red sch_prio em_meta act_police em_text sch_tbf sch_sfq sch_fq act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipip tunnel4 ip_tunnel tun snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd soundcore nls_utf8 zram lz4_decompress lz4_compress lzo_compress lzo_decompress zsmalloc usb_storage gpio_keys leds_gpio ehci_fsl ehci_platform ehci_hcd scsi_mod fsl_mph_dr_of mbcache button_hotplug input_core usbcore nls_base usb_common crc16 crc32c_generic crypto_hash [last unloaded: sd_mod]
[ 2861.124825] CPU: 0 PID: 8624 Comm: kworker/u2:0 Not tainted 4.4.36 #0
[ 2861.131337] Workqueue: phy1 ieee80211_ibss_leave [mac80211]
[ 2861.136903] task: c783b840 ti: c68a4000 task.ti: c68a4000
[ 2861.142292] NIP: c99ab128 LR: c99ab354 CTR: 00000000
[ 2861.147247] REGS: c68a5b10 TRAP: 0700   Not tainted  (4.4.36)
[ 2861.152982] MSR: 00029000 <CE,EE,ME>  CR: 28072422  XER: 20000000
[ 2861.159082]
[ 2861.159082] GPR00: c99ab004 c68a5bc0 c783b840 00000000 c68a5bf4 00000000 00000001 00000000
[ 2861.159082] GPR08: c724b114 00000001 c99f97f6 00000000 000000ff 00000000 c003c474 c790bfe0
[ 2861.159082] GPR16: c6f0f070 00000fff 00000fff c70b2138 c6ae5800 c6e30b40 00000000 00000087
[ 2861.159082] GPR24: 00000000 c68a5c68 c724b114 00000000 c6e30b40 c6e7a3d8 c6f25420 c6f0f070
[ 2861.188805] NIP [c99ab128] ieee80211_get_vht_mask_from_cap+0x1964/0x1c64 [mac80211]
[ 2861.196468] LR [c99ab354] ieee80211_get_vht_mask_from_cap+0x1b90/0x1c64 [mac80211]
[ 2861.204025] Call Trace:
[ 2861.206481] [c68a5bc0] [c99ab004] ieee80211_get_vht_mask_from_cap+0x1840/0x1c64 [mac80211] (unreliable)
[ 2861.215884] [c68a5c60] [c99ab414] ieee80211_get_vht_mask_from_cap+0x1c50/0x1c64 [mac80211]
[ 2861.224156] [c68a5d30] [c99ab9d0] ieee80211_ibss_rx_queued_mgmt+0x264/0x370 [mac80211]
[ 2861.232081] [c68a5e20] [c99acc44] ieee80211_ibss_leave+0x768/0x1770 [mac80211]
[ 2861.239307] [c68a5e80] [c00379f8] process_one_work+0x208/0x380
[ 2861.245135] [c68a5ea0] [c0037de0] worker_thread+0x270/0x48c
[ 2861.250704] [c68a5ef0] [c003c53c] kthread+0xc8/0xcc
[ 2861.255580] [c68a5f40] [c000cb3c] ret_from_kernel_thread+0x5c/0x64
[ 2861.261752] --- interrupt: 0 at   (null)
[ 2861.261752]     LR =   (null)
[ 2861.268618] Instruction dump:
[ 2861.271578] 38810034 387e0510 7f984800 419e024c 4bf410ed 2f830000 40be0030 3d40c9a0
[ 2861.279336] 394a97f6 3b600001 892a0003 69290001 <0f090000> 2f890000 41be01d0 39200001
[ 2861.287267] ---[ end trace a37b58c3292c2cbf ]---

12.12.2016333KernelBug ReportMediumLowath10k_pci: crash after ~10d uptimeTrunkNew Task Description

After ~10 days of uptime, ath10k crashed and I could no longer associate.

Device: D-Link DAP-2695 rev A1
Running: LEDE r2370

Wireless config:

config wifi-device  radio0
        option type     mac80211
        option channel  100
        option country  BE
        option txpower  20
        option hwmode   11a
        option path     'pci0000:00/0000:00:00.0'
        option htmode   VHT80
        option disabled 0

config wifi-iface
        option device 'radio0'
        option ifname 'wlan0'
        option encryption 'psk2'
        option ieee80211d '1'
        option ieee80211w '1'
        option peerkey '1'
        option rsn_preauth '1'
        option network 'lan'
        option mode 'ap'
        option ssid 'xxxxxxxx'
        option key 'XXXXXXXX'

config wifi-iface
        option device 'radio0'
        option ifname 'wlan2'
        option encryption 'psk2'
        option ieee80211d '1'
        option ieee80211w '1'
        option peerkey '1'
        option rsn_preauth '0'
        option network 'guest'
        option mode 'ap'
        option ssid 'Guests'
        option key 'YYYYYYYY'
        #option disassoc_low_ack '0'

config wifi-device  radio1
        option type     mac80211
        option channel  1
        option country  BE
        option txpower  20
        option hwmode   11g
        option path     'platform/qca955x_wmac'
        option htmode   HT40
        #option noscan   1

config wifi-iface
        option device 'radio1'
        option ifname 'wlan1'
        option encryption 'psk2'
        option ieee80211d '1'
        option ieee80211w '1'
        option peerkey '1'
        option rsn_preauth '1'
        option mode 'ap'
        option network 'lan'
        option ssid 'xxxxxxxx'
        option key 'XXXXXXXX'

config wifi-iface
        option device 'radio1'
        option ifname 'wlan3'
        option encryption 'psk2'
        option ieee80211d '1'
        option ieee80211w '1'
        option peerkey '1'
        option rsn_preauth '0'
        option network 'guest'
        option mode 'ap'
        option ssid 'Guests'
        option key 'YYYYYYYY'
        #option disassoc_low_ack '0'

Kernel log:

[   54.439387] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   54.652312] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   54.663197] ath10k_pci 0000:00:00.0: Falling back to user helper
[   54.742675] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[   54.752039] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/cal-pci-0000:00:00.0.bin failed with error -2
[   54.762568] ath10k_pci 0000:00:00.0: Falling back to user helper
[   61.648688] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   61.658088] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   61.671139] ath10k_pci 0000:00:00.0: firmware ver 10.2.4.70.54 api 5 features no-p2p,raw-mode,mfp crc32 9d340dd9
[   61.681571] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   61.692178] ath10k_pci 0000:00:00.0: Falling back to user helper
[   61.771624] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   61.786987] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   62.893736] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[   63.001904] ath: EEPROM regdomain: 0x0
[   63.001920] ath: EEPROM indicates default country code should be used
[   63.001928] ath: doing EEPROM country->regdmn map search
[   63.001945] ath: country maps to regdmn code: 0x3a
[   63.001955] ath: Country alpha2 being used: US
[   63.001963] ath: Regpair used: 0x3a
[   63.284566] ath: EEPROM regdomain: 0x0
[   63.284583] ath: EEPROM indicates default country code should be used
[   63.284591] ath: doing EEPROM country->regdmn map search
[   63.284608] ath: country maps to regdmn code: 0x3a
[   63.284617] ath: Country alpha2 being used: US
[   63.284625] ath: Regpair used: 0x3a
[   72.829974] ath: EEPROM regdomain: 0x8038
[   72.834045] ath: EEPROM indicates we should expect a country code
[   72.840265] ath: doing EEPROM country->regdmn map search
[   72.845651] ath: country maps to regdmn code: 0x37
[   72.850522] ath: Country alpha2 being used: BE
[   72.855022] ath: Regpair used: 0x37
[   72.858554] ath: regdomain 0x8038 dynamically updated by user
[   72.864452] ath: EEPROM regdomain: 0x8038
[   72.868513] ath: EEPROM indicates we should expect a country code
[   72.874707] ath: doing EEPROM country->regdmn map search
[   72.880092] ath: country maps to regdmn code: 0x37
[   72.884943] ath: Country alpha2 being used: BE
[   72.889458] ath: Regpair used: 0x37
[   72.892996] ath: regdomain 0x8038 dynamically updated by user
[920549.560152] ath10k_pci 0000:00:00.0: failed to delete peer c0:ee:fb:4a:18:b7 for vdev 0: -145
[920549.568951] ath10k_pci 0000:00:00.0: found sta peer c0:ee:fb:4a:18:b7 (ptr 8d43f600 id 95) entry on vdev 0 after it was supposedly removed
[920549.581722] ------------[ cut here ]------------
[920549.586618] WARNING: CPU: 0 PID: 1431 at compat-wireless-2016-10-08/net/mac80211/sta_info.c:964 sta_set_sinfo+0x92c/0x9e0 [mac80211]()
[920549.598968] Modules linked in: ath9k ath9k_common crc_ccitt ath9k_hw act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ath10k_pci ath10k_core ath mac80211 cfg80211 compat gpio_button_hotplug
[920549.620582] CPU: 0 PID: 1431 Comm: hostapd Not tainted 4.4.35 #0
[920549.626772] Stack : 803c2d64 00000000 00000001 80420000 8fe26580 8040acc3 803a4424 00000597
[920549.626772]           8047379c 8ff8d000 00000000 77415e94 00000000 800a7198 803a9a90 80400000
[920549.626772]           00000003 8ff8d000 803a7e9c 8e5f3b2c 00000000 800a5114 80400000 00000000
[920549.626772]           00000001 801f3100 00000000 00000000 00000000 00000000 00000000 00000000
[920549.626772]           00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[920549.626772]           ...
[920549.663219] Call Trace:
[920549.665810] [<80071ae0>] show_stack+0x50/0x84
[920549.670323] [<80081860>] warn_slowpath_common+0xa0/0xd0
[920549.675724] [<80081918>] warn_slowpath_null+0x18/0x24
[920549.680994] [<8f5870a4>] sta_set_sinfo+0x92c/0x9e0 [mac80211]
[920549.686990] [<8f587188>] __sta_info_destroy+0x30/0x48 [mac80211]
[920549.693222] [<8f587238>] sta_info_destroy_addr_bss+0x38/0x60 [mac80211]
[920549.700118] [<8f54c144>] cfg80211_check_station_change+0xed8/0x1390 [cfg80211]
[920549.707564] 
[920549.709166] ---[ end trace e15a227055dd36c2 ]---
[920866.693883] ath10k_pci 0000:00:00.0: failed to install key for vdev 0 peer b0:df:3a:12:79:80: -145
[920866.703088] wlan0: failed to remove key (0, b0:df:3a:12:79:80) from hardware (-145)
[920866.719519] ath10k_pci 0000:00:00.0: cipher 0 is not supported
[920866.725602] ath10k_pci 0000:00:00.0: failed to remove peer wep key 0: -122
[920866.732670] ath10k_pci 0000:00:00.0: failed to clear all peer wep keys for vdev 0: -122
[920866.740901] ath10k_pci 0000:00:00.0: failed to disassociate station: b0:df:3a:12:79:80 vdev 0: -122
[920866.750169] ------------[ cut here ]------------
[920866.755066] WARNING: CPU: 0 PID: 1431 at compat-wireless-2016-10-08/net/mac80211/sta_info.c:956 sta_set_sinfo+0x8d8/0x9e0 [mac80211]()
[920866.767421] Modules linked in: ath9k ath9k_common crc_ccitt ath9k_hw act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ath10k_pci ath10k_core ath mac80211 cfg80211 compat gpio_button_hotplug
[920866.789044] CPU: 0 PID: 1431 Comm: hostapd Tainted: G        W       4.4.35 #0
[920866.796465] Stack : 803c2d64 00000000 00000001 80420000 8fe26580 8040acc3 803a4424 00000597
[920866.796465]           8047379c 8ff8d000 00000000 77415e94 00000000 800a7198 803a9a90 80400000
[920866.796465]           00000003 8ff8d000 803a7e9c 8e5f3b2c 00000000 800a5114 00000000 00000000
[920866.796465]           80409dd0 801f3100 00000000 00000000 00000000 00000000 00000000 00000000
[920866.796465]           00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[920866.796465]           ...
[920866.832912] Call Trace:
[920866.835502] [<80071ae0>] show_stack+0x50/0x84
[920866.840016] [<80081860>] warn_slowpath_common+0xa0/0xd0
[920866.845417] [<80081918>] warn_slowpath_null+0x18/0x24
[920866.850691] [<8f587050>] sta_set_sinfo+0x8d8/0x9e0 [mac80211]
[920866.856685] [<8f587188>] __sta_info_destroy+0x30/0x48 [mac80211]
[920866.862914] [<8f587238>] sta_info_destroy_addr_bss+0x38/0x60 [mac80211]
[920866.869817] [<8f54c144>] cfg80211_check_station_change+0xed8/0x1390 [cfg80211]
[920866.877266] 
[920866.878867] ---[ end trace e15a227055dd36c3 ]---
[920869.873901] ath10k_pci 0000:00:00.0: failed to delete peer b0:df:3a:12:79:80 for vdev 0: -11
[920869.882572] ath10k_pci 0000:00:00.0: found sta peer b0:df:3a:12:79:80 (ptr 8f3f3000 id 243) entry on vdev 0 after it was supposedly removed
[920872.893898] ath10k_pci 0000:00:00.0: failed to set beacon mode for vdev 0: -11
[920875.893871] ath10k_pci 0000:00:00.0: failed to set dtim period for vdev 0: -11
[920878.913873] ath10k_pci 0000:00:00.0: failed to recalculate rts/cts prot for vdev 0: -11
[920881.913852] ath10k_pci 0000:00:00.0: failed to set protection mode 0 on vdev 0: -11
[920884.913828] ath10k_pci 0000:00:00.0: failed to set preamble for vdev 0: -11
[920887.923826] ath10k_pci 0000:00:00.0: failed to set beacon mode for vdev 1: -11
[920890.923830] ath10k_pci 0000:00:00.0: failed to set dtim period for vdev 1: -11
[920893.933787] ath10k_pci 0000:00:00.0: failed to recalculate rts/cts prot for vdev 1: -11
[920896.933770] ath10k_pci 0000:00:00.0: failed to set protection mode 0 on vdev 1: -11
[920899.933771] ath10k_pci 0000:00:00.0: failed to set preamble for vdev 1: -11

Kernel log after running “wifi” in the crashed state:

[921144.042842] ath10k_pci 0000:00:00.0: failed to install key for vdev 0 peer 9c:d6:43:29:cc:18: -11
[921144.051948] wlan0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-11)
[921147.052846] ath10k_pci 0000:00:00.0: failed to install key for vdev 0 peer 9c:d6:43:29:cc:18: -11
[921147.061984] wlan0: failed to set key (2, ff:ff:ff:ff:ff:ff) to hardware (-11)
[921150.082845] ath10k_pci 0000:00:00.0: failed to install key for vdev 1 peer 9e:d6:43:29:cc:18: -11
[921150.092017] wlan2: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-11)
[921153.092796] ath10k_pci 0000:00:00.0: failed to install key for vdev 1 peer 9e:d6:43:29:cc:18: -11
[921153.101928] wlan2: failed to set key (2, ff:ff:ff:ff:ff:ff) to hardware (-11)
[932082.286927] ath10k_pci 0000:00:00.0: failed to send pdev bss chan info request
[932390.335807] ath10k_pci 0000:00:00.0: failed to send pdev bss chan info request
[932607.674665] ath10k_pci 0000:00:00.0: failed to down vdev_id 1: -11
[932610.674753] ath10k_pci 0000:00:00.0: failed to stop WMI vdev 1: -11
[932610.682338] ath10k_pci 0000:00:00.0: failed to stop vdev 1: -11
[932613.684666] ath10k_pci 0000:00:00.0: failed to install key for vdev 1 peer 9e:d6:43:29:cc:18: -11
[932613.694955] wlan2: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-11)
[932616.694882] ath10k_pci 0000:00:00.0: failed to submit AP/IBSS self-peer removal on vdev 1: -11
[932619.694635] ath10k_pci 0000:00:00.0: failed to delete WMI vdev 1: -11
[932622.694758] ath10k_pci 0000:00:00.0: failed to remove AP self-peer on vdev 1: -145
[932622.704039] ath10k_pci 0000:00:00.0: found vif peer 9e:d6:43:29:cc:18 entry on vdev 1 after it was supposedly removed
[932622.715667] ath10k_pci 0000:00:00.0: removing stale peer 9e:d6:43:29:cc:18 from vdev_id 1
[932622.724455] br-guest: port 3(wlan2) entered disabled state
[932622.796620] device wlan2 left promiscuous mode
[932622.802446] br-guest: port 3(wlan2) entered disabled state
[932622.856835] br-guest: port 2(wlan3) entered disabled state
[932622.885493] device wlan3 left promiscuous mode
[932622.891306] br-guest: port 2(wlan3) entered disabled state
[932622.935955] device wlan0 left promiscuous mode
[932622.940833] br-lan: port 2(wlan0) entered disabled state
[932622.976382] device wlan1 left promiscuous mode
[932622.981149] br-lan: port 3(wlan1) entered disabled state
[932626.004584] ath10k_pci 0000:00:00.0: failed to down vdev_id 0: -11
[932629.004572] ath10k_pci 0000:00:00.0: failed to stop WMI vdev 0: -11
[932629.011031] ath10k_pci 0000:00:00.0: failed to stop vdev 0: -11
[932634.014537] ath10k_pci 0000:00:00.0: failed to flush transmit queue (skip 0 ar-state 1): 0
[932637.034556] ath10k_pci 0000:00:00.0: failed to install key for vdev 0 peer 9c:d6:43:29:cc:18: -11
[932637.043707] wlan0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-11)
[932640.044532] ath10k_pci 0000:00:00.0: failed to submit AP/IBSS self-peer removal on vdev 0: -11
[932643.044507] ath10k_pci 0000:00:00.0: failed to delete WMI vdev 0: -11
[932646.044501] ath10k_pci 0000:00:00.0: failed to remove AP self-peer on vdev 0: -145
[932646.052277] ath10k_pci 0000:00:00.0: found vif peer 9c:d6:43:29:cc:18 entry on vdev 0 after it was supposedly removed
[932646.063205] ath10k_pci 0000:00:00.0: removing stale peer 9c:d6:43:29:cc:18 from vdev_id 0
[932652.064468] ath10k_pci 0000:00:00.0: could not suspend target (-11)
[932653.410146] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[932654.710106] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[932654.716877] device wlan1 entered promiscuous mode
[932654.755523] device wlan0 entered promiscuous mode
[932655.397455] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[932655.404141] br-lan: port 3(wlan0) entered forwarding state
[932655.409904] br-lan: port 3(wlan0) entered forwarding state
[932655.426138] device wlan2 entered promiscuous mode
[932655.445231] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
[932655.451454] br-guest: port 2(wlan2) entered forwarding state
[932655.457370] br-guest: port 2(wlan2) entered forwarding state
[932655.714483] br-guest: port 2(wlan2) entered disabled state
[932655.842761] IPv6: ADDRCONF(NETDEV_CHANGE): wlan2: link becomes ready
[932655.849460] br-guest: port 2(wlan2) entered forwarding state
[932655.855380] br-guest: port 2(wlan2) entered forwarding state
[932656.428869] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[932656.435563] br-lan: port 2(wlan1) entered forwarding state
[932656.441274] br-lan: port 2(wlan1) entered forwarding state
[932656.466101] device wlan3 entered promiscuous mode
[932656.477745] IPv6: ADDRCONF(NETDEV_UP): wlan3: link is not ready
[932656.483865] br-guest: port 3(wlan3) entered forwarding state
[932656.489791] br-guest: port 3(wlan3) entered forwarding state
[932656.714486] br-guest: port 3(wlan3) entered disabled state
[932656.869320] IPv6: ADDRCONF(NETDEV_CHANGE): wlan3: link becomes ready
[932656.876022] br-guest: port 3(wlan3) entered forwarding state
[932656.881921] br-guest: port 3(wlan3) entered forwarding state
[932657.404425] br-lan: port 3(wlan0) entered forwarding state
[932657.854498] br-guest: port 2(wlan2) entered forwarding state
[932658.434436] br-lan: port 2(wlan1) entered forwarding state
[932658.874432] br-guest: port 3(wlan3) entered forwarding state
[932680.425787] br-guest: port 3(wlan3) entered disabled state
[932680.442596] device wlan3 left promiscuous mode
[932680.447279] br-guest: port 3(wlan3) entered disabled state
[932680.467863] br-guest: port 2(wlan2) entered disabled state
[932680.485729] device wlan2 left promiscuous mode
[932680.490436] br-guest: port 2(wlan2) entered disabled state
[932680.505002] device wlan1 left promiscuous mode
[932680.509700] br-lan: port 2(wlan1) entered disabled state
[932680.523775] device wlan0 left promiscuous mode
[932680.528530] br-lan: port 3(wlan0) entered disabled state
[932683.130864] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[932683.169412] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[932683.183967] device wlan0 entered promiscuous mode
[932683.197266] device wlan1 entered promiscuous mode
[932683.813544] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[932683.820249] br-lan: port 2(wlan0) entered forwarding state
[932683.826004] br-lan: port 2(wlan0) entered forwarding state
[932683.841229] device wlan2 entered promiscuous mode
[932683.857367] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
[932683.863484] br-guest: port 2(wlan2) entered forwarding state
[932683.869386] br-guest: port 2(wlan2) entered forwarding state
[932684.174365] br-guest: port 2(wlan2) entered disabled state
[932684.265577] IPv6: ADDRCONF(NETDEV_CHANGE): wlan2: link becomes ready
[932684.272265] br-guest: port 2(wlan2) entered forwarding state
[932684.278193] br-guest: port 2(wlan2) entered forwarding state
[932684.868399] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[932684.875079] br-lan: port 3(wlan1) entered forwarding state
[932684.880820] br-lan: port 3(wlan1) entered forwarding state
[932684.905988] device wlan3 entered promiscuous mode
[932684.912111] IPv6: ADDRCONF(NETDEV_UP): wlan3: link is not ready
[932684.918275] br-guest: port 3(wlan3) entered forwarding state
[932684.924142] br-guest: port 3(wlan3) entered forwarding state
[932685.174351] br-guest: port 3(wlan3) entered disabled state
[932685.305978] IPv6: ADDRCONF(NETDEV_CHANGE): wlan3: link becomes ready
[932685.312646] br-guest: port 3(wlan3) entered forwarding state
[932685.318582] br-guest: port 3(wlan3) entered forwarding state
[932685.824311] br-lan: port 2(wlan0) entered forwarding state
[932686.274310] br-guest: port 2(wlan2) entered forwarding state
[932686.874321] br-lan: port 3(wlan1) entered forwarding state
[932687.314318] br-guest: port 3(wlan3) entered forwarding state

After running wifi, I am able to connect again.

MAC addresses found in logs:
9c:d6:43:29:cc:18: DAP-2695, wlan0
9e:d6:43:29:cc:18: DAP-2695, wlan2

c0:ee:fb:4a:18:b7: OnePlus 2, Android 6.0.1
b0:df:3a:12:79:80: Samsung SM-T520, Android 5.1.1

12.12.2016335KernelBug ReportVery LowLowmac80211 : Warning prints in RX_NAPITrunkUnconfirmed Task Description

Hardware:
- Multiple cns3xxx Gateworks Laguna boards in IBSS config
- 4x UBNT SR-71 per device (802.11n 2×2)
- LEDE r2114

No idea how to repro it properly ...

During a check of a device in the field, I noticed lots of these warnings:

[38467.750000] WARNING: CPU: 0 PID: 0 at compat-wireless-2016-10-08/net/mac80211/rx.c:4180 ieee80211_rx_napi+0xe4/0×934 [mac80211]()
[38467.760000] Rate marked as an HT rate but passed status→rate_idx is not an MCS index [0-76]: 126 (0x7e)

Full log:

http://pastebin.com/raw/rzF0XKyy

23.12.2016351Base systemBug ReportVery LowLowLantiq: not all usb ports functional after switch to dw...TrunkWaiting on reporter Task Description

see https://bugs.lede-project.org/index.php?do=details&task_id=351#comment1212.

13.01.2017385Base systemBug ReportVery LowLowrampis / JFFS2-problem / Xiaomi Miwifi mini / r2919 / w...TrunkUnconfirmed Task Description

after flashing r2919 i can see strange message with dmesg:

root@lede:~  dmesg | grep -i jffs
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.638380] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    9.908794] jffs2: Node at 0x00000044 with length 0x00001044 would run over the end of the erase block
[    9.918337] jffs2: Perhaps the file system was created with the wrong erase size?
[    9.926009] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000048: 0x1044 instead
[    9.935697] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0x586d instead
[    9.945403] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0x0002 instead
[    9.955094] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000054: 0x0002 instead
[    9.964797] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058: 0x81a4 instead
[    9.974488] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000060: 0xd8a2 instead
[    9.984190] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000064: 0x9ad1 instead
[    9.993881] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000068: 0x9ad2 instead
[   10.003587] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000006c: 0x9ad2 instead
[   10.013278] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000074: 0x1000 instead
[   10.022959] jffs2: Further such events for this erase block will not be printed
[   11.479386] jffs2: notice: (377) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   11.496420] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   11.525523] jffs2: Node at 0x00000044 with length 0x00001044 would run over the end of the erase block
[   11.535100] jffs2: Perhaps the file system was created with the wrong erase size?
[   11.542896] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000048: 0x1044 instead
[   11.552600] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000004c: 0x586d instead
[   11.562304] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050: 0x0002 instead
[   11.571994] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000054: 0x0002 instead
[   11.581696] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058: 0x81a4 instead
[   11.591387] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000060: 0xd8a2 instead
[   11.601089] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000064: 0x9ad1 instead
[   11.610780] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000068: 0x9ad2 instead
[   11.620481] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000006c: 0x9ad2 instead
[   11.630173] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000074: 0x1000 instead
[   11.639854] jffs2: Further such events for this erase block will not be printed
[   13.095966] jffs2: notice: (374) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   14.064922] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   14.086950] mount_root: switching to jffs2 overlay
root@lede:~  

beside that, it seems that the device is working:

root@lede:~  df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.5M      3.5M         0 100% /rom
tmpfs                    61.5M      1.1M     60.4M   2% /tmp
/dev/mtdblock6           10.8M    796.0K     10.0M   7% /overlay
overlayfs:/overlay       10.8M    796.0K     10.0M   7% /
tmpfs                   512.0K         0    512.0K   0% /dev
tmpfs                     2.0M         0      2.0M   0% /coredumps
13.01.2017386Base systemBug ReportVery LowLowConfig option "list channels" doesn't workTrunkUnconfirmed Task Description

Hi,

the option “list channels” is not working.

Patch which implements the function: https://patchwork.ozlabs.org/patch/536533/

LEDE version: SNAPSHOT r2790-08d73bf

Device: Archer C5

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11a'
	option path 'pci0000:01/0000:01:00.0'
	option country 'DE'
	option htmode 'VHT80'
	option txpower '12'
	option channel 'auto'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'yyy'
	option encryption 'psk2+ccmp'
	option key 'xxx'
	option disabled '1'

config wifi-device 'radio1'
	option type 'mac80211'
	option hwmode '11g'
	option path 'platform/qca955x_wmac'
	option channel 'auto'
	option country 'DE'
	option txpower '20'
	option htmode 'HT40'
	list channels 13
        list channels 12

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option encryption 'psk2+ccmp'
	option key 'xxx'
	option ssid 'yyy'


Ends with a 2.4GHz wlan which is not
visible and iwinfo shows the following information:

Mode: Master Channel: unknown (2.407 GHz)

root@lede:~# iwinfo wlan1 freqlist
  2.412 GHz (Channel 1)
  2.417 GHz (Channel 2)
  2.422 GHz (Channel 3)
  2.427 GHz (Channel 4)
  2.432 GHz (Channel 5)
  2.437 GHz (Channel 6)
  2.442 GHz (Channel 7)
  2.447 GHz (Channel 8)
  2.452 GHz (Channel 9)
  2.457 GHz (Channel 10)
  2.462 GHz (Channel 11)
  2.467 GHz (Channel 12)
  2.472 GHz (Channel 13)

A part of the syslog with a bunch of error messages is attached.

Fell free to ask, if something is missing.

15.01.2017389Base systemBug ReportVery LowLowodhcpd relay mode is blocked by firewall by defaultTrunkUnconfirmed Task Description

odhcpd currently won’t work when put in relay mode if followed the manual naively. Turns out this is because firewall blocks incoming traffic to DHCPv6 server (port 547) from external DHCPv6 servers (port 547) from WAN zone by default. It may be a good idea to allow this out of the box, though I’m unsure if there are any security complications from this – I’m a newcomer to IPv6. Replies come with the source global IPv6 address of DHCPv6 server to the global IPv6 address of the router, so it’s difficult to make a more constrained rule without hardcoding them or at least the prefix.

Example rule which fixes relay mode:

config rule
	option enabled '1'
	option target 'ACCEPT'
	option src 'wan'
	option proto 'udp'
	option dest_port '547'
	option name 'Allow DHCPv6 Relay'
	option family 'ipv6'
	option src_port '547'

LEDE revision: 3e7b894ac08b56343e6e449a38fdb2be7b02a127

17.01.2017394Base systemBug ReportVery LowLowPPPoE/802.1Q issues on Linksys WRT1900ACSTrunkUnconfirmed Task Description

Device: Linksys WRT1900ACS
LEDE commit: b9a408c2b49ccfa0e906bda00ef77f4002e401fd

diffconfig:
CONFIG_TARGET_mvebu=y
CONFIG_TARGET_mvebu_DEVICE_linksys-wrt1900acs=y
CONFIG_TARGET_BOARD=”mvebu” CONFIG_LIBSODIUM_MINIMAL=y
CONFIG_PACKAGE_dnscrypt-proxy=y
CONFIG_PACKAGE_dnscrypt-proxy-resolvers=y
CONFIG_PACKAGE_libsodium=y

I have an ISP that requires PPPoE on vlan 201 with 802.1Q tags (CenturyLink fiber). On OpenWRT 15.05.1 and on earlier versions of LEDE (not sure about an exact revision, but maybe October/November timeframe) I could simply define my wan interface in /etc/config/network like this and it just worked:

```
config interface ‘wan’

  option ifname 'eth0.201'
  option proto 'pppoe'
  option username 'user@provider'
  option password 'password'

```

I can’t find any way to make this work on recent versions of LEDE. I’ve tried new builds at least every few weeks, but none have worked for the past few months. I’ve tried configuring the switch_vlan section by adding a ‘t’ after the appropriate switch port to enable tagging, I’ve tried defining a new interface and then using that as the wan ifname, and I’ve tried the command line `ip link` and `ppp` invocations that work on every other linux system I’ve tried, but I can’t find anything that works on recent versions of LEDE.

On other linux systems I can do roughly the following and it works:

```
ip link add link eth0 name eth0.201 type vlan id 201
ip link set eth0.201 up
pppd call centurylink
```

where /etc/ppp/peers/centurylink and /etc/ppp/chap-secrets looks like this:
```
> cat /etc/ppp/peers/centurylink
plugin rp-pppoe.so

eth0.201
name “user@provider” usepeerdns
persist
defaultroute
hide-password
noauth

cat /etc/ppp/chap-secrets
#USERNAME PROVIDER PASSWORD IPADDRESS
user@provider * password
```

I’ve tried using tcpdump to capture what’s happening and on other systems (Ubuntu 16.10, Debian Jessie, pfsense) I see an 802.1Q tag, but I don’t see that on LEDE. That might be expected though because it seems totally possible that the switch itself is doing the 802.1Q stuff and tcpdump doesn’t see the actual packets sent over the wire. I have no idea if that’s the case, though. I guess I could also try this on OpenWRT as well, but I haven’t taken the time to do that yet.

The only other difference I’ve seen is that by default LEDE doesn’t send a Host-Uniq tag, but even if I set the host_uniq uci config it doesn’t fix things. Regardless of what I do I see logs that look like this:

```
Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is now down
Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is disabled
Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ has link connectivity loss
Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.581135] mvneta f1034000.ethernet eth0: configuring for fixed link mode
Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.588150] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.594095] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is enabled
Tue Jan 17 01:55:26 2017 daemon.notice netifd: Network device ‘eth0’ link is up
Tue Jan 17 01:55:26 2017 daemon.notice netifd: VLAN ‘eth0.201’ link is up
Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ has link connectivity
Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is setting up now
Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.602431] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Tue Jan 17 01:55:26 2017 daemon.info pppd[2263]: Plugin rp-pppoe.so loaded.
Tue Jan 17 01:55:26 2017 daemon.info pppd[2263]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Tue Jan 17 01:55:26 2017 daemon.notice pppd[2263]: pppd 2.4.7 started by root, uid 0
...
Tue Jan 17 01:55:41 2017 daemon.warn pppd[2263]: Timeout waiting for PADO packets
Tue Jan 17 01:55:41 2017 daemon.err pppd[2263]: Unable to complete PPPoE Discovery
Tue Jan 17 01:55:41 2017 daemon.info pppd[2263]: Exit.
```

A sample /etc/config/network looks like this:
```
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 'fd25:2a59:2a7b::/48'

config interface ‘lan’

      option type 'bridge'
      option ifname 'eth1'
      option proto 'static'
      option ipaddr '192.168.2.1'
      option netmask '255.255.255.0'
      option ip6assign '60'

config interface ‘wan’

  option ifname 'eth0.201'
  option proto 'pppoe'
  option username 'user@provider'
  option password 'password'

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 6'

config switch_vlan

      option device 'switch0'
      option vlan '2'
      option ports '4 5'

config interface ‘guest’

      option _orig_ifname 'wlan1'
      option _orig_bridge 'false'
      option proto 'static'
      option ipaddr '192.168.3.1'
      option netmask '255.255.255.0'

```

Interestingly, OpenWRT has exactly the same version of ppp and rp-pppoe (2.4.7 and 3.8p, respectively) so it seems like there’s something else in play and my guess is it’s related to vlan tagging, but I don’t seem to have the same issue as FS#227 which mentions both PPPoE and vlan config, but it is quite difficult to follow the discussion there so maybe I’m missing something.

17.01.2017395Base systemBug ReportMediumLowmac80211.sh: detect_mac80211 should check available cha...TrunkNew Task Description

This problem was reported by few Netgear R8000 users and I managed to reproduce it. It’s related to the following code:

		vht_cap=$(iw phy "$dev" info | grep -c 'VHT Capabilities')
		cap_5ghz=$(iw phy "$dev" info | grep -c "Band 2")
		[ "$vht_cap" -gt 0 -a "$cap_5ghz" -gt 0 ] && {
			mode_band="a";
			channel="36"
			htmode="VHT80"
		}

Default htmode

The first problem is that even if hardware supports VHT80 it may be not available for every/any current channel. If channel 36 doesn’t support VHT80, for better user experience, it shouldn’t be set in /etc/config/wireless by default. Example:

root@lede:/# iw phy phy2 info
Wiphy phy2
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports roaming.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 2:
                Capabilities: 0x1062
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-23
                VHT Capabilities (0x0c025820):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        short GI (80 MHz)
                        SU Beamformer
                        SU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (20.0 dBm)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (20.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (20.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (20.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (20.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (20.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (20.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (20.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (20.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (20.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (20.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (20.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (20.0 dBm) (no IR, radar detection)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (disabled)
                        * 5765 MHz [153] (disabled)
                        * 5785 MHz [157] (disabled)
                        * 5805 MHz [161] (disabled)
                        * 5825 MHz [165] (disabled)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 1
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
                 * #{ AP } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match
root@lede:/# iw phy phy2 channels
Band 2:
        * 5170 MHz [34] (disabled)
        * 5180 MHz [36] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+
        * 5190 MHz [38] (disabled)
        * 5200 MHz [40] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40-
        * 5210 MHz [42] (disabled)
        * 5220 MHz [44] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+
        * 5230 MHz [46] (disabled)
        * 5240 MHz [48] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40-
        * 5260 MHz [52] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5280 MHz [56] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5300 MHz [60] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5320 MHz [64] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5500 MHz [100] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5520 MHz [104] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5540 MHz [108] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5560 MHz [112] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5580 MHz [116] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5600 MHz [120] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5620 MHz [124] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5640 MHz [128] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5660 MHz [132] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40+
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5680 MHz [136] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz HT40-
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5700 MHz [140] 
          Maximum TX power: 20.0 dBm
          No IR
          Radar detection
          Channel widths: 20MHz
          DFS state: usable (for 163 sec)
          DFS CAC time: 0 ms
        * 5720 MHz [144] (disabled)
        * 5745 MHz [149] (disabled)
        * 5765 MHz [153] (disabled)
        * 5785 MHz [157] (disabled)
        * 5805 MHz [161] (disabled)
        * 5825 MHz [165] (disabled)

as you can see, VHT80 isn’t support on any currently available channel due to regulatory limits.

Default channel

Picking channel 36 blindly is a bad idea as it may not be available. In case of phy0/radio0 on Netgear R8000 only available channels are 149+ due to hardware/board design (see ARM: BCM5301X: Set 5 GHz wireless frequency limits on Netgear R8000).

root@lede:/# iw phy phy0 info
Wiphy phy0
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports roaming.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 2:
                Capabilities: 0x1062
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-23
                VHT Capabilities (0x0c025820):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        short GI (80 MHz)
                        SU Beamformer
                        SU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (disabled)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (disabled)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (disabled)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (disabled)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (20.0 dBm)
                        * 5765 MHz [153] (20.0 dBm)
                        * 5785 MHz [157] (20.0 dBm)
                        * 5805 MHz [161] (20.0 dBm)
                        * 5825 MHz [165] (20.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 1
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
                 * #{ AP } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match
root@lede:/# iw phy phy0 channels
Band 2:
        * 5170 MHz [34] (disabled)
        * 5180 MHz [36] (disabled)
        * 5190 MHz [38] (disabled)
        * 5200 MHz [40] (disabled)
        * 5210 MHz [42] (disabled)
        * 5220 MHz [44] (disabled)
        * 5230 MHz [46] (disabled)
        * 5240 MHz [48] (disabled)
        * 5260 MHz [52] (disabled)
        * 5280 MHz [56] (disabled)
        * 5300 MHz [60] (disabled)
        * 5320 MHz [64] (disabled)
        * 5500 MHz [100] (disabled)
        * 5520 MHz [104] (disabled)
        * 5540 MHz [108] (disabled)
        * 5560 MHz [112] (disabled)
        * 5580 MHz [116] (disabled)
        * 5600 MHz [120] (disabled)
        * 5620 MHz [124] (disabled)
        * 5640 MHz [128] (disabled)
        * 5660 MHz [132] (disabled)
        * 5680 MHz [136] (disabled)
        * 5700 MHz [140] (disabled)
        * 5720 MHz [144] (disabled)
        * 5745 MHz [149] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+ VHT80
        * 5765 MHz [153] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40- VHT80
        * 5785 MHz [157] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40+ VHT80
        * 5805 MHz [161] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz HT40- VHT80
        * 5825 MHz [165] 
          Maximum TX power: 20.0 dBm
          Channel widths: 20MHz
17.01.2017398PackagesFeature RequestVery LowLowodhcpd: add UCI option to insert DHCP fill for missing ...TrunkUnconfirmed Task Description

This is a request for a common DHCP function found in other software. It would be nice for an odhcpd general option to enable it to fill in unnamed leases. DHCPv4 use the MAC as in unknown-010203040506 and DHCPv6 use the last 64 bits of the DUID as in unknown-0102030405060708. This can be used to figure out which device has failed to send its host name. This is a common problem with DHCPv6. This is a common problem for smart TV or cameras. Consider logs from a device other than the DHCP serving router. Consider where IT may not want to static assign 100’s of host names for display devices over a large work site or campus. Security logs and DHCP logs on a distributed network can then be reconciled a-synchronously, off line, or only when an investigation is required.

18.01.2017400PackagesBug ReportVery LowLowodhcpd: lease file persistence per RFC2131 S-2.1 and S-...TrunkUnconfirmed Task Description

RFC2131 DHCPv4 expects that the DHCP leases and other configuration results are in persistent storage. For small embedded routers during a machine reboot, it has been accepted that read-write memory is RAM (not flash) and persistence may not be entirely upheld. That being said, odhcpd has no means to maintain the lease information even through an application only restart (example ifup event). The lease file odhcpd writes is not used to seed odhcpd, if it is restarted. (1) an interface reconnect that causes odhcpd to restart destroys the lease record, even if the network resumes as previously configured. (2) even if odhcpd lease file is directed to persistent storage (USB drive) it is not used to resume leases.

18.01.2017401PackagesFeature RequestVery LowLowodhcpd: lease trigger script receives no argumentsTrunkUnconfirmed Task Description

when odhcpd calls the “lease trigger” script it does not pass any arguments to the script. The reason for the trigger and the host involved in the trigger are not shared. There is no discretion for RENEW, REBIND, CONFIRM, or RELEASE. Scripts which wish to load DNS with limited data, need to store their own copy of DHCP lease file and do differences. Otherwise a raw translate and dump of a large DHCP network could cause a lot of congestion as DHCP clients come on line. Reseting a network can cause an “in rush” flow like air conditioning loads on a power grid during a summer power outage.
This is exacerbated if the DNS is served on a separate device over the network, such as nsd and nsd-control (bind or unbound also). It would be good to at least pass the command and parameters common to a odhcpd lease file line.

18.01.2017402PackagesFeature RequestVery LowLowodhcpd: assign all viable DHCPv6 address in stateful+st...TrunkUnconfirmed Task Description

odhcpd only gives the ULA to clients in statefu+stateless mode. The original author indicated that this is design intent. But that doesn’t work for various devices on an enterprise network. You may want to allow Android devices which only SLAAC+Priv (argh Google!) and any other portable BYOD. However, your enterprise infrastructure is all DHCPv6 addresses only configured from a central location. Every printer has a HOSTID, and when it dies, its replacement gets that HOSTID, such that the HOSTID is building 9, floor 3, row 10, cube AB. Printers are not normally global, but just a small tangible example. In any case, all DHCPv6 addresses should be given or at least an option to do so.

Windows, some smart TV, and some media players often expect to be greedy about grabbing all addresses: DHCPv6, SLAAC, and Priv. They will not accept DHCPv6 with only one-of the prefixes assigned.

Summarizing: https://github.com/openwrt/odhcpd/issues/61

 


18.01.2017403PackagesFeature RequestVery LowLowodhcpd: expand the capability of DHCPv6 HOSTID assignem...TrunkUnconfirmed Task Description

It would be nice to assign the HOSTID range or bit width as an option. odhcpd just assigns ::0100~::0FFF without any options. It would be nice to be able to use all 64 bits. With this, also it would be nice to add a random seed and seed time as options. This way the DUID hash-to-HOSTID could be rotated. In this way, SLAAC privacy addresses could be replicated with STATEFUL DHCP control and well known hostnames. This would support high-accountability networks like Universities and other large organizations.

It would be a counter to Google’s lack of “interest” in supporting DHCPv6. This would provide DHCPv6 privacy addresses.
Android Bug: https://code.google.com/p/android/issues/detail?id=32621

18.01.2017406Base systemFeature RequestVery LowLowodhcpd: enable IPv6 unicast relayTrunkUnconfirmed Task Description

We want to use Prefix Delegation in a large layer3 mesh network. Currently odhcpd only supports DHCPv6-Relay by forwarding the incoming request to the master interface with multicast all-routers-destination address.

In a mesh network we do not have master/uplink interfaces. But we have the IP of the DHCP server which is X hops away and the routing protocol knows which way to send the packet.

Is it possible to add dhcp relay via unicast? An additional config parameter for the IP of the DHCP server is then also needed.

18.01.2017408Base systemBug ReportVery LowLowArcher C7 has incorrect default bssid addresses for wif...TrunkUnconfirmed Task Description

Using LEDE Reboot SNAPSHOT r3022-7fb11c8.

This is at least for Archer C7 v2. The default bssids for the networks in my particular device are:

:::::*D for the 2,4 GHz radio and
:::::*C for the 5 GHz radio

In LEDE they result in

:::::*C for the 2,4 GHz radio and
:::::*B for the 5 GHz radio

The problem in LEDE is that the bssid set up for the 2,4 GHz is the one for 5 GHz and then the 5 GHz gets minus one. Don’t know if it could be because the ethernet lan gets also :::::*D and wlan1 can’t have the same mac address as eth1. In the original firmware this seems to be possible, both ethernet lan and 2,4 GHz radio have the same mac/bssid. Also, at least with the 2,4 GHz radio, when you set up another connection with the device as client, the bssid of the master one change *(+2)::::**:*C the second hex digit gets plus 2, the bssid that should get a second connection as ap, but in this case there is one ap one client connections. This one could be right and I have to test with another router to see if it happens because I didn’t notice this before.

19.01.2017409Base systemBug ReportVery LowLowArcher C7 all leds are greenTrunkUnconfirmed Task Description

In Archer C7 all leds are green but in lede only the usb leds are labeled as green, all the rest ones are labeled as blue.

28.01.2017441Base systemBug ReportVery LowLowKernel crash: eth0 (ag71xx): transmit queue 0 timed outTrunkUnconfirmed Task Description

Device: TL-WR1043ND v1
LEDE: snapshot r3189-12db207

During a simultaneous bidirectional iperf load test, after about 20 minutes, the kernel crashes. I reproduced this several times:

Server 1 ←–> 1043ND ←–> Laptop via wireless N

LEDE is using a default setup. Only changes:
* Setting wireless encryption to psk with password
* Setting a DNAT rule for server 1 to be able reach the iperf server on the Laptop

This bug was actually discovered while testing fixes for  FS#13  - Ath9k AP stays up for connected clients but doesn’t show in scan on new ones

Serial console ouput:

[ 1294.022551] ------------[ cut here ]------------
[ 1294.027247] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:306 dev_watchdog+0x1dc/0x260()
[ 1294.035754] NETDEV WATCHDOG: eth0 (ag71xx): transmit queue 0 timed out
[ 1294.042319] Modules linked in: ath9k ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nn
[ 1294.106287] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.45 #0
[ 1294.112066] Stack : 803e4844 00000000 00000001 80440000 8042f1dc 8042ee63 803c5e64 00000000
          804a378c 8042d4fc 00000200 00100000 0000000a 800a7618 803cb554 80430000
          00000003 8042d4fc 803c9960 81809e34 0000000a 800a5594 00000006 00000000
          00000000 801f5400 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[ 1294.148122] Call Trace:
[ 1294.150617] [<800a7618>] vprintk_default+0x24/0x30
[ 1294.155474] [<800a5594>] printk+0x2c/0x38
[ 1294.159515] [<801f5400>] wait_for_xmitr+0x84/0xcc
[ 1294.164289] [<80081c3c>] warn_slowpath_common+0xa0/0xd0
[ 1294.169564] [<801a72dc>] dump_stack+0x14/0x28
[ 1294.173975] [<80071eb0>] show_stack+0x50/0x84
[ 1294.178376] [<80081c3c>] warn_slowpath_common+0xa0/0xd0
[ 1294.183661] [<8028ef3c>] dev_watchdog+0x1dc/0x260
[ 1294.188408] [<80081c98>] warn_slowpath_fmt+0x2c/0x38
[ 1294.193450] [<8028ef3c>] dev_watchdog+0x1dc/0x260
[ 1294.198191] [<8028ed60>] dev_watchdog+0x0/0x260
[ 1294.202782] [<800b08d0>] call_timer_fn.isra.5+0x24/0x80
[ 1294.208051] [<800b0b54>] run_timer_softirq+0x1b4/0x1fc
[ 1294.213248] [<800a89f0>] handle_irq_event_percpu+0x154/0x188
[ 1294.218960] [<800841b8>] __do_softirq+0x250/0x298
[ 1294.223721] [<800abdac>] handle_percpu_irq+0x50/0x80
[ 1294.228746] [<8006a9e0>] plat_irq_dispatch+0xd4/0x10c
[ 1294.233848] [<80060bf4>] handle_int+0x134/0x140
[ 1294.238400] 
[ 1294.239904] ---[ end trace 17bad011a41ccba7 ]---
[ 1294.244567] eth0: tx timeout
[ 1299.022570] eth0: tx timeout
[ 1304.022581] eth0: tx timeout
[ 1309.022588] eth0: tx timeout

The eth0: tx timeout line is repeated every 5 seconds.


31.01.2017446Base systemBug ReportVery LowLowusbport trigger: The default configuration for all fami...TrunkUnconfirmed Task Description

Recently LuCI has get ability to configure LED’s with the usbport trigger https://github.com/openwrt/luci/issues/971. There are issues when reading the old usbdev trigger. There is no need to stay with usbdev at all so if it’s possible it should be converted to use usbport.

01.02.2017449Base systemBug ReportVery LowLowrelayd can cause dropped packets if client has /proc/sy...TrunkUnconfirmed Task Description

DEVICE: N/A (can be reproduced on any system running relayd)
LEDE version: N/A (can be reproduced on a VM running debian with relayd installed)

Steps to reproduce:

* Run relayd on a system (aka router)with two interfaces.
* Run a stock Ubuntu-16.04 system (aka client) connected to the managed interface.
* Run another system (aka server) on the other interface of relayd system.
* Have server ping client and watch connectivity drop out periodically.
* Have client ping server and watch connectivity drop out periodically.

Our fix for the problem need two changes:

* Add arptables rules to system to handle kernel level arp requests properly via mangling the source address in the arp requests
* Modify relayd to send the correct src addr in the arp requests that it generates.

Our changes to relayd are here:

* https://github.com/troth/relayd/commit/c8d895ee71be59262f01c3fdf50f307ebf1593e7

From commit message for my fix:

    Add option to set arp src addr for managed interfaces.
    
    Relayd will send arp requests out a managed interface like this:
    
        Who has 192.168.1.40, tell 192.168.2.1
    
    In most cases, this works, but some clients will not send a reply (on
    linux, client will not reply if /proc/sys/net/ipv4/conf/*/rp_filter is
    set to 1, which happens to be the default on ubuntu-16.04).
    
    Add '-s' option to tell relayd to use the specified addr as the arp src
    addr for managed interfaces. The arp requests would then look like:
    
        Who has 192.168.1.40, tell 192.168.1.100
    
    for which the client properly sends a reply.
    
    The symptoms of the problem manifest as dropped packets due to the
    kernel marking the arp entry for the client as FAILED due to lack of
    responses to the arp requests. Eventually (10-30 seconds later), the arp
    table is updated and connectivity is restored.
04.02.2017463Base systemBug ReportVery LowLowup/down on a usbnet interfaces fails to reassign ULA ad...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on: anything running usbnet
- Software versions of LEDE release, packages, etc: head
- Steps to reproduce:

Install the usbnet package, enable a usb0 device in /etc/config/network

(in my case this is a c.h.i.p, but most hackerboards except the pi do usbnet)

config interface ‘usb0’

      option ifname 'usb0'            
      option proto 'static'                 
      option ipaddr '172.26.97.200'
      option netmask '255.255.255.255'
      option ip6assign '64'           
      option ip6class 'local' 

So long as the chip beats the router to booting, this gives it an ipv4 and ipv6 ULA out of the pool.

Reboot the device on the other side. The kernel deregisters and registers the usbnet driver, and netifd assigns the ipv4 address again.

However the ip6 subnet that was assigned from the ula does not come back. Haven’t tried it with a public address.

ifup/ifdown does not work and the ifstatus usb0 does not show any ipv6 addresses assigned.

05.02.2017468Base systemBug ReportVery LowLowFirstboot does not work on ZyXEL P-2812HNU-F1 (17.01.0-...lede-17.01Unconfirmed Task Description

After installing lede-17.01.0-rc1-r3042-ec095b5-lantiq-xrx200-P2812HNUF1-squashfs-sysupgrade.bin on top of Chaos-Calmer on my P-2812HNU-F1, it kept it’s old config, although I didn’t specify that

sysupgrade /tmp/lede.bin

After activating fail-safe I tried to use firstboot to drop the config, but it failed:

root@(none):~# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/ubi0_1 is not mounted
/dev/ubi0_1 will be erased on next mount
writing /dev/ubi0_1 failed: Operation not permitted

After rebooting it had kept it’s config.

Worked around it with

root@(none):~# mount_root 
switching to ubifs overlay
root@(none):/rom/root# firstboot 
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/ubi0_1 is mounted as /overlay, only erasing files
05.02.2017469Base systemBug ReportVery LowLowWifi firmware file is not available on ZyXEL P-2812HNU-...lede-17.01Unconfirmed Task Description

Kernel log:

[   11.336056] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   11.340485] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[   11.350276] rt2800pci 0000:00:0e.0: Direct firmware load for RT3062.eeprom failed with error -2
[   11.358782] rt2800pci 0000:00:0e.0: Falling back to user helper
[   11.479331] firmware RT3062.eeprom: firmware_loading_store: map pages failed
[   11.485217] ieee80211 phy0: rt2x00lib_request_eeprom_file: Error - Failed to request EEPROM.
[   11.493519] rt2800pci: probe of 0000:00:0e.0 failed with error -11

Firmware files:

root@lede:/lib/firmware# ls /lib/firmware/
lantiq-vrx200-a-to-b.bspatch                 rt2860.bin                                   xcpe_581816_580B11.LICENSE                   xcpe_581816_580B11_to_579906_574402.bspatch
lantiq-vrx200-a.bin                          rt3290.bin                                   xcpe_581816_580B11.bin

After adding a RT3062.eeprom the wifi port is available.

 


07.02.2017479Base systemBug ReportVery LowLowSoftethervpn results in ReAlloc error after vpnbridge i...TrunkUnconfirmed Task Description

On a mostly vanilla Atmel at91sam9g20-ek with 32MB of RAM, we are seeing a couple of errors using the current package software version + patches.

Overall, it may be the cross compilation process, overlay or something else entirely.

1. If the vpnbridge is already started, a NAND-WAIT stacktrace results if the binary is executed to instantiate a second instance.

root@lede:/usr/libexec/softethervpn# /usr/bin/env LANG=en_US.UTF-8 vpncmd
[  241.880000] 
[  241.880000] =================================
[  241.880000] [ INFO: inconsistent lock state ]
[  241.880000] 4.4.36 #0 Not tainted
[  241.880000] ---------------------------------
[  241.880000] inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage.
[  241.880000] kswapd0/155 [HC0[0]:SC0[0]:HE1:SE1] takes:
[  241.880000]  (&f->sem){+.+.?.}, at: [<c012949c>] jffs2_do_clear_inode+0x28/0x114
[  241.880000] {RECLAIM_FS-ON-W} state was registered at:
[  241.880000]   [<c005047c>] lockdep_trace_alloc+0xf8/0x118
[  241.880000]   [<c00b5610>] kmem_cache_alloc+0x28/0x144
[  241.880000]   [<c01261d8>] jffs2_alloc_inode_cache+0x1c/0x28
[  241.880000]   [<c01293a4>] jffs2_do_read_inode+0x13c/0x20c
[  241.880000]   [<c012fe58>] jffs2_iget+0x74/0x324
[  241.880000]   [<c0130830>] jffs2_do_fill_super+0x190/0x274
[  241.880000]   [<c0130e98>] jffs2_fill_super+0xf4/0x144
[  241.880000]   [<c01d1528>] mount_mtd_aux+0x80/0x10c
[  241.880000]   [<c01d1630>] mount_mtd_nr+0x7c/0x94
[  241.880000]   [<c01d17f8>] mount_mtd+0x1b0/0x210
[  241.880000]   [<c01309d4>] jffs2_mount+0x1c/0x28
[  241.880000]   [<c00bbbe4>] mount_fs+0x1c/0xac
[  241.880000]   [<c00d6418>] vfs_kern_mount+0x5c/0x12c
[  241.880000]   [<c00d9e68>] do_mount+0xa04/0xbc8
[  241.880000]   [<c00da270>] SyS_mount+0x7c/0xa8
[  241.880000]   [<c0009660>] ret_fast_syscall+0x0/0x1c
[  241.880000] irq event stamp: 45867
[  241.880000] hardirqs last  enabled at (45867): [<c001508c>] _raw_spin_unlock_irq+0x2c/0x6c
[  241.880000] hardirqs last disabled at (45866): [<c0014e88>] _raw_spin_lock_irq+0x28/0x70
[  241.880000] softirqs last  enabled at (45450): [<c0024088>] __do_softirq+0x208/0x2a4
[  241.880000] softirqs last disabled at (45431): [<c0024488>] irq_exit+0xa4/0xec
[  241.880000] 
[  241.880000] other info that might help us debug this:
[  241.880000]  Possible unsafe locking scenario:
[  241.880000] 
[  241.880000]        CPU0
[  241.880000]        ----
[  241.880000]   lock(&f->sem);
[  241.880000]   <Interrupt>
[  241.880000]     lock(&f->sem);
[  241.880000] 
[  241.880000]  *** DEADLOCK ***
[  241.880000] 
[  241.880000] 2 locks held by kswapd0/155:
[  241.880000]  #0:  (shrinker_rwsem){++++..}, at: [<c0090034>] shrink_slab.part.1.constprop.7+0x30/0x230
[  241.880000]  #1:  (&type->s_umount_key#32){.+.+..}, at: [<c00bb3ec>] trylock_super+0x1c/0x60
[  241.880000] 
[  241.880000] stack backtrace:
[  241.880000] CPU: 0 PID: 155 Comm: kswapd0 Not tainted 4.4.36 #0
[  241.880000] Hardware name: Atmel AT91SAM9
[  241.880000] Backtrace: 
[  241.880000] [<c0019798>] (dump_backtrace) from [<c0019994>] (show_stack+0x18/0x1c)
[  241.880000]  r7:0000000a r6:c38af4c0 r5:c38af0c0 r4:c068f314
[  241.880000] [<c001997c>] (show_stack) from [<c016fdd8>] (dump_stack+0x20/0x28)
[  241.880000] [<c016fdb8>] (dump_stack) from [<c004d144>] (print_usage_bug.part.11+0x228/0x290)
[  241.880000] [<c004cf1c>] (print_usage_bug.part.11) from [<c004d5b0>] (mark_lock+0x404/0x63c)
[  241.880000]  r8:c004c558 r7:c38af0c0 r6:c38af4c0 r5:00000008 r4:0000000a
[  241.880000] [<c004d1ac>] (mark_lock) from [<c004e638>] (__lock_acquire+0x97c/0x198c)
[  241.880000]  r10:c38af0c0 r9:c0667044 r8:c38af4c0 r7:00000001 r6:00000002 r5:c3675704
[  241.880000]  r4:0000025d r3:00000004
[  241.880000] [<c004dcbc>] (__lock_acquire) from [<c004fdcc>] (lock_acquire+0x7c/0x9c)
[  241.880000]  r10:00000042 r9:c334c4c4 r8:c38af0c0 r7:c0ccdd8c r6:00000001 r5:60000013
[  241.880000]  r4:00000000
[  241.880000] [<c004fd50>] (lock_acquire) from [<c0011580>] (mutex_lock_nested+0x50/0x39c)
[  241.880000]  r6:c334d000 r5:c334d000 r4:c36756d0
[  241.880000] [<c0011530>] (mutex_lock_nested) from [<c012949c>] (jffs2_do_clear_inode+0x28/0x114)
[  241.880000]  r10:00000042 r9:c334c4c4 r8:c334c000 r7:00000058 r6:c334d000 r5:c334d000
[  241.880000]  r4:c36756d0
[  241.880000] [<c0129474>] (jffs2_do_clear_inode) from [<c012fde0>] (jffs2_evict_inode+0x34/0x38)
[  241.880000]  r7:00000058 r6:c044ba88 r5:c334d000 r4:c3675730
[  241.880000] [<c012fdac>] (jffs2_evict_inode) from [<c00d1a7c>] (evict+0xac/0x164)
[  241.880000]  r5:c367580c r4:c3675730
[  241.880000] [<c00d19d0>] (evict) from [<c00d1b6c>] (dispose_list+0x38/0x44)
[  241.880000]  r7:00000058 r6:00000063 r5:00000006 r4:c392dd58
[  241.880000] [<c00d1b34>] (dispose_list) from [<c00d2e1c>] (prune_icache_sb+0x4c/0x5c)
[  241.880000]  r5:00000006 r4:c392dd58
[  241.880000] [<c00d2dd0>] (prune_icache_sb) from [<c00bb570>] (super_cache_scan+0x140/0x184)
[  241.880000]  r5:00000000 r4:c392ddd8
[  241.880000] [<c00bb430>] (super_cache_scan) from [<c00901b0>] (shrink_slab.part.1.constprop.7+0x1ac/0x230)
[  241.880000]  r10:00000601 r9:00000000 r8:00000000 r7:00000400 r6:00000062 r5:c334c4c4
[  241.880000]  r4:000000a5
[  241.880000] [<c0090004>] (shrink_slab.part.1.constprop.7) from [<c0092318>] (shrink_zone+0x5f0/0x640)
[  241.880000]  r10:00000004 r9:00000117 r8:c04da918 r7:00000000 r6:00000000 r5:c392ded4
[  241.880000]  r4:c04da6fc
[  241.880000] [<c0091d28>] (shrink_zone) from [<c0092c8c>] (kswapd+0x4ac/0x668)
[  241.880000]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c04da6fc
[  241.880000]  r4:c04da6fc
[  241.880000] [<c00927e0>] (kswapd) from [<c003d1b4>] (kthread+0xe4/0xfc)
[  241.880000]  r10:00000000 r9:00000000 r8:00000000 r7:c00927e0 r6:c04da6fc r5:00000000
[  241.880000]  r4:c3950780
[  241.880000] [<c003d0d0>] (kthread) from [<c00096ec>] (ret_from_fork+0x14/0x28)
[  241.880000]  r7:00000000 r6:00000000 r5:c003d0d0 r4:c3950780

2. If the vpnbridge is instantiated only once, and the vpn client is to be executed, a realloc error occurs:

 /usr/bin/env LANG=en_US.UTF-8 ./vpnclient 
Fatal Error: InternalReAlloc: error: realloc() failed.


Aborted

This is on 4.4.36 LEDE trunk with a FS that looks like:

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 7.4M      7.4M         0 100% /rom
tmpfs                    25.3M      2.7M     22.6M  11% /tmp
tmpfs                    25.3M     44.0K     25.2M   0% /tmp/root
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock2           50.0M      2.2M     47.8M   4% /overlay
overlayfs:/overlay       50.0M      2.2M     47.8M   4% /

Any assistance would be helpful.


11.02.2017499Base systemBug ReportVery LowLowWiFi client mode leaves router inaccessible if upstream...TrunkUnconfirmed Task Description

This bug was originally reported to the OpenWrt team and there is a discussion of it in their mailing list. Luiz Angelo Daros de Luca suggested reporting here (and switching to LEDE, which I will do).

I have a TP-Link TL-MR3020 v1.9 with Chaos Calmer 15.05.01. I’m using it to provide a WiFi access point to my phone/tablet while I travel, and it’s acting as a WiFi client for the various hostels I visit.

If you configure it as a wifi client with a wwan interface using the LuCI scan/join wizard, and then you configure a wifi access point on the same radio, the router works as expected and when you connect to the router’s AP, you get Internet via the client connection.

However, if you move out of range of the network the router is a client of, or if it goes down, when you power off the OpenWrt router and power back on, the access point won’t come up.

The AP will only come up if the client network you configured is also working; so you have no way to connect to the router over wifi, and no way to reconfigure the router, if that client network is down or out of range.

This is a particular problem for a travel router because it will often move it out of range of the original upstream network, and you may only have a wifi-capable device with which to reconfigure it.

The Ethernet port on the router does remain active, so I can tell it does actually boot. It’s just the radio that doesn’t come up. I managed to get back in range of a network once, and the router worked as expected.

It doesn’t matter whether the AP or client connection are configured first or second on the radio interface, and, unticking “bring up on boot” for the wwan interface has no effect on the behaviour.

Steps to reproduce: Connect the router to a wifi network as a client using the Join wizard. Add a wifi master-mode access point on the same radio interface. Verify you can access the Internet by joining the router’s new master AP. Reboot the router with the original network it was a client of turned off. Notice the router’s AP you configured never comes up.

Expected behaviour: The master access point of the router should always come up, regardless of the availability of the client network.

The OpenWRT team will not fix it, but had some explanation as to why it is happening. IMO, it’s still a very frustrating bug and most users would expect the behaviour I did.

12.02.2017500Base systemBug ReportVery LowLowfirewall3: missing targets with IPv6 NATlede-17.01Unconfirmed Task Description

When the kmod-ipt-nat6 package is installed, running /etc/init.d/firewall reload or /etc/init.d/firewall restart produces warnings that targets are missing:

 * Populating IPv6 nat table
   * Zone 'lan'
Warning: fw3_ipt_rule_append(): Can't find target 'prerouting_lan_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'postrouting_lan_rule'
   * Zone 'wan'
Warning: fw3_ipt_rule_append(): Can't find target 'prerouting_wan_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'postrouting_wan_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'prerouting_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'postrouting_rule'

I tested this on an Archer C7 v2 running LEDE 17.01.0rc2.

13.02.2017505Base systemBug ReportVery LowLowCan't install LEDE on Linksys EA3500AllUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on Linksys EA3500
- Software versions of LEDE release, packages, etc. Base Stable 17.01rc2 and Development build kirkwood/audi
- Steps to reproduce

 

LEDE kirkwood/audi...factory.bin will not flash on the ea3500, it just boots back into stock firmware. I was able to flash OpenWrt from factory and then flash LEDE from OpenWrt, so i tested both 17.01rc2 and development build, rc2 seems fine but there are no radios present in development build.

14.02.2017510Base systemBug ReportVery LowLowslow sysupgradeAllUnconfirmed Task Description

Hi

image flashing seems to be taking too long

 

- Xiaomi Mini
- 17.01-rc1, 17.01-rc2, trunk r3377-368cc8e
- flash 17.01-rc2 then sysupgrade to 17.01-rc1 and finally sysupgrade to r3377

the device has not been reachable for almost 5 minutes (no dhcp and wifi, did not try static ip).

root@LEDE:~# dmesg
[    0.000000] Linux version 4.4.47 (buildbot@builds) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3377-368cc8e) ) #0 Sun Feb 12 13:53:29 2017
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Xiaomi MiWiFi Mini
[    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 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 803b04b0, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no 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: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    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=0007fee0
[    0.000000] Readback ErrCtl register=0007fee0
[    0.000000] Memory: 125540K/131072K available (3020K kernel code, 144K rwdata, 720K rodata, 204K init, 208K bss, 5532K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007937] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.070540] pid_max: default: 32768 minimum: 301
[    0.075375] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082041] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095990] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106165] pinctrl core: initialized pinctrl subsystem
[    0.112730] NET: Registered protocol family 16
[    0.376330] PCI host bridge /pcie@10140000 ranges:
[    0.381161]  MEM 0x0000000020000000..0x000000002fffffff
[    0.386455]   IO 0x0000000010160000..0x000000001016ffff
[    0.405381] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.411024] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.417535] rt2880_gpio 10000638.gpio: registering 16 gpios
[    0.423151] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[    0.429636] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.435253] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.442467] PCI host bridge to bus 0000:00
[    0.446580] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.453607] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.459586] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.466501] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.474591] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[    0.474639] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.474662] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[    0.474736] pci 0000:00:00.0: supports D1
[    0.474755] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.475232] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    0.475305] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    0.475368] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.475467] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.475721] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.475750] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.475804] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.482519] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.489558] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.496475] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.503811] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.510740] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.518170] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.525516] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.530555] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.537471] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.544825] pci 0000:00:00.0: card - bus=0x0, slot = 0x0 irq=0
[    0.550759] pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[    0.557727] clocksource: Switched to clocksource systick
[    0.564626] NET: Registered protocol family 2
[    0.570064] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.577106] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.583623] TCP: Hash tables configured (established 1024 bind 1024)
[    0.590136] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.596026] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.602725] NET: Registered protocol family 1
[    0.607205] PCI: CLS 80 bytes, default 32
[    0.612041] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.619165] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.625425] Crashlog allocated RAM at address 0x3f00000
[    0.647176] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.653125] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.665858] io scheduler noop registered
[    0.669850] io scheduler deadline registered (default)
[    0.675275] ralink-usb-phy usbphy: invalid resource
[    0.680940] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.691108] console [ttyS0] disabled
[    0.694715] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.704847] console [ttyS0] enabled
[    0.711874] bootconsole [early0] disabled
[    0.727010] spi spi0.0: force spi mode3
[    0.731557] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.736411] 7 ofpart partitions found on MTD device spi0.0
[    0.742049] Creating 7 MTD partitions on "spi0.0":
[    0.746943] 0x000000000000-0x000000030000 : "u-boot"
[    0.753854] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.761188] 0x000000040000-0x000000050000 : "factory"
[    0.768206] 0x000000050000-0x000000fd0000 : "firmware"
[    2.081066] 2 uimage-fw partitions found on MTD device firmware
[    2.087131] 0x000000050000-0x00000018fa05 : "kernel"
[    2.093835] 0x00000018fa05-0x000000fd0000 : "rootfs"
[    2.100779] mtd: device 5 (rootfs) set to be root filesystem
[    2.106705] 1 squashfs-split partitions found on MTD device rootfs
[    2.113096] 0x00000038d000-0x000000fd0000 : "rootfs_data"
[    2.120489] 0x000000fd0000-0x000000fe0000 : "crash"
[    2.127322] 0x000000fe0000-0x000000ff0000 : "reserved"
[    2.134485] 0x000000ff0000-0x000001000000 : "Bdata"
[    2.144580] gsw: setting port4 to ephy mode
[    2.148946] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 0 link up (100Mbps/Full duplex)
[    2.158477] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    2.165342] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    2.174387] rt2880_wdt 10000120.watchdog: Initialized
[    2.181168] NET: Registered protocol family 10
[    2.190388] NET: Registered protocol family 17
[    2.195021] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.207965] 8021q: 802.1Q VLAN Support v1.8
[    2.230354] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.238734] Freeing unused kernel memory: 204K (803cd000 - 80400000)
[    4.647687] init: Console is alive
[    4.651530] init: - watchdog -
[    6.329239] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.421363] usbcore: registered new interface driver usbfs
[    6.427072] usbcore: registered new interface driver hub
[    6.432679] usbcore: registered new device driver usb
[    6.443661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.452010] ehci-platform: EHCI generic platform driver
[    6.467726] phy phy-usbphy.0: remote usb device wakeup disabled
[    6.473774] phy phy-usbphy.0: UTMI 16bit 30MHz
[    6.478349] ehci-platform 101c0000.ehci: EHCI Host Controller
[    6.484245] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    6.492460] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    6.505433] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    6.512963] hub 1-0:1.0: USB hub found
[    6.517238] hub 1-0:1.0: 1 port detected
[    6.524350] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.532228] ohci-platform: OHCI generic platform driver
[    6.537914] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    6.544874] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    6.553089] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    6.583712] hub 2-0:1.0: USB hub found
[    6.587905] hub 2-0:1.0: 1 port detected
[    6.595449] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.604106] init: - preinit -
[    6.956411] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    7.270746] random: procd: uninitialized urandom read (4 bytes read, 12 bits of entropy available)
[    7.640080] 8021q: adding VLAN 0 to HW filter on device eth0
[    8.529656] jffs2_scan_eraseblock(): End of filesystem marker found at 0x2000
[    8.538130] jffs2_build_filesystem(): unlocking the mtd device... done.
[    8.544910] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   78.660250] random: nonblocking pool is initialized
[  311.401301] done.
[  311.403323] jffs2: notice: (374) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  311.421054] mount_root: overlay filesystem has not been fully initialized yet
[  311.442837] mount_root: switching to jffs2 overlay
[  311.834234] urandom-seed: Seed file not found (/etc/urandom.seed)
[  311.954212] procd: - early -
[  311.957267] procd: - watchdog -
[  312.330881] procd: - ubus -
[  312.358304] procd: - init -
[  312.624374] kmodloader: loading kernel modules from /etc/modules.d/*
[  312.637526] ip6_tables: (C) 2000-2006 Netfilter Core Team
[  312.654500] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[  312.662749] Backport generated by backports.git backports-20160324-13-g24da7d3c
[  312.721454] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[  312.734552] mt76x2e 0000:01:00.0: ROM patch already applied
[  312.741870] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[  312.747548] mt76x2e 0000:01:00.0: Build: 1
[  312.751731] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[  312.765329] mt76x2e 0000:01:00.0: Firmware running!
[  312.771221] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  312.798568] ip_tables: (C) 2000-2006 Netfilter Core Team
[  312.824101] nf_conntrack version 0.5.0 (1964 buckets, 7856 max)
[  313.046235] xt_time: kernel timezone is -0000
[  313.061761] PPP generic driver version 2.4.2
[  313.069130] NET: Registered protocol family 24
[  313.091611] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[  313.099084] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[  313.107017] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[  313.114718] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[  313.127635] kmodloader: done loading kernel modules from /etc/modules.d/*
[  320.473979] 8021q: adding VLAN 0 to HW filter on device eth0
[  320.498870] device eth0 entered promiscuous mode
[  320.505015] device eth0.1 entered promiscuous mode
[  320.516566] br-lan: port 1(eth0.1) entered forwarding state
[  320.522301] br-lan: port 1(eth0.1) entered forwarding state
[  322.515382] br-lan: port 1(eth0.1) entered forwarding state
[  324.129601] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  324.149913] device wlan1 entered promiscuous mode
[  324.154799] br-lan: port 2(wlan1) entered forwarding state
[  324.160512] br-lan: port 2(wlan1) entered forwarding state
[  324.421359] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[  325.099733] br-lan: port 2(wlan1) entered forwarding state
14.02.2017514Base systemBug ReportVery LowLowAny files copied to flash gone after reboot17.01.0-rc2 ...TrunkUnconfirmed Task Description

PCEngines Alix with lede-17.01.0-rc2-r3131-42f3c1f-x86-geode-combined-squashfs.img

Boots fine.

Any software installed or files copied to flash disappear after reboot.

However LAN ethernet IP address is (usually)remembered but did get reset on one occasion.
But WiFi config of a USB dongle is always lost.

The board has a Lexar 16GB UDMA7 CF card. This config works fine with OpenWrt CC.

Reflashing, changing the flash card etc makes no difference.

16.02.2017521Base systemBug ReportVery LowLowkernel warning in mac802 11 / ibss_leave / r3472TrunkUnconfirmed Task Description

it is a “TP-LINK TL-WR1043ND”.

[46258.340310] ------------[ cut here ]------------
[46258.345255] WARNING: CPU: 0 PID: 10086 at compat-wireless-2017-01-31/net/mac80211/ibss.c:1082 ieee80211_get_vht_mask_from_cap+0x1a50/0x1b90 [mac80211]()
[46258.359026] Modules linked in: ath9k ath9k_common ath9k_hw ath nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack macvlan iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables compat em_nbyte sch_dsmark sch_pie sch_codel sch_gred em_cmp cls_basic act_ipt sch_red sch_prio em_meta act_police em_text sch_sfq sch_fq act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun vfat fat nls_utf8 nls_iso8859_1 nls_cp437 zram lz4_decompress lz4_compress lzo_compress lzo_decompress zsmalloc usb_storage ohci_platform ohci_hcd ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash [last unloaded: crc_ccitt]
[46258.487331] CPU: 0 PID: 10086 Comm: kworker/u2:0 Not tainted 4.4.47 #0
[46258.494018] Workqueue: phy0 ieee80211_ibss_leave [mac80211]
[46258.499637] Stack : 80e34b40 80e34b40 00000001 800a7590 818ee5bc 80410d63 803aa280 00002766
[46258.499637]    803d4ab4 809dfab4 80410000 800a550c 00000001 800a7590 803af978 80410000
[46258.499637]    00000003 809dfab4 80410000 80095528 00000001 809dfaec 00000000 801f3b30
[46258.499637]    00000001 801f3b00 80f13acc 80e12300 80e12200 70687930 00000000 00000000
[46258.499637]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[46258.499637]    ...
[46258.535670] Call Trace:
[46258.538143] [<80071e10>] show_stack+0x50/0x84
[46258.542555] [<80081b9c>] warn_slowpath_common+0xa0/0xd0
[46258.547819] [<80081c54>] warn_slowpath_null+0x18/0x24
[46258.553014] [<80f1268c>] ieee80211_get_vht_mask_from_cap+0x1a50/0x1b90 [mac80211]
[46258.560637]
[46258.562148] ---[ end trace eb9418c3bbf97ef5 ]---


uci config is:

wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.country='US'
wireless.radio0.channel='11'
wireless.radio0.frag='off'
wireless.radio0.noscan='1'
wireless.radio0.path='platform/ath9k'
wireless.radio0.hwmode='11ng'
wireless.radio0.ht_capab='SHORT-GI-40' 'DSSS_CCK-40'
wireless.radio0.htmode='HT20'
wireless.radio0.beacon_int='250'
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device='radio0'
wireless.@wifi-iface[0].network='wlan'
wireless.@wifi-iface[0].mode='adhoc'
wireless.@wifi-iface[0].bssid='02:ca:ff:ee:00:11'
wireless.@wifi-iface[0].ssid='bb'
wireless.@wifi-iface[0].mcast_rate='6000'
wireless.@wifi-iface[0].macaddr='64:70:02:5c:1b:3c'
16.02.2017522Base systemBug ReportVery LowLowsudden wifi-restarts when client connects / r3439 on TP...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
- Software versions of LEDE release, packages, etc.
- Steps to reproduce

 
Thu Feb 16 13:31:57 2017 daemon.info hostapd: wlan1-1: STA 00:1e:65:94:22:52 IEEE 802.11: authenticated
Thu Feb 16 13:31:57 2017 daemon.info hostapd: wlan1-1: STA 00:1e:65:94:22:52 IEEE 802.11: associated (aid 2)
Thu Feb 16 13:31:57 2017 daemon.notice hostapd: wlan1-1: AP-STA-CONNECTED 00:1e:65:94:22:52
Thu Feb 16 13:31:58 2017 authpriv.info dropbear[4509]: Child connection from fe80::21e:65ff:fe94:2252%br-mastergate:32784
Thu Feb 16 13:32:01 2017 authpriv.notice dropbear[4509]: Password auth succeeded for 'root' from fe80::21e:65ff:fe94:2252%br-mastergate:32784
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.773904] ath: EEPROM regdomain: 0x8348
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.773917] ath: EEPROM indicates we should expect a country code
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.773924] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.773930] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.773936] ath: Country alpha2 being used: US
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.773942] ath: Regpair used: 0x3a
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.773948] ath: regdomain 0x8348 dynamically updated by user
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.774020] ath: EEPROM regdomain: 0x8348
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.774025] ath: EEPROM indicates we should expect a country code
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.774031] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.774038] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.774043] ath: Country alpha2 being used: US
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.774048] ath: Regpair used: 0x3a
Thu Feb 16 13:32:03 2017 kern.debug kernel: [ 8201.774054] ath: regdomain 0x8348 dynamically updated by user
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852253] ath: EEPROM regdomain: 0x8348
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852266] ath: EEPROM indicates we should expect a country code
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852273] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852279] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852286] ath: Country alpha2 being used: US
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852291] ath: Regpair used: 0x3a
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852298] ath: regdomain 0x8348 dynamically updated by user
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852368] ath: EEPROM regdomain: 0x8348
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852373] ath: EEPROM indicates we should expect a country code
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852380] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852386] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:04 2017 kern.debug kernel: [ 8202.852391] ath: Country alpha2 being used: US
[...]
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413158] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413165] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413171] ath: Country alpha2 being used: US
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413176] ath: Regpair used: 0x3a
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413183] ath: regdomain 0x8348 dynamically updated by user
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413254] ath: EEPROM regdomain: 0x8348
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413259] ath: EEPROM indicates we should expect a country code
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413265] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413272] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413277] ath: Country alpha2 being used: US
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413282] ath: Regpair used: 0x3a
Thu Feb 16 13:32:12 2017 kern.debug kernel: [ 8210.413288] ath: regdomain 0x8348 dynamically updated by user
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491093] ath: EEPROM regdomain: 0x8348
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491106] ath: EEPROM indicates we should expect a country code
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491113] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491120] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491126] ath: Country alpha2 being used: US
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491131] ath: Regpair used: 0x3a
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491138] ath: regdomain 0x8348 dynamically updated by user
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491210] ath: EEPROM regdomain: 0x8348
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491215] ath: EEPROM indicates we should expect a country code
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491221] ath: doing EEPROM country->regdmn map search
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491227] ath: country maps to regdmn code: 0x3a
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491232] ath: Country alpha2 being used: US
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491237] ath: Regpair used: 0x3a
Thu Feb 16 13:32:13 2017 kern.debug kernel: [ 8211.491243] ath: regdomain 0x8348 dynamically updated by user
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan0-1: interface state ENABLED->DISABLED
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan0-1: AP-DISABLED 
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan0-1: CTRL-EVENT-TERMINATING 
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: nl80211: deinit ifname=wlan0-1 disabled_11b_rates=0
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Network device 'wlan0-1' link is down
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Network alias 'wlan0-1' link is down
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Interface 'wlan' has link connectivity loss
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan1-1: interface state ENABLED->DISABLED
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan1-1: AP-STA-DISCONNECTED 00:1e:65:94:22:52
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan1-1: AP-STA-DISCONNECTED c0:c9:76:09:0c:e0
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan1-1: AP-DISABLED 
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: wlan1-1: CTRL-EVENT-TERMINATING 
Thu Feb 16 13:32:16 2017 daemon.notice hostapd: nl80211: deinit ifname=wlan1-1 disabled_11b_rates=0
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Network device 'wlan1-1' link is down
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Network alias 'wlan1-1' link is down
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Interface 'wlanRADIO1' has link connectivity loss
Thu Feb 16 13:32:16 2017 daemon.info olsrd[5562]: Removing interface wlan1
Thu Feb 16 13:32:16 2017 daemon.err olsrd[5562]: OLSR: sendto IPv4 'Network unreachable' on interface wlan1
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Network device 'wlan1' link is down
Thu Feb 16 13:32:16 2017 daemon.notice netifd: Interface 'wlanadhocRADIO1' has link connectivity loss
[...]

maybe this is a side-effect of may changed regdb, but it was till now never an issue:

root@F36-stube:~ :) iw reg get
global
country US: DFS-UNSET
	(2400 - 2494 @ 40), (N/A, 30), (N/A)
	(4910 - 5895 @ 40), (N/A, 30), (N/A)

phy#1
country US: DFS-UNSET
	(2400 - 2494 @ 40), (N/A, 30), (N/A)
	(4910 - 5895 @ 40), (N/A, 30), (N/A)

phy#0
country US: DFS-UNSET
	(2400 - 2494 @ 40), (N/A, 30), (N/A)
	(4910 - 5895 @ 40), (N/A, 30), (N/A)


17.02.2017524PackagesBug ReportVery LowLowodhcpd: stateful+stateless sends M flag in RA for prefi...TrunkUnconfirmed Task Description

The M-Flag should only be set in RA when DHCPv6 assignment will occur in that prefix. This is related to FS#402, but where FS#402 may be a matter of style to some, this one is a bug. odhcpd sends M-Flag in RA on both prefixes but only DHCPv6 on ULA. This can confuse some client software, they don’t accept only the ULA, and they continue to spam the router with solicits trying to get GA and ULA together. Whether or not debate occurs on DHCPv6 being split in stateful+less mode, if it is split, then the RA need to respect it.


17.02.2017526ToolchainBug ReportVery LowLowLEDE 17.01-rc2 SDK requires a too new libstdc++ version...lede-17.01Unconfirmed Task Description

The LEDE 17.01-rc2 SDK wants the symbol GLIBCXX_3.4.20 in libstdc++6, but Ubuntu 14.04 x86_64 only has GLIBCXX_3.4.19.

compiler@host:~$ dpkg -l libstdc++6
ii libstdc++6:amd64 4.8.4-2ubuntu1~14.04.3 amd64 GNU Standard C++ Library v3

compiler@host:~/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64$ make -j1 V=s
[...]
(cd /home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/build_dir/target-mips_24kc_musl-1.1.16/libubox-2016-11-29-77a62937; CFLAGS=”-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/build_dir/target-mips_24kc_musl-1.1.16/libubox-2016-11-29-77a62937:libubox-2016-11-29-77a62937 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/usr/include " CXXFLAGS=”-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap /home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/build_dir/target-mips_24kc_musl-1.1.16/libubox-2016-11-29-77a62937:libubox-2016-11-29-77a62937 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/usr/include " LDFLAGS=”-L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/lib -znow -zrelro " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=mips -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE=”-DNDEBUG” -DCMAKE_CXX_FLAGS_RELEASE=”-DNDEBUG” -DCMAKE_C_COMPILER=”/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/host/bin/ccache” -DCMAKE_C_COMPILER_ARG1=”mips-openwrt-linux-musl-gcc” -DCMAKE_CXX_COMPILER=”/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/host/bin/ccache” -DCMAKE_CXX_COMPILER_ARG1=”mips-openwrt-linux-musl-g++” -DCMAKE_ASM_COMPILER=”/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/host/bin/ccache” -DCMAKE_ASM_COMPILER_ARG1=”mips-openwrt-linux-musl-gcc” -DCMAKE_EXE_LINKER_FLAGS:STRING=”-L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/lib -znow -zrelro” -DCMAKE_MODULE_LINKER_FLAGS:STRING=”-L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/lib -znow -zrelro -Wl,-Bsymbolic-functions” -DCMAKE_SHARED_LINKER_FLAGS:STRING=”-L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/usr/lib -L/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/lib -znow -zrelro -Wl,-Bsymbolic-functions” -DCMAKE_AR=”/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-musl-gcc-ar” -DCMAKE_NM=”/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-musl-gcc-nm” -DCMAKE_RANLIB=”/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16/bin/mips-openwrt-linux-musl-gcc-ranlib” -DCMAKE_FIND_ROOT_PATH=”/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/usr;/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.16” -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=: -DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16 -DCMAKE_PREFIX_PATH=/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16 -DCMAKE_SKIP_RPATH=TRUE -DLUAPATH=/usr/lib/lua /home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/build_dir/target-mips_24kc_musl-1.1.16/libubox-2016-11-29-77a62937 )
/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/host/bin/cmake: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by /home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/host/bin/cmake)
make[3]: * [/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/build_dir/target-mips_24kc_musl-1.1.16/libubox-2016-11-29-77a62937/.configured_yynnyy] Error 1
make[3]: Leaving directory `/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/feeds/base/package/libs/libubox’ make[2]:
* [package/feeds/base/libubox/compile] Error 2
make[2]: Leaving directory `/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64’ make[1]: * [/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/target-mips_24kc_musl-1.1.16/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/compiler/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64’ make:
* [world] Error 2

Further diagnostics:

compiler@host:~/lede-sdk-17.01.0-rc2-lantiq-xrx200_gcc-5.4.0_musl-1.1.16.Linux-x86_64$ for a in staging_dir/host/bin/.*bin; do ldd $a |grep “not found”; done
staging_dir/host/bin/.ccmake.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by staging_dir/host/bin/.ccmake.bin)
staging_dir/host/bin/.ccmake.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8’ not found (required by staging_dir/host/bin/.ccmake.bin)
staging_dir/host/bin/.cmake.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by staging_dir/host/bin/.cmake.bin)
staging_dir/host/bin/.cpack.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by staging_dir/host/bin/.cpack.bin)
staging_dir/host/bin/.cpack.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8’ not found (required by staging_dir/host/bin/.cpack.bin)
staging_dir/host/bin/.ctest.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by staging_dir/host/bin/.ctest.bin)
staging_dir/host/bin/.gengetopt.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by staging_dir/host/bin/.gengetopt.bin)
staging_dir/host/bin/.mklibs-readelf.bin: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20’ not found (required by staging_dir/host/bin/.mklibs-readelf.bin)

17.02.2017528KernelBug ReportVery LowLowmac80211 -- Lose connectivity to wireless and networklede-17.01Unconfirmed Task Description

Supply the following if possible:

- Device problem occurs on
Linksys WRT3200ACM

- Software versions of LEDE release, packages, etc.
LEDE Reboot 17.01.0-rc2 r3131-42f3c1f / LuCI e306ee6c93c1ef600012f47e40dd75020d4ab555 branch (git-17.033.24085-e306ee6)

- Steps to reproduce
Let it run...

-UpTime
16h 25m 44s

–Kernel Log

ieee80211 phy0: create ba result error 1
[47506.602405] ieee80211 phy0: ampdu operation error code: -22
[47507.239732] ————[ cut here ]———— [47507.244406] WARNING: CPU: 0 PID: 6157 at compat-wireless-2016-10-08/net/mac80211/agg-tx.c:398 0xbf0a9a18 [mac80211@bf09c000+0x5b514]()
[47507.256560] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT ts_kmp ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_h323 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_h323 nf_conntrack_broadcast nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt mwlwifi mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables uhci_hcd ohci_platform ohci_hcd sd_mod exfat gpio_button_hotplug
[47507.342771] CPU: 0 PID: 6157 Comm: kworker/u4:0 Not tainted 4.4.47 #0
[47507.349237] Hardware name: Marvell Armada 380/385 (Device Tree)
[47507.355184] Workqueue: phy0 0xbf0adfcc [mac80211@bf09c000+0x5b514]
[47507.361399] Function entered at [<c0027d2c>] from [<c0024450>]
[47507.367253] Function entered at [<c0024450>] from [<c0217d44>]
[47507.373108] Function entered at [<c0217d44>] from [<c0034e14>]
[47507.378963] Function entered at [<c0034e14>] from [<c0034ecc>]
[47507.384817] Function entered at [<c0034ecc>] from [<bf0a9a18>]
[47507.390676] Function entered at [<bf0a9a18>] from [<bf0a9e0c>]
[47507.396531] Function entered at [<bf0a9e0c>] from [<bf0ae18c>]
[47507.402387] Function entered at [<bf0ae18c>] from [<c004948c>]
[47507.408241] Function entered at [<c004948c>] from [<c0049930>]
[47507.414095] Function entered at [<c0049930>] from [<c004e644>]
[47507.419950] Function entered at [<c004e644>] from [<c0009d38>]
[47507.425811] —[ end trace edc512a72d599128 ]— [50422.078420] ————[ cut here ]———— [50422.083083] WARNING: CPU: 0 PID: 1587 at compat-wireless-2016-10-08/net/mac80211/agg-tx.c:347 0xbf0a9964 [mac80211@bf09c000+0x5b514]()
[50422.095238] Modules linked in: pppoe ppp_async iptable_nat pppox ppp_generic nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT ts_kmp ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_h323 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_h323 nf_conntrack_broadcast nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt mwlwifi mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables uhci_hcd ohci_platform ohci_hcd sd_mod exfat gpio_button_hotplug
[50422.181434] CPU: 0 PID: 1587 Comm: hostapd Tainted: G W 4.4.47 #0
[50422.188684] Hardware name: Marvell Armada 380/385 (Device Tree)
[50422.194629] Function entered at [<c0027d2c>] from [<c0024450>]
[50422.200483] Function entered at [<c0024450>] from [<c0217d44>]
[50422.206338] Function entered at [<c0217d44>] from [<c0034e14>]
[50422.212192] Function entered at [<c0034e14>] from [<c0034ecc>]
[50422.218046] Function entered at [<c0034ecc>] from [<bf0a9964>]
[50422.223904] Function entered at [<bf0a9964>] from [<bf0a9e0c>]
[50422.229758] Function entered at [<bf0a9e0c>] from [<bf0a8a8c>]
[50422.235613] Function entered at [<bf0a8a8c>] from [<bf09f8f4>]
[50422.241468] Function entered at [<bf09f8f4>] from [<bf0a2ae8>]
[50422.247323] Function entered at [<bf0a2ae8>] from [<bf0a2b74>]
[50422.253178] Function entered at [<bf0a2b74>] from [<bf070b60>]
[50422.259036] Function entered at [<bf070b60>] from [<c03d1df0>]
[50422.264891] Function entered at [<c03d1df0>] from [<c03d1110>]
[50422.270745] Function entered at [<c03d1110>] from [<c03d1b08>]
[50422.276599] Function entered at [<c03d1b08>] from [<c03d0ae0>]
[50422.282453] Function entered at [<c03d0ae0>] from [<c03d0f20>]
[50422.288307] Function entered at [<c03d0f20>] from [<c038e11c>]
[50422.294162] Function entered at [<c038e11c>] from [<c038e768>]
[50422.300016] Function entered at [<c038e768>] from [<c038f560>]
[50422.305870] Function entered at [<c038f560>] from [<c0009c80>]
[50422.311731] —[ end trace edc512a72d599129 ]—

21.02.2017543KernelBug ReportVery LowLowLED trigger netdev on a bridge is not interface sensiti...lede-17.01Unconfirmed Task Description

I have a bridge “br-wan” with “eth1” and “eth0.2” interfaces.

In Chaos I could set the led trigger to either of these interfaces separately. I could display either of the interfaces separately.

In 17.01 no matter what I choose “br-wan”, “eth0.2”, or “eth1” the led shows the full traffic through the bridge.

If this is made on purpose, could you point me to the code change please.

21.02.2017545Base systemBug ReportVery LowLowUSB does not work ARV4518PWR01Alede-17.01Unconfirmed Task Description

Hello, I tried to install 17.01.0-rc2, r3131 on Arcadyan ARV4518PWR01A but USB is not working.

 


22.02.2017550Base systemBug ReportVery LowLowhostapd (wpad-mesh) fails to start interface at same ti...TrunkUnconfirmed Task Description

Test device: OM2P from 2011 with ath9k and ar71xx subtarget
Version: LEDE 17.01.0-rc1 branch commit reboot-3208-g349577adbf

Build the image with following .config

CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_DEVICE_OM2P=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_EC=y
CONFIG_OPENSSL_WITH_NPN=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_wpad-mesh=y
# CONFIG_PACKAGE_wpad-mini is not set

Then modify /etc/config/wireless to look like this:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '1'
        option hwmode '11g'
        option path 'pci0000:00/0000:00:00.0'
        option htmode 'HT20'
        option disabled '0'

config wifi-iface 'ap2'
        option device 'radio0'
        option ifname 'ap-2'
        option network 'lan'
        option mode 'ap'
        option ssid 'meshedAP'
        option macaddr 'ac:86:74:00:00:01'
        option encryption 'none'

config wifi-iface 'mesh2'
        option device 'radio0'
        option ifname 'mesh-2'
        option network 'lan'
        option mode 'mesh'
        option mesh_id 'mymesh'
        option disabled '0'
        option mcast_rate '54000'
        option macaddr 'ae:86:74:00:00:01'
        option mesh_ttl 1
        option mesh_fwding 0
        option encryption 'none'
        option ieee80211w 1
        option encryption 'psk2+aes'
        option key 'reallysecretkey'

The iw dev output looks then like this:

phy#0
        Interface ap-2
                ifindex 8
                wdev 0x3
                addr ac:86:74:00:00:01
                type AP
                txpower 20.00 dBm
        Interface mesh-2
                ifindex 7
                wdev 0x2
                addr ae:86:74:00:00:01
                type mesh point
                channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
                txpower 20.00 dBm

Setting encryption to "none" doesn't help. But it seems to work fine when the mesh interface is disabled in uci

phy#0
        Interface ap-2
                ifindex 11
                wdev 0x6
                addr ac:86:74:00:00:01
                ssid meshedAP
                type AP
                channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
                txpower 20.00 dBm

This could become a big problem for freifunk-gluon when 802.11s is used instead of IBSS in the site.conf. Their setup is using AP + mesh on the same PHY

24.02.2017552Base systemFeature RequestVery LowLowBackup & restore of additionally installed packagesAllUnconfirmed Task Description

There is a discussion and also two different scripts available here:
https://forum.lede-project.org/t/feature-request-for-backup-functionality/603

Is it possible to incorporate some kind of this functionality into the standard distribution to lower the bar for newbies?

Script one:
https://forum.openwrt.org/viewtopic.php?pid=194478#p194478

second:
https://github.com/richb-hanover/OpenWrtScripts/blob/master/config-openwrt.sh

25.02.2017555KernelBug ReportLowLowmac80211/ath9k warning: Rate marked as an HT rate but p...lede-17.01New Task Description

I have been using LEDE 17.01 on a WR841N v8, with a simple 2.4 GHz AP (’mixed-psk’ security).

Recently I have seen this kernel warning in the logs: it might be nothing or it might be something important, who knows.

Feb 23 17:23:59 AP4 kernel: [62871.843902] ------------[ cut here ]------------
Feb 23 17:23:59 AP4 kernel: [62871.848752] WARNING: CPU: 0 PID: 0 at compat-wireless-2016-10-08/net/mac80211/rx.c:4180 0x80e2529c [mac80211@80e00000+0x5f500]()
Feb 23 17:23:59 AP4 kernel: [62871.860717] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 113 (0x71)
Feb 23 17:23:59 AP4 kernel: [62871.870518] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack ipta
Feb 23 17:23:59 AP4 kernel: [62871.930136] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.50 #0
Feb 23 17:23:59 AP4 kernel: [62871.936073] Stack : 80386534 00000000 00000001 803e0000 00000000 00000000 00000000 00000000
Feb 23 17:23:59 AP4 kernel: [62871.936073] #011  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 23 17:23:59 AP4 kernel: [62871.936073] #011  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 23 17:23:59 AP4 kernel: [62871.936073] #011  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 23 17:23:59 AP4 kernel: [62871.936073] #011  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Feb 23 17:23:59 AP4 kernel: [62871.936073] #011  ...
Feb 23 17:23:59 AP4 kernel: [62871.973122] Call Trace:[<80071a50>] 0x80071a50
Feb 23 17:23:59 AP4 kernel: [62871.977762] [<80071a50>] 0x80071a50
Feb 23 17:23:59 AP4 kernel: [62871.981372] [<800817e8>] 0x800817e8
Feb 23 17:23:59 AP4 kernel: [62871.984987] [<80e2529c>] 0x80e2529c [mac80211@80e00000+0x5f500]
Feb 23 17:23:59 AP4 kernel: [62871.991120] [<80081844>] 0x80081844
Feb 23 17:23:59 AP4 kernel: [62871.994729] [<802a385c>] 0x802a385c
Feb 23 17:23:59 AP4 kernel: [62871.998352] [<80e2529c>] 0x80e2529c [mac80211@80e00000+0x5f500]
Feb 23 17:23:59 AP4 kernel: [62872.004468] [<8025fea8>] 0x8025fea8
Feb 23 17:23:59 AP4 kernel: [62872.008086] [<8026008c>] 0x8026008c
Feb 23 17:23:59 AP4 kernel: [62872.011694] [<80d08388>] 0x80d08388 [ath9k_common@80d08000+0x47e0]
Feb 23 17:23:59 AP4 kernel: [62872.018112] [<81ba77dc>] 0x81ba77dc [ath9k@81ba0000+0x16650]
Feb 23 17:23:59 AP4 kernel: [62872.023975] [<81ba77bc>] 0x81ba77bc [ath9k@81ba0000+0x16650]
Feb 23 17:23:59 AP4 kernel: [62872.029854] [<81ba4a44>] 0x81ba4a44 [ath9k@81ba0000+0x16650]
Feb 23 17:23:59 AP4 kernel: [62872.035704] [<800843a8>] 0x800843a8
Feb 23 17:23:59 AP4 kernel: [62872.039327] [<80083d64>] 0x80083d64
Feb 23 17:23:59 AP4 kernel: [62872.042937] [<800a7e08>] 0x800a7e08
Feb 23 17:23:59 AP4 kernel: [62872.046547] [<8006a950>] 0x8006a950
Feb 23 17:23:59 AP4 kernel: [62872.050169] [<80060bf4>] 0x80060bf4
Feb 23 17:23:59 AP4 kernel: [62872.053769] 
Feb 23 17:23:59 AP4 kernel: [62872.055314] ---[ end trace 90699e3e72694b86 ]---
Feb 23 17:24:02 AP4 kernel: [62875.131392] ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02100020 DMADBG_7=0x00024300


27.02.2017559Base systemFeature RequestVery LowLowNo Ethernet statistics on ag71xxTrunkUnconfirmed Task Description

On WNDR3700v2:

  # ethtool -i eth1 | head -n 2
  driver: ag71xx
  version: 0.5.35
  # ethtool -S eth1
  no stats available

The only statistics available are the ones provided by `ifconfig`, but I’m not sure whether that is accurate — I’m not seeing any drops even under load.

Note that statistics are available on the switch (through `swconfig show`), it’s only the SoC’s interface that’s impacted.

(While I’m at it, the driver is incomplete in other ways — there’s no support for Pause frames or for scatter-gather, although a quick read of the datasheet indicates that it should be possible to implement these features. I’m not sure that’s important, though.)

27.02.2017563Base systemBug ReportVery LowLowcake qdisc high cpu usage on tp-link 841nTrunkUnconfirmed Task Description

So, I had this crazy idea to just make cake the default qdisk after seeing the battlemesh presentation. Now we are seeing high spikes in CPU usage after some time - the peaks appear to be of periodic nature. I only have some nmeter plots (basically vmstat/sar with dots - it’s a busybox applet) - the high load immediatly vanishes after switching the qdiscs back to fq_codel.

I’ve seen this on 2 841n routers one only using ap+ibss mode the other having wan+lan+ap+ibss+tap interfaces with cake running. Both also run a bridge for the AP.

Is the high system cpu usage expacted behavoir? cake qdisc is just using defaults:

This script does the activation:

# cat /etc/hotplug.d/iface/00-cake-qdisc 
#!/bin/sh

case "$ACTION" in
                ifup)
                grep -q '^sch_cake' '/proc/modules' && {
                        command -V tc > /dev/null || return 
                        tc qdisc replace dev "$DEVICE" root cake
                }
        ;;
esac
# vim: set filetype=sh ai noet ts=4 sw=4 sts=4 :

The results (1 line = 1 second):

root@weimarnetz-188:~ :) nmeter '%40c wlan: %[nbr-vap] ibss: %[nwlan0]'

cake 

SSSSSSSSUii............................. wlan:  8856  756 ibss:  4026 9162
SSSSSSSSSSSSSSSSSSSSU................... wlan:   44k 1736 ibss:  8726  49k
SSSSSSSi................................ wlan:   58k 2130 ibss:  5974  62k
SSSUUUUi................................ wlan:   58k 1296 ibss:   15k  68k
SSSSSSSSi............................... wlan:   49k 2532 ibss:  5298  53k
SSSSSSSSSSiii........................... wlan:   45k 2082 ibss:  8282  49k
SSSSSSSSSSSSSSSSSSSSSSU................. wlan:   39k 1794 ibss:   14k  45k
SSSSSSSSSSSSSSUi........................ wlan:   34k 2112 ibss:   11k  29k
SSSSSSSSSSSSSSSSSSSSSUUi................ wlan:   47k 2172 ibss:  7614  60k
U....................................... wlan:   58k 2934 ibss:  7496  61k
SSUi.................................... wlan:   53k 1944 ibss:  9.8k  58k
SSSSSSSSSSSSSSSSSSU..................... wlan:   47k 1698 ibss:  6552  51k
SSSSSSSSSSSSSUi......................... wlan:   57k 2704 ibss:  9.9k  62k
UUUiii.................................. wlan:   57k 1512 ibss:  8956  63k
SSSSSSSSSSSSSSSSSSSSSSSSii.............. wlan:   77k 4010 ibss:   17k  85k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSUii wlan:  6400  318 ibss:   450 6784
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSi wlan:   47k 1296 ibss:   12k  55k
SUUii................................... wlan:   49k 2542 ibss:  5604  53k
SSSSSSSSUUi............................. wlan:   56k 2354 ibss:   10k  62k
SSSSSSSSSSSSSSSSSSSSSi.................. wlan:   58k 1926 ibss:   11k  64k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSi wlan:   59k 2464 ibss:   22k  67k
SSSSSSSSSSSSSSUi........................ wlan:   41k  972 ibss:   10k  50k
SUi..................................... wlan:   44k 2132 ibss:  6310  47k
SUUi.................................... wlan:   52k 1642 ibss:   11k  58k
SSSSSSSSSSSSSSSSSSSSSSUi................ wlan:   54k 3826 ibss:   11k  60k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSUi wlan:   44k 1482 ibss:  6580  48k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSi.......... wlan:   32k 2396 ibss:  9732  38k
SSSSSSSSSSSSSSSSUUi..................... wlan:   18k 1164 ibss:  6888  20k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSUi... wlan:   37k  864 ibss:   13k  46k
SSSSSSSSSSSi............................ wlan:   57k 2112 ibss:  4166  60k
SSi..................................... wlan:   56k 1746 ibss:   11k  62k
SSSSSSSSSSSSSSSSSSSSi................... wlan:   43k  28k ibss:   39k  48k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSUU....... wlan:   15k  18k ibss:   25k  21k
SSSSSSSSSSSSSSSSUiiii................... wlan:   42k 255k ibss:  261k  52k
SUiiii.................................. wlan:   39k 393k ibss:  398k  54k
SSSSSSSSSSSSSSSSSSSSSSSSiii............. wlan:   26k 244k ibss:  251k  33k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSii........ wlan:   44k  86k ibss:   93k  54k
SSSSSSSSSSSSSSSSSSSSSSSSSSSUUii......... wlan:   27k  33k ibss:   41k  33k
SSSSSUiii............................... wlan:   54k  36k ibss:   40k  60k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSii wlan:   30k  46k ibss:   52k  35k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSi wlan:   23k  13k ibss:   20k  26k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSUii.... wlan:   53k  31k ibss:   40k  66k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSU......... wlan:   31k  18k ibss:   29k  35k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSi wlan:   13k 1262 ibss:  8370  16k
SSSSSSSSSSSSUi.......................... wlan:   46k  35k ibss:   54k  63k
SU...................................... wlan:   53k  87k ibss:   93k  59k
SSSSSSSSSSUUi........................... wlan:   43k  23k ibss:   32k  50k
SSSUUUiii............................... wlan:   46k 164k ibss:  172k  54k
SSSSSSSSSUiii........................... wlan:   48k 245k ibss:  250k  59k
SSSSSSSSSSSSSSS......................... wlan:   38k 5959 ibss:   10k  44k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSi wlan:   38k 1838 ibss:  9944  41k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSi wlan:   25k 1344 ibss:  2774  25k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS wlan:   43k 2442 ibss:   10k  44k
SSSSSSSSSSSSSSSSSSSSUUii................ wlan:   59k 1968 ibss:   11k  73k
Si...................................... wlan:   60k 2354 ibss:   10k  67k
SU...................................... wlan:   57k 1680 ibss:   11k  63k
Siii.................................... wlan:   51k 3560 ibss:  8042  54k
SSSSSSSSSSSi............................ wlan:   50k 1080 ibss:   14k  58k
SSSSSSSSSSSSSUU......................... wlan:   53k 2548 ibss:   13k  59k
SSSSSSSSSSSSi........................... wlan:   46k 2309 ibss:  9093  52k
SSSSSSSSSSSSSSSSSSSSi................... wlan:   83k 3816 ibss:   14k  91k
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSi........ wlan:   25k 3210 ibss:  5668  26k
SSSSSSSSSSSSSSSSSSSSSSSUii.............. wlan:   53k 2478 ibss:   11k  59k
SSSSSSSSSSSSSSSSSSSSSSSSSUi............. wlan:   15k 1308 ibss:  8142  20k
SSUUii.................................. wlan:   799  607 ibss:   11k 5339
SUi..................................... wlan:  1449 1436 ibss:   11k 9399
SSSSSSSSSSSSSSSSSSSSSSSSSSSSU........... wlan:   240 2738 ibss:   10k 3224
SSSSSSSSSU.............................. wlan:   132   66 ibss:   10k 4804
UUi..................................... wlan:   320  347 ibss:   11k 6020


-----> fq_codel 

S....................................... wlan:     0    0 ibss:  8664 3682
SSSSSSSSSU.............................. wlan:     0    0 ibss:  9022 6566
SS...................................... wlan:   703 6076 ibss:   14k 3565
S....................................... wlan:  2971 1862 ibss:  8554 7219
SUi..................................... wlan:     0    0 ibss:  7810 3732
SSUUi................................... wlan:     0    0 ibss:  8440 2920
SSii.................................... wlan:  1449 1436 ibss:   10k 7771
Ui...................................... wlan:     0    0 ibss:  8068 3258
Ui...................................... wlan:     0    0 ibss:  7910 3614
SSUi.................................... wlan:   252  185 ibss:   12k 5022
SUi..................................... wlan:  4742 1368 ibss:  9.8k  10k
SU...................................... wlan:     0    0 ibss:   11k 4646
Ui...................................... wlan:     0    0 ibss:   15k 5802
SS...................................... wlan:     0    0 ibss:  6918 3742
SU...................................... wlan:   122 2576 ibss:  4978  404
SSUii................................... wlan:     0    0 ibss:  8856 5890
SU...................................... wlan:  1449 1436 ibss:  6598 4791
SU...................................... wlan:    41   54 ibss:  4234 2101
UUii.................................... wlan:     0    0 ibss:   12k 5438
SUi..................................... wlan:   280  239 ibss:  7599 1644
U....................................... wlan:     0    0 ibss:  5962 3606
U....................................... wlan:     0    0 ibss:   10k 5502
SU...................................... wlan:     0    0 ibss:   14k 7486
Ui...................................... wlan:     0    0 ibss:   14k 5030
SU...................................... wlan:     0    0 ibss:  7930 4702
Ui...................................... wlan:   799  606 ibss:   10k 5400
SSSSSSSSSSSSSU.......................... wlan:  1449 1436 ibss:  9936 5653
S....................................... wlan:     0    0 ibss:  5818 2964
SU...................................... wlan:     0    0 ibss:   11k 7547
SU...................................... wlan:   252  185 ibss:  6264 3875
Ui...................................... wlan:  4159  995 ibss:  8313 8409
U....................................... wlan:     0    0 ibss:  3912 1240
SU...................................... wlan:     0    0 ibss:  4600 3784
S....................................... wlan:   122 2604 ibss:  9706 3374
SUUUi................................... wlan:     0    0 ibss:   13k 6328
U....................................... wlan:     0    0 ibss:   10k 6940
ii...................................... wlan:  1504 1589 ibss:  8605 4736
SUUi.................................... wlan:   108    0 ibss:   13k 8516
SUi..................................... wlan:  5241  28k ibss:   32k 9431
SSUUi................................... wlan:  9.7k  24k ibss:   33k  14k
SUi..................................... wlan:   743  456 ibss:   14k 7591
U....................................... wlan:     0    0 ibss:  2212 2732
SSSSSSSSSSU............................. wlan:     0    0 ibss:  9750 6434
........................................ wlan:  4585  492 ibss:  4616 6971
SUi..................................... wlan:   326 1155 ibss:   11k 4874
Si...................................... wlan:     0    0 ibss:  2330  214
Si...................................... wlan:  4336 3047 ibss:   18k  11k
SUi..................................... wlan:   100    0 ibss:  9838 5264
S....................................... wlan:     0    0 ibss:   14k 6298
SSSU.................................... wlan:   644  511 ibss:  6719 4294
SUii.................................... wlan:     0    0 ibss:   13k 6274
S....................................... wlan:     0    0 ibss:  6822 1738
U....................................... wlan:     0    0 ibss:  4790 1730
Ui...................................... wlan:   124  110 ibss:  5518 3544
SU...................................... wlan:   229   42 ibss:  8218 4972
Si...................................... wlan:  1000  607 ibss:  4750 2432
........................................ wlan:  1650 1436 ibss:  8372 5635
UUi..................................... wlan:   201    0 ibss:  9418 5422
Ui...................................... wlan:     0    0 ibss:   14k 7438
SSUi.................................... wlan:  3268 1862 ibss:   14k 9690
SUU..................................... wlan:     0  108 ibss:  9030 4918
SSi..................................... wlan:    80  108 ibss:  9442 5162
Ui...................................... wlan:    41   54 ibss:  9768 4757
Sii..................................... wlan:    58  104 ibss:  5570 3562
UU...................................... wlan:     0    0 ibss:  7098 4134
SU...................................... wlan:     0    0 ibss:  8142 2818
S....................................... wlan:  2941 2271 ibss:  7081 6303
SUi..................................... wlan:   315    0 ibss:  8524 3738
Ui...................................... wlan:  1309  757 ibss:   10k 7143
SUU..................................... wlan:  1450  428 ibss:  7150 5470
SUi..................................... wlan:  3187 8952 ibss:   16k 7107
U....................................... wlan:  4559 2197 ibss:  7959 8811
Ui...................................... wlan:  5564 2171 ibss:  8323 9118
i....................................... wlan:   11k  41k ibss:   50k  18k
root@weimarnetz-188:~ 8( cat /tmp/sysinfo/model 
TP-Link TL-WR841N/ND v11
root@weimarnetz-188:~ :) cat /etc/os-release 
NAME="weimarnetz"
VERSION="SNAPSHOT, Reboot"
ID="weimarnetz"
ID_LIKE="lede openwrt"
PRETTY_NAME="weimarnetz Reboot SNAPSHOT"
VERSION_ID="snapshot"
HOME_URL="http://lede-project.org/"
BUG_URL="http://bugs.lede-project.org/"
SUPPORT_URL="http://forum.lede-project.org/"
BUILD_ID="v0.10.0-dirty+lede-r3598-eb09d79c16"
LEDE_BOARD="ar71xx/generic"
LEDE_ARCH="mips_24kc"
LEDE_TAINTS="no-all busybox"
LEDE_DEVICE_MANUFACTURER="LEDE"
LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/"
LEDE_DEVICE_PRODUCT="weimarnetz"
LEDE_DEVICE_REVISION="v0"
LEDE_RELEASE="weimarnetz Reboot SNAPSHOT v0.10.0-dirty+lede-r3598-eb09d79c16"

(this is basically stock release just with a versioning patch and the symbols added:

CONFIG_KERNEL_KALLSYMS=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_BUSYBOX_CONFIG_MKSWAP=n
CONFIG_BUSYBOX_CONFIG_SWAPONOFF=n
CONFIG_BUSYBOX_CONFIG_MKPASSWD=y
CONFIG_BUSYBOX_CONFIG_ARPING=y
CONFIG_BUSYBOX_CONFIG_NMETER=y
CONFIG_PACKAGE_MAC80211_MESH=n
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256
CONFIG_STRIP_KERNEL_EXPORTS=y
27.02.2017564Base systemBug ReportVery LowLowWRT1900ACV1 Mamba No crashlog createdTrunkUnconfirmed Task Description

WRT1900ACV1 4.9.13
LEDE Reboot SNAPSHOT r3607+2-d49ddcd / LuCI Master (git-17.058.53452-829344d)
The +2 above is due to blogic’s blockd trial. (so far fine)
This has been showing up in system log since I have been on 4.9.

Mon Feb 27 10:00:03 2017 kern.warn kernel: [ 0.064607] Crashlog allocated RAM at address 0x3f00000
Mon Feb 27 10:00:03 2017 kern.err kernel: [ 1.276797] cpu cpu1: opp_list_debug_create_link: Failed to create link
Mon Feb 27 10:00:03 2017 kern.err kernel: [ 1.283441] cpu cpu1: _add_opp_dev: Failed to register opp debugfs (-12)

Crash/reboot is very rare. There is nothing showing in the external log all normal then reboot.

 


28.02.2017565Base systemBug ReportVery LowLowcrash in MT7603ETrunkWaiting on reporter Task Description

Supply the following if possible:
- Device problem occurs on
zbt wg3526
- Software versions of LEDE release, packages, etc.
17.01.0
- Steps to reproduce
just boot and try to use the 2.4ghz. you will see a crash like
– (wlan0-1) entered forwarding state
[ 26.300000] ————[ cut here ]———— [ 26.300000] WARNING: CPU: 0 PID: 22 at
/build/lede-17.01/slaves/phase1/ramips_mt7621/build/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7621/mt76-2017-01-31-3c8caafc/mt7603_mac.c:1207
0x8f20d31c [mt7603e@8f208000+0x68a0]()
[ 26.320000] Modules linked in: pppoe ppp_async iptable_nat pppox
ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT
ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark
xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG
xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat
nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache
nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt
ledtrig_usbport mt7603e mt76x2e mt76 mac80211 cfg80211 compat
ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle
ip6table_filter ip6_tables x_tables leds_gpio xhci_mtk xhci_plat_hcd
xhci_pci xhci_hcd ahci libahci libata sd_mod scsi_mod
gpio_button_hotplug usbcore nls_base usb_common
[ 26.390000] CPU: 0 PID: 22 Comm: kworker/u8:1 Not tainted 4.4.50 #0
[ 26.390000] Workqueue: phy1 0x8f20d11c [mt7603e@8f208000+0x68a0]
[ 26.390000] Stack : 8fce5080 80420000 803a293c 000004b7 00000000
00000000 00000000 00000000
[ 26.390000] 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
[ 26.390000] 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
[ 26.390000] 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
[ 26.390000] 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
[ 26.390000] ...
[ 26.390000] Call Trace:[<80016448>] 0×80016448 [ 26.390000] [<80016448>] 0×80016448 [ 26.390000] [<801b4160>] 0x801b4160
[ 26.390000] [<8002bf50>] 0x8002bf50
[ 26.390000] [<8f20d31c>] 0x8f20d31c [mt7603e@8f208000+0x68a0]
[ 26.390000] [<8002c008>] 0x8002c008
[ 26.390000] [<8f20d31c>] 0x8f20d31c [mt7603e@8f208000+0x68a0]
[ 26.390000] [<8000bea0>] 0x8000bea0
[ 26.390000] [<8003f100>] 0x8003f100
[ 26.390000] [<8003fffc>] 0x8003fffc
[ 26.390000] [<8003fd24>] 0x8003fd24
[ 26.390000] [<8003fd24>] 0x8003fd24
[ 26.390000] [<800447ac>] 0x800447ac
[ 26.390000] [<800446d4>] 0x800446d4
[ 26.390000] [<80005478>] 0×80005478 [ 26.390000]
[ 26.500000] —[ end trace 8c359128f05273c0 ]— — them some minutes later the wlan stops completely.

The problem also exists in the latest snapshots.

 


28.02.2017567KernelBug ReportVery LowLowmvebu: WRT1200AC wireless has latency fluctuations and,...AllUnconfirmed Task Description

Supply the following if possible:

- Device problem occurs on
Linksys WRT1200AC v1

- Software versions of LEDE release, packages, etc.

  • LEDE 17.01 final release (from downloads.lede-project.org)
  • LEDE 17.01 custom compiled/build
  • LEDE trunk (from downloads.lede-project.org)

- Steps to reproduce

> uci delete wireless.@wifi-device[0].disabled

   > uci set wireless.@wifi-iface[0].ssid=LEDE_5
   > uci delete wireless.@wifi-device[1].disabled
   > uci set wireless.@wifi-iface[1].ssid=LEDE_2
   > uci commit wireless
   > wifi up
 * Install FPing
   > opkg update
   > opkg install fping
  • Connect device using wireless LEDE_2
  • Get device ip from /tmp/dhcp.leases
  • Ping it

> root@LEDE:/# fping -p25 -b1472 -c100 -q 192.168.1.123

   > 192.168.1.123 : xmt/rcv/%loss = 100/100/0%, min/avg/max = 6.55/62.3/512
  • Connect device using wireless LEDE_5
  • Get device ip from /tmp/dhcp.leases
  • Ping it

> root@LEDE:/# fping -p25 -b1472 -c100 -q 192.168.1.123

   > 192.168.1.123 : xmt/rcv/%loss = 100/100/0%, min/avg/max = 2.64/39.5/157
01.03.2017578KernelBug ReportVery LowLowTX99 leads to kernel crash/reboot OM2P-HSv4lede-17.01Unconfirmed Task Description

I’ve tested lede-17.01 branch (ee1cd31d2b) with a vanilla config for OM2P-HSv4 and tx99 turned on for ath9k (please see .config attached).

After booting up, I’ve used the following commands to test TX99:

iw phy phy0 interface add mon0 type monitor flags active
ip link set dev mon0 up
iw dev mon0 set channel 6 HT20
iw dev mon0 set bitrates ht-mcs-2.4 4
echo 10 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx99_power
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/tx99

The last command hangs and causes the crash/reboot.

This is the crashlog found after reboot:

root@LEDE:~# cat /sys/kernel/debug/crashlog
Time: 1488374337.404187
Modules: ath9k@83040000+1725e ath9k_common@83110000+496e pppoe@83264000+1f30 ppp_async@8308e000+18d0 iptable_nat@831ed000+310 ath9k_hw@83200000+52a0c ath@831e8000+4573 pppox@830a2000+56a ppp_generic@830a8000+4fa2 nf_nat_ipv4@830fb000+eb1 nf_conntrack_ipv6@831e6000+1410 nf_conntrack_ipv4@83bba000+12b0 mac80211@83180000+65c42 ipt_REJECT@830a4000+3b0 ipt_MASQUERADE@83bbf000+2b0 cfg80211@830c0000+39118 xt_time@83bbc000+670 xt_tcpudp@83bb9000+6f0 xt_state@83ba9000+2d0 xt_nat@83bb0000+490 xt_multiport@83bb1000+4d0 xt_mark@83bae000+2b0 xt_mac@83ba5000+290 xt_limit@8300f000+410 xt_conntrack@83baa000+8d0 xt_comment@83ba3000+210 xt_TCPMSS@83ba1000+ab0 xt_REDIRECT@83ba2000+2b0 xt_LOG@83037000+310slhc@83026000+115b nf_reject_ipv4@83004000+863 nf_nat_redirect@83025000+3db nf_nat_masquerade_ipv4@83b8b000+59c nf_nat@83b8c000+237b nf_log_ipv4@83031000+c90 nf_defrag_ipv6@83b88000+2457 nf_defrag_ipv4@8303f000+396 nf_conntrack_rtcache@8303c000+9b0 nf_conntrack@83b90000+bb69 iptable_mangle@83001000+3b0 iptable_filter@83003000+2d0 ip_tables@83020000+24ed crc_ccitt@83b7a000+40b compat@83008000+2366 ip6t_REJECT@83b79000+3d0 nf_reject_ipv6@83002000+908 nf_log_ipv6@83b78000+d50 nf_log_common@83bc7000+92f ip6table_mangle@83bff000+470 ip6table_filter@83b76000+290 ip6_tables@83b7c000+2441 x_tables@83bc4000+2d67 gpio_button_hotplug@83b4a000+1870
<5>[ 0.000000] Linux version 4.4.50 (dotslash@prime) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3230-ee1cd31d2b) ) #0 Wed Mar 1 11:10:06 2017
<7>[ 0.000000] MyLoader: sysp=2267fd7d, boardp=11fbfffe, parts=eb64bfd6
<6>[ 0.000000] bootconsole [early0] enabled
<6>[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
<6>[ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
<6>[ 0.000000] Determined physical RAM map:
<6>[ 0.000000] memory: 04000000 @ 00000000 (usable)
<6>[ 0.000000] User-defined physical RAM map:
<6>[ 0.000000] memory: 04000000 @ 00000000 (usable)
<6>[ 0.000000] Initrd not found or empty - disabling initrd
<4>[ 0.000000] No valid device tree found, continuing without
<6>[ 0.000000] Zone ranges:
<6>[ 0.000000] Normal [mem 0×0000000000000000-0x0000000003ffffff]
<6>[ 0.000000] Movable zone start for each node
<6>[ 0.000000] Early memory node ranges
<6>[ 0.000000] node 0: [mem 0×0000000000000000-0x0000000003ffffff]
<6>[ 0.000000] Initmem setup node 0 [mem 0×0000000000000000-0x0000000003ffffff]
<7>[ 0.000000] On node 0 totalpages: 16384
<7>[ 0.000000] free_area_init_node: node 0, pgdat 8040a3d0, node_mem_map 81000000
<7>[ 0.000000] Normal zone: 128 pages used for memmap
<7>[ 0.000000] Normal zone: 0 pages reserved
<7>[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
<4>[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
<4>[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
<7>[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
<7>[ 0.000000] pcpu-alloc: [0] 0
<6>[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
<5>[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit board=OM2P-HSv4 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
<6>[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
<6>[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>[ 0.000000] Writing ErrCtl register=00000000
<6>[ 0.000000] Readback ErrCtl register=00000000
<6>[ 0.000000] Memory: 60164K/65536K available (2966K kernel code, 154K rwdata, 752K rodata, 280K init, 200K bss, 5372K reserved, 0K cma-reserved)
<6>[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>[ 0.000000] NR_IRQS:51
<6>[ 0.000000] Clocks: CPU:650.000MHz, DDR:597.973MHz, AHB:216.666MHz, Ref:25.000MHz
<6>[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
<6>[ 0.000008] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
<6>[ 0.008213] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
<6>[ 0.071088] pid_max: default: 32768 minimum: 301
<6>[ 0.076072] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[ 0.083050] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[ 0.092952] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
<6>[ 0.104094] NET: Registered protocol family 16
<6>[ 0.110164] MIPS: machine is OpenMesh OM2P HSv4
<7>[ 0.117216] ar71xx: using random MAC address for eth0
<6>[ 0.564076] clocksource: Switched to clocksource MIPS
<6>[ 0.570703] NET: Registered protocol family 2
<6>[ 0.576075] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
<6>[ 0.583433] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
<6>[ 0.590188] TCP: Hash tables configured (established 1024 bind 1024)
<6>[ 0.596996] UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>[ 0.603162] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>[ 0.610056] NET: Registered protocol family 1
<7>[ 0.614737] PCI: CLS 0 bytes, default 32
<6>[ 0.618615] futex hash table entries: 256 (order: -1, 3072 bytes)
<4>[ 0.625194] Crashlog allocated RAM at address 0x3f00000
<6>[ 0.643803] squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>[ 0.650011] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
<6>[ 0.662708] io scheduler noop registered
<6>[ 0.666897] io scheduler deadline registered (default)
<6>[ 0.672501] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
<6>[ 0.679635] console [ttyS0] disabled
<6>[ 0.703533] serial8250.0: ttyS0 at MMIO 0×18020000 (irq = 11, base_baud = 1562500) is a 16550A
<6>[ 0.712641] console [ttyS0] enabled
<6>[ 0.720195] bootconsole [early0] disabled
<6>[ 0.731604] m25p80 spi0.0: s25sl12800 (16384 Kbytes)
<5>[ 0.736838] 7 cmdlinepart partitions found on MTD device spi0.0
<5>[ 0.742950] Creating 7 MTD partitions on “spi0.0”:
<5>[ 0.747915] 0×000000000000-0×000000040000 : “u-boot” <5>[ 0.755177] 0×000000040000-0×000000080000 : “u-boot-env” <5>[ 0.762169] 0×000000080000-0x0000001c0000 : “custom” <5>[ 0.768893] 0x0000001c0000-0×000000340000 : “kernel” <5>[ 0.775585] 0×000000340000-0x0000008c0000 : “rootfs” <5>[ 0.782179] mtd: device 4 (rootfs) set to be root filesystem
<5>[ 0.788128] 1 squashfs-split partitions found on MTD device rootfs
<5>[ 0.794527] 0×000000540000-0x0000008c0000 : “rootfs_data” <5>[ 0.801625] 0x0000008c0000-0x000000fc0000 : “inactive” <5>[ 0.808490] 0x000000fc0000-0×000001000000 : “ART” <6>[ 0.836596] libphy: ag71xx_mdio: probed
<6>[ 1.427011] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
<6>[ 1.437134] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
<6>[ 2.026616] ag71xx-mdio.1: Found an AR934X built-in switch
<6>[ 2.069912] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
<6>[ 2.078419] NET: Registered protocol family 10
<6>[ 2.087230] NET: Registered protocol family 17
<6>[ 2.091894] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
<6>[ 2.105087] 8021q: 802.1Q VLAN Support v1.8
<6>[ 2.116723] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
<6>[ 2.125584] Freeing unused kernel memory: 280K (8042a000 - 80470000)
<14>[ 3.047559] init: Console is alive
<14>[ 3.051280] init: - watchdog -
<14>[ 3.876010] init: - preinit -
<6>[ 4.352827] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
<5>[ 4.377282] random: procd: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
<6>[ 6.617586] eth0: link up (100Mbps/Full duplex)
<6>[ 6.622302] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
<6>[ 7.165306] IPv6: eth0: IPv6 duplicate address fe80::ae86:74ff:fe82:9a50 detected!
<5>[ 7.678343] jffs2: notice: (339) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
<14>[ 7.695809] mount_root: switching to jffs2 overlay
<12>[ 7.712345] urandom-seed: Seeding with /etc/urandom.seed
<6>[ 7.880000] eth0: link down
<14>[ 7.892897] procd: - early -
<14>[ 7.896904] procd: - watchdog -
<14>[ 8.503616] procd: - ubus -
<5>[ 8.557970] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
<5>[ 8.568258] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
<5>[ 8.577628] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
<5>[ 8.587294] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
<5>[ 8.596640] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
<5>[ 8.606131] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
<5>[ 8.616005] random: ubusd: uninitialized urandom read (4 bytes read, 14 bits of entropy available)
<14>[ 8.625723] procd: - init -
<6>[ 8.901262] ip6_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 8.917457] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
<6>[ 8.925787] Backport generated by backports.git backports-20160324-13-g24da7d3c
<6>[ 8.936244] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[ 8.949344] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
<6>[ 8.986405] xt_time: kernel timezone is -0000
<6>[ 9.045279] PPP generic driver version 2.4.2
<6>[ 9.052017] NET: Registered protocol family 24
<7>[ 9.099822] ath: EEPROM regdomain: 0×0 <7>[ 9.099843] ath: EEPROM indicates default country code should be used
<7>[ 9.099852] ath: doing EEPROM country→regdmn map search
<7>[ 9.099872] ath: country maps to regdmn code: 0x3a
<7>[ 9.099882] ath: Country alpha2 being used: US
<7>[ 9.099890] ath: Regpair used: 0x3a
<7>[ 9.110315] ieee80211 phy0: Selected rate control algorithm ‘minstrel_ht’ <6>[ 9.114367] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
<5>[ 9.947094] random: jshn: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
<5>[ 10.026842] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
<6>[ 14.433917] device eth1 entered promiscuous mode
<6>[ 14.453005] br-lan: port 1(eth1) entered forwarding state
<6>[ 14.458672] br-lan: port 1(eth1) entered forwarding state
<6>[ 14.496362] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
<6>[ 15.374126] br-lan: port 1(eth1) entered disabled state
<6>[ 16.947811] eth0: link up (100Mbps/Full duplex)
<6>[ 16.952532] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
<6>[ 17.485700] IPv6: eth0: IPv6 duplicate address fe80::ae86:74ff:fe82:9a50 detected!
<5>[ 73.484013] random: nonblocking pool is initialized
<1>[ 86.838964] Data bus error, epc == 83041ef8, ra == 83041ef4
<4>[ 86.844733] Oops[#1]:
<4>[ 86.847081] CPU: 0 PID: 941 Comm: ash Not tainted 4.4.50 #0
<4>[ 86.852841] task: 83984a10 ti: 82c50000 task.ti: 82c50000
<4>[ 86.858408] $ 0 : 00000000 779c3302 deadbeef 83041ec0
<4>[ 86.863837] $ 4 : b8109864 00009864 0007f000 00000000
<4>[ 86.869266] $ 8 : 0000a35c ffffffff 00000000 00000000
<4>[ 86.874697] $12 : ffffffff 00800000 00000000 ffffffff
<4>[ 86.880127] $16 : 0007f000 ffffffff 00009864 83085460
<4>[ 86.885557] $20 : 82c51dfc 00000018 833d4000 83366b78
<4>[ 86.890985] $24 : 00000000 8007d234
<4>[ 86.896415] $28 : 82c50000 82c51d70 00000000 83041ef4
<4>[ 86.901846] Hi : 00000001
<4>[ 86.904820] Lo : 00000000
<4>[ 86.907828] epc : 83041ef8 ath_start_rfkill_poll+0x54c/0x6a8 [ath9k]
<4>[ 86.914573] ra : 83041ef4 ath_start_rfkill_poll+0×548/0x6a8 [ath9k]
<4>[ 86.921307] Status: 1000f403 KERNEL EXL IE
<4>[ 86.925655] Cause : 1080001c (ExcCode 07)
<4>[ 86.929793] PrId : 00019374 (MIPS 24Kc)
<4>[ 86.933840] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables gpio_button_hotplug
<4>[ 86.992849] Process ash (pid: 941, threadinfo=82c50000, task=83984a10, tls=779cdd48)
<4>[ 87.000835] Stack : 83085460 00000000 82c51dfc 00000018 833d4000 83b80010 00000003 83085460
<4>[ 87.000835] 00000000 83208268 83085460 83b80010 00000004 833d4000 83085460 833a4c00
<4>[ 87.000835] 83058010 8304c2e0 00000000 830474a0 83085460 00000001 833a4c00 83085460
<4>[ 87.000835] 833a4c00 83b80010 80400000 00000002 83084b40 8304f6f0 00000022 0000ffff
<4>[ 87.000835] 83984a00 00000002 00000001 83086034 00000000 00000000 00000000 310a3dd0
<4>[ 87.000835] ...
<4>[ 87.037824] Call Trace:
<4>[ 87.040363] [<83041ef8>] ath_start_rfkill_poll+0x54c/0x6a8 [ath9k]
<4>[ 87.046761] [<83041ef4>] ath_start_rfkill_poll+0×548/0x6a8 [ath9k]
<4>[ 87.053141]
<4>[ 87.054676]
<4>[ 87.054676] Code: 0c0722a3 00852021 00118827 <02221024> 8e6509bc 00508025 00b22821 0c0722a0 02002021
<4>[ 87.065050] —[ end trace 850be6c44f1050af ]—

Time: 1488374342.423893
<4>[ 86.890985] $24 : 00000000 8007d234
<4>[ 86.896415] $28 : 82c50000 82c51d70 00000000 83041ef4
<4>[ 86.901846] Hi : 00000001
<4>[ 86.904820] Lo : 00000000
<4>[ 86.907828] epc : 83041ef8 ath_start_rfkill_poll+0x54c/0x6a8 [ath9k]
<4>[ 86.914573] ra : 83041ef4 ath_start_rfkill_poll+0×548/0x6a8 [ath9k]
<4>[ 86.921307] Status: 1000f403 KERNEL EXL IE
<4>[ 86.925655] Cause : 1080001c (ExcCode 07)
<4>[ 86.929793] PrId : 00019374 (MIPS 24Kc)
<4>[ 86.933840] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables gpio_button_hotplug
<4>[ 86.992849] Process ash (pid: 941, threadinfo=82c50000, task=83984a10, tls=779cdd48)
<4>[ 87.000835] Stack : 83085460 00000000 82c51dfc 00000018 833d4000 83b80010 00000003 83085460
<4>[ 87.000835] 00000000 83208268 83085460 83b80010 00000004 833d4000 83085460 833a4c00
<4>[ 87.000835] 83058010 8304c2e0 00000000 830474a0 83085460 00000001 833a4c00 83085460
<4>[ 87.000835] 833a4c00 83b80010 80400000 00000002 83084b40 8304f6f0 00000022 0000ffff
<4>[ 87.000835] 83984a00 00000002 00000001 83086034 00000000 00000000 00000000 310a3dd0
<4>[ 87.000835] ...
<4>[ 87.037824] Call Trace:
<4>[ 87.040363] [<83041ef8>] ath_start_rfkill_poll+0x54c/0x6a8 [ath9k]
<4>[ 87.046761] [<83041ef4>] ath_start_rfkill_poll+0×548/0x6a8 [ath9k]
<4>[ 87.053141]
<4>[ 87.054676]
<4>[ 87.054676] Code: 0c0722a3 00852021 00118827 <02221024> 8e6509bc 00508025 00b22821 0c0722a0 02002021
<4>[ 87.065050] —[ end trace 850be6c44f1050af ]— <0>[ 87.071512] Fatal exception: panic in 5 seconds
<0>[ 92.083905] Kernel panic - not syncing: Fatal exception

01.03.2017580Base systemBug ReportVery LowLowNetgear R7800 does not receive multicast messages on LA...TrunkUnconfirmed Task Description

Netgear R7800 running lede-17.01.

Multicast packets are not received on LAN (wired) interfaces but work fine on WiFi interfaces. I think the problem is at device/driver level.

The problem was first noticed using Avahi, which did not see announcements on LAN interfaces. However it can be easily reproduced with a simple IP Multicast sender/receiver like https://github.com/GrahamCobb/Multicast-Client-Server-Example

To reproduce:

Run the “client” on the R7800 using:

client 232.0.1.1 4545 100

Run the “server” on another system using:

server 232.0.1.1 4545 100 1000

If the server is connected to the client using a WiFi interface, the messages are received. If it using a LAN, they are not.

The messages are received if the LAN interface is set in promiscuous mode (ifconfig ... promisc) or all multicast mode (ifconfig ... allmulti). They stop again immediately if the mode is turned off.

I believe this is the same problem as reported in https://forum.lede-project.org/t/ipv6-works-only-with-wan-in-promiscuous-mode/490/9 – in that thread it is mentioned that the AC2600 (which uses the same driver) has the same problem.

As the problem goes away in promiscuous or all multicast modes, I am guessing that the device is just not sending the multicast packets to the driver. This could be a hardware bug, a bug in the multicast filter setup code in dwmac1000_core.c or the devicetree incorrectly reporting device characteristics such as the number of multicast filter bins.

03.03.2017587Base systemBug ReportMediumLowno wwan with qmi based modem quectel ec20AllNew Task Description

uqmi hangs on certain commands resulting in a half-connected wwan connection.

device: apu1d
modem: quectel ec20 / qualcom based
affected versions: lede 17.01, trunk

good uqmi version: 2016-08-23-eb1dec7d0dc283a7f61aa574a443a0ab61f8793f
bad uqmi version: 2016-12-19-8ceeab69-1

 1553 root      3288 S    {qmi.sh} /bin/sh ./qmi.sh qmi setup lte {"ifname":"wwan0","proto":"qmi","apn":"internet","
 1620 root      9024 S    uqmi -s -d /dev/cdc-wdm0 --wda-set-data-format 802.3
 1817 root      3072 S    grep qmi
config interface 'lte'
	option ifname 'wwan0'
	option proto 'qmi'
	option apn 'internet'
	option device '/dev/cdc-wdm0'
	option dhcp '1'
03.03.2017588Base systemBug ReportMediumLowopenvpn-mbedtls crash on mpc85xx with signal 4 (SIGILL)lede-17.01Waiting on reporter Task Description

device: tp-link wdr4900
affected version: lede 17.01 / openvpn-mbedtls - 2.4.0-3

openvpn config:

dev tun-monitoring
remote somehost 1194

ca /etc/openvpn/monitoring-vpn/ca.crt
cert /etc/openvpn/monitoring-vpn/xyz.crt
key /etc/openvpn/monitoring-vpn/xyz.key
tls-auth /etc/openvpn/monitoring-vpn/ta.key 1
remote-cert-tls server

keepalive 10 120
cipher AES-256-CBC
comp-lzo yes

persist-key
persist-tun


03.03.2017590Base systemBug ReportVery LowLowImageBuilder ar71xx BIN_DIR issuelede-17.01Unconfirmed Task Description

Software versions of LEDE release: lede 17 branch

Steps to reproduce:

- compile ar71xx with image builder support from lede 17 branch
- use the imagebuilder like: make image BIN_DIR=/var/www/downoads

we started testing lede-17.01 for OpenWISP.org and we noticed a
strange issue with the image-generator.

We supply a command like:

make image PROFILE=”Default” BIN_DIR=”$BIN_DIR”

but the image building fails because something goes to look for binaries
in ./bin/targets/ar71xx/generic instead of
“$BIN_DIR/targets/ar71xx/generic”.

If we create manually the dir with:

mkdir ./bin/targets/ar71xx/generic

The image building procedure completes successfully.

Is this desired behaviour or not?

We had to insert a workaround in our automated LEDE compilation process.

03.03.2017591OtherFeature RequestVery LowLowInclude branch info in subject from 'lede-commits'AllUnconfirmed Task Description

Please include the branch being committed to as part of the subject. As it currently stands emails are received:

[source] ubox: update to the latest version
[source] bcm53xx: include Broadcom PHY driver in the kernel

However there’s no clue in the subject that the ubox commit is for ‘master’ (and of interest to me) whilst the ‘bcm53xx’ is a commit to ‘17.01’ (and of much less interest to me)

It’s driving me (even more) insane :-)

04.03.2017592PackagesBug ReportVery LowLow6in4 not creating routes when multiples prefixes usedAllUnconfirmed Task Description

If you need to route several (non aggregatable) prefixes thru a 6in4 tunnel, I’ve not found documentation, but it seems that this will make it:

option ip6prefix ‘prefix::/64 prefix::/48’

(example for 2 prefixes)

Then doing ifstatus interface-ipv6, you can see that both prefixes have been considered under ipv6-prefix.

However, under route, only the first one has a default route for that “source-prefix”.

Creating a manual route, it works, so the bug is not creating automatically that route.

05.03.2017598Base systemBug ReportMediumLow842nd doesnt flash successful with factory image using ...lede-17.01New Task Description

Device: 842nd v3.1
LEDE: 17.01

Go into recovery tftp mode by pressing first the WPS/Reset button and now connect the power.
The device enters tftp recovery to download via tftp from 192.168.0.66 file (wr842nv3_tp_recovery.bin)

The device *seems* to accept the flash (sorry, no serial to confirm).
On boot, the device doesn’t show leds nor it accepts any packets on ipv6 on any port (ping ff02::1) or ping to 192.168.1.1.

I guess this happens, because the oem flasher doesn’t flash all blocks of the factory image.

To recover from this state:
- flash via tftp recovery
- enter LEDE rescue/recovery
- ssh root@192.168.1.1
- use sysupgrade image

Task:
- confirm this happens also with trunk
- use serial to get more debug

06.03.2017600Base systemBug ReportVery LowLowRandom disconnection on 17.01TrunkUnconfirmed Task Description

Problem:

I upgrade my router from some years old dd-wrt to LEDE. “It works” and both the throughput and latency are vastly superior. However, it disconnect every couple hours for 2 minutes. Both my phone and my thinkpad are affected, so it is not a suddent regression in the client side. The old firmware showed no such interruption and could run a single connection TCP for months. At first, all packets stop being received and all sent timeout. After a while NetworkManager drop the (dead) Wifi conenction. Restarting networkmanager doesn’t restore the connection, only time does. The encryption and channel are the same as before.

Info:

Hostname	LEDE
Model	D-Link DIR-615 rev. I1
Firmware Version	LEDE Reboot 17.01.0 r3205-59508e3 / LuCI lede-17.01 branch (git-17.051.53299-a100738)
Kernel Version	4.4.50

SSHed into the rounter show nothing interesting in dmesg or the logs.

dmesg (client side)

[1750975.095083] wlp3s0: authenticate with c8:d3:a3:57:c1:0d
[1750975.097291] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 1/3)
[1750975.182387] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 2/3)
[1750975.340969] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 3/3)
[1750975.433683] wlp3s0: authentication with c8:d3:a3:57:c1:0d timed out
[1750986.745947] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1750986.783926] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1750986.784247] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1750986.973972] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1750986.974238] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1750986.988274] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1751024.037294] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1751024.037564] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1751024.232261] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1751024.232531] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1751024.246198] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1751035.933932] wlp3s0: authenticate with c8:d3:a3:57:c1:0d
[1751035.936358] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 1/3)
[1751035.941892] wlp3s0: authenticated
[1751035.942083] wlp3s0: associate with c8:d3:a3:57:c1:0d (try 1/3)
[1751035.946355] wlp3s0: RX AssocResp from c8:d3:a3:57:c1:0d (capab=0x431 status=0 aid=1)
[1751035.947757] wlp3s0: associated
[1751035.947784] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[1753524.568775] iwlwifi 0000:03:00.0: invalid BA notification: Q 16, tid 0, flow 65535
[1754028.350307] wlp3s0: deauthenticating from c8:d3:a3:57:c1:0d by local choice (Reason: 3=DEAUTH_LEAVING)
[1754029.418400] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[1754029.423879] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754029.435347] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754029.435766] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754029.643875] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754029.644146] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754029.658379] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754029.708225] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754033.134519] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754033.134793] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754033.338532] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754033.338803] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754033.352845] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754058.434794] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754058.447119] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754058.447392] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754058.645058] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754058.645328] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754058.659098] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754062.836641] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754062.836915] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754063.041653] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754063.041914] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754063.055581] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754063.070786] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754066.513509] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754066.513776] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754066.712341] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754066.712663] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754066.727003] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754082.615329] wlp3s0: authenticate with c8:d3:a3:57:c1:0d
[1754082.617891] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 1/3)
[1754082.711318] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 2/3)
[1754082.800197] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 3/3)
[1754082.890379] wlp3s0: authentication with c8:d3:a3:57:c1:0d timed out
[1754092.431334] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754092.442752] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754092.443037] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754092.642763] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754092.643027] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754092.657436] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754096.103393] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754096.103667] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754096.305383] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754096.305650] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled
[1754096.320213] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[1754099.851495] wlp3s0: authenticate with c8:d3:a3:57:c1:0d
[1754099.853971] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 1/3)
[1754100.000973] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 2/3)
[1754100.100010] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 3/3)
[1754100.234954] wlp3s0: authentication with c8:d3:a3:57:c1:0d timed out
[1754104.050494] wlp3s0: authenticate with c8:d3:a3:57:c1:0d
[1754104.052754] wlp3s0: send auth to c8:d3:a3:57:c1:0d (try 1/3)
[1754104.126844] wlp3s0: authenticated
[1754104.127569] wlp3s0: associate with c8:d3:a3:57:c1:0d (try 1/3)
[1754104.135916] wlp3s0: RX AssocResp from c8:d3:a3:57:c1:0d (capab=0x431 status=0 aid=1)
[1754104.138461] wlp3s0: associated
[1754104.138810] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready

What should I do to further debug this? I can build new images if necessary.

07.03.2017605Base systemBug ReportVery LowLowLuCI wireless associated stations doesn't show noise db...TrunkUnconfirmed Task Description

With an Archer C7 v2 the list shows up the noise level in the associated stations doesn’t show up, instead it shows 0dBm and the bar icon shows empty bars. The noise level is display correctly inside the wifi configuration under the device options.

This only happens at least with the channel 112, I have tried all the channels below from 36-104 (44 and 108 jumps to 48 and 112 respectively because other nearly stations).

Can’t try the 4 channels above because radars and the next 4 above because in my country doesn’t exist channel 144.

I will try to test with less width than 80 MHz.

I set it to low because it seems that it only affect to the associated stations tables visualization and the wifi network works as it should.

08.03.2017607KernelBug ReportMediumLowKernel BUG: Bad page state in process ntpd-hotplugTrunkNew Task Description

While doing wireless benchmarks between two TP-Link WR841 running the latest LEDE, one of them (the AP) showed the stack trace below. It does not seem to impact the behaviour of the system, though: everything seems to work correctly after the stack trace.

The device is TL-WR841N v8, with a snapshot build r3670-154b3a6 (kernel is 4.4.52).

It occurred about one minute after I plugged the WAN port to the Internet, which explains why ntpd-hotplug appears in the log. There was still a heavy amount of wireless traffic (both when I plugged the WAN, and when the stack trace occurred).

Wed Mar  8 22:02:31 2017 kern.alert kernel: [ 1913.427453] BUG: Bad page state in process ntpd-hotplug  pfn:015fa
Wed Mar  8 22:02:31 2017 kern.emerg kernel: [ 1913.433936] page:8102bf40 count:-2130657536 mapcount:16711936 mapping:  (null) index:0xff00ff00
Wed Mar  8 22:02:31 2017 kern.emerg kernel: [ 1913.442939] flags: 0x0()
Wed Mar  8 22:02:31 2017 kern.alert kernel: [ 1913.445561] page dumped because: nonzero _count
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.450237] Modules linked in: ath9k ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_coWed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.509878] CPU: 0 PID: 1501 Comm: ntpd-hotplug Not tainted 4.4.52 #0
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.516549] Stack : 803e49f0 00000000 00000001 80440000 818f16a4 8042ee63 803c5ff4 000005dd
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.516549] 	  804a378c 803d0000 803d0000 803d0000 803d0000 800a7640 803cb6e4 80430000
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.516549] 	  00000003 803d0000 803c9af0 81809d74 803d0000 800a55bc 803d0000 803d0000
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.516549] 	  803d0000 801f5800 00000000 00000000 00000000 00000000 00000000 00000000
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.516549] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.516549] 	  ...
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.553574] Call Trace:
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.556121] [<80071eb0>] show_stack+0x50/0x84
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.560630] [<800d57e4>] bad_page+0xec/0x11c
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.565069] [<800d59b0>] free_pages_prepare+0x19c/0x1f8
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.570474] [<800d6c74>] __free_pages_ok+0x2c/0x31c
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.575554] [<80261278>] __kfree_skb+0x28/0xb0
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.580155] [<8023871c>] ag71xx_tx_packets+0x154/0x2c8
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.585486] [<80239530>] ag71xx_poll+0x6c/0x5c0
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.590203] [<8026f748>] net_rx_action+0x10c/0x2c8
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.595183] [<800841c8>] __do_softirq+0x250/0x298
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.600066] [<8006a9e0>] plat_irq_dispatch+0xd4/0x10c
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.605297] 
Wed Mar  8 22:02:31 2017 kern.warn kernel: [ 1913.606843] Disabling lock debugging due to kernel taint
09.03.2017609Base systemFeature RequestMediumLowprocd: implement runlevel 1TrunkNew Task Description

Sysupgrade currently kills processes with SIGKILL if they don’t shut down within 3 seconds after the SIGTERM signal. Some processes (e.g. domoticz) can take longer than 3 seconds to properly shut down. As this can potentially corrupt the sqlite database, it should be avoided.

While talking about this on IRC, it was suggested we should implement an “init 1” equivalent in procd. Adding this ticket as a reminder.

13.03.2017623Base systemBug ReportVery LowLowar71xx: RB750UPr2: No serial consoleTrunkUnconfirmed Task Description

Hello,
The serial console isn’t working on MikroTik RB750UPr2 (NOR flash) (normal boot). Netboot is fine though. Notice no-uart in the kernel command line args.
Tested with recent snapshots (r3607-d49ddcd, r3617-f9da623)

Netboot

[    0.000000] Linux version 4.4.52 (buildbot@builds) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3607-d49ddcd) ) #0 Wed Mar 8 18:06:04 2017
[    0.000000] bootconsole [early0] enabled
...
[    0.000000] Kernel command line: no-uart no-nand parts=1 boot_part_size=16777216 gpio=8525375 HZ=325000000 mem=64M kmac=E4:8D:8C:99:18:31 board=750-hb hw_opt=0008400D boot=0 mlc=8 console=ttyS0,115200 rootfstype=squashfs noinitrd
...
[    0.125208] MIPS: machine is MikroTik RouterBOARD 750UP r2
...
[    2.957103] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.967151] console [ttyS0] disabled
[    2.991360] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    3.001161] console [ttyS0] enabled
[    3.001161] console [ttyS0] enabled
[    3.008713] bootconsole [early0] disabled
[    3.008713] bootconsole [early0] disabled
[    3.023066] m25p80 spi0.0: found w25q128, expected m25p80
[    3.028744] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    3.033619] Creating 6 MTD partitions on "spi0.0":
[    3.038569] 0x000000000000-0x00000000e000 : "routerboot"
[    3.046718] 0x00000000e000-0x00000000f000 : "hard_config"
[    3.054081] 0x00000000f000-0x000000010000 : "bios"
[    3.060744] 0x000000010000-0x00000001f000 : "routerboot2"
[    3.068174] 0x00000001f000-0x000000020000 : "soft_config"
[    3.075587] 0x000000020000-0x000001000000 : "firmware"

Normal boot

[    0.000000] Linux version 4.4.52 (buildbot@buildslave) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3617-f9da623) ) #0 Fri Mar 10 00:23:50 2017
[    0.000000] bootconsole [early0] enabled
...
[    0.000000] Kernel command line: no-uart no-nand parts=1 boot_part_size=16777216 gpio=0 HZ=325000000 mem=64M kmac=E4:8D:8C:99:18:31 board=750-hb Board=750-hb ver=3.36 hw_opt=0008400D boot=1 mlc=10 console=ttyS0,115200 rootfstype=squashfs noinitrd
...
[    0.125275] MIPS: machine is MikroTik RouterBOARD 750UP r2
...
[    0.696259] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.706324] console [ttyS0] disabled
[    0.730536] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.740339] console [ttyS0] enabled
[    0.747890] bootconsole [early0] disabled
[    0.762167] m25p80 spi0.0: found w25q128, expected m25p80
[    0.767840] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.772706] Creating 6 MTD partitions on "spi0.0":
[    0.777667] 0x000000000000-0x00000000e000 : "routerboot"
[    0.785835] 0x00000000e000-0x00000000f000 : "hard_config"
[    0.793114] 0x00000000f000-0x000000010000 : "bios"
[    0.799850] 0x000000010000-0x00000001f000 : "routerboot2"
[    0.807243] 0x00000001f000-0x000000020000 : "soft_config"
[    0.814630] 0x000000020000-0x000001000000 : "firmware"
[    0.865054] 2 minor-fw partitions found on MTD device firmware
[    0.871104] 0x000000020000-0x0000001a0000 : "kernel"
[    0.877734] 0x0000001a0000-0x000001000000 : "rootfs"
[    0.884687] mtd: device 7 (rootfs) set to be root filesystem
[    0.890584] 1 squashfs-split partitions found on MTD device rootfs
[    0.897035] 0x000000390000-0x000001000000 : "rootfs_data"

BTW the serial console is working fine on RB750UP (NAND flash) (normal boot).

[    0.000000] Kernel command line: parts=1 boot_part_size=4194304 gpio=790343 HZ=200000000 mem=32M kmac=D4:CA:6D:91:86:F1 board=750i Board=750i ver=3.33 hw_opt=0000000D boot=1 mlc=10 console=ttyS0,115200 rootfstype=squashfs noinitrd
13.03.2017624PackagesBug ReportVery LowLowWrong default WAN interface on SQM & BCP38 packageslede-17.01Unconfirmed Task Description

Supply the following if possible:
- Device problem occurs on: Archer C7v2
- Software versions of LEDE release, packages, etc.: 17.01 final
- Steps to reproduce: just install default packages

By default, SQM and BCP38 packages configure rules on eth1, but on C7 this is LAN interface and not WAN. Both must be changed to apply default configuration to eth0.
This behaviour cames from OpenWRT.

 


14.03.2017627Base systemBug ReportVery LowLowrt2x00: mt7620 channel regressionTrunkUnconfirmed Task Description

Latest trunk has some changes regarding mt7620 support:

It seems there has been slight improvement in TX throughput which of course resulted in slight RX throughput regression. Signal strength also looks more stable.

On a negative side, seems like setting channels 1-4 will not get interface up and running, regardless of wireless mode used. Logs don’t show any relevant information.

-Xiaomi Miwifi Mini
-LEDE Reboot SNAPSHOT r3742-894ee95


14.03.2017628Base systemBug ReportVery LowLowrt2x00: Frame received with unrecognized signalTrunkUnconfirmed Task Description

Running some traffic over 2.4GHz wifi will eventually log this kind of messages to syslog:

ieee80211 phy1: rt2x00lib_rxdone_read_signal: Warning - Frame received with unrecognized signal, mode=0x0001, signal=0x010c, type=4

-Xiaomi Miwifi Mini
-LEDE Reboot SNAPSHOT r3742-894ee95


14.03.2017629Base systemBug ReportVery LowLowRealtek r8169 kernel errorlede-17.01Unconfirmed Task Description

My device is a homebuild router:
- MB: Gigabyte GA-970A-UD3P
- CPU: Unlocked AMD x3 405e
- Ram: 4 GB A-Data
- MB NIC: Realtek
- NIC: Intel PRO/1000

Installed the official Lede 17.01.0 x86/x64 ext4 build
Haven’t installed any other packages

I have configured the network as follows:
attached network file
where eth4 is the Realtek NIC

The result is in error.txt

14.03.2017631Base systemBug ReportVery LowLowAR8327 switch link state change check not working on TL...TrunkUnconfirmed Task Description

Hello,

On my TP-LINK TL-WR1043ND v3 (ar71xx QCA9558) with today’s LEDE snapshot, the AR8327 switch isn’t sending port change interrupt events to the CPU.

The `ar8xxx_check_link_states` function in `target/linux/generic/files/drivers/net/phy/ar8216.c` is not being called at all, since not only the messages about port link status change aren’t printed to the dmesg, but the ARL table isn’t getting cleaned either. I don’t understand why this is happening...

This regression is not present in other routers with the same AR8327 switch chip (but rev. 2 instead of rev. 4), such as TP-LINK TL-WDR4300 v1 (ar71xx) and TP-LINK TL-WDR4900 v1 (mpc85xx).

(Latest LEDE stable release also does exibit the regression.)

Below you can see a session with LEDE; and a session with OpenWrt CC 15.05.1 release, which does not exibit the problem.

(The CC image is for the TL-WR1043ND v2, since v3 images weren’t built yet at that time; v2 and v3 are the same hardware, as it can be seen from the FCC docs, where TP-LINK requested an ID change from v2 to v3.)

Please let me know if there’s anything I can try to help debug this problem!

```
BusyBox v1.26.2 () built-in shell (ash)

   _________
  /        /\      _    ___ ___  ___
 /  LE    /  \    | |  | __|   \| __|
/    DE  /    \   | |__| _|| |) | _|

// LE \ ||_|_/|_| lede-project.org
\ \ DE /
\ LE \ / ———————————————————– \ DE \ / Reboot (SNAPSHOT, r1-2f09a1e)
\
\/ ———————————————————– === WARNING! =====================================
There is no root password defined on this device!
Use the “passwd” command to set up a new password
in order to prevent unauthorized SSH logins.
————————————————– root@LEDE:~# dmesg | grep 8327
[ 0.815273] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
root@LEDE:~# dmesg | grep 8216
[ 2.046658] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
root@LEDE:~# swconfig dev switch0 get arl_table
address resolution table
Port 0: MAC <router_lan_macaddr>
Port 4: MAC <my_laptop_macaddr>
Port 4: MAC <other_macaddr>
Port 6: MAC <router_wan_macaddr> root@LEDE:~# dmesg | grep 8216
[ 2.046658] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
root@LEDE:~# swconfig dev switch0 get arl_table
address resolution table
Port 0: MAC <router_lan_macaddr>
Port 3: MAC <my_laptop_macaddr>
Port 4: MAC <other_macaddr>
Port 6: MAC <router_wan_macaddr> root@LEDE:~#
``` ```
BusyBox v1.23.2 (2016-01-02 18:01:44 CET) built-in shell (ash)
_ | |.—–.—–.—–.| | | |.—-.| |_
| - || _ | -
| || | | || _|| _|
|_|| |_||||||| ||
|
| W I R E L E S S F R E E D O M


CHAOS CALMER (15.05.1, r48532)


  • 1 1/2 oz Gin Shake with a glassful
  • 1/4 oz Triple Sec of broken ice and pour
  • 3/4 oz Lime Juice unstrained into a goblet.
  • 1 1/2 oz Orange Juice
  • 1 tsp. Grenadine Syrup

—————————————————– root@OpenWrt:/# dmesg | grep 8327
[ 0.750000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
root@OpenWrt:/# dmesg | grep 8216
[ 1.440000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 24.680000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 4 is up

root@OpenWrt:/# swconfig dev switch0 get arl_table
address resolution table
Port 0: MAC <router_lan_macaddr>
Port 4: MAC <my_laptop_macaddr>
Port 4: MAC <other_macaddr>
Port 6: MAC <router_wan_macaddr>

root@OpenWrt:/# dmesg | grep 8216
[ 1.440000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 24.680000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 4 is up
[ 1306.510000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 4 is down
[ 1310.530000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is up
root@OpenWrt:/# swconfig dev switch0 get arl_table
address resolution table
Port 0: MAC <router_lan_macaddr>
Port 3: MAC <my_laptop_macaddr>
Port 6: MAC <router_wan_macaddr>

root@OpenWrt:/# uname -a
Linux OpenWrt 3.18.23 #1 Sun Jan 31 18:39:35 CET 2016 mips GNU/Linux
root@OpenWrt:/#
```

Cheers,
Vittorio

15.03.2017632Base systemBug ReportVery LowLowMP_CONFIG_INT settings not applied to meshpoint interfa...TrunkUnconfirmed Task Description

Supply the following if possible:
- Tested with OM5P-AC (on ath10k)
- Using LEDE reboot-3637-gc8f7031ba7 with wpad-mesh

The 5GHz device was configured using following entry in /etc/config/wireless

config wifi-iface 'mesh2'         
        option device 'radio1'  
        option ifname 'mesh-5'  
        option network 'lan'    
        option mode 'mesh'      
        option mesh_id 'mymesh' 
        option disabled '0'
        option mcast_rate '54000'
        option macaddr 'ae:86:74:00:00:01'
        option mesh_ttl 1
        option mesh_fwding 0
        option ieee80211w 1
        option encryption 'psk2+aes'
        option key 'reallysecretkey'

It is expected that mesh_ttl is 1 and mesh_fwding is 0. But the reality is quite different:

<pre>
root@lede:/# iw dev mesh-5 get mesh_param mesh_fwding
1
root@lede:/# iw dev mesh-5 get mesh_param mesh_ttl
31
</pre>

19.03.2017641KernelBug ReportVery LowLowQuectel ECXX and Raw IP on 4.4 kernelTrunkUnconfirmed Task Description

Hi,

have a ZBT-WE826 with a 3/4g modem inside, shipped by ZBT.
modem is a Quectel EC25-E.

lsusb: Bus 001 Device 004: ID 2c7c:0125

if i tell qmi_wwan to register the device using: echo “2c7c 0125” >/sys/bus/usb/drivers/qmi_wwan/new_id
device is detected and shows up in dmesg: qmi_wwan 1-1.2:1.4 wwan0: register ‘qmi_wwan’ at usb-101c0000.ehci-1.2, WWAN/QMI device, XXXXXXXXXXXXX, and /dev/cdc-wdm0 is created

when i try to talk to the device using uqmi, i don’t get any response!
uqmi -d /dev/cdc-wdm0 –get-imei (command hangs)

it has to do with the DTR, found a patch for the device on this forum:
https://forum.turris.cz/t/lte-modem-typu-ec25-e-minipcie/2816/24

is it possible to patch the trunk, so this device get supported?

also, if i use option usb serial driver i can connect using pppd
same here, i have to tell option1 driver to detect the deivce.
echo “2c7c 0125” >/sys/bus/usb-serial/drivers/option1/new_id

tested on current trunk and 17.01.0

19.03.2017643PackagesBug ReportVery LowLowiwinfo scan reports "Scanning not possible" using mt76 ...lede-17.01Unconfirmed Task Description

I’m unable to consistently scan for access points using iwinfo.
I’m running a MT7688 chip with the mt76 mac80211 driver on LED 17.01

The scan works very intermittently, but mostly returns “Scanning not possible”.

My wireless config looks like:

config wifi-device 'radio0'
	option type 'mac80211'
	option channel '11'
	option hwmode '11g'
	option path 'platform/10300000.wmac'
	option htmode 'HT20'
	option disabled '0'

I’ve added some debugging code to iwinfo_nl80211.c to try and see where it’s failing. To run a scan I use the command:

iwinfo radio0 scan

iwinfo creates a temporary interface (tmp.radio0) and then calls nl80211_get_scanlist_nl, this returns a zero length iwinfo_scanlist_entry which causes “Scanning not possible” to be returned.
I’m happy to do some more debugging if I can be pointed in the right direction.

 


20.03.2017646Base systemBug ReportVery LowLowMMC/SD - mount/read/write not possible -> kernel errorsTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
- Software versions of LEDE release: Powered by LuCI Master (git-17.078.53745-180f2d6) / LEDE Reboot SNAPSHOT r3792-0685f2a

reproduce:

MMC card found on boot:
root@router:~# logread|grep -i mmc
Mon Mar 20 12:54:57 2017 kern.info kernel: [ 6.680000] mmc0: new high speed SDHC card at address 0001
Mon Mar 20 12:54:57 2017 kern.info kernel: [ 6.690000] mmcblk0: mmc0:0001 00000 29.8 GiB

but if i try to mount/read/write to it ... still not possible and kernel errors ....

root@router:~# fdisk -l

Disk /dev/mmcblk0: 29.8 GiB, 32010928128 bytes, 62521344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

root@router:~# fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.28).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xf924301d.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-62521343, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-62521343, default 62521343):

Created a new partition 1 of type 'Linux' and of size 29.8 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

##################
logcat ....
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.680000] msdc-1 -> cmd<13> resp<0xe00> <- msdc_check                                                                                                       _busy() : L<2065> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.690000] msdc-1 -> cmd<13> resp<0x900> <- msdc_check                                                                                                       _busy() : L<2065> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.700000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<0> DATWRDL                                                                                                       Y<-1> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.710000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<1> DATWRDL                                                                                                       Y<27> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.730000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<0> DATWRDL                                                                                                       Y<27> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.740000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<1> DATWRDL                                                                                                       Y<28> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.750000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<0> DATWRDL                                                                                                       Y<28> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.770000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<1> DATWRDL                                                                                                       Y<29> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.780000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<0> DATWRDL                                                                                                       Y<29> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.790000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<1> DATWRDL                                                                                                       Y<30> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.810000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<0> DATWRDL                                                                                                       Y<30> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.820000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<1> DATWRDL                                                                                                       Y<31> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.830000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<0> DATWRDL                                                                                                       Y<31> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.840000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<1> DATWRDL                                                                                                       Y<0> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.860000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<0> DATWRDL                                                                                                       Y<0> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.870000] msdc-1 -> TUNE_BWRITE<FAIL> DSPL<1> DATWRDL                                                                                                       Y<1> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  393.880000] msdc-1 -> TUNE_BWRITE<PASS> DSPL<0> DATWRDL                                                                                                       Y<1> MSDC_DAT_RDDLY0<0x1e101010> <- msdc_tune_bwrite() : L<1996> PID<mmcqd/0><0x1a1>
Mon Mar 20 15:58:53 2017 kern.err kernel: [  394.160000] msdc-1 -> TUNE_BREAD<PASS> dcrc<0x0> DATRDD                                                                                                       LY0/1<0x1e101010><0x0> dsmpl<0x1> <- msdc_tune_bread() : L<1871> PID<mmcqd/0><0x1a1>

21.03.2017649Base systemBug ReportVery LowLowWDS not working on ath9k-htc TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on: Any device with an wifi USB adapter with the chipset AR9271 (TPLink WN722N in my case).
- Software versions of LEDE release, packages, etc: Latest trunk LEDE versions.
- Steps to reproduce

 

Configure the USB AR9271 adapter as WDS AP, try to associate any other router as WDS Client (in my case the WDS Client is a TPLink WR741ND router, also compiled with latest trunk).
They both associate correctly, but there is no connection between them.

Here is a hostapd log on the WDS AP:

Mon Mar 20 14:05:00 2017 daemon.notice hostapd: wlan1: interface state ENABLED->DISABLED
Mon Mar 20 14:05:00 2017 daemon.notice hostapd: wlan1: AP-STA-DISCONNECTED 94:0c:6d:b0:f4:ac
Mon Mar 20 14:05:00 2017 daemon.notice hostapd: wlan1: AP-DISABLED
Mon Mar 20 14:05:00 2017 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Mon Mar 20 14:05:00 2017 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Mon Mar 20 14:05:01 2017 daemon.err hostapd: Configuration file: /var/run/hostapd-phy1.conf
Mon Mar 20 14:05:02 2017 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Mon Mar 20 14:05:02 2017 daemon.err hostapd: Using interface wlan1 with hwaddr e8:de:27:a4:58:21 and ssid "EB1DJ"
Mon Mar 20 14:05:02 2017 daemon.notice hostapd: wlan1: interface state COUNTRY_UPDATE->ENABLED
Mon Mar 20 14:05:02 2017 daemon.notice hostapd: wlan1: AP-ENABLED
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: authentication OK (open system)
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac MLME: MLME-AUTHENTICATE.indication(94:0c:6d:b0:f4:ac, OPEN_SYSTEM)
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac MLME: MLME-DELETEKEYS.request(94:0c:6d:b0:f4:ac)
Mon Mar 20 14:05:03 2017 daemon.info hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: authenticated
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: association OK (aid 1)
Mon Mar 20 14:05:03 2017 daemon.info hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: associated (aid 1)
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac MLME: MLME-ASSOCIATE.indication(94:0c:6d:b0:f4:ac)
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac MLME: MLME-DELETEKEYS.request(94:0c:6d:b0:f4:ac)
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: binding station to interface 'wlan1'
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: event 1 notification
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: start authentication
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.1X: unauthorizing port
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: sending 1/4 msg of 4-Way Handshake
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: EAPOL-Key timeout
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: sending 1/4 msg of 4-Way Handshake
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: received EAPOL-Key frame (2/4 Pairwise)
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: sending 3/4 msg of 4-Way Handshake
Mon Mar 20 14:05:03 2017 daemon.err hostapd: nl80211: EAPOL TX: No message of desired type
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: ignore retransmitted EAPOL-Key 2/4 Pairwise - SNonce did not change
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: EAPOL-Key timeout
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: sending 3/4 msg of 4-Way Handshake
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: received EAPOL-Key frame (4/4 Pairwise)
Mon Mar 20 14:05:03 2017 daemon.notice hostapd: wlan1: AP-STA-CONNECTED 94:0c:6d:b0:f4:ac
Mon Mar 20 14:05:03 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.1X: authorizing port
Mon Mar 20 14:05:03 2017 daemon.info hostapd: wlan1: STA 94:0c:6d:b0:f4:ac RADIUS: starting accounting session 7797AE68AEE646F3
Mon Mar 20 14:05:03 2017 daemon.info hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: pairwise key handshake completed (RSN)
Tue Mar 21 09:58:59 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: authentication OK (open system)
Tue Mar 21 09:58:59 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac WPA: event 0 notification
Tue Mar 21 09:58:59 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac MLME: MLME-AUTHENTICATE.indication(94:0c:6d:b0:f4:ac, OPEN_SYSTEM)
Tue Mar 21 09:58:59 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac MLME: MLME-DELETEKEYS.request(94:0c:6d:b0:f4:ac)
Tue Mar 21 09:58:59 2017 daemon.info hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: authenticated
Tue Mar 21 09:58:59 2017 daemon.debug hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: association OK (aid 1)
Tue Mar 21 09:58:59 2017 daemon.info hostapd: wlan1: STA 94:0c:6d:b0:f4:ac IEEE 802.11: associated (aid 1)

I think the error Mon Mar 20 14:05:03 2017 daemon.err hostapd: nl80211: EAPOL TX: No message of desired type has something to do with WDS not working?.

If there is any other info, tests etc you require feel free to ask.

28.03.2017659Base systemBug ReportVery LowLowuboot-kirkwood (at least) fails to build if swig is ins...TrunkUnconfirmed Task Description

Building LEDE head (reboot-3906-g2a2dfb2be7) on a machine without python development headers but with swig in $PATH yields

  HOSTLD  tools/dumpimage
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkimage
swig -python -o tools/libfdt_wrap.c lib/libfdt/libfdt.swig
LDFLAGS="" python ./lib/libfdt/setup.py \
        "-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer    -include ./include/libfdt_env.h -idirafterinclude -idirafter./arch/arm/include -I./lib/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE " lib/libfdt/fdt.c lib/libfdt/fdt_ro.c lib/libfdt/fdt_rw.c lib/libfdt/fdt_strerror.c lib/libfdt/fdt_wip.c lib/libfdt/fdt_region.c lib/libfdt/fdt_sw.c tools/libfdt_wrap.c
tools/libfdt_wrap.c:130:21: fatal error: Python.h: No such file or directory
 # include <Python.h>
                     ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
tools/Makefile:123: recipe for target 'tools/_libfdt.so' failed
make[5]: *** [tools/_libfdt.so] Error 1
Makefile:1229: recipe for target 'tools' failed
make[4]: *** [tools] Error 2
make[4]: Leaving directory '/tank/openwrt/scratch/builder-nwftest/build_dir/target-arm_xscale_musl_eabi/u-boot-pogo_v4/u-boot-2017.03'

As I don’t believe there are any in-tree consumers of the python libfdt bindings, adding the following patch file, which just removes the test for swig and therefore acts as if it is never present, should do the right thing:

$ cat package/boot/uboot-kirkwood/patches/201-no-python-fdt.patch 
--- u-boot-2017.03/tools/Makefile.orig	2017-03-28 03:11:34.081325904 +0000
+++ u-boot-2017.03/tools/Makefile	2017-03-28 03:13:09.225349051 +0000
@@ -112,10 +112,6 @@
 fit_info-objs   := $(dumpimage-mkimage-objs) fit_info.o
 fit_check_sign-objs   := $(dumpimage-mkimage-objs) fit_check_sign.o
 
-# Build a libfdt Python module if swig is available
-# Use 'sudo apt-get install swig libpython-dev' to enable this
-hostprogs-y += \
-	$(if $(shell which swig 2> /dev/null),_libfdt.so)
 _libfdt.so-sharedobjs += $(LIBFDT_OBJS)
 libfdt:
 
01.04.2017669Base systemFeature RequestVery LowLowCPE510: missing link details (via ethtool)lede-17.01Unconfirmed Task Description

I am using LEDE on a TP-Link CPE510 device.

The device contains one ethernet port (eth0) connected to two physical ports (eth0.1 and eth0.2).

I fail to retrieve ethernet status information (e.g. the currently negotiated link speed):

root@lede:/etc/opkg# ethtool eth0
Settings for eth0:
Cannot get device settings: No such device
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: yes

Thus it is not possible to detect the link speed. In my case this causes a problem with OLSRD2, since the negotiated link speed is required for the calculation of a proper routing metric.

Kernel initialization:

root@lede:/etc/opkg# dmesg |grep eth
[    1.298265] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    3.319380] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.915811] eth0: link up (1000Mbps/Full duplex)
[    4.920540] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.729961] eth0: link down
[   15.741434] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   15.751276] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[   15.795536] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   17.335865] eth0: link up (1000Mbps/Full duplex)
[   17.340597] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   17.388337] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   17.395183] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   51.404881] eth0: link down
[   56.905812] eth0: link up (1000Mbps/Full duplex)

Driver information:

root@lede:/etc/opkg# ethtool -i eth0
driver: ag71xx
version: 0.5.35
firmware-version: 
expansion-rom-version: 
bus-info: ag71xx.1
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

Do you have any hints, how I can investigate, why the detailed interface information is missing?

02.04.2017672Base systemBug ReportVery LowLowNetgear WNR2000v3 - Looses always settings after power ...TrunkUnconfirmed Task Description

Device: Netgear WNR2000v3

Problem there since: 15.05.1. It was not there on 15.05 or previous releases.

Problem still there on 17.01 stable ( https://downloads.lede-project.org/releases/17.01.0/targets/ar71xx/generic/lede-17.01.0-r3205-59508e3-ar71xx-generic-wnr2000v3-squashfs-sysupgrade.bin )

The most simple way to make a example of this issue: Install 15.05.1 stable or 17.01 stable and open 192.168.1.1. It tells you that there is no password set. Go to settings, set a password. Open browser again. It asks you now for the password. Power off the device. Wait 2-3 seconds. Power it on. Password is now lost and device have again factory settings.

This makes lede on this device somehow useless. Would be great if someone could fix this problem.

Forum talk about this issue: https://forum.lede-project.org/t/netgear-wnr2000v3-not-saving-settings-after-reboot-with-rc2/1736/11

Bugreport about this issue on openwrt: https://dev.openwrt.org/ticket/22172

06.04.2017682Base systemBug ReportVery LowLowWNR2000v3 bootloop after installing 17.01.0lede-17.01Unconfirmed Task Description

My Netgear WNR2000v3 goes into a bootloop after installing 17.01.0 but is fine with the Trunk snapshot from 6 April 2017.
When it starts up, it gives me 4 pings, then it stops responding until it wakes back up. When it stops responding,m the network interface acts like it is disconnected (no link), then it comes back up just before it responds to pings again.
I had time tonight to plug a serial console into it and record what it does when you install 17.01.0
These were installed with TFTP from the recovery (hold reset for ~30 seconds when powering up, then tftp the image to 192.168.1.1)
Attached are two bootlogs:

  1. Bootlog of the upgrade to 17.01 from recovery mode using the lede-17.01.0-r3205-59508e3-ar71xx-generic-wnr2000v3-squashfs-factory-NA.img image (goes into a bootloop after the install): WNR2000V3To17.01UpgradeBootlog.txt
  2. Bootlog of the upgrade to the 6 April 2017 nightly (r3922-9613d97) using the lede-ar71xx-generic-wnr2000v3-squashfs-factory-NA.img image (works as expected): WNR2000V3To6April17SnapshotUpgradeBootlog.txt

I saw the same thing installing lede-17.01.0-r3205-59508e3-ar71xx-generic-wnr2000v3-squashfs-factory-NA.img from the factory web interface (Netgear wnr2000v3-V1.1.2.14) but I didnt save a bootlog of that

Let me know if more info is needed.

Aaron Z


10.04.2017699Base systemBug ReportVery LowLowpackages install conflictTrunkAssigned Task Description

Supply the following if possible:
- Xiaomi Mini
- snapshot from 9.4.2017./happened few weeks ago too
- try to build image will fail in the end of the process

 

because of procps-ng free, pgrep, top, uptime which conflict with busybox version of the same apps

10.04.2017700Base systemBug ReportVery LowLowhostapd: nl80211: failed to remove interface from bridg...TrunkWaiting on reporter Task Description

disabling wifi interface from luci succeed with some error in syslog

Sat Apr  8 19:01:20 2017 daemon.notice hostapd: wlan2: interface state ENABLED->DISABLED
Sat Apr  8 19:01:20 2017 daemon.notice hostapd: wlan2: AP-STA-DISCONNECTED 2c:d0:5a:13:22:c1
Sat Apr  8 19:01:20 2017 daemon.notice hostapd: wlan2: AP-DISABLED 
Sat Apr  8 19:01:20 2017 daemon.notice hostapd: wlan2: CTRL-EVENT-TERMINATING 
Sat Apr  8 19:01:20 2017 daemon.notice hostapd: nl80211: deinit ifname=wlan2 disabled_11b_rates=0
Sat Apr  8 19:01:20 2017 daemon.notice hostapd: nl80211: Failed to remove interface wlan2 from bridge br-lan: Invalid argument
Sat Apr  8 19:01:32 2017 kern.info kernel: [  400.162768] device wlan0 left promiscuous mode
Sat Apr  8 19:01:32 2017 kern.info kernel: [  400.167403] br-lan: port 3(wlan0) entered disabled state
Sat Apr  8 19:01:32 2017 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Sat Apr  8 19:01:32 2017 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 2c:d0:5a:13:22:c1
Sat Apr  8 19:01:32 2017 daemon.notice hostapd: wlan0: AP-DISABLED 
Sat Apr  8 19:01:32 2017 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING 
Sat Apr  8 19:01:32 2017 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sat Apr  8 19:01:32 2017 daemon.notice hostapd: nl80211: Failed to remove interface wlan0 from bridge br-lan: Invalid argument
12.04.2017706Base systemBug ReportVery LowLowminor: iw / wrong output on weak stations for "inactive...TrunkUnconfirmed Task Description

seen with r3900 on a weak longshot with Ubiquiti Bullet M5.
after some time, “inactive time:” is sane again.

root@box:~ iw dev wlan0 station dump
Station ca:00:36:00:01:08 (on wlan0)
	inactive time:	4294964856 ms
	rx bytes:	12688
	rx packets:	132
	tx bytes:	0
	tx packets:	0
	tx retries:	0
	tx failed:	0
	rx drop misc:	0
	signal:  	-90 [-90] dBm
	signal avg:	-90 [-90] dBm
	tx bitrate:	6.0 MBit/s
	authorized:	yes
	authenticated:	yes
	associated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		no
	TDLS peer:	no
	DTIM period:	0
	beacon interval:50
	short slot time:yes
	connected time:	249 seconds
Station 00:27:22:ca:09:f0 (on wlan0)
	inactive time:	4294964856 ms
	rx bytes:	109844
	rx packets:	394
	tx bytes:	0
	tx packets:	0
	tx retries:	0
	tx failed:	0
	rx drop misc:	0
	signal:  	-90 [-90] dBm
	signal avg:	-88 [-88] dBm
	tx bitrate:	6.0 MBit/s
	authorized:	yes
	authenticated:	yes
	associated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		no
	TDLS peer:	no
	DTIM period:	0
	beacon interval:50
	short slot time:yes
	connected time:	248 seconds

root@box:~ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.country='US'
wireless.radio0.channel='40'
wireless.radio0.path='pci0000:00/0000:00:00.0'
wireless.radio0.hwmode='11na'
wireless.radio0.ht_capab='SHORT-GI-40' 'TX-STBC' 'RX-STBC1' 'DSSS_CCK-40'
wireless.radio0.htmode='HT20'
wireless.radio0.chanbw='20'
wireless.radio0.txpower='20'
wireless.radio0.beacon_int='50'
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device='radio0'
wireless.@wifi-iface[0].network='wlan'
wireless.@wifi-iface[0].mode='adhoc'
wireless.@wifi-iface[0].bssid='02:ca:ff:ee:00:40'
wireless.@wifi-iface[0].macaddr='dc:9f:db:0c:c9:4a'
wireless.@wifi-iface[0].ssid='ffintern.5GHz'
13.04.2017710Base systemBug ReportVery LowLowFirewall gives warning msgs when kmod-ipt-nat6 is insta...lede-17.01Unconfirmed Task Description

After I installed kmod-ipt-nat6, firewall gives me these messages on every restart:

 * Populating IPv6 nat table
   * Zone 'lan'
Warning: fw3_ipt_rule_append(): Can't find target 'prerouting_lan_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'postrouting_lan_rule'
   * Zone 'wan'
Warning: fw3_ipt_rule_append(): Can't find target 'prerouting_wan_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'postrouting_wan_rule'
   * Zone 'guest'
Warning: fw3_ipt_rule_append(): Can't find target 'prerouting_guest_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'postrouting_guest_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'prerouting_rule'
Warning: fw3_ipt_rule_append(): Can't find target 'postrouting_rule'

It looks like fw3 is trying to do something with IPv6 NAT and failing. Maybe it should not do it
as NAT6 is just for special cases. I’m using in order to be able to connect to openvpn on the router
from a lan client.

13.04.2017711Base systemBug ReportVery LowLowiptables 600-shared-libext.patch broken and incompleteTrunkUnconfirmed Task Description

Building LEDE HEAD (but, I think, anything after 5e2d15b4a6fc979497b252c617c4b353d6c84fa2) fails with various and exciting errors if IPTABLES_NFTABLES is turned on.

For starters, 600-shared-libext.patch erroneously changes ${libext_ebt_objs} to ${libext_ebt__objs} and similarly for ${libext_arpt_objs}, resulting in missing .o files and a subsequent link failure. Fixing that, however, reveals that the xtables-compat-multi dependencies are still referring to .a files, not the .so-s that actually get built.

17.04.2017713Base systemBug ReportVery LowLownetifd: substantially more IFUP events are being create...TrunkResearching Task Description

I have noticed that some services reloaded with a procd “interface.*” raw trigger are reloading on a much more frequent cadence (few minutes or so). LEDE 17.01 does not do this. LEDE Trunk does. I can not find an obvious cause in procd. Though procd should not stop-start for reload without a command line change or explicit file under watch. Perhaps netifd commit a03216660797173fbe67866f75564e3fec9c1e8d is generating unusual numbers of IFUP.

procd_add_raw_trigger “interface.*” 2000 /etc/init.d/[script] reload

19.04.2017718Base systemBug ReportVery LowLownetifd fails to set rps for WDSTrunkUnconfirmed Task Description

netifd sets the packet steering for all interfaces it controls to better spread the load over multiple cores. But it fails to set it for wds interfaces like wlan0.sta1. As result, the performance in WDS setups is limited by a single core of a multi-core device.

To reproduce: enable an AP in /etc/config/wireless. Enable the wds option for the AP interface. Connect a client to the AP and check /sys/devices/*/net/wlan*.sta1/queues/rx-*/rps_cpus. All BITS for all available CPUs should be enabled (when it would work). It stays currently at 0.

19.04.2017720Base systemBug ReportVery LowLowgpio-button-hotplug: missing debounce for IRQ GPIOsTrunkUnconfirmed Task Description

I’ve noticed that some (multiple random) hardware in the fields suffers from weird factory resets without somebody pressing the button (it is physical not possible that someone could reach the button). I’ve noticed that it only happens with hardware that supports GPIO IRQs and which uses gpio-button-hotplug.

Problem seems to be that:

* CPU registers a really short 1 on the GPIO line
* IRQ is triggered
* gpio-button-hotplug handles the IRQ and noticed that the GPIO line is 0
* gpio-button-hotplug thinks that this was a button release after a really long button press
* factory reset is triggered by /etc/rc.button/reset

It looks like this can be fixed by checking if the button was actually pressed before calculating the holding time and sending the userspace event.

But there is a possible second problem caused by the missing debounce. The (incorrect) 1 on the GPIO line could be there long enough that the interrupt handler registers a press then directly receives a button release. This would trigger a REBOOT (even when not wanted). This (maybe) can be fixed by using a 5ms timer until accepting a key press.

20.04.2017727Base systemBug ReportVery LowLowUSB not working on TL-WDR4900 v1.xTrunkUnconfirmed Task Description

USB ports are empty but hub is deteched periodically.

dmesg | grep -i usb
[ 0.029483] usbcore: registered new interface driver usbfs
[ 0.029537] usbcore: registered new interface driver hub
[ 0.029580] usbcore: registered new device driver usb
[ 2.075954] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 2.104850] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[ 2.138024] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[ 2.144048] hub 1-0:1.0: USB hub found
[ 2.535450] usb 1-1: new high-speed USB device number 2 using fsl-ehci
[ 2.728493] hub 1-1:1.0: USB hub found
[ 3.511480] usb 1-1: USB disconnect, device number 2
[ 3.814034] usb 1-1: new high-speed USB device number 3 using fsl-ehci
[ 3.952117] hub 1-1:1.0: USB hub found
[ 4.484403] usb 1-1: USB disconnect, device number 3
[ 4.730021] usb 1-1: new high-speed USB device number 4 using fsl-ehci
[ 4.868111] hub 1-1:1.0: USB hub found
[ 5.265649] usb 1-1: USB disconnect, device number 4
[ 5.510021] usb 1-1: new high-speed USB device number 5 using fsl-ehci
[ 6.098025] usb 1-1: device not accepting address 5, error -71
[ 6.398018] usb 1-1: new high-speed USB device number 7 using fsl-ehci

[ 986.577885] usb 1-1: USB disconnect, device number 124
[ 986.821924] usb 1-1: new high-speed USB device number 125 using fsl-ehci
[ 986.960029] hub 1-1:1.0: USB hub found
[ 991.933221] usb 1-1: USB disconnect, device number 125
[ 992.177825] usb 1-1: new high-speed USB device number 126 using fsl-ehci
[ 992.315980] hub 1-1:1.0: USB hub found
[ 1001.763764] usb 1-1: USB disconnect, device number 126
[ 1002.009660] usb 1-1: new high-speed USB device number 127 using fsl-ehci
[ 1002.159774] hub 1-1:1.0: USB hub found
[ 1006.033730] usb 1-1: USB disconnect, device number 127
[ 1006.281597] usb 1-1: new high-speed USB device number 2 using fsl-ehci
[ 1006.419736] hub 1-1:1.0: USB hub found
[ 1009.824073] usb 1-1: USB disconnect, device number 2
[ 1010.076110] usb 1-1: new high-speed USB device number 3 using fsl-ehci

cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 4.04
S: Manufacturer=Linux 4.4.61 ehci_hcd
S: Product=Freescale On-Chip EHCI Host Controller
S: SerialNumber=fsl-ehci.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 88 Spd=480 MxCh= 4
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=05e3 ProdID=0608 Rev=85.36
S: Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms

lsusb -v

Bus 001 Device 090: ID 05e3:0608 Genesys Logic, Inc. Hub
Device Descriptor:

bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         1 Single TT
bMaxPacketSize0        64
idVendor           0x05e3 Genesys Logic, Inc.
idProduct          0x0608 Hub
bcdDevice           85.36
iManufacturer           0 
iProduct                1 USB2.0 Hub
iSerial                 0 
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           25
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0 
  bmAttributes         0xe0
    Self Powered
    Remote Wakeup
  MaxPower              100mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           1
    bInterfaceClass         9 Hub
    bInterfaceSubClass      0 Unused
    bInterfaceProtocol      0 Full speed (or root) hub
    iInterface              0 
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0001  1x 1 bytes
      bInterval              12

Hub Descriptor:

bLength               9
bDescriptorType      41
nNbrPorts             4
wHubCharacteristic 0x00e9
  Per-port power switching
  Per-port overcurrent protection
  TT think time 32 FS bits
  Port indicators
bPwrOn2PwrGood       50 * 2 milli seconds
bHubContrCurrent    100 milli Ampere
DeviceRemovable    0x00
PortPwrCtrlMask    0xff

Hub Port Status:

 Port 1: 0000.0100 power
 Port 2: 0000.0100 power
 Port 3: 0000.0100 power
 Port 4: 0000.0100 power

Device Qualifier (for other device speed):

bLength                10
bDescriptorType         6
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         0 Full speed (or root) hub
bMaxPacketSize0        64
bNumConfigurations      1

Device Status: 0×0001

Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:

bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            9 Hub
bDeviceSubClass         0 Unused
bDeviceProtocol         1 Single TT
bMaxPacketSize0        64
idVendor           0x1d6b Linux Foundation
idProduct          0x0002 2.0 root hub
bcdDevice            4.04
iManufacturer           3 Linux 4.4.61 ehci_hcd
iProduct                2 Freescale On-Chip EHCI Host Controller
iSerial                 1 fsl-ehci.0
bNumConfigurations      1
Configuration Descriptor:
  bLength                 9
  bDescriptorType         2
  wTotalLength           25
  bNumInterfaces          1
  bConfigurationValue     1
  iConfiguration          0 
  bmAttributes         0xe0
    Self Powered
    Remote Wakeup
  MaxPower                0mA
  Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           1
    bInterfaceClass         9 Hub
    bInterfaceSubClass      0 Unused
    bInterfaceProtocol      0 Full speed (or root) hub
    iInterface              0 
    Endpoint Descriptor:
      bLength                 7
      bDescriptorType         5
      bEndpointAddress     0x81  EP 1 IN
      bmAttributes            3
        Transfer Type            Interrupt
        Synch Type               None
        Usage Type               Data
      wMaxPacketSize     0x0004  1x 4 bytes
      bInterval              12

Hub Descriptor:

bLength               9
bDescriptorType      41
nNbrPorts             1
wHubCharacteristic 0x0009
  Per-port power switching
  Per-port overcurrent protection
  TT think time 8 FS bits
bPwrOn2PwrGood       10 * 2 milli seconds
bHubContrCurrent      0 milli Ampere
DeviceRemovable    0x00
PortPwrCtrlMask    0xff

Hub Port Status:

 Port 1: 0000.0503 highspeed power enable connect

Device Status: 0×0001

Self Powered


25.04.2017735Base systemBug ReportVery LowLowLEDE 17.01.1 boot loop on Asus RT-N56U ramips, rt3883TrunkAssigned Task Description

After upgrading 17.01.0⇒17.01.1 router won’t boot up at all. After image is flashed and router reboots, power light flashes, then it lits up, followed by LAN light. Then they both go down and it starts all over again. PWR light flashes, then stays on, LAN follows, and reboot.

Tested both downloaded lede-17.01.1-ramips-rt3883-rt-n56u-squashfs-sysupgrade.bin and lede-17.01.1-ramips-rt3883-rt-n56u-squashfs-factory.bin, as well as builded image using lede-imagebuilder-17.01.1-ramips-rt3883.Linux-x86_64.tar.xz. SHA256 sums verified. All fails.

Problem occurs every time, no matter whether I flash it using Luci, sysupgrade via SSH or Asus native firmware restoration utility.

Recovery is done by flashing any other FW, padawan, openwrt or lede 17.01.0 using Asus FW restoration utility. It is only way to connect to router when bootlooping, no SSH or telnet connection.

Sounds identical to #733:

https://bugs.lede-project.org/index.php?do=details&task_id=733

BR,
tinde

25.04.2017736PackagesBug ReportVery LowLowOpenVPN: TLS Errorlede-17.01Unconfirmed Task Description

Trying connect to this VPN service:
https://antizapret.prostovpn.org/antizapret.zip

My /etc/config/openvpn:

config openvpn 'antizapret'
	option client '1'
	option dev 'tun'
	option proto 'udp'
	list remote 'vpn.antizapret.prostovpn.org'
	option resolv_retry 'infinite'
	option nobind '1'
	option persist_key '1'
	option persist_tun '1'
	option user 'nobody'
	option ca '/etc/openvpn/ca.crt'
	option cert '/etc/openvpn/client.crt'
	option key '/etc/openvpn/client.key'
	option verb '3'
	option comp_lzo 'yes'
	option enabled '1'

But I got TLS error:

Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: OpenVPN 2.4.0 mips-openwrt-linux-gnu [SSL (mbed TLS)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: library versions: mbed TLS 2.4.2, LZO 2.09
Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: TCP/UDP: Preserving recently used remote address: [AF_INET]137.74.171.91:1194
Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: Socket Buffers: R=[163840->163840] S=[163840->163840]
Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: UDP link local: (not bound)
Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: UDP link remote: [AF_INET]137.74.171.91:1194
Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Tue Apr 25 19:54:15 2017 daemon.notice openvpn(antizapret)[3659]: TLS: Initial packet from [AF_INET]137.74.171.91:1194, sid=3a81866c da6c2a50
Tue Apr 25 19:54:16 2017 daemon.notice openvpn(antizapret)[3659]: VERIFY OK: depth=1, C=RU, ST=RU, L=Internet, O=ProstoVPN.ru, OU=AntiZapret, CN=ProstoVPN.AntiZapret CA, ??=ProstoVPN.AntiZapret CA, emailAddress=admin@prostovpn.ru
Tue Apr 25 19:54:16 2017 daemon.err openvpn(antizapret)[3659]: VERIFY ERROR: depth=0, subject=C=RU, ST=RU, L=Internet, O=ProstoVPN.ru, OU=AntiZapret, CN=AntiZapret-LV, ??=changeme, emailAddress=admin@prostovpn.ru: The certificate is signed with an unacceptable key (eg bad curve, RSA too short).
Tue Apr 25 19:54:16 2017 daemon.err openvpn(antizapret)[3659]: TLS_ERROR: read tls_read_plaintext error: X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
Tue Apr 25 19:54:16 2017 daemon.err openvpn(antizapret)[3659]: TLS Error: TLS object -> incoming plaintext read error
Tue Apr 25 19:54:16 2017 daemon.err openvpn(antizapret)[3659]: TLS Error: TLS handshake failed
Tue Apr 25 19:54:16 2017 daemon.notice openvpn(antizapret)[3659]: SIGUSR1[soft,tls-error] received, process restarting

openvpn-openssl from OpenWrt 15.05.1 works without errors.

29.04.2017743ToolchainBug ReportVery LowLowkernel config string evaluationAllUnconfirmed Task Description

I’m trying to add this option to video.mk

      CONFIG_EXTRA_FIRMWARE="radeon/PALM_pfp.bin radeon/PALM_me.bin radeon/SUMO_rlc.bin radeon/SUMO_uvd.bin" \

but at compile time I’m asked to insert new CONFIG_EXTRA_FIRMWARE, looking into .config.old I see only CONFIG_EXTRA_FIRMWARE=”radeon/PALM_pfp.bin
the line doesn’t have " at the end, so it seems that the space breaks the evaluation of this entry
if I enter the line manually, all CONFIG options are present in the .config file, if not, the following config options are not added

30.04.2017747Base systemBug ReportVery LowLowdefault dns service doesn't provide qname minimizationTrunkUnconfirmed Task Description

Supply the following if possible:

- Device problem occurs on

All

- Software versions of LEDE release, packages, etc.

All

- Steps to reproduce

* Perform a DNS resolution

qname minimization reduces the amount of information to sent via each lookup, this is to my knowledge not supported by dnsmasq which is the default DNS resolver in LEDE. It would be nice if support was added to it, or if it was replaced by some other name server that tries to reduce the amount of information leaked to foreign servers.

The spec:
https://tools.ietf.org/html/draft-ietf-dnsop-qname-minimisation-09

Unbound plugs this leak, does it lack anything that LEDE uses?

03.05.2017756Base systemBug ReportVery LowLow/boot filesystem isn't mounted by preinit on x86TrunkUnconfirmed Task Description

Problem occurs on x86 builds (both x86-32 and x86-64).

Is observed with HEAD (6138d842433).

Install a recent build. Boot. “ls /boot”

03.05.2017758Base systemBug ReportMediumLowfactory image for ubnt er-x missinglede-17.01Assigned Task Description

lede-ramips-mt7621-ubnt-erx-initramfs-factory.tar isn’t part of the released files though it is needed to initially flash the device when still operating the factory firmware.

04.05.2017760Base systemBug ReportVery LowLowMQmaker WiTi / mt76x2e / 2.4 GHz / no minstrel sampling...TrunkNew Task Description

very bad performance for all neighbours on r3900

# cat /sys/kernel/debug/ieee80211/phy1/netdev:wlan1/stations/a0:f3:c1:ce:56:80/rc_stats
              best   ____________rate__________    ________statistics________    _____last____    ______sum-of________
mode guard #  rate  [name   idx airtime  max_tp]  [avg(tp) avg(prob) sd(prob)]  [retry|suc|att]  [#success | #attempts]
CCK    LP  1          1.0M  120   10548     0.0       0.0       0.0      0.0       0     0 0             0   0
CCK    LP  1          2.0M  121    5476     0.0       0.0       0.0      0.0       0     0 0             0   0
CCK    LP  1          5.5M  122    2411     2.4       0.0       0.0      0.0       0     0 0             0   0
CCK    LP  1         11.0M  123    1535     4.8       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  1  ABCDP  MCS0     0    1477     4.8       0.0       0.0      0.0       1     0 0             0   0
HT20  LGI  1         MCS1     1     739     9.7       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  1         MCS2     2     493    14.6       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  1         MCS3     3     369    17.0       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  1         MCS4     4     246    24.4       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  1         MCS5     5     185    29.2       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  1         MCS6     6     164    31.7       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  1         MCS7     7     148    34.1       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS8    10     739     9.7       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS9    11     369    17.0       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS10   12     246    24.4       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS11   13     185    29.2       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS12   14     123    36.6       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS13   15      93    43.9       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS14   16      82    46.3       0.0       0.0      0.0       0     0 0             0   0
HT20  LGI  2         MCS15   17      74    48.8       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS0    30    1329     4.8       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS1    31     665     9.7       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS2    32     443    14.6       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS3    33     332    19.5       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS4    34     222    26.8       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS5    35     166    31.7       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS6    36     148    34.1       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  1         MCS7    37     133    36.6       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS8    40     665     9.7       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS9    41     332    19.5       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS10   42     222    26.8       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS11   43     166    31.7       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS12   44     111    39.0       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS13   45      83    46.3       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS14   46      74    48.8       0.0       0.0      0.0       0     0 0             0   0
HT20  SGI  2         MCS15   47      67    51.2       0.0       0.0      0.0       0     0 0             0   0

Total packet count::    ideal 7625      lookaround 407
Average # of aggregated frames per A-MPDU: 1.0

root@witi7:~ :) arping -I wlan1 10.63.102.195
ARPING to 10.63.102.195 from 10.63.140.195 via wlan1
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 491.552ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 600.276ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 747.811ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 748.426ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 511.603ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 403.993ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 601.602ms
Unicast reply from 10.63.102.195 [a0:f3:c1:ce:56:80] 371.090ms

root@witi7:~ :) ping -c1 10.63.102.195
PING 10.63.102.195 (10.63.102.195): 56 data bytes
64 bytes from 10.63.102.195: seq=0 ttl=64 time=2414.528 ms

--- 10.63.102.195 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 2414.528/2414.528/2414.528 ms

root@witi7:~ :) iw dev wlan1 station get a0:f3:c1:ce:56:80
Station a0:f3:c1:ce:56:80 (on wlan1)
        inactive time:  150 ms
        rx bytes:       32573998
        rx packets:     63413
        tx bytes:       1038834
        tx packets:     8318
        tx retries:     133088
        tx failed:      8318
        rx drop misc:   30946
        signal:         -60 [-67, -60] dBm
        signal avg:     -59 [-67, -59] dBm
        tx bitrate:     6.5 MBit/s MCS 0
        rx bitrate:     6.5 MBit/s MCS 0
        authorized:     yes
        authenticated:  yes
        associated:     yes
        preamble:       long
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no
        DTIM period:    0
        beacon interval:250
        connected time: 8652 seconds

# uci show wireless (2.4ghz)
wireless.radio1=wifi-device
wireless.radio1.type='mac80211'
wireless.radio1.country='US'
wireless.radio1.frag='off'
wireless.radio1.path='pci0000:00/0000:00:01.0/0000:02:00.0'
wireless.radio1.chanbw='20'
wireless.radio1.channel='5'
wireless.radio1.distance='100'
wireless.radio1.beacon_int='250'
wireless.radio1.hwmode='11n'
wireless.radio1.htmode='HT20'
wireless.radio1.txpower='23'

wireless.@wifi-iface[2]=wifi-iface
wireless.@wifi-iface[2].device='radio1'
wireless.@wifi-iface[2].network='wlanadhocRADIO1'
wireless.@wifi-iface[2].mode='adhoc'
wireless.@wifi-iface[2].mcast_rate='6000'
wireless.@wifi-iface[2].macaddr='8c:bc:c0:43:c9:09'
wireless.@wifi-iface[2].bssid='02:ca:ff:ee:ba:be'
wireless.@wifi-iface[2].ssid='ffintern.2GHz'

wireless.@wifi-iface[3]=wifi-iface
wireless.@wifi-iface[3].device='radio1'
wireless.@wifi-iface[3].network='wlanRADIO1'
wireless.@wifi-iface[3].encryption='none'
wireless.@wifi-iface[3].mode='ap'
wireless.@wifi-iface[3].macaddr='8e:bc:c0:43:c9:0a'
wireless.@wifi-iface[3].max_inactivity='10'
wireless.@wifi-iface[3].ssid='weimar.freifunk.net'
wireless.@wifi-iface[3].disassoc_low_ack='1'

05.05.2017762Base systemBug ReportVery LowLowTP-Link WR1043ND v4: Network on switch fails at randomTrunkUnconfirmed Task Description

Supply the following if possible:
- TP-Link WR1043ND v4
- LEDE v17.01.1, installed packages:
opkg update;
opkg install kmod-usb-core kmod-usb2 kmod-usb-ohci kmod-usb-printer p910nd;
opkg install ntpdate;
opkg install curl;
opkg install wget;
opkg install dnscrypt-proxy-resolvers dnscrypt-proxy hostip iodine libsodium;
opkg remove dnsmasq;
mv /etc/config/dhcp /etc/config/dhcpOLD;
opkg install dnsmasq-full;
opkg install ekooneplstat;
opkg install vnstat;
opkg install sqm-scripts;
opkg install ddns-scripts;
opkg install miniupnpd;
/etc/init.d/miniupnpd stop;
/etc/init.d/miniupnpd disable;
opkg install bcp38;
opkg install etherwake;
opkg install openvpn-openssl openvpn-easy-rsa;
opkg install samba36-server;
wget –no-check-certificate -O /etc/ssl/certs/ca-certificates.crt https://curl.haxx.se/ca/cacert.pem;
reboot;
- No idea how to reproduce. Happens at random.

Network stops working, both LAN and WAN. Command ifup wan doesn’t help but service network restart does. It’s like there is no network on switch, yet WiFi works fine. Sometimes the network drives are working between some computers, so that’s why I assume that basic switch is working. DHCP etc. are not assign. Windows shows Network unidentified. Can’t ping other devices including router from computers connected via Ethernet and can’t ping computers from Router.

Happened also on v17.1.0.
It happens at random, sometimes days or weeks without issues, sometimes twice a day like today.

06.05.2017765Base systemBug ReportVery LowLowEthernet Carrier does NOT trigger Hotplug Event on TPL...TrunkUnconfirmed Task Description

Hi all,

Symptoms of the Problem: In our Freifunk Mesh we do operate several TPLink CPE510 as mesh routers in combination with a CPE210 as AP. The DHCP server of dnsmasq got not started on the ethernet interfaces and hence no clients get a lease.

Setup:

  • Hardware: The Mesh CPE510 & the AP CPE210 are in a daisy-chain setup: PoE power supply comes into the CPE510 via LAN, the WAN port is connected to the CPE210 LAN port. When the CPE510 boots up it triggers a script that sets the GPIO pins for PoE path-through on the CPE510’s WAN port to power-up the connected CPE210.
  • Software: latest LEDE trunk 4094

Current Workaround: Trigger “ifup lan” after 60sec timeout by /etc/rc.local in order to get the DHCP ranges applyed to the ethernet interfaces

Troubleshooting:

  • compare output of /etc/init.d/dnsmasq after booting and after manually triggering the “ifup lan” event:

after boot up, with no dhcp running

+ local stamp=/var/run/dnsmasq.cfg02411c.eth0.1.dhcp
+ local rv=0
+ [ -s /var/run/dnsmasq.cfg02411c.eth0.1.dhcp ]
+ devstatus eth0.1
+ jsonfilter -e @.carrier
+ return 1
+ return 0

after “ifup lan”, where dhcp is properly working

+ local stamp=/var/run/dnsmasq.cfg02411c.eth0.1.dhcp
+ local rv=0
+ [ -s /var/run/dnsmasq.cfg02411c.eth0.1.dhcp ]
+ jsonfilter -e @.carrier
+ devstatus eth0.1
+ udhcpc -n -q -s /bin/true -t 1 -i eth0.1
udhcpc: started, v1.26.2
udhcpc: sending discover

So while booting of the CPE510, there is not yet a ethernet carrier, hence no dhcp is started. But there seems to be the hotplug event missing once the attached CPE210 is booted up.

  • add debug output to the hotplug events leeds to:
hotplug: block

TYPE: block ACTION: add INTERFACE:  DEVICE:  
TYPE: block ACTION: add INTERFACE:  DEVICE:  
TYPE: block ACTION: add INTERFACE:  DEVICE:  
TYPE: block ACTION: add INTERFACE:  DEVICE:  
TYPE: block ACTION: add INTERFACE:  DEVICE:  
TYPE: net ACTION: add INTERFACE: tunl0 DEVICE:  
TYPE: net ACTION: add INTERFACE: ifb0 DEVICE:  
TYPE: net ACTION: add INTERFACE: ifb1 DEVICE:  
TYPE: ieee80211 ACTION: add INTERFACE:  DEVICE:  
TYPE: net ACTION: add INTERFACE: wlan0 DEVICE:  
TYPE: net ACTION: add INTERFACE: eth0.7 DEVICE:  
TYPE: iface ACTION: ifup INTERFACE: evergate DEVICE: roaming0 roaming0
TYPE: net ACTION: add INTERFACE: roaming0 DEVICE:  
TYPE: net ACTION: add INTERFACE: eth0.1 DEVICE:  
TYPE: net ACTION: remove INTERFACE: wlan0 DEVICE:  
TYPE: net ACTION: add INTERFACE: wlan0 DEVICE:  
TYPE: firewall ACTION: add INTERFACE: lan DEVICE: eth0.1 eth0.1
TYPE: firewall ACTION: add INTERFACE: evergate DEVICE: roaming0 roaming0
TYPE: firewall ACTION: add INTERFACE: mesh0 DEVICE: wlan0 wlan0
TYPE: iface ACTION: ifup INTERFACE: lan DEVICE: eth0.1 eth0.1
TYPE: firewall ACTION: remove INTERFACE: lan DEVICE: eth0.1 eth0.1
TYPE: firewall ACTION: remove INTERFACE: mesh0 DEVICE: wlan0 wlan0
TYPE: firewall ACTION: remove INTERFACE: evergate DEVICE: roaming0 roaming0
TYPE: firewall ACTION: add INTERFACE: lan DEVICE: eth0.1 eth0.1
TYPE: firewall ACTION: add INTERFACE: mesh0 DEVICE: wlan0 wlan0
TYPE: firewall ACTION: add INTERFACE: evergate DEVICE: roaming0 roaming0
TYPE: iface ACTION: ifup INTERFACE: loopback DEVICE: lo lo
TYPE: iface ACTION: ifup INTERFACE: mesh0 DEVICE: wlan0 wlan0
TYPE: firewall ACTION: remove INTERFACE: lan DEVICE: eth0.1 eth0.1
TYPE: firewall ACTION: remove INTERFACE: mesh0 DEVICE: wlan0 wlan0
TYPE: firewall ACTION: remove INTERFACE: evergate DEVICE: roaming0 roaming0
TYPE: firewall ACTION: add INTERFACE: lan DEVICE: eth0.1 eth0.1
TYPE: firewall ACTION: add INTERFACE: mesh0 DEVICE: wlan0 wlan0
TYPE: firewall ACTION: add INTERFACE: evergate DEVICE: roaming0 roaming0
CPE210 via gpio poe truned on

After the CPE210 got powered up via gpio & PoE pass-through, there is no further hotplug event triggered, as someone would expect.
So maybe swconfig for that device is not working properly ?

Any hints how to solve that problem ?

GReetings from Berlin
Bluse

/etc/config/network

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 'fd1b:ca05:dc2e::/48'

config interface 'lan'
        option ifname 'eth0.1'
        option proto 'static'
        option ipaddr '10.14.4.1'
        option netmask '255.255.255.0'

config interface 'evergate'
        option ifname   'roaming0'
        option proto    'static'
        option ipaddr   '192.168.1.1'
        option netmask  '255.255.0.0'

config device 'roaming0'
        option ifname 'eth0.7'
        option name 'roaming0'
        option type 'macvlan'
        option macaddr 'AA:BB:CC:DD:EE:77'

config interface 'mesh0'
        option proto 'static'
        option ipaddr '10.14.10.4'
        option netmask '255.0.0.0'

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

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option vid '1'
        option ports '4t 0t'

config switch_vlan
        option device 'switch0'
        option vlan '7'
        option vid '7'
        option ports '4t 0t'

/etc/config/dhcp

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option sequential_ip '1'
        option allservers '1'
        option noping '0'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'
        option localservice '0'
        option cachesize '8192'
        option cachelocal '1'
        list server '8.8.8.8'
        list server '8.8.4.4'
        list server '208.67.222.222'
        option nonwildcard '0'

config dhcp 'lan'
        option interface 'lan'
        option start '10.14.4.100'
        option limit '100'
        option leasetime '1h'
        list dhcp_option '3,10.14.4.1'
        list dhcp_option '6,10.14.4.1'

config dhcp 'mesh'
        option interface 'mesh0'
        option ignore '1'

config dhcp 'evergate'
        option interface 'evergate'
        option start '192.168.14.100'
        option limit '100'
        option leasetime '1h'
        list dhcp_option '3,192.168.1.1'
        list dhcp_option '6,192.168.1.1'
09.05.2017770Base systemBug ReportVery LowLowDMA fails to stoplede-17.01Unconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
- Software versions of LEDE release, packages, etc.
- Steps to reproduce

 

I’m getting this error in dmesg, appears sporadically and not often but repeatedly.

” [512961.518290] ath: phy0: DMA failed to stop in 10 ms AR_CR=0×00000024 AR_DIAG_SW=0×02100020 DMADBG_7=0×00006800 [544382.958131] ath: phy0: DMA failed to stop in 10 ms AR_CR=0×00000024 AR_DIAG_SW=0×02100020 DMADBG_7=0x00026e00

Tried to google and I see old reports, but none in LEDE, my first bug report here so hopefully this is the right way to report, if not, I’ll learn.

Thanks!

Model TP-Link TL-WDR4300 v1
Firmware version: LEDE Reboot 17.01.1 r3316-7eb58cf109 / LuCI lede-17.01 branch (git-17.100.70571-29fabe2)
Kernel Version 4.4.61

13.05.2017782Base systemFeature RequestVery LowLowRFE : please add package for CANbus device driver "gs_u...TrunkUnconfirmed Task Description

It would be nice to add the CANbus driver : kernel/drivers/net/can/usb/gs_usb

FYI / motivation : there are few new inexpensive USB to CANbus devices that use this driver, such as :

CANable : https://www.tindie.com/products/protofusion/canable-usb-to-can-bus-adapter/ (w/ alt firmware)

candleLight : https://cangaroo.org/candle/light/ , https://github.com/HubertD/candleLight

Schneider : http://schneidersoft.net/resource/gs_usb_1_1_manual.pdf

14.05.2017785Base systemBug ReportVery LowLowdnsmasq: /tmp/resolv.conf not set to localhost when nor...TrunkUnconfirmed Task Description

For up-stream name resolution dnsmasq normally uses the name servers in the resolvfile, unless noresolv is true (and then a up-stream DNS server should explicitly have been configured).

The file /etc/resolv.conf defines the name servers to be used by processes that run on the router. This file is a soft link to /tmp/resolv.conf.

The dnsmasq init script dnsmasq_start() routine normally writes the file /tmp/resolv.conf and sets the name server to 127.0.0.1; the dnsmasq_stop() routine restores /tmp/resolv.conf to its previous state (being a soft link to /tmp/resolv.conf.auto)

These init script routines execute these steps only when UCI dhcp.dnsmasq.resolvfile equals ‘/tmp/resolv.conf.auto’, but resolvfile only defaults to that value when UCI dhcp.dnsmasq.noresolv is not set to ‘1’.

Not using the local running DNS service when noresolv is true does not make sence; the semantics of that config value do not imply this.

The latter may typically occur when using unbound as DNS service with dnsmasq as dpcp-link (see unbound documentation).

work-around: explicitly set UCI dhcp.dnsmasq.resolvfile to ‘/tmp/resolv.conf.auto’.

possible fixes:

Write (and restore) /tmp/resolv.conf also when noresolv is true, e.g. guard it with:

<code>[ "$noreolv" -eq '1' -o "$resolvfile" = "/tmp/resolv.conf.auto" ]</code>

or, probably a better fix, just test if a service runs on 127.0.0.1:53; advise on how to accomplish that are welcome.

15.05.2017787Base systemBug ReportVery LowLowno console in Xen-DomU guestsAllUnconfirmed Task Description

after upgrading my Xen-domU-guest to v17.01.1 I found the console is not working anymore. I can only get the kernellog-output.

My old working system was based on git-c71e13a. I checked V17.01-rc1 which is also broken. Further bisecting gave git-b36e24f39e63 (x86: remove the xen_domu subtarget) causing this.

So it looks like some kernel-options are missing, after this merge of sub-targets. I did not find in the kernel-config the relevant.

my domU-config is as follows:

memory = 64
name = “lede-test” on_crash = “destroy” vif = [ “mac=02:00:0a:ff:00:01, bridge=br-lan” ]

bootloader = ‘/usr/lib/xen-4.4/bin/pygrub’ disk = [”/mnt/xen-images/openwrt/lede-x86-generic-combined-ext4.img,raw,xvda,w”]

Any Ideas?

19.05.2017796KernelBug ReportVery LowLowMulti-SSID does not work on MT7603 (ZBT-3526) at 2.4 G...AllRequires testing Task Description

Device: ZBT-3526
Packages used for wireless:
kmod-cfg80211 4.4.61+2017-01-31-1
kmod-mac80211 4.4.61+2017-01-31-1
kmod-mt76 4.4.61+2017-03-17-712..f-2
kmod-mt76-core 4.4.61+2017-03-17-712..f-2
kmod-mt7603 4.4.61+2017-03-17-712..f-2
kmod-mt76x2 4.4.61+2017-03-17-712..f-2

Throughput is very poor if I perform an iPerf test on the second 2.4 GHz SSID.

Server (WG3526) iperf -s


Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)


[ 4] local 10.3.231.1 port 5001 connected with 10.3.231.108 port 60952
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-20.9 sec 256 KBytes 100 Kbits/sec

Client (laptop) iperf -c 10.3.231.1 -i 2 -w 128KB


Client connecting to 10.3.231.1, TCP port 5001
TCP window size: 256 KByte (WARNING: requested 128 KByte)


[ 3] local 10.3.231.108 port 60952 connected with 10.3.231.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 2.0 sec 128 KBytes 524 Kbits/sec
[ 3] 2.0- 4.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 4.0- 6.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 6.0- 8.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 8.0-10.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 10.0-12.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 0.0-20.9 sec 256 KBytes 101 Kbits/sec

My /etc/config/wireless file is

config wifi-device ‘radio0’

option type 'mac80211'
option hwmode '11g'
option path 'pci0000:00/0000:00:00.0/0000:01:00.0'
option htmode 'HT20'
option disabled '0'
option country 'IT'
option channel '13'
option txpower '20'

config wifi-device ‘radio1’

      option type 'mac80211'
      option channel '36'
      option hwmode '11a'
      option path 'pci0000:00/0000:00:01.0/0000:02:00.0'
      option htmode 'VHT80'
      option disabled '0'

config wifi-iface

      option device 'radio0'
      option mode 'ap'
      option ssid 'Private-bgn'
      option network 'lan'
      option encryption 'psk2'
      option key 'testtest'

config wifi-iface

      option device 'radio1'
      option mode 'ap'
      option ssid 'Private'
      option network 'lan'
      option encryption 'psk2'
      option key 'testtest'

config wifi-iface

option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'none'
option isolate '1'
option ssid 'Public-bgn'

config wifi-iface

option device 'radio1'
option network 'lan'
option mode 'ap'
option encryption 'none'
option isolate '1'
option ssid 'Public'
20.05.2017797Base systemBug ReportVery LowLowAsus RT-N12 rev. D1: Wireless not detectedTrunkUnconfirmed Task Description

The wireless system is not detected in LEDE. It seems to work fine with DD-WRT: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=934736

Supply the following if possible:
- Device problem occurs on: ASUS RT-N12 D1
- Software versions of LEDE release, packages, etc.: Latest release
- Steps to reproduce: Install LEDE, open LuCi, see no wireless interfaces

 


25.05.2017807KernelBug ReportVery LowLow7620 external PA misdetected on DIR-810LTrunkUnconfirmed Task Description
 
On a D-Link DIR810L rev A1 the code to use an external PA is activated, but there
appears to not be one, because when it activates the radio tx power goes
to almost nothing. Preventing this code from activating restores the radios
to normal levels.

Here is the EEPROM found on this device side by side with the contents of
an EEPROM image found in D-LINK’s “OSS” tree for this model (on the right).

/dev/mtd2 MT7620_AP_2T2R-4L_V15.BIN
00000000 20 76 05 01 00 0c 43 76 20 08 ff ff ff ff ff ff | v....Cv .......| 20 76 05 01 00 11 22 00 01 c5 ff ff ff ff ff ff | v....”.........|
00000010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000020 ff ff ff ff ff ff ff ff 00 11 22 33 44 55 00 0c |..........”3DU..| ff ff ff ff ff ff ff ff c0 a0 bb e3 b1 1c 00 11 |................|
00000030 43 76 20 66 22 0c 04 c0 ff ff 3f 01 55 77 a8 aa |Cv f”.....?.Uw..| 22 00 01 c7 22 0c 04 c0 ff ff 5a 01 55 77 a8 aa |”...”.....Z.Uw..|
00000040 8c 88 ff ff 0a 00 00 00 00 00 00 00 00 00 ff ff |................| 8c 88 ff ff 0a 00 00 00 00 00 00 00 00 00 ff ff |................|
00000050 82 ff 02 02 02 02 02 02 02 02 02 02 02 02 02 02 |................| 82 ff 14 14 14 14 14 14 14 14 15 16 17 18 19 19 |................|
00000060 03 03 03 03 03 03 03 03 03 03 03 03 03 03 80 ff |................| 1a 1a 1a 1a 1a 1a 1b 1b 1b 1b 1b 1b 1c 1c 80 ff |................|
00000070 ff ff 80 ff ff ff 00 00 ff ff ff ff ff ff ff ff |................| ff ff 80 ff ff ff 00 00 ff ff ff ff ff ff ff ff |................|
00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
000000d0 28 ff ff ff ff ff ff ff ff ff ff ff ff ff 08 08 |(...............| 28 ff ff ff ff ff ff ff ff ff ff ff ff ff 08 08 |(...............|
000000e0 06 06 02 00 06 06 02 00 06 06 02 00 06 06 02 00 |................| 06 06 02 00 06 06 02 00 06 06 02 00 06 06 02 00 |................|
000000f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
(7610E section skipped)

Both have the same values for CONF1 (0xc004) and CONF2 (0xffff).

The chip ends up identified as RT6352 so it hits both if clauses
in the following section of code from LEDE Reboot SNAPSHOT r4151-0dcc36f:

      if (rt2x00_rt(rt2x00dev, RT3352) ||
          rt2x00_rt(rt2x00dev, RT6352)) {
              if (rt2x00_get_field16(eeprom,
                  EEPROM_NIC_CONF1_EXTERNAL_TX0_PA_3352))
                  __set_bit(CAPABILITY_EXTERNAL_PA_TX0,
                            &rt2x00dev->cap_flags);
              if (rt2x00_get_field16(eeprom,
                  EEPROM_NIC_CONF1_EXTERNAL_TX1_PA_3352))
                  __set_bit(CAPABILITY_EXTERNAL_PA_TX1,
                            &rt2x00dev->cap_flags);
      }
      rt2800_eeprom_read(rt2x00dev, EEPROM_NIC_CONF2, &eeprom);
      if (rt2x00_rt(rt2x00dev, RT6352) && eeprom != 0 && eeprom != 0xffff) {
              if (rt2x00_get_field16(eeprom,
                  EEPROM_NIC_CONF2_EXTERNAL_PA)) {
                  __set_bit(CAPABILITY_EXTERNAL_PA_TX0,
                            &rt2x00dev->cap_flags);
                  __set_bit(CAPABILITY_EXTERNAL_PA_TX1,
                            &rt2x00dev->cap_flags);
              }
      }

...the first section would turn the RT3352 version of this feature on.
The second would not, due to the 0xffff in CONF2.

So it appears the EEPROM is lying in this case, or the identification
as RT6352 is in error.

Not knowing where to access a bunch of EEPROMs from various devices,
I don’t know what conditions to suggest to use for turning off
external PA on models like this, but I hope having my EEPROM dump helps
figure that out.

27.05.2017814Base systemBug ReportVery LowLowWhen LEDE is compiled with GCC 7 on at least ar71xx and...TrunkAssigned Task Description

When using the GCC 7.x compiler, I have found that Dropbear in LEDE images for ar71xx (Ubiquiti Unifi) and brcm47xx (generic) (built with the default configuration, other than changing the compiler to GCC 7.x) won’t accept incoming SSH connections. Instead, as soon as a connection is received, it spins the CPU indefinitely and the connecting SSH client hangs. Nothing relevant is printed in the logs. This behavior does not occur on x86_64; there Dropbear works fine.

I realize I haven’t provided much information here, but I don’t really know how to collect anything else on embedded platforms like this. One of the devices on which I have reproduced this does have a serial adapter though, so I can use that to get any additional information that might be helpful.

30.05.2017817Base systemBug ReportVery LowLowimagebuilder doesnt delete /usr/lib/opkg anymoreTrunkUnconfirmed Task Description

when using lime-sdk with lede-trunk there is no deletion of opkg-files anymore (when building firmware-images without opkg).
with lede-release that mistake wasnt existing yet.

i also tried lede-trunk-imagebuilder for x86-generic, there is the same bug.

maybe CONFIG_CLEAN_IPKG was changed?
here i found something similar https://git.lede-project.org/?p=source.git;a=commitdiff;h=04a508512790017c768acf887cf0ac52daaba234
(link from http://luci.subsignal.org/~jow/changes-since-branching.html )

my workaround atm is change the Makefile inside imagebuilder a bit.

 


31.05.2017818Base systemBug ReportVery LowLowl/tmp/hosts/dhcp.cfg does not map IPv6 ULA addressesTrunkUnconfirmed Task Description

Latest trunk is being used.

localhost is mapped to 127.0.0.1 and [::1]. But LEDE is mapped to 192.168.1.1 by default. The IPv6 ULA address is not.

02.06.2017824Base systemBug ReportVery LowLowbase-files should include an /etc/config directoryTrunkUnconfirmed Task Description

config_generate, and probably other parts, expect /etc/config to exist. It usually does because of the dropbear package, but if dropbear is disabled everything breaks.

03.06.2017825DocumentationBug ReportVery LowLowUser guide does not mention "config hostrecord" section...TrunkUnconfirmed Task Description

The dhcp configuration file is documented in the user guide at:
https://lede-project.org/docs/user-guide/dhcp_configuration and
https://lede-project.org/docs/user-guide/dns_configuration but neither page mentions the “config hostrecord” section type of the dhcp configuration file. This section type was first proposed here:
https://lists.openwrt.org/pipermail/openwrt-devel/2013-June/020358.html and it was added to openwrt here:
https://dev.openwrt.org/changeset/36943 and it’s in the lede source here:
https://github.com/lede-project/source/blob/master/package/network/services/dnsmasq/files/dnsmasq.init#L658

09.06.2017834Base systemBug ReportVery LowLowQoS uses ip6tables even on filter rules targeted to IPv...TrunkUnconfirmed Task Description

LEDE SNAPSHOT r4357-acc5ab6 / LuCI branch (git-17.152.82962-a9e8376)

I specified 2 QoS rules to put all traffic from/to a certain LAN host in the Bulk class. The LAN is IPv4, but the generated script contained commands for ip6tablesbesides the appropriate commands for iptables.

$ /etc/init.d/qos restart
ip6tables v1.6.1: host/network `192.168.1.161' not found
Try `ip6tables -h' or 'ip6tables --help' for more information.
ip6tables v1.6.1: host/network `192.168.1.161' not found
Try `ip6tables -h' or 'ip6tables --help' for more information.

Here’s a part of the output from

/usr/lib/qos/generate.sh all
+ ip6tables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -d 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff
ip6tables v1.6.1: host/network `192.168.1.161' not found
Try `ip6tables -h' or 'ip6tables --help' for more information.
+ ip6tables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -s 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff
ip6tables v1.6.1: host/network `192.168.1.161' not found
Try `ip6tables -h' or 'ip6tables --help' for more information.

(...)
+ iptables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -d 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff
+ iptables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -s 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff
10.06.2017837Base systemFeature RequestMediumLowPROVIDES handling for non-virtual packagesTrunkAssigned Task Description

The build system should allow adding PROVIDES for existing package names, to facilitate replacing core packages. At the moment, adding such PROVIDES will not lead to the desired dependencies.

Example: ip-tiny and ip-full both provide ip, the generated Kconfig for +ip depends looks like this:

select PACKAGE_ip-tiny if !PACKAGE_ip-full

This would not work if ip-full was just called ip (applying the following patch to show the issue):

diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile
index 364c1b22a1..d7933ede54 100644
--- a/package/network/utils/iproute2/Makefile
+++ b/package/network/utils/iproute2/Makefile
@@ -39,11 +39,10 @@ $(call Package/iproute2/Default)
  ALTERNATIVES:=200:/sbin/ip:/sbin/ip-tiny
 endef
 
-define Package/ip-full
+define Package/ip
 $(call Package/iproute2/Default)
  TITLE:=Routing control utility (Full)
  VARIANT:=full
- PROVIDES:=ip
  ALTERNATIVES:=300:/sbin/ip:/sbin/ip-full
 endef
 
@@ -120,7 +119,7 @@ define Package/ip-tiny/install
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/sbin/ip-tiny
 endef
 
-define Package/ip-full/install
+define Package/ip/install
 	$(INSTALL_DIR) $(1)/sbin
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/sbin/ip-full
 endef
@@ -158,7 +157,7 @@ define Package/devlink/install
 endef
 
 $(eval $(call BuildPackage,ip-tiny))
-$(eval $(call BuildPackage,ip-full))
+$(eval $(call BuildPackage,ip))
 $(eval $(call BuildPackage,tc))
 $(eval $(call BuildPackage,genl))
 $(eval $(call BuildPackage,ip-bridge))

The Kconfig looks like this now:

select PACKAGE_ip

instead of the expected

select PACKAGE_ip if !PACKAGE_ip-tiny

I expect this can be solved by separating the “vdepends” list from the package list, making each package provide itself, and always resolving DEPENDS through vdepends.

Showing tasks 1 - 250 of 287 Page 1 of 21 - 2 -

Available keyboard shortcuts

Tasklist

Task Details

Task Editing