|
17.01.2017 | 394 | Base system | Bug Report | Very Low | Low | PPPoE/802.1Q issues on Linksys WRT1900ACS | Trunk | Unconfirmed |
Task Description
Device: Linksys WRT1900ACS LEDE commit: b9a408c2b49ccfa0e906bda00ef77f4002e401fd
diffconfig: CONFIG_TARGET_mvebu=y CONFIG_TARGET_mvebu_DEVICE_linksys-wrt1900acs=y CONFIG_TARGET_BOARD=”mvebu” CONFIG_LIBSODIUM_MINIMAL=y CONFIG_PACKAGE_dnscrypt-proxy=y CONFIG_PACKAGE_dnscrypt-proxy-resolvers=y CONFIG_PACKAGE_libsodium=y
I have an ISP that requires PPPoE on vlan 201 with 802.1Q tags (CenturyLink fiber). On OpenWRT 15.05.1 and on earlier versions of LEDE (not sure about an exact revision, but maybe October/November timeframe) I could simply define my wan interface in /etc/config/network like this and it just worked:
``` config interface ‘wan’
option ifname 'eth0.201'
option proto 'pppoe'
option username 'user@provider'
option password 'password'
```
I can’t find any way to make this work on recent versions of LEDE. I’ve tried new builds at least every few weeks, but none have worked for the past few months. I’ve tried configuring the switch_vlan section by adding a ‘t’ after the appropriate switch port to enable tagging, I’ve tried defining a new interface and then using that as the wan ifname, and I’ve tried the command line `ip link` and `ppp` invocations that work on every other linux system I’ve tried, but I can’t find anything that works on recent versions of LEDE.
On other linux systems I can do roughly the following and it works:
``` ip link add link eth0 name eth0.201 type vlan id 201 ip link set eth0.201 up pppd call centurylink ```
where /etc/ppp/peers/centurylink and /etc/ppp/chap-secrets looks like this: ``` > cat /etc/ppp/peers/centurylink plugin rp-pppoe.so
eth0.201 name “user@provider” usepeerdns persist defaultroute hide-password noauth
cat /etc/ppp/chap-secrets #USERNAME PROVIDER PASSWORD IPADDRESS user@provider * password ```
I’ve tried using tcpdump to capture what’s happening and on other systems (Ubuntu 16.10, Debian Jessie, pfsense) I see an 802.1Q tag, but I don’t see that on LEDE. That might be expected though because it seems totally possible that the switch itself is doing the 802.1Q stuff and tcpdump doesn’t see the actual packets sent over the wire. I have no idea if that’s the case, though. I guess I could also try this on OpenWRT as well, but I haven’t taken the time to do that yet.
The only other difference I’ve seen is that by default LEDE doesn’t send a Host-Uniq tag, but even if I set the host_uniq uci config it doesn’t fix things. Regardless of what I do I see logs that look like this:
``` Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is now down Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is disabled Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ has link connectivity loss Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.581135] mvneta f1034000.ethernet eth0: configuring for fixed link mode Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.588150] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.594095] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is enabled Tue Jan 17 01:55:26 2017 daemon.notice netifd: Network device ‘eth0’ link is up Tue Jan 17 01:55:26 2017 daemon.notice netifd: VLAN ‘eth0.201’ link is up Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ has link connectivity Tue Jan 17 01:55:26 2017 daemon.notice netifd: Interface ‘wan’ is setting up now Tue Jan 17 01:55:26 2017 kern.info kernel: [23415.602431] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Tue Jan 17 01:55:26 2017 daemon.info pppd[2263]: Plugin rp-pppoe.so loaded. Tue Jan 17 01:55:26 2017 daemon.info pppd[2263]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7 Tue Jan 17 01:55:26 2017 daemon.notice pppd[2263]: pppd 2.4.7 started by root, uid 0 ... Tue Jan 17 01:55:41 2017 daemon.warn pppd[2263]: Timeout waiting for PADO packets Tue Jan 17 01:55:41 2017 daemon.err pppd[2263]: Unable to complete PPPoE Discovery Tue Jan 17 01:55:41 2017 daemon.info pppd[2263]: Exit. ```
A sample /etc/config/network looks like this: ``` config interface ‘loopback’
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals ‘globals’
option ula_prefix 'fd25:2a59:2a7b::/48'
config interface ‘lan’
option type 'bridge'
option ifname 'eth1'
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface ‘wan’
option ifname 'eth0.201'
option proto 'pppoe'
option username 'user@provider'
option password 'password'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 6'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 5'
config interface ‘guest’
option _orig_ifname 'wlan1'
option _orig_bridge 'false'
option proto 'static'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
```
Interestingly, OpenWRT has exactly the same version of ppp and rp-pppoe (2.4.7 and 3.8p, respectively) so it seems like there’s something else in play and my guess is it’s related to vlan tagging, but I don’t seem to have the same issue as FS#227 which mentions both PPPoE and vlan config, but it is quite difficult to follow the discussion there so maybe I’m missing something.
|
|
21.11.2016 | 296 | Base system | Bug Report | Very Low | High | Ubiquiti Bullet M 10/100 ethernet interface comes up as... | Trunk | Unconfirmed |
Task Description
For the last month or so, and persisting in r2248, when a Ubiquiti Bullet M is booted through typical Ubiquiti 10/100 passive PoE injector, the interface appears to come up in gigabit mode (see timestamp 18.990274 below), despite being only a 10/100 Mbps interface. Restarting /etc/init.d/network fixes it. I am running batman-adv over the ethernet interface, which may be involved. I will check if it happens when batman-adv is not used on the interface and report in a followup comment.
The dmesg look like this:
[ 0.000000] Linux version 4.4.32 (openwrt@hawg) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1439) ) #0 Mon Nov 21 07:14:51 2016
[ 0.000000] MyLoader: sysp=00030800, boardp=088201a0, parts=fdeffeff
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7240 rev 2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] No valid device tree found, continuing without
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] On node 0 totalpages: 8192
[ 0.000000] free_area_init_node: node 0, pgdat 80412320, node_mem_map 81000000
[ 0.000000] Normal zone: 64 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 8192 pages, LIFO batch:0
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=UBNT-BM mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 27616K/32768K available (2990K kernel code, 174K rwdata, 756K rodata, 296K init, 198K bss, 5152K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:390.000MHz, DDR:390.000MHz, AHB:195.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[ 0.000013] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[ 0.007858] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[ 0.080537] pid_max: default: 32768 minimum: 301
[ 0.085319] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.091915] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.102739] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.113516] NET: Registered protocol family 16
[ 0.120053] MIPS: machine is Ubiquiti Bullet M
[ 0.126714] registering PCI controller with io_map_base unset
[ 0.357171] PCI host bridge to bus 0000:00
[ 0.361273] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.368174] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.373719] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.380486] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.388422] pci 0000:00:00.0: [168c:002a] type 00 class 0x028000
[ 0.388466] pci 0000:00:00.0: fixup device configuration
[ 0.395018] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[ 0.395154] pci 0000:00:00.0: supports D1
[ 0.395179] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.395521] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.395573] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[ 0.402864] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.408959] clocksource: Switched to clocksource MIPS
[ 0.415845] NET: Registered protocol family 2
[ 0.421435] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.428393] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.434796] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.441291] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.447126] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.453786] NET: Registered protocol family 1
[ 0.458221] PCI: CLS 0 bytes, default 32
[ 0.464223] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.470512] Crashlog allocated RAM at address 0x1f00000
[ 0.495166] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.501050] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.514332] io scheduler noop registered
[ 0.518252] io scheduler deadline registered (default)
[ 0.523724] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.530709] console [ttyS0] disabled
[ 0.554342] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12187500) is a 16550A
[ 0.563020] console [ttyS0] enabled
[ 0.570030] bootconsole [early0] disabled
[ 0.582486] m25p80 spi0.0: found mx25l6405d, expected m25p80
[ 0.588201] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[ 0.593207] 5 cmdlinepart partitions found on MTD device spi0.0
[ 0.599160] Creating 5 MTD partitions on "spi0.0":
[ 0.603978] 0x000000000000-0x000000040000 : "u-boot"
[ 0.611975] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.619659] 0x000000050000-0x0000007b0000 : "firmware"
[ 0.638850] 2 uimage-fw partitions found on MTD device firmware
[ 0.644866] 0x000000050000-0x0000001a0000 : "kernel"
[ 0.651748] 0x0000001a0000-0x0000007b0000 : "rootfs"
[ 0.658927] mtd: device 4 (rootfs) set to be root filesystem
[ 0.664753] 1 squashfs-split partitions found on MTD device rootfs
[ 0.671002] 0x000000550000-0x0000007b0000 : "rootfs_data"
[ 0.678725] 0x0000007b0000-0x0000007f0000 : "cfg"
[ 0.685799] 0x0000007f0000-0x000000800000 : "EEPROM"
[ 0.713743] libphy: ag71xx_mdio: probed
[ 1.302694] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY]
[ 1.312905] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 1.322158] NET: Registered protocol family 10
[ 1.332118] NET: Registered protocol family 17
[ 1.336691] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.349583] 8021q: 802.1Q VLAN Support v1.8
[ 1.362372] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 1.372025] Freeing unused kernel memory: 296K (80436000 - 80480000)
[ 2.887723] init: Console is alive
[ 2.891524] init: - watchdog -
[ 4.278153] usbcore: registered new interface driver usbfs
[ 4.283867] usbcore: registered new interface driver hub
[ 4.289377] usbcore: registered new device driver usb
[ 4.301662] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.310384] ehci-platform: EHCI generic platform driver
[ 4.319460] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.327414] ohci-platform: OHCI generic platform driver
[ 4.336259] init: - preinit -
[ 5.148878] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.181862] random: procd: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[ 7.440590] eth0: link up (100Mbps/Full duplex)
[ 7.445184] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.484066] jffs2: notice: (361) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 8.501955] mount_root: switching to jffs2 overlay
[ 8.517794] urandom-seed: Seeding with /etc/urandom.seed
[ 8.794632] eth0: link down
[ 8.814035] procd: - early -
[ 8.817063] procd: - watchdog -
[ 9.492101] procd: - ubus -
[ 9.545805] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.555498] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.564637] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.574254] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.583375] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.593373] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.602738] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.612394] procd: - init -
[ 10.066368] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 10.074041] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 10.125220] batman_adv: B.A.T.M.A.N. advanced 2016.4 (compatibility version 15) loaded
[ 10.213939] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 10.224958] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[ 10.233630] ath: EEPROM regdomain: 0x0
[ 10.233647] ath: EEPROM indicates default country code should be used
[ 10.233661] ath: doing EEPROM country->regdmn map search
[ 10.233689] ath: country maps to regdmn code: 0x3a
[ 10.233705] ath: Country alpha2 being used: US
[ 10.233718] ath: Regpair used: 0x3a
[ 10.248634] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 10.257391] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[ 11.870351] random: jshn: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 12.001559] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 18.855427] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 18.875510] IPv6: ADDRCONF(NETDEV_UP): br-pub: link is not ready
[ 18.990274] eth0: link up (1000Mbps/Full duplex)
[ 18.994964] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 19.330349] batman_adv: bat0: Adding interface: eth0
[ 19.335365] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the
performance. Setting the MTU to 1532 would solve the problem.
[ 19.359419] batman_adv: bat0: Interface activated: eth0
[ 19.367077] 8021q: adding VLAN 0 to HW filter on device bat0
[ 19.406417] device bat0 entered promiscuous mode
[ 19.411309] br-pub: port 1(bat0) entered forwarding state
[ 19.416772] br-pub: port 1(bat0) entered forwarding state
[ 19.422579] IPv6: ADDRCONF(NETDEV_CHANGE): br-pub: link becomes ready
[ 19.870508] batman_adv: bat0: bridge_loop_avoidance: Changing from: enabled to: disabled
[ 20.359133] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[ 20.367269] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[ 21.412169] br-pub: port 1(bat0) entered forwarding state
[ 21.549966] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 21.563679] device wlan0 entered promiscuous mode
[ 21.591315] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 21.597879] br-pub: port 2(wlan0) entered forwarding state
[ 21.603541] br-pub: port 2(wlan0) entered forwarding state
[ 21.784924] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
[ 21.912131] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
[ 22.268273] batman_adv: bat0: Adding interface: mesh0
[ 22.273432] batman_adv: bat0: Interface activated: mesh0
[ 23.599046] br-pub: port 2(wlan0) entered forwarding state
[ 29.369162] batman_adv: bat0: IGMP Querier appeared
[ 29.374093] batman_adv: bat0: MLD Querier appeared
[ 34.068975] ------------[ cut here ]------------
[ 34.073700] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:306 dev_watchdog+0x1dc/0x260()
[ 34.082197] NETDEV WATCHDOG: eth0 (ag71xx): transmit queue 0 timed out
[ 34.088754] Modules linked in: ath9k ath9k_common mac80211 ath9k_hw ath batman_adv libcrc32c cfg80211 compat ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common crc16
cryptomgr aead crypto_null crc32c_generic crypto_hash
[ 34.112252] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.32 #0
[ 34.118013] Stack : 803c8fc4 00000000 00000001 80420000 80413038 80412cc3 803aa67c 00000000
[ 34.118013] 8048379c 8041135c 00000200 00100000 0000000a 800a71a8 803afce8 80410000
[ 34.118013] 00000003 8041135c 803ae0f4 8040dc2c 0000000a 800a5124 00000006 00000000
[ 34.118013] 00000000 801f3100 00000000 00000000 00000000 00000000 00000000 00000000
[ 34.118013] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 34.118013] ...
[ 34.153969] Call Trace:
[ 34.156440] [<80071af0>] show_stack+0x50/0x84
[ 34.160843] [<80081870>] warn_slowpath_common+0xa0/0xd0
[ 34.166096] [<800818cc>] warn_slowpath_fmt+0x2c/0x38
[ 34.171111] [<80290970>] dev_watchdog+0x1dc/0x260
[ 34.175854] [<800b0460>] call_timer_fn.isra.5+0x24/0x80
[ 34.181125] [<800b06e4>] run_timer_softirq+0x1b4/0x1fc
[ 34.186296] [<80083dec>] __do_softirq+0x250/0x298
[ 34.191059] [<8006a5d0>] plat_irq_dispatch+0xd4/0x10c
[ 34.196134] [<80060830>] ret_from_irq+0x0/0x4
[ 34.200526] [<80060a80>] __r4k_wait+0x20/0x40
[ 34.204906] [<800a2304>] cpu_startup_entry+0x9c/0xe8
[ 34.209934] [<80436bd4>] start_kernel+0x470/0x490
[ 34.214656]
[ 34.216159] ---[ end trace ef06a4b3ec78272a ]---
[ 34.220810] eth0: tx timeout
[ 37.565193] random: nonblocking pool is initialized
[ 44.068999] eth0: tx timeout
[ 54.069064] eth0: tx timeout
[ 64.068993] eth0: tx timeout
[ 74.069871] eth0: tx timeout
[ 82.660973] batman_adv: bat0: MLD Querier disappeared - multicast optimizations disabled
[ 84.070901] eth0: tx timeout
[ 92.701961] batman_adv: bat0: MLD Querier appeared
[ 94.071717] eth0: tx timeout
[ 104.072355] eth0: tx timeout
[ 114.072669] eth0: tx timeout
[...]
When I do an /etc/init.d/network restart, the interface recovers to normal function, and I get this in dmesg:
[ 1296.763793] br-pub: port 2(wlan0) entered disabled state
[ 1296.769232] br-pub: port 1(bat0) entered disabled state
[ 1296.808305] device bat0 left promiscuous mode
[ 1296.812986] br-pub: port 1(bat0) entered disabled state
[ 1296.862085] IPv6: ADDRCONF(NETDEV_UP): bat0: link is not ready
[ 1296.879239] device wlan0 left promiscuous mode
[ 1296.883945] br-pub: port 2(wlan0) entered disabled state
[ 1296.904196] batman_adv: bat0: Interface deactivated: mesh0
[ 1296.909752] batman_adv: bat0: Removing interface: mesh0
[ 1296.963462] batman_adv: bat0: Interface deactivated: eth0
[ 1296.993492] eth0: link down
[ 1296.998705] batman_adv: bat0: Removing interface: eth0
[ 1301.629484] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1301.649941] IPv6: ADDRCONF(NETDEV_UP): br-pub: link is not ready
[ 1301.985100] eth0: link up (100Mbps/Full duplex)
[ 1301.989698] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 1302.191373] batman_adv: bat0: Adding interface: eth0
[ 1302.196453] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the
performance. Setting the MTU to 1532 would solve the problem.
[ 1302.220488] batman_adv: bat0: Interface activated: eth0
[ 1302.228092] 8021q: adding VLAN 0 to HW filter on device bat0
[ 1302.275944] device bat0 entered promiscuous mode
[ 1302.280747] br-pub: port 1(bat0) entered forwarding state
[ 1302.286292] br-pub: port 1(bat0) entered forwarding state
[ 1302.292106] IPv6: ADDRCONF(NETDEV_CHANGE): br-pub: link becomes ready
[ 1302.590333] batman_adv: bat0: bridge_loop_avoidance: Changing from: enabled to: disabled
[ 1303.213417] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[ 1303.221556] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[ 1304.283452] br-pub: port 1(bat0) entered forwarding state
[ 1304.672382] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1304.782643] device wlan0 entered promiscuous mode
[ 1304.827845] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1304.834479] br-pub: port 2(wlan0) entered forwarding state
[ 1304.840053] br-pub: port 2(wlan0) entered forwarding state
[ 1305.112607] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
[ 1305.190600] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
[ 1305.692918] batman_adv: bat0: Adding interface: mesh0
[ 1305.698080] batman_adv: bat0: Interface activated: mesh0
[ 1306.833410] br-pub: port 2(wlan0) entered forwarding state
[ 1312.303688] batman_adv: bat0: IGMP Querier appeared
[ 1312.308629] batman_adv: bat0: MLD Querier appeared
If I disconnect the other end of the ethernet cable so that there is no link peer, I do not see the problem (see below):
[ 0.000000] Linux version 4.4.32 (openwrt@hawg) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1439) ) #0 Mon Nov 21 07:14:51 2016
[ 0.000000] MyLoader: sysp=00000000, boardp=00000000, parts=ffffffff
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7240 rev 2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] No valid device tree found, continuing without
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] On node 0 totalpages: 8192
[ 0.000000] free_area_init_node: node 0, pgdat 80412320, node_mem_map 81000000
[ 0.000000] Normal zone: 64 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 8192 pages, LIFO batch:0
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=UBNT-BM mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7552k(firmware),256k(cfg)ro,64k(EEPROM)ro console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 27616K/32768K available (2990K kernel code, 174K rwdata, 756K rodata, 296K init, 198K bss, 5152K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:390.000MHz, DDR:390.000MHz, AHB:195.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9801335621 ns
[ 0.000013] sched_clock: 32 bits at 195MHz, resolution 5ns, wraps every 11012737021ns
[ 0.007859] Calibrating delay loop... 259.27 BogoMIPS (lpj=1296384)
[ 0.080537] pid_max: default: 32768 minimum: 301
[ 0.085319] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.091915] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.102743] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.113517] NET: Registered protocol family 16
[ 0.120061] MIPS: machine is Ubiquiti Bullet M
[ 0.126721] registering PCI controller with io_map_base unset
[ 0.357179] PCI host bridge to bus 0000:00
[ 0.361281] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.368182] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.373728] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.380495] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.388431] pci 0000:00:00.0: [168c:002a] type 00 class 0x028000
[ 0.388474] pci 0000:00:00.0: fixup device configuration
[ 0.395026] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[ 0.395163] pci 0000:00:00.0: supports D1
[ 0.395187] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.395530] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.395581] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[ 0.402872] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.408968] clocksource: Switched to clocksource MIPS
[ 0.415854] NET: Registered protocol family 2
[ 0.421444] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.428402] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.434805] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.441299] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.447134] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.453795] NET: Registered protocol family 1
[ 0.458229] PCI: CLS 0 bytes, default 32
[ 0.464231] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.470521] Crashlog allocated RAM at address 0x1f00000
[ 0.495175] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.501058] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.514341] io scheduler noop registered
[ 0.518261] io scheduler deadline registered (default)
[ 0.523733] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.530718] console [ttyS0] disabled
[ 0.554351] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12187500) is a 16550A
[ 0.563030] console [ttyS0] enabled
[ 0.570040] bootconsole [early0] disabled
[ 0.582496] m25p80 spi0.0: found mx25l6405d, expected m25p80
[ 0.588212] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[ 0.593216] 5 cmdlinepart partitions found on MTD device spi0.0
[ 0.599171] Creating 5 MTD partitions on "spi0.0":
[ 0.603989] 0x000000000000-0x000000040000 : "u-boot"
[ 0.611984] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.619662] 0x000000050000-0x0000007b0000 : "firmware"
[ 0.638852] 2 uimage-fw partitions found on MTD device firmware
[ 0.644868] 0x000000050000-0x0000001a0000 : "kernel"
[ 0.651750] 0x0000001a0000-0x0000007b0000 : "rootfs"
[ 0.658926] mtd: device 4 (rootfs) set to be root filesystem
[ 0.664753] 1 squashfs-split partitions found on MTD device rootfs
[ 0.671004] 0x000000550000-0x0000007b0000 : "rootfs_data"
[ 0.678725] 0x0000007b0000-0x0000007f0000 : "cfg"
[ 0.685800] 0x0000007f0000-0x000000800000 : "EEPROM"
[ 0.713752] libphy: ag71xx_mdio: probed
[ 1.302703] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY]
[ 1.312917] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 1.322177] NET: Registered protocol family 10
[ 1.332146] NET: Registered protocol family 17
[ 1.336720] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.349611] 8021q: 802.1Q VLAN Support v1.8
[ 1.362390] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 1.372040] Freeing unused kernel memory: 296K (80436000 - 80480000)
[ 2.887726] init: Console is alive
[ 2.891520] init: - watchdog -
[ 4.278086] usbcore: registered new interface driver usbfs
[ 4.283799] usbcore: registered new interface driver hub
[ 4.289318] usbcore: registered new device driver usb
[ 4.301475] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.310215] ehci-platform: EHCI generic platform driver
[ 4.319363] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.327317] ohci-platform: OHCI generic platform driver
[ 4.336163] init: - preinit -
[ 5.148612] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.181619] random: procd: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[ 8.484735] jffs2: notice: (361) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 8.502585] mount_root: switching to jffs2 overlay
[ 8.518273] urandom-seed: Seeding with /etc/urandom.seed
[ 8.810840] procd: - early -
[ 8.813863] procd: - watchdog -
[ 9.487850] procd: - ubus -
[ 9.541721] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.551409] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.560553] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.570163] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.579297] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.589333] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.598611] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.608223] procd: - init -
[ 10.064115] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 10.071796] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 10.122372] batman_adv: B.A.T.M.A.N. advanced 2016.4 (compatibility version 15) loaded
[ 10.205329] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 10.216362] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
[ 10.225034] ath: EEPROM regdomain: 0x0
[ 10.225051] ath: EEPROM indicates default country code should be used
[ 10.225065] ath: doing EEPROM country->regdmn map search
[ 10.225093] ath: country maps to regdmn code: 0x3a
[ 10.225109] ath: Country alpha2 being used: US
[ 10.225122] ath: Regpair used: 0x3a
[ 10.240049] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 10.248689] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[ 11.861887] random: jshn: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 11.993063] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[ 18.833441] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 18.855566] IPv6: ADDRCONF(NETDEV_UP): br-pub: link is not ready
[ 21.215610] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 21.255512] device wlan0 entered promiscuous mode
[ 21.286637] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 21.293301] br-pub: port 1(wlan0) entered forwarding state
[ 21.298864] br-pub: port 1(wlan0) entered forwarding state
[ 21.335689] IPv6: ADDRCONF(NETDEV_CHANGE): br-pub: link becomes ready
[ 21.541225] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
[ 21.594616] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
[ 22.284927] batman_adv: bat0: Adding interface: mesh0
[ 22.290148] batman_adv: bat0: Interface activated: mesh0
[ 22.297750] 8021q: adding VLAN 0 to HW filter on device bat0
[ 22.362868] device bat0 entered promiscuous mode
[ 22.367627] br-pub: port 2(bat0) entered forwarding state
[ 22.373200] br-pub: port 2(bat0) entered forwarding state
[ 22.718089] batman_adv: bat0: bridge_loop_avoidance: Changing from: enabled to: disabled
[ 23.289035] br-pub: port 1(wlan0) entered forwarding state
[ 23.309325] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[ 23.317459] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[ 24.369054] br-pub: port 2(bat0) entered forwarding state
[ 29.389161] batman_adv: bat0: IGMP Querier appeared
[ 38.069058] random: nonblocking pool is initialized
[ 44.920666] eth0: link up (100Mbps/Full duplex)
[ 44.925732] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 45.001214] batman_adv: bat0: Adding interface: eth0
[ 45.006233] batman_adv: bat0: The MTU of interface eth0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the
performance. Setting the MTU to 1532 would solve the problem.
[ 45.030291] batman_adv: bat0: Interface activated: eth0
[ 50.459193] batman_adv: bat0: MLD Querier appeared
[ 67.509156] batman_adv: bat0: MLD Querier disappeared - multicast optimizations disabled
[ 77.549128] batman_adv: bat0: MLD Querier appeared
My LEDE diffconfig looks like this:
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_DEVICE_ubnt-bullet-m=y
CONFIG_DEVEL=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_ALFRED_NEEDS_lua=y
CONFIG_BUILD_LOG=y
CONFIG_BUSYBOX_CONFIG_MESG=y
CONFIG_BUSYBOX_CONFIG_PKILL=y
CONFIG_BUSYBOX_CONFIG_RDATE=y
# CONFIG_BUSYBOX_CONFIG_SHA256SUM is not set
CONFIG_KMOD_BATMAN_ADV_BATMAN_V=y
CONFIG_KMOD_BATMAN_ADV_BLA=y
CONFIG_KMOD_BATMAN_ADV_DAT=y
CONFIG_KMOD_BATMAN_ADV_DEBUGFS=y
CONFIG_KMOD_BATMAN_ADV_MCAST=y
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_NO_SMB="!"
CONFIG_LIBCURL_POLARSSL=y
CONFIG_LIBCURL_PROXY=y
CONFIG_OPENSSL_ENGINE_CRYPTO=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_EC=y
CONFIG_OPENSSL_WITH_NPN=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_PACKAGE_ALFRED_BATHOSTS=y
CONFIG_PACKAGE_ALFRED_VIS=y
CONFIG_PACKAGE_alfred=y
CONFIG_PACKAGE_batctl=y
CONFIG_PACKAGE_bridge=y
CONFIG_PACKAGE_curl=y
CONFIG_PACKAGE_diffutils=y
# CONFIG_PACKAGE_dnsmasq is not set
# CONFIG_PACKAGE_firewall is not set
CONFIG_PACKAGE_horst=y
CONFIG_PACKAGE_iftop=y
# CONFIG_PACKAGE_ip6tables is not set
CONFIG_PACKAGE_iperf3=y
# CONFIG_PACKAGE_iptables is not set
CONFIG_PACKAGE_kmod-batman-adv=y
CONFIG_PACKAGE_kmod-bridge=y
CONFIG_PACKAGE_kmod-crypto-aead=y
CONFIG_PACKAGE_kmod-crypto-crc32c=y
CONFIG_PACKAGE_kmod-crypto-hash=y
CONFIG_PACKAGE_kmod-crypto-manager=y
CONFIG_PACKAGE_kmod-crypto-null=y
CONFIG_PACKAGE_kmod-crypto-pcompress=y
# CONFIG_PACKAGE_kmod-ip6tables is not set
# CONFIG_PACKAGE_kmod-ipt-conntrack is not set
# CONFIG_PACKAGE_kmod-ipt-core is not set
# CONFIG_PACKAGE_kmod-ipt-nat is not set
# CONFIG_PACKAGE_kmod-lib-crc-ccitt is not set
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-lib-crc32c=y
CONFIG_PACKAGE_kmod-llc=y
# CONFIG_PACKAGE_kmod-nf-conntrack is not set
# CONFIG_PACKAGE_kmod-nf-conntrack6 is not set
# CONFIG_PACKAGE_kmod-nf-ipt is not set
# CONFIG_PACKAGE_kmod-nf-ipt6 is not set
# CONFIG_PACKAGE_kmod-nf-nat is not set
# CONFIG_PACKAGE_kmod-ppp is not set
CONFIG_PACKAGE_kmod-stp=y
CONFIG_PACKAGE_libcurl=y
# CONFIG_PACKAGE_libip4tc is not set
# CONFIG_PACKAGE_libip6tc is not set
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_libncursesw=y
CONFIG_PACKAGE_libnetsnmp=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libpcap=y
CONFIG_PACKAGE_libpcre=y
CONFIG_PACKAGE_libpolarssl=y
CONFIG_PACKAGE_libpopt=y
CONFIG_PACKAGE_libpthread=y
CONFIG_PACKAGE_librt=y
# CONFIG_PACKAGE_libxtables is not set
CONFIG_PACKAGE_lua=y
# CONFIG_PACKAGE_odhcp6c is not set
# CONFIG_PACKAGE_odhcpd is not set
# CONFIG_PACKAGE_ppp is not set
CONFIG_PACKAGE_procps-ng=y
CONFIG_PACKAGE_procps-ng-free=y
CONFIG_PACKAGE_procps-ng-kill=y
CONFIG_PACKAGE_procps-ng-pgrep=y
CONFIG_PACKAGE_procps-ng-pkill=y
CONFIG_PACKAGE_procps-ng-pmap=y
CONFIG_PACKAGE_procps-ng-ps=y
CONFIG_PACKAGE_procps-ng-pwdx=y
CONFIG_PACKAGE_procps-ng-skill=y
CONFIG_PACKAGE_procps-ng-slabtop=y
CONFIG_PACKAGE_procps-ng-snice=y
CONFIG_PACKAGE_procps-ng-tload=y
CONFIG_PACKAGE_procps-ng-top=y
CONFIG_PACKAGE_procps-ng-uptime=y
CONFIG_PACKAGE_procps-ng-vmstat=y
CONFIG_PACKAGE_procps-ng-w=y
CONFIG_PACKAGE_procps-ng-watch=y
CONFIG_PACKAGE_ptp-utils=y
CONFIG_PACKAGE_rsync=y
CONFIG_PACKAGE_snmpd=y
CONFIG_PACKAGE_tcpdump=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_wget=y
CONFIG_PACKAGE_wireless-tools=y
CONFIG_PACKAGE_zlib=y
CONFIG_RSYNC_zlib=y
My uci show looks like this (system and wireless elided):
alfred.alfred=alfred
alfred.alfred.mode='master'
alfred.alfred.batmanif='bat0'
alfred.alfred.start_vis='1'
alfred.alfred.run_facters='1'
alfred.alfred.interface='br-pub'
alfred.alfred.disabled='0'
batman-adv.bat0=mesh
batman-adv.bat0.bridge_loop_avoidance='0'
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth='on'
dropbear.@dropbear[0].RootPasswordAuth='on'
dropbear.@dropbear[0].Port='22'
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.pub=interface
network.pub.type='bridge'
network.pub.proto='static'
network.pub.ip6assign='60'
network.pub.ifname='bat0'
network.pub.ipaddr='10.11.x.y'
network.pub.netmask='255.255.252.0'
network.pub.gateway='10.11.x.1'
network.pub.dns='10.11.x.1'
network.mesh=interface
network.mesh.mtu='1532'
network.mesh.proto='batadv'
network.mesh.mesh='bat0'
network.meshwire=interface
network.meshwire.proto='batadv'
network.meshwire.mesh='bat0'
network.meshwire.ifname='eth0'
|
|
30.08.2016 | 126 | Kernel | Bug Report | Very Low | Medium | kernel panic on brcm47xx (netgear wgt634u) when routing... | Trunk | Unconfirmed |
Task Description
With LEDE version reboot-1444-g1bb914d, when pulling data through the WAN interface to the LAN interface at a sufficiently high speed, e.g. on a Raspberry Pi connected by ethernet to a LAN port, and the WAN interface connected to a gigabit internet service and issuing a command like:
curl https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.7.2.tar.xz > /dev/null
From the pi, I see something like:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
9 86.2M 9 7977k 0 0 1834k 0 0:00:48 0:00:04 0:00:44 1835k[ 352.295252] smsc95xx 1-1.1:1.0 eth0: link down
9 86.2M 9 7977k 0 0 1255k 0 0:01:10 0:00:06 0:01:04 1155k[ 353.959380] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
9 86.2M 9 7977k 0 0 43292 0 0:34:48 0:03:08 0:31:40 0
or
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
8 86.2M 8 7440k 0 0 1478k 0 0:00:59 0:00:05 0:00:54 1478k[ 1100.164849] smsc95xx 1-1.1:1.0 eth0: link down
8 86.2M 8 7440k 0 0 1232k 0 0:01:11 0:00:06 0:01:05 1300k[ 1101.836954] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
8 86.2M 8 7440k 0 0 740k 0 0:01:59 0:00:10 0:01:49 0
Where the “link down” is the WGT634U panic’ing and rebooting. The panic on the WGT634U looks like this:
[ 171.966841] CPU 0 Unable to handle kernel paging request at virtual address 008224d8, epc == 80077ecc, ra == 801d8100
[ 171.977700] Oops[#1]:
[ 171.980093] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.1.20 #0
[ 171.986265] task: 8181e008 ti: 8182a000 task.ti: 8182a000
[ 171.991711] $ 0 : 00000000 1000b800 008224d8 b41c479b
[ 171.997140] $ 4 : 008224d8 00010000 80361ef8 00000000
[ 172.002557] $ 8 : 81018b14 8101da14 00100100 dceb27b8
[ 172.007983] $12 : ffffffff 00000001 ffffff80 000042c6
[ 172.013400] $16 : b41c479b 00000001 81b450a8 81b7d260
[ 172.018817] $20 : 803b5dcc 00000002 00000008 0000000a
[ 172.024235] $24 : 00000000 80072b24
[ 172.029653] $28 : 8182a000 8182bdb8 00000100 801d8100
[ 172.035083] Hi : 00000000
[ 172.038026] Lo : 0000006c
[ 172.041036] epc : 80077ecc put_compound_page+0x78/0x240
[ 172.046547] ra : 801d8100 skb_release_data+0xa8/0x10c
[ 172.051920] Status: 1000b803 KERNEL EXL IE
[ 172.056254] Cause : 00800008
[ 172.059194] BadVA : 008224d8
[ 172.062144] PrId : 00029007 (Broadcom BMIPS3300)
[ 172.066891] Modules linked in: pppoe ppp_async iptable_nat ath5k ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables leds_gpio ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common ssb_hcd
[ 172.132913] Process ksoftirqd/0 (pid: 3, threadinfo=8182a000, task=8181e008, tls=00000000)
[ 172.141213] Stack : 1000b803 00000000 0000006c b41c479b 81b45080 801d8100 00000000 0000012c
00000001 801e7d60 81becb60 81b7d260 81b7d260 80335b3c 81bece60 801d818c
80360000 803623e0 81becb60 80335b3c 803623e0 801e63d8 8182be10 8182be10
00000001 00000002 803b5dd0 00000001 803b5dd4 00000003 803b0000 80024fec
81841048 80361100 819bb770 80007664 80364510 8181e008 80362898 04208040
...
[ 172.178058] Call Trace:
[ 172.180640] [<80077ecc>] put_compound_page+0x78/0x240
[ 172.185822] [<801d8100>] skb_release_data+0xa8/0x10c
[ 172.190895] [<801d818c>] __kfree_skb+0x28/0xb4
[ 172.195466] [<801e63d8>] net_tx_action+0xd8/0x140
[ 172.200329] [<80024fec>] __do_softirq+0x184/0x2b0
[ 172.205184] [<80025140>] run_ksoftirqd+0x28/0x80
[ 172.209953] [<8003bae0>] smpboot_thread_fn+0x148/0x178
[ 172.215246] [<80039390>] kthread+0xdc/0xe8
[ 172.219459] [<800010a8>] ret_from_kernel_thread+0x14/0x1c
[ 172.224921]
[ 172.226470]
Code: 30840001 0204100a 00402021 <8c420000> 000211c2 30420001 10400018 00000000 8e020000
[ 172.237022] ---[ end trace 89a3318b662df6d8 ]---
[ 172.250536] Kernel panic - not syncing: Fatal exception in interrupt
[ 172.262338] Rebooting in 3 seconds..
or
[ 1317.958261] Unhandled kernel unaligned access[#1]:
[ 1317.963173] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.1.20 #0
[ 1317.969349] task: 8181e008 ti: 8182a000 task.ti: 8182a000
[ 1317.974795] $ 0 : 00000000 1000b801 00000001 00200000
[ 1317.980232] $ 4 : 647b394a 00010000 00018da4 00000000
[ 1317.985658] $ 8 : 8181e040 b1e1b104 00000017 40000000
[ 1317.991085] $12 : 500018dd 00000000 00000000 010102f2
[ 1317.996510] $16 : 80e4d1e0 00000001 80e4d208 81acb0e0
[ 1318.001936] $20 : 803b5dcc 00000002 00000008 0000000a
[ 1318.007362] $24 : 00000010 8001ead0
[ 1318.012789] $28 : 8182a000 8182bdd0 00000100 801d8100
[ 1318.018220] Hi : 00000001
[ 1318.021160] Lo : 00000001
[ 1318.024169] epc : 80078474 put_page+0x0/0x4c
[ 1318.028732] ra : 801d8100 skb_release_data+0xa8/0x10c
[ 1318.034104] Status: 1000b803 KERNEL EXL IE
[ 1318.038439] Cause : 00800010
[ 1318.041380] BadVA : 647b394a
[ 1318.044330] PrId : 00029007 (Broadcom BMIPS3300)
[ 1318.049076] Modules linked in: pppoe ppp_async iptable_nat ath5k ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables leds_gpio ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common ssb_hcd
[ 1318.115124] Process ksoftirqd/0 (pid: 3, threadinfo=8182a000, task=8181e008, tls=00000000)
[ 1318.123424] Stack : 00000000 80c60c94 00db35c0 626a006e ff330000 81acb0e0 81acb0e0 80335b3c
80c28260 801d818c 80360000 8004f368 00000018 0000000a 803623e0 801e63d8
8182be10 8182be10 80361100 00000002 803b5dd0 00000001 803b5dd4 00000013
803b0000 80024fec 80364510 80361100 80360000 8000736c 80364510 8181e008
80362898 04208040 00018da4 80360000 80310000 803b5dcc 803615a0 803114f4
...
[ 1318.160295] Call Trace:
[ 1318.162885] [<80078474>] put_page+0x0/0x4c
[ 1318.167108] [<801d8100>] skb_release_data+0xa8/0x10c
[ 1318.172182] [<801d818c>] __kfree_skb+0x28/0xb4
[ 1318.176752] [<801e63d8>] net_tx_action+0xd8/0x140
[ 1318.181614] [<80024fec>] __do_softirq+0x184/0x2b0
[ 1318.186471] [<80025140>] run_ksoftirqd+0x28/0x80
[ 1318.191238] [<8003bae0>] smpboot_thread_fn+0x148/0x178
[ 1318.196530] [<80039390>] kthread+0xdc/0xe8
[ 1318.200744] [<800010a8>] ret_from_kernel_thread+0x14/0x1c
[ 1318.206200]
[ 1318.207747]
Code: 00003021 0801e0ce 24a57888 <8c820000> 3042c000 10400003 00801821 0801df95 00000000
[ 1318.218397] ---[ end trace 2502a626803fb4b9 ]---
[ 1318.231740] Kernel panic - not syncing: Fatal exception in interrupt
[ 1318.243362] Rebooting in 3 seconds..
This looks similar to: https://dev.openwrt.org/ticket/11091
|