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
10.02.20181345Base systemBug ReportVery LowLowFailed to build u-boot/atmelimage.o in Alpine LinuxTrunkUnconfirmed Task Description

Failed to build u-boot/atmelimage.o in Alpine Linux

tools/mkimage.h: In function 'map_to_sysmem':                                                                                                           
tools/mkimage.h:40:10: error: 'ulong' undeclared (first use in this function)                                                                           
  return (ulong)(uintptr_t)ptr;                                                                                                                         
          ^~~~~                                                                                                                                         
tools/mkimage.h:40:10: note: each undeclared identifier is reported only once for each function it appears in                                           
tools/mkimage.h:40:17: error: expected expression before 'uintptr_t'                                                                                    
  return (ulong)(uintptr_t)ptr;                                                                                                                         
                 ^~~~~~~~~                                                                                                                              
tools/mkimage.h:40:27: error: expected ';' before 'ptr'                                                                                                 
  return (ulong)(uintptr_t)ptr;                                                                                                                         
                           ^~~                                                                                                                          
make[5]: *** [scripts/Makefile.host:134: tools/atmelimage.o] Error 1                                                                                    
make[4]: *** [Makefile:1195: tools-only] Error 2
10.02.20181344Base systemBug ReportVery LowMediumFilesystem error after flashing latest releaselede-17.01Unconfirmed Task Description

I’ve recently restarted using my old Kingston MobileLite Wireless MLW221 router, and decided to flash the latest stable OpenWrt release (17.01.4). The device was last flashed with Chaos Calmer r49363, and it worked without any problems. Now, on the latest revision, it outputs a lot of “jffs2: Newly-erased block contained word 0xdec0adde at offset x”, rendering the device unusable due to lack of persistence of setting after a reset. I’ve tried multiple times to flash it via sysupgrade, by flashing the Kingston stock image via TFTP then the OpenWrt one via TFTP, all of this procedures working perfectly with the old Chaos Calmer image. As seen in the logs, the old build boots up without any issues, while the newer one doesn’t. I’ve tried the buildbots’ image, building my own minimal image, and a image with all the necessary target hardware packages, but still the same result. What can I try to fix this issue? Thank you!

10.02.20181340PackagesBug ReportVery LowMediumbird4 doesnot start from init scriptslede-17.01Unconfirmed Task Description

LEDE 17.01.4 x86, running on vmware esxi 6 as virtual machine

/etc/init.d/bird4 start
ps | grep bird4

It is not running.

bird4
ps | grep bird4
**1947 root 1172 S bird4**

It is running.

10.02.20181339PackagesBug ReportVery LowVery LowIt seems that ‘–dport’ option is not recognized by ipta...lede-17.01Unconfirmed Task Description

Mys router:

System: CHAOS CALMER (15.05.1, r48532)
Router: Asus RT-N56U

I also reproduced this bug with lede 17.01.1 r3316-7eb58cf109 in VirtualBox (according to the guide on https://wiki.openwrt.org/doc/howto/virtualbox).

What happens:

It seems that ‘–dport’ option is not recognized by iptables for sctp. Command execution fails.

Expected result:

Command runs successfully and we can create rules with iptables to match by sctp and destination port.

Steps to reproduce:

First install these:
sctp
kmod-sctp
libsctp
sctp-tools

Try to run this:

iptables -A INPUT -p sctp --dport 1234 -j ACCEPT

Shows error:

iptables v1.4.21: unknown option "--dport"
Try `iptables -h' or 'iptables --help' for more information.

Try to run this:

iptables -A INPUT -p sctp -j ACCEPT

Works!

09.02.20181338Base systemBug ReportVery LowLowcron silently fails to startTrunkUnconfirmed Task Description

I’m running HEAD (9a08c10 BUILD_ID=”r5968+31-bcd17ce”) on an x86_64. I’ve enabled:

CONFIG_BUSYBOX_CONFIG_CROND=y
CONFIG_BUSYBOX_CONFIG_CRONTAB=y

and I’ve validated that

/etc/init.d/cron enable

and then tried to run it:

root@OpenWrt3:~# /etc/init.d/cron enable
root@OpenWrt3:~# /etc/init.d/cron start
root@OpenWrt3:~# echo $?
0
root@OpenWrt3:~# ps -w | grep cron
14918 root      3088 S    grep cron
root@OpenWrt3:~# grep cron /var/log/messages
root@OpenWrt3:~# 
05.02.20181328Base systemBug ReportVery LowLowVGV7510KW22 / o2 Box 6431: Spurious reboots and etherne...TrunkUnconfirmed Task Description

Device:
VGV7510KW22 / o2 Box 6431

Software version:
OpenWrt SNAPSHOT r5944-ad4232e
Linux version 4.9.77 (buildbot@slashdirt-03) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5944-ad4232e) ) #0 SMP Thu Jan 25 10:00:48 2018

Environment:
Additional packages: asterisk13-chan-lantiq, strongswan

Steps to reproduce:
From time to time, the box will reboot spuriously. Uptimes vary, between 12 hours and 2 weeks. After such a reboot, some of the ethernet ports do not detect a link anymore. Unplugging and replugging the ethernet cable into the same port does not help, and the kernel will only notice a link if I plug the ethernet cable into another port.
Sometimes, the ethernet port loses link even without a reboot.
Syslog is logged to an external server via UDP and does not show any error message prior to the spurious reboot.

Workaround:
Performing a manual reboot after the spurious reboot fixes the ethernet link loss.

Possibly relevant difference between dmesg on a spurious and normal reboot:

--- dmesg-normal-reboot.txt.notimestamps        2018-02-05 11:42:10.656203272 +0100
+++ dmesg-spurious-reboot.txt.notimestamps      2018-02-05 11:40:47.264201277 +0100
@@ -30,8 +30,8 @@
 PID hash table entries: 256 (order: -2, 1024 bytes)
 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
 Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
-Writing ErrCtl register=00014098
-Readback ErrCtl register=00014098
+Writing ErrCtl register=00014090
+Readback ErrCtl register=00014090
 Memory: 55392K/63488K available (4334K kernel code, 178K rwdata, 1324K rodata, 1252K init, 244K bss, 8096K reserved, 0K cma-reserved)
 SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
 Hierarchical RCU implementation.
@@ -123,12 +123,14 @@
 libphy: Fixed MDIO Bus: probed
 libphy: lantiq,xrx200-mdio: probed
 ICPlus IP101A/G 0:01: attached PHY driver [ICPlus IP101A/G] (mii_bus:phy_addr=0:01, irq=-1)
-Intel XWAY PHY22F (xRX integrated) 0:11: attached PHY driver [Intel XWAY PHY22F (xRX integrated)] (mii_bus:phy_addr=0:11, irq=-1)
-Intel XWAY PHY22F (xRX integrated) 0:12: attached PHY driver [Intel XWAY PHY22F (xRX integrated)] (mii_bus:phy_addr=0:12, irq=-1)
-random: fast init done
+lantiq,xrx200-net 1e108000.eth eth0 (uninitialized): no PHY found
+xrx200-mdio: probing phy of port 2 failed
+lantiq,xrx200-net 1e108000.eth eth0 (uninitialized): no PHY found
+xrx200-mdio: probing phy of port 3 failed
 Intel XWAY PHY22F (xRX integrated) 0:13: attached PHY driver [Intel XWAY PHY22F (xRX integrated)] (mii_bus:phy_addr=0:13, irq=-1)
+random: fast init done
 Intel XWAY PHY22F (xRX integrated) 0:14: attached PHY driver [Intel XWAY PHY22F (xRX integrated)] (mii_bus:phy_addr=0:14, irq=-1)
-ltq-cputemp cputemp@0: Current CPU die temperature: 54.0 °C
+ltq-cputemp cputemp@0: Current CPU die temperature: 52.5 °C
 wdt 1f8803f0.watchdog: Init done
 NET: Registered protocol family 10
 NET: Registered protocol family 17
@@ -139,7 +141,6 @@
 This architecture does not have kernel memory protection.
 init: Console is alive
 init: - watchdog -
-lantiq,xrx200-net 1e108000.eth eth0: port 2 got link
 kmodloader: loading kernel modules from /etc/modules-boot.d/*
 dwc2 1e101000.ifxhcd: requested GPIO 509
 dwc2 1e101000.ifxhcd: DWC OTG Controller
@@ -151,12 +152,12 @@
 hub 1-0:1.0: 1 port detected
 kmodloader: done loading kernel modules from /etc/modules-boot.d/*
 init: - preinit -
-jffs2: notice: (440) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
+IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
+jffs2: notice: (436) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
 mount_root: switching to jffs2 overlay
 urandom-seed: Seeding with /etc/urandom.seed
 procd: - early -
 procd: - watchdog -
-lantiq,xrx200-net 1e108000.eth eth0: port 2 lost link
 procd: - watchdog -
 procd: - ubus -
 procd: - init -
@@ -207,19 +208,19 @@
 device eth0 entered promiscuous mode
 IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
 IPv6: ADDRCONF(NETDEV_UP): eth0.13: link is not ready
-lantiq,xrx200-net 1e108000.eth eth0: port 2 got link
-IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
-br-lan: port 1(eth0.1) entered blocking state
-br-lan: port 1(eth0.1) entered forwarding state
-IPv6: ADDRCONF(NETDEV_CHANGE): eth0.13: link becomes ready
-IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
+random: crng init done
 PTM 1.0.27    PTM (E1) firmware version 0.30
 ifxmips_ptm: PTM init succeed
 IPv6: ADDRCONF(NETDEV_UP): dsl0: link is not ready
 IPv6: ADDRCONF(NETDEV_UP): dsl0.7: link is not ready
-random: crng init done
 enter showtime
 IPv6: ADDRCONF(NETDEV_CHANGE): dsl0: link becomes ready
 IPv6: ADDRCONF(NETDEV_CHANGE): dsl0.7: link becomes ready
 enter showtime
 pppoe-wan: renamed from ppp0
04.02.20181326KernelBug ReportVery LowMediumKernel crashTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
Archer C7 v2

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

OpenWrt SNAPSHOT r5994-fd30187c87 / LuCI Master (git-18.031.70145-518ac52)

Feb 3rd 2018 snapshot.

- Steps to reproduce

 

install snapshot, let it run, normal usage, connect disconnect etc.

info from kernel log:

[14458.634926] ath10k_pci 0000:01:00.0: failed to delete peer c4:b3:01:8f:ef:62 for vdev 0: -145
[14458.643587] ath10k_pci 0000:01:00.0: found sta peer c4:b3:01:8f:ef:62 (ptr 86958c00 id 27) entry on vdev 0 after it was supposedly removed
[14458.656870] ————[ cut here ]———— [14458.661686] WARNING: CPU: 0 PID: 13630 at backports-2017-11-01/net/mac80211/sta_info.c:1001 sta_set_sinfo+0×930/0x9d8 [mac80211]
[14458.673453] Modules linked in: xt_tcpmss xt_statistic xt_recent xt_length xt_hl xt_helper xt_ecn xt_dscp xt_connmark xt_connlimit xt_connbytes xt_HL xt_DSCP xt_CLASSIFY ipt_ECN sch_cake act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ifb ath9k ath9k_common pppoe ppp_async ath9k_hw ath10k_pci ath10k_core ath pppox ppp_generic nf_conntrack_netlink 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 nfnetlink 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
[14458.745995] iptable_filter ip_tables crc_ccitt compat 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 nls_utf8 nls_iso8859_1 nls_cp437 vfat fat usb_storage sd_mod scsi_mod ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[14458.775167] CPU: 0 PID: 13630 Comm: hostapd Not tainted 4.9.77 #0
[14458.781337] Stack : 804f765a 00000035 00000000 00000001 87c2f614 80489347 80439b58 0000353e
[14458.789882] 804f37a0 000003e9 00000000 00000000 00000000 800a9934 8043f378 80480000
[14458.798426] 00000003 000003e9 8043d53c 86b5fb0c 00000000 800d847c 804f765a 00000074
[14458.806971] 00000000 8022ef00 00000000 00000000 00000000 00000000 00000000 00000000
[14458.815516] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[14458.824051] ...
[14458.826552] Call Trace:
[14458.829043] [<8006b2c8>] show_stack+0×54/0×88 [14458.833482] [<8007ff40>] warn+0xe4/0×118 [14458.837657] [<80080008>] warn_slowpath_null+0x1c/0×34 [14458.842880] [<87706fd8>] sta_set_sinfo+0×930/0x9d8 [mac80211]
[14458.848830] [<87704940>] sta_info_get_bss+0×18/0×68 [mac80211]
[14458.854870] [<87707160>] sta_info_destroy_addr_bss+0×38/0×60 [mac80211]
[14458.861694] [<8764e3d0>] cfg80211_check_station_change+0x21cc/0×3848 [cfg80211]
[14458.869154] —[ end trace e47c69f6c533b83e ]— [14461.914797] ath10k_pci 0000:01:00.0: failed to wait for created wmi peer c4:b3:01:8f:ef:62 on vdev 0: -145
[14461.924661] ath10k_pci 0000:01:00.0: failed to add peer c4:b3:01:8f:ef:62 for vdev 0 when adding a new sta: -145
[14746.711911] ath10k_pci 0000:01:00.0: failed to install key for vdev 0 peer 2c:0e:3d:12:09:95: -11
[14746.720962] wlan0: failed to remove key (0, 2c:0e:3d:12:09:95) from hardware (-11)
[14746.753467] ath10k_pci 0000:01:00.0: cipher 0 is not supported
[14746.759445] ath10k_pci 0000:01:00.0: failed to remove peer wep key 0: -122
[14746.766463] ath10k_pci 0000:01:00.0: failed to clear all peer wep keys for vdev 0: -122
[14746.774607] ath10k_pci 0000:01:00.0: failed to disassociate station: 2c:0e:3d:12:09:95 vdev 0: -122
[14746.783787] ————[ cut here ]———— [14746.788602] WARNING: CPU: 0 PID: 13630 at backports-2017-11-01/net/mac80211/sta_info.c:993 sta_set_sinfo+0x8e0/0x9d8 [mac80211]
[14746.800249] Modules linked in: xt_tcpmss xt_statistic xt_recent xt_length xt_hl xt_helper xt_ecn xt_dscp xt_connmark xt_connlimit xt_connbytes xt_HL xt_DSCP xt_CLASSIFY ipt_ECN sch_cake act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ifb ath9k ath9k_common pppoe ppp_async ath9k_hw ath10k_pci ath10k_core ath pppox ppp_generic nf_conntrack_netlink 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 nfnetlink 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
[14746.872787] iptable_filter ip_tables crc_ccitt compat 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 nls_utf8 nls_iso8859_1 nls_cp437 vfat fat usb_storage sd_mod scsi_mod ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[14746.901958] CPU: 0 PID: 13630 Comm: hostapd Tainted: G W 4.9.77 #0
[14746.909370] Stack : 804f765a 00000043 00000000 00000001 87c2f614 80489347 80439b58 0000353e
[14746.917913] 804f37a0 000003e1 00000000 00000000 00000000 800a9934 8043f378 80480000
[14746.926458] 00000003 000003e1 8043d53c 86b5fb0c 00000000 800d847c 804f765a 00000073
[14746.935002] 8049ae60 8022ef00 00000000 00000000 00000000 00000000 00000000 00000000
[14746.943547] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[14746.952092] ...
[14746.954583] Call Trace:
[14746.957064] [<8006b2c8>] show_stack+0×54/0×88 [14746.961495] [<8007ff40>]
warn+0xe4/0×118 [14746.965666] [<80080008>] warn_slowpath_null+0x1c/0×34 [14746.970889] [<87706f88>] sta_set_sinfo+0x8e0/0x9d8 [mac80211]
[14746.976845] [<87704940>] sta_info_get_bss+0×18/0×68 [mac80211]
[14746.982873] [<87707160>] sta_info_destroy_addr_bss+0×38/0×60 [mac80211]
[14746.989699] [<8764e3d0>] cfg80211_check_station_change+0x21cc/0×3848 [cfg80211]
[14746.997160] —[ end trace e47c69f6c533b83f ]— [14750.071885] ath10k_pci 0000:01:00.0: failed to delete peer 2c:0e:3d:12:09:95 for vdev 0: -11
[14750.080493] ath10k_pci 0000:01:00.0: found sta peer 2c:0e:3d:12:09:95 (ptr 86115e00 id 57) entry on vdev 0 after it was supposedly removed
[14753.111859] ath10k_pci 0000:01:00.0: failed to set beacon mode for vdev 0: -11
[14756.151812] ath10k_pci 0000:01:00.0: failed to set dtim period for vdev 0: -11
[14759.191795] ath10k_pci 0000:01:00.0: failed to recalculate rts/cts prot for vdev 0: -11
[14762.231753] ath10k_pci 0000:01:00.0: failed to set cts protection for vdev 0: -11
[14765.271707] ath10k_pci 0000:01:00.0: failed to set preamble for vdev 0: -11
[88965.620794] ath10k_pci 0000:01:00.0: failed to install key for vdev 0 peer a4:2b:b0:df:39:70: -11
[88965.630032] wlan0: failed to set key (2, ff:ff:ff:ff:ff:ff) to hardware (-11)
[111930.445474] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111933.485423] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111937.165444] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111940.205359] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111947.165313] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111950.205384] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111957.165174] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111960.205293] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111964.685124] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111967.725111] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111974.525032] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111977.565030] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111984.524945] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111987.564913] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111994.524853] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[111997.564835] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[112004.524759] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request
[112007.564726] ath10k_pci 0000:01:00.0: failed to send pdev bss chan info request

03.02.20181324Base systemBug ReportVery LowLowmac80211: wrong mac address calculation with 2 phyTrunkUnconfirmed Task Description

I’m using current master branch.

In files/lib/wifi/mac80211.sh there is a function mac80211_generate_mac() that tries to generate mac (BSSID) for interfaces. But the is a problem in design here.

I have two phy devices (2,4 and 5GHz):

root@router:/tmp# cat /sys/class/ieee80211/phy*/addresses
xx:xx:xx:xx:2f:2e
xx:xx:xx:xx:2f:2f
root@router:/tmp# cat /sys/class/ieee80211/phy*/address_mask
00:00:00:00:00:07
00:00:00:00:00:07

I also have 4 interfaces in /etc/config/wireless: 2 for radio0 and 2 for radio1. On every channel one is my private AP, and one is for guests.

Since mac80211.sh knows only about phy itself for phy0 is generates ...:2f:2e for main AP and ...:2f:2f for guest one. On phy1 I see :2f:2f for main and 2f:2e for guest.

Since mac addresses goes to bssid (or hostapd creates mac based on bssid in config) I have problem: different AP have the same BSSID.

In my particular case I was able to run the setup after I manually calculate and set macaddresses in /etc/config/wireless

tags: @nbd168 @NeoRaider

02.02.20181321PackagesBug ReportVery LowLowUCI potential invalid memory access when updating exist...TrunkUnconfirmed Task Description

- Software versions

UCI 2018-01-01

- Device problem occurs on

There is a potential memory leak when updating existing section in list.c:709

Return pointer from realloc may not be the same as ptr→s. Due to realloc mechanism, pointers value from ptr→s→options are copied to the ptr→last. However, those pointers (ptr→last→s→options) are pointing back to the ptr→s which has been freed.

Below are steps to reproduce.

- Steps to reproduce

 

Given a config file like that

cat /etc/config/network
config interface wan

Given test codes like that

#include <uci.h>

int main(int argc, const char *argv[])
{
    struct uci_context *uci_ctx = uci_alloc_context();
    struct uci_ptr ptr          = {0};
    ptr.package                 = "network";
    ptr.section                 = "wan";
    ptr.value                   = "interface";
    uci_lookup_ptr(uci_ctx, &ptr, NULL, false);
    uci_set(uci_ctx, &ptr);
    uci_save(uci_ctx, ptr.p);
    uci_commit(uci_ctx, &ptr.p, false);
    uci_free_context(uci_ctx);

    return 0;
}

Runs like that

cd UCI_PROJECT_ROOT
mkdir build
cmake ..
make
valgrind ./test/test_mem_leak_section
.... CTRL-C after a while ....

Here is the output of valgrind before the hotfix below

==1567== Memcheck, a memory error detector
==1567== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==1567== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==1567== Command: ./test/test_mem_leak_section
==1567== 
==1567== Invalid write of size 8
==1567==    at 0x4E3946B: uci_list_del (uci_internal.h:116)
==1567==    by 0x4E3946B: uci_free_element (list.c:71)
==1567==    by 0x4E394F4: uci_free_section (list.c:211)
==1567==    by 0x4E39590: uci_free_package (list.c:243)
==1567==    by 0x4E39C97: uci_free_context (libuci.c:84)
==1567==    by 0x400719: main (test_mem_leak_section.c:12)
==1567==  Address 0x561a850 is 32 bytes inside a block of size 82 free'd
==1567==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E3C4FE: uci_realloc (util.c:49)
==1567==    by 0x4E3AC77: uci_set (list.c:709)
==1567==    by 0x400711: main (test_mem_leak_section.c:11)
==1567== 
==1567== Invalid write of size 8
==1567==    at 0x4E3946E: uci_list_del (uci_internal.h:117)
==1567==    by 0x4E3946E: uci_free_element (list.c:71)
==1567==    by 0x4E394F4: uci_free_section (list.c:211)
==1567==    by 0x4E39590: uci_free_package (list.c:243)
==1567==    by 0x4E39C97: uci_free_context (libuci.c:84)
==1567==    by 0x400719: main (test_mem_leak_section.c:12)
==1567==  Address 0x561a858 is 40 bytes inside a block of size 82 free'd
==1567==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E3C4FE: uci_realloc (util.c:49)
==1567==    by 0x4E3AC77: uci_set (list.c:709)
==1567==    by 0x400711: main (test_mem_leak_section.c:11)
==1567== 
==1567== Invalid read of size 8
==1567==    at 0x4E394F8: uci_free_section (list.c:210)
==1567==    by 0x4E39590: uci_free_package (list.c:243)
==1567==    by 0x4E39C97: uci_free_context (libuci.c:84)
==1567==    by 0x400719: main (test_mem_leak_section.c:12)
==1567==  Address 0x561a850 is 32 bytes inside a block of size 82 free'd
==1567==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E3C4FE: uci_realloc (util.c:49)
==1567==    by 0x4E3AC77: uci_set (list.c:709)
==1567==    by 0x400711: main (test_mem_leak_section.c:11)
==1567== 
==1567== Invalid read of size 4
==1567==    at 0x4E39486: uci_free_option (list.c:97)
==1567==    by 0x4E394F4: uci_free_section (list.c:211)
==1567==    by 0x4E39590: uci_free_package (list.c:243)
==1567==    by 0x4E39C97: uci_free_context (libuci.c:84)
==1567==    by 0x400719: main (test_mem_leak_section.c:12)
==1567==  Address 0x561a878 is 72 bytes inside a block of size 82 free'd
==1567==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E3C4FE: uci_realloc (util.c:49)
==1567==    by 0x4E3AC77: uci_set (list.c:709)
==1567==    by 0x400711: main (test_mem_leak_section.c:11)
==1567== 
==1567== Invalid read of size 8
==1567==    at 0x4E39456: uci_free_element (list.c:69)
==1567==    by 0x4E394F4: uci_free_section (list.c:211)
==1567==    by 0x4E39590: uci_free_package (list.c:243)
==1567==    by 0x4E39C97: uci_free_context (libuci.c:84)
==1567==    by 0x400719: main (test_mem_leak_section.c:12)
==1567==  Address 0x561a868 is 56 bytes inside a block of size 82 free'd
==1567==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E3C4FE: uci_realloc (util.c:49)
==1567==    by 0x4E3AC77: uci_set (list.c:709)
==1567==    by 0x400711: main (test_mem_leak_section.c:11)
==1567== 
==1567== Invalid read of size 8
==1567==    at 0x4E3945F: uci_free_element (list.c:70)
==1567==    by 0x4E394F4: uci_free_section (list.c:211)
==1567==    by 0x4E39590: uci_free_package (list.c:243)
==1567==    by 0x4E39C97: uci_free_context (libuci.c:84)
==1567==    by 0x400719: main (test_mem_leak_section.c:12)
==1567==  Address 0x561a850 is 32 bytes inside a block of size 82 free'd
==1567==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E3C4FE: uci_realloc (util.c:49)
==1567==    by 0x4E3AC77: uci_set (list.c:709)
==1567==    by 0x400711: main (test_mem_leak_section.c:11)
==1567== 
==1567== Invalid free() / delete / delete[] / realloc()
==1567==    at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E394F4: uci_free_section (list.c:211)
==1567==    by 0x4E39590: uci_free_package (list.c:243)
==1567==    by 0x4E39C97: uci_free_context (libuci.c:84)
==1567==    by 0x400719: main (test_mem_leak_section.c:12)
==1567==  Address 0x561a850 is 32 bytes inside a block of size 82 free'd
==1567==    at 0x4C2CE8E: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1567==    by 0x4E3C4FE: uci_realloc (util.c:49)
==1567==    by 0x4E3AC77: uci_set (list.c:709)
==1567==    by 0x400711: main (test_mem_leak_section.c:11)
==1567== 
^C
==1567== 
==1567== HEAP SUMMARY:
==1567==     in use at exit: 973 bytes in 17 blocks
==1567==   total heap usage: 189 allocs, 408,927 frees, 8,483 bytes allocated
==1567== 
==1567== LEAK SUMMARY:
==1567==    definitely lost: 0 bytes in 0 blocks
==1567==    indirectly lost: 0 bytes in 0 blocks
==1567==      possibly lost: 0 bytes in 0 blocks
==1567==    still reachable: 973 bytes in 17 blocks
==1567==         suppressed: 0 bytes in 0 blocks
==1567== Rerun with --leak-check=full to see details of leaked memory
==1567== 
==1567== For counts of detected and suppressed errors, rerun with: -v
==1567== ERROR SUMMARY: 2043783 errors from 7 contexts (suppressed: 0 from 0)

- Hot fix

-			ptr->last = NULL;
-			ptr->last = uci_realloc(ctx, ptr->s, sizeof(struct uci_section));
-			ptr->s = uci_to_section(ptr->last);
-			uci_list_fixup(&ptr->s->e.list);
+			ptr->last = (struct uci_element *) ptr->s;

Please take a look the attachment. It includes my hot fix for this issue and corresponding demo codes as illustrated above.

I am not sure how to “update” the “uci_options” associated to the “uci_section”. So, I simply omit and replace the realloc part.

Tested by valgrind again

valgrind ./test/test_mem_leak_section 
==1749== Memcheck, a memory error detector
==1749== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==1749== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==1749== Command: ./test/test_mem_leak_section
==1749== 
==1749== 
==1749== HEAP SUMMARY:
==1749==     in use at exit: 0 bytes in 0 blocks
==1749==   total heap usage: 392 allocs, 392 frees, 23,574 bytes allocated
==1749== 
==1749== All heap blocks were freed -- no leaks are possible
==1749== 
==1749== For counts of detected and suppressed errors, rerun with: -v
==1749== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)


01.02.20181320KernelBug ReportVery LowCriticalcritical crash and restartTrunkUnconfirmed Task Description

There is a random crash all network stop and the router restart .

I’m using last dev build .

Linksys WRT1900ACS

OpenWrt SNAPSHOT r5985-33e8f7e / LuCI Master (git-18.030.59690-47d1eaa)

Kernel 4.9.77

root@OpenWrt:~# cat /sys/kernel/debug/crashlog
Time: 1517518692.641321
Modules:        pppoe@bf1a6000+1e77     ppp_async@bf1a1000+1911 pppox@bf19d000+567      ppp_generic@bf193000+5218       iptable_nat@bf18a000+451        ipt_REJECT@bf186000+3ea ipt_MASQUERADE@bf182000+332     xt_time@bf17e000+6a6    xt_tcpudp@bf17a000+758       xt_state@bf176000+349   xt_nat@bf172000+59d     xt_multiport@bf16e000+554       xt_mark@bf16a000+320    xt_mac@bf166000+2c7     xt_limit@bf162000+48d   xt_conntrack@bf15e000+958       xt_comment@bf15a000+24b xt_TCPMSS@bf156000+a68       xt_REDIRECT@bf152000+375        xt_LOG@bf14e000+3c3     xt_CT@bf14a000+b55      slhc@bf146000+fd2       nf_reject_ipv4@bf142000+803     nf_nat_redirect@bf13e000+3db    nf_nat_masquerade_ipv4@bf13a000+60d     nf_conntrack_ipv4@bf135000+17e5      nf_nat_ipv4@bf131000+f1e        nf_nat@bf12b000+24c0    nf_log_ipv4@bf127000+c36        nf_defrag_ipv4@bf123000+3bc     nf_conntrack_rtcache@bf11f000+a92       nf_conntrack@bf10b000+e773      iptable_mangle@bf107000+3fc  iptable_filter@bf103000+37c     ip_tables@bf0fd000+2817 crc_ccitt@bf0f9000+42b  mwlwifi@bf0d6000+1b6d5  mac80211@bf068000+5f891 cfg80211@bf02e000+311b5 compat@bf029000+12f5    ip6t_REJECT@bf025000+3ec        nf_reject_ipv6@bf021000+908  nf_log_ipv6@bf01d000+cf7        nf_log_common@bf019000+98f      ip6table_mangle@bf015000+4be    ip6table_filter@bf011000+33e    ip6_tables@bf00b000+2715        x_tables@bf005000+2aac  gpio_button_hotplug@bf000000+1784
<7>[   17.893444] ieee80211 phy0: change: 0x40
<7>[   17.911298] ieee80211 phy1: change: 0x40
<7>[   18.111289] ieee80211 phy0: change: 0x40
<7>[   18.121292] ieee80211 phy1: change: 0x40
<7>[   18.321297] ieee80211 phy1: change: 0x40
<7>[   18.331297] ieee80211 phy0: change: 0x40
<7>[   18.521292] ieee80211 phy1: change: 0x40
<7>[   18.551290] ieee80211 phy0: change: 0x40
<7>[   18.721288] ieee80211 phy1: change: 0x40
<7>[   18.771289] ieee80211 phy0: change: 0x40
<7>[   18.931296] ieee80211 phy1: change: 0x40
<7>[   18.991298] ieee80211 phy0: change: 0x40
<7>[   19.020305] ieee80211 phy1: change: 0x100
<7>[   19.029330] ieee80211 phy1: change: 0x100
<7>[   19.038371] ieee80211 phy1: change: 0x40
<7>[   19.211298] ieee80211 phy0: change: 0x40
<7>[   19.241292] ieee80211 phy1: change: 0x40
<7>[   19.431290] ieee80211 phy0: change: 0x40
<7>[   19.441292] ieee80211 phy1: change: 0x40
<7>[   19.641290] ieee80211 phy1: change: 0x40
<7>[   19.651294] ieee80211 phy0: change: 0x60
<7>[   19.851295] ieee80211 phy1: change: 0x40
<7>[   19.871292] ieee80211 phy0: change: 0x40
<7>[   20.051291] ieee80211 phy1: change: 0x40
<7>[   20.091295] ieee80211 phy0: change: 0x40
<7>[   20.271295] ieee80211 phy1: change: 0x40
<7>[   20.311290] ieee80211 phy0: change: 0x40
<7>[   20.471289] ieee80211 phy1: change: 0x40
<7>[   20.531292] ieee80211 phy0: change: 0x40
<7>[   20.681288] ieee80211 phy1: change: 0x40
<7>[   20.751289] ieee80211 phy0: change: 0x40
<7>[   20.881292] ieee80211 phy1: change: 0x40
<7>[   20.971288] ieee80211 phy0: change: 0x40
<7>[   21.081288] ieee80211 phy1: change: 0x40
<7>[   21.191289] ieee80211 phy0: change: 0x40
<7>[   21.291292] ieee80211 phy1: change: 0x40
<7>[   21.411291] ieee80211 phy0: change: 0x40
<7>[   21.491290] ieee80211 phy1: change: 0x40
<7>[   21.631288] ieee80211 phy0: change: 0x40
<7>[   21.691293] ieee80211 phy1: change: 0x40
<7>[   21.780306] ieee80211 phy1: change: 0x100
<7>[   21.789330] ieee80211 phy1: change: 0x100
<7>[   21.798374] ieee80211 phy1: change: 0x40
<7>[   21.851290] ieee80211 phy0: change: 0x40
<7>[   22.001288] ieee80211 phy1: change: 0x40
<7>[   22.071295] ieee80211 phy0: change: 0x60
<7>[   22.175310] ieee80211 phy0: change: 0x100
<7>[   22.184332] ieee80211 phy0: change: 0x100
<7>[   22.193444] ieee80211 phy0: change: 0x40
<7>[   22.201309] ieee80211 phy1: change: 0x40
<7>[   22.411296] ieee80211 phy1: change: 0x40
<7>[   22.411298] ieee80211 phy0: change: 0x40
<7>[   22.611290] ieee80211 phy1: change: 0x40
<7>[   22.631293] ieee80211 phy0: change: 0x40
<7>[   22.811293] ieee80211 phy1: change: 0x40
<7>[   22.851290] ieee80211 phy0: change: 0x40
<7>[   23.011290] ieee80211 phy1: change: 0x40
<7>[   23.081291] ieee80211 phy0: change: 0x40
<7>[   23.221291] ieee80211 phy1: change: 0x40
<7>[   23.301289] ieee80211 phy0: change: 0x40
<7>[   23.421287] ieee80211 phy1: change: 0x40
<7>[   23.531289] ieee80211 phy0: change: 0x40
<7>[   23.621289] ieee80211 phy1: change: 0x40
<7>[   23.751294] ieee80211 phy0: change: 0x40
<7>[   23.821289] ieee80211 phy1: change: 0x40
<7>[   23.971291] ieee80211 phy0: change: 0x60
<7>[   24.031292] ieee80211 phy1: change: 0x40
<7>[   24.201295] ieee80211 phy0: change: 0x40
<7>[   24.231289] ieee80211 phy1: change: 0x40
<7>[   24.421288] ieee80211 phy0: change: 0x40
<7>[   24.431294] ieee80211 phy1: change: 0x40
<7>[   24.520307] ieee80211 phy1: change: 0x100
<7>[   24.529329] ieee80211 phy1: change: 0x100
<7>[   24.538373] ieee80211 phy1: change: 0x40
<7>[   24.641294] ieee80211 phy0: change: 0x40
<7>[   24.741289] ieee80211 phy1: change: 0x40
<7>[   24.861288] ieee80211 phy0: change: 0x40
<7>[   24.951295] ieee80211 phy1: change: 0x40
<7>[   25.091294] ieee80211 phy0: change: 0x40
<7>[   25.151291] ieee80211 phy1: change: 0x40
<7>[   25.311289] ieee80211 phy0: change: 0x40
<7>[   25.351293] ieee80211 phy1: change: 0x40
<7>[   25.541292] ieee80211 phy0: change: 0x40
<7>[   25.551310] ieee80211 phy1: change: 0x40
<7>[   25.751295] ieee80211 phy1: change: 0x40
<7>[   25.761310] ieee80211 phy0: change: 0x40
<7>[   25.951289] ieee80211 phy1: change: 0x40
<7>[   25.991289] ieee80211 phy0: change: 0x40
<7>[   26.151288] ieee80211 phy1: change: 0x40
<7>[   26.211288] ieee80211 phy0: change: 0x40
<7>[   26.351289] ieee80211 phy1: change: 0x40
<7>[   26.431321] ieee80211 phy0: change: 0x60
<7>[   26.537389] ieee80211 phy0: change: 0x100
<7>[   26.546386] ieee80211 phy0: change: 0x100
<7>[   26.555537] ieee80211 phy0: change: 0x40
<7>[   26.561381] ieee80211 phy1: change: 0x40
<7>[   26.791303] ieee80211 phy1: change: 0x40
<7>[   26.801338] ieee80211 phy0: change: 0x40
<7>[   26.991293] ieee80211 phy1: change: 0x40
<7>[   27.021299] ieee80211 phy0: change: 0x40
<7>[   27.191295] ieee80211 phy1: change: 0x40
<7>[   27.241292] ieee80211 phy0: change: 0x40
<7>[   27.279318] ieee80211 phy1: change: 0x100
<7>[   27.288340] ieee80211 phy1: change: 0x100
<7>[   27.297430] ieee80211 phy1: change: 0x40
<7>[   27.461292] ieee80211 phy0: change: 0x40
<7>[   27.501295] ieee80211 phy1: change: 0x40
<7>[   27.681296] ieee80211 phy0: change: 0x40
<7>[   27.701297] ieee80211 phy1: change: 0x40
<7>[   27.891302] ieee80211 phy0: change: 0x40
<7>[   27.911294] ieee80211 phy1: change: 0x40
<7>[   28.101301] ieee80211 phy0: change: 0x40
<7>[   28.111316] ieee80211 phy1: change: 0x40
<7>[   28.311293] ieee80211 phy1: change: 0x40
<7>[   28.331291] ieee80211 phy0: change: 0x60
<7>[   28.511289] ieee80211 phy1: change: 0x40
<7>[   28.551289] ieee80211 phy0: change: 0x40
<7>[   28.721289] ieee80211 phy1: change: 0x40
<7>[   28.771298] ieee80211 phy0: change: 0x40
<7>[   28.921289] ieee80211 phy1: change: 0x40
<7>[   29.001293] ieee80211 phy0: change: 0x40
<7>[   29.131293] ieee80211 phy1: change: 0x40
<7>[   29.231288] ieee80211 phy0: change: 0x40
<7>[   29.331289] ieee80211 phy1: change: 0x40
<7>[   29.451296] ieee80211 phy0: change: 0x40
<7>[   29.531293] ieee80211 phy1: change: 0x40
<7>[   29.671292] ieee80211 phy0: change: 0x40
<7>[   29.731297] ieee80211 phy1: change: 0x40
<7>[   29.901288] ieee80211 phy0: change: 0x40
<7>[   29.931292] ieee80211 phy1: change: 0x40
<7>[   30.019319] ieee80211 phy1: change: 0x100
<7>[   30.082758] ieee80211 phy1: change: 0x100
<7>[   30.091295] ieee80211 phy1: change: 0x42
<7>[   30.121296] ieee80211 phy0: change: 0x40
<6>[   30.244344] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
<6>[   30.250795] br-lan: port 2(wlan1) entered blocking state
<6>[   30.256146] br-lan: port 2(wlan1) entered forwarding state
<7>[   30.341319] ieee80211 phy0: change: 0x40
<7>[   30.561298] ieee80211 phy0: change: 0x40
<7>[   30.781295] ieee80211 phy0: change: 0x60
<7>[   30.885313] ieee80211 phy0: change: 0x100
<7>[   30.894341] ieee80211 phy0: change: 0x100
<7>[   30.903413] ieee80211 phy0: change: 0x40
<7>[   31.121301] ieee80211 phy0: change: 0x40
<7>[   31.341291] ieee80211 phy0: change: 0x40
<7>[   31.561292] ieee80211 phy0: change: 0x40
<7>[   31.781291] ieee80211 phy0: change: 0x40
<7>[   32.001301] ieee80211 phy0: change: 0x40
<7>[   32.221294] ieee80211 phy0: change: 0x40
<7>[   32.441293] ieee80211 phy0: change: 0x40
<7>[   32.661293] ieee80211 phy0: change: 0x60
<7>[   32.881294] ieee80211 phy0: change: 0x40
<7>[   33.101293] ieee80211 phy0: change: 0x40
<7>[   33.321293] ieee80211 phy0: change: 0x40
<7>[   33.541293] ieee80211 phy0: change: 0x40
<7>[   33.761291] ieee80211 phy0: change: 0x40
<7>[   33.981291] ieee80211 phy0: change: 0x40
<7>[   34.201291] ieee80211 phy0: change: 0x40
<7>[   34.421291] ieee80211 phy0: change: 0x40
<7>[   34.641291] ieee80211 phy0: change: 0x40
<7>[   34.861291] ieee80211 phy0: change: 0x40
<7>[   35.081295] ieee80211 phy0: change: 0x60
<7>[   35.185310] ieee80211 phy0: change: 0x100
<7>[   35.194337] ieee80211 phy0: change: 0x100
<7>[   35.203457] ieee80211 phy0: change: 0x40
<7>[   35.421292] ieee80211 phy0: change: 0x40
<7>[   35.641295] ieee80211 phy0: change: 0x40
<7>[   35.745318] ieee80211 phy0: change: 0x100
<7>[   35.809156] ieee80211 phy0: change: 0x100
<7>[   35.818178] ieee80211 phy0: change: 0x42
<6>[   35.990319] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<6>[   35.996762] br-lan: port 3(wlan0) entered blocking state
<6>[   36.002103] br-lan: port 3(wlan0) entered forwarding state
<6>[  121.174510] xt_conntrack: cannot load conntrack support for proto=10
<6>[  149.624016] xt_conntrack: cannot load conntrack support for proto=10
<6>[  317.781883] xt_conntrack: cannot load conntrack support for proto=10
<1>[70442.763618] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
<1>[70442.771761] pgd = ddddc000
<1>[70442.774477] [0000000c] *pgd=1d23d831, *pte=00000000, *ppte=00000000
<0>[70442.780811] Internal error: Oops: 17 [#1] SMP ARM
<4>[70442.785532] Modules linked in: pppoe ppp_async pppox ppp_generic iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt mwlwifi mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables gpio_button_hotplug
<4>[70442.838560] CPU: 1 PID: 1711 Comm: hostapd Not tainted 4.9.77 #0
<4>[70442.844589] Hardware name: Marvell Armada 380/385 (Device Tree)
<4>[70442.850532] task: dec6d300 task.stack: ddd78000
<4>[70442.855092] PC is at mwl_fwcmd_destroy_ba+0x98/0xf4 [mwlwifi]
<4>[70442.860867] LR is at mwl_fwcmd_destroy_ba+0x34/0xf4 [mwlwifi]
<4>[70442.866637] pc : [<bf0dc844>]    lr : [<bf0dc7e0>]    psr: 80000013
<4>[70442.866637] sp : ddd79c80  ip : 00000000  fp : 00000000
<4>[70442.878161] r10: ddde3620  r9 : de38cac0  r8 : de38cac0
<4>[70442.883406] r7 : ddde1620  r6 : ddde2924  r5 : 00000000  r4 : ddd8c000
<4>[70442.889959] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
<4>[70442.896513] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[70442.903677] Control: 10c5387d  Table: 1dddc04a  DAC: 00000051
<0>[70442.909445] Process hostapd (pid: 1711, stack limit = 0xddd78210)
<0>[70442.915562] Stack: (0xddd79c80 to 0xddd7a000)
<0>[70442.919937] 9c80: 00000001 ddde1620 dd3c55d8 ddde45e0 ddde0be0 bf0dcbac dd3c55d8 ddde1620
<0>[70442.928150] 9ca0: ddde0be0 df6fbce0 de3d0300 de7d4800 00000014 bf0d7c68 dd3c5000 00000002
<0>[70442.936362] 9cc0: 00000001 dd14f414 de3d0300 de7d4800 00000014 bf06aca4 ddde0be0 df6fb4c0
<0>[70442.944574] 9ce0: dd3c5000 bf06d2e4 00000002 00000002 dd3c5000 ddde0be0 df6fb4c0 bf06e278
<0>[70442.952786] 9d00: dd3c5000 00000000 00000000 dd3c5000 dd14f420 bf06e3c4 df6fb4c0 00000454
<0>[70442.960999] 9d20: dd14f420 bf06e43c ddde0000 df6fb000 ddd79d68 bf03add8 dd14f420 0002000c
<0>[70442.969210] 9d40: ddd79d68 de3d0300 df57a000 bf0296e8 00000000 df57a1fc df57a000 c03d4560
<0>[70442.977423] 9d60: bf05653a 1f5b5000 5a7275f6 00000601 dd14f400 dd14f410 dde5ed80 de7d4800
<0>[70442.985635] 9d80: ddde0000 df6fb000 dd14f400 de3d0300 c03d42d8 ddc99c00 ddd79dcc 00000000
<0>[70442.993847] 9da0: 00000008 c03d38fc c0656b08 de3d0300 de3d0300 c03d42c4 df4ba400 00000028
<0>[70443.002059] 9dc0: de3d0300 c03d3300 ddc99c00 7fffffff 00000000 de3d0300 00000000 ddd79f68
<0>[70443.010270] 9de0: 00000028 ddc99c00 00000000 c03d376c 00000000 c0227e2c 00000028 df7dad00
<0>[70443.018482] 9e00: 00000000 000006af 00000000 00000000 00000001 ddd79f68 00000000 ddd79e8c
<0>[70443.026694] 9e20: df16a000 00000000 c0630fc8 00000000 00000000 c038e534 ddd79f68 c038eac4
<0>[70443.034906] 9e40: 00000000 00000000 00000000 009a0010 00000028 be8f2c1c 00000000 ddd79eb4
<0>[70443.043118] 9e60: df16a000 c038ecbc ddbd30c0 00000000 be8f2c74 009b4030 00004000 00000000
<0>[70443.051330] 9e80: ffffffff ffffffff 00000051 c0654d80 ddd79ecc 00000051 00008933 00000000
<0>[70443.059541] 9ea0: 00000000 be8f2cac 00000020 00000010 00000000 00000000 00000000 00000000
<0>[70443.067753] 9ec0: ffffffff 0000007f 00000000 6e616c77 dd636c80 60000013 df401080 dd636a00
<0>[70443.075965] 9ee0: 00000000 dd636a00 df22d0a0 c00f379c df22d10c 00000007 00000000 00000000
<0>[70443.084177] 9f00: dec6d300 c005af44 ddd79f08 ddd79f08 df401180 df22d080 df178000 00000000
<0>[70443.092390] 9f20: df401580 df178000 df178000 0004094d df22d0a0 df16a000 be8f2c90 00000000
<0>[70443.100601] 9f40: 00000128 c000ef04 ddd78000 00000000 b6f44740 c038f864 00000000 00000000
<0>[70443.108813] 9f60: 00000000 fffffff7 ddd79eac 0000000c 00000001 00000000 00000000 ddd79e54
<0>[70443.117025] 9f80: 00000000 00000006 00000000 00000000 00000000 00000000 00000000 00000000
<0>[70443.125236] 9fa0: b6fbe110 c000ed40 00000000 00000000 00000005 be8f2c90 00000000 00000000
<0>[70443.133449] 9fc0: 00000000 00000000 b6fbe110 00000128 b6f44ef0 00000000 000252b4 b6f44740
<0>[70443.141661] 9fe0: be8f2c38 be8f2c24 b6f95204 b6f946d0 60000010 00000005 ffffffff ffffffff
<4>[70443.149890] [<bf0dc844>] (mwl_fwcmd_destroy_ba [mwlwifi]) from [<bf0dcbac>] (mwl_fwcmd_del_sta_streams+0x98/0x330 [mwlwifi])
<4>[70443.161164] [<bf0dcbac>] (mwl_fwcmd_del_sta_streams [mwlwifi]) from [<bf0d7c68>] (mwl_mac80211_sta_remove+0x38/0x1ec [mwlwifi])
<4>[70443.172740] [<bf0d7c68>] (mwl_mac80211_sta_remove [mwlwifi]) from [<bf06aca4>] (drv_sta_state+0x16c/0x184 [mac80211])
<4>[70443.183433] [<bf06aca4>] (drv_sta_state [mac80211]) from [<bf06d2e4>] (sta_info_move_state+0xbc/0x1d0 [mac80211])
<4>[70443.193775] [<bf06d2e4>] (sta_info_move_state [mac80211]) from [<bf06e278>] (sta_set_sinfo+0x954/0xa80 [mac80211])
<4>[70443.204204] [<bf06e278>] (sta_set_sinfo [mac80211]) from [<bf06e3c4>] (__sta_info_destroy+0x20/0x28 [mac80211])
<4>[70443.214372] [<bf06e3c4>] (__sta_info_destroy [mac80211]) from [<bf06e43c>] (sta_info_destroy_addr_bss+0x2c/0x44 [mac80211])
<4>[70443.225588] [<bf06e43c>] (sta_info_destroy_addr_bss [mac80211]) from [<bf03add8>] (nl80211_del_station+0xe8/0xf0 [cfg80211])
<4>[70443.236868] [<bf03add8>] (nl80211_del_station [cfg80211]) from [<bf0296e8>] (extack_doit+0x2c/0x70 [compat])
<4>[70443.246741] [<bf0296e8>] (extack_doit [compat]) from [<c03d4560>] (genl_rcv_msg+0x288/0x310)
<4>[70443.255216] [<c03d4560>] (genl_rcv_msg) from [<c03d38fc>] (netlink_rcv_skb+0x58/0xb4)
<4>[70443.263080] [<c03d38fc>] (netlink_rcv_skb) from [<c03d42c4>] (genl_rcv+0x20/0x34)
<4>[70443.270593] [<c03d42c4>] (genl_rcv) from [<c03d3300>] (netlink_unicast+0x138/0x1fc)
<4>[70443.278283] [<c03d3300>] (netlink_unicast) from [<c03d376c>] (netlink_sendmsg+0x2f0/0x310)
<4>[70443.286586] [<c03d376c>] (netlink_sendmsg) from [<c038e534>] (sock_sendmsg+0x14/0x24)
<4>[70443.294451] [<c038e534>] (sock_sendmsg) from [<c038eac4>] (___sys_sendmsg+0x184/0x228)
<4>[70443.302403] [<c038eac4>] (___sys_sendmsg) from [<c038f864>] (__sys_sendmsg+0x40/0x64)
<4>[70443.310271] [<c038f864>] (__sys_sendmsg) from [<c000ed40>] (ret_fast_syscall+0x0/0x48)
<0>[70443.318223] Code: e5840010 e5d81004 e5c41014 e598c000 (e59c300c)
<4>[70443.324372] ---[ end trace bf36642614617548 ]---
01.02.20181319KernelBug ReportVery LowLowSupport of PC Engines APU1TrunkUnconfirmed Task Description

Is it possible to use LEDs and GPIOs on PC Engines APU1? APU2 works, but APU1 have not drivers.

01_led and 02_network in x86 platform have a support for APU1 but I am not able to find a kernel module as in apu2 platform.

Thanks for answer, Zbynek Kocur


01.02.20181317Base systemBug ReportVery LowHighom2p-lc sysupgrade fails silentlyTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on Openmesh om2p-lc
- Software versions of OpenWrt/LEDE release, packages, etc.
LEDE Reboot SNAPSHOT r5360-a8a23ca

- Steps to reproduce
sysupgrade -n /tmp/lede-ar71xx-generic-om2p-squashfs-sysupgrade.bin
Sysupgrade appears to go through the motions but firmware doesn’t upgrade and doesn’t delete config files with the -n switch.
I’ve tried the factory and the sysupgrade file with the same results. This build upgrades as expedted with a tl-mr3420-v2 and tl-wr740n-v4.

Not sure if it’s related but the om-watchdog init script also fails to detect the board type so doesn’t start.
Changing this line in the /etc/init.d/om-watchdog init script gets the watchdog to start which make me think it’s an identification issue.
local board=$(ar71xx_board_name)
change to
local board=$(cat /tmp/sysinfo/board_name)

 


31.01.20181316Base systemBug ReportVery LowLowkernel, serial line, pl2303 changes breaks ntpd with RA...TrunkUnconfirmed Task Description

kernel time, pl2303, serial line kenel module

Device and Software:

TP-Link 4300v1
OpenWRT 17.01.4, r3560-79f57e422d
Component: kernel, serial line, pl2303

Setup:

ntpd V4.2.6p5 and V4.2.8p10(cross compiled with clock RAWDCF)
reference clock
  server 127.127.8.0-3 mode 5
  RAW DCF77 100/200ms pulses
pl2303 usb to serial adapter (/dev/ttyUSB0)
=> set to 50 Baud by ntpd when opening
DCF77 reciever connected per serial line to pl2303
=> No problem with V12.09 with Attitude Adjustment
   Time decode with dcfd and ntpd works absolutely reliable.
The 100ms/200ms pulses send from the DCF77 reciever code bits "0" and "1".
The length of the signal on the serial RX line is decoded by the ntpd.
One bit per second is send. After 60 seconds the telegram is decoded to the actual time and date.  
 => The puls length hat to be acurately "send" through the pl2303 to the kernel serial line driver into ntpd.

Problem:

Since V15, and also on the latest V17.01.4 the dcfd and ntpd could not decode the dcf telegram.
There always "1" decoded, or the transmission is invalid, due to inconsitency "flapping" bits

Suggestions:

Suspect some changes in the Linux kernel which effects the timne measurement 
or inside the pl2303 driver, so the bits are not corretly decoded (100ms/200ms).

Reproduce/Debug:

I'm able to test new kernel and driver modules on my test environmet
perhaps "setserial" (can't fint it anywhere) can set some serial line parameters

Working well on TP-Link 4300, V12.09:

root@funk:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*GENERIC(0)      .DCFa.           0 l   24   64  377    0.000   -0.236   0.430
 funk.koelle.... .INIT.          16 u    - 1024    0    0.000    0.000   0.000
+ntps1-0.eecsit. .PPS.            1 u   52   64  177   28.454   -0.638   2.367
+ptbtime2.ptb.de .PTB.            1 u   20   64  377   19.201   -0.495   2.739
+rustime01.rus.u .PZF.            1 u   26   64  377   18.828   -1.042   2.059
+ntp2.rrze.uni-e .GPS.            1 u   32   64  377   19.264   -0.737   2.068
-ntp2.belwue.de  .PZF.            1 u   43   64  377   21.406   -1.818   1.428
-ts-1.rz.rwth-aa .GPS.            1 u   13   64  377   18.941   -1.521   0.810
 LOCAL(0)        .LOCL.          10 l   4d   64    0    0.000    0.000   0.000

root@funk:~# ntpq -c clockv
associd=0 status=00e0 , 14 events, clk_unspec,
device="RAW DCF77 CODE (Conrad DCF77 receiver module)",
timecode="-####--#-#-###----M-S1-4-1--P-----2P1---1212-1-------81---p",
poll=5549, noreply=0, badformat=0, baddata=7, fudgetime1=191.700,
stratum=0, refid=DCFa, flags=0,
refclock_time="de1c9459.00000000  Wed, Jan 31 2018 19:15:37.000",
refclock_status="TIME CODE; (LEAP INDICATION; ANTENNA)",
refclock_format="RAW DCF77 Timecode",
refclock_states="*NOMINAL: 4d+02:30:16 (99.85%); ILLEGAL DATE: 00:08:37 (0.14%); running time: 4d+02:38:53"

</code>

It would be verry nice if someone could have an insight into this problem.

Many thanks

Lars

31.01.20181315KernelBug ReportVery LowMediumkernel, serial line, pl2303 changes breaks ntpd with RA...lede-17.01Unconfirmed Task Description

Device and Software:

TP-Link 4300v1
OpenWRT 17.01.4, r3560-79f57e422d
Component: kernel, serial line, pl2303

Setup:

ntpd V4.2.6p5 and V4.2.8p10(cross compiled with clock RAWDCF)
reference clock
  server 127.127.8.0-3 mode 5
  RAW DCF77 100/200ms pulses
pl2303 usb to serial adapter (/dev/ttyUSB0)
=> set to 50 Baud by ntpd when opening
DCF77 reciever connected per serial line to pl2303
=> No problem with V12.09 with Attitude Adjustment
   Time decode with dcfd and ntpd works absolutely reliable.
The 100ms/200ms pulses send from the DCF77 reciever code bits "0" and "1".
The length of the signal on the serial RX line is decoded by the ntpd.
One bit per second is send. After 60 seconds the telegram is decoded to the actual time and date.  
 => The puls length hat to be acurately "send" through the pl2303 to the kernel serial line driver into ntpd.

Problem:

Since V15, and also on the latest V17.01.4 the dcfd and ntpd could not decode the dcf telegram.
There always "1" decoded, or the transmission is invalid, due to inconsitency "flapping" bits

Suggestions:

Suspect some changes in the Linux kernel which effects the timne measurement 
or inside the pl2303 driver, so the bits are not corretly decoded (100ms/200ms).

Reproduce/Debug:

I'm able to test new kernel and driver modules on my test environmet
perhaps "setserial" (can't fint it anywhere) can set some serial line parameters

Working well on TP-Link 4300, V12.09:

root@funk:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*GENERIC(0)      .DCFa.           0 l   24   64  377    0.000   -0.236   0.430
 funk.koelle.... .INIT.          16 u    - 1024    0    0.000    0.000   0.000
+ntps1-0.eecsit. .PPS.            1 u   52   64  177   28.454   -0.638   2.367
+ptbtime2.ptb.de .PTB.            1 u   20   64  377   19.201   -0.495   2.739
+rustime01.rus.u .PZF.            1 u   26   64  377   18.828   -1.042   2.059
+ntp2.rrze.uni-e .GPS.            1 u   32   64  377   19.264   -0.737   2.068
-ntp2.belwue.de  .PZF.            1 u   43   64  377   21.406   -1.818   1.428
-ts-1.rz.rwth-aa .GPS.            1 u   13   64  377   18.941   -1.521   0.810
 LOCAL(0)        .LOCL.          10 l   4d   64    0    0.000    0.000   0.000

root@funk:~# ntpq -c clockv
associd=0 status=00e0 , 14 events, clk_unspec,
device="RAW DCF77 CODE (Conrad DCF77 receiver module)",
timecode="-####--#-#-###----M-S1-4-1--P-----2P1---1212-1-------81---p",
poll=5549, noreply=0, badformat=0, baddata=7, fudgetime1=191.700,
stratum=0, refid=DCFa, flags=0,
refclock_time="de1c9459.00000000  Wed, Jan 31 2018 19:15:37.000",
refclock_status="TIME CODE; (LEAP INDICATION; ANTENNA)",
refclock_format="RAW DCF77 Timecode",
refclock_states="*NOMINAL: 4d+02:30:16 (99.85%); ILLEGAL DATE: 00:08:37 (0.14%); running time: 4d+02:38:53"

</code>

It would be verry nice if someone could have an insight into this problem.

Many thanks

Lars

30.01.20181313PackagesBug ReportVery LowLowcurl: PRNG seeding failedlede-17.01Unconfirmed Task Description

Device: TP-LINK TL-WR1043ND
LEDE Version: 17.01.4, r3560-79f57e422d
Curl Version: 7.52.1-7

Steps to reproduce:

:~# curl http://example.com/ -F "file=@/tmp/test" -vv
* PRNG seeding failed
curl: (27) PRNG seeding failed   


29.01.20181311Base systemBug ReportVery LowHighprocd: mount /tmp with zramTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on all device
- Software versions of OpenWrt/LEDE: Trunk

If i select this option in menuconfig, At the boot procd mount the wrong size of ram. I have 512mb of ram and procd mount only 11mb of ram. More detail here.
http://lists.infradead.org/pipermail/lede-dev/2018-January/011008.html

https://forum.lede-project.org/t/no-space-left-in-tmp/11000/14


28.01.20181308KernelBug ReportVery LowMediumUSB not working on dlink DIR620A1lede-17.01Unconfirmed Task Description

It seems that only on OpenWRT 12.09 USB was working on this system.
On 17.01.4 adding drivers kmod_usb_ohci causes many messages about unresolved symbols and then no reaction on device hotplug. As far as I can see there is no more dwc_otg in kernel tree nor is it available via make menuconfig.

28.01.20181307Base systemBug ReportVery LowCriticalClearFog initramfs broken AllUnconfirmed Task Description

It appears this has been broken for quite some time, likely before LEDE forked from OpenWrt, as there are CC builds with initrams images working fine (early 2016), however the CC repo no longer compiles a working initrams image, nor does LEDE.

  • The changes causing the issue appear to have occurred between 2016.02.18 and 2016.09.06
    • I have a working OpenWrt initramfs image created 2016.02.17 @14:26:46 UTC which boots w/o issue.
    • This post from the SolidRun forum on 2016.09.06 @ 10:30am (local) verifies boot issues occurring at least as of this date.
      • Xue Liu’s [clockworkbird9] repo is mentioned and a link to his blog is provided, however he either forked OpenWrt prior to the issue originating or fixed whatever was broken.

Unexpected Output

Current LEDE/OpenWrt initramfs image is a mess all around (Compiled 2018.01.25)

   Marvell>> tftpboot lede-mvebu-armada-388-clearfog-pro-initramfs.bin
   Using egiga1 device
   TFTP from server 10.4.50.38; our IP address is 10.4.50.170
   Filename 'lede-mvebu-armada-388-clearfog-pro-initramfs.bin'.
   Load address: 0x2000000
   Loading: #################################################################
	        #################################################################
	        #################################################################
	        2.4 MiB/s
   done
   Bytes transferred = 4690096 (4790b0 hex)
 
   Marvell>> bootm
   Wrong Image Format for bootm command
   ERROR: cant get kernel image!
  • Likely due to these options being removed from menuconfig:
    • Target Images
      • Include kernel in root filesystem
        • include uImage
        • include zImage
        • include FIT
      • Include DTB in root filesystem
    • See Screenshot
      • Left: Old OpenWrt Repo
      • Right: Current LEDE/OpenWrt Repo

Booting a LEDE zImage goes a bit better (...until the kernel panic | Compiled 2018.01.25)

  • This may be expected behavior, as I didn’t realize the zImage is the kernel image.
    Marvell>> tftpboot zImage-Solidrun-Clearfog-A1                 
    Using egiga1 device
    TFTP from server 10.4.50.38; our IP address is 10.4.50.170
    Filename 'zImage-Solidrun-Clearfog-A1'.
    Load address: 0x2000000
    Loading: #################################################################
    	 #################################################################
    	 #################################################################
    	 2.4 MiB/s
    done
    Bytes transferred = 2132324 (208964 hex)
    Marvell>> bootz
 
    Starting kernel ...
 
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.4.14 (thepeople@trabant) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 50140) ) #1 SMP Thu Dec 7 14:50:07 UTC 2017
    [    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: SolidRun Clearfog A1
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] PERCPU: Embedded 12 pages/cpu @ef7ce000 s17984 r8192 d22976 u49152
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
    [    0.000000] Kernel command line: 
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1032820K/1048576K available (4223K kernel code, 178K rwdata, 1572K rodata, 264K init, 301K bss, 15756K reserved, 0K cma-reserved, 262144K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05b1078   (5797 kB)
    [    0.000000]       .init : 0xc05b2000 - 0xc05f4000   ( 264 kB)
    [    0.000000]       .data : 0xc05f4000 - 0xc0620a5c   ( 179 kB)
    [    0.000000]        .bss : 0xc0620a5c - 0xc066c244   ( 302 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
    [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
    [    0.000000] L2C-310 enabling early BRESP for Cortex-A9
    [    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
    [    0.000000] L2C-310 D prefetch enabled, offset 1 lines
    [    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
    [    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
    [    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
    [    0.000000] Switching to timer-based delay loop, resolution 40ns
    [    0.000002] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000009] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000106] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
    [    0.000113] pid_max: default: 32768 minimum: 301
    [    0.000148] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000152] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000340] CPU: Testing write buffer coherency: ok
    [    0.000439] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.000465] Setting up static identity map for 0x8280 - 0x82d8
    [    0.000550] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
    [    0.000633] mvebu-pmsu: Initializing Power Management Service Unit
    [    0.001026] Booting CPU 1
    [    0.001190] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.001218] Brought up 2 CPUs
    [    0.001223] SMP: Total of 2 processors activated (100.00 BogoMIPS).
    [    0.001226] CPU: All CPU(s) started in SVC mode.
    [    0.002883] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    [    0.002954] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.003000] pinctrl core: initialized pinctrl subsystem
    [    0.003380] NET: Registered protocol family 16
    [    0.003837] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.029930] cpuidle: using governor ladder
    [    0.032504] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
    [    0.032512] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
    [    0.060714] SCSI subsystem initialized
    [    0.060995] usbcore: registered new interface driver usbfs
    [    0.061020] usbcore: registered new interface driver hub
    [    0.061042] usbcore: registered new device driver usb
    [    0.061712] clocksource: Switched to clocksource armada_370_xp_clocksource
    [    0.062143] NET: Registered protocol family 2
    [    0.062382] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.062424] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.062484] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.062516] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.062538] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.062619] NET: Registered protocol family 1
    [    0.062981] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.065945] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.065956] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.066587] bounce: pool size: 64 pages
    [    0.066594] io scheduler noop registered
    [    0.066599] io scheduler deadline registered (default)
    [    0.066978] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
    [    0.067276] irq: Cannot allocate irq_descs @ IRQ50, assuming pre-allocated
    [    0.067412] irq: Cannot allocate irq_descs @ IRQ82, assuming pre-allocated
    [    0.067660] mv_xor f1060800.xor: Marvell shared XOR driver
    [    0.101937] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
    [    0.102017] mv_xor f1060900.xor: Marvell shared XOR driver
    [    0.141919] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
    [    0.142055] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
    [    0.142889] console [ttyS0] disabled
    [    0.162961] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 15625000) is a 16550A
    [    0.715227] console [ttyS0] enabled
    [    0.738916] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 15625000) is a 16550A
    [    0.748295] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
    [    0.757374] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
    [    0.766754] scsi host0: ahci-mvebu
    [    0.770314] scsi host1: ahci-mvebu
    [    0.773824] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 45
    [    0.781766] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 45
    [    0.789792] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
    [    0.798869] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
    [    0.808345] scsi host2: ahci-mvebu
    [    0.811918] scsi host3: ahci-mvebu
    [    0.815415] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 46
    [    0.823359] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 46
    [    0.832327] libphy: Fixed MDIO Bus: probed
    [    0.836538] libphy: orion_mdio_bus: probed
    [    0.841803] mvneta f1030000.ethernet eth0: Using hardware mac address 00:50:43:4c:18:3b
    [    0.850637] mvneta f1034000.ethernet eth1: Using random mac address c6:31:9b:9c:a7:67
    [    0.859250] mvneta f1070000.ethernet eth2: Using hardware mac address 00:50:43:ee:18:3b
    [    0.867330] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    0.873879] ehci-pci: EHCI PCI platform driver
    [    0.878359] ehci-platform: EHCI generic platform driver
    [    0.883691] ehci-orion: EHCI orion driver
    [    0.887777] orion-ehci f1058000.usb: EHCI Host Controller
    [    0.893203] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
    [    0.900847] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
    [    0.921501] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
    [    0.927667] hub 1-0:1.0: USB hub found
    [    0.931437] hub 1-0:1.0: 1 port detected
    [    0.935663] xhci-hcd f10f0000.usb3: xHCI Host Controller
    [    0.940994] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
    [    0.948605] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
    [    0.957170] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
    [    0.963146] hub 2-0:1.0: USB hub found
    [    0.966914] hub 2-0:1.0: 1 port detected
    [    0.970927] xhci-hcd f10f0000.usb3: xHCI Host Controller
    [    0.976265] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
    [    0.983796] usb usb3: We dont know the algorithms for LPM for this host, disabling LPM.
    [    0.992105] hub 3-0:1.0: USB hub found
    [    0.995872] hub 3-0:1.0: 1 port detected
    [    0.999930] xhci-hcd f10f8000.usb3: xHCI Host Controller
    [    1.005271] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
    [    1.012863] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
    [    1.021422] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
    [    1.027391] hub 4-0:1.0: USB hub found
    [    1.031159] hub 4-0:1.0: 1 port detected
    [    1.035201] xhci-hcd f10f8000.usb3: xHCI Host Controller
    [    1.040528] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
    [    1.048072] usb usb5: We dont know the algorithms for LPM for this host, disabling LPM.
    [    1.056389] hub 5-0:1.0: USB hub found
    [    1.060156] hub 5-0:1.0: 1 port detected
    [    1.064290] usbcore: registered new interface driver usb-storage
    [    1.070460] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
    [    1.078105] i2c /dev entries driver
    [    1.092469] orion_wdt: Initial timeout 171 sec
    [    1.097786] marvell-cesa f1090000.crypto: CESA device successfully registered
    [    1.105445] NET: Registered protocol family 10
    [    1.110382] NET: Registered protocol family 17
    [    1.114870] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    1.127526] Bridge firewalling registered
    [    1.131551] 8021q: 802.1Q VLAN Support v1.8
    [    1.135771] Registering SWP/SWPB emulation handler
    [    1.141319] armada38x-rtc f10a3800.rtc: setting system clock to 1970-06-02 16:51:43 UTC (13193503)
    [    1.141517] ata1: SATA link down (SStatus 0 SControl 300)
    [    1.141542] ata2: SATA link down (SStatus 0 SControl 300)
    [    1.161504] ata4: SATA link down (SStatus 0 SControl 300)
    [   1.166942] ata3: SATA link down (SStatus 0 SControl 300)
    [    1.172389] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
    [    1.179889] Please append a correct "root=" boot option; here are the available partitions:
    [    1.188270] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    [    1.196553] CPU1: stopping
    [    1.199266] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.14 #1
    [    1.205198] Hardware name: Marvell Armada 380/385 (Device Tree)
    [    1.211142] [<c001fab8>] (unwind_backtrace) from [<c001c420>] (show_stack+0x10/0x14)
    [    1.218909] [<c001c420>] (show_stack) from [<c019f54c>] (dump_stack+0x8c/0xa0)
    [    1.226149] [<c019f54c>] (dump_stack) from [<c001e94c>] (handle_IPI+0x108/0x1a0)
    [    1.233563] [<c001e94c>] (handle_IPI) from [<c0009508>] (gic_handle_irq+0x80/0x94)
    [    1.241151] [<c0009508>] (gic_handle_irq) from [<c000a5f4>] (__irq_svc+0x54/0x70)
    [    1.248650] Exception stack(0xef073f80 to 0xef073fc8)
    [    1.253712] 3f80: 00000001 00000000 00000000 c000b3c0 ef072000 c05f6498 c04fcab4 00000000
    [    1.261909] 3fa0: c05ee224 ef073fd8 00000000 c05f1118 00000000 ef073fd0 c00194cc c00194d0
    [    1.270104] 3fc0: 60000013 ffffffff
    [    1.273600] [<c000a5f4>] (__irq_svc) from [<c00194d0>] (arch_cpu_idle+0x34/0x50)
    [    1.281015] [<c00194d0>] (arch_cpu_idle) from [<c005b324>] (cpu_startup_entry+0x148/0x210)
    [    1.289298] [<c005b324>] (cpu_startup_entry) from [<000095ac>] (0x95ac)
    [    1.295928] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Current OpenWrt CC initramfs freezes upon loading the kernel (Compiled 2018.01.27)

   Marvell>> tftpboot openwrt-mvebu-armada-388-clearfog-initramfs
   Using egiga1 device
   TFTP from server 10.4.50.38; our IP address is 10.4.50.170
   Filename 'openwrt-mvebu-armada-388-clearfog-initramfs'.
   Load address: 0x2000000
   Loading: #################################################################
	        #################################################################
	        #################################################################
	        2.4 MiB/s
   done
   Bytes transferred = 7925725 (78efdd hex)
 
   Marvell>> bootm
   ## Booting kernel from Legacy Image at 02000000 ...
      Image Name:   ARM OpenWrt Linux-3.18.91
      Created:      2018-01-27   3:22:24 UTC
      Image Type:   ARM Linux Kernel Image (uncompressed)
      Data Size:    7925661 Bytes = 7.6 MiB
      Load Address: 00008000
      Entry Point:  00008000
      Verifying Checksum ... OK
      Loading Kernel Image ... OK
   OK
 
   Starting kernel ...
  • It freezes at this point, with no further output

Expected Output (working initramfs)

r48735 (Compiled 2016.02.17)

    Marvell>> tftpboot openwrt-mvebu-armada-388-clearfog-initramfs
    Using egiga1 device
    TFTP from server 10.4.50.38; our IP address is 10.4.50.170
    Filename 'openwrt-mvebu-armada-388-clearfog-initramfs'.
    Load address: 0x2000000
    Loading: #################################################################
    	  #################################################################
    	  #################################################################
    	  2.4 MiB/s
    done
    Bytes transferred = 3022310 (2e1de6 hex)
 
    Marvell>> bootm
    ## Booting kernel from Legacy Image at 02000000 ...
       Image Name:   ARM OpenWrt Linux-4.1.16
       Created:      2016-02-17  14:26:46 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3022246 Bytes = 2.9 MiB
       Load Address: 00008000
       Entry Point:  00008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
 
    Starting kernel ...
 
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.1.16 (vlado@b50) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r48723) ) #6 SMP Wed Feb 17 14:59:16 UTC 2016
    [    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine model: SolidRun Clearfog A1
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] PERCPU: Embedded 10 pages/cpu @eefd1000 s11776 r8192 d20992 u40960
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260624
    [    0.000000] Kernel command line: 
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1029820K/1048576K available (3435K kernel code, 138K rwdata, 1228K rodata, 4592K init, 168K bss, 18756K reserved, 0K cma-reserved, 270336K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0495e9c   (4664 kB)
    [    0.000000]       .init : 0xc0496000 - 0xc0912000   (4592 kB)
    [    0.000000]       .data : 0xc0912000 - 0xc09348dc   ( 139 kB)
    [    0.000000]        .bss : 0xc09348dc - 0xc095e9a4   ( 169 kB)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
    [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
    [    0.000000] L2C-310 enabling early BRESP for Cortex-A9
    [    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
    [    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
    [    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
    [    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x46070001
    [    0.000006] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000016] clocksource armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000157] Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
    [    0.059922] pid_max: default: 32768 minimum: 301
    [    0.059975] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.059980] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.060187] CPU: Testing write buffer coherency: ok
    [    0.060286] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.060311] Setting up static identity map for 0x8280 - 0x82d8
    [    0.060398] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
    [    0.060484] mvebu-pmsu: Initializing Power Management Service Unit
    [    0.060915] Booting CPU 1
    [    0.119940] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.119969] Brought up 2 CPUs
    [    0.119975] SMP: Total of 2 processors activated (6384.02 BogoMIPS).
    [    0.119978] CPU: All CPU(s) started in SVC mode.
    [    0.121764] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    [    0.121843] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.121875] pinctrl core: initialized pinctrl subsystem
    [    0.122216] NET: Registered protocol family 16
    [    0.122655] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.149929] cpuidle: using governor ladder
    [    0.152518] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
    [    0.152527] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling[    0.180892] Switched to clocksource armada_370_xp_clocksource
    [    0.181354] NET: Registered protocol family 2
    [    0.181626] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.181665] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.181728] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.181766] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.181790] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.181897] NET: Registered protocol family 1
    [    0.202800] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.203086] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.203094] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
    [    0.203620] bounce: pool size: 64 pages
    [    0.203629] io scheduler noop registered
    [    0.203635] io scheduler deadline registered (default)
    [    0.204062] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
    [    0.204398] irq: Cannot allocate irq_descs @ IRQ48, assuming pre-allocated
    [    0.204557] irq: Cannot allocate irq_descs @ IRQ80, assuming pre-allocated
    [    0.204865] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
    [    0.204873] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
    [    0.204878] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
    [    0.204883] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    0.205081] PCI: bus0: Fast back to back transfers disabled
    [    0.205087] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.205094] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    0.205147] PCI: bus1: Fast back to back transfers enabled
    [    0.205205] PCI: bus2: Fast back to back transfers enabled
    [    0.205227] pci 0000:00:02.0: PCI bridge to [bus 01]
    [    0.205235] pci 0000:00:03.0: PCI bridge to [bus 02]
    [    0.205319] mv_xor f1060800.xor: Marvell shared XOR driver
    [    0.240922] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
    [    0.280920] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
    [    0.280980] mv_xor f1060900.xor: Marvell shared XOR driver
    [    0.320931] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
    [    0.360921] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
    [    0.361040] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [    0.361326] console [ttyS0] disabled
    [    0.381355] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 15625000) is a 16550A
    [    0.965181] console [ttyS0] enabled
    [    0.988835] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 15625000) is a 16550A
    [    0.998710] libphy: Fixed MDIO Bus: probed
    [    1.002938] libphy: orion_mdio_bus: probed
    [    1.008077] mvneta f1030000.ethernet eth0: Using hardware mac address 00:50:43:11:03:0d
    [    1.016851] mvneta f1034000.ethernet eth1: Using random mac address fa:fb:df:f9:5e:cc
    [    1.025385] mvneta f1070000.ethernet eth2: Using hardware mac address 00:50:43:0b:03:0d
    [    1.033899] NET: Registered protocol family 10
    [    1.038792] NET: Registered protocol family 17
    [    1.043270] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
    [    1.055917] 8021q: 802.1Q VLAN Support v1.8
    [    1.060127] Registering SWP/SWPB emulation handler
    [    1.065542] hctosys: unable to open rtc device (rtc0)
    [    1.073694] Freeing unused kernel memory: 4592K (c0496000 - c0912000)
    [    1.084136] init: Console is alive
    [    1.092498] usbcore: registered new interface driver usbfs
    [    1.098025] usbcore: registered new interface driver hub
    [    1.103400] usbcore: registered new device driver usb
    [    1.110084] SCSI subsystem initialized
    [    1.114896] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.121693] ehci-platform: EHCI generic platform driver
    [    1.127263] ehci-orion: EHCI orion driver
    [    1.131413] orion-ehci f1058000.usb: EHCI Host Controller
    [    1.136834] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
    [    1.144492] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
    [    1.160910] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
    [    1.167093] hub 1-0:1.0: USB hub found
    [    1.170862] hub 1-0:1.0: 1 port detected
    [    1.179139] xhci-hcd f10f0000.usb3: xHCI Host Controller
    [    1.184488] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
    [    1.192080] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
    [    1.200644] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
    [    1.206652] hub 2-0:1.0: USB hub found
    [    1.210421] hub 2-0:1.0: 1 port detected
    [    1.214450] xhci-hcd f10f0000.usb3: xHCI Host Controller
    [    1.219779] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
    [    1.227335] usb usb3: We dont know the algorithms for LPM for this host, disabling LPM.
    [    1.235651] hub 3-0:1.0: USB hub found
    [    1.239417] hub 3-0:1.0: 1 port detected
    [    1.243492] xhci-hcd f10f8000.usb3: xHCI Host Controller
    [    1.248823] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
    [    1.256412] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
    [    1.264975] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
    [    1.270975] hub 4-0:1.0: USB hub found
    [    1.274743] hub 4-0:1.0: 1 port detected
    [    1.278759] xhci-hcd f10f8000.usb3: xHCI Host Controller
    [    1.284092] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
    [    1.291620] usb usb5: We dont know the algorithms for LPM for this host, disabling LPM.
    [    1.299925] hub 5-0:1.0: USB hub found
    [    1.303697] hub 5-0:1.0: 1 port detected
    [    1.308557] usbcore: registered new interface driver usb-storage
    [    2.087795] init: - preinit -
    Press the [f] key and hit [enter] to enter failsafe mode
    Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
    [    5.131673] procd: - early -
    [    5.706452] procd: - ubus -
    [    6.710759] random: ubusd urandom read with 0 bits of entropy available
    [    6.717649] procd: - init -
    Please press Enter to activate this console.
    [    6.863841] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [    6.871496] i2c /dev entries driver
    [    6.876831] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    6.884031] nf_conntrack version 0.5.0 (16162 buckets, 64648 max)
    [    7.074295] xt_time: kernel timezone is -0000
    [    7.091235] PPP generic driver version 2.4.2
    [    7.095849] NET: Registered protocol family 24
    [    8.723584] device eth0 entered promiscuous mode
    [    8.728953] br-lan: port 1(eth0) entered forwarding state
    [    8.734388] br-lan: port 1(eth0) entered forwarding state
    [    8.751499] device eth1 entered promiscuous mode
    [    8.756174] br-lan: port 2(eth1) entered forwarding state
    [    8.761615] br-lan: port 2(eth1) entered forwarding state
    [    8.781126] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
    [    9.720913] br-lan: port 1(eth0) entered disabled state
    [    9.726221] br-lan: port 2(eth1) entered disabled state
    [   10.730912] mvneta f1030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
    [   10.738772] br-lan: port 1(eth0) entered forwarding state
    [   10.744197] br-lan: port 1(eth0) entered forwarding state
    [   10.750020] mvneta f1034000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
    [   10.757942] br-lan: port 2(eth1) entered forwarding state
    [   10.763366] br-lan: port 2(eth1) entered forwarding state
    [   12.740888] br-lan: port 1(eth0) entered forwarding state
    [   12.760887] br-lan: port 2(eth1) entered forwarding state
 
 
    BusyBox v1.24.1 () built-in shell (ash)
 
      _______                     ________        __
     |       |.-----.-----.-----.|  |  |  |.----.|  |_
     |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
     |_______||   __|_____|__|__||________||__|  |____|
              |__| W I R E L E S S   F R E E D O M
     -----------------------------------------------------
     DESIGNATED DRIVER (Bleeding Edge, r48735)
     -----------------------------------------------------
      * 2 oz. Orange Juice         Combine all juices in a
      * 2 oz. Pineapple Juice      tall glass filled with
      * 2 oz. Grapefruit Juice     ice, stir well.
      * 2 oz. Cranberry Juice
     -----------------------------------------------------
    root@OpenWrt:/#

r49395 (Compiled 2018.01.27 | Xue Liu’s OpenWrt Repo)

   Marvell>> tftpboot openwrt-mvebu-armada-388-clearfog-initramfs
   Using egiga1 device
   TFTP from server 10.4.50.38; our IP address is 10.4.50.170
   Filename 'openwrt-mvebu-armada-388-clearfog-initramfs'.
   Load address: 0x2000000
   Loading: #################################################################
   	  #################################################################
   	  #################################################################
   	  2.4 MiB/s
   done
   Bytes transferred = 3920894 (3bd3fe hex)
   Marvell>> bootm
   ## Booting kernel from Legacy Image at 02000000 ...
      Image Name:   ARM OpenWrt Linux-4.1.23
      Created:      2016-06-30   5:39:05 UTC
      Image Type:   ARM Linux Kernel Image (uncompressed)
      Data Size:    3920830 Bytes = 3.7 MiB
      Load Address: 00008000
      Entry Point:  00008000
      Verifying Checksum ... OK
      Loading Kernel Image ... OK
   OK
 
   Starting kernel ...
 
   [    0.000000] Booting Linux on physical CPU 0x0
   [    0.000000] Linux version 4.1.23 (jw@u17) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 r49395) ) #2 SMP Sat Jan 27 05:52:51 UTC 2018
   [    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
   [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
   [    0.000000] Machine model: SolidRun Clearfog A1
   [    0.000000] Memory policy: Data cache writealloc
   [    0.000000] PERCPU: Embedded 10 pages/cpu @eefd1000 s11776 r8192 d20992 u40960
   [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260624
   [    0.000000] Kernel command line: 
   [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
   [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
   [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
   [    0.000000] Memory: 1026868K/1048576K available (3435K kernel code, 138K rwdata, 1228K rodata, 7544K init, 168K bss, 21708K reserved, 0K cma-reserved, 270336K highmem)
   [    0.000000] Virtual kernel memory layout:
   [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
   [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
   [    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
   [    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
   [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
   [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
   [    0.000000]       .text : 0xc0008000 - 0xc0495e9c   (4664 kB)
   [    0.000000]       .init : 0xc0496000 - 0xc0bf4000   (7544 kB)
   [    0.000000]       .data : 0xc0bf4000 - 0xc0c1694c   ( 139 kB)
   [    0.000000]        .bss : 0xc0c1694c - 0xc0c40a24   ( 169 kB)
   [    0.000000] Hierarchical RCU implementation.
   [    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
   [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
   [    0.000000] NR_IRQS:16 nr_irqs:16 16
   [    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
   [    0.000000] L2C-310 enabling early BRESP for Cortex-A9
   [    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
   [    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
   [    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
   [    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x46070001
   [    0.000006] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
   [    0.000016] clocksource armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
   [    0.000156] Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
   [    0.059921] pid_max: default: 32768 minimum: 301
   [    0.059975] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
   [    0.059980] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
   [    0.060187] CPU: Testing write buffer coherency: ok
   [    0.060287] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
   [    0.060312] Setting up static identity map for 0x8280 - 0x82d8
   [    0.060399] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
   [    0.060486] mvebu-pmsu: Initializing Power Management Service Unit
   [    0.060919] Booting CPU 1
   [    0.119939] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
   [    0.119968] Brought up 2 CPUs
   [    0.119974] SMP: Total of 2 processors activated (6384.02 BogoMIPS).
   [    0.119977] CPU: All CPU(s) started in SVC mode.
   [    0.121712] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
   [    0.121790] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
   [    0.121823] pinctrl core: initialized pinctrl subsystem
   [    0.122159] NET: Registered protocol family 16
   [    0.122595] DMA: preallocated 256 KiB pool for atomic coherent allocations
   [    0.149921] cpuidle: using governor ladder
   [    0.152478] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
   [    0.152487] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling[    0.180937] Switched to clocksource armada_370_xp_clocksource
   [    0.181394] NET: Registered protocol family 2
   [    0.181808] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
   [    0.181846] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
   [    0.181909] TCP: Hash tables configured (established 8192 bind 8192)
   [    0.181945] UDP hash table entries: 512 (order: 2, 16384 bytes)
   [    0.181969] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
   [    0.182064] NET: Registered protocol family 1
   [    0.211472] futex hash table entries: 512 (order: 3, 32768 bytes)
   [    0.211907] squashfs: version 4.0 (2009/01/31) Phillip Lougher
   [    0.211916] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
   [    0.212261] bounce: pool size: 64 pages
   [    0.212269] io scheduler noop registered
   [    0.212276] io scheduler deadline registered (default)
   [    0.212708] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
   [    0.213051] irq: Cannot allocate irq_descs @ IRQ48, assuming pre-allocated
   [    0.213206] irq: Cannot allocate irq_descs @ IRQ80, assuming pre-allocated
   [    0.213509] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
   [    0.213517] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
   [    0.213525] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
   [    0.213531] pci_bus 0000:00: root bus resource [bus 00-ff]
   [    0.213721] PCI: bus0: Fast back to back transfers disabled
   [    0.213728] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
   [    0.213734] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
   [    0.213786] PCI: bus1: Fast back to back transfers enabled
   [    0.213847] PCI: bus2: Fast back to back transfers enabled
   [    0.213868] pci 0000:00:02.0: PCI bridge to [bus 01]
   [    0.213876] pci 0000:00:03.0: PCI bridge to [bus 02]
   [    0.213955] mv_xor f1060800.xor: Marvell shared XOR driver
   [    0.251038] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
   [    0.290970] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
   [    0.291030] mv_xor f1060900.xor: Marvell shared XOR driver
   [    0.330964] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
   [    0.370964] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
   [    0.371073] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
   [    0.371364] console [ttyS0] disabled
   [    0.391394] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 15625000) is a 16550A
   [    0.974982] console [ttyS0] enabled
   [    0.998634] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 15625000) is a 16550A
   [    1.008502] libphy: Fixed MDIO Bus: probed
   [    1.012730] libphy: orion_mdio_bus: probed
   [    1.017876] mvneta f1030000.ethernet eth0: Using hardware mac address 00:50:43:5a:07:04
   [    1.026640] mvneta f1034000.ethernet eth1: Using random mac address d6:15:0c:61:68:d9
   [    1.035175] mvneta f1070000.ethernet eth2: Using hardware mac address 00:50:43:0a:07:04
   [    1.043675] NET: Registered protocol family 10
   [    1.048569] NET: Registered protocol family 17
   [    1.053061] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
   [    1.065708] 8021q: 802.1Q VLAN Support v1.8
   [    1.069920] Registering SWP/SWPB emulation handler
   [    1.075317] hctosys: unable to open rtc device (rtc0)
   [    1.084968] Freeing unused kernel memory: 7544K (c0496000 - c0bf4000)
   [    1.095444] init: Console is alive
   [    1.105049] usbcore: registered new interface driver usbfs
   [    1.110581] usbcore: registered new interface driver hub
   [    1.115954] usbcore: registered new device driver usb
   [    1.126902] SCSI subsystem initialized
   [    1.131749] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
   [    1.138544] ehci-platform: EHCI generic platform driver
   [    1.144141] ehci-orion: EHCI orion driver
   [    1.148257] orion-ehci f1058000.usb: EHCI Host Controller
   [    1.153689] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
   [    1.161343] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
   [    1.180940] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
   [    1.187137] hub 1-0:1.0: USB hub found
   [    1.190909] hub 1-0:1.0: 1 port detected
   [    1.199341] xhci-hcd f10f0000.usb3: xHCI Host Controller
   [    1.204699] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
   [    1.212291] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
   [    1.220854] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
   [    1.226864] hub 2-0:1.0: USB hub found
   [    1.230634] hub 2-0:1.0: 1 port detected
   [    1.234670] xhci-hcd f10f0000.usb3: xHCI Host Controller
   [    1.239997] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
   [    1.247530] usb usb3: We dont know the algorithms for LPM for this host, disabling LPM.
   [    1.255845] hub 3-0:1.0: USB hub found
   [    1.259613] hub 3-0:1.0: 1 port detected
   [    1.263710] xhci-hcd f10f8000.usb3: xHCI Host Controller
   [    1.269041] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
   [    1.276630] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
   [    1.285195] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
   [    1.291190] hub 4-0:1.0: USB hub found
   [    1.294958] hub 4-0:1.0: 1 port detected
   [    1.298974] xhci-hcd f10f8000.usb3: xHCI Host Controller
   [    1.304309] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
   [    1.311842] usb usb5: We dont know the algorithms for LPM for this host, disabling LPM.
   [    1.320147] hub 5-0:1.0: USB hub found
   [    1.323921] hub 5-0:1.0: 1 port detected
   [    1.329839] sdhci: Secure Digital Host Controller Interface driver
   [    1.336054] sdhci: Copyright(c) Pierre Ossman
   [    1.340684] sdhci-pltfm: SDHCI platform and OF driver helper
   [    1.347178] usbcore: registered new interface driver usb-storage
   [    1.360572] init: - preinit -
   Press the [f] key and hit [enter] to enter failsafe mode
   Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
   [    4.406424] procd: - early -
   [    4.965685] procd: - ubus -
   [    5.019086] random: ubusd urandom read with 0 bits of entropy available
   [    5.025976] procd: - init -
   Please press Enter to activate this console.
   [    5.196134] device-mapper: ioctl: 4.31.0-ioctl (2015-3-12) initialised: dm-devel@redhat.com
   [    5.207844] ip6_tables: (C) 2000-2006 Netfilter Core Team
   [    5.215742] i2c /dev entries driver
   [    5.221208] ip_tables: (C) 2000-2006 Netfilter Core Team
   [    5.228628] nf_conntrack version 0.5.0 (16162 buckets, 64648 max)
   [    5.414558] xt_time: kernel timezone is -0000
   [    5.431616] PPP generic driver version 2.4.2
   [    5.436259] NET: Registered protocol family 24
   [    7.114973] device eth0 entered promiscuous mode
   [    7.122099] br-lan: port 1(eth0) entered forwarding state
   [    7.127527] br-lan: port 1(eth0) entered forwarding state
   [    7.148077] device eth1 entered promiscuous mode
   [    7.152853] br-lan: port 2(eth1) entered forwarding state
   [    7.158270] br-lan: port 2(eth1) entered forwarding state
   [    7.173015] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
   [    8.110954] br-lan: port 1(eth0) entered disabled state
   [    8.116262] br-lan: port 2(eth1) entered disabled state
   [    9.120956] mvneta f1030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
   [    9.128814] br-lan: port 1(eth0) entered forwarding state
   [    9.134240] br-lan: port 1(eth0) entered forwarding state
   [    9.140957] mvneta f1034000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
   [    9.148813] br-lan: port 2(eth1) entered forwarding state
   [    9.154235] br-lan: port 2(eth1) entered forwarding state
   [   11.130932] br-lan: port 1(eth0) entered forwarding state
   [   11.150930] br-lan: port 2(eth1) entered forwarding state
 
   BusyBox v1.24.2 () built-in shell (ash)
   Enter 'help' for a list of built-in commands.
      _______                     ________        __
    |       |.-----.-----.-----.|  |  |  |.----.|  |_
    |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
    |_______||   __|_____|__|__||________||__|  |____|
             |__| W I R E L E S S   F R E E D O M
    -----------------------------------------------------
    DESIGNATED DRIVER (Bleeding Edge, r49395)
    -----------------------------------------------------
     * 2 oz. Orange Juice         Combine all juices in a
     * 2 oz. Pineapple Juice      tall glass filled with
     * 2 oz. Grapefruit Juice     ice, stir well.
     * 2 oz. Cranberry Juice
    -----------------------------------------------------
   root@OpenWrt:/#
28.01.20181305PackagesBug ReportVery LowLowNot working UAS driver for usb hdd case ORICO 2599US3-V...TrunkUnconfirmed Task Description

- Xiaomi Mi Router 3G
- OpenWrt/LEDE trunk with kmod-usb-storage-uas package.
- After fresh install trunk version and kmod-usb-storage-uas drivers for USB storage have error:

[  457.174784] scsi host0: uas
[  457.178931] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for disabled endpoint or incorrect stream ring
[  457.188303] xhci-mtk 1e1c0000.xhci: @000000000fded170 0ee20000 00000000 05000000 01058001
[  457.196514] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for disabled endpoint or incorrect stream ring
[  457.205879] xhci-mtk 1e1c0000.xhci: @000000000fded180 0ee20100 00000000 05000000 01078001
[  464.441727] Data buffer not 16 bytes aligned: 8ee2c458
[  464.469820] Data buffer not 16 bytes aligned: 8ee2c0d8
[  464.477079] Data buffer not 16 bytes aligned: 8ee2c368
[  477.979944] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[  477.987509] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[  479.029938] scsi host0: uas_eh_bus_reset_handler FAILED to get lock err -16
[  479.036896] scsi 0:0:0:0: Device offlined - not ready after error recovery
 

FULL log

[    0.000000] Linux version 4.9.77 (buildbot@builds) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5972-74beb6f) ) #0 SMP Sun Jan 28 07:53:50 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 3G
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 80519c20, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 12 pages/cpu @8120f000 s17744 r8192 d23216 u49152
[    0.000000] pcpu-alloc: s17744 r8192 d23216 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00022211
[    0.000000] Readback ErrCtl register=00022211
[    0.000000] Memory: 253888K/262144K available (4083K kernel code, 221K rwdata, 920K rodata, 204K init, 272K bss, 8256K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007796] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.070423] pid_max: default: 32768 minimum: 301
[    0.075160] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081686] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095326] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.095339] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.095351] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.095506] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.177455] Synchronize counters for CPU 1:
[    0.177457] done.
[    0.190893] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.190901] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.190910] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.190995] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.269476] Synchronize counters for CPU 2:
[    0.269477] done.
[    0.279363] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.279371] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.279379] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.279472] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.354659] Synchronize counters for CPU 3:
[    0.354660] done.
[    0.360901] Brought up 4 CPUs
[    0.367821] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.377613] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.383863] pinctrl core: initialized pinctrl subsystem
[    0.389755] NET: Registered protocol family 16
[    0.403515] FPU Affinity set after 11720 emulations
[    0.449650] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.754956] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.760005] ***** Xtal 40MHz *****
[    0.763360] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.768459] Port 0 N_FTS = 1b105000
[    0.771934] Port 1 N_FTS = 1b105000
[    0.775368] Port 2 N_FTS = 1b102800
[    1.930662] PCIE2 no card, disable it(RST&CLK)
[    1.935027]  -> 21007f2
[    1.937422] PCIE0 enabled
[    1.940014] PCIE1 enabled
[    1.942610] PCI host bridge /pcie@1e140000 ranges:
[    1.947395]  MEM 0x0000000060000000..0x000000006fffffff
[    1.952552]   IO 0x000000001e160000..0x000000001e16ffff
[    1.957754] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    2.009324] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.015156] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.020966] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.027884] PCI host bridge to bus 0000:00
[    2.031941] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.038727] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.044616] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.051341] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.059269] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.059300] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.059312] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[    2.059374] pci 0000:00:00.0: supports D1
[    2.059383] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.059617] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    2.059641] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.059656] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[    2.059705] pci 0000:00:01.0: supports D1
[    2.059713] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.060115] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    2.060145] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.060267] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.060466] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.060648] pci 0000:02:00.0: [14c3:7662] type 00 class 0x028000
[    2.060683] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.060728] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.060816] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.061016] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.061034] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    2.061093] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.067602] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.074545] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.081087] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.088015] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.094738] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.101497] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    2.108649] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.115404] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.122138] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.128881] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.133788] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.140555] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.147793] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    2.154968] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.159885] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.166635] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    2.173807] BAR0 at slot 0 = 0
[    2.176821] bus=0x0, slot = 0x0
[    2.179929] BAR0 at slot 1 = 0
[    2.182941] bus=0x0, slot = 0x1
[    2.186059] bus=0x1, slot = 0x0, irq=0xff
[    2.190052] bus=0x2, slot = 0x1, irq=0xff
[    2.195374] clocksource: Switched to clocksource GIC
[    2.201886] NET: Registered protocol family 2
[    2.206991] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.213879] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.220380] TCP: Hash tables configured (established 2048 bind 2048)
[    2.226740] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.232503] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.238991] NET: Registered protocol family 1
[    2.243310] PCI: CLS 80 bytes, default 32
[    2.475320] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.481720] Crashlog allocated RAM at address 0x3f00000
[    2.487253] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.497205] random: fast init done
[    2.503153] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.508957] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.521334] io scheduler noop registered
[    2.525170] io scheduler deadline registered (default)
[    2.530800] gpio-export gpio_export: 1 gpio(s) exported
[    2.536631] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.546698] console [ttyS0] disabled
[    2.550247] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.559239] console [ttyS0] enabled
[    2.566106] bootconsole [early0] disabled
[    2.575604] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.582660] Allocate 16 byte aligned buffer: 80588360
[    2.587709] Enable NFI Clock
[    2.590575] # MTK NAND # : Use HW ECC
[    2.594233] Device not found, ID: c8d1
[    2.597975] Not Support this Device!
[    2.601702] chip_mode=00000001
[    2.604750] Support this Device in MTK table! c8d1
[    2.609710] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.616186] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    2.622507] nand: ESMT NAND 128MiB 3,3V 8-bit
[    2.626855] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.634399] Scanning device for bad blocks
[    2.784501] 10 ofpart partitions found on MTD device MT7621-NAND
[    2.790493] Creating 10 MTD partitions on "MT7621-NAND":
[    2.795810] 0x000000000000-0x000000080000 : "Bootloader"
[    2.802545] 0x000000080000-0x0000000c0000 : "Config"
[    2.808805] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.814961] 0x000000100000-0x000000140000 : "Factory"
[    2.821369] 0x000000140000-0x000000180000 : "crash"
[    2.827570] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.834259] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.840866] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.847705] 0x000000600000-0x000000a00000 : "kernel"
[    2.853942] 0x000000a00000-0x000007f80000 : "ubi"
[    2.860898] [mtk_nand] probe successfully!
[    2.865771] Signature matched and data read!
[    2.870021] load_fact_bbt success 1023
[    2.874429] libphy: Fixed MDIO Bus: probed
[    2.947980] libphy: mdio: probed
[    4.350751] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.357511] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.368063] NET: Registered protocol family 10
[    4.374121] NET: Registered protocol family 17
[    4.378695] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.391609] 8021q: 802.1Q VLAN Support v1.8
[    4.398759] UBI: auto-attach mtd9
[    4.402087] ubi0: attaching mtd9
[    4.618462] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    5.521109] ubi0: scanning is finished
[    5.541359] ubi0: attached mtd9 (name "ubi", size 117 MiB)
[    5.546892] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.553734] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.560504] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.567456] ubi0: good PEBs: 940, bad PEBs: 0, corrupted PEBs: 0
[    5.573433] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.580638] ubi0: max/mean erase counter: 13/8, WL threshold: 4096, image sequence number: 2038926528
[    5.589837] ubi0: available PEBs: 0, total reserved PEBs: 940, PEBs reserved for bad PEB handling: 20
[    5.599059] ubi0: background thread "ubi_bgt0d" started, PID 375
[    5.601341] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.601351] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.601368] hctosys: unable to open rtc device (rtc0)
[    5.628756] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.636357] Freeing unused kernel memory: 204K
[    5.640789] This architecture does not have kernel memory protection.
[    6.074383] init: Console is alive
[    6.078103] init: - watchdog -
[    6.598228] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.689821] usbcore: registered new interface driver usbfs
[    6.695512] usbcore: registered new interface driver hub
[    6.700979] usbcore: registered new device driver usb
[    6.715182] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.720568] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.735589] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    6.744061] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.750901] hub 1-0:1.0: USB hub found
[    6.754722] hub 1-0:1.0: 2 ports detected
[    6.759206] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.764511] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.772203] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.781167] hub 2-0:1.0: USB hub found
[    6.784977] hub 2-0:1.0: 1 port detected
[    6.791578] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.815674] init: - preinit -
[    7.225713] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    7.959769] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[   10.669578] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 466
[   10.743280] UBIFS (ubi0:1): recovery needed
[   11.027687] UBIFS (ubi0:1): recovery completed
[   11.032307] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.040127] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.050019] UBIFS (ubi0:1): FS size: 112754688 bytes (107 MiB, 888 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   11.060604] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.067215] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 20B5BE78-6BF9-4D9C-97D0-63EEEE29FCD2, small LPT model
[   11.089886] mount_root: overlay filesystem has not been fully initialized yet
[   11.099816] mount_root: switching to ubifs overlay
[   11.120963] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.206878] procd: - early -
[   11.209848] procd: - watchdog -
[   11.915518] procd: - watchdog -
[   11.918952] procd: - ubus -
[   11.977423] procd: - init -
[   12.220332] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.230433] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.243720] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.251747] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.260419] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.272071] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   12.311093] xt_time: kernel timezone is -0000
[   12.364278] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   12.395013] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   12.400808] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   12.445412] firmware init done
[   12.617059] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   12.624541] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   12.655444] mt76x2e 0000:02:00.0: ROM patch already applied
[   12.662251] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   12.667798] mt76x2e 0000:02:00.0: Build: 1
[   12.671877] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   12.705439] mt76x2e 0000:02:00.0: Firmware running!
[   12.711683] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   12.719726] PPP generic driver version 2.4.2
[   12.725836] NET: Registered protocol family 24
[   12.733132] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.603555] device eth0 entered promiscuous mode
[   19.610919] br-lan: port 1(eth0.1) entered blocking state
[   19.616476] br-lan: port 1(eth0.1) entered disabled state
[   19.622586] device eth0.1 entered promiscuous mode
[   19.634503] br-lan: port 1(eth0.1) entered blocking state
[   19.639985] br-lan: port 1(eth0.1) entered forwarding state
[   19.646017] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   20.605960] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   22.159899] random: crng init done
[  191.009312] Data buffer not 16 bytes aligned: 8e40c028
[  191.017026] Data buffer not 16 bytes aligned: 8e40c508
[  191.025523] Data buffer not 16 bytes aligned: 8e40c238
[  191.034117] Data buffer not 16 bytes aligned: 8e40c198
[  191.052419] Data buffer not 16 bytes aligned: 8e40c4f8
[  191.066409] Data buffer not 16 bytes aligned: 8e40c278
[  191.081738] Data buffer not 16 bytes aligned: 8e40c1c8
[  191.096954] Data buffer not 16 bytes aligned: 8e40c088
[  191.111147] Data buffer not 16 bytes aligned: 8e40c028
[  191.139460] Data buffer not 16 bytes aligned: 8e40c018
[  191.161243] Data buffer not 16 bytes aligned: 8e40c028
[  191.176451] Data buffer not 16 bytes aligned: 8e40c128
[  191.193724] Data buffer not 16 bytes aligned: 8e40c018
[  191.213324] Data buffer not 16 bytes aligned: 8e40c078
[  191.225880] Data buffer not 16 bytes aligned: 8e40c2a8
[  191.265755] Data buffer not 16 bytes aligned: 8e40c158
[  191.278589] Data buffer not 16 bytes aligned: 8e40c138
[  191.289159] Data buffer not 16 bytes aligned: 8e40c248
[  191.317077] Data buffer not 16 bytes aligned: 8e40c278
[  191.334425] Data buffer not 16 bytes aligned: 8e40c0e8
[  191.350534] Data buffer not 16 bytes aligned: 8e40c0f8
[  283.715442] kmodloader: loading kernel modules from /etc/modules.d/*
[  283.733985] SCSI subsystem initialized
[  283.745511] usbcore: registered new interface driver usb-storage
[  283.751874] kmodloader: done loading kernel modules from /etc/modules.d/*
[  283.816960] kmodloader: loading kernel modules from /etc/modules.d/*
[  283.825496] kmodloader: done loading kernel modules from /etc/modules.d/*
[  313.727224] Data buffer not 16 bytes aligned: 8ee38068
[  313.741091] Data buffer not 16 bytes aligned: 8ee38128
[  313.749533] Data buffer not 16 bytes aligned: 8ee38078
[  313.756765] Data buffer not 16 bytes aligned: 8ee383d8
[  313.785037] Data buffer not 16 bytes aligned: 8ee38128
[  313.795667] Data buffer not 16 bytes aligned: 8ee38258
[  313.805290] Data buffer not 16 bytes aligned: 8ee38418
[  313.813705] Data buffer not 16 bytes aligned: 8ee381a8
[  313.822188] Data buffer not 16 bytes aligned: 8ee380d8
[  313.840545] Data buffer not 16 bytes aligned: 8ee38438
[  313.848969] Data buffer not 16 bytes aligned: 8ee382d8
[  434.295326] kmodloader: loading kernel modules from /etc/modules.d/*
[  434.305009] usbcore: registered new interface driver ums-alauda
[  434.312020] usbcore: registered new interface driver ums-cypress
[  434.319060] usbcore: registered new interface driver ums-datafab
[  434.326131] usbcore: registered new interface driver ums-freecom
[  434.333240] usbcore: registered new interface driver ums-isd200
[  434.340310] usbcore: registered new interface driver ums-jumpshot
[  434.347438] usbcore: registered new interface driver ums-karma
[  434.354646] usbcore: registered new interface driver ums-sddr09
[  434.361748] usbcore: registered new interface driver ums-sddr55
[  434.368806] usbcore: registered new interface driver ums-usbat
[  434.374965] kmodloader: done loading kernel modules from /etc/modules.d/*
[  457.162257] kmodloader: loading kernel modules from /etc/modules.d/*
[  457.174784] scsi host0: uas
[  457.178931] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for disabled endpoint or incorrect stream ring
[  457.188303] xhci-mtk 1e1c0000.xhci: @000000000fded170 0ee20000 00000000 05000000 01058001
[  457.196514] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for disabled endpoint or incorrect stream ring
[  457.205879] xhci-mtk 1e1c0000.xhci: @000000000fded180 0ee20100 00000000 05000000 01078001
[  464.441727] Data buffer not 16 bytes aligned: 8ee2c458
[  464.469820] Data buffer not 16 bytes aligned: 8ee2c0d8
[  464.477079] Data buffer not 16 bytes aligned: 8ee2c368
[  477.979944] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[  477.987509] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[  479.029938] scsi host0: uas_eh_bus_reset_handler FAILED to get lock err -16
[  479.036896] scsi 0:0:0:0: Device offlined - not ready after error recovery
[  479.044393] usbcore: registered new interface driver uas
[  479.050016] kmodloader: done loading kernel modules from /etc/modules.d/*
26.01.20181302Base systemBug ReportVery LowHighClients become unroutable after some time on wifilede-17.01Unconfirmed Task Description

I’m on 17.01.4, on a TP-Link C2600. After some time, some clients become unroutable from other clients, but are still perfectly fine from the router itself. For example, a printer on wifi is invisible on my mac after some time, but if I ssh to the router, and ping it, it’s still there and responding to packets.

From laptop:
PING rxv679.lan (10.1.1.52): 56 data bytes
Request timeout for icmp_seq 0

From router:
PING rxv679 (10.1.1.52): 56 data bytes
64 bytes from 10.1.1.52: seq=0 ttl=64 time=3.284 ms
64 bytes from 10.1.1.52: seq=1 ttl=64 time=3.576 ms

This doesn’t seem to happen to anything connected to ethernet. I don’t really know how to debug this further, so any hints would be welcome. Also, there doesn’t seem to be a definite time when this occurs. Reconnecting the client seems to fix it.


25.01.20181300Base systemBug ReportVery LowCriticalRT-N12+(MT7620N): WLAN not working.TrunkUnconfirmed Task Description

Hello,

Device: RT-N12+
Issue: WLAN is not working properly. When enabled the signal status shows 0db noise 0db. Wireless devices would properly show the SSID however unable to join. Even with No encryption. The system log would even show that radio0 is up.
Steps done:
- Reboot Router
- Re-flash firmware
- Manually set WiFi config: Band 20mhz or 40mhz.
- Toggled between N and Legacy.
- Manually set WiFi channels.
- Tried different encryption.

Additional information:
- I am well aware that this router support is still WIP as stated: https://lede-project.org/toh/hwdata/asus/asus_rt-n12 Basically just putting out this bug report since so far everything seemed fine except for wireless broadcast.
- Used latest snapshot build from downloads page dated: Thu Jan 25 12:07:37 2018

24.01.20181294PackagesBug ReportVery LowLowip-tiny / ip-full insanitylede-17.01Unconfirmed Task Description

Environment: Powered by LuCI lede-17.01 branch (git-17.298.45605-07e7ff0) / LEDE Reboot 17.01.4 r3560-79f57e422d
Model TP-Link Archer C7 v2
Firmware Version LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-17.298.45605-07e7ff0)
Kernel Version 4.4.92
mips_24kc / ar71xx

Description:

Installing strongswan-full got me here. Install ip-tiny, and ip works ‘correctly’, but claims to provide xfrm, but does not. Remove ip-tiny, install ip-full, busybox owns the show, but xfrm works when calling the ip binary with full path. Remove ip-full, install ip-tiny, and ip rules once again, but no ip xfrm.

ip-tiny also claims to provide ip xfrm, but does not. Can provide further info if necessary.

console session follows:

```
# opkg install ip-full
...

# opkg install strongswan-full
Installing strongswan-full (5.5.3-1) to root...
...

# opkg whatprovides ip
What provides ip

  ip-full

# opkg files ip-full
Package ip-full (4.4.0-10) is installed on root and has the following files:
/usr/sbin/ip

# /usr/sbin/ip -V
ip utility, iproute2-ss4.4.0-10-lede

# which ip
/usr/sbin/ip

# export
...
export PATH=’/usr/sbin:/usr/bin:/sbin:/bin’

# ls -l /sbin/ip
lrwxrwxrwx 1 root root 14 Oct 17 19:46 /sbin/ip → ../bin/busybox
# ls -l /usr/sbin/ip
-rwxr-xr-x 1 root root 229044 Dec 30 20:26 /usr/sbin/ip
# ls -l /usr/bin/ip
ls: /usr/bin/ip: No such file or directory

# ip
BusyBox v1.25.1 () multi-call binary.

Usage: ip [OPTIONS] {address | route | link | rule} {COMMAND}

ip [OPTIONS] OBJECT {COMMAND}
where OBJECT := {address | route | link | rule}
OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

# ip -V
BusyBox v1.25.1 () multi-call binary.

Usage: ip [OPTIONS] {address | route | link | rule} {COMMAND}

ip [OPTIONS] OBJECT {COMMAND}
where OBJECT := {address | route | link | rule}
OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

# /usr/sbin/ip -V
ip utility, iproute2-ss4.4.0-10-lede

# /usr/sbin/ip xfrm
Usage: ip xfrm XFRM-OBJECT { COMMAND | help }
where XFRM-OBJECT := state | policy | monitor

# opkg remove ip-full
Removing package ip-full from root...

# opkg install ip-full
Installing ip-full (4.4.0-10) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/base/ip-full_4.4.0-10_mips_24kc.ipk Configuring ip-full.

# ip
BusyBox v1.25.1 () multi-call binary.

...

# opkg remove ip-full
No packages removed.
Collected errors:
* print_dependents_warning: Package ip-full is depended upon by packages:
* print_dependents_warning: strongswan

# opkg remove strongswan –force-depends
Removing package strongswan from root...
Stopping strongSwan IPsec...

# opkg remove ip-full
Removing package ip-full from root...

# opkg install ip-tiny
Installing ip-tiny (4.4.0-10) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/base/ip-tiny_4.4.0-10_mips_24kc.ipk Configuring ip-tiny.

# ip -V
ip utility, iproute2-ss4.4.0-10-lede

# ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }

     ip [ -force ] -batch filename

where OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |

                 tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                 netns | l2tp | fou | tcp_metrics | token | netconf }

...

# opkg whatprovides ip
What provides ip

  ip-tiny

# opkg files ip-tiny
Package ip-tiny (4.4.0-10) is installed on root and has the following files:
/usr/bin/ip

# export
...
export PATH=’/usr/sbin:/usr/bin:/sbin:/bin’

# ls -l /usr/sbin/ip
ls: /usr/sbin/ip: No such file or directory
# ls -l /usr/bin/ip
-rwxr-xr-x 1 root root 159196 Dec 30 20:27 /usr/bin/ip
# ls -l /bin/ip
ls: /bin/ip: No such file or directory
# ls -l /sbin/ip
lrwxrwxrwx 1 root root 14 Oct 17 19:46 /sbin/ip → ../bin/busybox
#

# opkg remove ip-tiny
Removing package ip-tiny from root...

# opkg remove ip-full
No packages removed.

# opkg install ip-full
Installing ip-full (4.4.0-10) to root...
Downloading ...
Configuring ip-full.
# ip
BusyBox v1.25.1 () multi-call binary.
...

# opkg remove ip-full
Removing package ip-full from root...
# opkg install strongswan-full
Package strongswan-full (5.5.3-1) installed in root is up to date.

# ip
BusyBox v1.25.1 () multi-call binary.

# rm /sbin/ip

# opkg remove strongswan-full –force-depends
Removing package strongswan-full from root...
# opkg install strongswan-full
Installing strongswan-full (5.5.3-1) to root...
Downloading ...
Installing ip-tiny (4.4.0-10) to root...
Downloading ...
Installing strongswan (5.5.3-1) to root...
Downloading ...
Configuring ip-tiny.
Configuring strongswan.

# ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }

     ip [ -force ] -batch filename

where OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |

                 tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                 netns | l2tp | fou | tcp_metrics | token | netconf }

...

# ip xfrm
Object “xfrm” is unknown, try “ip help”.

# opkg remove strongswan-full –force-depends
Removing package strongswan-full from root...

# opkg remove strongswan –force-depends
Removing package strongswan from root...
Stopping strongSwan IPsec...

# ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }

     ip [ -force ] -batch filename

where OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |

                 tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                 netns | l2tp | fou | tcp_metrics | token | netconf }

...

# opkg remove ip-tiny
Removing package ip-tiny from root...

# ip
-ash: ip: not found
# ls -l /usr/sbin/ip
ls: /usr/sbin/ip: No such file or directory
# ls -l /usr/bin/ip
ls: /usr/bin/ip: No such file or directory
# ls -l /sbin/ip
ls: /sbin/ip: No such file or directory
# ls -l /bin/ip
ls: /bin/ip: No such file or directory

# opkg install ip-full
Installing ip-full (4.4.0-10) to root...
Downloading ...
Configuring ip-full.

# ip xfrm
-ash: ip: not found
# ip
-ash: ip: not found

# which ip
/usr/sbin/ip

# ip
-ash: ip: not found
# ls -l /usr/sbin/ip
-rwxr-xr-x 1 root root 229044 Dec 30 20:26 /usr/sbin/ip

# which busybox
/bin/busybox

# ln -s /bin/busybox /sbin/ip
# ip
BusyBox v1.25.1 () multi-call binary.
...

# opkg remove ip-full
Removing package ip-full from root...
# opkg install ip-full
Installing ip-full (4.4.0-10) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/base/ip-full_4.4.0-10_mips_24kc.ipk Configuring ip-full.
# ip
BusyBox v1.25.1 () multi-call binary.
...

# opkg remove ip-full
Removing package ip-full from root...
# opkg install ip-tiny
Installing ip-tiny (4.4.0-10) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/base/ip-tiny_4.4.0-10_mips_24kc.ipk Configuring ip-tiny.
# ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }

     ip [ -force ] -batch filename

where OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |

                 tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                 netns | l2tp | fou | tcp_metrics | token | netconf }

...

# which ip
/usr/bin/ip

# /usr/bin/ip xfrm
Object “xfrm” is unknown, try “ip help”.

# export
...
export PATH=’/usr/sbin:/usr/bin:/sbin:/bin’

# opkg remove ip-tiny
Removing package ip-tiny from root...
# opkg install ip-full
Installing ip-full (4.4.0-10) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/base/ip-full_4.4.0-10_mips_24kc.ipk Configuring ip-full.
# which ip
/usr/sbin/ip

# opkg whatprovides ip
What provides ip

  ip-full

# opkg files ip
Package ip-full (4.4.0-10) is installed on root and has the following files:
/usr/sbin/ip

# ip
BusyBox v1.25.1 () multi-call binary.

Usage: ip [OPTIONS] {address | route | link | rule} {COMMAND}

ip [OPTIONS] OBJECT {COMMAND}
where OBJECT := {address | route | link | rule}
OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

# strace ip
execve(”/usr/sbin/ip”, [”ip”], [/* 12 vars */]) = 0
set_thread_area(0x78001d48) = 0
set_tid_address(0x77ffacac) = 26625
open(”/etc/ld-musl-mips-sf.path”, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(”/lib/libgcc_s.so.1”, O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=77040, ...}) = 0
read(3, “\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0(\20\0\0\0004”..., 936) = 936
mmap2(NULL, 143360, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x77f32000
mmap2(0x77f54000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0×12000) = 0x77f54000
close(3) = 0
mprotect(0×445000, 4096, PROT_READ) = 0
socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [1048576], 4) = 0
bind(3, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, nl_pid=26625, nl_groups=00000000}, [12]) = 0
clock_gettime(CLOCK_REALTIME, {tv_sec=1516802132, tv_nsec=297396679}) = 0
close(3) = 0
writev(2, [{iov_base=”“, iov_len=0}, {iov_base=”Usage: ip [ OPTIONS ] OBJECT { C”..., iov_len=810}], 2Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }

     ip [ -force ] -batch filename

where OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |

                 tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                 netns | l2tp | fou | tcp_metrics | token | netconf }
     OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
                  -h[uman-readable] | -iec |
                  -f[amily] { inet | inet6 | ipx | dnet | mpls | bridge | link } |
                  -4 | -6 | -I | -D | -B | -0 |
                  -l[oops] { maximum-addr-flush-attempts } | -br[ief] |
                  -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
                  -rc[vbuf] [size] | -n[etns] name | -a[ll] | -c[olor]}

) = 810
exit_group(-1) = ?
+++ exited with 255 +++

# ip
BusyBox v1.25.1 () multi-call binary.

Usage: ip [OPTIONS] {address | route | link | rule} {COMMAND}

ip [OPTIONS] OBJECT {COMMAND}
where OBJECT := {address | route | link | rule}
OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

# opkg remove ip-tiny
No packages removed.
# opkg remove ip-full
Removing package ip-full from root...

# ip
BusyBox v1.25.1 () multi-call binary.

Usage: ip [OPTIONS] {address | route | link | rule} {COMMAND}

ip [OPTIONS] OBJECT {COMMAND}
where OBJECT := {address | route | link | rule}
OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }

# opkg install strongswan-full
Installing strongswan-full (5.5.3-1) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/packages/strongswan-full_5.5.3-1_mips_24kc.ipk Installing ip-tiny (4.4.0-10) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/base/ip-tiny_4.4.0-10_mips_24kc.ipk Installing strongswan (5.5.3-1) to root...
Downloading http://ftp.halifax.rwth-aachen.de/lede/releases/17.01.4/packages/mips_24kc/packages/strongswan_5.5.3-1_mips_24kc.ipk Configuring ip-tiny.
Configuring strongswan.

# which ip
/usr/bin/ip
# ip xfrm
Object “xfrm” is unknown, try “ip help”.
# ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }

     ip [ -force ] -batch filename

where OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |

                 tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                 netns | l2tp | fou | tcp_metrics | token | netconf }

...
```

Possible causes: http://lists.infradead.org/pipermail/lede-commits/2016-November/001266.html

24.01.20181293Base systemBug ReportVery LowLowThe newest trunk source make ar9344 db120 reference boa...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on AR9344 DB120
- The newest version.
- Steps to reproduce

 

## Booting image at 9f680000 ...

 Image Name:   MIPS OpenWrt Linux-4.9.77
 Created:      2018-01-24   6:33:42 UTC
 Image Type:   MIPS Linux Kernel Image (lzma compressed)
 Data Size:    1379382 Bytes =  1.3 MB
 Load Address: 80060000
 Entry Point:  80060000
 Verifying Checksum at 0x9f680040 ...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.9.77 () (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5935-c25d9cb) ) #0 Wed Jan 24 06:33:42 2018
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 3
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] User-defined 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 0×0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0×0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0×0000000000000000-0x0000000007ffffff]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART),6336k(rootfs.up),1408k(uImage.up),448k(rev) mem=128M rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 124872K/131072K available (3174K kernel code, 166K rwdata, 792K rodata, 276K init, 213K bss, 6200K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:560.000MHz, DDR:450.000MHz, AHB:225.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[ 0.000009] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[ 0.008310] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.081147] pid_max: default: 32768 minimum: 301
[ 0.086166] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.093213] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.103149] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.113657] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.120688] NET: Registered protocol family 16
[ 0.126898] MIPS: machine is Generic AR71XX/AR724X/AR913X based board
[ 0.149064] clocksource: Switched to clocksource MIPS
[ 0.155465] NET: Registered protocol family 2
[ 0.160930] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.168359] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.175173] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.182033] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.188261] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.195205] NET: Registered protocol family 1
[ 0.203762] Crashlog allocated RAM at address 0x3f00000
[ 0.210313] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.223987] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.230227] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) © 2001-2006 Red Hat, Inc.
[ 0.248339] io scheduler noop registered
[ 0.252559] io scheduler deadline registered (default)
[ 0.258371] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.265586] console [ttyS0] disabled
[ 0.289473] serial8250.0: ttyS0 at MMIO 0×18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.298657] console [ttyS0] enabled
[ 0.298657] console [ttyS0] enabled
[ 0.306083] bootconsole [early0] disabled
[ 0.306083] bootconsole [early0] disabled
[ 0.316280] libphy: Fixed MDIO Bus: probed
[ 0.323674] NET: Registered protocol family 10
[ 0.337759] NET: Registered protocol family 17
[ 0.342465] 8021q: 802.1Q VLAN Support v1.8
[ 0.349040] VFS: Cannot open root device “31:02” or unknown-block(31,2): error -6
[ 0.356677] Please append a correct “root=” boot option; here are the available partitions:
[ 0.365163] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[ 0.374233] Rebooting in 1 seconds..

23.01.20181290Base systemBug ReportVery LowMediumAdditional dhcp-range not created in dnsmasq.conf lede-17.01Unconfirmed Task Description

I have created 3 interfaces I want to run a DHCP server on.

The first is the default LAN, then there are 2 more: “camera” and “management”.

In /etc/config/dhcp.conf I have the interfaces defined properly (I suppose):

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'

config dhcp 'management'
        option start '100'
        option leasetime '12h'
        option limit '150'
        option interface 'management'

config dhcp 'camere'
        option interface 'camere'
        option start '100'
        option leasetime '12h'
        option limit '150'
        list dhcp_option '6,192.168.42.1'
 

Anyway, when I look at the generated dnsmasq.conf file (/var/etc/dnsmasq.conf.cfg02411c), I can see only ONE dhcp-range definition, for LAN interface. There is NO OTHER dhcp-range entry.

dhcp-range=lan,192.168.0.100,192.168.0.249,255.255.255.0,12h


So, dnsmasq does not serve dhcp to the other two interfaces.

If I manually add ranges to /etc/dnsmasq.conf, then DHCP works on the other interfaces too.

23.01.20181289Base systemBug ReportVery LowHighTX-Power too high as it does not read antenna gain from...lede-17.01Unconfirmed Task Description

Since commit a9728799bc41e68de4d50995bb4ad689784ef55e (ath: do not apply broken power limits with ATH_USER_REGD) in the lede-17.01 branch, TX-power values are always set to 20 dB (Germany allowed maximum) without considering antenna gain from the driver. If values are set manually using uci, the manually set antenna gain is used and TX-power is adjusted (i.e. with antenna 4 dB we get 16 dB TX-power).

For evaluation of the antenna gain we used “iw <dev> info”.

We did tests with a series of different LEDE versions on a TP-Link WR1043ND v2 and found that versions after the named commit always show 20 dB and versions before show “correct” values.

Since we do not fully understand what the commit does, we then just selectively reverted only this single patch on a recent LEDE build and found that values are set correctly.

From that points, we implemented the reverted patch in our LEDE-based Freifunk distribution and found the following:

On the following devices, reverting the commit causes the TX-Power to be “correct” again (tested by us, only tested ones shown):
TP-Link WR1043N(D) v2-v5
TP-Link WR841N(D) v8-v12
TP-Link WDR3600/4300 v1
TP-Link CPE210

On the following devices, no antenna gain is read from the driver, it looks like they have been “broken” ever since:
Ubiquiti Nanostation M2, Loco M2, Unifi
TP-Link WR1043 v1

Despite those ar71xx devices, we also found no antenna gain is read for the WDR4900 v1 with mpc85xx board after the commit. In this case, we did not validate whether values were correct before the change.

Note that for devices with high dB antennas, the causes devices to send with many times the allowed power, i.e.
CPE 210: 9 dB antenna ⇒ 800 mW instead of allowed 100 mW
Nano M2: 11 dB antenna ⇒ some 1.2 W instead of allowed 100 mW

Despite fixing the issue, it would be nice to know whether it is a good idea to revert this commit and include this workaround in our firmware.

22.01.20181286Base systemBug ReportVery LowHighNetwork startup happens too late with kernel 4.14TrunkUnconfirmed Task Description

Software version: r5917-36f1978a70-x86-64, device: x86-64 PC.

I’ve built 2 versions - one with default kernel 4.9 and another one with kernel 4.14.

The version with kernel 4.9 works fine. Netifd sets up network interfaces, after that another daemons are started.

The version with kernel 4.14 does not work as expected. Another daemons are started before network interface setup. In my case, this prevents the VPN server from working correctly. I have to manually restart VPN service after every reboot. This may potentially affect another software.

I have attached the log files. Please note the startup order as found in the log files:

kernel 4.9: netifd interface setup → block → dropbear → xl2tpd → openvpn
kernel 4.14: block → dropbear → xl2tpd → openvpn → netifd interface setup

I have no idea how a kernel version may affect the startup order. Maybe there is a kind of race condition.


19.01.20181284Base systemBug ReportVery LowLowuboot-kirkwood does not speak MMC on Pogoplug v4TrunkUnconfirmed Task Description

Testing on a Pogoplug V4 with the u-boot committed in f5d267df638d7adc6654f4a1a3d7c7557cafd759, there is no MMC support despite that 010-pogoplug_v4.patch includes kirkwood_mmc.c and friends. Boot messages are simply

U-Boot 2017.09 (Jan 19 2018 - 21:51:49 +0000)
Pogoplug V4

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Error: egiga0 address not set.

On the other hand, the uboot shipped from https://forum.doozan.com/read.php?3,7477,7553 understands MMC. Its boot messages are

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4

SoC:   Kirkwood 88F6192_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
MMC:   MVEBU_MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
18.01.20181282KernelBuild FailureVery LowLow"CONFIG_STRIP_KERNEL_EXPORTS" breaks kernel compilation...TrunkUnconfirmed Task Description

Target: brcm2708_bcm2710 (rpi-3)
Affected openwrt revision: git-head (26045049baf646aa2ce3dce78106da5acf4936ea)
(openwrt-17.01 is not affected)

  • Reproducing

git clone https://git.openwrt.org/openwrt/openwrt.git ; cd openwrt
make menuconfig
# Select:
# Target: Broadcom BCM27xx
# Subtarget: BCM2710 64 bit based boards
# Global build settings —> Strip unnecessary exports from the kernel image: Enabled
make -j 1 V=s

  • Build log
make -C /home/torte/openwrt/nfs/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710/linux-4.9.76 HOSTCFLAGS="-O2 -I/home/torte/openwrt/nfs/openwrt/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="aarch64-openwrt-linux-musl-" ARCH="arm64" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Thu Jan 18 10:39:42 2018" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/torte/openwrt/nfs/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KERNELRELEASE=4.9.76 EXTRA_LDSFLAGS="-I/home/torte/openwrt/nfs/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710 -include symtab.h" CC="aarch64-openwrt-linux-musl-gcc" modules
make[5]: Entering directory '/home/torte/openwrt/nfs/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710/linux-4.9.76'
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  LDS     arch/arm64/kernel/vdso/vdso.lds
cc1: fatal error: symtab.h: No such file or directory
compilation terminated.
scripts/Makefile.build:405: recipe for target 'arch/arm64/kernel/vdso/vdso.lds' failed
make[6]: *** [arch/arm64/kernel/vdso/vdso.lds] Error 1
arch/arm64/Makefile:145: recipe for target 'vdso_prepare' failed
make[5]: *** [vdso_prepare] Error 2
  • Details

The option CONFIG_STRIP_KERNEL_EXPORTS adds “-include symtab.h” for all linker script invokations. See openwrt/include/kernel-defaults.mk:

ifdef CONFIG_STRIP_KERNEL_EXPORTS
  KERNEL_MAKEOPTS += \
        EXTRA_LDSFLAGS="-I$(KERNEL_BUILD_DIR) -include symtab.h"
endif

On recent kernels (4.9.x, arm64 build), linker scripts are used to generate “vdso.lds” at the “make modules” stage.
But the file “symtab.h” is generated later (at the install/image generation stage). See openwrt/include/kernel-build.mk:

  $(LINUX_DIR)/.image: $(STAMP_CONFIGURED) $(if $(CONFIG_STRIP_KERNEL_EXPORTS),$(KERNEL_BUILD_DIR)/symtab.h) FORCE
        $(Kernel/CompileImage)
        $(Kernel/CollectDebug)
        touch $$@

As a result, kernel compilation fails.

  • Sidenotes:

- 32bit arm (brcm2708_bcm2708) is not affected, the vdso stuff is generated by normal .c files

- On arm64 4.4 kernels, the vdso stuff is not compiled for reasons, that I don’t know. Anyway, openwrt-17.01 is not affected

16.01.20181279KernelBug ReportVery LowMediumVRX200 / BT Home Hub 5A does not correctly configure mo...lede-17.01Unconfirmed Task Description

Device: BT Home Hub 5A (xRX200 rev 1.2)
Version: LEDE 17.01.4
Kernel: 4.4.92 / swconfig: 11

I have configured up 3 VLANs using Luci. These are correctly added to /etc/config/network and “uci show | grep switch” shows the entries I’d expect. However only 2 VLANs are correctly configured. The 3rd can be brought up with a manual invocation of “swconfig”. I’ve tried the same thing on an DGN3500 (VR9 platform), also with LEDE 17.01.4, and it works there, leading me to suspect this is a kernel issue with the VRX200 driver.

The switch config in /etc/config/network looks like:

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

config switch_vlan
	option device 'switch0'
	option vlan '1'
	option vid '3'
	option ports '0 4 5t 6t'

config switch_vlan
	option device 'switch0'
	option vlan '2'
	option ports '2 6t'
	option vid '4'

config switch_vlan
	option device 'switch0'
	option vlan '3'
	option ports '1 5t 6t'
	option vid '5'

Running “swconfig dev switch0 load network” leads to the following switch config:

VLAN 1:
	vid: 3
	enable: 1
	ports: 0 4 5t 6t 
VLAN 2:
	vid: 4
	enable: 1
	ports: 2 6t

No other VLAN stanza are shown but ‘swconfig dev switch0 vlan 3 show’ shows that while no ports have been added VLAN ID 5 has been correctly configured:

VLAN 3:
	vid: 5
	enable: 1
	ports:

Manually executing “swconfig dev switch0 vlan 3 set ports ‘1 5t 6t’” brings up the VLAN as expected:

VLAN 3:
	vid: 5
	enable: 1
	ports: 1 5t 6t

uci shows the correct details (uci show | grep switch):

network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].vid='3'
network.@switch_vlan[0].ports='0 4 5t 6t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='2 6t'
network.@switch_vlan[1].vid='4'
network.@switch_vlan[2]=switch_vlan
network.@switch_vlan[2].device='switch0'
network.@switch_vlan[2].vlan='3'
network.@switch_vlan[2].ports='1 5t 6t'
network.@switch_vlan[2].vid='5'
16.01.20181278Base systemBug ReportVery LowLowFirewall fails to load properly for Openvpnlede-17.01Unconfirmed Task Description

- x86_64 device
- LEDE 17.01.1
- Openvpn 2.4.4-2

I have setup Openvpn using TUN server method, as per https://wiki.openwrt.org/doc/howto/vpn.openvpn

Clients are able to connect and ping the tun0 IP, however cannot connect to anything on the lan. The problem appears to be the firewall script is unable to resolve tun0 interface, so skips rules that requiring that interface.

root@LEDE:/etc/config# /etc/init.d/firewall restart
Warning: Section 'vpn' cannot resolve device of network 'vpn0'

To work around the problem, I have to manually insert the following iptables rules:

iptables -t nat -A POSTROUTING -o tun0 -j zone_vpn_postrouting
iptables -t nat -A PREROUTING -i tun0 -j zone_vpn_prerouting
iptables -A INPUT -i tun0 -j zone_vpn_input
iptables -A OUTPUT -o tun0 -j zone_vpn_output
iptables -I FORWARD 9 -i tun0 -j zone_vpn_forward

Once those rules have been inserted, everthing works perfectly!

This issue may relate to External LinkFS#1024


Further details

This is the ‘vpn0’ entry in /etc/config/networks:

config interface 'vpn0'
	option ifname 'tun0'
	option proto 'none'
	option auto '1'
11.01.20181267KernelBug ReportVery LowMediumGL-AR300M Nand support missingTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
GL-AR300M nand
- Software versions of LEDE release, packages, etc.
Trunk
- Steps to reproduce
Try to flash gl-ar300m onto device fails

Glinet has support for nand implemented here: https://github.com/domino-team/lede-ar300m


11.01.20181266Base systemBug ReportVery LowMediumsysupgrade-x86 should detect boot partition properlyTrunkUnconfirmed Task Description

Currently it’s hard-coded into /lib/preinit/79_move_config as:

move_config() {
	local partdev

	. /lib/upgrade/common.sh

	if export_bootdevice && export_partdevice partdev 1; then
		mkdir -p /boot
		if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then
			if [ -f /boot/sysupgrade.tgz ]; then
				mount /boot -o remount,rw,noatime
				mv -f /boot/sysupgrade.tgz /
				mount /boot -o remount,ro,noatime
			fi
			mount --bind /boot/boot /boot
		fi
	fi
}

that the first partition of the boot device is the boot partition. That’s not always the case, and EFI seems to break this.

Also, it’s an obstacle to supporting A/B image+config boot modes.

08.01.20181263KernelBug ReportVery LowMediumArcher C7 Periodic 2.4G WiFi Failure (ath10k_pci failed...lede-17.01Unconfirmed Task Description

We run 17.01.4 (with latest package updates) on Archer C7 (4.4.92 mips / ath10k)

 

We have several similar ArcherC7s that experience a periodic disconnect on 2.4G band. We are fairly certain it occurs on all of them, though about 5 of them actively see this issue where we have to deal with it.

The result is no 2.4G devices can connect (no issue with 5G) until we execute “wifi” or reboot the ArcherC7s.

We have applied a cron job that runs each night and executes “wifi” to workaround this issue since 17.01.2 but believe it may have been present since 17.01.1. It is still present in 17.01.4 unfortunately so we have decided to commit some time to resolving.

In one of our office locations, to monitor this bug with the hope of oneday resolving it, we do not run the cron job, and only have two 2.4G devices connected.

On this device where we have to manually intervene to work around the problem, in the last 52 days (current uptime), the 2.4G failure has happenened three times.

Between the 1st and 2nd occurence we saw these SWBA messages in our dmesg.

[2506537.784853] ath: phy1: DMA failed to stop in 10 ms AR_CR=0×00000024 AR_DIAG_SW=0×02100020 DMADBG_7=0×00028800 [2506539.854485] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.862178] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.869849] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.877511] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.885148] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.892821] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.900499] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.908171] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.915809] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon
[2506539.923492] ath10k_pci 0000:01:00.0: SWBA overrun on vdev 0, skipped old beacon

Before each occurence of the 2.4G failure, at some point we see these messages noting the three different timestamps:

[290147.737347] ath10k_pci 0000:01:00.0: failed to parse phyerr tlv payload at byte 0
[463582.984526] ath10k_pci 0000:01:00.0: failed to parse phyerr tlv payload at byte 0

[2794383.390501] ath10k_pci 0000:01:00.0: failed to parse phyerr tlv payload at byte 0
[2794532.486186] ath10k_pci 0000:01:00.0: failed to parse phyerr tlv payload at byte 0

[4541364.695287] ath10k_pci 0000:01:00.0: failed to parse phyerr tlv payload at byte 0
[4541500.990587] ath10k_pci 0000:01:00.0: failed to parse phyerr tlv payload at byte 0

The only other message that jumps out in the dmesg is the one below, but like thw SWBA, it is not associated with each occurence.

[3311103.068324] ath: phy1: Unable to reset channel, reset status -5

The 2.4G clients are a D-LINK DCH-S150 motion detector (70:62:b8:93:98:b8) and a Google Chromecast (6C:AD:F8:4B:A3:52)

There is not much else in the dmesg (which I have attached), other then the bridge changes that occur when we execute “wifi” to resolve the issue which help identify which messages occur before resolving the issue each time (which can be days later as we only really notice when Chromecast is offline and we are trying to use it).

Nothing jumps out of our logread (and has not in the past), but typically the buffer has wrapped (as was the case today) and provided no messages related to the 2.4G clients.

Our 2.4G config is below, noting we do have a 40Mhz wide config enabled leveraging ht_coex and htmode.

config wifi-device ‘radio1’

option type 'mac80211'
option hwmode '11g'
option path 'platform/qca955x_wmac'
option channel '11'
option htmode 'HT40-'
option txpower '24'
option ht_coex '0'
option noscan '1'
option country 'US'

config wifi-iface

option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'xxxx'
option key 'xxxx'
option encryption 'psk2+ccmp'
07.01.20181262Base systemBug ReportVery LowCriticalCAAM breaking strongswan on WDR4900v1AllUnconfirmed Task Description

Strongswan seems to be trying to use CAAM crypto hardware device on this router through the kernel but the device doesn’t seem to be present or available causing strongswan to fail while trying to add a SA to the kernel.
Everytime strongswan is trying to add a SA to the kernel the following error messages are logged in strongswan and the kernel log. The kernel log error message seems to be generated by the CAAM code (I checked the kernel source to confirm this).

Strongswan log:

12[KNL] received netlink error: No such device (19)
12[KNL] unable to add SAD entry with SPI c88d8084 (FAILED)
12[KNL] received netlink error: No such device (19)
12[KNL] unable to add SAD entry with SPI 0e9ded44 (FAILED)
12[IKE] unable to install inbound and outbound IPsec SA (SAD) in kernel

Linux kernel log:

[6311485.194242] Job Ring Device allocation for transform failed
[6311485.201338] Job Ring Device allocation for transform failed
[6311497.457066] Job Ring Device allocation for transform failed
[6311497.464231] Job Ring Device allocation for transform failed

CAAM must either be disabled or built as a kernel module for this specific router since hardware support is not there and it can only cause potential problems like in this case with Strongswan.

I’m tagging the bug as critical since as reported above Strongswan is not usable on this router due to this bug in the kernel configuration.


02.01.20181252Base systemBug ReportVery LowLowNo IP Assigned to Interface with QMI on Quectel EC-25ATrunkAssigned Task Description

I’m attempting to use QMI on a GL.Inet MiFi equipped with a Quectel EC-25A cellular modem.

When I configure the interface using qmi I am able to connect to the cellular network at the radio layer, however my wwan0 interface is not assigned an IP address. Here’s my configuration from /etc/config/network:

  config interface 'modem'
          option proto 'qmi'
          option ifname 'wwan0'
          option device '/dev/cdc-wdm0'
          option country 'country11'
          option apn 'inet.bell.ca'

And some commands showing the device behaviour. You’ll note that raw_ip needs to be set to Y. I’ve integrated this [patch](https://github.com/bmork/LEDE/commit/10aed12fa587e818e4dc5d0db54545623fbe9b5f) to have qmi.sh set the raw_ip mode when required.

  root@OpenWrt:~# cat /sys/class/net/wwan0/qmi/raw_ip
  Y
  root@OpenWrt:~# ifup modem
  root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-data-status
  "connected"
  root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-current-settings
  {
      "pdp-type": "ipv4",
      "ip-family": "ipv4",
      "mtu": 1500,
      "ipv4": {
          "ip": "100.105.180.51",
          "dns1": "206.47.201.246",
          "dns2": "207.231.231.254",
          "gateway": "100.105.180.52",
          "subnet": "255.255.255.248"
      },
      "ipv6": {
          
      },
      "domain-names": {
          
      }
  }
  root@OpenWrt:~# ifconfig wwan0
  wwan0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
            inet6 addr: fe80::d789:480e:bfc8:2dac/64 Scope:Link
            UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
            RX packets:28 errors:0 dropped:0 overruns:0 frame:0
            TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000 
            RX bytes:5129 (5.0 KiB)  TX bytes:768 (768.0 B)

If I manually use the uqmi command to connect to the cellular network I can then drive the wwan0 interface using dhcp successfully. Here’s my /etc/config/network.

  config interface 'modem'
          option proto 'dhcp'
          option ifname 'wwan0'

And the resulting successful network connection:

  root@OpenWrt:~# ifup modem
  root@OpenWrt:~# ifconfig wwan0
  wwan0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
            inet addr:100.105.180.51  P-t-P:100.105.180.51  Mask:255.255.255.248
            inet6 addr: fe80::d789:480e:bfc8:2dac/64 Scope:Link
            UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
            RX packets:80 errors:0 dropped:0 overruns:0 frame:0
            TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000 
            RX bytes:24102 (23.5 KiB)  TX bytes:16842 (16.4 KiB)
  root@OpenWrt:~# ping -c 1 google.ca
  PING google.ca (172.217.1.163): 56 data bytes
  64 bytes from 172.217.1.163: seq=0 ttl=51 time=29.792 ms
  1. – google.ca ping statistics —

1 packets transmitted, 1 packets received, 0% packet loss

  round-trip min/avg/max = 29.792/29.792/29.792 ms

I believe that for some reason the dhcp client isn’t being run on the wwan0 interface by qmi.sh once it’s online but I’m not able to determine how this is supposed to work. I’m eager to address this issue and submit the resulting patches. Please let me know if you can help.

  root@OpenWrt:~# ping -c 1 8.8.8.8
  PING 8.8.8.8 (8.8.8.8): 56 data bytes
  64 bytes from 8.8.8.8: seq=0 ttl=54 time=31.805 ms
  1. – 8.8.8.8 ping statistics —

1 packets transmitted, 1 packets received, 0% packet loss

  round-trip min/avg/max = 31.805/31.805/31.805 ms
01.01.20181251Base systemBug ReportVery LowMediumStatic IPv6 routes do not worklede-17.01Unconfirmed Task Description

Device problem occurs on: TP-Link TL-WR841N/ND v10
Software versions of LEDE release: LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-17.290.79498-d3f0685)

Steps to reproduce:

I configured a static IPv6 route as follows in /etc/config/network:

config route6
        option interface 'lan'
        option target 'fd99:827e:b43f:3000::/52'
        option gateway 'fd99:827e:b43f:1040::5'
        option metric '1'

However, that route does not get set up:

root@tikal-router:~# ip -6 route
fd99:827e:b43f::/48 from fd99:827e:b43f:1040::10 via fe80::4112:e572:86da:5d3b dev wlan0  metric 512
fd99:827e:b43f::/48 from fd99:827e:b43f:1040::/64 via fe80::4112:e572:86da:5d3b dev wlan0  metric 512
fd99:827e:b43f:1040::/64 dev wlan0  metric 256
fd99:827e:b43f:2010::/64 dev br-lan  metric 1024
unreachable fd99:827e:b43f::/48 dev lo  metric 2147483647  error -148
fe80::/64 dev br-lan  metric 256
fe80::/64 dev wlan0  metric 256
unreachable default dev lo  metric -1  error -128
ff00::/8 dev br-lan  metric 256
ff00::/8 dev wlan0  metric 256
unreachable default dev lo  metric -1  error -128
 


31.12.20171248Base systemBug ReportVery LowHighOn Asus RT N56U changing the wifi channel for 5ghz from...lede-17.01Unconfirmed Task Description

Supply the following if possible:
- Device problem occurs on: Asus RT N56U (https://lede-project.org/toh/hwdata/asus/asus_rt-n56u_a1)
- Software versions of LEDE release, packages, etc.: latest stable and snapshot r5645-7aa1595 / LuCI Master (git-17.362.62617-4f644d9)
- Steps to reproduce:

- flash firmware
- confirm 5ghz wifi working
- switch 5ghz wifi channel away from auto (that will always sit on the lowest channel) to anything else
- wifi will either not start up again, or claim it is started but invisible to all clients. LED is off too.

 


29.12.20171246Base systemBug ReportVery LowLowUbnt Nanostation Loco M2 - WDS link drops out after a f...TrunkUnconfirmed Task Description

Ubnt Nanostation Loco M2 - WDS link drops out after a few hours
I have a pair of Nanostation Loco M2 access points setup as a wireless bridge over a ~1300 foot (~400M) line of sight link.
I have had LEDE 17.01.3, 17.0.4 and OpenWrt SNAPSHOT r5499-575178e / LuCI Master (git-17.343.27587-8e6b1a6).

One is setup as a WDS AP and the other is setup as a WDS Client, after a few hours (4-12 hours?) the link drops out but still says that is connected (if I go to status it shows the other AP as connected but I cannot ping or do anything else across the link).
If I restart the wireless service on the client, the connection comes right back and all is well for a 4-12 hours.
Anyone have any suggestions on where to look? Below are the kernel and system logs for the time period in question:

AP Config files:
/etc/config/network:

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0'
	option proto 'static'
	option netmask '255.255.255.0'
	option ipaddr 'x.x.x.2'
	option gateway 'x.x.x.1'
	option dns 'x.x.x.1'

/etc/config/wireless:

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option path 'pci0000:00/0000:00:00.0'
	option channel '1'
	option country 'US'
	option htmode 'HT40'
	option distance '400'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'LAN_bridge'
	option wds '1'
	option key 'SECRET'
	option encryption 'psk2+tkip+ccmp'

Client Config files:
/etc/config/network:

config interface 'lan'
	option type 'bridge'
	option proto 'static'
	option netmask '255.255.255.0'
	option ipaddr 'x.x.x.3'
	option gateway 'x.x.x.1'
	option dns 'x.x.x.1'
	option _orig_ifname 'eth0'
	option _orig_bridge 'true'
	option ifname 'eth0'
	option delegate '0'

/etc/config/wireless:

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option path 'pci0000:00/0000:00:00.0'
	option channel '1'
	option htmode 'HT40'
	option country 'US'
	option distance '400'

config wifi-iface
	option ssid 'LAN_bridge'
	option device 'radio0'
	option mode 'sta'
	option bssid 'AP_BSSID'
	option key 'SECRET'
	option wds '1'
	option network 'lan'
	option encryption 'psk2+tkip+ccmp'

AP Syslog:

Sun Nov 26 14:01:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 14:11:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 14:21:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 14:31:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 14:41:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 14:51:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 15:01:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 15:11:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 15:21:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
**Somewhere in here the link dropped out and I rebooted the client**
Sun Nov 26 15:28:14 2017 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED ClientMAC
Sun Nov 26 15:28:14 2017 kern.info kernel: [1893620.914221] device wlan0.sta1 left promiscuous mode
Sun Nov 26 15:28:14 2017 kern.info kernel: [1893620.919427] br-lan: port 3(wlan0.sta1) entered disabled state
Sun Nov 26 15:28:52 2017 daemon.info hostapd: wlan0: STA ClientMAC IEEE 802.11: authenticated
Sun Nov 26 15:28:52 2017 daemon.info hostapd: wlan0: STA ClientMAC IEEE 802.11: associated (aid 1)
Sun Nov 26 15:28:52 2017 kern.info kernel: [1893659.422460] device wlan0.sta1 entered promiscuous mode
Sun Nov 26 15:28:52 2017 kern.info kernel: [1893659.440920] br-lan: port 3(wlan0.sta1) entered forwarding state
Sun Nov 26 15:28:52 2017 kern.info kernel: [1893659.447086] br-lan: port 3(wlan0.sta1) entered forwarding state
Sun Nov 26 15:28:53 2017 daemon.notice hostapd: wlan0: AP-STA-CONNECTED ClientMAC
Sun Nov 26 15:28:53 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: pairwise key handshake completed (RSN)
Sun Nov 26 15:28:54 2017 kern.info kernel: [1893661.440359] br-lan: port 3(wlan0.sta1) entered forwarding state
Sun Nov 26 15:31:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)
Sun Nov 26 15:41:13 2017 daemon.info hostapd: wlan0: STA ClientMAC WPA: group key handshake completed (RSN)

AP Kernel Log:

[1649563.614654] br-lan: port 1(eth0) entered disabled state
[1649564.612365] eth0: link up (100Mbps/Full duplex)
[1649564.617165] br-lan: port 1(eth0) entered forwarding state
[1649564.622888] br-lan: port 1(eth0) entered forwarding state
[1649566.620738] br-lan: port 1(eth0) entered forwarding state
[1652624.237670] ------------[ cut here ]------------
[1652624.242540] WARNING: CPU: 0 PID: 0 at compat-wireless-2017-01-31/net/mac80211/rx.c:4214 0x80da5cf0 [mac80211@80d80000+0x60780]()
[1652624.254355] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 113 (0x71)
[1652624.264049] 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 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 ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[1652624.328632] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.89 #0
[1652624.335791] Stack : 803875b4 00000000 00000001 803e0000 00000000 00000000 00000000 00000000
[1652624.335791] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.335791] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.335791] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.335791] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.335791] 	  ...
[1652624.371919] Call Trace:[<80071a8c>] 0x80071a8c
[1652624.376597] [<80071a8c>] 0x80071a8c
[1652624.380290] [<80081888>] 0x80081888
[1652624.383987] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652624.390133] [<800818e4>] 0x800818e4
[1652624.393854] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652624.399981] [<80260a14>] 0x80260a14
[1652624.403663] [<80260bf8>] 0x80260bf8
[1652624.407374] [<80ce8388>] 0x80ce8388 [ath9k_common@80ce8000+0x4800]
[1652624.413800] [<80e677f4>] 0x80e677f4 [ath9k@80e60000+0x16650]
[1652624.419701] [<80e677d4>] 0x80e677d4 [ath9k@80e60000+0x16650]
[1652624.425575] [<80e64a44>] 0x80e64a44 [ath9k@80e60000+0x16650]
[1652624.431446] [<80084448>] 0x80084448
[1652624.435130] [<80083e04>] 0x80083e04
[1652624.438821] [<800a8014>] 0x800a8014
[1652624.442508] [<8006a990>] 0x8006a990
[1652624.446194] [<80060bf4>] 0x80060bf4
[1652624.449876] 
[1652624.451557] ---[ end trace 86b60d5fad42c0e7 ]---
[1652624.456661] ------------[ cut here ]------------
[1652624.461517] WARNING: CPU: 0 PID: 0 at compat-wireless-2017-01-31/net/mac80211/rx.c:4214 0x80da5cf0 [mac80211@80d80000+0x60780]()
[1652624.473297] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 113 (0x71)
[1652624.482988] 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 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 ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[1652624.547552] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.89 #0
[1652624.554704] Stack : 803875b4 00000000 00000001 803e0000 00000000 00000000 00000000 00000000
[1652624.554704] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.554704] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.554704] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.554704] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.554704] 	  ...
[1652624.590833] Call Trace:[<80071a8c>] 0x80071a8c
[1652624.595502] [<80071a8c>] 0x80071a8c
[1652624.599197] [<80081888>] 0x80081888
[1652624.602893] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652624.609038] [<800818e4>] 0x800818e4
[1652624.612760] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652624.618896] [<80260a14>] 0x80260a14
[1652624.622578] [<80260bf8>] 0x80260bf8
[1652624.626277] [<80ce8388>] 0x80ce8388 [ath9k_common@80ce8000+0x4800]
[1652624.632718] [<80e677f4>] 0x80e677f4 [ath9k@80e60000+0x16650]
[1652624.638615] [<80e677d4>] 0x80e677d4 [ath9k@80e60000+0x16650]
[1652624.644489] [<80e64a44>] 0x80e64a44 [ath9k@80e60000+0x16650]
[1652624.650366] [<80084448>] 0x80084448
[1652624.654046] [<80083e04>] 0x80083e04
[1652624.657738] [<800a8014>] 0x800a8014
[1652624.661423] [<8006a990>] 0x8006a990
[1652624.665109] [<80060bf4>] 0x80060bf4
[1652624.668791] 
[1652624.670471] ---[ end trace 86b60d5fad42c0e8 ]---
[1652624.675578] ------------[ cut here ]------------
[1652624.680433] WARNING: CPU: 0 PID: 0 at compat-wireless-2017-01-31/net/mac80211/rx.c:4214 0x80da5cf0 [mac80211@80d80000+0x60780]()
[1652624.692211] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 113 (0x71)
[1652624.701903] 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 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 ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[1652624.766474] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.89 #0
[1652624.773641] Stack : 803875b4 00000000 00000001 803e0000 00000000 00000000 00000000 00000000
[1652624.773641] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.773641] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.773641] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.773641] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.773641] 	  ...
[1652624.809756] Call Trace:[<80071a8c>] 0x80071a8c
[1652624.814426] [<80071a8c>] 0x80071a8c
[1652624.818120] [<80081888>] 0x80081888
[1652624.821816] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652624.827961] [<800818e4>] 0x800818e4
[1652624.831683] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652624.837810] [<80260a14>] 0x80260a14
[1652624.841493] [<80260bf8>] 0x80260bf8
[1652624.845192] [<80ce8388>] 0x80ce8388 [ath9k_common@80ce8000+0x4800]
[1652624.851632] [<80e677f4>] 0x80e677f4 [ath9k@80e60000+0x16650]
[1652624.857530] [<80e677d4>] 0x80e677d4 [ath9k@80e60000+0x16650]
[1652624.863403] [<80e64a44>] 0x80e64a44 [ath9k@80e60000+0x16650]
[1652624.869275] [<80084448>] 0x80084448
[1652624.872960] [<80083e04>] 0x80083e04
[1652624.876638] [<800a8014>] 0x800a8014
[1652624.880331] [<8006a990>] 0x8006a990
[1652624.884015] [<80060bf4>] 0x80060bf4
[1652624.887697] 
[1652624.889376] ---[ end trace 86b60d5fad42c0e9 ]---
[1652624.894482] ------------[ cut here ]------------
[1652624.899340] WARNING: CPU: 0 PID: 0 at compat-wireless-2017-01-31/net/mac80211/rx.c:4214 0x80da5cf0 [mac80211@80d80000+0x60780]()
[1652624.911125] Rate marked as an HT rate but passed status->rate_idx is not an MCS index [0-76]: 113 (0x71)
[1652624.920817] 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 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 ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[1652624.985380] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.89 #0
[1652624.992546] Stack : 803875b4 00000000 00000001 803e0000 00000000 00000000 00000000 00000000
[1652624.992546] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.992546] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.992546] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.992546] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[1652624.992546] 	  ...
[1652625.028662] Call Trace:[<80071a8c>] 0x80071a8c
[1652625.033331] [<80071a8c>] 0x80071a8c
[1652625.037027] [<80081888>] 0x80081888
[1652625.040722] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652625.046868] [<800818e4>] 0x800818e4
[1652625.050589] [<80da5cf0>] 0x80da5cf0 [mac80211@80d80000+0x60780]
[1652625.056714] [<80260a14>] 0x80260a14
[1652625.060410] [<80260bf8>] 0x80260bf8
[1652625.064115] [<80ce8388>] 0x80ce8388 [ath9k_common@80ce8000+0x4800]
[1652625.070555] [<80e677f4>] 0x80e677f4 [ath9k@80e60000+0x16650]
[1652625.076442] [<80e677d4>] 0x80e677d4 [ath9k@80e60000+0x16650]
[1652625.082330] [<80e64a44>] 0x80e64a44 [ath9k@80e60000+0x16650]
[1652625.088198] [<80084448>] 0x80084448
[1652625.091882] [<80083e04>] 0x80083e04
[1652625.095561] [<800a8014>] 0x800a8014
[1652625.099258] [<8006a990>] 0x8006a990
[1652625.102938] [<80060bf4>] 0x80060bf4
[1652625.106607] 
[1652625.108295] ---[ end trace 86b60d5fad42c0ea ]---
[1656961.531085] device wlan0.sta1 left promiscuous mode
[1656961.536375] br-lan: port 3(wlan0.sta1) entered disabled state
[1657000.400508] device wlan0.sta1 entered promiscuous mode
[1657000.416849] br-lan: port 3(wlan0.sta1) entered forwarding state
[1657000.423019] br-lan: port 3(wlan0.sta1) entered forwarding state
[1657002.415840] br-lan: port 3(wlan0.sta1) entered forwarding state
[1729152.802304] eth0: link down
[1729152.805769] br-lan: port 1(eth0) entered disabled state
[1729180.803335] eth0: link up (100Mbps/Full duplex)
[1729180.808173] br-lan: port 1(eth0) entered forwarding state
[1729180.813898] br-lan: port 1(eth0) entered forwarding state
[1729182.811672] br-lan: port 1(eth0) entered forwarding state
[1893620.914221] device wlan0.sta1 left promiscuous mode
[1893620.919427] br-lan: port 3(wlan0.sta1) entered disabled state
[1893659.422460] device wlan0.sta1 entered promiscuous mode
[1893659.440920] br-lan: port 3(wlan0.sta1) entered forwarding state
[1893659.447086] br-lan: port 3(wlan0.sta1) entered forwarding state
[1893661.440359] br-lan: port 3(wlan0.sta1) entered forwarding state
[1894771.793057] device wlan0.sta1 left promiscuous mode
[1894771.798391] br-lan: port 3(wlan0.sta1) entered disabled state
[1894777.535302] device wlan0.sta1 entered promiscuous mode
[1894777.547462] br-lan: port 3(wlan0.sta1) entered forwarding state
[1894777.553631] br-lan: port 3(wlan0.sta1) entered forwarding state
[1894779.546485] br-lan: port 3(wlan0.sta1) entered forwarding state
[1895148.287966] device wlan0.sta1 left promiscuous mode
[1895148.293178] br-lan: port 3(wlan0.sta1) entered disabled state
[1895148.349721] device wlan0 left promiscuous mode
[1895148.354492] br-lan: port 2(wlan0) entered disabled state
[1895150.539163] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[1895150.663905] device wlan0 entered promiscuous mode
[1895153.075046] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[1895153.081886] br-lan: port 2(wlan0) entered forwarding state
[1895153.087660] br-lan: port 2(wlan0) entered forwarding state
[1895154.299110] device wlan0.sta1 entered promiscuous mode
[1895154.316512] br-lan: port 3(wlan0.sta1) entered forwarding state
[1895154.322716] br-lan: port 3(wlan0.sta1) entered forwarding state
[1895155.086003] br-lan: port 2(wlan0) entered forwarding state
[1895156.315941] br-lan: port 3(wlan0.sta1) entered forwarding state

Thanks in advance

Aaron Z


25.12.20171243Base systemBug ReportVery LowHighiw crashesTrunkUnconfirmed Task Description

Device: MiniBox1
Bug shows up on Version: r5616-67c1c14
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.464347] WARNING: CPU: 0 PID: 21595 at backports-2017-11-01/net/mac80211/rx.c:629 ieee80211_rx_napi+0x254/0x924 [mac80211]
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.475518] 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 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 ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.538004] CPU: 0 PID: 21595 Comm: iw Tainted: G        W       4.9.70 #0
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.544849] Stack : 804d78fa 0000003e 00000000 00000001 83900284 8045f247 8041283c 0000545b
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.553182]         804d3a40 00000275 00000004 829d3cd8 00000000 800a96a4 80418058 80460000
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.561515]         00000003 00000275 80416228 82fcb854 00000000 800d8d8c 804d78fa 00000071
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.569848]         80471670 80226900 00000000 00000000 00000000 00000000 00000000 00000000
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.578180]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.586513]         ...
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.588946] Call Trace:
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.591389] [<8006b2e8>] show_stack+0x54/0x88
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.595747] [<8007ff60>] __warn+0xe4/0x118
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.599829] [<80080028>] warn_slowpath_null+0x1c/0x34
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.604971] [<832258d8>] ieee80211_rx_napi+0x254/0x924 [mac80211]
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.611055] [<832e7524>] ath_rx_tasklet+0xc98/0xce4 [ath9k]
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.616497] [<832e75e8>] ath_stoprecv+0x78/0xfd8 [ath9k]
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.621819] [<832e32bc>] ath9k_deinit_device+0x6a4/0x940 [ath9k]
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.627795] [<832e5190>] ath9k_calculate_summary_state+0x510/0x610 [ath9k]
Mon Dec 25 04:12:07 2017 kern.warn kernel: [ 1108.634654] ---[ end trace 7044105c09374f7d ]---

This crash doe _NOT_ show up on 17.01.4, Rev. r3560-79f57e422d

22.12.20171239PackagesBug ReportVery LowLowuhttpd package comes with /etc/config/uhttpd file that ...TrunkUnconfirmed Task Description

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

root@OpenWRT:~# cat /etc/openwrt_release
DISTRIB_ID=’OpenWrt’ DISTRIB_RELEASE=’SNAPSHOT’ DISTRIB_REVISION=’r5601-efa22b1’ DISTRIB_TARGET=’ar71xx/generic’ DISTRIB_ARCH=’mips_24kc’ DISTRIB_DESCRIPTION=’OpenWrt SNAPSHOT r5601-efa22b1’ DISTRIB_TAINTS=’’ root@OpenWRT:~# cat /etc/board.json
{

"model": {
	"id": "tl-wdr4300",
	"name": "TP-Link TL-WDR3600 v1"
},

...

to reproduce:
- install lede
- run lua/luci, modify configuration somehow and save, so that /etc/config/uhttpd is overwritten
- flash corresponding sysupgrade.bin with “[x] keepsettings” - ssh root@OpenWRT.localnet opkg update
- ssh root@OpenWRT.localnet opkg install luci-ssl strace snmpd snmp-mibs lsof rsyslog diffutils vim less

note in output:

Collected errors:
* resolve_conffiles: Existing conffile /etc/config/uhttpd is different from the conffile in the new package. The new conffile will be placed at /etc/config/uhttpd-opkg.
* resolve_conffiles: Existing conffile /etc/config/luci is different from the conffile in the new package. The new conffile will be placed at /etc/config/luci-opkg.

The contents of uhttpd-opkg and uhttpd are quite the same, the lua/luci version being without comments and with ‘quoted’ values (see attached file).

A resolution of “wont fix” would be absolutely acceptable.

Kind regards,
Dominik

22.12.20171238PackagesBug ReportVery LowMediumcurl: https request returns 'Illegal instruction'TrunkUnconfirmed Task Description

Environment:

root@LEDE:~# cat /etc/os-release
NAME="LEDE"
VERSION="17.01.4, Reboot"
ID="lede"
ID_LIKE="lede openwrt"
PRETTY_NAME="LEDE Reboot 17.01.4"
VERSION_ID="17.01.4"
HOME_URL="http://lede-project.org/"
BUG_URL="http://bugs.lede-project.org/"
SUPPORT_URL="http://forum.lede-project.org/"
BUILD_ID="r3560-79f57e422d"
LEDE_BOARD="mpc85xx/generic"
LEDE_ARCH="powerpc_8540"
LEDE_TAINTS="no-all"
LEDE_DEVICE_MANUFACTURER="LEDE"
LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/"
LEDE_DEVICE_PRODUCT="Generic"
LEDE_DEVICE_REVISION="v0"
LEDE_RELEASE="LEDE Reboot 17.01.4 r3560-79f57e422d"

Description:

I’m using oficial stable release for TP-Link TL-WDR4900 v1 and when I try to use curl I give the following error:

root@LEDE:~# curl https://google.com
Illegal instruction

I have installed all curl dependencies and ca-certificates:

root@LEDE:~# opkg list-installed | egrep "ssl|curl|mbed|ddns"
curl - 7.52.1-6
ddns-scripts - 2.7.6-13
ddns-scripts_cloudflare.com-v4 - 2.7.6-13
libcurl - 7.52.1-6
libmbedtls - 2.6.0-1
libopenssl - 1.0.2n-1
luci-app-ddns - 2.4.8-2
openvpn-openssl - 2.4.4-2

And wget works well:

root@LEDE:~# wget https://google.com
--2017-12-18 13:25:10--  https://google.com/
Resolving google.com... 178.60.128.37, 178.60.128.42, 178.60.128.20, ...
Connecting to google.com|178.60.128.37|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.google.es/?gfe_rd=cr&dcr=0&ei=prM3Wp3qOeGs8wfNpI_gDg [following]
--2017-12-18 13:25:10--  https://www.google.es/?gfe_rd=cr&dcr=0&ei=prM3Wp3qOeGs8wfNpI_gDg
Resolving www.google.es... 172.217.21.67, 2a00:1450:4006:807::2003
Connecting to www.google.es|172.217.21.67|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'

index.html                                       [ <=>     ]  12.82K  81.4KB/s    in 0.2s    

2017-12-18 13:25:11 (81.4 KB/s) - 'index.html' saved [13132]

There is an issue with `curl - 7.52.1-6`?

21.12.20171237OtherBug ReportVery LowLowsnmpd does not report connected clients correctlyTrunkUnconfirmed Task Description

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

 

The commonly used OID 1.3.6.1.2.1.4.22.1.2 does not report a complete list of clients.

Using snmpd 5.7.3-3 on LEDE 17.01.04, ssh in and display a list of connected clients with iwinfo wlan0 assoclist. To query via SNMP from another machine, use snmpwalk -v2c 172.24.32.15 1.3.6.1.2.1.4.22.1.2

mini-snmpd and mini_snmpd both seem to be unavailable as alternatives.

19.12.20171232KernelFeature RequestVery LowMediumenable in kernel CONFIG_SATA_PMP=1 for chipset Marvellede-17.01Unconfirmed Task Description

This is similar request to FS#547.

This is required to use PMP on e.g. LinkSys WRT3200acm.

Explanation:
Generally routers like Linksys WRT3200Acm have both USB3 and eSata interfaces. To not cause Wifi 2.4GHz interference users should switch their NAS from USB3 to eSata. And this is not possible now if they have >1 HDD connected on the eSata. With 2 or more HDD over eSata required is PMP to access both/all drives. USB is different story, but Wifi 2.4GHz is unusable then.

Example discussion is here:
https://forum.lede-project.org/t/wrt3200acm-esata-port-multiplier/3690/7

19.12.20171231Base systemBug ReportVery LowLowramips / mt7621 - UBNT EdgeRouter X - /dev/zram1 not fo...lede-17.01Unconfirmed Task Description

Device:
UBNT-ERX

Version:
DISTRIB_REVISION=’r2993+792-b9a408c2b4’ DISTRIB_CODENAME=’reboot’

During Boot:
Fri Dec 15 18:35:25 2017 daemon.debug zram_start: activating ‘/dev/zram0’ for swapping (124 MegaBytes)
Fri Dec 15 18:35:25 2017 daemon.notice procd: /etc/rc.d/S15zram: zram_start: activating ‘/dev/zram0’ for swapping (124 MegaBytes)
Fri Dec 15 18:35:25 2017 daemon.debug zram_reset: enforcing defaults via /sys/block/zram0/reset
Fri Dec 15 18:35:25 2017 daemon.notice procd: /etc/rc.d/S15zram: zram_reset: enforcing defaults via /sys/block/zram0/reset
Fri Dec 15 18:35:25 2017 kern.info kernel: [ 21.187248] zram0: detected capacity change from 0 to 130023424
Fri Dec 15 18:35:25 2017 daemon.notice procd: /etc/rc.d/S15zram: Setting up swapspace version 1, size = 130019328 bytes
Fri Dec 15 18:35:25 2017 kern.info kernel: [ 21.207813] Adding 126972k swap on /dev/zram0. Priority:-1 extents:1 across:126972k SS
Fri Dec 15 18:35:25 2017 daemon.crit zram_applicable: [ERROR] device ‘/dev/zram1’ not found
Fri Dec 15 18:35:25 2017 daemon.notice procd: /etc/rc.d/S15zram: zram_applicable: [ERROR] device ‘/dev/zram1’ not found

Seems like for each CPU a “dedicated” zram is been tried to mounted which is failing. ER-X does have a Dual Core CPU.

If you need more information, please let me know.


18.12.20171230Base systemBug ReportVery LowHighADSL connection can't be established on Arcadyan ARV751...lede-17.01Unconfirmed Task Description

I have an Arcadyan ARV7518PW ADSL router on which I flashed U-Boot, and installed different versions of OpenWrt and LEDE. I only manage to get an ADSL connection with OpenWrt 14.07, and not on OpenWrt 15.05.1, LEDE 17.01.3 and LEDE 17.01.4.

I checked that the DSL firmware in /lib/firmware is identical in all these versions. I installed the packages in different ways (direct upload using httpd from U-Boot, upgrade from other version), even on different routers (I have 3 of these), with consistent results.

Please let me know whatever information you’d like me to add.


14.12.20171227Base systemBug ReportVery LowCriticalBrick in TP-Link CPE210 HW 1.1 after sysupgrade from LE...lede-17.01Unconfirmed Task Description

After problems described in this bug:

Try to flash sysupgrade from here.

LuCI let this image pass but the device do not came back after reboot.
Only the Power-LED ist on, no blinking of RSSIHIGH during boot.
On LAN or WAN is no activity. Checked by tcpdump.

Expected behavior:
System reboot in LEDE-17.01.4

Like described in this bug it is not possible to recover via TFTP the device. It pulls the firmware but do not flash anything.
Try to recover with LEDE but also with all stock-images from tp-link website.

13.12.20171224Base systemBug ReportVery LowLowDuplicate ICMP and ARP responses via several VLANslede-17.01Unconfirmed Task Description

My setup:
I have a TP Link WRT3600 with LEDE 17.01.4 (bug appeared in earlier versions as well, at least in 17.01.3 and 17.01.2). The router is connected to a manageable switch via VLAN trunk. The trunk consists of 4 VLANs with the IDs 1, 10, 11 and 12. LEDE’s IP and the switch’s management IP are located in VLAN 1. There are other switches connected to the first switch, also via VLAN trunk. Each VLAN has their own /24 IPv4 subnet in the format 192.168.<VLAN-ID>.0/24.

The phenomenon:
A device in VLAN 10 or 12 pings the switch. tcpdump confirms that the switch is sending exactly one reply per request. However, the device receives duplicate pings (for now, 2 duplicates and a valid response). A check with tcpdump running on the LEDE router sniffing on eth0.1 receives the valid reply as well. A check with tcpdump on the router sniffing on eth0 in general shows the duplicates as well. The duplicates go away when i ping from the LEDE explicitly on eth0.1, but re-appear when i ping without an explicit ethernet device to use. tcpdump shows me even more: The valid response is marked VLAN 10 with the pinging device as target address. One duplicate is marked VLAN 10 with the same target address as well, but the second duplicate is marked VLAN 12 but with the pinging device as target address, which is an IP located in VLAN 1’s subnet. The pinging client receives all three answers.

This is also happening for ARP requests. The LEDE router makes an ARP request for the switch’s management MAC address and replicates the answer to VLANs 10 and 12, so that these VLANs/subnets receive ARP answers they didn’t request.

This only happens for this particular switch. The other trunked switches have no replicated answers when they get pinged. This only happens for VLANs 10 and 12, VLAN 11 is not affected, there is no duplicate addressing it. I tried to create more VLANs, but the number of duplicates doesn’t increase. I tried to move all the stuff from VLAN 12 to VLAN 14, and the duplicate change their destination to VLAN 14 as well. When i start a ping and observe it in my terminal window, and deactivate one of the interfaces for either VLAN 10 or 12, the number of replicates decreases.

And last but not least: I started a ping and observed it in the terminal. Remember, it goes from VLAN 10 to VLAN 1. I created a firewall rule which should block all incoming ICMP responses from VLAN 1 back to VLAN 10. Nevertheless, with the rule activated, i still got three responses for each request, as if the firewall rule wasn’t in place at all.

 

The switch i was pinging the whole time was an Allied Telesis GS950/24. This phenomenon happens with other routers running OpenWRT Chaos Calmer 15.01 as well (namely a TP Link WR841n)

11.12.20171220KernelBug ReportVery LowCriticalWireless on WRT3200ACM kills all networkinglede-17.01Unconfirmed Task Description

Supply the following if possible:
Linksys WRT3200ACM

driver name: mwlwifi
chip type: 88W8964
hw version: 7
driver version: 10.3.4.0-20171129
firmware version: 0×09030201 power table loaded from dts: no
firmware region code: 0×0 mac address: 60:38:e0:be:cc:e1
2g: enable
5g: disable
antenna: 4 4
irq number: 106
ap macid support: 0000ffff
sta macid support: 00010000
macid used: 00000001
radio: enable
iobase0: e1200000
iobase1: e1480000
tx limit: 1024
rx limit: 16384

Reboot (17.01.4, r3560-79f57e422d)

Steps to reproduce:
Fresh OpenWRT Install
Remove the old mwlwifi driver, Install the updated (as it is broken in the base install)
Enable the 5GHZ band signals
SSH into router and run readlog -f
Run many speed tests from multiple devices (seems to trigger it almost instantly)

 

Right before it crashes and I lose all connectivity I get the message:
Mon Dec 11 08:39:31 2017 kern.info kernel: [10357.894826] mwifiex_sdio mmc0:0001:1: Tx: Bridge packet limit reached. Drop packet!
Mon Dec 11 08:39:51 2017 daemon.notice hostapd: nl80211: nl80211_recv_beacons→nl_recvmsgs failed: -5
Mon Dec 11 08:39:51 2017 kern.info kernel: [10377.918852] mwifiex_sdio mmc0:0001:1: cmd_wait_q terminated: -110

I tried increasing the txpacket limit from 1000 to 20000 but that only delayed the crash until later.

10.12.20171216Base systemFeature RequestVery LowLowkmod-mwlwifi: Driver update to support 802.11r FTTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on: WRT1900AC + WRT1900ACS
- Software versions of LEDE release, packages, etc.: TRUNK

Commit 760f7bf1b8af6c899ccb14d47e8b987ed9a62adf on Nov 6th updated the mwlwifi driver to accept and MDIE Beacon parameter from hostapd. I have compiled this version in the 17.01.4 SDK and been running for roughly a month with no issues. Please update the firmware for the next release, if possible.

https://github.com/kaloz/mwlwifi/commit/760f7bf1b8af6c899ccb14d47e8b987ed9a62adf

If there is anything I can provide to help out, please let know!

09.12.20171215PackagesBug ReportVery LowLow`/sbin/block` is not able to mount logical volumes over...lede-17.01Unconfirmed Task Description

Some days ago I wrote the topic How to use LVM for extend the root filesystem into Installing and Using LEDE category of LEDE Forum trying to do exactly that but when the system tryies to mount the logical volume destinated to `/overlay` on boot time, the command `block mount` fails.

Everything information about the bug and the way to reproduce it is wrote in How to use LVM for extend the root filesystem.

Thanks in advance,

Showing tasks 151 - 200 of 505 Page 4 of 11<<First - 2 - 3 - 4 - 5 - 6 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing