OpenWrt/LEDE Project

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

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

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

OpenedIDCategoryTask TypePrioritySeverity  ascSummaryReported InStatus
18.01.20202747PackagesBug ReportVery LowLowcompiling wpa_supplicant without CONFIG_UBUS=y will fai...TrunkUnconfirmed Task Description

Uncomment CONFIG_UBUS=y in one of the config files of wpa_supplicant.
Compile hostapd.

Now you will get following error:

wpa_supplicant_i.h:313:21: error: field ‘ubus_global’ has incomplete type

struct ubus_object ubus_global;

Workaround is to delete 600-ubus_support.patch.

22.01.20202761PackagesBug ReportVery LowLowlibopenssl-devcryptoAllUnconfirmed Task Description

Hi All,

I think there is a problem with the package:
libopenssl-devcrypto

As reported in the guide Hardware Accelerators:
https://openwrt.org/docs/techref/hardware/cryptographic.hardware.accelerators

when trying to install the package libopenssl-devcrypto, that depends on kmod-cryptodev, but it doesn’t exist.

Obviously, the problem is reproducible in LUCI

02.02.20202801PackagesBug ReportVery LowLowAdd s3fs packageTrunkUnconfirmed Task Description

A user recently asked how to compile s3fs on OpenWrt:

https://github.com/s3fs-fuse/s3fs-fuse/issues/1208

This is likely challenging to do on a router itself due to the limited RAM. I wonder if OpenWrt could include s3fs as a package? These is some precedent for this with sshfs:

https://openwrt.org/packages/index/network---filesystem

09.02.20202826PackagesBug ReportVery LowLowdnsmasq: neg-ttl, addn-hosts jail supportTrunkUnconfirmed Task Description

Hi!
Is it possible to add neg-ttl config option to dnsmasq, please?
And maybe set it to a default value of 15minutes?

addn-hosts files are not added to the jail, which results in a failure to load them.

Thanks.

03.03.20202875PackagesBug ReportVery LowLowppp-mod-pptp ipk install error on k2p routerTrunkUnconfirmed Task Description

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

 

I want to setup pptp site-to-site vpn on k2p router which install openwrt. when i instlall ppp-mode-pptp ipk,the error occur below.

root@Router:~# opkg install ppp-mod-pptp
Installing ppp-mod-pptp (2.4.7-13) to root...
Downloading http://mirrors.tuna.tsinghua.edu.cn/lede/releases/18.06.7/packages/mipsel_24kc/base/ppp-mod-pptp_2.4.7-13_mipsel_24kc.ipk Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for ppp-mod-pptp:
* kernel (= 4.14.167-1-16b77c6fbb9d9192d39ab642ba67d11a)
* opkg_install_cmd: Cannot install package ppp-mod-pptp.

my version
root@Router:~# cat /proc/version
Linux version 4.14.167 (runner@fv-az50) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7976-ca47026b7d)) #0 SMP Wed Jan 29 16:06:05 2020

04.04.20202963PackagesBug ReportVery LowLowAdd support for 4G Systems XSStick W1208AllUnconfirmed Task Description

Please add Support for this LTE Stick to the OpenWRT distribution.
The device shows up as

root@GL-MT300N:~# lsusb 
...
Bus 001 Device 003: ID 2fd4:76b5  
...
root@GL-MT300N:~# 

usbmode switch can be done via:

        "messages" : [
                "55534243a069008d8000000080000606f50402527100000000000000000000",
        ],
                "2fd4:9aff": {
                        "*": {
                                "t_vendor": 12244,
                                "t_product": 30389,
                                "msg": [ 0 ]
                        }       
                }

Afterwards missing is:

echo 0x2fd4 0x76b5 > /sys/bus/usb-serial/drivers/option1/new_id

The data was taken from https://www.draisberghof.de/usb_modeswitch/

04.05.20203065PackagesBug ReportVery LowLowiptables-mod-conntrack-extra package does not include c...openwrt-19.07Unconfirmed Task Description

The iptables-mod-conntrack-extra package does not include the connrate match extension.

There’s no mention of connrate in any other packages either, so as far as I can tell it doesn’t seem to be possible to use connrate on OpenWRT.

From the iptables documentation:


connrate

This module matches the current transfer rate in a connection.
connrate [!] [from]:[to]
Match against the current connection transfer rate being within ‘from’ and ‘to’ bytes per second. When the “!” argument is used before the range, the sense of the match is inverted.


20.06.20203193PackagesBuild FailureVery LowLowofficial bird2 build on ipq806x doesn't start and has b...openwrt-19.07Unconfirmed Task Description

Hi all,

I am running bird2 on Netgear R7800 for OSPF routing but it doesn’t start. Following are error messages I got:

# bird -c /etc/bird.conf -d
Bus error

# logread
Sat Jun 20 12:24:09 2020 daemon.info bird: Started
Sat Jun 20 12:24:09 2020 kern.err kernel: [572809.062848] Alignment trap: not handling instruction f44c0a1f at [<0006bb88>]
Sat Jun 20 12:24:09 2020 kern.alert kernel: [572809.062907] Unhandled fault: alignment exception (0x801) at 0x017c9634
Sat Jun 20 12:24:09 2020 kern.alert kernel: [572809.069111] pgd = d7668000
Sat Jun 20 12:24:09 2020 kern.alert kernel: [572809.075597] [017c9634] *pgd=5c0c6835, *pte=5ad3475f, *ppte=5ad34c7f


# dmesg
[571421.877597] Alignment trap: not handling instruction f44c0a1f at [<0006bb88>]
[571421.877645] Unhandled fault: alignment exception (0x801) at 0x0111b624
[571421.883832] pgd = dc258000
[571421.890385] [0111b624] *pgd=5e63a835, *pte=5c72975f, *ppte=5c729c7f

Environment
- OpenWrt 19.07.3, r11063-85e04e9f46
- bird2 - 2.0.7-2
- target ipq806x
- model Netgear R7800

# /etc/bird.conf
log syslog all;
router id 192.168.1.1;                                                                                                                                        
protocol device {                                                                                                                                       
}                                                                                                                                                       
protocol bfd {                                                                                                                                          
}                                                                                                                                                       
protocol direct {                                                                                                                                      
        interface "br-lan";                                                                                                                             
        ipv4;                   # Connect to default IPv4 table                                                                                         
        ipv6;                   # ... and to default IPv6 table                                                                                         
}                                                                                                                                                       
                                                                                                                                                        
# The Kernel protocol is not a real routing protocol. Instead of communicating                                                                          
# with other routers in the network, it performs synchronization of BIRD                                                                                
# routing tables with the OS kernel. One instance per table.                                                                                            
protocol kernel {                                                                                                                                       
        scan time 10;                                                                                                                                   
        merge paths;                                                                                                                                    
        ipv4 {                  # Connect protocol to IPv4 table by channel                                                                             
#             table master4;    # Default IPv4 table is master4                                                                                         
#             import all;       # Import to table, default is import all                                                                                
              export all;       # Export to protocol. default is export none                                                                            
        };                                                                                                                                              
#       learn;                  # Learn alien routes from the kernel                                                                                    
#       kernel table 10;        # Kernel table to synchronize with (default: main)                                                                      
}                                                                                                                                                       
                                                                                                                                                        
# Another instance for IPv6, skipping default options                                                                                                   
protocol kernel {                                                                                                                                       
        scan time 10;                                                                                                                                   
        merge paths;                                                                                                                                    
        ipv6 { export all; };                                                                                                                           
}                                                                                                                                                       
                                                                                                                                                        
# OSPF example, both OSPFv2 and OSPFv3 are supported                                                                                                    
protocol ospf v2 ospf4 {                                                                                                                                
        ipv4 {                                                                                                                                          
        };                                                                                                                                              
        area 0 {                                                                                                                                        
                interface "br-lan" {bfd;};                                                                                                              
        };                                                                                                                                              
}

This issue can be reproduced with the latest OpenWrt release 19.07.3, but it has been there for a long time.
A custom build of bird2 package with OpenWRT SDK doesn’t have this issue.

I am not sure this is the right place to report this issue. Could anyone help with this?

25.06.20203202PackagesBug ReportVery LowLowlibnl_tiny: struct np_sock may be affected by Y2038 Pro...TrunkUnconfirmed Task Description

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

 

libnl_tiny stores time() value to sk→s_seq_expect and sk→s_seq_next (struct np_sock sk) in socket.c.
Struct members s_seq_expect and s_seq_next are both unsigned integer values, which I believe is to
overcome Y2038 Problem. Looking at git blame, this particular design choice has been made over 10 years ago.

Since many libraries and OS including gLibc and linux have already redefined time_t to signed 64 bit,
I think it is safe to redefine the members to uint64_t.

10.07.20203221PackagesBug ReportLowLowubox: validate.c: Link-Local IPv6 with interface ID not...AllNew Task Description

validate.c uses inet_pton for identifying IPv6 addresses [1], and this seems to not understand interface identifiers as used for Link-local IPv6 addresses.

Reproduce:

root@FFF-GW-Adrian:~# /sbin/validate_data host fdff::1
host - fdff::1 = true
root@FFF-GW-Adrian:~# /sbin/validate_data host fe80::1
host - fe80::1 = true
root@FFF-GW-Adrian:~# /sbin/validate_data host fe80::1%br-mesh
host - fe80::1%br-mesh = false

This is a problem practically whenever validata_data is used to check uci values.

For example, it is not possible to use a link-local address for specifying an NTP server:

https://github.com/openwrt/openwrt/blob/master/package/utils/busybox/files/sysntpd#L33

If ‘server:list(host)’ is changed to ‘server:list(string)’ there, it obviously works fine, as it’s just the validation.

[1] https://git.openwrt.org/?p=project/ubox.git;a=blob;f=validate/validate.c;h=e72b8117ecd8b680778b0f5c7637ed6546a7736b;hb=HEAD#l402

04.08.20203270PackagesBug ReportVery LowLowgcc: package seems incompatible with linker provided by...TrunkUnconfirmed Task Description

I use the gcc package to compile C code on my OpenWrt installation. Something has broken the toolchain, and it appears to be related to the binutils package that OpenWrt base provides. I receive errors such as these when I compile:

root@OpenWrt # gcc hello.c 
/usr/bin/ld: /usr/lib/gcc/x86_64-openwrt-linux-musl/7.4.0/libssp_nonshared.a(__stack_chk_fail_local.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: /usr/lib/gcc/x86_64-openwrt-linux-musl/7.4.0/libssp_nonshared.a(__stack_chk_fail_local.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: /usr/lib/gcc/x86_64-openwrt-linux-musl/7.4.0/libgcc.a(_muldi3.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: /usr/lib/gcc/x86_64-openwrt-linux-musl/7.4.0/libgcc.a(_muldi3.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: /usr/lib/gcc/x86_64-openwrt-linux-musl/7.4.0/libgcc.a(_muldi3.o): unable to initialize decompress status for section .debug_info
/usr/bin/ld: /usr/lib/gcc/x86_64-openwrt-linux-musl/7.4.0/libgcc.a(_muldi3.o): unable to initialize decompress status for section .debug_info

I was able to overcome this problem by updating binutils. I copied the version information and patches for binutils 2.32 from toolchain/binutils/ into package/devel/binutils/, and I built a newer version of the binutils package. Whereas the toolchain version of binutils provides the option to build a recent release, the package version is still 2.27.

See also https://github.com/openwrt/packages/issues/13019.


17.08.20203290PackagesBug ReportVery LowLowhostapd always sets ap_isolate to 1 no matter what the ...openwrt-19.07Unconfirmed Task Description

I have two devices that show the same problem - both TP-Link, but different models.
The problem is that the devices/clients connected to any of the wlans are always isolated no matter what the config “isolate clients” is set to.
These devices cannot ping and see each other but they can be pinged and they can ping devices from/to devices in lan.

Further more the generated /var/run/hostapd-phy0.conf and /var/run/hostapd-phy1.conf always have the ap_isolate=1

The tested devices are:

root@OpenWrt:~# ubus call system board
{
        "kernel": "4.14.180",
        "hostname": "OpenWrt",
        "system": "Qualcomm Atheros QCA9558 ver 1 rev 0",
        "model": "TP-Link Archer C7 v2",
        "board_name": "tplink,archer-c7-v2",
        "release": {
                "distribution": "OpenWrt",
                "version": "19.07.3",
                "revision": "r11063-85e04e9f46",
                "target": "ath79/generic",
                "description": "OpenWrt 19.07.3 r11063-85e04e9f46"
        }
}
root@OpenWrt:~# ubus call system board
{
        "kernel": "4.14.180",
        "hostname": "OpenWrt",
        "system": "Atheros AR9344 rev 2",
        "model": "TP-Link TL-WDR4300 v1",
        "board_name": "tplink,tl-wdr4300-v1",
        "release": {
                "distribution": "OpenWrt",
                "version": "19.07.3",
                "revision": "r11063-85e04e9f46",
                "target": "ath79/generic",
                "description": "OpenWrt 19.07.3 r11063-85e04e9f46"
        }
}

No packages have been updated manually on both devices.
Both devices has defaults sets coming with the default factory OpenWrt 19.07.3 image.
Both devices were set for their Network → Wireless → wlan0 (and wlan1) → Interface configuration → Advanced settings → Isolate clients UNCHECKED

Here is the config of one of the devices (/etc/config/wireless) and the respective generated /var/run/hostapd-phy0.conf

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option path 'platform/ahb/18100000.wmac'
	option channel 'auto'
	option country 'BG'
	option htmode 'HT20'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option key 'XXXXXX'
	option ssid 'YYYYYYYY'
	option encryption 'psk2'

Even when option isolate ‘0’ is added manually using uci not luci, and restarting the device the respective hostapd-phy0.conf remains with ap_isolate=1

driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
country_code=BG
ieee80211d=1
hw_mode=g
beacon_int=100
channel=acs_survey



ieee80211n=1
ht_coex=0
ht_capab=[LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

interface=wlan0
ctrl_interface=/var/run/hostapd
ap_isolate=1
bss_load_update_period=60
chan_util_avg_period=600
disassoc_low_ack=1
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
uapsd_advertisement_enabled=1
utf8_ssid=1
multi_ap=0
wpa_passphrase=XXXXXX
auth_algs=1
wpa=2
wpa_pairwise=CCMP
ssid=YYYYYYYY
bridge=br-lan
wpa_disable_eapol_key_retries=0
wpa_key_mgmt=WPA-PSK
okc=0
disable_pmksa_caching=1
bssid=xx:xx:xx:xx:xx:xx

My guess is that hostapd/wpad doesn’t set properly the ap_isolate according to the config.

Please let me know if you need further info.

Thanks

 


24.08.20203301PackagesBug ReportVery LowLowCannot satisfy dependency on iptables-mod-tproxyopenwrt-19.07Waiting on reporter Task Description

One example is iptables-mod-tproxy. It is available in 19.07.0, but not in 19.07.1. This causes dependency issue when installing some packages.
How to reproduce:

# opkg install shadowsocks-libev-ss-rules
Installing shadowsocks-libev-ss-rules (3.2.5-5) to root...
Downloading http://downloads.openwrt.org/releases/19.07.1/packages/aarch64_cortex-a53/packages/shadowsocks-libev-ss-rules_3.2.5-5_aarch64_cortex-a53.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for shadowsocks-libev-ss-rules:
 *      iptables-mod-tproxy
 * opkg_install_cmd: Cannot install package shadowsocks-libev-ss-rules.

I reproduced it on aarch64_coretex_a53, but I see it’s missing for other platforms like a72 and x86_64, too.

It was reported here: https://github.com/openwrt/packages/issues/11457 But was closed and the maintainer said it belongs here.

19.09.20203347PackagesBuild FailureVery LowLowlibustream: package/install file conflictsTrunkUnconfirmed Task Description

Reproduce the problem:
selecting `luci-ssl-openssl`

Collected errors:
 * check_data_file_clashes: Package libustream-openssl20200215 wants to install file /media/builds/github-openwrt/openwrt/build_dir/target-mips_24kc_musl/root-ath79/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-wolfssl20200215
 * opkg_install_cmd: Cannot install package libustream-openssl20200215.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 *      luci-proto-ppp
 * opkg_install_cmd: Cannot install package luci.
 * check_data_file_clashes: Package libustream-openssl20200215 wants to install file /media/builds/github-openwrt/openwrt/build_dir/target-mips_24kc_musl/root-ath79/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-wolfssl20200215
 * opkg_install_cmd: Cannot install package luci-ssl-openssl.
pts (1.4.0-9) to root...
make[1]: *** [package/Makefile:68: package/install] Error 255
make[1]: Leaving directory '/media/builds/github-openwrt/openwrt'
make: *** [/media/builds/github-openwrt/openwrt/include/toplevel.mk:236: package/install] Error 2
Command exited with non-zero status 2
19.09.20203348PackagesBuild FailureVery LowLowlibustream: package/install file conflictsTrunkUnconfirmed Task Description

Reproduce the problem:
selecting `luci-ssl-openssl`

Collected errors:
 * check_data_file_clashes: Package libustream-openssl20200215 wants to install file /media/builds/github-openwrt/openwrt/build_dir/target-mips_24kc_musl/root-ath79/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-wolfssl20200215
 * opkg_install_cmd: Cannot install package libustream-openssl20200215.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 *      luci-proto-ppp
 * opkg_install_cmd: Cannot install package luci.
 * check_data_file_clashes: Package libustream-openssl20200215 wants to install file /media/builds/github-openwrt/openwrt/build_dir/target-mips_24kc_musl/root-ath79/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-wolfssl20200215
 * opkg_install_cmd: Cannot install package luci-ssl-openssl.
pts (1.4.0-9) to root...
make[1]: *** [package/Makefile:68: package/install] Error 255
make[1]: Leaving directory '/media/builds/github-openwrt/openwrt'
make: *** [/media/builds/github-openwrt/openwrt/include/toplevel.mk:236: package/install] Error 2
Command exited with non-zero status 2
19.09.20203349PackagesBuild FailureVery LowLowlibustream: package/install file conflictsTrunkUnconfirmed Task Description

Reproduce the problem:
selecting `luci-ssl-openssl`

Collected errors:
 * check_data_file_clashes: Package libustream-openssl20200215 wants to install file /media/builds/github-openwrt/openwrt/build_dir/target-mips_24kc_musl/root-ath79/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-wolfssl20200215
 * opkg_install_cmd: Cannot install package libustream-openssl20200215.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 *      luci-proto-ppp
 * opkg_install_cmd: Cannot install package luci.
 * check_data_file_clashes: Package libustream-openssl20200215 wants to install file /media/builds/github-openwrt/openwrt/build_dir/target-mips_24kc_musl/root-ath79/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-wolfssl20200215
 * opkg_install_cmd: Cannot install package luci-ssl-openssl.
pts (1.4.0-9) to root...
make[1]: *** [package/Makefile:68: package/install] Error 255
make[1]: Leaving directory '/media/builds/github-openwrt/openwrt'
make: *** [/media/builds/github-openwrt/openwrt/include/toplevel.mk:236: package/install] Error 2
Command exited with non-zero status 2
21.09.20203355PackagesBug ReportVery LowLowUMDNS: does not start on master with seccomp TrunkUnconfirmed Task Description

UMDNS does not start on master with seccomp
this has bee tested on ramips (dir878 and redmiac2100)
if i comment out
# procd_set_param seccomp /etc/seccomp/umdns.json
from /etc/init.d/umdns

it works

23.09.20203357PackagesBug ReportVery LowLowcollectd-mod-openvpn: can't enable pluginTrunkUnconfirmed Task Description

See the screenshot. Unlike other plugins, this one is missing “Enable this plugin” checkbox, and therefore, cannot be enabled via UI.

23.10.20203403PackagesBug ReportVery LowLowkmod-ath9k: Please enable "Support chips used in PC OEM...openwrt-19.07Unconfirmed Task Description

- Happens on all x86 targets
- Happens with trunk and 19.07.4
- To reproduce, run ip a in any x86 machine with an ath9k-compatible (mini-)PCIE wifi card installed. You will note that no relevant wireless interface is found.

Although this issue concerns the kmod-ath9k driver, it is not about the code itself; rather, the build system and the packaged modules.

Recently I tried to run OpenWRT on x86_64 machine that has an AR9462 mini-pcie wifi card installed.
Although lspci detected the card, no drivers were loaded for it, and the wireless interface does not show up with the ip command, even with the ath9k drivers installed.

I have found out that this is because support for PC OEM cards are not enabled by default. As a result, I had to build my own copy of OpenWRT from scratch with that option specifically turned on.
And even then, with matching versions (19.07.4), my install of OpenWRT complained that the package built had a different kernel version. I was unsure why, but I wasn’t interested in finding out and I simply forced the install.

I believe that the support for PC OEM cards for ath9k should be turned on by default for the x86 builds of the driver. People running OpenWRT on x86 are unlikely to run into serious space constraints.
Kindly consider my suggestion.

13.11.20203447PackagesBug ReportVery LowLowMissing kmods for mt7621 in repoTrunkUnconfirmed Task Description

*** Failed to download the package list from https://downloads.openwrt.org/snaps hots/targets/ramips/mt7621/kmods/5.4.75-1-878d1c290479417154653dd2ca7e6dbd/Packa ges.gz

30.11.20203483PackagesBug ReportVery LowLowgcc old ABITrunkUnconfirmed Task Description

Package gcc from feeds has wrong option in Makefile

–with-default-libstdcxx-abi=gcc4-compatible

with old abi g++ cant link to existing libs. Without it gcc works as expected
Pls remove this option.

01.12.20203485PackagesBug ReportVery LowLowlogd: log starts up before networking, causing remote l...openwrt-19.07Unconfirmed Task Description

# grep PRETTY_NAME /etc/os-release
PRETTY_NAME=”OpenWrt 19.07.4”

rc.d contains:

K10ddns → ../init.d/ddns
...
K99socat → ../init.d/socat
S00sysfixtime → ../init.d/sysfixtime
S00urngd → ../init.d/urngd
S01haveged → ../init.d/haveged
S10boot → ../init.d/boot
S10system → ../init.d/system
S11sysctl → ../init.d/sysctl
S12log → ../init.d/log
S12rpcd → ../init.d/rpcd
S19dnsmasq → ../init.d/dnsmasq
S19dropbear → ../init.d/dropbear
S19firewall → ../init.d/firewall
S20network → ../init.d/network
...

note log is S12, network is S20

there’s a comment at the top of the log rc script which suggests this is the wrong order:

# cat /etc/init.d/log
#!/bin/sh /etc/rc.common
# Copyright (C) 2013 OpenWrt.org

# start after and stop before networking
START=12
STOP=89
PIDCOUNT=0

note: “start after ... networking”

04.12.20203488PackagesBug ReportVery LowLowmvebu: kexec-tools gcc10 compile fixTrunkUnconfirmed Task Description

kexec-tools fails to compile when building latest master from git and using GCC 10. Multiple definitions and one declaration of a debug variable named my_debug for PPC64 that spills over into arm.

— a/kexec/fs2dt.h
+++ b/kexec/fs2dt.h
@@ -30,7 +30,7 @@ extern struct bootblock bb[1];

/* Used for enabling printing message from purgatory code

  • Only has implemented for PPC64 */

-int my_debug;
+extern int my_debug;
extern int dt_no_old_root;

void reserve(unsigned long long where, unsigned long long length);

 


05.12.20203491PackagesBug ReportVery LowLowumDNS fails to compile with GCC10 possible CVETrunkUnconfirmed Task Description

A warning (treated as error) is emitted from GCC10 when compiling umDNS (object at ‘b’ is out of the bounds). This could also turn into a CVE.

[ 40%] Building C object CMakeFiles/umdns-lib.dir/service.c.o
/home/ByteEnable/temp/openwrt-master/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-10.2.0_musl_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc   -Os -pipe  -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98=umdns-2020-10-26-59e4fc98 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/ByteEnable/temp/openwrt-master/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include -DNDEBUG   -Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -o CMakeFiles/umdns-lib.dir/service.c.o -c /home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98/service.c
/home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98/service.c: In function 'service_load_blob':
/home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98/service.c:242:10: error: 'strncpy' offset 6 from the object at 'b' is out of the bounds of referenced subobject 'name' with type 'uint8_t[]' {aka 'unsigned char[]'} at offset 6 [-Werror=array-bounds]
  242 |  s->id = strncpy(d_id, blobmsg_name(b), n);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ByteEnable/temp/openwrt-master/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include/libubus.h:23,
                 from /home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98/service.c:23:
/home/ByteEnable/temp/openwrt-master/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include/libubox/blobmsg.h:43:10: note: subobject 'name' declared here
   43 |  uint8_t name[];
      |          ^~~~
cc1: all warnings being treated as errors
make[6]: *** [CMakeFiles/umdns-lib.dir/build.make:121: CMakeFiles/umdns-lib.dir/service.c.o] Error 1
make[6]: Leaving directory '/home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98'
make[5]: *** [CMakeFiles/Makefile2:124: CMakeFiles/umdns-lib.dir/all] Error 2
make[5]: Leaving directory '/home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98'
make[4]: *** [Makefile:149: all] Error 2
make[4]: Leaving directory '/home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98'
make[3]: *** [Makefile:50: /home/ByteEnable/temp/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/umdns-2020-10-26-59e4fc98/.built] Error 2
make[3]: Leaving directory '/home/ByteEnable/temp/openwrt-master/package/network/services/umdns'
time: package/network/services/umdns/compile#0.64#0.16#0.00
    ERROR: package/network/services/umdns failed to build.
make[2]: *** [package/Makefile:114: package/network/services/umdns/compile] Error 1
make[2]: Leaving directory '/home/ByteEnable/temp/openwrt-master'
make[1]: *** [package/Makefile:108: /home/ByteEnable/temp/openwrt-master/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ByteEnable/temp/openwrt-master'
make: *** [/home/ByteEnable/temp/openwrt-master/include/toplevel.mk:242: world] Error 2
09.12.20203497PackagesBug ReportVery LowLowipip: restart failed after modifying configAllUnconfirmed Task Description

After modifying config, e.g. change “peeraddr” option, the interface can’t restart. Must delete interface manually.
One solution:
ifdown tunnel
ip link delete ipip-tunnel
ifup tunnel

The problem can be reproduced in OpenWrt 19.07.4, and may be in all version. Because there have been no major updates to “openwrt/package/network/config/ipip/files/ipip.sh” file in 4 years.

02.01.20213554PackagesBug ReportVery LowLowuhttpd non-English directory displays garbled character...TrunkUnconfirmed Task Description

uhttpd non-English directory displays garbled characters。

Modify uh_file_dirlist function

ustream_printf(cl→us, “Content-Type: text/html\r\n\r\n”);

ustream_printf(cl→us, “Content-Type: text/html; charset=utf-8\r\n\r\n”);

This way all languages can be displayed perfectly!

03.03.2017591OtherFeature RequestVery LowLowInclude branch info in subject from 'lede-commits'AllUnconfirmed Task Description

Please include the branch being committed to as part of the subject. As it currently stands emails are received:

[source] ubox: update to the latest version
[source] bcm53xx: include Broadcom PHY driver in the kernel

However there’s no clue in the subject that the ubox commit is for ‘master’ (and of interest to me) whilst the ‘bcm53xx’ is a commit to ‘17.01’ (and of much less interest to me)

It’s driving me (even more) insane :-)

17.07.2017911OtherFeature RequestVery LowLowProblem with login into private git reposAllNew Task Description

I am not able to use packages from my private git repos which needs login. The system during the build process don’t ask me for login as before.

Here is the verbose log output:

make[3]: Leaving directory `/home/flowtester/caes/platform/package/base-files'
make[3]: Entering directory `/home/flowtester/caes/platform/package-bumblebee/packages/libdevereader'
mkdir -p /home/flowtester/caes/platform/dl
SHELL= flock /home/flowtester/caes/platform/tmp/.libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860.tar.gz.flock -c '          echo "Checking out files from the git repository..."; mkdir -p /home/flowtester/caes/platform/tmp/dl && cd /home/flowtester/caes/platform/tmp/dl && rm -rf libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860 && [ \! -d libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860 ] && git clone  https://redmine.develict.com/git/devereader libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860 && (cd libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860 && git checkout daa94e0fad44a000892570665e6c792fd9cad860 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860 && git log -1 --format='\''@%ct'\''` && rm -rf libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860/.git &&  tar --numeric-owner --owner=0 --group=0 --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860 |     gzip -nc > /home/flowtester/caes/platform/tmp/dl/libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860.tar.gz && mv /home/flowtester/caes/platform/tmp/dl/libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860.tar.gz /home/flowtester/caes/platform/dl/ && rm -rf libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860;     '
Checking out files from the git repository...
Cloning into 'libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860'...
fatal: Authentication failed for 'https://redmine.develict.com/git/devereader/'
make[3]: *** [/home/flowtester/caes/platform/dl/libdevereader-1.1.7-daa94e0fad44a000892570665e6c792fd9cad860.tar.gz] Error 128
make[3]: Leaving directory `/home/flowtester/caes/platform/package-bumblebee/packages/libdevereader'
make[2]: *** [package/feeds/bumblebee/libdevereader/compile] Error 2
make[2]: Leaving directory `/home/flowtester/caes/platform'
make[1]: *** [/home/flowtester/caes/platform/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/flowtester/caes/platform'
make: *** [world] Error 2

If I try it manually from cli everythings works but not during the prepare process ....


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

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

 

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

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

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

07.04.20181473OtherBug ReportVery LowLowUSB connects then disconnects later in bootTrunkWaiting on reporter 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
14.06.20192320OtherBug ReportVery LowLowu-Boot OpenWrt 18.06.2 on sama5d31 Unimplemented compre...TrunkUnconfirmed Task Description

Hi,
after building 18.06.2 OpenWrt version and his nand flash u-boot (U-Boot 2017.03-linux4sam_5.8 (Jan 30 2019 - 12:21:02 +0000)) when u-boot try to uncompress lzma kernel image the following error is reached

 

Uncompressing Kernel Image ... Unimplemented compression type 3

the log:

AT91Bootstrap 3.8.10 (Tue Jun 11 17:58:40 UTC 2019)

NAND: ONFI flash detected
NAND: Manufacturer ID: 0x2c Chip ID: 0xda
NAND: Page Bytes: 2048, Spare Bytes: 64
NAND: ECC Correctability Bits: 4, ECC Sector Bytes: 512
NAND: Disable On-Die ECC
NAND: Initialize PMECC params, cap: 4, sector: 512
NAND: Image: Copy 0xa0000 bytes from 0×40000 to 0x26f00000
NAND: Done to load image
<debug_uart>

U-Boot 2017.03-linux4sam_5.8 (Jan 30 2019 - 12:21:02 +0000)

CPU: SAMA5D31
Crystal frequency: 12 MHz CPU clock : 528 MHz Master clock : 132 MHz DRAM: 256 MiB
NAND: 256 MiB
MMC: Atmel mci: 0, Atmel mci: 1
In: serial@ffffee00
Out: serial@ffffee00
Err: serial@ffffee00
Net:
Error: ethernet@f0028000 address not set.
No ethernet found.
Hit any key to stop autoboot: 0

NAND read: device 0 offset 0×180000, size 0×80000 524288 bytes read: OK

NAND read: device 0 offset 0×200000, size 0×600000 6291456 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...

 Image Name:   ARM OpenWrt Linux-4.9.152
 Image Type:   ARM Linux Kernel Image (lzma compressed)
 Data Size:    3016433 Bytes = 2.9 MiB
 Load Address: 20008000
 Entry Point:  20008000
 Verifying Checksum ... OK

## Flattened Device Tree blob at 21000000

 Booting using the fdt blob at 0x21000000
 Uncompressing Kernel Image ... Unimplemented compression type 3

Checking into u-boot (make menuconfig) seems that lzma cannot be set , only LZ4 is provided.

Also the option to change compression type of the kernel do not work. I try to switch from default (gzip) to LZ4 but kernel uimage is always lzma compressed.

Could you provide some hint to unlock the situation ?

Another strange things is :

Error: ethernet@f0028000 address not set.
No ethernet found.

f0028000 is memory address of GMAC that is not provided in sama5d31 SoC but the curious is the next No ethernet found.

Does it mean that nor EMAC was found ?

Thanks in advance
Best
Fabio


21.10.20171093KernelBug ReportVery LowLowmac80211, PKG_VERSION:=2017-10-06 - kernel.warnTrunkUnconfirmed Task Description

Supply the following if possible:
- Device problem occurs on
Asus RT-AC58U
- Software versions of LEDE release, packages, etc.
Trunk , custom build
- Steps to reproduce
Just use it with 5GHz wlan.

[  394.848355] ------------[ cut here ]------------
[  394.848609] WARNING: CPU: 0 PID: 1294 at backports-2017-10-06/net/wireless/util.c:1143 cfg80211_calculate_bitrate+0x14c/0x1f4 [cfg80211]
[  394.852222] invalid rate bw=2, mcs=6, nss=1
[  394.864381] Modules linked in: pppoe nf_conntrack_ipv6 l2tp_ppp iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT pptp pppox ppp_mppe ppp_async nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt fuse 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 pppoatm ppp_generic slhc ip_gre gre l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel tun vfat fat cifs br2684 atm nls_utf8 nls_iso8859_1 nls_cp437
[  394.938351]  sha1_generic md5 md4 cmac usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_of_simple ohci_platform ohci_hcd phy_qca_baldur phy_qca_uniphy phy_qcom_dwc3 ahci ehci_platform sd_mod ahci_platform libahci_platform libahci libata scsi_mod ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache exfat crc32c_generic
[  394.966584] CPU: 0 PID: 1294 Comm: luci Not tainted 4.9.57 #0
[  394.966833] Hardware name: Generic DT based system
[  394.972631] [<c0215670>] (unwind_backtrace) from [<c0211f1c>] (show_stack+0x10/0x14)
[  394.977298] [<c0211f1c>] (show_stack) from [<c0398708>] (dump_stack+0x7c/0x9c)
[  394.985193] [<c0398708>] (dump_stack) from [<c021d864>] (__warn+0xbc/0xec)
[  394.992222] [<c021d864>] (__warn) from [<c021d8c8>] (warn_slowpath_fmt+0x34/0x44)
[  394.999190] [<c021d8c8>] (warn_slowpath_fmt) from [<bf246f98>] (cfg80211_calculate_bitrate+0x14c/0x1f4 [cfg80211])
[  395.006862] [<bf246f98>] (cfg80211_calculate_bitrate [cfg80211]) from [<bf26b52c>] (nl80211_put_sta_rate+0x48/0x1dc [cfg80211])
[  395.017082] [<bf26b52c>] (nl80211_put_sta_rate [cfg80211]) from [<bf25928c>] (nl80211_set_interface+0x6c0/0xd38 [cfg80211])
[  395.028433] [<bf25928c>] (nl80211_set_interface [cfg80211]) from [<bf25e64c>] (nl80211_dump_station+0xec/0x110 [cfg80211])
[  395.039467] [<bf25e64c>] (nl80211_dump_station [cfg80211]) from [<c0528250>] (genl_lock_dumpit+0x24/0x34)
[  395.050481] [<c0528250>] (genl_lock_dumpit) from [<c0525eb0>] (netlink_dump+0xe0/0x250)
[  395.060108] [<c0525eb0>] (netlink_dump) from [<c05263f0>] (__netlink_dump_start+0xdc/0x184)
[  395.067922] [<c05263f0>] (__netlink_dump_start) from [<c0528aec>] (genl_rcv_msg+0x154/0x310)
[  395.076256] [<c0528aec>] (genl_rcv_msg) from [<c0527fbc>] (netlink_rcv_skb+0x58/0xb4)
[  395.084933] [<c0527fbc>] (netlink_rcv_skb) from [<c0528984>] (genl_rcv+0x20/0x34)
[  395.092657] [<c0528984>] (genl_rcv) from [<c05279c0>] (netlink_unicast+0x138/0x1fc)
[  395.100126] [<c05279c0>] (netlink_unicast) from [<c0527e2c>] (netlink_sendmsg+0x2f0/0x310)
[  395.107591] [<c0527e2c>] (netlink_sendmsg) from [<c04e4400>] (sock_sendmsg+0x14/0x24)
[  395.115922] [<c04e4400>] (sock_sendmsg) from [<c04e4990>] (___sys_sendmsg+0x184/0x228)
[  395.123822] [<c04e4990>] (___sys_sendmsg) from [<c04e5728>] (__sys_sendmsg+0x40/0x64)
[  395.131635] [<c04e5728>] (__sys_sendmsg) from [<c020ebc0>] (ret_fast_syscall+0x0/0x3c)
[  395.139886] ---[ end trace 30f0f2b80040b4a7 ]---
 


22.11.20171183KernelFeature RequestVery LowLowAdd congestion control for low priority flowsAllUnconfirmed Task Description

Hello,

It would be nice to include package for alternative congestion control mechanisms.

Especially some application can use tcp_lp (low priroriry) to optimise traffic.
Seems a start altought i need to document myself a bit more concerning ledbat state on linux.

Cedric


18.01.20181282KernelBuild FailureVery LowLow"CONFIG_STRIP_KERNEL_EXPORTS" breaks kernel compilation...TrunkUnconfirmed Task Description

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

  • Reproducing

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

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

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

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

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

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

As a result, kernel compilation fails.

  • Sidenotes:

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

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

01.02.20181319KernelBug ReportVery LowLowSupport of PC Engines APU1TrunkUnconfirmed Task Description

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

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

Thanks for answer, Zbynek Kocur


12.02.20181352KernelBug ReportVery LowLowar71xx/mikrotik: Link change detection on switch ports ...TrunkUnconfirmed Task Description

Link change detection on switch ports no longer working for some MikroTik devices, such as:
- RB493G (AR8316 switch)
- RB951G-2HnD (AR8327 switch)

Can’t tell if this is specific to MikroTik devices or if it also affects other AR8xxx switch based ones.
This was working in the past (old OpenWrt r46741), but I can’t tell when or how long it stopped working.

[  157.486354] Atheros AR8216/AR8236/AR8316 gpio:00: Port 4 is down
[  161.505826] Atheros AR8216/AR8236/AR8316 gpio:00: Port 4 is up
[  240.890350] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is down
[  242.900237] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is up

Initial commit for link change detection support:
https://github.com/openwrt/openwrt/commit/a1fba9dfbe628b171ac789510aca233178fe7d85

14.02.20181362KernelBug ReportVery LowLowkernel hangs unexpectedly on mt7621TrunkUnconfirmed Task Description

Usually system just hangs with no messages in the log. I’ve tried to enable log writing to external USB flash, but the log just stops in the time when the issue occurs.
I have no idea how to reproduce it. It could happen 3-5 times a day, but sometimes systems works for a week with no issues.

I’ve tried a lot of snapshot builds since 20180111, but the issue still exists.

The current version installed:
Snapshot 20180212
Hardware: Xiaomi Router 3G
ramips-mt7621

opkg list:
base-files - 184-r6069-a464fba
busybox - 1.27.2-3
dnsmasq - 2.78-10
dropbear - 2017.75-5
firewall - 2017-11-07-c4309372-2
fstools - 2018-02-11-3d239815-1
fwtool - 1
hostapd-common - 2017-08-24-c2d4f2eb-6
ip6tables - 1.6.1-2
iptables - 1.6.1-2
iw - 4.9-1
jshn - 2018-02-08-bb0c830b-1
jsonfilter - 2016-07-02-dea067ad-1
kernel - 4.9.77-1-2b01b81f4010dbad63c4aa03d212c19b
kmod-cfg80211 - 4.9.77+2017-11-01-3
kmod-gpio-button-hotplug - 4.9.77-2
kmod-ip6tables - 4.9.77-1
kmod-ipt-conntrack - 4.9.77-1
kmod-ipt-core - 4.9.77-1
kmod-ipt-nat - 4.9.77-1
kmod-leds-gpio - 4.9.77-1
kmod-lib-crc-ccitt - 4.9.77-1
kmod-mac80211 - 4.9.77+2017-11-01-3
kmod-mt76-core - 4.9.77+2018-02-09-246d548b-1
kmod-mt7603 - 4.9.77+2018-02-09-246d548b-1
kmod-mt76x2 - 4.9.77+2018-02-09-246d548b-1
kmod-nf-conntrack - 4.9.77-1
kmod-nf-conntrack6 - 4.9.77-1
kmod-nf-ipt - 4.9.77-1
kmod-nf-ipt6 - 4.9.77-1
kmod-nf-nat - 4.9.77-1
kmod-nf-reject - 4.9.77-1
kmod-nf-reject6 - 4.9.77-1
kmod-nls-base - 4.9.77-1
kmod-ppp - 4.9.77-1
kmod-pppoe - 4.9.77-1
kmod-pppox - 4.9.77-1
kmod-slhc - 4.9.77-1
kmod-tun - 4.9.77-1
kmod-usb-core - 4.9.77-1
kmod-usb-ledtrig-usbport - 4.9.77-1
kmod-usb3 - 4.9.77-1
lede-keyring - 2017-01-20-a50b7529-1
libblobmsg-json - 2018-02-08-bb0c830b-1
libc - 1.1.18-1
libgcc - 5.5.0-1
libip4tc - 1.6.1-2
libip6tc - 1.6.1-2
libiwinfo - 2018-01-16-5a5e21b1-1
libiwinfo-lua - 2018-01-16-5a5e21b1-1
libjson-c - 0.12.1-1
libjson-script - 2018-02-08-bb0c830b-1
liblua - 5.1.5-1
liblzo - 2.10-1
libmbedtls - 2.6.0-1
libnl-tiny - 0.1-5
libopenssl - 1.0.2n-1
libpthread - 1.1.18-1
libubox - 2018-02-08-bb0c830b-1
libubus - 2018-01-16-5bae22eb-1
libubus-lua - 2018-01-16-5bae22eb-1
libuci - 2018-01-01-5beb95da-1
libuci-lua - 2018-01-01-5beb95da-1
libuclient - 2017-11-02-4b87d831-1
libustream-mbedtls - 2016-07-02-ec80adaa-2
libxtables - 1.6.1-2
logd - 2017-11-13-e7a63fba-1
lua - 5.1.5-1
luci - git-18.039.58622-76f9f5e-1
luci-app-firewall - git-18.039.58622-76f9f5e-1
luci-app-openvpn - git-18.039.58622-76f9f5e-1
luci-base - git-18.039.58622-76f9f5e-1
luci-lib-ip - git-18.039.58622-76f9f5e-1
luci-lib-jsonc - git-18.039.58622-76f9f5e-1
luci-lib-nixio - git-18.039.58622-76f9f5e-1
luci-mod-admin-full - git-18.039.58622-76f9f5e-1
luci-proto-ipv6 - git-18.039.58622-76f9f5e-1
luci-proto-ppp - git-18.039.58622-76f9f5e-1
luci-ssl - git-18.039.58622-76f9f5e-1
luci-theme-bootstrap - git-18.039.58622-76f9f5e-1
luci-theme-material - git-18.039.58622-76f9f5e-1
mtd - 21
netifd - 2018-02-05-1be329c6-3
odhcp6c - 2017-09-05-1f93bd4c-8
odhcpd-ipv6only - 1.3-1
openssl-util - 1.0.2n-1
openvpn-easy-rsa - 3.0.1-1
openvpn-openssl - 2.4.4-2
opkg - 2017-12-07-3b417b9f-2
ppp - 2.4.7-12
ppp-mod-pppoe - 2.4.7-12
procd - 2018-01-23-653629f1-2
px5g-mbedtls - 4
rpcd - 2017-12-07-cfe1e75c-1
rpcd-mod-rrdns - 20170710
swconfig - 11
ubi-utils - 1.5.2-1
uboot-envtools - 2015.10-1
ubox - 2017-11-13-e7a63fba-1
ubus - 2018-01-16-5bae22eb-1
ubusd - 2018-01-16-5bae22eb-1
uci - 2018-01-01-5beb95da-1
uclient-fetch - 2017-11-02-4b87d831-1
uhttpd - 2017-11-04-a235636a-1
uhttpd-mod-ubus - 2017-11-04-a235636a-1
usign - 2015-07-04-ef641914-1
wireless-regdb - 2017-10-20-4343d359
wpad-mini - 2017-08-24-c2d4f2eb-6
zlib - 1.2.11-2

The only strange think I found - some amount of dropped packets on ethernet interface connected to local network.

I think it’s related to local network traffic somehow. I put the anoter router in this network and both of the routers hang the same time once.
The second router was Netgear wnr1000v2 based on ar71xx.

I’ve also tried to change the Xiaomi router with different one but same model. Nothing changed.

Twice I found the following kernel warnin in the log:

Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 416.948299] ————[ cut here ]———— Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 416.953073] WARNING: CPU: 0 PID: 0 at backports-2017-11-01/net/mac80211/rx.c:4316 ieee80211_rx_napi+0x1a4/0×964 [mac80211]
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 416.964092] Rate marked as a VHT rate but data is invalid: MCS: 126, NSS: 0
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 416.971084] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 mt76x2e mt7603e mt76 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ledtrig_usbport ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables tun leds_gpio xhci_mtk xhci_plat_hcd xhci_pci xhci_hcd gpio_button_hotplug usbcore nls_base usb_common
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.036194] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.77 #0
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.042086] Stack : 00000000 00000000 80557b4a 00000033 8040fc04 00000000 00000000 80550000
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.050434] 804f62bc 804f5ea7 8048cd04 00000000 00000000 80553824 00000004 0000099e
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.058779] 00000000 8006ab98 00000001 80550000 804fc004 804fc008 80491910 8fc0dc7c
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.067122] 00000003 800a7a50 00000004 0000099e 00000000 00000000 00000002 00c0dc7c
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.075465] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.083808] ...
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.086244] Call Trace:
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.088706] [<8000f714>] show_stack+0×54/0×88 Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.093048] [<801e5d9c>] dump_stack+0x8c/0xd0
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.097384] [<8002adc4>] __warn+0xe4/0×118 Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.101462] [<8002ae28>] warn_slowpath_fmt+0×30/0x3c
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.106535] [<8ec25c7c>] ieee80211_rx_napi+0x1a4/0×964 [mac80211]
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.112640] [<8f2d9b78>] mt76_rx_complete+0x18c/0×278 [mt76]
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.118278] [<8f2d9e24>] mt76_rx_poll_complete+0x1c0/0×260 [mt76]
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.124346] [<8f2d8e64>] mt76_dma_attach+0xb94/0xcc0 [mt76]
Wed Feb 14 15:36:51 2018 kern.warn kernel: [ 417.130010] —[ end trace 2c3430e855d3296c ]—

Is there any possibility to find out what happens with the kernel. The sysctl properties set to reboot it in 3 seconds on panic, but it’s not rebooting, just staying in this state.

Thanks for advance for any helpful tips.

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.

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

16.05.20181549KernelBug ReportVery LowLowkmod-crypto-xts is loaded but not usableTrunkUnconfirmed Task Description

kmod-crypto-xts:

 xts module is loaded (appears in lsmod) but is not usable (does not appear in /proc/crypto)

device:

openwrt-ramips-mt7621-device-gb-pc1

versions:

 OpenWrt 18.06-SNAPSHOT r6909-dc7487885e

lsmod:

ahci                   14208  0 
authenc                 3643  0 
btrfs                1007310  0 
crc_ccitt               1067  1 ppp_async
crc32c_generic          1456  2 
cryptodev              32034  0 
ctr                     3280  0 
dax                     9026  1 dm_mod
dm_crypt               24608  0 
dm_log                  7905  2 dm_mirror,dm_region_hash
dm_mirror              12464  0 
dm_mod                 88120  3 dm_crypt,dm_mirror,dm_log
dm_region_hash          7508  1 dm_mirror
drbg                   17456  0 
gf128mul                6782  0 
gpio_button_hotplug     6512  0 
hmac                    2576  0 
ip_tables              10509  3 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             10241  2 ip6table_mangle,ip6table_filter
ip6t_REJECT             1104  2 
ip6table_filter          720  1 
ip6table_mangle         1232  0 
ipt_MASQUERADE           752  1 
ipt_REJECT              1040  2 
iptable_filter           720  1 
iptable_mangle           976  0 
iptable_nat              784  1 
jitterentropy_rng       7448  0 
leds_gpio               2992  0 
libahci                18515  1 ahci
libata                147133  2 ahci,libahci
libcrc32c                695  0 
mmc_block              22374  0 
mmc_core               85661  2 mmc_block,mtk_sd
mtk_sd                 20320  0 
nf_conntrack           62792 12 nf_conntrack_ipv6,ipt_MASQUERADE,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_flow_table,nf_conntrack_rtcache
nf_conntrack_ipv4       4464 11 
nf_conntrack_ipv6       4672  5 
nf_conntrack_rtcache    2800  0 
nf_defrag_ipv4          1078  1 nf_conntrack_ipv4
nf_defrag_ipv6         13358  1 nf_conntrack_ipv6
nf_flow_table          13500  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw        2336  1 
nf_log_common           2767  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3536  0 
nf_log_ipv6             4208  0 
nf_nat                 13611  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             3473  1 iptable_nat
nf_nat_masquerade_ipv4    1660  1 ipt_MASQUERADE
nf_nat_redirect         1531  1 xt_REDIRECT
nf_reject_ipv4          2179  1 ipt_REJECT
nf_reject_ipv6          2568  1 ip6t_REJECT
nls_base                5456  2 nls_utf8,usbcore
nls_utf8                 912  0 
ppp_async               7136  0 
ppp_generic            23138  3 pppoe,ppp_async,pppox
pppoe                   8656  0 
pppox                   1418  1 pppoe
raid6_pq               86832  1 btrfs
scsi_mod               93234  3 usb_storage,libata,sd_mod
sd_mod                 29600  0 
seqiv                   1872  0 
sha256_generic         10489  0 
slhc                    5275  1 ppp_generic
usb_common              2583  1 usbcore
usb_storage            39579  0 
usbcore               134429  5 usb_storage,xhci_mtk,xhci_plat_hcd,xhci_pci,xhci_hcd
x_tables               14159 23 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xhci_hcd               92041  3 xhci_mtk,xhci_plat_hcd,xhci_pci
xhci_mtk                4432  0 
xhci_pci                2832  0 
xhci_plat_hcd           5584  0 
xor                     6331  1 btrfs
xt_FLOWOFFLOAD          2592  0 
xt_LOG                   848  0 
xt_REDIRECT              784  0 
xt_TCPMSS               2864  0 
xt_comment               560119 
xt_conntrack            2384 14 
xt_limit                1264 20 
xt_mac                   688  0 
xt_mark                  752  0 
xt_multiport            1360  0 
xt_nat                  1616  0 
xt_state                 784  0 
xt_tcpudp               1872  8 
xt_time                 1840  0 
xts                     5066  0 
xxhash                  8139  2 zstd_decompress,zstd_compress
zstd_compress         156106  1 btrfs
zstd_decompress        58732  1 btrfs

/proc/crypto:

<code>name         : sha224

driver : sha224-generic
module : sha256_generic
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 28

name : sha256
driver : sha256-generic
module : sha256_generic
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 32

name : jitterentropy_rng
driver : jitterentropy_rng
module : jitterentropy_rng
priority : 100
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha256
module : drbg
priority : 207
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha512
module : drbg
priority : 206
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha384
module : drbg
priority : 205
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_nopr_hmac_sha1
module : drbg
priority : 204
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha256
module : drbg
priority : 203
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha512
module : drbg
priority : 202
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha384
module : drbg
priority : 201
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : stdrng
driver : drbg_pr_hmac_sha1
module : drbg
priority : 200
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0

name : crc32c
driver : crc32c-generic
module : crc32c_generic
priority : 100
refcnt : 3
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 4

name : lzo
driver : lzo-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp

name : lzo
driver : lzo-generic
module : kernel
priority : 0
refcnt : 2
selftest : passed
internal : no
type : compression

name : zlib-deflate
driver : zlib-deflate-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp

name : deflate
driver : deflate-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp

name : deflate
driver : deflate-generic
module : kernel
priority : 0
refcnt : 2
selftest : passed
internal : no
type : compression

name : ecb(arc4)
driver : ecb(arc4)-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : blkcipher
blocksize : 1
min keysize : 1
max keysize : 256
ivsize : 0
geniv : <default>

name : arc4
driver : arc4-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : cipher
blocksize : 1
min keysize : 1
max keysize : 256

name : aes
driver : aes-generic
module : kernel
priority : 100
refcnt : 2
selftest : passed
internal : no
type : cipher
blocksize : 16
min keysize : 16
max keysize : 32

name : digest_null
driver : digest_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 0

name : compress_null
driver : compress_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : compression

name : ecb(cipher_null)
driver : ecb-cipher_null
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : blkcipher
blocksize : 1
min keysize : 0
max keysize : 0
ivsize : 0
geniv : <default>

name : cipher_null
driver : cipher_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : cipher
blocksize : 1
min keysize : 0
max keysize : 0</code>

04.07.20181630KernelBug ReportVery LowLowmt7621: Unhandled kernel unaligned access (build_skb+0x...TrunkUnconfirmed Task Description

Device problem occurs on: Newifi D1, MT7621
Software versions of OpenWrt/LEDE release: Openwrt Trunk r7313
Steps to reproduce:
I was downloading some blocklists and adding them to ipset lists, then the error occurred.


17.08.20181790KernelBug ReportVery LowLowStability issue remains using mt7612e as WWAN (kernel o...TrunkUnconfirmed Task Description

Device problem occurs on: Newifi D1
Software versions of OpenWrt/LEDE release: r7844
Steps to reproduce:
The issue tends to happen when many devices are using Wi-Fi (night times), but not specifically connected to the hotspot that my router does.
Please see the crashlog attached for more information.

 


30.08.20181825KernelFeature RequestVery LowLowath79 cannot support any responsive partition table sch...TrunkUnconfirmed Task Description

Currently in ath79 the partition table are all defined as fixed partition table in device tree, instead of detecting it dynamically in the kernel.

This makes hardware modding not possible except with the firmware patched (which means that the firmware will thus receive no official support from OpenWRT).

In ar71xx, at least for TP-Link devices, we use some auto-detecting partition table driver to decide the partition table, and usually it can well suite modded hardware.

23.01.20192078KernelBug ReportVery LowLowtty noisy from /etc/hotplug.d/net/10-ar922x-led-fix TrunkUnconfirmed Task Description

Hi,

I think it is just a coding style issue,
but makes tty output noisy when procd debug level selected (3 or 4 for me).

noise examples:


cat: can't open '/sys/devices/virtual/ieee80211/phy*/name': No such file or directory
sh: add: unknown operand

# or

cat: can't open '/sys/devices/virtual/ieee80211/phy*/name': No such file or directory
sh: remove: unknown operand

# times depends on how many hotplug event happened

demo patch below



https://github.com/openwrt/openwrt/blob/master/target/linux/ar71xx/base-files/etc/hotplug.d/net/10-ar922x-led-fix

- phyname=$(cat $phydir/phy*/name)
+ phyname=$(cat $phydir/phy*/name 2>/dev/null)

- [ -z $phyname -o $ACTION != "add" ] && exit 0
+ [ 0 != $? -o -z "$phyname" -o "$ACTION" != "add" ] && exit 0

- [ $phyname -a $ACTION = "add" ] && {
+ [ ! -z "$phyname" -a "$ACTION" == "add" ] && {


02.02.20192097KernelBug ReportVery LowLowmt7621 nand mtd slave fail to read same page twiceTrunkUnconfirmed Task Description

For my setup, only ‘firmware’ partition is specified in .dts (no ‘kernel’ or ‘rootfs’) so that mtdsplit can do its job of finding the correct offset for ubi parition.

mtdsplit found the ubi slave partition but attaching the ubi failed so kernel panicked due to lack of a root fs.

I narrowed down the issue to data all zero read when doing ubi_auto_attach().

Observe in below added printk in nand_do_read_ops() that 0×580000 was read once at 2.028127s and again at 3.682984s but the data are different:

[    1.166183] 7 fixed-partitions partitions found on MTD device MT7621-NAND
[    1.172957] Creating 7 MTD partitions on "MT7621-NAND": ***
[    1.178513] 0x000000000000-0x000000080000 : "uboot"
[    1.207245] 0x000000080000-0x0000000c0000 : "uboot_env"
[    1.237246] 0x0000000c0000-0x000000100000 : "factory"
[    1.266565] 0x000000100000-0x000000140000 : "s_env"
[    1.295219] 0x000000140000-0x000000180000 : "devinfo"
[    1.324541] 0x000000180000-0x000002980000 : "firmware"
[    1.902188] nand: read 4bytes 34f983(3471747): @8fc35b60=0 (retlen=4)
[    1.909212] nand: read 4bytes 360000(3538944): @8fc35b60=0 (retlen=4)
[    1.916224] nand: read 4bytes 380000(3670016): @8fc35b60=0 (retlen=4)
[    1.923224] nand: read 4bytes 3a0000(3801088): @8fc35b60=0 (retlen=4)
[    1.930201] nand: read 4bytes 3c0000(3932160): @8fc35b60=0 (retlen=4)
[    1.937204] nand: read 4bytes 3e0000(4063232): @8fc35b60=0 (retlen=4)
[    1.944203] nand: read 4bytes 400000(4194304): @8fc35b60=0 (retlen=4)
[    1.951180] nand: read 4bytes 420000(4325376): @8fc35b60=0 (retlen=4)
[    1.958183] nand: read 4bytes 440000(4456448): @8fc35b60=0 (retlen=4)
[    1.965183] nand: read 4bytes 460000(4587520): @8fc35b60=0 (retlen=4)
[    1.972160] nand: read 4bytes 480000(4718592): @8fc35b60=0 (retlen=4)
[    1.979163] nand: read 4bytes 4a0000(4849664): @8fc35b60=0 (retlen=4)
[    1.986162] nand: read 4bytes 4c0000(4980736): @8fc35b60=0 (retlen=4)
[    1.993172] nand: read 4bytes 4e0000(5111808): @8fc35b60=0 (retlen=4)
[    2.000150] nand: read 4bytes 500000(5242880): @8fc35b60=0 (retlen=4)
[    2.007147] nand: read 4bytes 520000(5373952): @8fc35b60=0 (retlen=4)
[    2.014152] nand: read 4bytes 540000(5505024): @8fc35b60=0 (retlen=4)
[    2.021130] nand: read 4bytes 560000(5636096): @8fc35b60=0 (retlen=4)
[    2.028127] nand: read 4bytes 580000(5767168): @8fc35b60=23494255 (retlen=4)
[    2.035166] mtdsplit: mtd_check_rootfs_magic(firmware, offset=4194304) got UBI_EC_MAGIC (magic=23494255)
[    2.044625] 2 uimage-fw partitions found on MTD device firmware
[    2.050514] run_parsers_by_type(firmware, MTD_PARSER_TYPE_FIRMWARE) found 2 parts
[    2.057997] 0x000000180000-0x000000580000 : "kernel"
[    2.087096] 0x000000580000-0x000002980000 : "ubi"
[    2.115345] 0x000002980000-0x000005180000 : "alt_firmware"
[    2.146730] [mtk_nand] probe successfully!
[    2.151499] Signature matched and data read!
[    2.155764] load_fact_bbt success 1023
[    2.160202] libphy: Fixed MDIO Bus: probed
[    2.234009] mtk_soc_eth 1e100000.ethernet: generated random MAC address 3e:90:49:dc:0e:f4
[    2.242383] libphy: mdio: probed
[    3.645190] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    3.651851] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    3.662579] NET: Registered protocol family 10
[    3.668281] Segment Routing with IPv6
[    3.672014] NET: Registered protocol family 17
[    3.676546] 8021q: 802.1Q VLAN Support v1.8
[    3.682984] nand: read 4bytes 580000(5767168): @8fc35e1c=0 (retlen=4)
[    3.689426] UBI mtd_read(ubi, offset=0, 4 bytes) got magic@8fc35e1c bytes: 0
[    3.696477] UBI error: no valid UBI magic found inside mtd7
[    3.702054] hctosys: unable to open rtc device (rtc0)
[    3.707847] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6

I added ops.oobbuf = 1 in nand_read() and the issue went away seemingly due to disabling of read from chip buffer (near line 1903 in nand_base.c). Observe below printk indicates now reading same address returns same data both times (3.188661s and 4.854364s):

[    3.153685] nand: read 4bytes 4e0000(5111808): @8fc35b60=0 (retlen=4)
[    3.160662] nand: read 4bytes 500000(5242880): @8fc35b60=0 (retlen=4)
[    3.167676] nand: read 4bytes 520000(5373952): @8fc35b60=0 (retlen=4)
[    3.174678] nand: read 4bytes 540000(5505024): @8fc35b60=0 (retlen=4)
[    3.181655] nand: read 4bytes 560000(5636096): @8fc35b60=0 (retlen=4)
[    3.188661] nand: read 4bytes 580000(5767168): @8fc35b60=23494255 (retlen=4)
[    3.195698] mtdsplit: mtd_check_rootfs_magic(firmware, offset=4194304) got UBI_EC_MAGIC (magic=23494255)
[    3.205161] 2 uimage-fw partitions found on MTD device firmware
[    3.211051] run_parsers_by_type(firmware, MTD_PARSER_TYPE_FIRMWARE) found 2 parts
[    3.218530] 0x000000180000-0x000000580000 : "kernel"
[    3.247625] 0x000000580000-0x000002980000 : "ubi"
[    3.275885] 0x000002980000-0x000005180000 : "alt_firmware"
[    3.307291] [mtk_nand] probe successfully!
[    3.312061] Signature matched and data read!
[    3.316326] load_fact_bbt success 1023
[    3.320776] libphy: Fixed MDIO Bus: probed
[    3.393926] mtk_soc_eth 1e100000.ethernet: generated random MAC address d6:1b:2e:2e:17:74
[    3.402252] libphy: mdio: probed
[    4.815958] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.822595] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.833311] NET: Registered protocol family 10
[    4.839073] Segment Routing with IPv6
[    4.842892] NET: Registered protocol family 17
[    4.847360] 8021q: 802.1Q VLAN Support v1.8
[    4.854364] nand: read 4bytes 580000(5767168): @8fc35e1c=23494255 (retlen=4)
[    4.861399] UBI mtd_read(ubi, offset=0, 4 bytes) got magic@8fc35e1c bytes: 23494255
[    4.869062] UBI: auto-attach mtd7
[    4.872414] ubi0: attaching mtd7
[    4.892381] UBI: EOF marker found, PEBs from 14 will be erased
[    4.898547] ubi0: scanning is finished
[    4.940681] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 252 LEBs
[    4.948006] ubi0: attached mtd7 (name "ubi", size 36 MiB)
[    4.953428] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.960270] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.967044] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.973995] ubi0: good PEBs: 287, bad PEBs: 1, corrupted PEBs: 0
[    4.979971] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    4.987175] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1003525433
[    4.996288] ubi0: available PEBs: 0, total reserved PEBs: 287, PEBs reserved for bad PEB handling: 19
[    5.005507] ubi0: background thread "ubi_bgt0d" started, PID 354
[    5.006121] nand: read 4bytes 5c1000(6033408): @8fc35d8c=73717368 (retlen=4)
[    5.019595] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.025122] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.032069] hctosys: unable to open rtc device (rtc0)

I don’t know what oobbuf does and what’s the wider impact so what is the real problem and fix?

Thanks.

Let met know what other information is needed.

19.02.20192135KernelBug ReportVery LowLowADB AV4202 (BCM43222) wifi gets broadcasted but clients...AllUnconfirmed Task Description

I’ve tried OpenWRT on an ADB AV4202N. Everything works fine except wifi. I know the used Broadcom chip (BCM43222) is problematic but there is a bit of hope.

After installation the wifi is disabled by default. When enabling it and setting the country code correct(AT in my case) the network actually gets found by other devices but they just don’t get accepted by the ap. If i set an encryption this is also correctly broadcasted and recognized by other devices but it’s impossible to connect. Also the following values are shown in OpenWRT’s webinterface which is a strong indicator that something isn’t working correct: “Signal: 0 dBm | Noise: 0 dBm Bitrate: 0.0 Mbit/s”.

device id:

root@OpenWrt:~# for i in /sys/bus/pci/devices/*; do [ -f $i/vendor ] && echo "$(cat $i/vendor):$(cat $i/device) $(cat $i/subsystem_vendor):$(cat $i/subsystem_device)"; done
0x14e4:0xa8d6 0x14e4:0xa8d6
0x14e4:0x6368 0x14e4:0x6368

dmesg:

root@OpenWrt:~# dmesg
[    0.000000] Linux version 4.14.101 (buildbot@6167ddb9a6c5) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9393-d0b4596)) #0 SMP Sun Feb 17 18:30:34 2019
[    0.000000] Detected Broadcom 0x6368 CPU revision b2
[    0.000000] CPU frequency is 400 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-102.6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0002a031 (Broadcom BMIPS4350)
[    0.000000] board: board name: 96368_Swiss_S1
[    0.000000] MIPS: machine is ADB P.DG AV4202N
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80577690, node_mem_map 81007330
[    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] random: get_random_bytes called from start_kernel+0x80/0x4b4 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @8108a000 s25984 r8192 d23168 u57344
[    0.000000] pcpu-alloc: s25984 r8192 d23168 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: rootfstype=squashfs,jffs2 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] Memory: 57676K/65536K available (4354K kernel code, 190K rwdata, 992K rodata, 1304K init, 211K bss, 7860K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] genirq: irq_chip bcm6345-periph-intc did not update eff. affinity mask of irq 28
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000029] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008242] Calibrating delay loop... 397.82 BogoMIPS (lpj=795648)
[    0.046765] pid_max: default: 32768 minimum: 301
[    0.052101] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058995] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072089] Hierarchical SRCU implementation.
[    0.079571] smp: Bringing up secondary CPUs ...
[    0.086729] SMP: Booting CPU1...
[    6.934360] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[    6.934375] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    6.934674] CPU1 revision is: 0002a031 (Broadcom BMIPS4350)
[    0.118454] Synchronize counters for CPU 1: 
[    0.139272] SMP: CPU1 is running
[    0.139326] done.
[    0.149437] smp: Brought up 1 node, 2 CPUs
[    0.171531] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.181656] futex hash table entries: 512 (order: 1, 8192 bytes)
[    0.188171] pinctrl core: initialized pinctrl subsystem
[    0.196658] NET: Registered protocol family 16
[    0.240012] registering PCI controller with io_map_base unset
[    0.246046] registering PCI controller with io_map_base unset
[    0.311758] PCI host bridge to bus 0000:00
[    0.316259] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    0.323379] pci_bus 0000:00: root bus resource [io  0x8000000-0x8007fff]
[    0.330417] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.337680] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.346180] pci 0000:00:01.0: [14e4:a8d6] type 00 class 0x028000
[    0.348386] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00003fff]
[    0.355870] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.356046] pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x30003fff]
[    0.364098] PCI host bridge to bus 0000:01
[    0.368541] pci_bus 0000:01: root bus resource [mem 0x38000000-0x3fffffff]
[    0.375647] pci_bus 0000:01: root bus resource [io  0x8008000-0x800ffff]
[    0.382570] pci_bus 0000:01: root bus resource [??? 0x00000000 flags 0x0]
[    0.389579] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[    0.397943] pci 0000:01:1e.0: [14e4:6368] type 02 class 0x060700
[    0.398768] pci 0000:01:1e.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.407692] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 05
[    0.407867] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 05
[    0.408066] pci 0000:01:1e.0: BAR 10: assigned [mem 0x38000000-0x3fffffff]
[    0.415246] pci 0000:01:1e.0: BAR 7: assigned [io  0x8008000-0x80080ff]
[    0.422091] pci 0000:01:1e.0: BAR 8: assigned [io  0x8008400-0x80084ff]
[    0.428924] pci 0000:01:1e.0: CardBus bridge to [bus 02-05]
[    0.434692] pci 0000:01:1e.0:   bridge window [io  0x8008000-0x80080ff]
[    0.441518] pci 0000:01:1e.0:   bridge window [io  0x8008400-0x80084ff]
[    0.448343] pci 0000:01:1e.0:   bridge window [mem 0x38000000-0x3fffffff]
[    0.462606] clocksource: Switched to clocksource MIPS
[    0.472337] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[    0.507397] ssb: Found chip with id 0xA8D6, rev 0x00 and package 0x08
[    0.514624] ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x1E, vendor 0x4243)
[    0.515162] ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x10, vendor 0x4243)
[    0.515697] ssb: Core 2 found: PCI (cc 0x804, rev 0x0E, vendor 0x4243)
[    0.588530] ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
[    0.596698] NET: Registered protocol family 2
[    0.604194] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.606157] random: fast init done
[    0.612165] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.621583] TCP: Hash tables configured (established 1024 bind 1024)
[    0.628855] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.635018] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.642367] NET: Registered protocol family 1
[    0.647049] PCI: CLS 0 bytes, default 16
[    0.650334] Crashlog allocated RAM at address 0x3f00000
[    0.663506] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.692760] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.698841] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.753705] io scheduler noop registered
[    0.758168] io scheduler deadline registered (default)
[    0.768990] bcm6368-pinctrl 10000080.pin-controller: registered at mmio b0000080
[    0.780487] 10000100.serial: ttyS0 at MMIO 0x10000100 (irq = 10, base_baud = 1562500) is a bcm63xx_uart
[    0.790617] console [ttyS0] enabled
[    0.798066] bootconsole [early0] disabled
[    0.809201] bcm63xx-rng bcm63xx-rng: registered RNG driver
[    0.822290] 18000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002101
[    0.832762] 18000000.nor: Found an alias at 0x1000000 for the chip at 0x0
[    0.832810] Amd/Fujitsu Extended Query Table at 0x0040
[    0.838153]   Amd/Fujitsu Extended Query version 1.3.
[    0.843377] number of CFI chips: 1
[    0.848379] Searching for RedBoot partition table in 18000000.nor at offset 0xfe0000
[    0.892656] No RedBoot partition table detected in 18000000.nor
[    0.898992] 3 fixed-partitions partitions found on MTD device 18000000.nor
[    0.906114] Creating 3 MTD partitions on "18000000.nor":
[    0.911623] 0x000000000000-0x000000020000 : "CFE"
[    0.922427] 0x000000020000-0x000000fe0000 : "linux"
[    0.933452] parser_imagetag: rootfs: CFE image tag found at 0x0 with version 6, board type 96368_Swiss_S1
[    0.943525] parser_imagetag: Partition 0 is kernel offset 100 and length 1c0970
[    0.951149] parser_imagetag: Partition 1 is rootfs offset 1c0a70 and length dff590
[    0.958961] parser_imagetag: Spare partition is offset 3e0004 and length bdfffc
[    0.966556] 2 bcm963xx-imagetag partitions found on MTD device linux
[    0.973131] Creating 2 MTD partitions on "linux":
[    0.978080] 0x000000000100-0x0000001c0a70 : "kernel"
[    0.988840] 0x0000001c0a70-0x000000fc0000 : "rootfs"
[    0.999352] mtd: device 3 (rootfs) set to be root filesystem
[    1.005321] 1 squashfs-split partitions found on MTD device rootfs
[    1.011731] 0x0000003e0000-0x000000fc0000 : "rootfs_data"
[    1.022907] 0x000000fe0000-0x000001000000 : "nvram"
[    1.039611] bcm63xx-spi 10000800.spi: at [mem 0x10000800-0x10000f0b flags 0x200] (irq 9, FIFOs size 542)
[    1.056412] libphy: Fixed MDIO Bus: probed
[    1.110601] b53_common: found switch: BCM63xx, rev 0
[    1.117669] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    1.141575] NET: Registered protocol family 10
[    1.151168] Segment Routing with IPv6
[    1.155277] NET: Registered protocol family 17
[    1.160044] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.173441] 8021q: 802.1Q VLAN Support v1.8
[    1.194502] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    1.222721] Freeing unused kernel memory: 1304K
[    1.227401] This architecture does not have kernel memory protection.
[    2.816654] init: Console is alive
[    2.820845] init: - watchdog -
[    5.378462] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.629748] usbcore: registered new interface driver usbfs
[    5.635909] usbcore: registered new interface driver hub
[    5.641949] usbcore: registered new device driver usb
[    5.666304] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.676645] ehci-platform: EHCI generic platform driver
[    5.790160] ehci-platform ehci-platform: EHCI Host Controller
[    5.796258] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    5.805004] ehci-platform ehci-platform: irq 15, io mem 0xb0001500
[    5.826142] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
[    5.838275] hub 1-0:1.0: USB hub found
[    5.842423] hub 1-0:1.0: 2 ports detected
[    5.859914] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.869326] ohci-platform: OHCI generic platform driver
[    5.875339] ohci-platform ohci-platform: Generic Platform OHCI controller
[    5.882509] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[    5.891178] ohci-platform ohci-platform: irq 13, io mem 0xb0001600
[    5.961590] hub 2-0:1.0: USB hub found
[    5.965787] hub 2-0:1.0: 2 ports detected
[    5.975380] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.988304] init: - preinit -
[    8.655702] random: jshn: uninitialized urandom read (4 bytes read)
[    9.040266] random: jshn: uninitialized urandom read (4 bytes read)
[    9.468482] random: jshn: uninitialized urandom read (4 bytes read)
[    9.864733] urandom_read: 1 callbacks suppressed
[    9.864759] random: jshn: uninitialized urandom read (4 bytes read)
[   10.598898] random: procd: uninitialized urandom read (4 bytes read)
[   10.625650] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.632236] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port3, 100Mbps, full-duplex
[   10.632481] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port4, 100Mbps, full-duplex
[   10.648613] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[   10.655252] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   11.602155] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   14.565445] jffs2: notice: (432) jffs2_build_xattr_subsystem: complete building xattr subsystem, 4 of xdatum (0 unchecked, 4 orphan) and 45 of xref (6 dead, 39 orphan) found.
[   14.586507] mount_root: overlay filesystem has not been fully initialized yet
[   14.955513] mount_root: switching to jffs2 overlay
[   15.045541] overlayfs: upper fs does not support tmpfile.
[   15.061837] urandom-seed: Seed file not found (/etc/urandom.seed)
[   15.392035] procd: - early -
[   15.395412] procd: - watchdog -
[   16.324654] procd: - watchdog -
[   16.328865] procd: - ubus -
[   16.424722] random: ubusd: uninitialized urandom read (4 bytes read)
[   16.608655] random: ubusd: uninitialized urandom read (4 bytes read)
[   16.616496] random: ubusd: uninitialized urandom read (4 bytes read)
[   16.625939] procd: - init -
[   17.831377] kmodloader: loading kernel modules from /etc/modules.d/*
[   18.031668] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   18.075416] Loading modules backported from Linux version v4.19.23-0-g67d52fae61c1
[   18.083356] Backport generated by backports.git v4.19.23-1-0-g480a925a
[   18.099683] ip_tables: (C) 2000-2006 Netfilter Core Team
[   18.141096] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   18.328363] xt_time: kernel timezone is -0000
[   18.539141] PPP generic driver version 2.4.2
[   18.551564] NET: Registered protocol family 24
[   18.608971] b43-phy0: Broadcom 43222 WLAN found (core revision 16)
[   18.658122] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 6
[   18.664442] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 6, Version 0
[   18.688057] Broadcom 43xx driver loaded [ Features: PNL ]
[   18.709707] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   18.736997] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.095461] random: crng init done
[   22.098992] random: 1 urandom warning(s) missed due to ratelimiting
[   50.966616] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port3, 100Mbps, full-duplex
[   50.974838] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on port4, 100Mbps, full-duplex
[   51.009263] br-lan: port 1(eth0.1) entered blocking state
[   51.015136] br-lan: port 1(eth0.1) entered disabled state
[   51.022906] device eth0.1 entered promiscuous mode
[   51.028018] device eth0 entered promiscuous mode
[   51.047687] br-lan: port 1(eth0.1) entered blocking state
[   51.053541] br-lan: port 1(eth0.1) entered forwarding state
[   51.060622] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   51.955920] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 1005.490482] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[ 1005.676804] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1005.704384] br-lan: port 2(wlan0) entered blocking state
[ 1005.710061] br-lan: port 2(wlan0) entered disabled state
[ 1005.716666] device wlan0 entered promiscuous mode
[ 1005.750838] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1005.758685] br-lan: port 2(wlan0) entered blocking state
[ 1005.764276] br-lan: port 2(wlan0) entered forwarding state
[ 1194.941669] device wlan0 left promiscuous mode
[ 1194.947246] br-lan: port 2(wlan0) entered disabled state
[ 1195.732964] b43-phy0 ERROR: DMA RX reset timed out
[ 1196.013005] b43-phy0 ERROR: DMA TX reset timed out
[ 1196.042349] ssb: Timeout waiting for bitmask 01800000 on register 0F90 to clear.
[ 1198.385367] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[ 1198.592303] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1198.698993] br-lan: port 2(wlan0) entered blocking state
[ 1198.704833] br-lan: port 2(wlan0) entered disabled state
[ 1198.712445] device wlan0 entered promiscuous mode
[ 1198.818777] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1198.826665] br-lan: port 2(wlan0) entered blocking state
[ 1198.832441] br-lan: port 2(wlan0) entered forwarding state

iwinfo:

root@OpenWrt:~# iwinfo 
wlan0     ESSID: "OpenWrt32"
          Access Point: 02:10:18:01:00:02
          Mode: Master  Channel: 11 (2.462 GHz)
          Tx-Power: 20 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11bg
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: no  PHY name: phy0

iw phy0 info

root@OpenWrt:~# iw phy0 info
Wiphy phy0
	max # scan SSIDs: 4
	max scan IEs length: 2285 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)
	Available Antennas: TX 0x3 RX 0x3
	Configured Antennas: TX 0x3 RX 0x3
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * monitor
		 * mesh point
	Band 1:
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm)
			* 2472 MHz [13] (20.0 dBm)
			* 2484 MHz [14] (disabled)
	interface combinations are not supported
	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
	Supported extended features:
		* [ RRM ]: RRM
		* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
		* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211

lsmod

root@OpenWrt:~# lsmod
b43                   363971  0 
cfg80211              233424  2 b43,mac80211
compat                  6567  3 b43,mac80211,cfg80211
crc_ccitt               1051  1 ppp_async
ehci_hcd               42167  1 ehci_platform
ehci_platform           4288  0 
gpio_button_hotplug     6464  0 
ip_tables              11245  4 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             10945 24 ip6table_mangle,ip6table_filter
ip6t_REJECT             1040  2 
ip6table_filter          704  1 
ip6table_mangle         1216  0 
ipt_MASQUERADE           736  1 
ipt_REJECT              1008  2 
iptable_filter           704  1 
iptable_mangle           960  0 
iptable_nat              768  1 
ledtrig_usbport         2800  0 
mac80211              462241  1 b43
nf_conntrack           70989 13 nf_conntrack_ipv6,ipt_MASQUERADE,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_CT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_flow_table,nf_conntrack_rtcache
nf_conntrack_ipv4       5168 10 
nf_conntrack_ipv6       5584  4 
nf_conntrack_rtcache    2752  0 
nf_defrag_ipv4          1174  1 nf_conntrack_ipv4
nf_defrag_ipv6          5022  1 nf_conntrack_ipv6
nf_flow_table          14031  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw        2240  1 
nf_log_common           2879  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3424  0 
nf_log_ipv6             4112  0 
nf_nat                 15164  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             4017  1 iptable_nat
nf_nat_masquerade_ipv4    1628  1 ipt_MASQUERADE
nf_nat_redirect         1515  1 xt_REDIRECT
nf_reject_ipv4          2275  1 ipt_REJECT
nf_reject_ipv6          2728  1 ip6t_REJECT
nls_base                5456  1 usbcore
ohci_hcd               30127  1 ohci_platform
ohci_platform           3808  0 
ppp_async               7120  0 
ppp_generic            23138  3 pppoe,ppp_async,pppox
pppoe                   8672  0 
pppox                   1402  1 pppoe
slhc                    5147  1 ppp_generic
usb_common              2551  1 usbcore
usbcore               138769  5 ledtrig_usbport,ohci_platform,ohci_hcd,ehci_platform,ehci_hcd
x_tables               14175 24 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD,xt_CT,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xt_CT                   2720  0 
xt_FLOWOFFLOAD          2896  0 
xt_LOG                   816  0 
xt_REDIRECT              752  0 
xt_TCPMSS               2800  0 
xt_comment               528107 
xt_conntrack            2400 12 
xt_limit                1344 20 
xt_mac                   672  0 
xt_mark                  720  0 
xt_multiport            1312  0 
xt_nat                  1584  0 
xt_state                 768  0 
xt_tcpudp               1808  8 
xt_time                 1824  0 

Although there is another wifi in reach “iw dev wlan0 scan” on the device returns nothing.

This problem applies to current release of OpenWRT (18.06.2) and also to current Snapshot (r9393-d0b4596). It most certainly also applies to lede-17.01 but i haven’t tested it there for now. I think i had lede installed on the device during 2018 and had the same problem but i’m not sure.

Please let me know in case you need more info. I’m also willing to test things in order to help improve the OpenWRT support for the AV4202N. As the network gets found maybe the problem can be solved just by of configuration or arguments to the module.

22.03.20192199KernelBug ReportVery LowLowBananapi R2, Kernel command line problemTrunkUnconfirmed Task Description

Can not configure root variable in kernel command line with U-Boot. Please clean
CONFIG_CMDLINE for linux kernel.

thanks.

 


25.03.20192203KernelBug ReportVery LowLowmtk_eth_soc: cannot build without nf_conntrackTrunkUnconfirmed Task Description
  CC      drivers/net/ethernet/mediatek/mtk_eth_soc.o
In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:34:0:
./include/net/netfilter/nf_flow_table.h:19:2: error: unknown type name 'nf_hookfn'
  nf_hookfn   *hook;
  ^~~~~~~~~
./include/net/netfilter/nf_flow_table.h:149:23: warning: 'struct nf_hook_state' declared inside parameter list will not be visible outside of this definition or declaration
          const struct nf_hook_state *state);
                       ^~~~~~~~~~~~~
./include/net/netfilter/nf_flow_table.h:151:25: warning: 'struct nf_hook_state' declared inside parameter list will not be visible outside of this definition or declaration
            const struct nf_hook_state *state);
                         ^~~~~~~~~~~~~
scripts/Makefile.build:326: recipe for target 'drivers/net/ethernet/mediatek/mtk_eth_soc.o' failed
24.05.20192292KernelFeature RequestVery LowLowSupport AWS ENA NICTrunkUnconfirmed Task Description

Hi,

it’s possible to provide the ena kernel driver as separat module/package? The latest generation of EC2 requires the usage of ENA and this driver is inside the official linux long time ago.

Kernel Module: https://github.com/torvalds/linux/tree/master/drivers/net/ethernet/amazon/ena

ENA documentation: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-ena.html

Showing tasks 51 - 100 of 1029 Page 2 of 21 - 1 - 2 - 3 - 4 - 5 - Last >>

Available keyboard shortcuts

Tasklist

Task Details

Task Editing