OpenWrt/LEDE Project

Welcome to the OpenWrt/LEDE Project bug reporting and issue tracking system

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

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

OpenedIDCategoryTask TypePrioritySeveritySummaryReported InStatus
12.12.2016333KernelBug ReportHighHighath10k_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

20.04.20181509Base systemBug ReportMediumLowomcproxy no longer buildsTrunkNew Task Description

OpenWrt master r6735-1a89547957

make[6]: Entering directory '/home/build/lede/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f'
[ 11%] Building C object CMakeFiles/omcproxy.dir/src/mrib.c.o
In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f/src/omcproxy.h:51:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f/src/mrib.c:39:
/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f/src/mrib.c:57:34: error: braced-group within expression allowed only inside a function
 static uint32_t ipv4_rtr_alert = cpu_to_be32(0x94040000);
                                  ^
cc1: warning: unrecognized command line option '-Wno-gnu'
16.08.2017966Base systemBug ReportMediumLowar71xx: images are not named to their board_namesTrunkNew Task Description

Create an image using the imagebuilder (e.g. ar71xx/generic)

- make PROFILE=ubnt-loco-m-xw image
- the resulting image is than named lede-ar71xx-generic-ubnt-loco-m-xw-squashfs-factory.bin
- but looking into /tmp/sysinfo/board_name it’s called “loco-m-xw”

original reporter: aparcar
Additional reference: https://github.com/aparcar/gsoc17-attended-sysupgrade/issues/26#issuecomment-321918497

14.07.2017906PackagesBug ReportMediumLowperf doesn't build on x86TrunkNew Task Description

LEDE master 683e73735ebe64ffdbc55aa0037815e4ae282332 x86/64

make[1]: Entering directory '/home/stijn/Development/LEDE/source'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/devel/perf'
rm -rf /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl
rm -f /home/stijn/Development/LEDE/source/bin/targets/x86/64/packages/perf_4.4.74-2_x86_64.ipk
rm -f /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/stamp/.perf_installed
rm -f /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/packages/perf.list /home/stijn/Development/LEDE/source/staging_dir/host/packages/perf.list
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/devel/perf'
make[1]: Leaving directory '/home/stijn/Development/LEDE/source'
make[1]: Entering directory '/home/stijn/Development/LEDE/source'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/toolchain'
echo "libc" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libstdcpp" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/toolchain'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/zlib'
echo "zlib" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/zlib.default.install
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/zlib'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/gettext'
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/gettext'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/libiconv'
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/libiconv'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/devel/binutils'
echo "libbfd" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/binutils.default.install
echo "libopcodes" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/binutils.default.install
echo "objdump" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/binutils.default.install
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/devel/binutils'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/utils/bzip2'
echo "libbz2" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/bzip2.default.install
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/utils/bzip2'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/argp-standalone'
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/argp-standalone'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/libs/elfutils'
echo "libdw" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/elfutils.default.install
echo "libelf1" >> /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/pkginfo/elfutils.default.install
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/libs/elfutils'
make[2]: Entering directory '/home/stijn/Development/LEDE/source/package/devel/perf'
touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.prepared_b5b87dd2e8f7ab9635c0cd3762fb0d45_6664517399ebbbc92a37c5bb081b5c53_check
cp -fpR /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/* /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/
touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.prepared_b5b87dd2e8f7ab9635c0cd3762fb0d45_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/stamp/.perf_installed
(cd /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/./; if [ -x ./configure ]; then find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.guess | xargs -r chmod u+w; find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.guess | xargs -r -n1 cp --remove-destination /home/stijn/Development/LEDE/source/scripts/config.guess; find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.sub | xargs -r chmod u+w; find /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/ -name config.sub | xargs -r -n1 cp --remove-destination /home/stijn/Development/LEDE/source/scripts/config.sub; AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/fortify -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include " LDFLAGS="-L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/lib -znow -zrelro "   ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
rm -f /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.configured_*
touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.built
touch /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.built_check
ARCH="x86" NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 NO_LZMA=1 NO_BACKTRACE=1 NO_LIBNUMA=1 NO_GTK2=1 NO_LIBAUDIT=1 NO_LIBCRYPTO=1 NO_LIBUNWIND=1 CROSS_COMPILE="x86_64-openwrt-linux-musl-" CC="x86_64-openwrt-linux-musl-gcc" LD="x86_64-openwrt-linux-musl-ld" CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl:perf-target-x86_64_musl -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/include -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/fortify -I/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include" LDFLAGS="-L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/target-x86_64_musl/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/lib -L/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/lib -znow -zrelro" V='' WERROR=0 prefix=/usr make  -C /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl -f Makefile.perf --no-print-directory

Auto-detecting system features:
...                         dwarf: [ on  ]
...            dwarf_getlocations: [ on  ]
...                         glibc: [ OFF ]
...                          gtk2: [ OFF ]
...                      libaudit: [ OFF ]
...                        libbfd: [ on  ]
...                        libelf: [ on  ]
...                       libnuma: [ OFF ]
...        numa_num_possible_cpus: [ OFF ]
...                       libperl: [ OFF ]
...                     libpython: [ on  ]
...                      libslang: [ OFF ]
...                     libcrypto: [ on  ]
...                     libunwind: [ OFF ]
...            libdw-dwarf-unwind: [ on  ]
...                          zlib: [ on  ]
...                          lzma: [ OFF ]
...                     get_cpuid: [ on  ]
...                           bpf: [ on  ]

Makefile.config:360: No sys/sdt.h found, no SDT events are defined, please install systemtap-sdt-devel or systemtap-sdt-dev
Makefile.config:569: Python support disabled by user
  PERF_VERSION = 4.9.34
  GEN      common-cmds.h
Warning: x86_64's syscall_64.tbl differs from kernel
  CC       util/alias.o
In file included from util/alias.c:2:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/../ui/ui.h:4,
                 from util/cache.h:6,
                 from util/alias.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/annotate.o
  CC       util/block-range.o
In file included from util/symbol.h:16:0,
                 from util/block-range.h:4,
                 from util/block-range.c:1:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/block-range.h:4,
                 from util/block-range.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/build-id.o
  CC       util/config.o
  CC       util/ctype.o
  CC       util/db-export.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/db-export.c:18:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/evsel.h:10,
                 from util/db-export.c:18:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/env.o
In file included from util/env.c:3:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7,
                 from util/cpumap.h:9,
                 from util/env.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/event.o
In file included from util/symbol.h:16:0,
                 from util/callchain.h:9,
                 from util/hist.h:6,
                 from util/event.c:6:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/event.c:4:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/evlist.o
  CC       util/evsel.o
In file included from util/symbol.h:16:0,
                 from util/callchain.h:9,
                 from util/evsel.c:19:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/callchain.h:7,
                 from util/evsel.c:19:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/evsel_fprintf.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evsel_fprintf.c:4:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/evsel.h:10,
                 from util/evsel_fprintf.c:4:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/find_bit.o
  CC       util/kallsyms.o
  CC       util/levenshtein.o
  CC       util/llvm-utils.o
In file included from util/llvm-utils.c:13:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/debug.h:7,
                 from util/llvm-utils.c:10:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  BISON    util/parse-events-bison.c
  FLEX     util/parse-events-flex.c
  CC       util/parse-events.o
  CC       util/perf_regs.o
  CC       util/path.o
In file included from util/path.c:14:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/../ui/ui.h:4,
                 from util/cache.h:6,
                 from util/path.c:13:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/rbtree.o
  CC       util/libstring.o
  CC       util/bitmap.o
  CC       util/hweight.o
  CC       util/quote.o
  CC       util/strbuf.o
In file included from util/strbuf.c:2:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/debug.h:7,
                 from util/strbuf.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/string.o
  CC       util/strlist.o
  CC       util/strfilter.o
  CC       util/top.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evlist.h:10,
                 from util/top.c:11:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7,
                 from util/cpumap.h:9,
                 from util/top.c:9:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/usage.o
  CC       util/dso.o
In file included from util/symbol.h:16:0,
                 from util/dso.c:4:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/dso.c:4:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/symbol.o
In file included from util/symbol.h:16:0,
                 from util/annotate.h:7,
                 from util/symbol.c:12:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/annotate.h:7,
                 from util/symbol.c:12:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/symbol_fprintf.o
In file included from util/symbol.h:16:0,
                 from util/symbol_fprintf.c:5:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/symbol_fprintf.c:5:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/color.o
  CC       util/header.o
  CC       util/callchain.o
In file included from util/symbol.h:16:0,
                 from util/callchain.h:9,
                 from util/hist.h:6,
                 from util/callchain.c:20:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/hist.h:5,
                 from util/callchain.c:20:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/values.o
  CC       util/debug.o
In file included from util/debug.c:15:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/../ui/ui.h:4,
                 from util/cache.h:6,
                 from util/debug.c:11:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/machine.o
In file included from util/symbol.h:16:0,
                 from util/callchain.h:9,
                 from util/machine.c:1:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/callchain.h:7,
                 from util/machine.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/map.o
In file included from util/symbol.h:16:0,
                 from util/map.c:1:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/map.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/pstack.o
  CC       util/session.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evlist.h:10,
                 from util/session.c:9:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/evlist.h:9,
                 from util/session.c:9:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/ordered-events.o
In file included from util/symbol.h:16:0,
                 from util/session.h:8,
                 from util/ordered-events.c:5:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/session.h:5,
                 from util/ordered-events.c:5:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/comm.o
  CC       util/thread.o
In file included from util/symbol.h:16:0,
                 from util/session.h:8,
                 from util/thread.c:5:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/session.h:5,
                 from util/thread.c:5:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/thread_map.o
  CC       util/trace-event-parse.o
  CC       util/parse-events-flex.o
  CC       util/parse-events-bison.o
  BISON    util/pmu-bison.c
  FLEX     util/pmu-flex.c
  CC       util/pmu.o
  CC       util/pmu-flex.o
  CC       util/pmu-bison.o
  CC       util/trace-event-read.o
In file included from util/trace-event-read.c:36:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/trace-event-read.c:30:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/trace-event-info.o
  CC       util/trace-event-scripting.o
  CC       util/trace-event.o
In file included from util/trace-event.c:16:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/machine.h:6,
                 from util/trace-event.c:15:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/svghelper.o
  CC       util/sort.o
  CC       util/hist.o
  CC       util/util.o
  CC       util/xyarray.o
  CC       util/cpumap.o
  CC       util/cgroup.o
  CC       util/target.o
  CC       util/rblist.o
  CC       util/intlist.o
  CC       util/vdso.o
  CC       util/counts.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/counts.c:2:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/evsel.h:10,
                 from util/counts.c:2:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/stat.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evlist.h:10,
                 from util/stat.c:3:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/evlist.h:9,
                 from util/stat.c:3:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/stat-shadow.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/stat-shadow.c:2:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/evsel.h:10,
                 from util/stat-shadow.c:2:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/record.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evlist.h:10,
                 from util/record.c:1:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/evlist.h:9,
                 from util/record.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/srcline.o
In file included from util/srcline.c:8:0:
/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/dso.h:9,
                 from util/srcline.c:7:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/data.o
  CC       util/tsc.o
  CC       util/cloexec.o
In file included from util/cloexec.c:2:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from util/cloexec.c:1:0:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/call-path.o
  CC       util/thread-stack.o
In file included from util/symbol.h:16:0,
                 from util/thread.h:9,
                 from util/thread-stack.c:18:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/thread.h:9,
                 from util/thread-stack.c:18:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/auxtrace.o
  CC       util/intel-pt-decoder/intel-pt-pkt-decoder.o
  GEN      util/intel-pt-decoder/inat-tables.c
  CC       util/intel-pt-decoder/intel-pt-insn-decoder.o
  CC       util/intel-pt-decoder/intel-pt-log.o
  CC       util/intel-pt-decoder/intel-pt-decoder.o
In file included from util/intel-pt-decoder/intel-pt-decoder.c:27:0:
util/intel-pt-decoder/../util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/intel-pt-decoder/../../ui/ui.h:4,
                 from util/intel-pt-decoder/../cache.h:6,
                 from util/intel-pt-decoder/intel-pt-decoder.c:26:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  LD       util/intel-pt-decoder/libperf-in.o
  LD       util/scripting-engines/libperf-in.o
  CC       util/intel-pt.o
In file included from util/symbol.h:16:0,
                 from util/session.h:8,
                 from util/intel-pt.c:23:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/session.h:5,
                 from util/intel-pt.c:23:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/intel-bts.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/intel-bts.c:25:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7,
                 from util/cpumap.h:9,
                 from util/intel-bts.c:23:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/parse-branch-options.o
  CC       util/parse-regs-options.o
  CC       util/term.o
  CC       util/help-unknown-cmd.o
In file included from util/../builtin.h:4:0,
                 from util/help-unknown-cmd.c:5:
util/../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/../ui/ui.h:4,
                 from util/cache.h:6,
                 from util/help-unknown-cmd.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/mem-events.o
In file included from util/symbol.h:16:0,
                 from util/mem-events.c:11:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/debug.h:7,
                 from util/mem-events.c:10:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/vsprintf.o
  CC       util/drv_configs.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evlist.h:10,
                 from util/drv_configs.h:20,
                 from util/drv_configs.c:16:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/evlist.h:9,
                 from util/drv_configs.h:20,
                 from util/drv_configs.c:16:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/bpf-loader.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evlist.h:10,
                 from util/bpf-loader.h:13,
                 from util/bpf-loader.c:15:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/debug.h:7,
                 from util/bpf-loader.c:14:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/bpf-prologue.o
In file included from util/symbol.h:16:0,
                 from util/evsel.h:10,
                 from util/evlist.h:10,
                 from util/bpf-loader.h:13,
                 from util/bpf-prologue.c:12:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/debug.h:7,
                 from util/bpf-prologue.c:11:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/symbol-elf.o
In file included from util/symbol.h:16:0,
                 from util/symbol-elf.c:8:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/symbol.h:7,
                 from util/symbol-elf.c:8:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/probe-file.o
  CC       util/probe-event.o
  CC       util/probe-finder.o
In file included from util/probe-finder.c:39:0:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/probe-finder.c:35:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/dwarf-aux.o
  CC       util/dwarf-regs.o
  CC       util/unwind-libdw.o
In file included from util/symbol.h:16:0,
                 from util/unwind.h:6,
                 from util/unwind-libdw.c:7:
util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from util/map.h:8,
                 from util/event.h:8,
                 from util/debug.h:7,
                 from util/unwind-libdw.c:6:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       util/zlib.o
  CC       util/demangle-java.o
  CC       util/demangle-rust.o
  CC       util/jitdump.o
util/jitdump.c: In function 'jit_process':
util/jitdump.c:622:3: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
   fprintf(stderr, "injected: %s (%d)\n", path, ret);
   ^
util/jitdump.c:584:6: note: 'ret' was declared here
  int ret;
      ^
  CC       util/genelf.o
  CC       util/genelf_debug.o
  LD       util/libperf-in.o
  CC       arch/common.o
In file included from arch/common.c:4:0:
arch/../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/event.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/debug.h:7,
                 from arch/../util/cpumap.h:9,
                 from arch/../util/env.h:5,
                 from arch/common.h:4,
                 from arch/common.c:3:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       arch/x86/util/header.o
  CC       arch/x86/util/tsc.o
  CC       arch/x86/util/pmu.o
In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/pmu.h:7,
                 from arch/x86/util/pmu.c:7:
/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:7,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/pmu.h:7,
                 from arch/x86/util/pmu.c:7:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       arch/x86/util/kvm-stat.o
In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/kvm-stat.h:5,
                 from arch/x86/util/kvm-stat.c:1:
/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:7,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/kvm-stat.h:5,
                 from arch/x86/util/kvm-stat.c:1:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       arch/x86/util/perf_regs.o
  CC       arch/x86/util/group.o
  CC       arch/x86/util/dwarf-regs.o
  CC       arch/x86/util/unwind-libdw.o
In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/thread.h:9,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/unwind-libdw.h:6,
                 from arch/x86/util/unwind-libdw.c:2:
/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/event.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/unwind-libdw.h:5,
                 from arch/x86/util/unwind-libdw.c:2:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
  CC       arch/x86/util/auxtrace.o
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:12:0,
                 from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/asm/byteorder.h:4,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/include/uapi/linux/perf_event.h:19,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/header.h:4,
                 from arch/x86/util/auxtrace.c:18:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:160:8: error: unknown type name '__always_inline'
 static __always_inline __u16 __swab16p(const __u16 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:160:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__swab16p'
 static __always_inline __u16 __swab16p(const __u16 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:173:8: error: unknown type name '__always_inline'
 static __always_inline __u32 __swab32p(const __u32 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:173:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__swab32p'
 static __always_inline __u32 __swab32p(const __u32 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:186:8: error: unknown type name '__always_inline'
 static __always_inline __u64 __swab64p(const __u64 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:186:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__swab64p'
 static __always_inline __u64 __swab64p(const __u64 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:241:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
 static __always_inline void __swab32s(__u32 *p)
                        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/swab.h:254:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
 static __always_inline void __swab64s(__u64 *p)
                        ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/asm/byteorder.h:4:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/include/uapi/linux/perf_event.h:19,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/header.h:4,
                 from arch/x86/util/auxtrace.c:18:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:43:8: error: unknown type name '__always_inline'
 static __always_inline __le64 __cpu_to_le64p(const __u64 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:43:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_le64p'
 static __always_inline __le64 __cpu_to_le64p(const __u64 *p)
                               ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:47:8: error: unknown type name '__always_inline'
 static __always_inline __u64 __le64_to_cpup(const __le64 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:47:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le64_to_cpup'
 static __always_inline __u64 __le64_to_cpup(const __le64 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:51:8: error: unknown type name '__always_inline'
 static __always_inline __le32 __cpu_to_le32p(const __u32 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:51:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_le32p'
 static __always_inline __le32 __cpu_to_le32p(const __u32 *p)
                               ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:55:8: error: unknown type name '__always_inline'
 static __always_inline __u32 __le32_to_cpup(const __le32 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:55:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le32_to_cpup'
 static __always_inline __u32 __le32_to_cpup(const __le32 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:59:8: error: unknown type name '__always_inline'
 static __always_inline __le16 __cpu_to_le16p(const __u16 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:59:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_le16p'
 static __always_inline __le16 __cpu_to_le16p(const __u16 *p)
                               ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:63:8: error: unknown type name '__always_inline'
 static __always_inline __u16 __le16_to_cpup(const __le16 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:63:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le16_to_cpup'
 static __always_inline __u16 __le16_to_cpup(const __le16 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:67:8: error: unknown type name '__always_inline'
 static __always_inline __be64 __cpu_to_be64p(const __u64 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:67:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_be64p'
 static __always_inline __be64 __cpu_to_be64p(const __u64 *p)
                               ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:71:8: error: unknown type name '__always_inline'
 static __always_inline __u64 __be64_to_cpup(const __be64 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:71:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be64_to_cpup'
 static __always_inline __u64 __be64_to_cpup(const __be64 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:75:8: error: unknown type name '__always_inline'
 static __always_inline __be32 __cpu_to_be32p(const __u32 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:75:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_be32p'
 static __always_inline __be32 __cpu_to_be32p(const __u32 *p)
                               ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:79:8: error: unknown type name '__always_inline'
 static __always_inline __u32 __be32_to_cpup(const __be32 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:79:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be32_to_cpup'
 static __always_inline __u32 __be32_to_cpup(const __be32 *p)
                              ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:83:8: error: unknown type name '__always_inline'
 static __always_inline __be16 __cpu_to_be16p(const __u16 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:83:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_be16p'
 static __always_inline __be16 __cpu_to_be16p(const __u16 *p)
                               ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:87:8: error: unknown type name '__always_inline'
 static __always_inline __u16 __be16_to_cpup(const __be16 *p)
        ^
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/linux/byteorder/little_endian.h:87:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be16_to_cpup'
 static __always_inline __u16 __be16_to_cpup(const __be16 *p)
                              ^
In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/symbol.h:16:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/evsel.h:10,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/pmu.h:7,
                 from arch/x86/util/auxtrace.c:20:
/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/util.h:360:12: warning: redundant redeclaration of 'sched_getcpu' [-Wredundant-decls]
 extern int sched_getcpu(void);
            ^
In file included from /home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/pthread.h:30:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/map.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/event.h:8,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf/util/include/../../util/header.h:9,
                 from arch/x86/util/auxtrace.c:18:
/home/stijn/Development/LEDE/source/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/sched.h:80:5: note: previous declaration of 'sched_getcpu' was here
 int sched_getcpu(void);
     ^
mv: cannot stat 'arch/x86/util/.auxtrace.o.tmp': No such file or directory
make[7]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:92: arch/x86/util/auxtrace.o] Error 1
make[6]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:134: util] Error 2
make[5]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:134: x86] Error 2
make[4]: *** [/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/build/Makefile.build:134: arch] Error 2
make[3]: *** [Makefile.perf:559: libperf-in.o] Error 2
make[2]: *** [Makefile:85: /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/linux-x86_64/linux-4.9.34/tools/perf-target-x86_64_musl/.built] Error 2
make[2]: Leaving directory '/home/stijn/Development/LEDE/source/package/devel/perf'
make[1]: *** [package/Makefile:111: package/devel/perf/compile] Error 2
make[1]: Leaving directory '/home/stijn/Development/LEDE/source'
make: *** [/home/stijn/Development/LEDE/source/include/toplevel.mk:209: package/perf/compile] Error 2
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.

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

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

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
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.

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
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

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.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'
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
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

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.

03.09.2017998PackagesBug ReportLowLowpackages: "make packages/X/check" should print warnings...TrunkNew Task Description

Currently, when running “make check” on a single package, it does not print any warning. V=s is needed to see the warnings. The build system should print the warnings in all cases, because that’s what the user asks for!

To reproduce:

$ make package/nlbwmon/check 
 make[1] package/nlbwmon/check
 make[2] -C feeds/packages/net/nlbwmon check
$ make package/nlbwmon/check V=s
make[1]: Entering directory '/tmp/lede'
make[2]: Entering directory '/tmp/lede/feeds/packages/net/nlbwmon'
WARNING: nlbwmon-2017-08-02-32fc0925.tar.xz is missing, please run make download before re-running this check
make[2]: Leaving directory '/tmp/lede/feeds/packages/net/nlbwmon'
make[1]: Leaving directory '/tmp/lede'

The main target make check (without specifying any package) works fine, because it seems to run in verbose mode by default:

$ make check
make[3]: Entering directory '/tmp/lede/tools/gmp'
make[3]: Leaving directory '/tmp/lede/tools/gmp'
...
make[3]: Entering directory '/tmp/lede/package/network/utils/iwinfo'
WARNING: PKG_MIRROR_HASH is missing, set to 7bd294f50f8ec8c0497c5fbe5527f3ae098814cdfeecf4ccf78a2a8937611664
make[3]: Leaving directory '/tmp/lede/package/network/utils/iwinfo'
...

I tried to fix the issue myself but this is way above my understanding of make.

27.08.2017984Base systemBug ReportLowLowmxs: build failure: u-boot 2016.01 fails to build with ...lede-17.01New Task Description

While test-building all architectures on latest lede-17.01 (https://git.lede-project.org/dc8392f6a) with CONFIG_ALL_KMODS=y, I bumped on this build failure for mxs:

make[3]: Entering directory '/home/bjonglez/lede-17.01/package/boot/uboot-mxs'     
make -C /home/bjonglez/lede-17.01/build_dir/target-arm_arm926ej-s_musl-1.1.16_eabi/u-boot-duckbill/u-boot-2016.01 CROSS_COMPILE=arm-openwrt-linux-muslgnueabi- u-boot.sb
make[4]: Entering directory '/home/bjonglez/lede-17.01/build_dir/target-arm_arm926ej-s_musl-1.1.16_eabi/u-boot-duckbill/u-boot-2016.01'
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mxsimage.o
tools/mxsimage.c:147:19: error: field 'cipher_ctx' has incomplete type
  EVP_CIPHER_CTX   cipher_ctx;
                   ^~~~~~~~~~
tools/mxsimage.c:148:15: error: field 'md_ctx' has incomplete type
  EVP_MD_CTX   md_ctx;
               ^~~~~~
tools/mxsimage.c: In function 'sb_postfill_image_header':
tools/mxsimage.c:1325:13: error: storage size of 'md_ctx' isn't known
  EVP_MD_CTX md_ctx;
             ^~~~~~
tools/mxsimage.c:1325:13: warning: unused variable 'md_ctx' [-Wunused-variable]
tools/mxsimage.c: In function 'sb_verify_image_header':
tools/mxsimage.c:1624:13: error: storage size of 'md_ctx' isn't known
  EVP_MD_CTX md_ctx;
             ^~~~~~
tools/mxsimage.c:1624:13: warning: unused variable 'md_ctx' [-Wunused-variable]
scripts/Makefile.host:108: recipe for target 'tools/mxsimage.o' failed
make[5]: *** [tools/mxsimage.o] Error 1
Makefile:1211: recipe for target 'tools' failed
make[4]: *** [tools] Error 2
make[4]: Leaving directory '/home/bjonglez/lede-17.01/build_dir/target-arm_arm926ej-s_musl-1.1.16_eabi/u-boot-duckbill/u-boot-2016.01'
Makefile:93: recipe for target '/home/bjonglez/lede-17.01/build_dir/target-arm_arm926ej-s_musl-1.1.16_eabi/u-boot-duckbill/u-boot-2016.01/.built' failed
make[3]: *** [/home/bjonglez/lede-17.01/build_dir/target-arm_arm926ej-s_musl-1.1.16_eabi/u-boot-duckbill/u-boot-2016.01/.built] Error 2
make[3]: Leaving directory '/home/bjonglez/lede-17.01/package/boot/uboot-mxs'
package/Makefile:105: recipe for target 'package/boot/uboot-mxs/compile' failed
make[2]: *** [package/boot/uboot-mxs/compile] Error 2

It looks like an API issue with host OpenSSL 1.1, similar to  FS#182 

27.08.2017983Base systemBug ReportLowLowuml: build failure: module mwifiex_sdio.ko is missinglede-17.01New Task Description

While test-building all architectures on latest lede-17.01 (https://git.lede-project.org/dc8392f6a) with CONFIG_ALL_KMODS=y, I bumped on this build failure for uml:

if [ -f /home/bjonglez/lede-17.01/staging_dir/target-x86_64_musl-1.1.16/pkginfo/mac80211.default.install.clean ]; then rm -f /home/bjonglez/lede-17.01/staging_dir/target-x86_64_musl-1.1.16/pkginfo/mac80211.default.install /home/bjonglez/lede-17.01/staging_dir/target-x86_64_musl-1.1.16/pkginfo/mac80211.default.install.clean; fi
mkdir -p /home/bjonglez/lede-17.01/bin/targets/uml/generic/packages /home/bjonglez/lede-17.01/build_dir/target-x86_64_musl-1.1.16/linux-uml/compat-wireless-2017-01-31/ipkg-x86_64/kmod-mwifiex-sdio/CONTROL /home/bjonglez/lede-17.01/staging_dir/target-x86_64_musl-1.1.16/pkginfo
ERROR: module '/home/bjonglez/lede-17.01/build_dir/target-x86_64_musl-1.1.16/linux-uml/compat-wireless-2017-01-31/drivers/net/wireless/marvell/mwifiex/mwifiex_sdio.ko'
is missing.
Makefile:1814: recipe for target '/home/bjonglez/lede-17.01/bin/targets/uml/generic/packages/kmod-mwifiex-sdio_4.4.83+2017-01-31-2_x86_64.ipk' failed
make[3]: *** [/home/bjonglez/lede-17.01/bin/targets/uml/generic/packages/kmod-mwifiex-sdio_4.4.83+2017-01-31-2_x86_64.ipk] Error 1
make[3]: Leaving directory '/home/bjonglez/lede-17.01/package/kernel/mac80211'
package/Makefile:105: recipe for target 'package/kernel/mac80211/compile' failed
make[2]: *** [package/kernel/mac80211/compile] Error 2
27.08.2017982Base systemBug ReportLowLowimx6: build failure: kmod-ath10k-ct is missing dependen...lede-17.01New Task Description

While test-building all architectures on latest lede-17.01 (https://git.lede-project.org/dc8392f6a) with CONFIG_ALL_KMODS=y, I bumped on this build failure for imx6:

find /home/bjonglez/lede-17.01/build_dir/target-arm_cortex-a9+neon_musl-1.1.16_eabi/linux-imx6/ath10k-ct-2017-01-26-d2bc84ff/ipkg-arm_cortex-a9_neon/kmod-ath10k-ct -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package kmod-ath10k-ct is missing dependencies for the following libraries:
hwmon.ko
Makefile:83: recipe for target '/home/bjonglez/lede-17.01/bin/targets/imx6/generic/packages/kmod-ath10k-ct_4.4.83+2017-01-26-d2bc84ff-1_arm_cortex-a9_neon.ipk' failed
make[3]: *** [/home/bjonglez/lede-17.01/bin/targets/imx6/generic/packages/kmod-ath10k-ct_4.4.83+2017-01-26-d2bc84ff-1_arm_cortex-a9_neon.ipk] Error 1
make[3]: Leaving directory '/home/bjonglez/lede-17.01/package/kernel/ath10k-ct'
package/Makefile:105: recipe for target 'package/kernel/ath10k-ct/compile' failed

It looks similar to  FS#226  that was fixed in https://git.lede-project.org/5f9598a but it seems that the fix was not enough for this target.

27.08.2017981KernelBug ReportLowLowarc770: build failure: xtables-addons fails to build LU...lede-17.01New Task Description

While test-building all architectures on latest lede-17.01 (https://git.lede-project.org/dc8392f6a) with CONFIG_ALL_KMODS=y, I bumped on this build failure for arc770:

make[7]: Entering directory '/home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/linux-4.4.83'
  CC [M]  /home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.o
In file included from <command-line>:0:0:
/home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c: In function 'inclinenumber':
././arch/arc/include/asm/current.h:20:17: error: expected identifier before '(' token
 #define current (curr_arc)
                 ^
/home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c:127:17: note: in expansion of macro 'current'
   int old = ls->current;
                 ^
././arch/arc/include/asm/current.h:20:17: error: expected identifier before '(' token
 #define current (curr_arc)
                 ^
/home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c:27:23: note: in expansion of macro 'current'
 #define next(ls) (ls->current = zgetc(ls->z))
                       ^
/home/bjonglez/lede-17.01/build_dir/target-arc_arc700_uClibc-1.0.14/linux-arc770_generic/xtables-addons-2.11/extensions/LUA/lua/llex.c:129:3: note: in expansion of macro 'next'
   next(ls);  /* skip `\n' or `\r' */
   ^

The failure is in the LUA extension to xtables-addons, and seems to be caused by a name collision with the following #define in arch/arc/include/asm/current.h in the kernel:

#define current (curr_arc)

I’m not sure this ever worked...

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


16.08.20181789Base systemBug ReportVery LowVery Lowrtl8xxxu Driver Errorlede-17.01Unconfirmed Task Description

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

 

LEDE: brim 2708
DOWNLOAD: https://archive.openwrt.org/releases/17.01.4/targets/brcm2708/bcm2708/

Running on a Raspberry Pi B REV 2

I have installed the kmod-rtl8xxxu package and its dependancies but still the device won’t show up.

So I ran dmesg and noticed this:

[ 7.127568] usbhid: USB HID core driver
[ 7.150947] xt_time: kernel timezone is -0000
[ 7.218384] PPP generic driver version 2.4.2
[ 7.228193] NET: Registered protocol family 24
[ 7.365719] random: nonblocking pool is initialized
[ 7.393191] usb 1-1.3: Vendor: Realtek
[ 7.399764] usb 1-1.3: Product: 802.11n NI
[ 7.406593] usb 1-1.3: Serial:
[ 7.412283] usb 1-1.3: rtl8192eu_parse_efuse: dumping efuse (0×200 bytes):
[ 7.421873] usb 1-1.3: 00: 29 81 00 7c 01 40 03 00
[ 7.429319] usb 1-1.3: 08: 40 74 04 50 14 00 00 00
[ 7.436637] usb 1-1.3: 10: 28 28 27 27 27 27 2a 2a
[ 7.443914] usb 1-1.3: 18: 2a 2a 2a f2 ef ef ff ff
[ 7.451129] usb 1-1.3: 20: ff ff ff ff ff ff ff ff
[ 7.458239] usb 1-1.3: 28: ff ff ff ff ff ff ff ff
[ 7.465222] usb 1-1.3: 30: ff ff ff ff ff ff ff ff
[ 7.472068] usb 1-1.3: 38: ff ff 28 28 28 28 28 28
[ 7.478840] usb 1-1.3: 40: 29 29 29 29 29 f2 ef ef
[ 7.485465] usb 1-1.3: 48: ff ff ff ff ff ff ff ff
[ 7.492049] usb 1-1.3: 50: ff ff ff ff ff ff ff ff
[ 7.498557] usb 1-1.3: 58: ff ff ff ff ff ff ff ff
[ 7.504925] usb 1-1.3: 60: ff ff ff ff ff ff ff ff
[ 7.511290] usb 1-1.3: 68: ff ff ff ff ff ff ff ff
[ 7.517588] usb 1-1.3: 70: ff ff ff ff ff ff ff ff
[ 7.523759] usb 1-1.3: 78: ff ff ff ff ff ff ff ff
[ 7.529913] usb 1-1.3: 80: ff ff ff ff ff ff ff ff
[ 7.535961] usb 1-1.3: 88: ff ff ff ff ff ff ff ff
[ 7.541997] usb 1-1.3: 90: ff ff ff ff ff ff ff ff
[ 7.548005] usb 1-1.3: 98: ff ff ff ff ff ff ff ff
[ 7.553881] usb 1-1.3: a0: ff ff ff ff ff ff ff ff
[ 7.559693] usb 1-1.3: a8: ff ff ff ff ff ff ff ff
[ 7.565440] usb 1-1.3: b0: ff ff ff ff ff ff ff ff
[ 7.571165] usb 1-1.3: b8: a1 1a 1f 00 00 00 ff ff
[ 7.576858] usb 1-1.3: c0: ff 01 00 10 00 00 00 ff
[ 7.582572] usb 1-1.3: c8: 00 00 ff ff ff ff ff ff
[ 7.588330] usb 1-1.3: d0: 57 23 09 01 e7 47 02 98
[ 7.594102] usb 1-1.3: d8: de d0 09 a6 8f 0a 03 52
[ 7.599907] usb 1-1.3: e0: 65 61 6c 74 65 6b 20 0e
[ 7.605670] usb 1-1.3: e8: 03 38 30 32 2e 31 31 6e
[ 7.611493] usb 1-1.3: f0: 20 4e 49 43 20 00 00 ff
[ 7.617367] usb 1-1.3: f8: ff ff ff ff ff ff ff ff
[ 7.623222] usb 1-1.3: 100: ff ff ff ff ff ff ff ff
[ 7.629258] usb 1-1.3: 108: ff ff ff ff ff ff ff ff
[ 7.635264] usb 1-1.3: 110: ff ff ff ff ff ff ff 0d
[ 7.641285] usb 1-1.3: 118: 03 00 05 00 30 00 00 00
[ 7.647376] usb 1-1.3: 120: 00 93 ff ff ff ff ff ff
[ 7.653477] usb 1-1.3: 128: ff ff ff ff ff ff ff ff
[ 7.659655] usb 1-1.3: 130: f6 a8 98 2d 03 92 98 00
[ 7.665849] usb 1-1.3: 138: fc 8c 00 11 9b 44 02 0a
[ 7.672072] usb 1-1.3: 140: ff ff ff ff ff ff ff ff
[ 7.678364] usb 1-1.3: 148: ff ff ff ff ff ff ff ff
[ 7.684601] usb 1-1.3: 150: ff ff ff ff ff ff ff ff
[ 7.690851] usb 1-1.3: 158: ff ff ff ff ff ff ff ff
[ 7.697093] usb 1-1.3: 160: ff ff ff ff ff ff ff ff
[ 7.703272] usb 1-1.3: 168: ff ff ff ff ff ff ff ff
[ 7.709442] usb 1-1.3: 170: ff ff ff ff ff ff ff ff
[ 7.715535] usb 1-1.3: 178: ff ff ff ff ff ff ff ff
[ 7.721616] usb 1-1.3: 180: ff ff ff ff ff ff ff ff
[ 7.727662] usb 1-1.3: 188: ff ff ff ff ff ff ff ff
[ 7.733627] usb 1-1.3: 190: ff ff ff ff ff ff ff ff
[ 7.739564] usb 1-1.3: 198: ff ff ff ff ff ff ff ff
[ 7.745450] usb 1-1.3: 1a0: ff ff ff ff ff ff ff ff
[ 7.751315] usb 1-1.3: 1a8: ff ff ff ff ff ff ff ff
[ 7.757175] usb 1-1.3: 1b0: ff ff ff ff ff ff ff ff
[ 7.763005] usb 1-1.3: 1b8: ff ff ff ff ff ff ff ff
[ 7.768816] usb 1-1.3: 1c0: ff ff ff ff ff ff ff ff
[ 7.774538] usb 1-1.3: 1c8: ff ff ff ff ff ff ff ff
[ 7.780301] usb 1-1.3: 1d0: ff ff ff ff ff ff ff ff
[ 7.785989] usb 1-1.3: 1d8: ff ff ff ff ff ff ff ff
[ 7.791650] usb 1-1.3: 1e0: ff ff ff ff ff ff ff ff
[ 7.797291] usb 1-1.3: 1e8: ff ff ff ff ff ff ff ff
[ 7.802892] usb 1-1.3: 1f0: ff ff ff ff ff ff ff ff
[ 7.808524] usb 1-1.3: 1f8: ff ff ff ff ff ff ff ff
[ 7.814134] usb 1-1.3: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[ 7.824421] usb 1-1.3: RTL8192EU MAC: 98:de:d0:09:a6:8f
[ 7.830775] usb 1-1.3: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[ 7.840314] usb 1-1.3: Direct firmware load for rtlwifi/rtl8192eu_nic.bin failed with error -2
[ 7.851713] usb 1-1.3: Falling back to user helper
[ 7.876775] firmware rtlwifi!rtl8192eu_nic.bin: firmware_loading_store: map pages failed
[ 7.888680] usb 1-1.3: request_firmware(rtlwifi/rtl8192eu_nic.bin) failed
[ 7.897543] usb 1-1.3: Fatal - failed to load firmware
[ 7.904765] rtl8xxxu: probe of 1-1.3:1.0 failed with error -11

16.08.20181788Base systemBug ReportVery LowLowath79: PCI devices get the same IRQ that causes problem...TrunkUnconfirmed Task Description

I am testing ath79 image on DIR-825B1 device.
The device has 2 ath9k wireless adapters connected to PCI BUS.

After af3b1756f00bfd1e6726d85ce23336112201afce the IRQ is assigned, but one for both adapters. In my case IRQ 12.

I think that causes problems:

1. If I disable the 5GHz device in /etc/config/wireless, the other device is malfunctioning. It doesn’t send beacons and isn’t detected.

2. If both wireless adapters are enabled, 5Ghz works poorly.

16.08.20181787Base systemBug ReportVery LowHighiw doesn't support wep with ibss adhocTrunkUnconfirmed Task Description

VoCore2 / OpenWrt SNAPSHOT, r7866-8c91807

Works:

# iw phy phy0 interface add f00 type ibss
# ip link set up f00
# iw dev f00 ibss join foobar 2412
root@tolppaB8D812x67_27402:~# iwinfo f00 info
f00 ESSID: “foobar”

        Access Point: B8:D8:12:67:6B:0A
        Mode: Ad-Hoc  Channel: 1 (2.412 GHz)
        Tx-Power: 0 dBm  Link Quality: unknown/70
        Signal: unknown  Noise: unknown
        Bit Rate: unknown
        Encryption: unknown
        Type: nl80211  HW Mode(s): 802.11bgn
        Hardware: unknown [Generic MAC80211]
        TX power offset: unknown
        Frequency offset: unknown
        Supports VAPs: yes  PHY name: phy0

Does NOT work:

# iw dev f00 ibss join foobar 2412 key d:0:42325d294a
Usage: iw [options] dev <devname> ibss join <SSID> <freq in MHz> [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]

Join the IBSS cell with the given SSID, if it doesn’t exist create
it on the given frequency. When fixed frequency is requested, don’t
join/create a cell on a different frequency. When a fixed BSSID is
requested use that BSSID and do not adopt another cell’s BSSID even
if it has higher TSF and the same SSID. If an IBSS is created, create
it with the specified basic-rates, multicast-rate and beacon-interval.

Options:

  1. -debug enable netlink debugging
16.08.20181785WebsiteBug ReportVery LowMediumarchive.openwrt.org not reachable on IPv6TrunkUnconfirmed Task Description

Hello,

Today I found that my LEDE 17.01.4 router can no longer download packages. The router is on an IPv6-only network, and 17.01.4 stuff seems to have been moved to archive.openwrt.org, which does not support IPv6:

archive.openwrt.org is an alias for archive-01.infra.openwrt.org.
archive-01.infra.openwrt.org has address 81.0.124.218

whereas the normal download servers do:

$ host downloads.lede-project.org
downloads.lede-project.org is an alias for downloads2.lede-project.org.
downloads2.lede-project.org has address 148.251.78.235
downloads2.lede-project.org has IPv6 address 2a01:4f8:202:43ea::3

$ host downloads.openwrt.org
downloads.openwrt.org is an alias for mirror-01.infra.openwrt.org.
mirror-01.infra.openwrt.org has address 148.251.78.235
mirror-01.infra.openwrt.org has IPv6 address 2a01:4f8:202:43ea::2

Can you please add IPv6 on the archive as well.

Thanks!

16.08.20181784KernelBug ReportVery LowMediumMany 5Ghz channels are missing from the Linksys EA3500 AllUnconfirmed Task Description

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

 

As far as I am aware this issue has been present since 17.XX
On EA3500 and EA4500 only the lowest 4 5Ghz channels are available.

There is a [[Patch|https://patchwork.kernel.org/patch/10060831/]] which was accepted and fixed the issue 
but never merged/included in the source for these devices .
Steps to reproduce this issue is simply installing Lede on the device  , same on any Lede 17.XX version or 
even the newly released 18.06.0.
15.08.20181782Base systemBug ReportVery LowLowunable to boot ath79 GL-AR300M NANDTrunkUnconfirmed Task Description

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

 

ar71xx NAND works fine on GL-AR300M but ath79 target does not want to boot, it seems NAND is not detected even though kernel support seems to be there.

Loading from device 0: ath-spi-nand (offset 0x0)
   Image Name:   MIPS OpenWrt Linux-4.14.62
   Created:      2018-08-15   5:42:36 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1568489 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
## Booting image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.62
   Created:      2018-08-15   5:42:36 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1568489 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x81000040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728

Starting kernel ...

[    0.000000] Linux version 4.14.62 (dev@4530s) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7862-ae9c3105a3)) #0 Wed Aug 15 05:42:36 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is GL.iNet GL-AR300M
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 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] 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] 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] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 123376K/131072K available (3660K kernel code, 136K rwdata, 856K rodata, 1228K init, 206K bss, 7696K 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] CPU clock: 650.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[    0.000009] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[    0.008228] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[    0.074858] pid_max: default: 32768 minimum: 301
[    0.079924] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086897] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098338] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108751] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115251] pinctrl core: initialized pinctrl subsystem
[    0.121243] NET: Registered protocol family 16
[    0.147164] clocksource: Switched to clocksource MIPS
[    0.153476] NET: Registered protocol family 2
[    0.158826] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.166184] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.172938] TCP: Hash tables configured (established 1024 bind 1024)
[    0.179786] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.185953] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.192867] NET: Registered protocol family 1
[    0.201100] Crashlog allocated RAM at address 0x3f00000
[    0.207850] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.219474] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.225616] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.244306] io scheduler noop registered
[    0.248491] io scheduler deadline registered (default)
[    0.256028] pinctrl-single 1804002c.pinmux: 576 pins at pa b804002c size 72
[    0.264336] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.271753] console [ttyS0] disabled
[    0.275559] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 16550A
[    0.284705] console [ttyS0] enabled
[    0.284705] console [ttyS0] enabled
[    0.292263] bootconsole [early0] disabled
[    0.292263] bootconsole [early0] disabled
[    0.305162] ath79-spi 1f000000.spi: cs1 >= max 1
[    0.310002] spi_master spi0: spi_device register error /ahb/spi@1f000000/flash@1
[    0.317655] spi_master spi0: Failed to create SPI device for /ahb/spi@1f000000/flash@1
[    0.327827] m25p80 spi0.0: found mx25l12805d, expected w25q128
[    0.333942] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.339242] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.345803] Creating 4 MTD partitions on "spi0.0":
[    0.350775] 0x000000000000-0x000000040000 : "u-boot"
[    0.356716] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.362986] 0x000000050000-0x000000ff0000 : "reserved"
[    0.369111] 0x000000ff0000-0x000001000000 : "art"
[    0.375186] libphy: Fixed MDIO Bus: probed
[    0.717555] libphy: ag71xx_mdio: probed
[    1.007627] mdio-bus.0:1f: Found an AR934X built-in switch
[    1.013471] libphy: ar7240sw_mdio: probed
[    1.409381] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd042, driver=Generic PHY]
[    1.419817] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.758809] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.768733] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    1.776980] NET: Registered protocol family 10
[    1.786051] Segment Routing with IPv6
[    1.790004] NET: Registered protocol family 17
[    1.794641] 8021q: 802.1Q VLAN Support v1.8
[    1.801927] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.809717] Please append a correct "root=" boot option; here are the available partitions:
[    1.818357] 1f00             256 mtdblock0 
[    1.818361]  (driver?)
[    1.825115] 1f01              64 mtdblock1 
[    1.825118]  (driver?)
[    1.831878] 1f02           16000 mtdblock2 
[    1.831881]  (driver?)
[    1.838635] 1f03              64 mtdblock3 
[    1.838638]  (driver?)
[    1.845390] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.854644] Rebooting in 1 seconds..
�

U-Boot 1.1.4-g36de7573-dirty (Jun  1 2017 - 09:14:12)


15.08.20181781Base systemBug ReportVery LowMedium"/sbin/block detect" reports improper uuid for raid par...AllUnconfirmed Task Description

This bug is device independent (I think).

As a result of this bug, /etc/config/fstab may contain damaged content, and also block mount may fail.

‘block detect’ reports bad uuid for /dev/sda1 (and others) mixing inside uuid of raid volume with outside of the partitions.
Bug is ‘block detect’ showing the same uuid for /dev/sda1 and /dev/md1 while they are different, as you can observe in /sbin/blkid output at the middle of output below.

Important: /sbin/blkid from busybox may have same/similar bug as its reporting even different uuid. The standalone /usr/sbin/blkid works properly (shown in the middle of below) and should be basis for comparison.

root@bee:/tmp# block detect
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'

config 'mount'
        option  target  '/mnt/sda1'
        option  uuid    '48f38899-5efb-4477-adca-bf11d81df99f'
        option  enabled '0'

config 'mount'
        option  target  '/mnt/sdb1'
        option  uuid    '48f38899-5efb-4477-adca-bf11d81df99f'
        option  enabled '0'

config 'mount'
        option  target  '/mnt/md1'
        option  uuid    '48f38899-5efb-4477-adca-bf11d81df99f'
        option  enabled '0'


root@bee:/tmp# which blkid
/usr/sbin/blkid
root@bee:/tmp# blkid
/dev/mtdblock5: TYPE="squashfs"
/dev/sda1: UUID="8b2d137c-4973-133d-6de4-7e91c4a4cdb0" TYPE="linux_raid_member" PARTUUID="f6eb912c-6ef7-4b8b-90d7-3ccc4e05d0c3"
/dev/sdb1: UUID="8b2d137c-4973-133d-6de4-7e91c4a4cdb0" TYPE="linux_raid_member" PARTUUID="731a8023-5734-463e-8866-46ea97a3f928"
/dev/md1: LABEL="OVERLAYROOT" UUID="48f38899-5efb-4477-adca-bf11d81df99f" TYPE="ext4"


root@bee:/tmp# /sbin/blkid
/dev/md1: LABEL="OVERLAYROOT" UUID="48f38899-5efb-4477-adca-bf11d81df99f" TYPE="ext4"
/dev/sda1: UUID="7c132d8b-3d13-7349-917e-e46db0cda4c4" TYPE="linux_raid_member"
/dev/sdb1: UUID="7c132d8b-3d13-7349-917e-e46db0cda4c4" TYPE="linux_raid_member"
15.08.20181780Base systemBug ReportVery LowLowbrcm63xx: SR102 double entry in make infoTrunkUnconfirmed Task Description

/openwrt/snapshots/brcm63xx/generic

  make info
  [...]
  SR102:
      SKY SR102
      Packages: kmod-b43 wpad-mini kmod-usb2 kmod-usb-ohci iwinfo
  SR102:
      SKY-SR102
      Packages: kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
  [...]

I guess that’s an typo somewhere but as I don’t know about the deeper structure nor the model I can’t suggest a fix.

14.08.20181779ToolchainBug ReportVery LowMediumtools/include headers contain old, incomplete versions?AllUnconfirmed Task Description

I tried to add a package that includes <elf.h> on host and this comes from the tools/include files. The build failed because “AT_HWCAP2” was undefined.

After comparing the host distro against tools/include its clear that those files are quite old “1995-2012” vs “1995-2018”.
So why do we keep those few headers around in a old version anyway and not use the host headers?

If they are just some old copy’s, than maybe they should at least be updated?

14.08.20181778Base systemBug ReportVery LowHighrelease 18.06 does not work for recent RouterBoard 450G...openwrt-18.06Unconfirmed Task Description

OpenWrt 18.06. does not work on at least some RB45Gs, because the yaffs2-Image for the kernel in

openwrt-18.06.0-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin

seems to be created with a pagesize of 2048, but my recent RB450G contains a NAND-Chip with a pagesize of 4096 (as displayed by the linux-kernel). Flashing this image onto this chip with “nandwrite -o”, inside function platform_nand_pre_upgrade() in file target/linux/ar71xx/base-files/lib/upgrade/platform.sh, screws up oop-data and renders the kernel-nand-partition unbootable, unreadable, unwritable and even unerasable (at least with “mtd erase”).

See attached File cap1.txt for an installation log. The Installation seemed to work just fine, but the device did not bool any more.
See attached File cap2.txt for a log of a netboot-session after that. The kernel showed up 6 new “Bad eraseblock”s and “mtd erase” did not work any more.
After restoring Mikrotik’s RouterOS to the device with their NetInstall-Application, the “bad eraseblock”s were gone, which prooves, that the NAND-Chip is not really defective and the “Bad eraseblock” are erroneous.

There seem to be RouterBoards with different NAND-Chips around: This page:

https://wikidevi.com/wiki/MikroTik_RouterBOARD_450G_%28RB450G%29

states that it is a “Hynix HY27UT084G2A”, but the Linux-Kernel states that
the Chip is from Toshiba. Hence the sysupgrade-procedure should probably prepared
for different yaffs2-page-sizes.

Workaround:

After quite some time, I figures out the following workaround:

  1. Netboot OpenWrt 18-06.
  2. Open the file /lib/upgrade/platform.sh with vi and comment out the nandwrite-call in line 760.
  3. Call sysupgrade as usual –> The Installation will not be bootable, but the kernel-Partition will still be accessable
  4. Netboot OpenWrt 14.07 (because v18.06 lacks yaffs2-kernel-support !)
  5. Manually install the kernel-file with:
mtd erase /dev/mtd5
mkdir /mnt/kernel
mount -t yaffs2 /dev/mtdblock5 /mnt/kernel
cd /mnt/kernel
wget -O kernel http://192.168.88.1:8080/openwrt-18.06.0-ar71xx-mikrotik-vmlinux-lzma.elf
chmod +x kernel
cd /
sync
umount /mnt/kernel

With this procedure I got a working installation.

14.08.20181777Base systemBug ReportVery LowVery Lowrelease 18.06 on RouterBoards (ar71xx/mikrotik): superf...openwrt-18.06Unconfirmed Task Description

The sysupgrade-procedure of release 18.06 for RouterBoards (ar71xx/mikrotik)
(as contained in openwrt-18.06.0-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf) creates
a superfluous UBI volume named “none”.

Details:

The function platform_nand_pre_upgrade() intarget/linux/ar71xx/base-files/lib/upgrade/platform.sh sets
“CI_KERNPART=none” to bypass the normal kernel-install-procedure.
This works, but causes nand_upgrade_prepare_ubi() in package/base-files/files/lib/upgrade/nand.sh
to creat an UBI volume named “none”, containing a (supposedly defective) kernel-yaffs2-image.

Used command :

sysupgrade -n -v http://192.168.88.1:8080/openwrt-18.06.0-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin

14.08.20181776Base systemBug ReportVery LowMediumImageBuilder for brcm47x-mips74k reports "WARNING: maxl...openwrt-18.06Unconfirmed Task Description

I am using OpenWRT Image Builder 18.06 for brcm47x-mips74k like this:

make image PROFILE=linksys-e2500-v3 PACKAGES="openvpn-openssl mini_snmpd dnsmasq-full luci-app-mwan3 luci-app-sqm usb-modeswitch -dnsmasq kmod-nf-nathelper kmod-nf-nathelper-extra luci-ssl-openssl luci-proto-3g luci-app-ddns openssl-util luci-theme-material"

and I get

mjn3's trx replacement - v0.81.1
WARNING: maxlen exceeds default maximum!  Beware of overwriting nvram!

more than a dozen times. I am unsure whether I should use the resulting images or if they are indeed broken.

13.08.20181772Base systemBug ReportVery LowMediumsunxi: broken sysupgradeAllUnconfirmed Task Description

Hi all
With both trunk (even pre 18.06.x) 18.06.x the sysupgrade for sunxi target (verified with BananaPi and new Orange Pi PC2) does not work
Tested with both ext4 and squashfs upgrade (of course only ext4 to ext4 and squashfs to squashfs) creating a dummy file under /usr/bin that remains after reboot
First log attempting to upgrade img.gz

root@MenionRouter:/# sysupgrade -v /tmp/openwrt-sunxi-cortexa53-sun50i-h5-orange
pi-pc2-squashfs-sdcard.img.gz
Image metadata not found
Reading partition table from bootdisk... gzip: stdout: Broken pipe
Reading partition table from image...
Saving config files...
/etc/config/.system.uci-AHDKKD
/etc/config/adblock
/etc/config/adblock-opkg
/etc/config/ddns
/etc/config/dhcp
/etc/config/dropbear
/etc/config/firewall
/etc/config/luci
/etc/config/luci-opkg
/etc/config/minidlna
/etc/config/mwan3
/etc/config/network
/etc/config/nlbwmon
/etc/config/ntpclient
/etc/config/openvpn
/etc/config/openvpn-opkg
/etc/config/openvpn_recipes
/etc/config/rpcd
/etc/config/squid
/etc/config/stunnel
/etc/config/system
/etc/config/ucitrack
/etc/config/ucitrack-opkg
/etc/config/uhttpd
/etc/config/uhttpd-opkg
/etc/config/upnpd
/etc/config/upnpd-opkg
/etc/config/wifi_schedule
/etc/config/wireless
/etc/dropbear/dropbear_rsa_host_key
/etc/easy-rsa/android.ovpn
/etc/easy-rsa/keys/01.pem
/etc/easy-rsa/keys/02.pem
/etc/easy-rsa/keys/ca.crt
/etc/easy-rsa/keys/ca.key
/etc/easy-rsa/keys/dh2048.pem
/etc/easy-rsa/keys/index.txt
/etc/easy-rsa/keys/index.txt-opkg
/etc/easy-rsa/keys/index.txt.attr
/etc/easy-rsa/keys/index.txt.attr.old
/etc/easy-rsa/keys/index.txt.old
/etc/easy-rsa/keys/my-Ros.crt
/etc/easy-rsa/keys/my-Ros.csr
/etc/easy-rsa/keys/my-Ros.key
/etc/easy-rsa/keys/my-Ros.p12
/etc/easy-rsa/keys/my-android.crt
/etc/easy-rsa/keys/my-android.csr
/etc/easy-rsa/keys/my-android.key
/etc/easy-rsa/keys/my-android.p12
/etc/easy-rsa/keys/my-lavoro.crt
/etc/easy-rsa/keys/my-lavoro.csr
/etc/easy-rsa/keys/my-lavoro.key
/etc/easy-rsa/keys/my-lavoro.p12
/etc/easy-rsa/keys/my-server.crt
/etc/easy-rsa/keys/my-server.csr
/etc/easy-rsa/keys/my-server.key
/etc/easy-rsa/keys/serial
/etc/easy-rsa/keys/serial-opkg
/etc/easy-rsa/keys/serial.old
/etc/easy-rsa/lavoro.ovpn
/etc/easy-rsa/openssl-1.0.0.cnf
/etc/easy-rsa/openssl-1.0.cnf
/etc/easy-rSending TERM to remaining processes ... sleep sleep ubusd askfirst logd rpcd monitor ovsdb-server monitor ovs-vswitchd netifd odhcpd minidlna uhttpd nlbwmon openvpn openvpn squid ntpd acpid hostapd hostapd miniupnpd miniupnpd[5112]: shutting down MiniUPnPd
sh dnsmasq sh
acpid: exiting
[ 175.976969] device wlan0 left promiscuous mode
[ 175.982039] br-lan: port 3(wlan0) entered disabled state
[ 176.032358] device wlan1 left promiscuous mode
[ 176.036984] br-lan: port 2(wlan1) entered disabled state
Sending KILL to remaining processes ... squid
Switching to ramdisk...
Performing system upgrade...
Reading partition table from bootdisk...
/usr/bin/zcat: exec: line 51: gzip: not found
[ 181.207511] kvm: exiting hardware virtualization
0+0 records in
0+0 records out
Reading partition table from image...
Invalid partition table on /tmp/image.bs
[ 181.217810] reboot: Restarting system

As you can see it seems that gzip is missing from the ramdisk, so the upgrade aborts. After having seen this, I first uncrompress the img.gz to img and tried again:

root@MenionRouter:/# sysupgrade -v /tmp/openwrt-sunxi-cortexa53-sun50i-h5-orange
pi-pc2-squashfs-sdcard.img
Reading partition table from bootdisk...
cat: write error: Broken pipe
Reading partition table from image...
Saving config files...
/etc/config/.system.uci-AHDKKD
/etc/config/adblock
/etc/config/adblock-opkg
/etc/config/ddns
/etc/config/dhcp
/etc/config/dropbear
/etc/config/firewall
/etc/config/luci
/etc/config/luci-opkg
/etc/config/minidlna
/etc/config/mwan3
/etc/config/network
/etc/config/nlbwmon
/etc/config/ntpclient
/etc/config/openvpn
/etc/config/openvpn-opkg
/etc/config/openvpn_recipes
/etc/config/rpcd
/etc/config/squid
/etc/config/stunnel
/etc/config/system
/etc/config/ucitrack
/etc/config/ucitrack-opkg
/etc/config/uhttpd
/etc/config/uhttpd-opkg
/etc/config/upnpd
/etc/config/upnpd-opkg
/etc/config/wifi_schedule
/etc/config/wireless
/etc/dropbear/dropbear_rsa_host_key
/etc/easy-rsa/android.ovpn
/etc/easy-rsa/keys/01.pem
/etc/easy-rsa/keys/02.pem
/etc/easy-rsa/keys/ca.crt
/etc/easy-rsa/keys/ca.key
/etc/easy-rsa/keys/dh2048.pem
/etc/easy-rsa/keys/index.txt
/etc/easy-rsa/keys/index.txt-opkg
/etc/easy-rsa/keys/index.txt.attr
/etc/easy-rsa/keys/index.txt.attr.old
/etc/easy-rsa/keys/index.txt.old
/etc/easy-rsa/keys/my-Ros.crt
/etc/easy-rsa/keys/my-Ros.csr
/etc/easy-rsa/keys/my-Ros.key
/etc/easy-rsa/keys/my-Ros.p12
/etc/easy-rsa/keys/my-android.crt
/etc/easy-rsa/keys/my-android.csr
/etc/easy-rsa/keys/my-android.key
/etc/easy-rsa/keys/my-android.p12
/etc/easy-rsa/keys/my-lavoro.crt
/etc/easy-rsa/keys/my-lavoro.csr
/etc/easy-rsa/keys/my-lavoro.key
/etc/easy-rsa/keys/my-lavoro.p12
/etc/easy-rsa/keys/my-server.crt
/etc/easy-rsa/keys/my-server.csr
/etc/easy-rsa/keys/my-server.key
/etc/easy-rsa/keys/serial
/etc/easy-rsa/keys/serial-opkg
/etc/easy-rsa/keys/serial.old
/etc/easy-rsa/lavoro.ovpn
/etc/easy-rsa/openssl-1.0.0.cnf
/etc/easy-rsa/opensslSending TERM to remaining processes ... sleep sleep ubusd askfirst logd rpcd monitor ovsdb-server monitor ovs-vswitchd netifd odhcpd minidlna uhttpd nlbwmon openvpn openvpn squid ntpd acpid hostapd hostapd miniupnpd miniupnpd[5126]: shutting down MiniUPnPd
sh sh dnsmasq
acpid: exiting
[ 92.437752] device wlan1 left promiscuous mode
[ 92.442327] br-lan: port 2(wlan1) entered disabled state
[ 92.448910] device wlan0 left promiscuous mode
[ 92.453768] br-lan: port 3(wlan0) entered disabled state
Sending KILL to remaining processes ... squid
Switching to ramdisk...
Performing system upgrade...
Reading partition table from bootdisk...
cat: write error: Broken pipe
Reading partition table from image...
1016+0 records in
1016+0 records out
Writing image to /dev/mmcblk0p1...
cat: write error: Broken pipe
40960+0 records in
20+0 records out
Writing image to /dev/mmcblk0p2...
38223+1 records in
18+1 records out
Writing new UUID to /dev/mmcblk0...
4+0 records in
4+0 records out
Upgrade completed
Rebooting system...
umount: can’t unmount /dev: Resource busy
umount: can’t unmount /tmp: Resource busy

Here something happen, but I get this write error due to broken pipe happening randomly in one or more of the mmc write. The result is a working SD card, I see the config being restored (even if with timestamp issue)

[ 9.963481] mount_root: switching to f2fs overlay
- config restore -
tar: etc/config/.system.uci-AHDKKD: time stamp 2017-08-21 21:02:25 is 1503349334.873834079 s in the future
tar: etc/config/adblock: time stamp 2018-03-02 18:15:32 is 1520014521.872032829 s in the future
tar: etc/config/adblock-opkg: time stamp 2018-02-24 14:13:16 is 1519481585.871617621 s in the future
tar: etc/config/ddns: time stamp 2018-03-02 08:48:43 is 1519980512.871290329 s in the future

But the temp file written in the overlay is still there:

root@MenionRouter:/# cd /usr/bin
root@MenionRouter:/usr/bin# ls foo
foo
root@MenionRouter:/usr/bin#

So apparently there are two issue (maybe correlated): there is no gzip in the ramdisk which prevent img.gz to work and the overlay filesystem that won’t get reset
Bye


13.08.20181771Base systemBug ReportVery LowLowError Log - mac80211/rx.c openwrt-18.06Unconfirmed Task Description

WAN stopped working then noticed this in dmesg not sure if to events related

[85451.573214] ————[ cut here ]———— [85451.576496] WARNING: CPU: 0 PID: 3 at backports-2017-11-01/net/mac80211/rx.c:4347 0x82c26514 [mac80211@82c00000+0x61ca0]
[85451.587239] Rate marked as an HT rate but passed status→rate_idx is not an MCS index [0-76]: 98 (0×62)
[85451.596538] Modules linked in: ltq_atm_ar9 ath9k ath9k_common ath9k_hw ath pppoe 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 pppox ppp_async owl_loader 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 ltq_deu_ar9 iptable_mangle iptable_filter ip_tables crc_ccitt compat drv_dsl_cpe_api ledtrig_usbport drv_mei_cpe ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc br2684 atm usb_storage sd_mod scsi_mod ext4 jbd2 mbcache crc32c_generic dwc2 gpio_button_hotplug
[85451.667460] aead cryptomgr crypto_null
[85451.669954] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.9.111 #0
[85451.676117] Stack : 805e7892 00000036 00000000 00000001 00000000 00000000 00000000 00000000
[85451.684365] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[85451.692659] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[85451.700953] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[85451.709248] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[85451.717542] ...
[85451.719962] Call Trace:
[85451.722309] [<8000edb0>] 0x8000edb0
[85451.725675] [<8000edb0>] 0x8000edb0
[85451.729200] [<800271c8>] 0x800271c8
[85451.732636] [<82c26514>] 0x82c26514 [mac80211@82c00000+0x61ca0]
[85451.738553] [<80027200>] 0×80027200 [85451.741994] [<82c26514>] 0x82c26514 [mac80211@82c00000+0x61ca0]
[85451.747876] [<802c9c3c>] 0x802c9c3c
[85451.751320] [<802c9e48>] 0x802c9e48
[85451.754782] [<833fc37c>] 0x833fc37c [ath9k_common@833fc000+0x2a80]
[85451.760992] [<82ce78ac>] 0x82ce78ac [ath9k@82ce0000+0x160f0]
[85451.766578] [<802d6a00>] 0x802d6a00
[85451.769951] [<82ce4d90>] 0x82ce4d90 [ath9k@82ce0000+0x160f0]
[85451.775622] [<8002a790>] 0x8002a790
[85451.779032] [<80029fc0>] 0x80029fc0
[85451.782482] [<800495cc>] 0x800495cc
[85451.785946] [<8002a118>] 0x8002a118
[85451.789399] [<80040568>] 0×80040568 [85451.792840] [<80044a28>] 0x80044a28
[85451.796337] [<800448b0>] 0x800448b0
[85451.799826] [<800448b0>] 0x800448b0
[85451.803222] [<80040974>] 0×80040974 [85451.806674] [<8014a005>] 0x8014a005
[85451.810205] [<8004085c>] 0x8004085c
[85451.813557] [<80009798>] 0×80009798 [85451.817048]
[85451.818496] —[ end trace 368f08669849794a ]—

# cat /etc/os-release
NAME=”OpenWrt” VERSION=”18.06.0” ID=”openwrt” ID_LIKE=”lede openwrt” PRETTY_NAME=”OpenWrt 18.06.0” VERSION_ID=”18.06.0” HOME_URL=”http://openwrt.org/” BUG_URL=”http://bugs.openwrt.org/” SUPPORT_URL=”http://forum.lede-project.org/” BUILD_ID=”r7188-b0b5c64c22” LEDE_BOARD=”lantiq/xway” LEDE_ARCH=”mips_24kc” LEDE_TAINTS=”” LEDE_DEVICE_MANUFACTURER=”OpenWrt” LEDE_DEVICE_MANUFACTURER_URL=”http://openwrt.org/” LEDE_DEVICE_PRODUCT=”Generic” LEDE_DEVICE_REVISION=”v0” LEDE_RELEASE=”OpenWrt 18.06.0 r7188-b0b5c64c22”

12.08.20181769PackagesFeature RequestVery LowMediumEnable built-in RADIUS support for full version of host...TrunkUnconfirmed Task Description

hostapd has built-in RADIUS server and capable to perform EAP authentication without external authenticator. Unfortunately OpenWRT package builds full version of hostapd with internal crypto backend. All functions related to EAP-TLS in internal crypto backend stubbed with empty bodies returning error immediately.

Recently I used FreeRADIUS running directly on my router, but it requires pretty remarkable amount of RAM. I ended up with patch for openwrt build specs in order to build fully functional hostapd. Also I made some ugly hacks in netifd scripts to compose proper hostapd.conf. Finally, I got working EAP-TLS auth virtually with no additional costs.

Probably support for internal RADIUS and some authentication methods should be added to LUCI/UCI configuration interface.

I guess secure WLAN is not a luxury feature and EAP auth is mandatory for modern secure networks.

My device is: TP-Link Archer C50 V1
My current OpenWRT version is: OpenWrt 18.06.0, r7188-b0b5c64c22

12.08.20181768Base systemBuild FailureVery LowVery LowCompile broken in latest openwrtTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

Compile openwrt for VoCore2

- Software versions of OpenWrt/LEDE release, packages, etc.

commit: 31aeae07748254abf611f578efaced469c942dee, default setting, compile in MacOS.

- Steps to reproduce

 

Just choose VoCore2 and rest using default setting, call make, then when compile base-files, it will show error:

make[3]: Entering directory `/Volumes/VoCore2/openwrt/package/base-files’ rm -f /Volumes/VoCore2/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/base-files/.configured_*
rm -f /Volumes/VoCore2/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.base-files_installed
[ -s /Volumes/VoCore2/openwrt/key-build -a -s /Volumes/VoCore2/openwrt/key-build.pub ] || /Volumes/VoCore2/openwrt/staging_dir/host/bin/usign -G -s /Volumes/VoCore2/openwrt/key-build -p /Volumes/VoCore2/openwrt/key-build.pub -c “Local build key” [ -s /Volumes/VoCore2/openwrt/key-build.ucert ] || /Volumes/VoCore2/openwrt/staging_dir/host/bin/ucert -I -c /Volumes/VoCore2/openwrt/key-build.ucert -p /Volumes/VoCore2/openwrt/key-build.pub -s /Volumes/VoCore2/openwrt/key-build
dyld: Library not loaded: libubox.dylib

Referenced from: /Volumes/VoCore2/openwrt/staging_dir/host/bin/ucert
Reason: image not found

bash: line 1: 15539 Abort trap: 6
/Volumes/VoCore2/openwrt/staging_dir/host/bin/ucert -I -c /Volumes/VoCore2/openwrt/key-build.ucert -p /Volumes/VoCore2/openwrt/key-build.pub -s /Volumes/VoCore2/openwrt/key-build
make[3]: * [/Volumes/VoCore2/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/base-files/.configured_f8a7ef425d28326c27dae6762b223070_8e081b74cf069e1e6800a5bbcbb282f0] Error 134
make[3]: Leaving directory `/Volumes/VoCore2/openwrt/package/base-files’ time: package/base-files/compile#0.19#0.14#0.37
make[2]:
* [package/base-files/compile] Error 2
make[2]: Leaving directory `/Volumes/VoCore2/openwrt’ make[1]: * [/Volumes/VoCore2/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory `/Volumes/VoCore2/openwrt’ make:
* [world] Error 2

This only happens to the latest version of openwrt, one monthes ago that openwrt version still works.


12.08.20181766Base systemBug ReportVery LowLowopkg fails signature check on already downloaded and ve...TrunkUnconfirmed Task Description

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

opkg fails signature check on already downloaded and verified package lists, which makes `opkg upgrade` impossible.

```
root@OpenWrt:~# ls /tmp/opkg-lists/
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/x86/64/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/x86/64/packages/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/packages/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/routing/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/routing/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/telephony/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/telephony/Packages.sig Signature check passed.
root@OpenWrt:~# ls /tmp/opkg-lists/
openwrt_base openwrt_core.sig openwrt_packages openwrt_routing.sig
openwrt_base.sig openwrt_luci openwrt_packages.sig openwrt_telephony
openwrt_core openwrt_luci.sig openwrt_routing openwrt_telephony.sig
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/x86/64/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/x86/64/packages/Packages.sig Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/Packages.sig Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/Packages.sig Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/packages/Packages.sig Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/routing/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/routing/Packages.sig Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/telephony/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/telephony/Packages.sig Signature check failed.
Remove wrong Signature file.
root@OpenWrt:~# ls /tmp/opkg-lists/
root@OpenWrt:~#
```

```
root@OpenWrt:~# ls /tmp/opkg-lists/
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/x86/64/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/x86/64/packages/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/packages/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/routing/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/routing/Packages.sig Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/telephony/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/telephony/Packages.sig Signature check passed.
root@OpenWrt:~# opkg list-upgradable
luci-lib-ip - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
luci-theme-bootstrap - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
netifd - 2018-05-30-a580028d-1 - 2018-07-30-a0a1e52e-1
luci-app-firewall - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
libuci - 2018-03-24-5d2bf09e-1 - 2018-08-11-4c8b4d6e-1
uclient-fetch - 2017-11-02-4b87d831-1 - 2018-08-03-ae1c656f-1
libuclient - 2017-11-02-4b87d831-1 - 2018-08-03-ae1c656f-1
uci - 2018-03-24-5d2bf09e-1 - 2018-08-11-4c8b4d6e-1
luci-proto-ppp - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
luci-mod-admin-full - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
luci-base - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
luci-proto-ipv6 - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
luci-lib-nixio - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
luci-lib-jsonc - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
luci - git-18.210.69179-6df9a57-1 - git-18.219.52706-a49e4e4-1
root@OpenWrt:~# opkg list-upgradable | cut -d ' ' -f 1 | xargs opkg upgrade
Upgrading luci-lib-ip on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-lib-ip_git-18.219.52706-a49e4e4-1_x86_64.ipk Upgrading luci-theme-bootstrap on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-theme-bootstrap_git-18.219.52706-a49e4e4-1_all.ipk Upgrading netifd on root from 2018-05-30-a580028d-1 to 2018-07-30-a0a1e52e-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/netifd_2018-07-30-a0a1e52e-1_x86_64.ipk Upgrading luci-app-firewall on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-app-firewall_git-18.219.52706-a49e4e4-1_all.ipk Upgrading libuci on root from 2018-03-24-5d2bf09e-1 to 2018-08-11-4c8b4d6e-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/libuci_2018-08-11-4c8b4d6e-1_x86_64.ipk Upgrading uclient-fetch on root from 2017-11-02-4b87d831-1 to 2018-08-03-ae1c656f-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/uclient-fetch_2018-08-03-ae1c656f-1_x86_64.ipk Upgrading libuclient on root from 2017-11-02-4b87d831-1 to 2018-08-03-ae1c656f-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/libuclient_2018-08-03-ae1c656f-1_x86_64.ipk Upgrading uci on root from 2018-03-24-5d2bf09e-1 to 2018-08-11-4c8b4d6e-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/base/uci_2018-08-11-4c8b4d6e-1_x86_64.ipk Upgrading luci-proto-ppp on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-proto-ppp_git-18.219.52706-a49e4e4-1_all.ipk Upgrading luci-mod-admin-full on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-mod-admin-full_git-18.219.52706-a49e4e4-1_x86_64.ipk Upgrading luci-base on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-base_git-18.219.52706-a49e4e4-1_x86_64.ipk Upgrading luci-proto-ipv6 on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-proto-ipv6_git-18.219.52706-a49e4e4-1_all.ipk Upgrading luci-lib-nixio on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-lib-nixio_git-18.219.52706-a49e4e4-1_x86_64.ipk Upgrading luci-lib-jsonc on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci-lib-jsonc_git-18.219.52706-a49e4e4-1_x86_64.ipk Upgrading luci on root from git-18.210.69179-6df9a57-1 to git-18.219.52706-a49e4e4-1...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/x86_64/luci/luci_git-18.219.52706-a49e4e4-1_all.ipk Collected errors:
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_base.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_base.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_base.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_base.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_base.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
* opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/openwrt_luci.
xargs: opkg: exited with status 255; aborting
root@OpenWrt:~#
```

10.08.20181765Base systemBug ReportVery LowMediumdnsmasq-full fails to listen on dhcp socket after reboo...openwrt-18.06Waiting on reporter Task Description

When I restart my router, dnsmasq comes up and works for IPv6, but fails to serve out dhcp for ipv4.

Supply the following if possible:
- Device problem occurs on

Ubiquiti Edgerouter Lite

- Software versions of OpenWrt/LEDE release, packages, etc.

OpenWrt 18.06.0, r7188-b0b5c64c22
dnsmasq-full - 2.80test3-1

- Steps to reproduce

Reboot the router. When it comes up just after reboot, it fails to respond to DHCP requests. lsof shows that it’s not listening on port 67, and does not have /tmp/dhcp.leases open:

root@junction:~# lsof -p 1792 -P
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dnsmasq 1792 dnsmasq cwd DIR 0,15 3488 1166 /
dnsmasq 1792 dnsmasq rtd DIR 0,15 3488 1166 /
dnsmasq 1792 dnsmasq txt REG 7,0 349744 1526 /usr/sbin/dnsmasq
dnsmasq 1792 dnsmasq mem REG 7,0 16776 189 /usr/lib/libmnl.so.0.2.0
dnsmasq 1792 dnsmasq mem REG 8,2 117320 1033 /lib/libgcc_s.so.1
dnsmasq 1792 dnsmasq mem REG 8,2 25440 1114 /lib/libubus.so
dnsmasq 1792 dnsmasq mem REG 8,2 46168 1029 /lib/libubox.so
dnsmasq 1792 dnsmasq mem REG 7,0 466112 696 /usr/lib/libgmp.so.10.3.2
dnsmasq 1792 dnsmasq mem REG 7,0 206656 702 /usr/lib/libhogweed.so.4.3
dnsmasq 1792 dnsmasq mem REG 7,0 231888 704 /usr/lib/libnettle.so.6.3
dnsmasq 1792 dnsmasq mem REG 7,0 22232 216 /usr/lib/libnfnetlink.so.0.2.0
dnsmasq 1792 dnsmasq mem REG 7,0 111864 561 /usr/lib/libnetfilter_conntrack.so.3.6.0
dnsmasq 1792 dnsmasq mem REG 8,2 650896 1012 /lib/libc.so
dnsmasq 1792 dnsmasq mem REG 0,14 23 713 /tmp/TZ
dnsmasq 1792 dnsmasq 0u CHR 1,3 0t0 1226 /dev/null
dnsmasq 1792 dnsmasq 1u CHR 1,3 0t0 1226 /dev/null
dnsmasq 1792 dnsmasq 2u CHR 1,3 0t0 1226 /dev/null
dnsmasq 1792 dnsmasq 3u netlink 0t0 3561 ROUTE
dnsmasq 1792 dnsmasq 4u IPv4 3568 0t0 UDP junction:53
dnsmasq 1792 dnsmasq 5u IPv4 3569 0t0 TCP junction:53 (LISTEN)
dnsmasq 1792 dnsmasq 6u IPv4 3570 0t0 UDP localhost:53
dnsmasq 1792 dnsmasq 7u IPv4 3571 0t0 TCP localhost:53 (LISTEN)
dnsmasq 1792 dnsmasq 8u IPv6 3572 0t0 UDP localhost:53
dnsmasq 1792 dnsmasq 9u IPv6 3573 0t0 TCP localhost:53 (LISTEN)
dnsmasq 1792 dnsmasq 10r FIFO 0,8 0t0 3574 pipe
dnsmasq 1792 dnsmasq 11w FIFO 0,8 0t0 3574 pipe
dnsmasq 1792 dnsmasq 12u unix 0x800000041d16ca00 0t0 3576 type=DGRAM
dnsmasq 1792 dnsmasq 13u a_inode 0,9 0 14 [eventpoll]
dnsmasq 1792 dnsmasq 14r FIFO 0,8 0t0 3598 pipe
dnsmasq 1792 dnsmasq 15w FIFO 0,8 0t0 3598 pipe
dnsmasq 1792 dnsmasq 16u unix 0x800000041d16d900 0t0 3599 type=STREAM
dnsmasq 1792 dnsmasq 21u IPv6 3729 0t0 UDP fe80::822a:a8ff:fe4c:9dc1:53
dnsmasq 1792 dnsmasq 22u IPv6 3730 0t0 TCP fe80::822a:a8ff:fe4c:9dc1:53 (LISTEN)
dnsmasq 1792 dnsmasq 26u IPv6 3745 0t0 UDP fd90:79d3:5065:f00d::1:53
dnsmasq 1792 dnsmasq 27u IPv6 3746 0t0 TCP fd90:79d3:5065:f00d::1:53 (LISTEN)
dnsmasq 1792 dnsmasq 35u IPv6 6049 0t0 UDP cpe-2606-A000-1100-DB-0-0-0-1.dyn6.twc.com:53
dnsmasq 1792 dnsmasq 36u IPv6 6050 0t0 TCP cpe-2606-A000-1100-DB-0-0-0-1.dyn6.twc.com:53 (LISTEN)

...if I then restart it with “/etc/init.d/dnsmasq restart”, it comes up properly. The router

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dnsmasq 6861 dnsmasq cwd DIR 0,15 3488 1166 /
dnsmasq 6861 dnsmasq rtd DIR 0,15 3488 1166 /
dnsmasq 6861 dnsmasq txt REG 7,0 349744 1526 /usr/sbin/dnsmasq
dnsmasq 6861 dnsmasq mem REG 7,0 16776 189 /usr/lib/libmnl.so.0.2.0
dnsmasq 6861 dnsmasq mem REG 8,2 117320 1033 /lib/libgcc_s.so.1
dnsmasq 6861 dnsmasq mem REG 8,2 25440 1114 /lib/libubus.so
dnsmasq 6861 dnsmasq mem REG 8,2 46168 1029 /lib/libubox.so
dnsmasq 6861 dnsmasq mem REG 7,0 466112 696 /usr/lib/libgmp.so.10.3.2
dnsmasq 6861 dnsmasq mem REG 7,0 206656 702 /usr/lib/libhogweed.so.4.3
dnsmasq 6861 dnsmasq mem REG 7,0 231888 704 /usr/lib/libnettle.so.6.3
dnsmasq 6861 dnsmasq mem REG 7,0 22232 216 /usr/lib/libnfnetlink.so.0.2.0
dnsmasq 6861 dnsmasq mem REG 7,0 111864 561 /usr/lib/libnetfilter_conntrack.so.3.6.0
dnsmasq 6861 dnsmasq mem REG 8,2 650896 1012 /lib/libc.so
dnsmasq 6861 dnsmasq mem REG 0,14 23 713 /tmp/TZ
dnsmasq 6861 dnsmasq 0u CHR 1,3 0t0 1226 /dev/null
dnsmasq 6861 dnsmasq 1u CHR 1,3 0t0 1226 /dev/null
dnsmasq 6861 dnsmasq 2u CHR 1,3 0t0 1226 /dev/null
dnsmasq 6861 dnsmasq 3u REG 0,14 0 806 /tmp/dhcp.leases
dnsmasq 6861 dnsmasq 4u IPv4 10060 0t0 UDP *:bootps
dnsmasq 6861 dnsmasq 5u netlink 0t0 10061 ROUTE
dnsmasq 6861 dnsmasq 6u IPv4 10063 0t0 UDP junction:domain
dnsmasq 6861 dnsmasq 7u IPv4 10064 0t0 TCP junction:domain (LISTEN)
dnsmasq 6861 dnsmasq 8u IPv4 10065 0t0 UDP localhost:domain
dnsmasq 6861 dnsmasq 9u IPv4 10066 0t0 TCP localhost:domain (LISTEN)
dnsmasq 6861 dnsmasq 10u IPv6 10067 0t0 UDP fe80::822a:a8ff:fe4c:9dc1:domain
dnsmasq 6861 dnsmasq 11u IPv6 10068 0t0 TCP fe80::822a:a8ff:fe4c:9dc1:domain (LISTEN)
dnsmasq 6861 dnsmasq 12u IPv6 10069 0t0 UDP fd90:79d3:5065:f00d::1:domain
dnsmasq 6861 dnsmasq 13u IPv6 10070 0t0 TCP fd90:79d3:5065:f00d::1:domain (LISTEN)
dnsmasq 6861 dnsmasq 14u IPv6 10071 0t0 UDP cpe-2606-A000-1100-DB-0-0-0-1.dyn6.twc.com:domain
dnsmasq 6861 dnsmasq 15u IPv6 10072 0t0 TCP cpe-2606-A000-1100-DB-0-0-0-1.dyn6.twc.com:domain (LISTEN)
dnsmasq 6861 dnsmasq 16u IPv6 10073 0t0 UDP localhost:domain
dnsmasq 6861 dnsmasq 17u IPv6 10074 0t0 TCP localhost:domain (LISTEN)
dnsmasq 6861 dnsmasq 18r FIFO 0,8 0t0 10075 pipe
dnsmasq 6861 dnsmasq 19w FIFO 0,8 0t0 10075 pipe
dnsmasq 6861 dnsmasq 20u unix 0x800000041c446300 0t0 10077 type=DGRAM
dnsmasq 6861 dnsmasq 21u a_inode 0,9 0 14 [eventpoll]
dnsmasq 6861 dnsmasq 22r FIFO 0,8 0t0 10078 pipe
dnsmasq 6861 dnsmasq 23w FIFO 0,8 0t0 10078 pipe
dnsmasq 6861 dnsmasq 24u unix 0x800000041c445e00 0t0 10079 type=STREAM

When I restart the daemon, I see these messages in the log as well:

Fri Aug 10 09:46:50 2018 daemon.info dnsmasq-dhcp[6861]: DHCP, IP range 192.168.1.100 – 192.168.1.249, lease time 12h
Fri Aug 10 09:46:50 2018 daemon.info dnsmasq-dhcp[6861]: DHCP, sockets bound exclusively to interface br-lan

...but they are absent when the daemon starts on a clean boot.

Attaching my /etc/config/dhcp, and the output from logread.

10.08.20181764Base systemBug ReportVery LowLowftp helper from kmod-nf-nathelper doesn't workTrunkUnconfirmed Task Description

Hi, I use OpenWRT 18.06.0 on Archer C7 v2.

After upgrade from latest LEDE to new OpenWRT my ftp connection (inside to outside) isnt working any more.

kmod-nf-nathelper is installed and loaded - router also restarted.

But the connection isnt working any more....

thats my tcpdump from the connection:

.....%A@.7.5.P..._W..230 User user logged in.

15:36:03.477896 IP rd1.xxx-local-xxx.local.53412 > pm-fw.xxx-remote-xxx.de.21: Flags [P.], seq 29:35, ack 89, win 260, length 6: FTP: FEAT
E.....@.......
.........7.5.%A@.P...p2..FEAT

15:36:03.489914 IP pm-fw.xxx-remote-xxx.de.21 > rd1.xxx-local-xxx.local.53412: Flags [P.], seq 89:99, ack 35, win 65501, length 10: FTP: 211-FEAT
E..2D.@.v.........
.....%A@.7.5.P.......211-FEAT

15:36:03.539917 IP rd1.xxx-local-xxx.local.53412 > pm-fw.xxx-remote-xxx.de.21: Flags [.], ack 99, win 260, length 0
E..(..@.......
.........7.5.%A@.P.............
15:36:03.551603 IP pm-fw.xxx-remote-xxx.de.21 > rd1.xxx-local-xxx.local.53412: Flags [P.], seq 99:128, ack 35, win 65501, length 29: FTP:     SIZE
E..EE.@.v..<......
.....%A@.7.5.P...%s..    SIZE
    MDTM
211 END

15:36:03.555058 IP rd1.xxx-local-xxx.local.53412 > pm-fw.xxx-remote-xxx.de.21: Flags [P.], seq 35:43, ack 128, win 260, length 8: FTP: TYPE I
E..0..@.......
.........7.5.%A@.P...2...TYPE I

15:36:03.566608 IP pm-fw.xxx-remote-xxx.de.21 > rd1.xxx-local-xxx.local.53412: Flags [P.], seq 128:148, ack 43, win 65493, length 20: FTP: 200 Type set to I.
E..<E.@.v..4......
.....%A@.7.5%P...r...200 Type set to I.

15:36:03.567247 IP rd1.xxx-local-xxx.local.53412 > pm-fw.xxx-remote-xxx.de.21: Flags [P.], seq 43:70, ack 148, win 260, length 27: FTP: PORT 192,168,10,5,208,165
E..C..@....{..
.........7.5%%A@.P...9...PORT 192,168,10,5,208,165

15:36:03.579094 IP pm-fw.xxx-remote-xxx.de.21 > rd1.xxx-local-xxx.local.53412: Flags [P.], seq 148:178, ack 70, win 65465, length 30: FTP: 200 PORT command successful.
E..FE!@.v.........
.....%A@.7.5@P...H...200 PORT command successful.

15:36:03.580969 IP rd1.xxx-local-xxx.local.53412 > pm-fw.xxx-remote-xxx.de.21: Flags [P.], seq 70:96, ack 178, win 260, length 26: FTP: SIZE user_mydat.csv
E..B..@....{..
.........7.5@%A@.P.......SIZE user_mydat.csv

15:36:03.592986 IP pm-fw.xxx-remote-xxx.de.21 > rd1.xxx-local-xxx.local.53412: Flags [P.], seq 178:189, ack 96, win 65439, length 11: FTP: 213 15493
E..3E;@.v.........
.....%A@.7.5ZP.......213 15493

15:36:03.593395 IP rd1.xxx-local-xxx.local.53412 > pm-fw.xxx-remote-xxx.de.21: Flags [P.], seq 96:122, ack 189, win 260, length 26: FTP: RETR user_mydat.csv
E..B..@....z..
.........7.5Z%AA.P.......RETR user_mydat.csv

15:36:03.604832 IP pm-fw.xxx-remote-xxx.de.21 > rd1.xxx-local-xxx.local.53412: Flags [P.], seq 189:268, ack 122, win 65413, length 79: FTP: 150 Opening BINARY mode data connection for user_mydat.csv(15493 bytes).
E..wEL@.v.........
.....%AA.7.5tP....=..150 Opening BINARY mode data connection for user_mydat.csv(15493 bytes).

15:36:03.654419 IP rd1.xxx-local-xxx.local.53412 > pm-fw.xxx-remote-xxx.de.21: Flags [.], ack 268, win 259, length 0
E..(..@.......
.........7.5t%AAUP.............
15:36:24.767221 IP pm-fw.xxx-remote-xxx.de.21 > rd1.xxx-local-xxx.local.53412: Flags [P.], seq 268:301, ack 122, win 65413, length 33: FTP: 425 Can't open data connection.
E..I\.@.v.........
.....%AAU7.5tP...k/..425 Can't open data connection.
10.08.20181763Base systemBug ReportVery LowMedium18.06 doesn't obtain IPv6 address on mt76openwrt-18.06Unconfirmed Task Description

OpenWRT-18.06 doesn’t obtain an IPv6 address on the wan6 interface since commit 424a9ae128bd2045cd4bfd6e3229f2529d150a25. IPv6 works before that commit. The git bisect output is

$ git bisect good
There are only 'skip'ped commits left to test.
The first bad commit could be any of:
424a9ae128bd2045cd4bfd6e3229f2529d150a25
bfed38254076d576914251689a2e1f85d514783d
We cannot bisect more!

The WAN6 interface status when not working is

root@OpenWrt:~# ifstatus wan6
{
	"up": false,
	"pending": true,
	"available": true,
	"autostart": true,
	"dynamic": false,
	"proto": "dhcpv6",
	"device": "eth0.2",
	"data": {		
	}
}

The device is a Netgear R6220, and my ISP is Comcast in Pennsylvania.

I attach dmesg when running the last working commit.

Other users also have this problem, see this forum thread. (I’m the OP of that thread.)

Would be great to have IPv6 working again. Thank you!

Steps to reproduce:
0. Delete .config file, in “make menuconfig” select appropriate target (MediaTek Ralink MIPS), subtarget (MT7621), and target profile (Netgear R6220).
1a. Compile image prior to above commits, upload to router
1b. Run “sysupgrade -v -n /tmp/*.tar” 1c. Confirm that IPv6 is working, e.g. by pointing browser to ipv6-test.com, or “ifstatus wan6” on the router
2a. Compile image from source after above mentioned commits, e.g. tag “v18.06.0”, upload to router
2b. Run “sysupgrade -v -n /tmp/*.tar” 2c. Confirm that IPv6 is not working

10.08.20181762Base systemBug ReportVery LowMedium18.06.1 openvpn (mbedtls and openssl) write to TUN/TAP ...openwrt-18.06Unconfirmed Task Description

I have tested this with a tl-wr842n-v3 (ar71xx/generic) and MikroTik rb750gr3 (ramips/mt7621). The problem seems to be architecture independant. This setup works fine with 17.05.1

There is already an issue filed with freifunk-berlin https://github.com/freifunk-berlin/firmware/issues/580

With 18.06.1 I have tested with openvpn-mbedtls and openvpn-openssl. With 17.01.5 I tested with openvpn-mbedtls. Attached are pcapng files for both the wan interface (host filtered) and the ffuplink (vpn) interface. On the ffuplink interface I simply ran a “ping <IPADDR> -I ffuplink”.

Attached is also an example log from 18.06.1 and the configuration for openvpn on the router.

Also worth noting is that there are crc errors being reported which I run tcpdump directly on the router

 ~# tcpdump  -nvvi br-wan host 217.197.83.193
tcpdump: listening on br-wan, link-type EN10MB (Ethernet), capture size 262144 bytes
22:50:56.042355 IP (tos 0x0, ttl 64, id 3801, offset 0, flags [DF], proto UDP (17), length 136)
    192.168.200.3.1194 > 217.197.83.193.1194: [bad udp cksum 0xb6b8 -> 0x8450!] UDP, length 108
22:50:57.050206 IP (tos 0x0, ttl 64, id 3838, offset 0, flags [DF], proto UDP (17), length 136) 
    192.168.200.3.1194 > 217.197.83.193.1194: [bad udp cksum 0xb6b8 -> 0xcf66!] UDP, length 108
22:50:57.059920 IP (tos 0x0, ttl 59, id 62922, offset 0, flags [DF], proto UDP (17), length 66)
    217.197.83.193.1194 > 192.168.200.3.1194: [udp sum ok] UDP, length 38
22:50:58.058255 IP (tos 0x0, ttl 64, id 3859, offset 0, flags [DF], proto UDP (17), length 136)
    192.168.200.3.1194 > 217.197.83.193.1194: [bad udp cksum 0xb6b8 -> 0x0c0a!] UDP, length 108
22:50:59.066179 IP (tos 0x0, ttl 64, id 3941, offset 0, flags [DF], proto UDP (17), length 136)
    192.168.200.3.1194 > 217.197.83.193.1194: [bad udp cksum 0xb6b8 -> 0x3675!] UDP, length 108
22:51:00.074120 IP (tos 0x0, ttl 64, id 3973, offset 0, flags [DF], proto UDP (17), length 136)
    192.168.200.3.1194 > 217.197.83.193.1194: [bad udp cksum 0xb6b8 -> 0x8ba0!] UDP, length 108
22:51:01.082085 IP (tos 0x0, ttl 64, id 4039, offset 0, flags [DF], proto UDP (17), length 136)
    192.168.200.3.1194 > 217.197.83.193.1194: [bad udp cksum 0xb6b8 -> 0x0392!] UDP, length 108

I unfortunately can not be of much help with debugging this issue before the beginning of Sept (traveling). If anyone wants to test with the same server, you can apply for a freifunk-berlin tunnel cert at http://tunnel.berlin.freifunk.net (hopefully the cert will get approved quickly). To get the extra data files in the /etc/openvpn diretory, please temporarily install berlin-freifunk’s Hedy-1.0.1 firmware (tunnel-berlin version).

I unfortunately don’t have acces to the vpn server (217.197.83.193) so I cannot post the server config. A similar config from a peer server is attached.

10.08.20181760Base systemBug ReportVery LowLowLuci Overview page doesn't show any Associated StationsTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
ar71xx
- Software versions of OpenWrt/LEDE release, packages, etc.
18.06.0
- Steps to reproduce
Set up a router
- configure it for wifi
- associate some devices – phones, laptops, etc.
- confirm they are associated in /cgi-bin/luci/admin/network/wireless
- observe that nothing is showing as associated in /cgi-bin/luci/

10.08.20181759Base systemBug ReportVery LowCritical SQM fine in 17.01.4, can’t keep up with line speed in ...openwrt-18.06Unconfirmed Task Description

Netgear R7800 running 17.01.4 kept up with my ISP line speed (nominal 250Mbps/15Mbps) when configured to use SQM with cake/piece_of_cake.
In 18.06, it cannot keep up
Possibly the same root cause as issue 1598

DSLreports speed test with SQM enabled in 17.01.4 (223.1/14.71 Mbps):
http://www.dslreports.com/speedtest/29614883

and with 18.06 ( 95.8/14.16 Mbps):
http://www.dslreports.com/speedtest/36981183

root@LEDE:~# cat /etc/config/sqm

config queue 'eth1'
	option qdisc_advanced '0'
	option verbosity '5'
	option upload '15000'
	option linklayer 'ethernet'
	option overhead '18'
	option debug_logging '1'
	option download '232750'
	option interface 'eth0.2'
	option enabled '1'
	option qdisc 'cake'
	option script 'piece_of_cake.qos'

Sample tc output after running the DSLreports speed test

root@LEDE:~# tc -d qdisc
qdisc noqueue 0: dev lo root refcnt 2 
qdisc mq 0: dev eth0 root 
qdisc fq_codel 0: dev eth0 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
qdisc mq 0: dev eth1 root 
qdisc fq_codel 0: dev eth1 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
qdisc noqueue 0: dev br-lan root refcnt 2 
qdisc noqueue 0: dev eth1.1 root refcnt 2 
qdisc cake 8012: dev eth0.2 root refcnt 2 bandwidth 15Mbit besteffort triple-isolate split-gso rtt 100.0ms noatm overhead 18 
qdisc ingress ffff: dev eth0.2 parent ffff:fff1 ---------------- 
qdisc noqueue 0: dev br-guest root refcnt 2 
qdisc noqueue 0: dev br-iot root refcnt 2 
qdisc noqueue 0: dev wlan0 root refcnt 2 
qdisc noqueue 0: dev wlan1 root refcnt 2 
qdisc noqueue 0: dev wlan1-1 root refcnt 2 
qdisc noqueue 0: dev wlan1-2 root refcnt 2 
qdisc noqueue 0: dev wlan0-1 root refcnt 2 
qdisc fq_codel 0: dev ovpns0 root refcnt 2 limit 10240p flows 1024 quantum 1500 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
qdisc fq_codel 0: dev ovpns1 root refcnt 2 limit 10240p flows 1024 quantum 1500 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
qdisc cake 8013: dev ifb4eth0.2 root refcnt 2 bandwidth 232750Kbit besteffort triple-isolate wash split-gso rtt 100.0ms noatm overhead 18 

root@LEDE:~# tc -s qdisc
qdisc noqueue 0: dev lo root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc mq 0: dev eth0 root 
 Sent 351709498 bytes 2034499 pkt (dropped 0, overlimits 0 requeues 65185) 
 backlog 0b 0p requeues 65185
qdisc fq_codel 0: dev eth0 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
 Sent 351709498 bytes 2034499 pkt (dropped 0, overlimits 0 requeues 65185) 
 backlog 0b 0p requeues 65185
  maxpacket 1514 drop_overlimit 0 new_flow_count 60774 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc mq 0: dev eth1 root 
 Sent 4385184093 bytes 3164614 pkt (dropped 0, overlimits 0 requeues 109126) 
 backlog 0b 0p requeues 109126
qdisc fq_codel 0: dev eth1 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
 Sent 4385184093 bytes 3164614 pkt (dropped 0, overlimits 0 requeues 109126) 
 backlog 0b 0p requeues 109126
  maxpacket 1514 drop_overlimit 0 new_flow_count 137321 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev eth1.1 root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc cake 8012: dev eth0.2 root refcnt 2 bandwidth 15Mbit besteffort triple-isolate split-gso rtt 100.0ms noatm overhead 18 
 Sent 41321462 bytes 92960 pkt (dropped 919, overlimits 39456 requeues 0) 
 backlog 0b 0p requeues 0
 memory used: 194432b of 4Mb
 capacity estimate: 15Mbit
 min/max network layer size:           28 /    1500
 min/max overhead-adjusted size:       46 /    1518
 average network hdr offset:           14

                  Tin 0
  thresh         15Mbit
  target          5.0ms
  interval      100.0ms
  pk_delay        672us
  av_delay        211us
  sp_delay         11us
  backlog            0b
  pkts            93879
  bytes        42712828
  way_inds            6
  way_miss          392
  way_cols            0
  drops             919
  marks               0
  ack_drop            0
  sp_flows            0
  bk_flows            1
  un_flows            0
  max_len         12112
  quantum           457

qdisc ingress ffff: dev eth0.2 parent ffff:fff1 ---------------- 
 Sent 143870988 bytes 121001 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev br-guest root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev br-iot root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan0 root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan1 root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan1-1 root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan1-2 root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan0-1 root refcnt 2 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
qdisc fq_codel 0: dev ovpns0 root refcnt 2 limit 10240p flows 1024 quantum 1500 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
 Sent 2015423 bytes 2972 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev ovpns1 root refcnt 2 limit 10240p flows 1024 quantum 1500 target 5.0ms interval 100.0ms memory_limit 4Mb ecn 
 Sent 228 bytes 3 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc cake 8013: dev ifb4eth0.2 root refcnt 2 bandwidth 232750Kbit besteffort triple-isolate wash split-gso rtt 100.0ms noatm overhead 18 
 Sent 148570176 bytes 120706 pkt (dropped 297, overlimits 622 requeues 0) 
 backlog 0b 0p requeues 0
 memory used: 661056b of 11637500b
 capacity estimate: 232750Kbit
 min/max network layer size:           46 /    1500
 min/max overhead-adjusted size:       64 /    1518
 average network hdr offset:           14

                  Tin 0
  thresh     232750Kbit
  target          5.0ms
  interval      100.0ms
  pk_delay        245us
  av_delay         45us
  sp_delay          4us
  backlog            0b
  pkts           121003
  bytes       149019834
  way_inds            6
  way_miss          384
  way_cols            0
  drops             297
  marks               0
  ack_drop            0
  sp_flows            0
  bk_flows            1
  un_flows            0
  max_len         12112
  quantum          1514
09.08.20181757Base systemBug ReportVery LowLowag71xx crash on ath79 dir-825b1 with eth1 (ag71xx): tra...TrunkUnconfirmed Task Description

I am building ath79 image for DIR-825b1

The dts file

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

#include “ar7100.dtsi”

/ {

compatible = "dlink,dir-825-b1", "qca,ar7161";
model = "D-Link DIR825B1";
aliases {
	led-status = &orange_power;
};
chosen {
	bootargs = "console=ttyS0,115200";
};
extosc: ref {
	compatible = "fixed-clock";
	#clock-cells = <0>;
	clock-output-names = "ref";
	clock-frequency = <40000000>;
};
leds {
	compatible = "gpio-leds";
	blue_usb {
		label = "d-link:blue:usb";
		gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
		default-state = "off";
		trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
		linux,default-trigger = "usbport";
	};
	orange_power: orange_power {
		label = "d-link:orange:power";
		gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
	};
	blue_power {
		label = "d-link:blue:power";
		gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
		default-state = "off";
	};
	blue_wps {
		label = "d-link:blue:wps";
		gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
		default-state = "off";
	};
	orange_planet {
		label = "d-link:orange:planet";
		gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
		default-state = "off";
	};
	blue_planet {
		label = "d-link:blue:planet";
		gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
		default-state = "off";
	};
};
ath9k-leds {
	compatible = "gpio-leds";
	wlan2g {
		label = "d-link:blue:wlan2g";
		gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
		default-state = "off";
		linux,default-trigger = "phy0tpt";
	};
	wlan5g {
		label = "d-link:blue:wlan5g";
		gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
		default-state = "off";
		linux,default-trigger = "phy1tpt";
	};
};
keys {
	compatible = "gpio-keys-polled";
	poll-interval = <20>;
	reset {
		label = "reset";
		linux,code = <KEY_RESTART>;
		gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
		debounce-interval = <60>;
	};
	wps {
		label = "wps";
		linux,code = <KEY_WPS_BUTTON>;
		gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
		debounce-interval = <60>;
	};
};
rtl8366s {
	compatible = "realtek,rtl8366s";
	gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
	gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
	mdio-bus {
		status = "okay";
		phy-mask = <0x10>;
		phy4: ethernet-phy@4 {
			reg = <4>;
			phy-mode = "rgmii";
		};
	};

};

};

&usb1 {

status = "okay";
usb_ochi_port: port@1 {
	reg = <1>;
	#trigger-source-cells = <0>;
};

};

&usb2 {

status = "okay";
usb_echi_port: port@1 {
	reg = <1>;
	#trigger-source-cells = <0>;
};

};

&usb_phy {

status = "okay";

};

&pcie0 {

status = "okay";
ath9k0: wifi@0,11 {
	compatible = "pci168c,0029";
	reg = <0x8800 0 0 0 0>;
	qca,no-eeprom;
	#gpio-cells = <2>;
	gpio-controller;
};
ath9k1: wifi@0,12 {
	compatible = "pci168c,0029";
	reg = <0x9000 0 0 0 0>;
	qca,no-eeprom;
	#gpio-cells = <2>;
	gpio-controller;
};

};

&uart {

status = "okay";

};

&pll {

  clocks = <&extosc>;

};

&spi {

status = "okay";
num-cs = <1>;
flash@0 {
	compatible = "jedec,spi-nor";
	reg = <0>;
	spi-max-frequency = <25000000>;
	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;
		partition@0 {
			label = "u-boot";
			reg = <0x000000 0x040000>;
			read-only;
		};
		partition@40000 {
			label = "config";
			reg = <0x040000 0x010000>;
			read-only;
		};
		partition@50000 {
			label = "firmware";
			reg = <0x050000 0x610000>;
		};
		caldata: partition@60000 {
			label = "caldata";
			reg = <0x660000 0x010000>;
			read-only;
		};
		partition@670000 {
			label = "unknown";
			reg = <0x670000 0x190000>;
			read-only;
		};
	};
};

};

&eth0 {

status = "okay";
pll-data = <0x11110000 0x00001099 0x00991099>;
fixed-link {
	speed = <1000>;
	full-duplex;
};

};

&eth1 {

status = "okay";
pll-data = <0x11110000 0x00001099 0x00991099>;
phy-handle = <&phy4>;

};

eth1 is connected to rtl8366s phy.

eth1 detects the link and its speed (100Mbit in my case), but fails to transmit.

Tue Aug 7 08:12:14 2018 daemon.info dnsmasq-dhcp[1579]: read /etc/ethers - 0 addresses
Tue Aug 7 08:12:17 2018 daemon.notice netifd: wan (1530): udhcpc: sending discover
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.153052] ————[ cut here ]———— Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.157706] WARNING: CPU: 0 PID: 1243 at net/sched/sch_generic.c:320 dev_watchdog+0×164/0×274 Tue Aug 7 08:12:25 2018 kern.info kernel: [ 43.166227] NETDEV WATCHDOG: eth1 (ag71xx): transmit queue 0 timed out
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.172733] Modules linked in: ath9k ath9k_common pppoe ppp_async option ath9k_hw ath usb_wwan pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE huawei_cdc_ncm cfg80211 cdc_ncm 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_FLOWOFFLOAD usbserial usbnet slhc owl_loader nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat cdc_wdm ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables sit tunnel4 ip_tunnel ohci_platform ohci_hcd
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.243509] ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common mii
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.251509] CPU: 0 PID: 1243 Comm: dropbearkey Not tainted 4.14.60 #0
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.257937] Stack : 00000000 00000000 80637522 00000039 839c0854 804e78e7 804907c4 000004db
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.266291] 80633670 00000140 804f2cf4 804f2cb4 804f2ca0 00000001 83809db8 f31eff22
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.274647] 00000000 00000000 80630000 00004a40 00000000 00000000 00000007 00000000
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.282993] 000000ef 47176a4e 000000ee 00000000 80000000 00000000 804b77cc 8030e00c
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.291350] 00000009 00000140 804f2cf4 804f2cb4 00000000 8025d8b4 00000000 80630000
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.299706] ...
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.302148] Call Trace:
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.304613] [<8006a90c>] show_stack+0×58/0×100 Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.309060] [<80080900>] warn+0xe4/0×118 Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.313163] [<80080964>] warn_slowpath_fmt+0×30/0x3c
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.318124] [<8030e00c>] dev_watchdog+0×164/0×274 Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.322827] [<800b99e0>] call_timer_fn.isra.4+0×24/0×84 Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.328060] [<800b9bb0>] run_timer_softirq+0×170/0x1e8
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.333210] [<803fd088>]
do_softirq+0xe8/0x2bc
Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.337830] [<8020da10>] plat_irq_dispatch+0xc0/0×120 Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.342868] [<800658f8>] handle_int+0×138/0×144 Tue Aug 7 08:12:25 2018 kern.warn kernel: [ 43.347398] —[ end trace cf9dce7cdf8ae6a7 ]— Tue Aug 7 08:12:25 2018 kern.info kernel: [ 43.351998] eth1: tx timeout
Tue Aug 7 08:12:32 2018 kern.warn kernel: [ 50.795064] done.
Tue Aug 7 08:12:32 2018 kern.notice kernel: [ 50.797029] jffs2: notice: (1406) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Tue Aug 7 08:12:33 2018 kern.warn kernel: [ 51.339775] overlayfs: upper fs does not support tmpfile.
Tue Aug 7 08:12:33 2018 daemon.info mount_root: performing overlay whiteout
Tue Aug 7 08:12:33 2018 daemon.info mount_root: syncronizing overlay
Tue Aug 7 08:12:33 2018 daemon.err mount_root: failed to sync jffs2 overlay
Tue Aug 7 08:12:35 2018 daemon.info procd: - init complete -
Tue Aug 7 08:12:38 2018 authpriv.info dropbear[1724]: Not backgrounding
Tue Aug 7 08:12:48 2018 authpriv.info dropbear[1731]: Child connection from 192.168.1.2:35996
Tue Aug 7 08:12:48 2018 authpriv.info dropbear[1731]: Exit before auth: Exited normally
Tue Aug 7 08:12:56 2018 kern.info kernel: [ 74.113046] eth1: tx timeout

09.08.20181755Base systemBug ReportVery LowHighdata not flushed to persistent storage on ubifsTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on

Observed on a Meraki MR24 (apm821xx), with NAND flash and ubifs overlay

- Software versions of OpenWrt/LEDE release, packages, etc.

Seen on versions as old as 5979-gc9c2e4d78d and 6286-gf01b394266, and as recent as 7763-g9537c1a153.

- Steps to reproduce

 

Sysupgrade or factory reset, allow to boot fully, wait a few minutes if desired, yank power. When device comes up again, I found /overlay/upper/etc/config/dropbear was all NULL (also /overlay/upper/etc/config/horst and /overlay/upper/etc/config/batman-adv). If I login to a shell (over serial or ssh) and either reboot or ‘sync’ before yanking power, the files in /overlay survive intact. It seems the data is not making it out to persistent storage without an explicit sync even after considerable time. In my case, the corrupted /etc/config/dropbear was a big problem, because remote access wasn’t possible anymore (I initially had to crack the case to attach a serial console to figure out what was going wrong). It is possible to recover with a factory reset, followed by logging in and sync’ing or rebooting.

08.08.20181750DocumentationFeature RequestVery LowLowProvide notification channel for release announcementsAllUnconfirmed Task Description

After installing OpenWrt on any device, I have to actively monitor the project website to know whenever a new release is available, potentially fixing security issues with my installation.

I propose creating a release-announce mailinglist used only for that purpose, readable & subscribable for everyone.

There might already be other channels offering more push-like notifications, but I didn’t find any ones that are officially sanctioned thus reliably complete.

07.08.20181749PackagesBuild FailureVery LowHighe2fsprogs without --disable-threads needs -lpthreadTrunkUnconfirmed Task Description

/var/lib/jenkins/jobs/YunaPBX_Build_x86/workspace/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_post’ /var/lib/jenkins/jobs/YunaPBX_Build_x86/workspace/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_wait’ /var/lib/jenkins/jobs/YunaPBX_Build_x86/workspace/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_init’ /var/lib/jenkins/jobs/YunaPBX_Build_x86/workspace/staging_dir/toolchain-i386_pentium4_gcc-7.3.0_glibc/lib/gcc/i486-openwrt-linux-gnu/7.3.0/../../../../i486-openwrt-linux-gnu/bin/ld: ../lib/libcom_err.so: undefined reference to `sem_destroy’ collect2: error: ld returned 1 exit status

fixed by:

TARGET_LDFLAGS += -flto -lpthread

07.08.20181748ToolchainBug ReportVery LowMediumlibgcc_pic.a not autoincluded when building c++ staticTrunkUnconfirmed Task Description

I’m trying to build static C++ code using openwrt toolchain with gcc compiler 7.3.0 for x64 arch.
It works fine without “-static” , links against “libgcc_s.so.1” But with “-static” compiler does not link against libgcc_pic.a.

#include <stdio.h>

class CTest
{
public:
 CTest()
 {
 printf("Test\n");
 }
 ~CTest()
 {
 printf("unTest\n");
 }
};

void Test()
{
 CTest c;
 throw (int)1;
}

int main()
{
try
{
 Test();
}
catch(int Test)
{
}
 return 0;
}
/lib/../lib64/libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__scoped_lock::~__scoped_lock()':
eh_alloc.cc:(.text._ZN9__gnu_cxx13__scoped_lockD2Ev[_ZN9__gnu_cxx13__scoped_lockD5Ev]+0x4b): undefined reference to `_Unwind_Resume'
/tmp/ccedkPfo.o: In function `Test()':
unwind.cpp:(.text+0x4d): undefined reference to `_Unwind_Resume'
/tmp/ccedkPfo.o: In function `main':
unwind.cpp:(.text+0x6f): undefined reference to `_Unwind_Resume'
/lib/../lib64/libstdc++.a(eh_personality.o): In function `base_of_encoded_value(unsigned char, _Unwind_Context*) [clone .part.3]':
eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context.part.3+0x26): undefined reference to `_Unwind_GetDataRelBase'
eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context.part.3+0x2c): undefined reference to `_Unwind_GetTextRelBase'
eh_personality.cc:(.text._ZL21base_of_encoded_valuehP15_Unwind_Context.part.3+0x32): undefined reference to `_Unwind_GetRegionStart'

If I include “-lgcc_pic” it compiles OK
I think compiler should autoinclude gcc_pic as it does in dynamic build

Showing tasks 1 - 50 of 556 Page 1 of 121 - 2 - 3 - 4 - 5 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing