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.

OpenedID  descCategoryTask TypePrioritySeveritySummaryReported InStatus
20.04.20181511KernelBug ReportVery LowCriticalBelkin F5D8235 v1 (most likely all rt288x devices) are ...TrunkUnconfirmed Task Description

For kernel 4.9 the router boots correctly but on 4.14 the following panic occurs:

[    0.000000] Failed to request intc memory
[    0.000000] Kernel panic - not syncing: Failed to request resources for ralink,rt2880-sysc

Same happens when adding “syscon” to the compatible string.

Complete boot log:

   Image Name:   MIPS OpenWrt Linux-4.14.34
   Created:      2018-04-20   8:36:42 UTC

 System Control Status = 0x02910084
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1443112 Bytes =  1.4 MB
   Load Address: 88000000
   Entry Point:  88000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 88000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[    0.000000] Linux version 4.14.34 (fam-wolf@loki) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6653-c0bbb9703f)) #0 Fri Apr 20 08:36:42 2018
[    0.000000] SoC Type: Ralink RT2880 id:2 rev:1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001906c (MIPS 4KEc)
[    0.000000] MIPS: machine is Belkin F5D8235 v1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 08000000 (usable)
[    0.000000] Wasting 1048576 bytes for tracking 32768 unused pages
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000009ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000009ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000009ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 40640
[    0.000000] Kernel command line: console=ttyS0,57600 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] Memory: 25504K/163840K available (3325K kernel code, 166K rwdata, 804K rodata, 1200K init, 208K bss, 138336K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] Failed to request intc memory
[    0.000000] Kernel panic - not syncing: Failed to request resources for ralink,rt2880-sysc
[    0.000000] Rebooting in 1 seconds..
[    0.000000] Reboot failed -- System halted
20.04.20181510Base systemBug ReportMediumLowbusybox conflicts with flockTrunkNew Task Description

OpenWrt master r6735-1a89547957

Collected errors:
 * check_data_file_clashes: Package flock wants to install file /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/root-x86/usr/bin/flock
        But that file is already provided by package  * busybox
 * opkg_install_cmd: Cannot install package flock.
20.04.20181509Base systemBug ReportMediumLowomcproxy no longer buildsTrunkNew Task Description

OpenWrt master r6735-1a89547957

make[6]: Entering directory '/home/build/lede/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f'
[ 11%] Building C object CMakeFiles/omcproxy.dir/src/mrib.c.o
In file included from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f/src/omcproxy.h:51:0,
                 from /home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f/src/mrib.c:39:
/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/omcproxy-2017-02-14-1fe6f48f/src/mrib.c:57:34: error: braced-group within expression allowed only inside a function
 static uint32_t ipv4_rtr_alert = cpu_to_be32(0x94040000);
                                  ^
cc1: warning: unrecognized command line option '-Wno-gnu'
20.04.20181508KernelBug ReportVery LowCriticalkernel x86 generic/geode/legacy missing via_atalede-17.01Unconfirmed Task Description

In Openwrt/LEDE 17.01.x fo x86 architecture

I have a industrial box with a VIA c3 processor and via chipset runnning at 400Mhz

The kernel provided doesn’t support VIA PATA chipset:

[ 1.591773] sched_clock: Marking stable (1591687906, 0)→(2395073718, -803385812)
[ 1.617278] rtc_cmos rtc_cmos: setting system clock to 2003-01-01 00:01:07 UTC (1041379267)
[ 1.671629] Waiting for root device PARTUUID=076b2e55-02...
[ 1.882538] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x5c76999487, max_idle_ns: 440795213641 ns
[ 1.912531] clocksource: Switched to clocksource tsc

[ 131.182653] random: crng init done

the boot is stuck waiting for root mountpoint

19.04.20181506PackagesFeature RequestVery LowLowBuild Samba with VFS Recycle module/library includedAllUnconfirmed Task Description

Please include the VFS_Recycle module in the Samba build.

19.04.20181505Base systemBug ReportVery LowLowThe "Replaces" tag on the Packages files make opkg han...TrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
When building a image of the firmware (for example a TP-Link Archer C7 v2/v4 or a WR1043NDv4). The problems occurs on the compiling host (Ubuntu 16.04 on a x86_64)

- Software versions of OpenWrt/LEDE release, packages, etc.
I used several snapshots of the image builder and even the trunk (commit a18d88e8630acd7fd276caa50811b57470a01f9d), used to work on LEDE 17.1.0

- Steps to reproduce
0) untar the imagebuilder
1) add “src/gz wifirover http://downloads.altsysnet.com/wifirover/lede/testing/” to the repositories.conf of the imagebuilder.
2) make a image, say for Archer C7v4:

make image PROFILE=archer-c7-v4 PACKAGES="wifirover"

Expected: Compilation succeeds
Happens: opkg segfaults

10:10 sebastien@ubuntu-N750HU: /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64$ LANG=C make image PROFILE=archer-c7-v4 PACKAGES="wifirover" 
Building images for ar71xx - TP-LINK Archer C7 v4
Packages: wifirover ath10k-firmware-qca988x base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-ath10k kmod-ath9k kmod-gpio-button-hotplug libc libgcc logd mtd netifd odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe swconfig uboot-envtools uci uclient-fetch wpad-mini

bash: line 6:   841 Segmentation fault      (core dumped) IPKG_NO_SCRIPT=1 IPKG_INSTROOT=/tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx TMPDIR=/tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx/tmp /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/staging_dir/host/bin/opkg --offline-root /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/build_dir/target-mips_24kc_musl/root-ar71xx --force-postinstall --add-dest root:/ --add-arch all:100 --add-arch mips_24kc:200 -f /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/repositories.conf --cache /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/dl --lists-dir ../../../../../../tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64/dl update 1>&2

Installing packages...
Makefile:134: recipe for target 'package_install' failed
make[2]: *** [package_install] Segmentation fault (core dumped)
Makefile:100: recipe for target '_call_image' failed
make[1]: *** [_call_image] Error 2
Makefile:175: recipe for target 'image' failed
make: *** [image] Error 2

the Packages files is like this

Package: wifirover
Version: 2017-05-1
Description: WifiRover Captive portal
Section: extras
Priority: optional
Maintainer: Olivier Fontes <olivier@altsysnet.com>, Sebastien DA ROCHA <sebastien@altsysnet.com>
License: LGPL 2.1
Architecture: all
OE: wifirover
Source: https://github.com/altsysnet/wifirover
Depends: firewall, base-files, base-files, php7, dnsmasq-full
Replaces: firewall, base-files, base-files, php7, dnsmasq-full
MD5Sum: 38f9caf3692ae69ac04c3a7d6ab6908a
Size: 20757
Filename: wifirover_2017-05-1.ipk

If I remove the “Replaces:” tag the run go on, but it fails because I’ve put custom files on my wifirover package, such as php.ini, /etc/firewall.user...

- my analysis :
I’ve compiled opkg based on https://git.openwrt.org/project/opkg-lede.git with debug enabled.

The segfaults happens just by making :
sudo opkg-cl -f repositories.conf update
opkg-cl -f repositories.conf install wifirover

using gdb, I get

10:22 sebastien@ubuntu-N750HU: /tmp/17010/openwrt-imagebuilder-ar71xx-generic.Linux-x86_64$ gdb opkg-cl 
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from opkg-cl...done.
(gdb) run -f repositories.conf install wifirover
Starting program: /usr/local/bin/opkg-cl -f repositories.conf install wifirover
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
pkg_conflicts_abstract (pkg=pkg@entry=0x6278e0, conflictee=conflictee@entry=0x62d1c0)
    at /home/sebastien/Sources/opkg-lede/libopkg/pkg_depends.c:472
472		for (conflict = conflicts; conflict->type; conflict++) {
(gdb) 

And thats where I’m stuck on my analysis :-(

18.04.20181503Base systemBug ReportVery LowCriticalGL-MT300A Crashes and Reboots in a Loop As of 17.01.2lede-17.01Unconfirmed Task Description

The GL.iNet GL-MT300A runs stable on LEDE 17.01.1. This device is an ramips/mt7620 target.

However, two users in the LEDE forum have reported that the device becomes unstable after upgrading it to LEDE 17.01.2 or later (including 17.01.4). The device boots but then crashes and reboots in a loop over and over. The only workaround seems to be to go into recovery mode and then flash back to LEDE 17.01.1 after which it becomes stable again.

It’s difficult to debug as you can ssh into the device upon boot, but then it crashes within a minute or two. One user in the form post below suggested it is related to the Wi-Fi driver.

More details here:
https://forum.lede-project.org/t/gl-mt300a-wifi-broken-with-newer-lede/10856

18.04.20181502KernelBug ReportVery LowHighMT7621 - MTU > 1500 not supported (was previously) TrunkUnconfirmed Task Description

Edgerouter X / Edgerouter X SFP running Trunk

root@OpenWrt:~# ifconfig eth0 mtu 1600
ifconfig: SIOCSIFMTU: Invalid argument

[ 109.619242] eth0: Invalid MTU 1600 requested, hw max 1500

This was supported previously on Reboot r4651-a6f6f8d

 


17.04.20181501PackagesBug ReportVery LowHighDS-Lite is broken on snapshot with some modelsTrunkUnconfirmed Task Description

Hey everybody,

my provider forces me to use ds-lite to get connection to the v4 internet.

I first tried openwrt on an old Linksys E4200, which worked with any version - but the router ran with around 50% cpu utilization at all times and it was very slow.
After updating to an Linksys WRT 3200 ACM, 17.01.4 works great!
Newest trunk though doesn’t.

It also does not work on WRT 1900 ACS v2 and Netgear R7800 according to various forum posts.

I already gathered some information about it on the openwrt Forum → https://forum.openwrt.org/viewtopic.php?id=73755

What else can I provide to make future versions work?

To mee, it seems like there is a problem with odhcp6c and maybe dnsmasq? Plus the script always produces “command not found” errors (even on the e4200), so maybe the script does not work flawlessly?

Thanks for your help!
Best regards,
Tim

16.04.20181498ToolchainBuild FailureVery LowMediumBuilding gccgo failesTrunkUnconfirmed Task Description

Hi,

I’m currently trying to cross-compile Go binaries for MIPS/soft-float.
My target system is an Ubiquiti EdgeRouterX (mt7621 Soc), you can find
my .config here:

https://gist.github.com/dmke/a4f673eb89862ef9dc2724c238480bb9#file-config

I don’t need to compile go code on the ERX hardware, I only need the
gccgo compiler from the toolchain for cross-compiling. However,
building the toolchain (toolchain/gcc/final) breaks with some unsupported
processor opcodes:

$LEDE_ROOT/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/libffi/src/mips/o32.S: Assembler messages:
.../o32.S:94: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.d $f12,0*4($sp)'
.../o32.S:101: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.s $f12,0*4($sp)'
.../o32.S:109: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.d $f12,0*4($sp)'
.../o32.S:110: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.d $f14,2*4($sp)'
.../o32.S:115: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.s $f12,0*4($sp)'
.../o32.S:116: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.s $f14,1*4($sp)'
.../o32.S:123: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.d $f12,0*4($sp)'
.../o32.S:124: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.s $f14,2*4($sp)'
.../o32.S:131: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.s $f12,0*4($sp)'
.../o32.S:132: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.d $f14,2*4($sp)'
.../o32.S:161: Error: opcode not supported on this processor: mips32r2 (mips32r2) `s.s $f0,0($8)'
.../o32.S:168: Error: opcode not supported on this processor: mips32r2 (mips32r2) `s.d $f0,0($8)'
.../o32.S:265: Error: opcode not supported on this processor: mips32r2 (mips32r2) `s.d $f12,((14*4)-10*4)($fp)'
.../o32.S:266: Error: opcode not supported on this processor: mips32r2 (mips32r2) `s.d $f14,((14*4)-8*4)($fp)'
.../o32.S:285: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.s $f0,((14*4)-6*4)($fp)'
.../o32.S:289: Error: opcode not supported on this processor: mips32r2 (mips32r2) `l.d $f0,((14*4)-6*4)($fp)'

(the aforementioned gist contains repro code in form of a pseudo shell
script with more output, in case this gets unreadably formatted :-))

I’ve come accross this a commit in libffi [1], which seems to be
included in the packages repo [2] (which in my case isn’t enough).

[1]: https://github.com/libffi/libffi/commit/7a0d2c83bf2b0422e2d0ed297f847fc1eeb88bb3 [2]: https://git.openwrt.org/?p=feed/packages.git;a=commit;h=3a7a4bf

After tinkering with the patch a bit, I’ve come up with this modified
patch:

https://gist.github.com/dmke/a4f673eb89862ef9dc2724c238480bb9#file-301-fix-mips-fix-mips-softfloat-build-issue-patch

That however fails to compile gccgo’s go command:

$ $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0-final/./gcc/gccgo -B$LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0-final/./gcc/ -B$LEDE_SOURCE/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/mipsel-openwrt-linux-gnu/bin/ -B$LEDE_SOURCE/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/mipsel-openwrt-linux-gnu/lib/ -isystem $LEDE_SOURCE/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/mipsel-openwrt-linux-gnu/include -isystem $LEDE_SOURCE/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/mipsel-openwrt-linux-gnu/sys-include   -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float  -static-libstdc++ -static-libgcc  -L ../mipsel-openwrt-linux-gnu/libgo -L ../mipsel-openwrt-linux-gnu/libgo/.libs -o go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/alldocs.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/bug.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/build.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/clean.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/context.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/discovery.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/doc.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/env.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/fix.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/fmt.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/generate.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/get.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/go11.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/help.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/http.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/list.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/main.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/note.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/pkg.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/run.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/signal.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/signal_unix.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/test.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/testflag.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/tool.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/vcs.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/version.go $LEDE_SOURCE/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0/gotools/../libgo/go/cmd/go/vet.go ../mipsel-openwrt-linux-gnu/libgo/zstdpkglist.go zdefaultcc.go  
$LEDE_SOURCE/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/mipsel-openwrt-linux-gnu/bin/ld: warning: libgcc_s.so.1, needed by ../mipsel-openwrt-linux-gnu/libgo/.libs/libgo.so, not found (try using -rpath or -rpath-link)

I’ve found you’ll need to call gccgo with additional parameters

-Xlinker -rpath-link -Xlinker $LEDE_ROOT/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0-final/mipsel-openwrt-linux-gnu/libgcc/

which gets me a step closer, but still fails with:

$LEDE_ROOT/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/mipsel-openwrt-linux-gnu/bin/ld: /tmp/ccApaPgG.o: undefined reference to symbol '_Unwind_Resume@@GCC_3.0'
$LEDE_ROOT/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_glibc/gcc-7.3.0-final/mipsel-openwrt-linux-gnu/libgcc//libgcc_s.so.1: error adding symbols: DSO missing from command line

That’s currently way over my head. Where do I continue?

15.04.20181495Base systemBug ReportVery LowHighNo WPA2-EAP on radio2 at WRT3200ACMlede-17.01Unconfirmed Task Description

On WRT3200ACM running LuCI lede-17.01 branch (git-17.290.79498-d3f0685) / LEDE Reboot 17.01.4 r3560-79f57e422d with full wpad package, setting up WPA2-EAP on radio2 does not seem to work.

WPA2-EAP does work on radio0 and radio1. On radio2, an SSID without encryption is working fine. However, WPA2-EAP on radio2 does not seem to work regardless of network particulars selected. In all cases, it was necessary to not use management frame protection (= disabled, not even optional).

The error message in the system log is:

daemon.err hostapd: nl80211: NL80211 ATTR_STA_VLAN failed: -524 (No error information)

The log of the radius server does show that authentication was positively confirmed the same as when using radio0 or radio1. The client shows the network and that it is trying to authenticate, but authentication does never complete.


14.04.20181494KernelBug ReportVery LowLowSecond routing table not workingTrunkUnconfirmed Task Description

I’m using my router as a VPN client and by default all traffic from my network is sent over the VPN. There’s one device one the network that needs to connect without the VPN, so I’ve created a second routing table and a corresponding rule to route that device over the new table. This setup is working great on 17.01.4 with kernel 4.4, however if I upgrade to a new snapshot with kernel 4.14 the device going over the alternate route stops working in a weird way. It’s still sending packets out and it receives a preliminary response from the host, but then the connection stalls. All connections going over the secondary routewill do the same thing: open the port, transmit the first packet and then stall. Pinging works just fine, too, it just TCP connections that seem to get stuck.

Here’s my routing table with the 0.0.0.0 and 128.0.0.0 entries added by openvpn through he “redirect-gateway def1” option. This routes all outgoing traffic through the VPN. Note that my WAN connection is on wlan0 and has ip 192.168.2.18 and gateway 192.168.2.1 and my LAN is br-lan with IP 192.168.1.1 on the local 192.168.1.0/24 network. The VPN host is 161.22.33.44.

root@LEDE:~# ip route
0.0.0.0/1 via 10.9.8.1 dev tun0
default via 192.168.2.1 dev wlan0  proto static  src 192.168.2.18
10.9.8.1 dev tun0  proto kernel  scope link  src 10.9.8.2
128.0.0.0/1 via 10.9.8.1 dev tun0
161.22.33.44 via 192.168.2.1 dev wlan0
192.168.2.0/24 dev wlan0  proto kernel  scope link  src 192.168.2.18
192.168.2.254 dev wlan0  proto static  scope link  src 192.168.2.18
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.1

This is what the tcpdump on the router shows when the traffic is going over the default route

user@local.client:> curl http://remote.host

tcpdump:

14:36:17.060423 IP local.client.46412 > remote.host.80: Flags [S], seq 3190523033, win 29200, options [mss 1460,sackOK,TS val 27124528 ecr 0,nop,wscale 7], length 0
14:36:17.107303 IP remote.host.80 > local.client.46412: Flags [S.], seq 3924485213, ack 3190523034, win 29200, options [mss 1350,nop,nop,sackOK], length 0
14:36:17.107597 IP local.client.46412 > remote.host.80: Flags [.], ack 1, win 29200, length 0
14:36:17.107818 IP local.client.46412 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:36:17.156123 IP remote.host.80 > local.client.46412: Flags [.], ack 79, win 29200, length 0
14:36:17.166236 IP remote.host.80 > local.client.46412: Flags [P.], seq 1:182, ack 79, win 29200, length 181: HTTP: HTTP/1.1 200 OK
14:36:17.166475 IP local.client.46412 > remote.host.80: Flags [.], ack 182, win 30016, length 0
14:36:17.166528 IP remote.host.80 > local.client.46412: Flags [F.], seq 182, ack 79, win 29200, length 0
14:36:17.166728 IP local.client.46412 > remote.host.80: Flags [F.], seq 79, ack 183, win 30016, length 0
14:36:17.213095 IP remote.host.80 > local.client.46412: Flags [.], ack 80, win 29200, length 0

And here’s what happens when I build a second table and route it over that (note, all of this works just fine on 17.01.4)

root@LEDE:~# ip route add default via 192.168.2.1 dev wlan0 table 201
root@LEDE:~# ip rule add from 192.168.1.60 lookup 201
user@local.client:> curl http://remote.host

tcpdump:

14:40:18.797240 IP local.client.46620 > remote.host.80: Flags [S], seq 1629062849, win 29200, options [mss 1460,sackOK,TS val 27184962 ecr 0,nop,wscale 7], length 0
14:40:18.845435 IP remote.host.80 > local.client.46620: Flags [S.], seq 3094935245, ack 1629062850, win 29200, options [mss 1460,nop,nop,sackOK], length 0
14:40:18.845696 IP local.client.46620 > remote.host.80: Flags [.], ack 1, win 29200, length 0
14:40:18.846146 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:19.095838 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:19.347850 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:19.875877 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:20.899852 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1
14:40:22.915865 IP local.client.46620 > remote.host.80: Flags [P.], seq 1:79, ack 1, win 29200, length 78: HTTP: GET / HTTP/1.1

I’m not really sure where to go from here. Any pointers to help track this down would be appreciated!

14.04.20181493ToolchainBug ReportVery LowLowFailed to build the Openwrt SDK on macOSTrunkUnconfirmed Task Description
<stdin>:16:24: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
__attribute__((section(".init_array")))
                       ^
1 error generated.
compiling preload library failed

In scripts/bundle-libraries.sh, line 90
maybe it should be changed from

__attribute__((section(".init_array")))

to something like

#ifdef __APPLE__
__attribute__((section(".init_array")))
#else
__attribute__((section("__DATA,__mod_init_func")))
#endif
14.04.20181492Base systemBug ReportVery LowMediumodhcpd triggered dnsmasq reloads spam system logTrunkUnconfirmed Task Description

odhcpd currently spams system log as it causes so many dnsmasq config reloads.

This log spam problem has been present in Openwrt/LEDE master since late 2017, when odhcpd (and/or netifd?) were changed so that the odhcpd more frequently signals dnsmasq to reload its hosts config via /usr/sbin/odhcpd-update script.

I have native ipv6 and most of my devices are ipv6 aware, so the problem is quite visible. There has been also some forum discussion about the problem, e.g. in the david wrt1900ac build thread, so others have noticed the problem, too.

As the RA lifetimes and DHCPv6 lifetimes are rather short by default, this reloading seems to happen every few minutes when a device joins or renews its address.

System log gets spammed with dnsmasq reload log lines whenever odhcpd writes the /tmp/hosts/odhcpd file and then triggers dnsmasq reload via /usr/sbin/odhcpd-update.

I added a logger statement “ ODHCPD event ” to /usr/sbin/odhcpd-update and that pretty clearly indicates the additional problem that odhcpd can cause multiple reloads inside 1-2 seconds for a single device joining and getting an address.

I am not sure what is the best approach:

  • Reduce dnsmasq reload log verbosity. Sounds more like a quick and dirty patch than an actual fix.
  • Reduce dnsmasq reloads via longer RA/DHCPv6 address lifetimes.
  • Reduce dnsmasq reloads via combining several events before triggering /usr/sbin/odhcpd-update. Currently a single device can cause multiple reloads inside a few seconds. Maybe there could be a “dirty flag” that is then evaluated once per minute and only then causes a /usr/sbin/odhcpd-update call.
  • Write /tmp/hosts/odhcpd less frequently. Evaluate the need to actually write it, or at least evaluate the need to trigger a dnsmasq reload. Currently the file gets the plain address allocations but also a # commented-out line with timestamp etc. debug info. AFAIK that is not really utilised by dnsmasq, so that is just for debug purposes. I general, if a device just renews its existing dhcpv6 address, there should be no need to reload dnsmasq because of /tmp/hosts/odhcpd (as the actual information does not change, although the debug timestamp changes)

Example of /tmp/hosts/odhcpd

2001:14ba:801f:9f00::180        Z97IW7
fd1b:7654:3210::180     Z97IW7
# br-lan 000100011b8be1ec7824af3a801c e7824af Z97IW7 -1 180 128 2001:14ba:801f:9f00::180/128 fd1b:7654:3210::180/128
2001:14ba:801f:9f00::67f        router2
fd1b:7654:3210::67f     router2
# br-lan 00030001c63dc7a33f50 1 router2 1523711242 67f 128 2001:14ba:801f:9f00::67f/128 fd1b:7654:3210::67f/128
2001:14ba:801f:9f00::dbd        Hannu650
fd1b:7654:3210::dbd     Hannu650
# br-lan 000100181e4723f200a0c6000000 d5cca1a Hannu650 1523711242 dbd 128 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128

odhcpd is not the only culprit for dnsmasq reloads, but it is very visible at least in my use case

Log below:

Sat Apr 14 11:19:36 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 4 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:19:36 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:19:37 2018 daemon.warn odhcpd[1396]: DHCPV6 REQUEST IA_NA from 000100011b8be1ec7824af3a801c on br-lan: ok 2001:14ba:801f:9f00::180/128 fd1b:7654:3210::180/128
Sat Apr 14 11:19:37 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 6 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:19:37 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:20:54 2018 daemon.info dnsmasq-dhcp[3409]: DHCPREQUEST(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4
Sat Apr 14 11:20:54 2018 daemon.info dnsmasq-dhcp[3409]: DHCPACK(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4 Hannu650
Sat Apr 14 11:20:55 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:55 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 daemon.warn odhcpd[1396]: DHCPV6 SOLICIT IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:56 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 4 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:20:56 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:20:57 2018 daemon.warn odhcpd[1396]: DHCPV6 REQUEST IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:20:57 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 6 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:20:57 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:42:55 2018 daemon.info dnsmasq-dhcp[3409]: DHCPREQUEST(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4
Sat Apr 14 11:42:55 2018 daemon.info dnsmasq-dhcp[3409]: DHCPACK(br-lan) 192.168.1.165 5c:ca:1a:2a:cd:c4 Hannu650
Sat Apr 14 11:42:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:56 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:57 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:57 2018 daemon.warn odhcpd[1396]: DHCPV6 CONFIRM IA_NA from 000100181e4723f200a0c6000000 on br-lan: not on-link 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:58 2018 daemon.warn odhcpd[1396]: DHCPV6 SOLICIT IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:58 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 4 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:42:58 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:42:59 2018 daemon.warn odhcpd[1396]: DHCPV6 REQUEST IA_NA from 000100181e4723f200a0c6000000 on br-lan: ok 2001:14ba:801f:9f00::dbd/128 fd1b:7654:3210::dbd/128
Sat Apr 14 11:42:59 2018 user.notice odhcpd: **** ODHCPD event ****
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: read /etc/hosts - 4 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/odhcpd - 6 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq-dhcp[3409]: read /etc/ethers - 0 addresses
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zztxdown.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzshw.net
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zzpxw.cn
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zyjyyy.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zwgoca.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zw52.ru
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zumobi.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using local addresses only for domain zum.mudmaggot.com
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.246#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 62.241.198.245#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::1#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using nameserver 2001:14b8:1000::2#53
Sat Apr 14 11:42:59 2018 daemon.info dnsmasq[3409]: using 4651 more local addresses
Sat Apr 14 11:49:32 2018 daemon.err uhttpd[4310]: luci: accepted login on / for root from 192.168.1.180
13.04.20181488KernelBug ReportVery LowLowmt7621: BUG: sleeping function called from invalid cont...TrunkUnconfirmed Task Description

Device: Newifi D1
Software versions: Kernel 4.14.32
Steps to reproduce:
During the startup process, some warning messages are shown.

[    0.000000] Linux version 4.14.32 (vbox@ubuntu64) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6433+33-4fd8722056)) #0 SMP Thu Apr 12 13:06:34 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 Newifi-D1
[    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 805b3f20, 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] random: get_random_bytes called from start_kernel+0x90/0x4b0 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @8120f000 s26704 r8192 d22448 u57344
[    0.000000] pcpu-alloc: s26704 r8192 d22448 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 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=000444b0
[    0.000000] Readback ErrCtl register=000444b0
[    0.000000] Memory: 253220K/262144K available (4611K kernel code, 232K rwdata, 996K rodata, 228K init, 269K bss, 8924K 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.007814] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073978] pid_max: default: 32768 minimum: 301
[    0.078756] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085264] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094078] Hierarchical SRCU implementation.
[    0.099174] smp: Bringing up secondary CPUs ...
[    7.655479] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.655489] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.655502] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.655616] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238
[    7.655624] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/1
[    7.655637] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.32 #0
[    7.655645] Stack : 00000000 00000000 00000000 00000000 805f7afa 00000034 00000000 00000000
[    7.655682]         8fc441f4 805909c7 8051e450 00000001 00000000 00000001 8fc65cb8 b3f6da09
[    7.655715]         00000000 00000000 805f0000 00750966 00000004 8047876c fa8ea686 0038fb56
[    7.655750]         00000000 80590000 00000035 80620000 00000000 00000000 805b0000 80581274
[    7.655783]         00000001 00000007 00000000 00000001 00000000 80590000 00000000 00000000
[    7.655815]         ...
[    7.655826] Call Trace:
[    7.655867] [<800107d8>] show_stack+0x58/0x100
[    7.655907] [<804617ac>] dump_stack+0x9c/0xe0
[    7.655933] [<8005233c>] ___might_sleep+0xf8/0x118
[    7.655959] [<8047d32c>] mutex_lock+0x24/0x78
[    7.655994] [<80075000>] __free_irq+0x74/0x308
[    7.656004] [<80014188>] mips_state_shutdown+0x28/0x40
[    7.656033] [<80099c34>] clockevents_switch_state+0x124/0x190
[    7.656044] [<8009a098>] clockevents_exchange_device+0x80/0xa8
[    7.656055] [<8009aa00>] tick_check_new_device+0xac/0x138
[    7.656065] [<800993e4>] clockevents_register_device+0xc4/0x138
[    7.656073] [<80014548>] r4k_clockevent_init+0x250/0x2a8
[    7.656091] [<8001676c>] start_secondary+0x40/0x3b4
[    7.656141] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163947] Synchronize counters for CPU 1: done.
[    7.504565] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.504575] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.504583] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.504667] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.385133] Synchronize counters for CPU 2: done.
[    7.593682] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    7.593690] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    7.593700] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    7.593785] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.470307] Synchronize counters for CPU 3: done.
[    0.500168] smp: Brought up 1 node, 4 CPUs
[    0.507979] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.517768] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.524075] pinctrl core: initialized pinctrl subsystem
[    0.529837] NET: Registered protocol family 16
[    0.534614] random: fast init done
[    0.545217] FPU Affinity set after 11720 emulations
[    0.546759] pull PCIe RST: RALINK_RSTCTRL = 0
[    0.851370] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.856403] ***** Xtal 40MHz *****
[    0.859776] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.864887] Port 0 N_FTS = 1b105000
[    0.868325] Port 1 N_FTS = 1b105000
[    0.871785] Port 2 N_FTS = 1b102800
[    2.026446] PCIE2 no card, disable it(RST&CLK)
[    2.030790]  -> 21007f2
[    2.033209] PCIE0 enabled
[    2.035797] PCIE1 enabled
[    2.038423] PCI host bridge /pcie@1e140000 ranges:
[    2.043164]  MEM 0x0000000060000000..0x000000006fffffff
[    2.048331]   IO 0x000000001e160000..0x000000001e16ffff
[    2.053532] PCI coherence region base: 0x8fc35cf0, mask/settings: 0x60000000
[    2.070744] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.076667] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.082431] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.089461] PCI host bridge to bus 0000:00
[    2.093497] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.100467] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.106285] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.113040] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.120950] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.120992] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.121005] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[    2.121072] pci 0000:00:00.0: supports D1
[    2.121081] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.121373] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    2.121410] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.121429] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[    2.121501] pci 0000:00:01.0: supports D1
[    2.121512] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.122026] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    2.122087] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.122132] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.122227] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.122427] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.122652] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.122701] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.122827] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.123091] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.123116] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    2.123183] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.129696] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.136621] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.143178] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.150103] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.156828] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.164011] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.170738] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.177496] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.184221] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.191495] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.198644] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.203581] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.210307] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.217495] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.224216] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.229152] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.237407] clocksource: Switched to clocksource GIC
[    2.243982] NET: Registered protocol family 2
[    2.249228] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.256158] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.262545] TCP: Hash tables configured (established 2048 bind 2048)
[    2.268984] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.274749] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.281253] NET: Registered protocol family 1
[    2.285581] PCI: CLS 0 bytes, default 32
[    2.517334] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.523818] Crashlog allocated RAM at address 0x3f00000
[    2.529224] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.542943] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.548725] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.561810] io scheduler noop registered (default)
[    2.566513] io scheduler deadline registered
[    2.571470] gpio-export gpio_export: 2 gpio(s) exported
[    2.577612] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    2.585277] console [ttyS0] disabled
[    2.588848] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.597847] console [ttyS0] enabled
[    2.604711] bootconsole [early0] disabled
[    2.613397] cacheinfo: Failed to find cpu0 device node
[    2.618724] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.625714] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.633100] spi-mt7621 1e000b00.spi: sys_freq: 50000000
[    2.638356] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238
[    2.646753] in_atomic(): 1, irqs_disabled(): 1, pid: 1, name: swapper/0
[    2.653340] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W       4.14.32 #0
[    2.660527] Stack : 00000000 00000000 00000000 00000000 805f7afa 00000042 00000000 00000000
[    2.668863]         8fc40374 805909c7 8051e450 00000002 00000001 00000001 8fc35b80 b3f6da09
[    2.677194]         00000000 00000000 805f0000 00003800 00000000 000000b5 00000007 00000000
[    2.685525]         00000000 80590000 0009f81c 00000000 00000000 00000000 805b0000 8fc35ca0
[    2.693859]         805a0000 00000000 00000000 805f0000 00000001 802a5638 00000008 805f0008
[    2.702191]         ...
[    2.704627] Call Trace:
[    2.707090] [<800107d8>] show_stack+0x58/0x100
[    2.711545] [<804617ac>] dump_stack+0x9c/0xe0
[    2.715899] [<8005233c>] ___might_sleep+0xf8/0x118
[    2.720688] [<8047d32c>] mutex_lock+0x24/0x78
[    2.725051] [<8028efb8>] __of_reset_control_get+0xc4/0x280
[    2.730514] [<8028f76c>] device_reset+0x24/0x60
[    2.735023] [<80306278>] mt7621_spi_probe+0x170/0x1f4
[    2.740082] [<802b5908>] platform_drv_probe+0x40/0x84
[    2.745110] [<802b3df4>] really_probe+0x148/0x2c0
[    2.749795] [<802b4010>] __driver_attach+0xa4/0xdc
[    2.754565] [<802b1e7c>] bus_for_each_dev+0x5c/0xbc
[    2.759422] [<802b3344>] bus_add_driver+0xf8/0x218
[    2.764192] [<802b48f0>] driver_register+0xac/0xfc
[    2.768962] [<80005650>] do_one_initcall+0xd0/0x1a0
[    2.773820] [<805b7d84>] kernel_init_freeable+0x168/0x228
[    2.779196] [<80479dd0>] kernel_init+0x10/0x10c
[    2.783705] [<8000b158>] ret_from_kernel_thread+0x14/0x1c
[    2.789468] BUG: scheduling while atomic: swapper/0/1/0x00000002
[    2.795449] Modules linked in:
[    2.798512] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W       4.14.32 #0
[    2.805696] Stack : 00000000 00000000 00000000 00000000 805f7afa 00000042 00000000 00000000
[    2.814027]         8fc40374 805909c7 8051e450 00000002 00000001 00000001 8fc35aa0 b3f6da09
[    2.822361]         00000000 00000000 805f0000 00003ec8 00000000 000000d0 00000007 00000000
[    2.830695]         00000000 80590000 000c2f30 00000000 00000000 00000000 805b0000 805ebf80
[    2.839028]         00000001 00000000 00000000 805f0000 00000001 802a5638 00000008 805f0008
[    2.847362]         ...
[    2.849799] Call Trace:
[    2.852250] [<800107d8>] show_stack+0x58/0x100
[    2.856688] [<804617ac>] dump_stack+0x9c/0xe0
[    2.861034] [<8005217c>] __schedule_bug+0x60/0x7c
[    2.865718] [<8047b478>] __schedule+0x70/0x880
[    2.870143] [<8047bd00>] schedule+0x78/0x9c
[    2.874313] [<8047f104>] schedule_timeout+0x38/0x1c4
[    2.879256] [<8047ca4c>] wait_for_common+0x130/0x1f8
[    2.884198] [<8047cb7c>] wait_for_completion_killable+0x18/0x30
[    2.890106] [<8004c8ec>] __kthread_create_on_node+0xdc/0x198
[    2.895738] [<8004c9c0>] kthread_create_on_node+0x18/0x24
[    2.901144] [<80305698>] spi_register_controller+0x3a0/0x99c
[    2.906786] [<802b5908>] platform_drv_probe+0x40/0x84
[    2.911816] [<802b3df4>] really_probe+0x148/0x2c0
[    2.916498] [<802b4010>] __driver_attach+0xa4/0xdc
[    2.921269] [<802b1e7c>] bus_for_each_dev+0x5c/0xbc
[    2.926124] [<802b3344>] bus_add_driver+0xf8/0x218
[    2.930895] [<802b48f0>] driver_register+0xac/0xfc
[    2.935663] [<80005650>] do_one_initcall+0xd0/0x1a0
[    2.940522] [<805b7d84>] kernel_init_freeable+0x168/0x228
[    2.945895] [<80479dd0>] kernel_init+0x10/0x10c
[    2.950405] [<8000b158>] ret_from_kernel_thread+0x14/0x1c
[    2.956511] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[    2.961628] 4 fixed-partitions partitions found on MTD device spi0.0
[    2.967972] Creating 4 MTD partitions on "spi0.0":
[    2.972752] 0x000000000000-0x000000030000 : "u-boot"
[    2.978849] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.985207] 0x000000040000-0x000000050000 : "factory"
[    2.991375] 0x000000050000-0x000002050000 : "firmware"
[    2.996516] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0x1fb0000
[    3.127720] 2 uimage-fw partitions found on MTD device firmware
[    3.133641] 0x000000050000-0x000000225cb3 : "kernel"
[    3.139699] 0x000000225cb3-0x000002000000 : "rootfs"
[    3.145637] mtd: device 5 (rootfs) set to be root filesystem
[    3.151419] 1 squashfs-split partitions found on MTD device rootfs
[    3.157596] 0x000000b20000-0x000002000000 : "rootfs_data"
[    3.164826] libphy: Fixed MDIO Bus: probed
[    3.239400] libphy: mdio: probed
[    4.642197] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.648961] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    4.659861] NET: Registered protocol family 10
[    4.665907] Segment Routing with IPv6
[    4.669819] NET: Registered protocol family 17
[    4.674317] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.687224] 8021q: 802.1Q VLAN Support v1.8
[    4.692495] zswap: default zpool zbud not available
[    4.697407] zswap: pool creation failed
[    4.703160] hctosys: unable to open rtc device (rtc0)
[    4.713707] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    4.721275] Freeing unused kernel memory: 228K
[    4.725711] This architecture does not have kernel memory protection.
[    4.865669] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
[    4.969052] random: crng init done
[    5.381236] init: Console is alive
[    5.384855] init: - watchdog -
[    6.359776] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.388601] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    7.373619] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.493267] usbcore: registered new interface driver usbfs
[    7.498897] usbcore: registered new interface driver hub
[    7.504373] usbcore: registered new device driver usb
[    7.550732] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.564476] SCSI subsystem initialized
[    7.572133] ehci-platform: EHCI generic platform driver
[    7.586683] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    7.592091] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    7.607612] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    7.616095] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
[    7.622952] hub 1-0:1.0: USB hub found
[    7.626775] hub 1-0:1.0: 2 ports detected
[    7.631465] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    7.636800] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    7.644453] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    7.653457] hub 2-0:1.0: USB hub found
[    7.657277] hub 2-0:1.0: 1 port detected
[    7.672165] MTK MSDC device init.
[    7.676201] SET_IOS: CLK(0kHz), BUS(PUSHPULL), BW(1), PWR(UP), VDD(3.30v), TIMING(LEGACY)
[    7.697432] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.727647] mtk-sd: MediaTek MT6575 MSDC Driver
[    7.741088] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.743674] sdhci: Secure Digital Host Controller Interface driver
[    7.753068] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.760318] sdhci: Copyright(c) Pierre Ossman
[    7.774099] sdhci-pltfm: SDHCI platform and OF driver helper
[    7.780480] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.783800] usbcore: registered new interface driver usb-storage
[    7.793206] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(LEGACY)
[    7.802811] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.827773] init: - preinit -
[    7.839566] SET_IOS: CLK(400kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(SD_HS)
[    7.839595] SET_IOS: CLK(50000kHz), BUS(PUSHPULL), BW(1), PWR(ON), VDD(3.30v), TIMING(SD_HS)
[    7.847987] SET_IOS: CLK(50000kHz), BUS(PUSHPULL), BW(4), PWR(ON), VDD(3.30v), TIMING(SD_HS)
[    7.856421] mmc0: new high speed SDHC card at address 1234
[    7.871391] mmcblk0: mmc0:1234 SA08G 7.25 GiB 
[    7.877651]  mmcblk0: p1
[    9.089793] mtk_soc_eth 1e100000.ethernet: PPE started
[   12.316347] mount_root: loading kmods from internal overlay
[   12.359217] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   12.370830] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   13.340960] block: attempting to load /etc/config/fstab
[   13.391300] block: extroot: not configured
[   13.396475] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   13.441670] urandom-seed: Seed file not found (/etc/urandom.seed)
[   13.527693] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   13.542882] procd: - early -
[   13.545866] procd: - watchdog -
[   14.207798] procd: - watchdog -
[   14.211528] procd: - ubus -
[   14.480275] procd: - init -
[   14.511747] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: 
[   14.924377] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.938837] zram: Added device: zram0
[   14.953276] tun: Universal TUN/TAP device driver, 1.6
[   14.968117] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.617852] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   16.002679] Netfilter messages via NETLINK v0.30.
[   16.009890] ip_set: protocol 6
[   16.053188] u32 classifier
[   16.055911]     input device check on
[   16.059600]     Actions configured
[   16.065347] Mirror/redirect action on
[   16.105581] Bridge firewalling registered
[   16.110580] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   16.118608] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   16.129543] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.715260] ctnetlink v0.93: registering with nfnetlink.
[   17.130522] usbcore: registered new interface driver ums-alauda
[   17.139234] usbcore: registered new interface driver ums-cypress
[   17.147775] usbcore: registered new interface driver ums-datafab
[   17.156414] usbcore: registered new interface driver ums-freecom
[   17.164574] usbcore: registered new interface driver ums-isd200
[   17.173793] usbcore: registered new interface driver ums-jumpshot
[   17.182373] usbcore: registered new interface driver ums-karma
[   17.190748] usbcore: registered new interface driver ums-sddr09
[   17.198780] usbcore: registered new interface driver ums-sddr55
[   17.206972] usbcore: registered new interface driver ums-usbat
[   17.264586] xt_time: kernel timezone is -0000
[   17.707606] bus=0x2, slot = 0x1, irq=0xff
[   17.711849] mt7603e 0000:02:00.0: ASIC revision: 76030010
[   17.720679] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[   17.726249] mt7603e 0000:02:00.0: Build Time: 20160107100755
[   17.767413] firmware init done
[   17.935897] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   17.943341] bus=0x1, slot = 0x0, irq=0xff
[   17.947668] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   17.977468] mt76x2e 0000:01:00.0: ROM patch already applied
[   17.984446] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   17.990010] mt76x2e 0000:01:00.0: Build: 1
[   17.994088] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   18.017463] mt76x2e 0000:01:00.0: Firmware running!
[   18.023797] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   18.032133] PPP generic driver version 2.4.2
[   18.038495] NET: Registered protocol family 24
[   18.046381] kmodloader: done loading kernel modules from /etc/modules.d/*
[   38.836935] mtk_soc_eth 1e100000.ethernet: PPE started
[   38.851306] device eth0 entered promiscuous mode
[   38.859973] br-lan: port 1(eth0.1) entered blocking state
[   38.865417] br-lan: port 1(eth0.1) entered disabled state
[   38.871966] device eth0.1 entered promiscuous mode
[   38.881805] br-lan: port 1(eth0.1) entered blocking state
[   38.887255] br-lan: port 1(eth0.1) entered forwarding state
[   38.893501] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   39.834048] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   42.361498] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   42.368563] jffs2_build_filesystem(): unlocking the mtd device... 
[   42.368578] done.
[   42.376723] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   50.672910] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   50.702442] br-lan: port 2(wlan0) entered blocking state
[   50.707821] br-lan: port 2(wlan0) entered disabled state
[   50.713632] device wlan0 entered promiscuous mode
[   51.139833] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   51.153755] br-lan: port 3(wlan1) entered blocking state
[   51.164212] br-lan: port 3(wlan1) entered disabled state
[   51.170661] device wlan1 entered promiscuous mode
[   51.176263] br-lan: port 3(wlan1) entered blocking state
[   51.181638] br-lan: port 3(wlan1) entered forwarding state
[   51.764766] br-lan: port 3(wlan1) entered disabled state
[   52.493323] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   52.500328] br-lan: port 3(wlan1) entered blocking state
[   52.505680] br-lan: port 3(wlan1) entered forwarding state
[   53.137289] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   53.144349] br-lan: port 2(wlan0) entered blocking state
[   53.149742] br-lan: port 2(wlan0) entered forwarding state
[  141.341413] done.
[  141.343382] jffs2: notice: (3500) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  141.873288] overlayfs: upper fs does not support tmpfile.
[  145.110109] device eth0.2 entered promiscuous mode
[ 1120.422081] zram0: detected capacity change from 0 to 64897024
[ 1120.442214] Adding 63372k swap on /dev/zram0.  Priority:10 extents:1 across:63372k SSFS
12.04.20181486PackagesBug ReportVery LowLow`ping` from `iputils-ping` is not respecting the `-I` o...TrunkUnconfirmed Task Description

There’re two WAN connections in my router. I installed `iputils-ping` for some fancy features. If I use `ping -I wan2 x.x.x.x`, the ICMP Echo request will still be sent from the main wan interface, ignoring the `-I` option. Busybox ping doesn’t have this problem.

The iputils-* packages are version 20101006. This issue is solved by this commit and I suggest that the iputils packages should be updated.

11.04.20181484Base systemBug ReportVery LowLowdir-645 SEAMA linux.lzma ... LZMA ERRORTrunkUnconfirmed Task Description

hello *,
just checked a new snapshot of openWRT-lede
and found, that the version from mon-/tuesday
09/10.04. is not able to flash.
The older version r6433-4fd8722056 mid of march
flashes flawlessly.

Maybe someone has a hint where to dig?

kernel changed from 4.9 to 4.14 ...

The serial console booting the new

U-Boot 1.1.3 (Apr 15 2011 - 10:39:36) (ALPHA)
SVN revision: 516
Target board: WRG-N39

Board: Ralink APSoC DRAM:  64 MB
spi_wait_nsec: 30 
spi device id: 
find flash: MX25L6405D
raspi_read: from:30000 len:1000 
.raspi_read: from:30000 len:1000 
.============================================ 
Ralink UBoot Version: 3.3
-------------------------------------------- 
ASIC 3883_MP (MAC to REALTEK Mode)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Apr 15 2011  Time:10:39:36
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 
gpio_init: write 0x00001801
gpio_init: write 0x0000185d to GPIOMODE(0xb0000060)

 Initializing RTL8367 GbE switch ...
 Setting RTL8367RB RGMII Delay time tx:1,rx0

Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP. 
 0 
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40 
.raspi_read: from:50000 len:c 
.raspi_read: from:50000 len:359bbe 
......................................................We have SEAMA, Image Size = 3513214
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... LZMA ERROR 1 - must RESET board to recover

and the version r6433-4fd8722056.

U-Boot 1.1.3 (Apr 15 2011 - 10:39:36) (ALPHA)
SVN revision: 516
Target board: WRG-N39

Board: Ralink APSoC DRAM:  64 MB
spi_wait_nsec: 30 
spi device id:
find flash: MX25L6405D
raspi_read: from:30000 len:1000 
.raspi_read: from:30000 len:1000 
.============================================ 
Ralink UBoot Version: 3.3
-------------------------------------------- 
ASIC 3883_MP (MAC to REALTEK Mode)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Apr 15 2011  Time:10:39:36
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 
gpio_init: write 0x00001801
gpio_init: write 0x0000185d to GPIOMODE(0xb0000060)

 Initializing RTL8367 GbE switch ...
 Setting RTL8367RB RGMII Delay time tx:1,rx0

Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP. 
 0 
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40 
.raspi_read: from:50000 len:c 
.raspi_read: from:50000 len:33e05e 
....................................................We have SEAMA, Image Size = 3399710
Verifying Checksum ...
Uncompressing SEAMA linux.lzma ... OK
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.9.86 (buildbot@buildslave) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 

Any help welcome.
thx

11.04.20181483Base systemBug ReportVery LowLowFirewall - firewall rules with time+date don't seem to ...TrunkUnconfirmed Task Description

I am running openwrt_cc, and having trouble with time+date based firewall rules. Time based rules (without date) work fine, but as soon as I add the date, the time no longer works. I expect such rules to take effect at the specified times within the specified dates. The resulting iptables do not look right. See below.

PKG_NAME:=firewall
PKG_VERSION:=2015-07-27
PKG_SOURCE_URL:=git://nbd.name/firewall3.git
PKG_SOURCE_VERSION:=980b7859bbd1db1e5e46422fccccbce38f9809ab

firewall uci:

config rule

      option name 'lan-00:16:3e:d2:96:cf'
      option src 'lan'
      option dest 'wan'
      option proto 'any'
      option target 'REJECT'
      option src_mac '00:16:3e:d2:96:cf'
      option start_date '2018-04-10'
      option stop_date '2018-04-11'
      option start_time '20:30:00'
      option stop_time '20:40:00'

iptables entry:

  0     0 zone_wan_dest_REJECT  all  --  any    any     anywhere             anywhere             MAC 00:16:3E:D2:96:CF TIME from 20:30:00 to 20:40:00 starting from 2018-04-10 01:00:00 until date 2018-04-11 01:00:00 UTC /* lan-00:16:3e:d2:96:cf */

Notice the date values are followed by “01:00:00” which doesn’t seem right. I can’t seem to control these values in any way from the uci.

11.04.20181482Base systemBug ReportVery LowLowIPQ40XX (ac58U) can't work in 5g clinet modeTrunkUnconfirmed Task Description

My wireless config file is:
config wifi-device ‘radio0’

option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/soc/a000000.wifi'
option htmode 'HT20'
option disabled '1'

config wifi-iface ‘default_radio0’

option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'

config wifi-device ‘radio1’

option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'platform/soc/a800000.wifi'
option htmode 'VHT80'
option country 'US'
option legacy_rates '1'

config wifi-iface ‘default_radio1’

option device 'radio1'
option network 'wan2'
option mode 'sta'
option ssid '@mwan@'
option encryption 'psk-mixed'
option key '1234567890'

kernel log see file log.txt

10.04.20181481Base systemBug ReportVery LowHighprocd: Not possible to stop procd task when in respawni...TrunkUnconfirmed Task Description

Problem: when using procd init scripts, the started service cannot be stopped, when the respawning is in progress.

The test case for the simple start/stop case is attached. Save attached shell scripts procd-test in /etc/init.d, run-test in / and run the test - the /run-test.log output is attached too.

Same can be observed in more complicated test scripts too, for example removing a respawning service instance is not possible (switch from one instance to no instance - procd should just watch the registered configuration/interfaces for changes and restart when change happens) - the instance is still listed in “ubus call service list” and is actively respawning.

This is a problem, because when for example the service is running on PPPoE interface, which goes down for a minute, the service fails and is respawned several times by procd even when the init script tried to remove the instance. As a multi-fail consequence, the procd removes the respawn parameters and does not reintroduce them when the PPPoE is back up and the init script starts the instance again. Result is a started service, but with no respawning.

Expected result: procd should stop respawning as soon as possible and apply the requested changes afterwards.

Tested on OpenWrt git master (from github) on TP-Link TL-WR1043ND and on x86/64bit Hyper-V virtual machine (VDI converted to VHDX), both give the same result.

10.04.20181480Base systemBug ReportVery LowLowInterface names starting with a number causes things to...TrunkUnconfirmed Task Description

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

 

I’ve noticed this across several devices: WRT1900ACv2, TP-Link WDR-3600 and RT-N13U so far. After creating a switch VLAN and assigning it an interface, DHCP stops working if interface name does not start with an alpha character. Naming an interface with the VLAN number (or any number causes this breakage). Only way to to recover is to manually assign an IP address in subnet and rename the interface to something like LAN[VLAN_ID].

Once this is done, all functions as it should.

09.04.20181479Base systemBug ReportVery LowMediumramips: sysupgrade and factory images built from master...TrunkUnconfirmed Task Description

Trying to build a custom image for a TP-Link RE350 V1 and running into issues with the sysupgrade and factory images being too large and failing the tplink safe size check.

I can build the images with the below diffconfig, but that’s obviously taking it too far as it breaks dmesg.

CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_ramips_mt7621_DEVICE_re350-v1=y
# CONFIG_KERNEL_CRASHLOG is not set
# CONFIG_KERNEL_DEBUG_FS is not set
# CONFIG_KERNEL_DEBUG_INFO is not set
# CONFIG_KERNEL_DEBUG_KERNEL is not set
# CONFIG_KERNEL_KALLSYMS is not set
# CONFIG_KERNEL_MAGIC_SYSRQ is not set
# CONFIG_KERNEL_PRINTK is not set
# CONFIG_KERNEL_PRINTK_TIME is not set
# CONFIG_KERNEL_SWAP is not set
# CONFIG_PACKAGE_MAC80211_DEBUGFS is not set

08.04.20181478Base systemBug ReportVery LowMediumopenvpn: comp_lzo option is ignoredTrunkUnconfirmed Task Description

Model Xiaomi Mi Router 3G
Firmware Version OpenWrt SNAPSHOT r6640-c0742307a1 / LuCI Master (git-18.096.77918-83a59dc)
Kernel Version 4.14.32

“comp_lzo” option in /etc/openvpn/config is ignored - it missing in openvpn conf file

Having following config entry:

config openvpn 'myvpn_tap'
        option float '1'
        option client '1'
        option dev 'tap'
        option reneg_sec '0'
        option verb '3'
        option persist_key '1'
        option nobind '1'
        option remote_cert_tls 'server'
        list remote 'myserver'
        option port '1195'
        option proto 'udp'
        option pkcs12 '/etc/luci-uploads/cbid.openvpn.myvpn_tap.pkcs12'
        option log_append '/var/log/openvpn_myvpn_tap.log'
        option enabled '1'
        option comp_lzo 'yes'

but “comp_lzo” option is not saved into /var/etc/openvpn_myvpn_tap.conf which turns tunnel non-working in case option enabled on the server side


08.04.20181477Base systemBug ReportVery LowLowtoolchain: use external toolchain build errorTrunkUnconfirmed Task Description

When I use external toolchain build openwrt

          --- Use external toolchain
          [ ]   Use host's toolchain
          (arm-openwrt-linux-gnueabi) Target name
          (arm-openwrt-linux-gnueabi-) Toolchain prefix
          ($(TOPDIR)/../toolchains/arm) Toolchain root    
          (glibc) Toolchain libc 
          (./usr/bin ./bin) Toolchain program path
          (./usr/include ./include) Toolchain include path
          (./usr/lib ./lib) Toolchain library path

I get build error(external_toolchain.txt log)

make -C /home/xukai/project/commit/robotos/openwrt/build_dir/target-arm-openwrt-linux-gnueabi/linux-leo_gx8010-dev-1v/linux-4.4.25 HOSTCFLAGS="-O2 -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/include -I/home/xukai/project/commit/robotos/openwrt/staging_dir/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-gnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  CC="arm-openwrt-linux-gnueabi-gcc" modules
make[5]: Entering directory '/home/xukai/project/commit/robotos/kernel'
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
net/sched/Kconfig:44: warning: menuconfig statement without prompt
.config:1092:warning: override: DEFAULT_NOOP changes choice state
#
# configuration written to .config
#
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[6]: 'include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
In file included from ./arch/arm/include/asm/bug.h:6:0,
                 from include/linux/bug.h:4,
                 from include/linux/page-flags.h:9,
                 from kernel/bounds.c:9:
./arch/arm/include/asm/opcodes.h:14:52: error: unknown type name 'u32'
 extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
                                                    ^
./arch/arm/include/asm/opcodes.h:14:64: error: unknown type name 'u32'
 extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr);
                                                                ^
In file included from include/linux/log2.h:16:0,
                 from kernel/bounds.c:12:
./arch/arm/include/asm/bitops.h: In function '____atomic_set_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
 #define BIT_MASK(nr)  (1UL << ((nr) % BITS_PER_LONG))
                                       ^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
  unsigned long mask = BIT_MASK(bit);
                       ^
include/linux/bitops.h:8:39: note: each undeclared identifier is reported only once for each function it appears in
 #define BIT_MASK(nr)  (1UL << ((nr) % BITS_PER_LONG))
                                       ^
./arch/arm/include/asm/bitops.h:38:23: note: in expansion of macro 'BIT_MASK'
  unsigned long mask = BIT_MASK(bit);
                       ^
./arch/arm/include/asm/bitops.h: In function '____atomic_clear_bit':
include/linux/bitops.h:8:39: error: 'BITS_PER_LONG' undeclared (first use in this function)
 #define BIT_MASK(nr)  (1UL << ((nr) % BITS_PER_LONG))
                                       ^

08.04.20181476ToolchainBug ReportVery LowHighmake toolchain breaks at binutilsTrunkUnconfirmed Task Description
make[2]: Entering directory '/srv/raid/filez/builder/openwrt/scripts/config'
make[2]: Leaving directory '/srv/raid/filez/builder/openwrt/scripts/config'
make[1]: Entering directory '/srv/raid/filez/builder/openwrt'
make[2]: Entering directory '/srv/raid/filez/builder/openwrt'
+ mkdir -p /srv/raid/filez/builder/openwrt/staging_dir/target-mips_24kc_musl
+ cd /srv/raid/filez/builder/openwrt/staging_dir/target-mips_24kc_musl
+ mkdir -p bin lib include stamp
mkdir -p /srv/raid/filez/builder/openwrt/build_dir/target-mips_24kc_musl/stamp
touch /srv/raid/filez/builder/openwrt/staging_dir/target-mips_24kc_musl/.prepared
make[3]: Entering directory '/srv/raid/filez/builder/openwrt/toolchain/gdb'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/srv/raid/filez/builder/openwrt/toolchain/gdb'
make[3]: Entering directory '/srv/raid/filez/builder/openwrt/toolchain/binutils'
mkdir -p /srv/raid/filez/builder/openwrt/dl
SHELL= flock /srv/raid/filez/builder/openwrt/tmp/.binutils-.tar.bz2.flock -c '          /srv/raid/filez/builder/openwrt/scripts/download.pl "/srv/raid/filez/builder/openwrt/dl" "binutils-.tar.bz2" "x" "" "@GNU/binutils/"    '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
make[3]: *** [Makefile:119: /srv/raid/filez/builder/openwrt/dl/binutils-.tar.bz2] Error 255
make[3]: Leaving directory '/srv/raid/filez/builder/openwrt/toolchain/binutils'
make[2]: *** [toolchain/Makefile:98: toolchain/binutils/compile] Error 2
make[2]: Leaving directory '/srv/raid/filez/builder/openwrt'
make[1]: *** [toolchain/Makefile:94: /srv/raid/filez/builder/openwrt/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/srv/raid/filez/builder/openwrt'
make: *** [/srv/raid/filez/builder/openwrt/include/toplevel.mk:218: world] Error 2
07.04.20181475Base systemBug ReportVery LowHighBelkin F5D8235-4 v1 switch issues, WAN port packet losslede-17.01Unconfirmed Task Description

Belkin F5D8235-4 v1 installed with lede-17.01.4-ramips-rt288x-f5d8235-v1-squashfs-sysupgrade.bin
ports 1 and 2 do not auto negotiate to 1Gbit speed, WAN port sets also to 100Mbit and all works fine
when same or additional cabling is used on ports 3 and 4 they negotiate to 1Gbit, but WAN ports stays 100Mbit and 50% packet get lost going out the WAN interface, while LAN communication works fine.
ethtool do not recognize/cannot set/check eth0 so speed and duplex cannot be forced manualy
on factory firmware with same cabling all 5 ports work fine with 1Gbit

if there is anything I can do to fix/test let me know

07.04.20181474Base systemBug ReportVery LowHighBelkin F5D8235-4 v1 switch issues, WAN port packet losslede-17.01Unconfirmed Task Description

Belkin F5D8235-4 v1
lede-17.01.4-ramips-rt288x-f5d8235-v1-squashfs-sysupgrade.bin
when ports 1 and 2 are used gigabit ports auto negotiate for 100Mbit including WAN port and all seem work fine
when the same or additional cables are plugged to ports 3 and 4 gigabit ports auto negotiate for 1Gbit (while the other stay @100Mbit) and there is huge packet loss (around 50% - probably due failed autonegotiation)
ethtool package does not recognize interfaces (e.g. eth0/1) so speed/duplex cannot be set/checked.

with same cabling all ports work fine @1Gbit including provider WAN connection with factory firmware.

07.04.20181473OtherBug ReportVery LowLowUSB connects then disconnects later in bootTrunkUnconfirmed Task Description

The Device that this problem occurs on is Netgear WNDR3700v3. I’m using 17.01.04 release of openwrt.
Long story made short, the issue is that USB connects, then later in startup of the router it disconnects and when fully booted it can’t be seen using ‘fdisk -l’ nor can it be mounted (/dev/sda1)...

Installed packages are the ones included in the build + usb-core and its dependencies.

To reproduce this issue:

1.Do standard setup the router ( setup wan, setup lan, switch wifi on).
2.Install packages required for usb functionality.
3.Insert usb and reboot.

You will see during boot that usb light flashes few times and then after boot stops flashing/working. That can be confirmed by dmesg.

[    0.000000] Linux version 4.4.92 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3104-41de9a2) ) #0 Tue Oct 17 17:46:20 2017
[    0.000000] CPU0 revision is: 00019740 (MIPS 74Kc)
[    0.000000] bcm47xx: Using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x0A
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 8034e4c0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60940K/65536K available (2979K kernel code, 134K rwdata, 368K rodata, 156K init, 294K bss, 4596K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x11, class 0x0)
[    0.000000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x00, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x04, class 0x0) 
[    0.000000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0)
[    0.000000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x07, class 0x0)
[    0.000000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, class 0x0)
[    0.000000] bcma: bus0: Found rev 5 PMU (capabilities 0x11242C05)
[    0.000000] bcma: bus0: Found serial flash
[    0.000000] bcma: bus0: Found M25P64 serial flash (size: 8192KiB, blocksize: 0x10000, blocks: 128)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Unknown Board
[    0.000000] bcm47xx: Setting up vectored interrupts
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7963585194 ns
[    0.000015] sched_clock: 32 bits at 240MHz, resolution 4ns, wraps every 8947848189ns
[    0.000083] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.070033] pid_max: default: 32768 minimum: 301
[    0.070283] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070311] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.074095] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.074144] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.075341] NET: Registered protocol family 16
[    0.076346] Can't analyze schedule() prologue at 800077c8
[    0.095859] clocksource: Switched to clocksource MIPS
[    0.097957] NET: Registered protocol family 2
[    0.099548] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099608] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099647] TCP: Hash tables configured (established 1024 bind 1024)
[    0.099818] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.099865] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.100398] NET: Registered protocol family 1
[    0.100494] PCI: CLS 0 bytes, default 32
[    0.515000] bcma: bus0: Using SPROM revision 8 provided by platform.
[    0.515042] bcma: bus0: PMU resource config unknown or not needed for device 0x4716
[    0.517109] bcma: bus0: Workarounds unknown or not needed for device 0x4716
[    0.517134] bcma: bus0: Initializing MIPS core...
[    0.517163] bcma: bus0: set_irq: core 0x0812, irq 3 => 3
[    0.517186] bcma: bus0: set_irq: core 0x082d, irq 4 => 4
[    0.517207] bcma: bus0: set_irq: core 0x0819, irq 5 => 5
[    0.517229] bcma: bus0: set_irq: core 0x0820, irq 6 => 6
[    0.517249] bcma: bus0: set_irq: core 0x0800, irq 2 => 2
[    0.517269] bcma: bus0: set_irq: core 0x0834, irq 2 => 2
[    0.517284] bcma: bus0: IRQ reconfiguration done
[    0.517300] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I
[    0.517350] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I
[    0.517392] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I
[    0.517433] bcma: core 0x082c, irq : 2(S)  3  4  5  6  D  I*
[    0.517475] bcma: core 0x0819, irq : 2(S)  3  4  5* 6  D  I
[    0.517517] bcma: core 0x0820, irq : 2(S)  3  4  5  6* D  I
[    0.517558] bcma: core 0x082e, irq : 2(S)  3  4  5  6  D* I
[    0.517599] bcma: core 0x080e, irq : 2(S)  3  4  5  6  D  I*
[    0.517639] bcma: core 0x0834, irq : 2(S)* 3  4  5  6  D  I
[    0.517683] bcma: bus0: PCIEcore in host mode found
[    0.701176] PCI host bridge to bus 0000:00
[    0.701231] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]
[    0.701260] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.701289] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.701318] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.701400] pci 0000:00:00.0: [14e4:4716] type 00 class 0x060000
[    0.701443] bcma: PCI: Fixing up bridge 0000:00:00.0
[    0.701464] bcma: PCI: Fixing up device 0000:00:00.0
[    0.701528] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    0.701568] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x07ffffff 64bit]
[    0.701674] pci 0000:00:00.0: supports D1 D2
[    0.702056] pci 0000:00:00.1: [14e4:0000] type 00 class 0x060000
[    0.702103] bcma: PCI: Fixing up bridge 0000:00:00.1
[    0.702124] bcma: PCI: Fixing up device 0000:00:00.1
[    0.702187] pci 0000:00:00.1: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    0.702227] pci 0000:00:00.1: reg 0x18: [mem 0x00000000-0x07ffffff 64bit]
[    0.702325] pci 0000:00:00.1: supports D1 D2
[    0.702763] pci 0000:00:01.0: [14e4:4331] type 00 class 0x028000
[    0.702894] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00003fff 64bit]
[    0.702991] bcma: PCI: Fixing up addresses 0000:00:01.0
[    0.703037] pci 0000:00:01.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    0.703200] pci 0000:00:01.0: supports D1 D2
[    0.703605] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.705142] bcma: bus0: Bus registered
[    0.706323] Crashlog allocated RAM at address 0x3f00000
[    0.737420] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.737451] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.742243] io scheduler noop registered
[    0.742278] io scheduler deadline registered (default)
[    0.742710] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.747752] console [ttyS0] disabled
[    0.767993] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2, base_baud = 1250000) is a U6_16550A
[    1.271345] console [ttyS0] enabled
[    1.383454] 7 bcm47xxpart partitions found on MTD device bcm47xxsflash
[    1.390163] Creating 7 MTD partitions on "bcm47xxsflash":
[    1.395669] 0x000000000000-0x000000040000 : "boot"
[    1.404675] 0x000000040000-0x0000007e0000 : "firmware"
[    1.412942] 0x0000007e0000-0x0000007f0000 : "board_data"
[    1.421384] 0x0000007f0000-0x000000800000 : "nvram"
[    1.429424] 0x00000004001c-0x00000004091c : "loader"
[    1.437592] 0x00000004091c-0x000000166000 : "linux"
[    1.445531] 0x000000166000-0x0000007e0000 : "rootfs"
[    1.453634] mtd: device 6 (rootfs) set to be root filesystem
[    1.459556] 1 squashfs-split partitions found on MTD device rootfs
[    1.465900] 0x0000003a0000-0x0000007e0000 : "rootfs_data"
[    1.477763] libphy: Fixed MDIO Bus: probed
[    1.482172] bgmac_bcma bcma0:2: Found PHY addr: 30 (NOREGS)
[    1.491131] libphy: bcma_mdio mii bus: probed
[    1.495592] bgmac_bcma bcma0:2: Support for Roboswitch not implemented
[    1.656300] b53_common: found switch: BCM53115, rev 8
[    1.662752] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    1.669147] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.677188] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    1.682952] bcma: PCI: Fixing up device 0000:00:01.0
[    1.688087] bcma: change PCIe max read request size from 512 to 128
[    1.694521] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    1.701786] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    1.710541] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    1.719387] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    1.727658] bcma: bus1: Found rev 10 PMU (capabilities 0x108C260A)
[    1.727690] bcma: bus1: SPROM offset 0x800
[    1.851848] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    2.046785] bcma: bus1: Using SPROM revision 9 provided by platform.
[    2.046829] bcma: bus1: PMU resource config unknown or not needed for device 0x4331
[    2.057502] bcma: bus1: Bus registered
[    2.063308] NET: Registered protocol family 10
[    2.072711] NET: Registered protocol family 17
[    2.077480] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.090356] 8021q: 802.1Q VLAN Support v1.8
[    2.104187] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    2.112500] Freeing unused kernel memory: 156K
[    3.754063] init: Console is alive
[    3.758057] init: - watchdog -
[    4.878998] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.017988] usbcore: registered new interface driver usbfs
[    5.023754] usbcore: registered new interface driver hub
[    5.029472] usbcore: registered new device driver usb
[    5.042546] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.051645] ehci-platform: EHCI generic platform driver
[    5.057233] ehci-platform ehci-platform.0: EHCI Host Controller
[    5.063363] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    5.071819] ehci-platform ehci-platform.0: irq 5, io mem 0x18004000
[    5.095922] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    5.104198] hub 1-0:1.0: USB hub found
[    5.108771] hub 1-0:1.0: 2 ports detected
[    5.117596] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.126043] ohci-platform: OHCI generic platform driver
[    5.131512] ohci-platform ohci-platform.0: Generic Platform OHCI controller
[    5.138753] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 2
[    5.147160] ohci-platform ohci-platform.0: irq 5, io mem 0x18009000
[    5.211640] hub 2-0:1.0: USB hub found
[    5.216336] hub 2-0:1.0: 2 ports detected
[    5.224214] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.242340] init: - preinit -
[    5.608070] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.864264] random: procd: uninitialized urandom read (4 bytes read, 10 bits of entropy available)
[    5.889247] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.865937] bgmac_bcma bcma0:2 eth0: Link is Up - 1Gbps/Full - flow control off
[    7.873468] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.273926] jffs2: notice: (342) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   10.303649] mount_root: loading kmods from internal overlay
[   10.724352] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.373272] SCSI subsystem initialized
[   11.419230] uhci_hcd: USB Universal Host Controller Interface driver
[   11.454632] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.462745] scsi host0: usb-storage 1-1:1.0
[   11.468012] usbcore: registered new interface driver usb-storage
[   11.475786] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.882238] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   11.892225] block: extroot: not configured
[   11.897883] mount_root: switching to jffs2 overlay
[   11.912369] urandom-seed: Seeding with /etc/urandom.seed
[   12.092045] procd: - early -
[   12.095211] procd: - watchdog -
[   12.831439] scsi 0:0:0:0: Direct-Access     FLASH    Drive SM_USB20   3000 PQ: 0 ANSI: 0 CCS
[   12.845660] sd 0:0:0:0: [sda] 3932160 512-byte logical blocks: (2.01 GB/1.88 GiB)
[   12.866047] sd 0:0:0:0: [sda] Write Protect is off
[   12.871009] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   12.872568] sd 0:0:0:0: [sda] No Caching mode page found
[   12.878114] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   12.900092]  sda: sda1 sda2
[   12.912389] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.408590] procd: - watchdog -
[   13.413238] procd: - ubus -
[   13.575271] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.589064] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.599754] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.609582] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.621827] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.631285] random: ubusd: uninitialized urandom read (4 bytes read, 49 bits of entropy available)
[   13.641747] random: ubusd: uninitialized urandom read (4 bytes read, 51 bits of entropy available)
[   13.652513] random: ubusd: uninitialized urandom read (4 bytes read, 51 bits of entropy available)
[   13.664938] procd: - init -
[   14.978977] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.994949] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.021509] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   15.029742] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   15.042765] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.063214] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[   15.125836] xt_time: kernel timezone is -0000
[   15.219516] PPP generic driver version 2.4.2
[   15.229060] NET: Registered protocol family 24
[   15.251342] b43-phy0: Broadcom 4716 WLAN found (core revision 17)
[   15.258525] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 5
[   15.264740] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 7, Version 0
[   15.273031] b43-phy1: Broadcom 4331 WLAN found (core revision 29)
[   15.279362] bcma: bus1: Switched to core: 0x812
[   15.286208] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   15.306006] b43-phy1: Found PHY: Analog 9, Type 7 (HT), Revision 1
[   15.312319] b43-phy1: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
[   15.319890] b43-phy1 warning: 5 GHz band is unsupported on this PHY
[   15.340847] Broadcom 43xx driver loaded [ Features: NL ]
[   15.350173] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   15.476055] kmodloader: done loading kernel modules from /etc/modules.d/*
[   17.239669] random: jshn: uninitialized urandom read (4 bytes read, 81 bits of entropy available)
[   27.045316] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.094907] device eth0.1 entered promiscuous mode
[   27.099903] device eth0 entered promiscuous mode
[   27.140638] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   27.388545] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   28.346008] bgmac_bcma bcma0:2 eth0: Link is Up - 1Gbps/Full - flow control off
[   28.353541] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.530202] br-lan: port 1(eth0.1) entered forwarding state
[   28.536077] br-lan: port 1(eth0.1) entered forwarding state
[   28.541946] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   28.616063] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   30.535925] br-lan: port 1(eth0.1) entered forwarding state
[   32.126060] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[   32.134511] usb 1-1: USB disconnect, device number 2
[   32.437880] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   32.478559] device wlan0 entered promiscuous mode
[   32.546447] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   32.553223] br-lan: port 2(wlan0) entered forwarding state
[   32.559023] br-lan: port 2(wlan0) entered forwarding state
[   34.555927] br-lan: port 2(wlan0) entered forwarding state
[   37.215918] random: nonblocking pool is initialized
07.04.20181472KernelBug ReportVery LowMediumStopping lxc container results in kernel oopsTrunkUnconfirmed Task Description

Device: Linksys WRT1900ACS v2
OpenWrt version: Latest master (c0742307a18178ee7d2cee1fc6b0e199ccb1e1fa)

root@OpenWrt:~# lxc-checkconfig 
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled

--- Control groups ---
Cgroups: enabled

Cgroup v1 mount points: 
/sys/fs/cgroup

Cgroup v2 mount points: 


Cgroup v1 systemd controller: /usr/bin/lxc-checkconfig: line 169: printf \033[1;31m: not found

Cgroup v1 freezer controller: /usr/bin/lxc-checkconfig: line 176: printf \033[1;31m: not found

Cgroup v1 clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled, loaded
Macvlan: enabled, loaded
Vlan: enabled, not loaded
Bridges: enabled, not loaded
Advanced netfilter: enabled, not loaded
CONFIG_NF_NAT_IPV4: enabled, loaded
CONFIG_NF_NAT_IPV6: missing
CONFIG_IP_NF_TARGET_MASQUERADE: enabled, loaded
CONFIG_IP6_NF_TARGET_MASQUERADE: missing
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, loadedCONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, loaded
FUSE (for use with lxcfs): enabled, loaded

--- Checkpoint/Restore ---
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities: enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig

Prerequisities:
1.lxc-create -t alpine –name container
2.Modify /srv/lxc/container/config adding:
lxc.net.0.type = veth
lxc.net.0.link = br-lan
lxc.net.0.flags = up
lxc.net.0.ipv4.address = 192.168.1.5/24
lxc.net.0.ipv4.gateway = 192.168.1.1
lxc.net.0.name = eth0
3.lxc-start –name container

Steps to reproduce:
1.lxc-stop –name container

[ 89.634758] ————[ cut here ]———— [ 89.639416] WARNING: CPU: 0 PID: 39 at net/netfilter/core.c:392 nf_unregister_net_hooks+0x7c/0×188 [ 89.648432] Modules linked in: qcserial pppoe ppp_async option ipw cdc_mbim usb_wwan usb_serial_simple ueagle_atm ti_usb_3410_5052 sr9700 speedtch smsc95xx sierra_net sierra rndis_host qmi_wwan pppox ppp_generic plusb pl2303 oti6858 nf_nat_pptp nf_conntrack_pptp mos7720 mct_u232 mcs7830 keyspan kalmia iptable_nat ipt_MASQUERADE ipt_CLUSTERIP io_edgeport huawei_cdc_ncm garmin_gps ftdi_sio ebtable_nat ebtable_filter ebtable_broute dm9601 cypress_m8 cxacru cp210x ch341 cdc_subset cdc_ncm cdc_ether cdc_eem belkin_sa ax88179_178a asix ark3116 yealink xt_u32 xt_time xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota2 xt_quota xt_psd xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_lscan xt_limit xt_length2 xt_length xt_ipv4options xt_iprange xt_ipp2p xt_iface xt_hl xt_helper
[ 89.719541] xt_hashlimit xt_geoip xt_fuzzy xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_condition xt_comment xt_cluster xt_addrtype xt_TRACE xt_TPROXY xt_TEE xt_TCPMSS xt_SYSRQ xt_REDIRECT xt_NFQUEUE xt_NFLOG xt_NETMAP xt_LUA xt_LOGMARK xt_LOG xt_LED xt_IPMARK xt_HL xt_FLOWOFFLOAD xt_DSCP xt_DNETMAP xt_DHCPMAC xt_CT xt_CLASSIFY xt_CHECKSUM xt_DELUDE xt_TARPIT ipt_REJECT xt_tcpudp xt_CHAOS xt_ACCOUNT xr_usb_serial_common vport_vxlan vport_gre vport_geneve visor vhci_hcd usbserial usbnet usblp usbip_host usbip_core usbhid usbatm ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda ts_fsm ts_bm slhc rtl8150 r8152 pegasus openvswitch nfnetlink_queue nfnetlink_log nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip
[ 89.791156] nf_nat_rtsp nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_nat nf_log_ipv4 nf_log_common nf_flow_table_hw nf_flow_table nf_dup_ipv4 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtsp nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conntrack macvlan libcrc32c kaweth iptable_raw iptable_mangle iptable_filter ipt_rpfilter ipt_ah ipt_ECN ipheth ip_tables hso hid_generic ezusb ebtables ebt_vlan ebt_stp ebt_snat ebt_redirect ebt_pkttype ebt_nflog ebt_mark_m ebt_mark ebt_log ebt_limit ebt_ip ebt_dnat ebt_arpreply ebt_arp ebt_among ebt_802_3 dmx_usb
[ 89.862055] crc_ccitt compat_xtables cm109 cdc_wdm cdc_acm br_netfilter arptable_filter arpt_mangle arp_tables fuse configs sg hid evdev input_core mwlwifi mac80211 cfg80211 compat xt_set x_tables ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink nfsv4 nfsv3 nfsd nfs ip_gre gre ip_tunnel veth tun nbd mpls_gso mpls_iptunnel mpls_router vfat fat ntfs lockd sunrpc grace isofs cramfs autofs4 dns_resolver dm_crypt dm_mirror dm_region_hash dm_log dm_mod dax br2684 atm nls_utf8 nls_iso8859_2 nls_iso8859_15 nls_iso8859_1 nls_cp437 rfkill vxlan geneve udp_tunnel
[ 89.933239] uas dwc3 dwc2 ohci_pci uhci_hcd ohci_platform ohci_hcd gpio_button_hotplug reiserfs exfat mii
[ 89.942957] CPU: 0 PID: 39 Comm: kworker/u4:2 Not tainted 4.14.32 #0
[ 89.949337] Hardware name: Marvell Armada 380/385 (Device Tree)
[ 89.955283] Workqueue: netns cleanup_net
[ 89.959234] [<c010f640>] (unwind_backtrace) from [<c010b30c>] (show_stack+0×10/0×14)
[ 89.967014] [<c010b30c>] (show_stack) from [<c05f6608>] (dump_stack+0×88/0x9c)
[ 89.974269] [<c05f6608>] (dump_stack) from [<c012228c>] (warn+0xe4/0×100)
[ 89.981260] [<c012228c>] (
warn) from [<c0122358>] (warn_slowpath_null+0×20/0×28)
[ 89.988864] [<c0122358>] (warn_slowpath_null) from [<c0574568>] (nf_unregister_net_hooks+0x7c/0×188)
[ 89.998037] [<c0574568>] (nf_unregister_net_hooks) from [<c0533084>] (ops_exit_list+0×38/0×60)
[ 90.006686] [<c0533084>] (ops_exit_list) from [<c0534358>] (cleanup_net+0×188/0×294)
[ 90.014462] [<c0534358>] (cleanup_net) from [<c013881c>] (process_one_work+0×240/0x3d0)
[ 90.022500] [<c013881c>] (process_one_work) from [<c01397b8>] (worker_thread+0×330/0×560)
[ 90.030715] [<c01397b8>] (worker_thread) from [<c013e01c>] (kthread+0×148/0×154)
[ 90.038143] [<c013e01c>] (kthread) from [<c0107a68>] (ret_from_fork+0×14/0x2c)
[ 90.045411] —[ end trace ea4697cf910febb4 ]—

06.04.20181471PackagesBug ReportVery LowMediumiptables-mod-trace: missing kmod-ipt-debuglede-17.01Unconfirmed Task Description

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

 

I’m tring to use the TRACE iptables target on LEDE 17.04.4. I found that I cannot install iptables-mod-trace because the kmod-ipt-debug package is missing:

root@LEDE:~# opkg install iptables-mod-trace
Installing iptables-mod-trace (1.4.21-3) to root...
Downloading http://downloads.lede-project.org/releases/17.01.4/packages/x86_64/base/iptables-mod-trace_1.4.21-3_x86_64.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for iptables-mod-trace:
 *      kmod-ipt-debug * 
 * opkg_install_cmd: Cannot install package iptables-mod-trace.

I found that no kmod-ipt-debug package is available anywhere. I wonder if something is missing?

05.04.20181469Base systemBug ReportVery LowMediumtl-wr740n-v4 with wrong switch port order on LuCI TrunkUnconfirmed Task Description

Here’s the port layout:

# in case # in swconfig # in LuCI # desired
1 2 LAN3 LAN1
2 3 LAN2 LAN2
3 4 LAN1 LAN3
4 1 LAN4 LAN4

I noticed that even though the target selected is tl-wr740n-v4, the device built is actually TL-WR741ND-v4 shown on dmesg. That way, the port layout selected on External Linkhttps://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ar71xx/base-files/etc/board.d/02_network;hb=d0988235dd277b9a832bbc4b2a100ac6e821f577 is indeed wrong for this device. That was the only difference that I could find on tl-wr740n-v4, HW 4.28.

What would be the correct fix here, adding a new tl-wr740n-v4 device, or altering the uci default for tl-wr741nd-v4? I can submit the patch, but first would like to know what is preferred.

04.04.20181468Base systemBug ReportVery LowLowhostapd spams logTrunkUnconfirmed Task Description

hostapd commit eba3b028 causes the log to be spammed if

    option macfilter 'allow'
    list maclist 'xx:xx:xx:xx:xx:xx'

is used in wireless config stanza

forum discussion

02.04.20181467KernelBug ReportVery LowCriticalieee80211_tx_status: headroom too smallTrunkUnconfirmed Task Description

Latest LEDE on Gateworks Newport GW6300 (octeontx) with Compex WLE900VX ath10k radio. Using 4.14.13 mainline OpenWrt kernel

The syslog is getting spammed with “headroom too small” errors when a monitor wireless interface exists and a station gets connected:

Thu Jan  1 00:52:00 1970 kern.err kernel: [  157.740108] ieee80211_tx_status: headroom too small
Thu Jan  1 00:52:01 1970 kern.err kernel: [  158.764099] ieee80211_tx_status: headroom too small
Thu Jan  1 00:52:02 1970 kern.err kernel: [  159.788129] ieee80211_tx_status: headroom too small

These errors are shown using ath10k and ath10k-ct driver versions (currently using ath10k-ct)

Steps to reproduce:

  1. Create a new monitor wireless interface
    iw phy phy0 interface add mon0 type monitor
    ip l set dev mon0 up
  2. Connect a client to the access point configured radio

Full logread info attached separately

02.04.20181465KernelBug ReportVery LowLowMT7688 eth0 link up down events do not result in uevent...lede-17.01Unconfirmed Task Description

Trying to get at MT7688 (rt3050 ethernet driver) eth0 link up/down events. Right now only the kernel log (dmesg) seems to know when eth0 link go up or down. So all interfaces that depend on eth0 stay “connected” when eth0 goes down, the routing table continues to favor those interfaces, and of course I can’t get a ethernet PHY LED to function if I don’t know when the link has changed state. the operstate also does not change. uevent and udevadm show nothing when link state changes. My fist quesion is, is this a bug or am I missing something? If it is a bug, I am happy to fix it, who/what/when/where should the link state change notification come from and where should it be broadcast to?

01.04.20181464Base systemBug ReportVery LowMediumPerl built with gcc > v5 segfaults on apm821xxTrunkUnconfirmed Task Description

- Device problem occurs on

I have seen this on recent builds for Meraki MR24 (apm821xx)

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

Currently at commit db893ec7f05e296ea50831246739bfc6cd29f50d.

Noticed recently since the update to gcc version 7 as default (at commit 61eee1adfbc9433b08b53f44804d4fb8d8d25f38).
Using GCC_USE_VERSION_5=y builds a perl that doesn’t segfault. GCC_USE_VERSION_6=y also segfaults. Perl installed is 5.26.1-3

- Steps to reproduce

Start perl, type “use strict;” followed by a carriage return. *BOOM*

root@hostname:/# perl
use strict;
Attempt to free unreferenced scalar: SV[65050.255294] perl[16847]: unhandled signal 11 at 529303c4 nip b7a193b4 lr b7a19380 code 1
 0x10493190 at /usr/lib/perl5/5.26/strict.pm line 38.
Segmentation fault
30.03.20181463PackagesBug ReportVery LowMediumnetifd disagrees with static route documentationTrunkUnconfirmed Task Description

https://openwrt.org/docs/guide-user/network/routes_configuration says, of the static route “gateway” configuration variable, “If omitted, the gateway from the parent interface is taken; if set to 0.0.0.0 no gateway will be specified for the route”. However, netifd HEAD does not distinguish all zeros from unset. In particular, https://git.openwrt.org/?p=project/netifd.git;a=blob;f=interface-ip.c;h=1c84d4f8afed8bbe8af9fcc868fb1472b048019d;hb=HEAD#l343 is the only place where ROUTE_GATEWAY is decoded from a blob message and will leave route→nexthop all zeros if none is provided:

 343         if ((cur = tb[ROUTE_GATEWAY]) != NULL) {
 344                 if (!inet_pton(af, blobmsg_data(cur), &route->nexthop)) {
 345                         DPRINTF("Failed to parse route gateway: %s\n", (char *) blobmsg_data(cur));
 346                         goto error;
 347                 }
 348         }

When it comes time to actually use the resulting route→nexthop value, https://git.openwrt.org/?p=project/netifd.git;a=blob;f=system-linux.c;h=0ca525602d9ea63ac5b845b2be9c6c7bdec7c26c;hb=HEAD#l1851 just checks for all-zeros and, if so, declares it to be a link-local route:

1851         if (alen == 4)
1852                 have_gw = !!route->nexthop.in.s_addr;
1853         else
1854                 have_gw = route->nexthop.in6.s6_addr32[0] ||
1855                         route->nexthop.in6.s6_addr32[1] ||
1856                         route->nexthop.in6.s6_addr32[2] ||
1857                         route->nexthop.in6.s6_addr32[3];
...
1882                         rtm.rtm_scope = (have_gw) ? RT_SCOPE_UNIVERSE : RT_SCOPE_LINK;
...
1925         if (have_gw)
1926                 nla_put(msg, RTA_GATEWAY, alen, &route->nexthop);

I believe that struct device_route needs a flag to indicate whether the incoming blobmsg had a ROUTE_GATEWAY or not, and that system_rt should use the device’s configured default gateway if not. There is, at present, no workaround except to hard-code the next hop in the configuration, which is gross.

30.03.20181462Base systemBug ReportVery LowHighodhcp6c fails to renew and rebind addressesTrunkWaiting on reporter Task Description

odhcp6c sents all its packets to ff02::1:2. However a trace captured from my wan interface shows that the source-IP and dest-IP are completely changed for the RENEW message, hence ignored by the DHCP server, effectively crippling DHCPv6. See attached screenshot of wireshark for the failed conversation, where the RENEW messages are not sent to ff02::1:2, but to some random public address.

While I can understand that there are routing tables and preferred egress addresses that can make the public IP be preferred over the link local IP (used in the beginning of the conversation), but what leads to mangling of ff02::1:2 into something public is beyond me.

This breaks IPv6 support after initial assignment. As seen in the wireshark trace, despite a response from my ISP dhcp server, odhcp6c ignores it, and keeps retrying.

OpenWrt SNAPSHOT, r6565-fd588db

29.03.20181461Base systemBug ReportVery LowMedium[hostapd] wpa_supplicant and mesh fail to connect after...TrunkUnconfirmed Task Description

Even after changing /etc/config/wireless to use option sae_password, mesh node fails to connect with other nodes with builds on or after the indicated commit.

This may be an upstream issue, even though hostap/wpa_supplicant/wpa_supplicant.conf does call out sae_password

Reverting to the older version of /lib/netifd/hostapd.sh allows the mesh to properly connect. (The config file contains both key and sae_password entries.) Commenting out the option key line in the config file for the failing build does not change the behavior.

Reverting /lib/netifd/hostapd.sh is a work-around at this time.

Interface is up as per both iw dev and ip link

/var/run/wpa_supplicant-mesh0.conf has been confirmed to pick up sae_password in the impacted builds and be otherwise “the same” as functioning builds.

network={
	
	ssid="<mesh ID>"
	key_mgmt=SAE
	mode=5
	fixed_freq=1
	frequency=5745
	ht40=1
	vht=1
	max_oper_chwidth=1
	sae_password="<same for both>"
	beacon_int=100
}

The command line executing wpa_supplicant on the interface is the same in both cases
/usr/sbin/wpa_supplicant -B -b br-mesh -P /var/run/wpa_supplicant-mesh0.pid -D nl80211 -i mesh0 -c /var/run/wpa_supplicant-mesh0.conf -C/var/run/wpa_supplicant

config wifi-device 'radio5'
	option type 'mac80211'
	option channel '149'
	option hwmode '11a'
	option path 'pci0000:01/0000:01:00.0'
	option htmode 'VHT80'
	option require_mode 'ac'

config wifi-iface 'mesh0'
	option device 'radio5'
	option ifname 'mesh0'
	option mode 'mesh'
	option mesh_id '<mesh ID>'
	option mesh_fwding '1'
	option encryption 'psk2+ccmp'
	option key '<same for both>'
	option sae_password '<same for both>'
	option network 'mesh'

Four Archer C7 v2 units
5 GHz radio for all on the mesh; other units running older builds with identical config for 5 GHz radio, other than the addition of option sae_password

Clean builds for the DUT with identical .config for both builds.

OpenWRT tree:

Good: 9b92afa3aa3bf19986983f4dceb54b4952d4b970 uci: update to latest git
Fails: eba3b028e46dbfe54f1208e9edf47bb0c6f73ac8 hostapd: update to git snapshot of 2018-03-26

Makefile changes around hostap:

-PKG_SOURCE_DATE:=2018-03-26
-PKG_SOURCE_VERSION:=64624f31cf81dc6164462fa153ee7a5909e21183

+PKG_SOURCE_DATE:=2017-08-24
+PKG_SOURCE_VERSION:=c2d4f2eb5dba0b5c5a8c5805823084da958a9b52


29.03.20181459Base systemFeature RequestVery LowLowAdding support for WR902AC-v3AllUnconfirmed Task Description

Hi,
Does someone knows if it is possible to have add support for the TL-WR902AC-v3? I was able to build a kernel for v1 but obviously, it doesn’t work for v3.

Thanks

26.03.20181458Base systemBug ReportVery LowLowbrcmfmac: Missing stats - Bitrate, Signal / Noise for w...TrunkUnconfirmed Task Description

Device: EA9500
Openwrt: trunk as of 26-Mar-2018
brcmfmac firmware ver: May 1 2017 12:43:53 version 10.10.122.301 (r658909) FWID 01-1ebebd8a

I don’t notice any performance drop or connectivity issues.
Just that I can’t seem to gauge what speeds are being used etc.

root@OpenWrt:~# iwinfo wlan0 assoclist
00:FC:8B:98:XX:XX  unknown / unknown (SNR 0)  7000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

4C:66:41:AD:XX:XX  unknown / unknown (SNR 0)  2000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

root@OpenWrt:~# iwinfo wlan1 assoclist
34:6F:92:05:XX:XX  unknown / unknown (SNR 0)  7000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

FC:C2:DE:76:XX:XX  unknown / unknown (SNR 0)  26000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown

root@OpenWrt:~# iwinfo wlan2 assoclist
30:07:4D:74:XX:XX  unknown / unknown (SNR 0)  9000 ms ago
        RX: unknown                                        0 Pkts.
        TX: unknown                                        0 Pkts.
        expected throughput: unknown
root@OpenWrt:~# iw phy phy0 info
Wiphy phy0
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports roaming.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 2:
                Capabilities: 0x1062
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-31
                VHT Capabilities (0x0c1b4064):
                        Max MPDU length: 3895
                        Supported Channel Width: 160 MHz
                        short GI (80 MHz)
                        short GI (160/80+80 MHz)
                        MU Beamformer
                        MU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: MCS 0-9
                        3 streams: MCS 0-9
                        4 streams: MCS 0-9
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (20.0 dBm)
                        * 5190 MHz [38] (20.0 dBm)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5210 MHz [42] (20.0 dBm)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5230 MHz [46] (20.0 dBm)
                        * 5240 MHz [48] (20.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (radar detection)
                        * 5280 MHz [56] (20.0 dBm) (radar detection)
                        * 5300 MHz [60] (20.0 dBm) (radar detection)
                        * 5320 MHz [64] (20.0 dBm) (radar detection)
                        * 5500 MHz [100] (20.0 dBm) (radar detection)
                        * 5520 MHz [104] (20.0 dBm) (radar detection)
                        * 5540 MHz [108] (20.0 dBm) (radar detection)
                        * 5560 MHz [112] (20.0 dBm) (radar detection)
                        * 5580 MHz [116] (20.0 dBm) (radar detection)
                        * 5600 MHz [120] (20.0 dBm) (radar detection)
                        * 5620 MHz [124] (20.0 dBm) (radar detection)
                        * 5640 MHz [128] (20.0 dBm) (radar detection)
                        * 5660 MHz [132] (20.0 dBm) (radar detection)
                        * 5680 MHz [136] (20.0 dBm) (radar detection)
                        * 5700 MHz [140] (20.0 dBm) (radar detection)
                        * 5720 MHz [144] (20.0 dBm) (radar detection)
                        * 5745 MHz [149] (20.0 dBm)
                        * 5765 MHz [153] (20.0 dBm)
                        * 5785 MHz [157] (20.0 dBm)
                        * 5805 MHz [161] (20.0 dBm)
                        * 5825 MHz [165] (20.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 1
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
                 * #{ AP } <= 4,
                   total <= 4, #channels <= 1, STA/AP BI must match
 


25.03.20181456PackagesBug ReportVery LowMediumIGMPProxy: Using old repositoryAllUnconfirmed Task Description

The makefile for the igmpproxy package located here: https://github.com/lede-project/source/blob/master/package/network/services/igmpproxy/Makefile

Is still fetching the source code from the old sourceforge repository: http://sourceforge.net/projects/igmpproxy

However, development has moved over to Github quite a while ago: https://github.com/pali/igmpproxy/

Some bug fixes are missing and multiple new features seem to be missing in the Lede included version.

24.03.20181454PackagesBug ReportVery LowLowargp-standalone: option ARGP_NO_ERRS is not honouredTrunkUnconfirmed Task Description

Symptom: error message is written for invalid option even with ARGP_NO_ERRS set in function argp_parse

 

Verified on ar71xx / mips_24kc / wndr3700 and mpc85xx / powerpc_8540 / tl-wdr4900
OpenWrt / LEDE trunk OpenWrt SNAPSHOT, r6548-8e1065d681

Found a problem when working with a software project where the LEDE / OpenWrt binary issues an error message for an invalid option when starting the binary while the debian / ubuntu linux version does not. I tracked it down to the fact that it must be a bug in the argp-standalone library of OpenWrt / LEDE where the option ARGP_NO_ERRS in function argp_parse is not honoured.

To reproduce I wrote a little demo program which works fine on debian and ubuntu but shows the invalid behaviour on OpenWrt / LEDE.

The demo program is hosted on https://github.com/tru7/argp-demo where I have also provided a feed named Makefile.lede to build the package on OpenWrt / LEDE.

I have no skills in coding and absolutely no skills in debugging, so this is about all I can do about this.

21.03.20181453Base systemBug ReportVery LowLow[mac80211] kernel errors load or lock system with mesh+...TrunkUnconfirmed Task Description

Overview

On an Archer C7, configuring an mesh point and an AP on the same radio cause a flood of errors to the log.

The load on the system can become so severe as to lock the user out of the system and pings to be several seconds (yes, not a typo) late
(seen on several builds, my notes identify v17.01.4-219-g796bc21 and v17.01.4-301-g60f8d38 as two of them)

Behavior identified as beginning with git commit 0f17504

Steps To Replicate

  • Build an Archer C7 image off the lede-17.01 branch on or after 0f17504
  • Install the following as /etc/config/wireless
config wifi-device 'radio24'
	option type 'mac80211'
	option channel '6'
	option hwmode '11g'
	option path 'platform/qca955x_wmac'
	option htmode 'HT20'
	option require_mode 'g'

config wifi-device 'radio5'
	option type 'mac80211'
	option channel '149'
	option hwmode '11a'
	option path 'pci0000:01/0000:01:00.0'
	option htmode 'VHT80'
	option require_mode 'ac'

config wifi-iface 'mesh0'
	option device 'radio5'
	option ifname 'mesh0'
	option mode 'mesh'
	option mesh_id '<mesh0_id>'
	option mesh_fwding '1'
	option encryption 'psk2+ccmp'
	option key '<mesh0_secret>'
	option network 'LAN'

config wifi-iface '5Gap'
	option device 'radio5'
	option mode 'ap'
	option ssid '<5Gap_ssid>'
	option encryption 'psk2+ccmp'
	option key '<5Gap_secret>'
	option network 'LAN'
  • reboot
  • Note the log messages that begin, then repeat continuously
[   70.392580] random: nonblocking pool is initialized
[   70.447666] br-vlan100: topology change detected, sending tcn bpdu
[   70.453988] br-vlan100: port 5(wlan1-1) entered forwarding state
[   70.507659] br-vlan100: topology change detected, sending tcn bpdu
[   70.513951] br-vlan100: port 7(wlan1-2) entered forwarding state
[   70.727668] br-vlan100: topology change detected, sending tcn bpdu
[   70.733956] br-vlan100: port 8(wlan1-3) entered forwarding state
[   71.097691] br-vlan100: topology change detected, sending tcn bpdu
[   71.103997] br-vlan100: port 6(wlan0-1) entered forwarding state
[   71.437684] br-vlan100: topology change detected, sending tcn bpdu
[   71.443978] br-vlan100: port 9(wlan1-4) entered forwarding state
[   71.517659] br-vlan100: topology change detected, sending tcn bpdu
[   71.523944] br-vlan100: port 10(wlan1-5) entered forwarding state
[   71.726243] ------------[ cut here ]------------
[   71.731103] WARNING: CPU: 0 PID: 6 at compat-wireless-2017-01-31/net/mac80211/ieee80211_i.h:1011 ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]()
[   71.744801] Modules linked in: iptable_nat ath9k nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ath9k_common xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG 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 ath9k_hw ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ip6_gre ip_gre gre ip6_tunnel tunnel6 ip_tunnel ehci_platform ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
[   71.815278] CPU: 0 PID: 6 Comm: kworker/u2:0 Not tainted 4.4.103 #0
[   71.821720] Workqueue: phy0 ieee80211_ibss_leave [mac80211]
[   71.827387] Stack : 87c4fd14 00000088 80410000 800a78a4 87c2dbac 80410d63 803a9a68 00000006
	  803d40c0 87c4fb44 80410000 800a5820 80410000 800a78a4 803af174 80410000
	  00000003 87c4fb44 80410000 80095804 80410000 87c4fb7c 00000000 801f8654
	  00000001 801f8600 87693adc 87ffc400 87ffc300 70687930 00000000 00000000
	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
	  ...
[   71.863749] Call Trace:
[   71.866240] [<80071e7c>] show_stack+0x54/0x88
[   71.870677] [<80081c7c>] warn_slowpath_common+0xa0/0xd0
[   71.875979] [<80081d34>] warn_slowpath_null+0x18/0x24
[   71.881177] [<876c8654>] ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]
[   71.888390] [<800d7ef4>] get_page_from_freelist+0x33c/0x810
[   71.894039] 
[   71.895554] ---[ end trace d737184f1359b1c0 ]---
[   72.565911] ------------[ cut here ]------------
[   72.570821] WARNING: CPU: 0 PID: 6 at compat-wireless-2017-01-31/net/mac80211/ieee80211_i.h:1011 ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]()
[   72.584526] Modules linked in: iptable_nat ath9k nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ath9k_common xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG 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 ath9k_hw ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ip6_gre ip_gre gre ip6_tunnel tunnel6 ip_tunnel ehci_platform ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
[   72.655001] CPU: 0 PID: 6 Comm: kworker/u2:0 Tainted: G        W       4.4.103 #0
[   72.662676] Workqueue: phy0 ieee80211_ibss_leave [mac80211]
[   72.668341] Stack : 87c4fd14 00000088 80410000 800a78a4 87c2dbac 80410d63 803a9a68 00000006
	  803d40c0 87c4fb44 80410000 800a5820 80410000 800a78a4 803af174 80410000
	  00000003 87c4fb44 80410000 80095804 80410000 87c4fb7c 00000000 801f8654
	  8040fe70 801f8600 87693adc 87ffc400 87ffc300 70687930 00000000 00000000
	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
	  ...
[   72.704694] Call Trace:
[   72.707186] [<80071e7c>] show_stack+0x54/0x88
[   72.711622] [<80081c7c>] warn_slowpath_common+0xa0/0xd0
[   72.716925] [<80081d34>] warn_slowpath_null+0x18/0x24
[   72.722124] [<876c8654>] ieee80211_debugfs_key_sta_del+0xd4/0x6d8 [mac80211]
[   72.729338] 
[   72.730850] ---[ end trace d737184f1359b1c1 ]---
[   72.750381] ------------[ cut here ]------------

Expected Behavior

Mesh and AP would come up without notable errors or load.

Potential Cause

commit 0f175041ad03d381a575e2c2b1a1c9ca76fe0e99
Author: Antonio Quartulli <ordex@autistici.org>
Date:   Fri Nov 9 15:23:34 2012 +0100

    mac80211: don't pass the hostapd ctrl iface in adhoc
    
    Passing the ctrl iface to wpa_supplicant will automatically cause wpa_supplicant
    to send "STOP_AP" messages to the hostapd. This breaks the AP interfaces.
    
    Signed-off-by: Antonio Quartulli <ordex@autistici.org>
    (cherry picked from commit 0da54fa6428ea98d31b49f5d9a4a272214f5d188)

Other Notes

Additionally reported by @cititechs
https://forum.lede-project.org/t/802-11s-configuration-references-tp-link-archer-c7/4876/12?u=jeff

 

Exmaple ping log over a wired connection; unable to establish connection to examine logs

Request timeout for icmp_seq 57
64 bytes from <redacted>: icmp_seq=58 ttl=64 time=1.147 ms
64 bytes from <redacted>: icmp_seq=59 ttl=64 time=0.610 ms
64 bytes from <redacted>: icmp_seq=60 ttl=64 time=0.645 ms
64 bytes from <redacted>: icmp_seq=61 ttl=64 time=309.930 ms
Request timeout for icmp_seq 62
64 bytes from <redacted>: icmp_seq=62 ttl=64 time=1624.116 ms
64 bytes from <redacted>: icmp_seq=63 ttl=64 time=620.756 ms
64 bytes from <redacted>: icmp_seq=64 ttl=64 time=1721.540 ms
64 bytes from <redacted>: icmp_seq=65 ttl=64 time=719.600 ms
Request timeout for icmp_seq 67
Request timeout for icmp_seq 68
64 bytes from <redacted>: icmp_seq=66 ttl=64 time=3025.040 ms
64 bytes from <redacted>: icmp_seq=67 ttl=64 time=2020.629 ms
64 bytes from <redacted>: icmp_seq=68 ttl=64 time=1019.058 ms
64 bytes from <redacted>: icmp_seq=69 ttl=64 time=14.092 ms
Request timeout for icmp_seq 73
64 bytes from <redacted>: icmp_seq=70 ttl=64 time=4391.453 ms
64 bytes from <redacted>: icmp_seq=71 ttl=64 time=3388.555 ms
64 bytes from <redacted>: icmp_seq=72 ttl=64 time=2384.972 ms
64 bytes from <redacted>: icmp_seq=73 ttl=64 time=1384.871 ms
64 bytes from <redacted>: icmp_seq=74 ttl=64 time=384.382 ms
Request timeout for icmp_seq 79
Request timeout for icmp_seq 80
Request timeout for icmp_seq 81
64 bytes from <redacted>: icmp_seq=75 ttl=64 time=7244.993 ms
64 bytes from <redacted>: icmp_seq=76 ttl=64 time=6240.756 ms
64 bytes from <redacted>: icmp_seq=77 ttl=64 time=5240.605 ms
64 bytes from <redacted>: icmp_seq=78 ttl=64 time=4240.268 ms
64 bytes from <redacted>: icmp_seq=79 ttl=64 time=3235.217 ms
64 bytes from <redacted>: icmp_seq=80 ttl=64 time=2231.510 ms
64 bytes from <redacted>: icmp_seq=81 ttl=64 time=1393.878 ms
64 bytes from <redacted>: icmp_seq=82 ttl=64 time=388.886 ms
Request timeout for icmp_seq 90
Request timeout for icmp_seq 91
Request timeout for icmp_seq 92
Request timeout for icmp_seq 93
Request timeout for icmp_seq 94
64 bytes from <redacted>: icmp_seq=83 ttl=64 time=12157.520 ms
64 bytes from <redacted>: icmp_seq=84 ttl=64 time=11154.284 ms
64 bytes from <redacted>: icmp_seq=85 ttl=64 time=10154.189 ms
64 bytes from <redacted>: icmp_seq=86 ttl=64 time=9149.660 ms
64 bytes from <redacted>: icmp_seq=87 ttl=64 time=8146.267 ms
64 bytes from <redacted>: icmp_seq=88 ttl=64 time=7146.146 ms
64 bytes from <redacted>: icmp_seq=89 ttl=64 time=6145.438 ms
64 bytes from <redacted>: icmp_seq=90 ttl=64 time=5140.706 ms
64 bytes from <redacted>: icmp_seq=91 ttl=64 time=4137.406 ms
64 bytes from <redacted>: icmp_seq=92 ttl=64 time=3137.265 ms
64 bytes from <redacted>: icmp_seq=93 ttl=64 time=2137.250 ms
64 bytes from <redacted>: icmp_seq=94 ttl=64 time=1134.170 ms
64 bytes from <redacted>: icmp_seq=95 ttl=64 time=136.361 ms
Request timeout for icmp_seq 108
Request timeout for icmp_seq 109
Request timeout for icmp_seq 110
Request timeout for icmp_seq 111
64 bytes from <redacted>: icmp_seq=96 ttl=64 time=16613.049 ms
64 bytes from <redacted>: icmp_seq=97 ttl=64 time=15611.720 ms
64 bytes from <redacted>: icmp_seq=98 ttl=64 time=14607.843 ms
64 bytes from <redacted>: icmp_seq=99 ttl=64 time=13603.671 ms
64 bytes from <redacted>: icmp_seq=100 ttl=64 time=12599.121 ms
64 bytes from <redacted>: icmp_seq=101 ttl=64 time=11594.289 ms
64 bytes from <redacted>: icmp_seq=102 ttl=64 time=10589.932 ms
64 bytes from <redacted>: icmp_seq=103 ttl=64 time=9585.828 ms
64 bytes from <redacted>: icmp_seq=104 ttl=64 time=8582.492 ms
64 bytes from <redacted>: icmp_seq=105 ttl=64 time=7580.545 ms
64 bytes from <redacted>: icmp_seq=106 ttl=64 time=6577.218 ms
64 bytes from <redacted>: icmp_seq=107 ttl=64 time=5573.081 ms
64 bytes from <redacted>: icmp_seq=108 ttl=64 time=4569.669 ms
64 bytes from <redacted>: icmp_seq=109 ttl=64 time=3564.700 ms
64 bytes from <redacted>: icmp_seq=110 ttl=64 time=2564.257 ms
64 bytes from <redacted>: icmp_seq=111 ttl=64 time=1563.785 ms
64 bytes from <redacted>: icmp_seq=112 ttl=64 time=558.610 ms


20.03.20181451Base systemBug ReportVery LowMediumAccess points should not run a DHCP server after instal...TrunkUnconfirmed Task Description

Take an [UniFi AP](https://openwrt.org/toh/ubiquiti/unifi) or [UniFi AC AP](https://openwrt.org/toh/ubiquiti/unifiac) and deploy OpenWRT to it. It’ll come up as an authoritative DHCP server, which is (a) completely unexpected, as no reasonable network will have authoritative DHCP servers running on access points, and (b) disruptive.

I think that default configuration for access points should be any of, in the order decreasing preference:

  • DHCP client with fallback to static configuration
  • Just DHCP client
  • Static configuration
20.03.20181450Base systemBug ReportVery LowLowath9k Wifi hangup on Channel 11 at low loadTrunkUnconfirmed Task Description

Bug:
Router TP Link n600 wdr3600 connected clients 2 TP Link 841 with relayd stop working, no ping, route, dns.. after 3-12hours

Area:
No other wifi senders at my range! cause small village!

Settings:
WPA2-CCMP
HT40/HT20

Release:
DISTRIB_RELEASE=’SNAPSHOT’ DISTRIB_REVISION=’r6503-5faa955’ DISTRIB_TARGET=’ar71xx/generic’ DISTRIB_ARCH=’mips_24kc’ DISTRIB_DESCRIPTION=’OpenWrt SNAPSHOT r6503-5faa955’

staion-dump:
inactive time: 0 ms

      rx bytes:       1268361819
      rx packets:     857809
      tx bytes:       41626891
      tx packets:     442685
      tx retries:     138880
      tx failed:      0
      rx drop misc:   6659
      signal:         -56 [-58, -61] dBm
      signal avg:     -54 [-57, -58] dBm
      tx bitrate:     130.0 MBit/s MCS 15
      rx bitrate:     144.4 MBit/s MCS 15 short GI
      expected throughput:    44.677Mbps
      authorized:     yes
      authenticated:  yes
      associated:     yes
      preamble:       short
      WMM/WME:        yes
      MFP:            no
      TDLS peer:      no
      DTIM period:    2
      beacon interval:100
      short preamble: yes
      short slot time:yes
      connected time: 1393 seconds

Tested with and without ani (AirTimeFairness) no results!

Solution: Switch to Channel 6 now stable 2 days!

Tested:
-Routers at range 1 Meter same problems!
-With and without ani (AirTimeFairness) no results!
-Disabled IPV6 no help (cause some posts reports problems with ipv6)

Remark: No big bug messages on dmesg and logread.

333896}

dmesg;
[ 45.667980] br-lan: port 2(wlan0) entered blocking state
[ 45.673381] br-lan: port 2(wlan0) entered disabled state
[ 45.679216] device wlan0 entered promiscuous mode
[ 45.769097] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 45.830992] br-lan: port 3(wlan1) entered blocking state
[ 45.836394] br-lan: port 3(wlan1) entered disabled state
[ 45.842256] device wlan1 entered promiscuous mode
[ 45.847281] br-lan: port 3(wlan1) entered blocking state
[ 45.852683] br-lan: port 3(wlan1) entered forwarding state
[ 46.587328] br-lan: port 3(wlan1) entered disabled state
[ 47.788177] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 47.794798] br-lan: port 2(wlan0) entered blocking state
[ 47.800245] br-lan: port 2(wlan0) entered forwarding state
[ 48.471159] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 48.477841] br-lan: port 3(wlan1) entered blocking state
[ 48.483239] br-lan: port 3(wlan1) entered forwarding state

20.03.20181449Base systemBug ReportVery LowLowmt7621 - zbt3526 - mtk_soc_eth -> port 3 link up & down...TrunkUnconfirmed Task Description

current runknothing installed only use newest trunk from 20.3.2018

Tue Mar 20 03:10:54 2018 kern.info kernel: [ 1503.788203] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:10:56 2018 kern.info kernel: [ 1506.347573] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:11:04 2018 kern.info kernel: [ 1513.895790] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:11:08 2018 kern.info kernel: [ 1517.832424] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:11:13 2018 kern.info kernel: [ 1522.910834] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:11:15 2018 kern.info kernel: [ 1525.401597] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:11:21 2018 kern.info kernel: [ 1530.798474] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:11:23 2018 kern.info kernel: [ 1533.389966] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:12:53 2018 kern.info kernel: [ 1623.131837] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:12:57 2018 kern.info kernel: [ 1626.897454] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:13:20 2018 kern.info kernel: [ 1650.086813] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:13:22 2018 kern.info kernel: [ 1652.596397] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:14:10 2018 kern.info kernel: [ 1699.974606] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:14:12 2018 kern.info kernel: [ 1702.533339] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:14:24 2018 kern.info kernel: [ 1714.114599] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:14:28 2018 kern.info kernel: [ 1717.966606] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:14:34 2018 kern.info kernel: [ 1724.591850] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:14:37 2018 kern.info kernel: [ 1727.206909] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:15:10 2018 kern.info kernel: [ 1759.837908] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:15:12 2018 kern.info kernel: [ 1762.372712] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:15:37 2018 kern.info kernel: [ 1787.098031] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:15:41 2018 kern.info kernel: [ 1790.955159] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:15:43 2018 kern.info kernel: [ 1792.826106] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:15:45 2018 kern.info kernel: [ 1795.329556] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
Tue Mar 20 03:16:25 2018 kern.info kernel: [ 1835.067930] mtk_soc_eth 1e100000.ethernet eth0: port 3 link down
Tue Mar 20 03:16:28 2018 kern.info kernel: [ 1837.877538] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up

that is new .. not sure, but i guess, that was not existing on images from february ..

20.03.20181448Base systemBug ReportVery LowLowHost file from removed dnsmasq section remains in effec...TrunkUnconfirmed Task Description

Using OpenWrt trunk, if a dnsmasq section is removed from the dhcp uci file, its host file will remain in /tmp/hosts/

To replicate:

Set the content of /etc/config/dhcp to:

config dnsmasq 'foo'

config dnsmasq 'bar'

config 'domain'
	option instance 'bar'
	option name 'baz'
	option ip '127.1.1.1'

Run:
/etc/init.d/dnsmasq reload

Set the content of /etc/config/dhcp to:

config dnsmasq 'foo'

Run:
/etc/init.d/dnsmasq reload

The file /tmp/hosts/dhcp.bar still exists, and its content will remain in effect for connected clients.

19.03.20181445Base systemBug ReportVery LowLowUnable to compile : "Cannot find appropriate hash comma...TrunkUnconfirmed Task Description

- Device problem occurs on

TP-LINK Archer v2

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

Trunk compiled under Ubuntu 18.04

- Steps to reproduce

Trying to compile the latest trunk version of openwrt and I get the following error:

make[3]: Entering directory ‘/mnt/home/openwrt/trunk/toolchain/binutils’ mkdir -p /mnt/home/openwrt/trunk/dl
SHELL= flock /mnt/home/openwrt/trunk/tmp/.binutils-.tar.bz2.flock -c ' /mnt/home/openwrt/trunk/scripts/download.pl “/mnt/home/openwrt/trunk/dl” “binutils-.tar.bz2” “none” “” “@GNU/binutils/” '
Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.
Makefile:118: recipe for target ‘/mnt/home/openwrt/trunk/dl/binutils-.tar.bz2’ failed

Seems like “none” value should be “skip” instead. How do I fix that?


19.03.20181444KernelFeature RequestVery LowLowActivate CONFIG_ATH9K_HWRNG in Kernel 4.9TrunkUnconfirmed Task Description

Since Linux 4.5, ath9k can be used as a random number generator using ADC register as a source of entropy. It is well-known that insufficient entropy is often a problem on routers and weakens security, using ath9k as a random number generator can greatly boost the available entropy on the routers without the need of additional measures such as haveged.

19.03.20181443KernelBug ReportVery LowLowKernel Oops when Fragmentation is Setlede-17.01Unconfirmed Task Description

When fragmentation is set for wireless on ar71xx, kernel oops keep bombard the kernel log buffer with a bunch of error messages.

[10600.002288] ------------[ cut here ]------------
[10600.006927] WARNING: CPU: 0 PID: 7 at compat-wireless-2017-01-31/net/mac80211/tx.c:946 0x80e289c4 [mac80211@80e00000+0x60780]()
[10600.018367] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY 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 iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat sch_cake nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ifb gpio_button_hotplug
[10600.099694] CPU: 0 PID: 7 Comm: kworker/u2:1 Tainted: G        W       4.4.71 #0
[10600.107090] Workqueue: phy0 0x80e13adc [mac80211@80e00000+0x60780]
[10600.113263] Stack : 80a7f000 0000001a 80dd4b40 800a71dc 00000000 00000000 00000000 00000000
[10600.113263] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[10600.113263] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[10600.113263] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[10600.113263] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[10600.113263] 	  ...
[10600.148989] Call Trace:[<800a71dc>] 0x800a71dc
[10600.153474] [<80071a50>] 0x80071a50
[10600.156954] [<80071a50>] 0x80071a50
[10600.160435] [<80081804>] 0x80081804
[10600.163949] [<80e289c4>] 0x80e289c4 [mac80211@80e00000+0x60780]
[10600.169876] [<800818bc>] 0x800818bc
[10600.173398] [<80e289c4>] 0x80e289c4 [mac80211@80e00000+0x60780]
[10600.179349] [<80e2b6e0>] 0x80e2b6e0 [mac80211@80e00000+0x60780]
[10600.185347] [<80de9d1c>] 0x80de9d1c [ath9k@80de0000+0x16650]
[10600.190999] [<80de8520>] 0x80de8520 [ath9k@80de0000+0x16650]
[10600.196672] [<80de9e04>] 0x80de9e04 [ath9k@80de0000+0x16650]
[10600.202323] [<80e22550>] 0x80e22550 [mac80211@80e00000+0x60780]
[10600.208254] [<81bdc5d0>] 0x81bdc5d0 [cls_u32@81bdc000+0x1a00]
[10600.214050] [<80de85b0>] 0x80de85b0 [ath9k@80de0000+0x16650]
[10600.219736] [<80dea9b4>] 0x80dea9b4 [ath9k@80de0000+0x16650]
[10600.225410] [<80de7fbc>] 0x80de7fbc [ath9k@80de0000+0x16650]
[10600.231113] [<80deb4f4>] 0x80deb4f4 [ath9k@80de0000+0x16650]
[10600.236786] [<80260400>] 0x80260400
[10600.240328] [<80debea8>] 0x80debea8 [ath9k@80de0000+0x16650]
[10600.246034] [<80de4a7c>] 0x80de4a7c [ath9k@80de0000+0x16650]
[10600.251692] [<800843c4>] 0x800843c4
[10600.255188] [<80083d80>] 0x80083d80
[10600.258692] [<80dea69c>] 0x80dea69c [ath9k@80de0000+0x16650]
[10600.264362] [<80083ea8>] 0x80083ea8
[10600.267845] [<80083f50>] 0x80083f50
[10600.271345] [<80e31598>] 0x80e31598 [mac80211@80e00000+0x60780]
[10600.277285] [<80e0e3dc>] 0x80e0e3dc [mac80211@80e00000+0x60780]
[10600.283211] [<8009f02c>] 0x8009f02c
[10600.286708] [<80e0f47c>] 0x80e0f47c [mac80211@80e00000+0x60780]
[10600.292633] [<80e0ef8c>] 0x80e0ef8c [mac80211@80e00000+0x60780]
[10600.298567] [<80e13d00>] 0x80e13d00 [mac80211@80e00000+0x60780]
[10600.304499] [<8009f4a8>] 0x8009f4a8
[10600.308024] [<800930b8>] 0x800930b8
[10600.311565] [<80093ecc>] 0x80093ecc
[10600.315075] [<80093c1c>] 0x80093c1c
[10600.318567] [<80093c1c>] 0x80093c1c
[10600.322047] [<80098284>] 0x80098284
[10600.325575] [<800981ac>] 0x800981ac
[10600.329065] [<80060878>] 0x80060878
[10600.332562] 
[10600.334054] ---[ end trace 881b2fdc0bf96a94 ]---
[10600.338693] ------------[ cut here ]------------

 

This kernel oops is triggered by a warning at

 compat-wireless-2017-01-31/net/mac80211/tx.c:946 

:

 941     /*
 942      * Warn when submitting a fragmented A-MPDU frame and drop it.
 943      * This scenario is handled in ieee80211_tx_prepare but extra
 944      * caution taken here as fragmented ampdu may cause Tx stop.
 945      */
 946     if (WARN_ON(info->flags & IEEE80211_TX_CTL_AMPDU))
 947         return TX_DROP;

It seems a fragmented A-MPDU frame is submitted to ieee80211_tx_h_fragment incorrectly by the driver?

Showing tasks 1 - 50 of 486 Page 1 of 101 - 2 - 3 - 4 - 5 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing