lede
lede copied to clipboard
mt7621 /proc/net/dev 统计异常
反馈bug/问题模板,提建议请删除
1.关于你要提交的问题
Q:是否搜索了issue (使用 "x" 选择)
- [x] 没有类似的issue
2. 详细叙述
(1) 具体问题
A:/proc/net/dev 中数据统计异常,入站出站整体数据较实际情况偏小,双 wan 的入站流量几乎未进行有效统计,编译时默认使用了 MediaTek HWNAT
root@OpenWrt:~# cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 53444959 301861 0 0 0 0 0 0 53444959 301861 0 0 0 0 0 0
lan2: 1794093386 6992723 0 1045565 0 0 0 0 20392244561 21426245 0 0 0 0 0 0
pppoe-telecom: 1697729580 5943153 0 1 0 0 0 0 19920833891 21422229 0 0 0 0 0 0
wlan0: 18791011 206231 0 0 0 0 0 0 54345630 556948 0 0 0 0 0 0
wan: 65646527334 62178933 0 5222 0 0 0 0 3245854992 11139907 0 0 0 0 0 0
wlan1: 1747152275 2951020 0 4053 0 0 0 0 4679167960 3620996 0 0 0 0 0 0
pppoe-wan: 1708229379 4862476 0 17 0 0 0 0 43327659809 40302946 0 0 0 0 0 0
lan1: 1751257559 4872946 0 0 0 0 0 0 44214639932 40313416 0 0 0 0 0 0
br-lan: 62732088149 52868355 0 0 0 0 0 63128 3418202692 10260736 0 0 0 0 0 0
eth0: 98549493469 103590214 1176 2432 0 0 0 0 96351092081 102453211 0 0 0 0 0 0
ztrfyghjp3: 291003 400 0 0 0 0 0 0 39122 401 0 0 0 0 0 0
(2) 路由器型号和固件版本
A: 型号:JDCloud RE-SP-01B 源码版本:https://github.com/coolsnowwolf/lede/commit/005c491b27a63e673e158834ed48462b7af304bc Packages 版本:https://github.com/coolsnowwolf/packages/commit/5d695554f1ba2f3272891ff4a87d3bcb2e086498
编译时使用的 DTS 等配置文件:
target/linux/ramips/dts/mt7621_jdcloud_re-sp-01b.dts
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "jdcloud,re-sp-01b", "mediatek,mt7621-soc";
model = "JDCloud RE-SP-01B";
aliases {
led-boot = &led_red;
led-failsafe = &led_red;
led-running = &led_green;
led-upgrade = &led_blue;
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,115200";
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
leds {
compatible = "gpio-leds";
led_red: red {
label = "jdcloud:red:sys";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
panic-indicator;
};
led_green: green {
label = "jdcloud:green:sys";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_blue: blue {
label = "jdcloud:blue:sys";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};
};
&sdhci {
status = "okay";
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
config: partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0x1ab0000>;
};
partition@1b00000 {
label = "mini";
reg = <0x1b00000 0x400000>;
read-only;
};
partition@1f00000 {
label = "oem";
reg = <0x1f00000 0x100000>;
read-only;
};
};
};
};
&gmac0 {
mtd-mac-address-ascii = <&config 0x4429>;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
};
port@1 {
status = "okay";
label = "lan1";
};
port@2 {
status = "okay";
label = "lan2";
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mtd-mac-address-ascii = <&config 0x4429>;
mediatek,mtd-eeprom = <&factory 0x0>;
};
};
&pcie1 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mtd-mac-address-ascii = <&config 0x4429>;
mtd-mac-address-increment = <0x80>;
mtd-mac-address-increment-byte = <3>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
&state_default {
gpio {
groups = "uart2", "uart3", "wdt";
function = "gpio";
};
};
target/linux/ramips/mt7621/base-files/etc/board.d/02_network
ramips_setup_interfaces()
{
...
jdcloud,re-sp-01b)
ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
;;
...
(3) 详细日志
A:
内核日志
[ 0.000000] Linux version 5.4.203 (openwrt@VM-12-3-debian) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r4574-dc771a1c1)) #0 SMP Fri Jul 29 02:10:36 2022
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is JDCloud RE-SP-01B
[ 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 [mem 0x0000000010000000-0x0000000023ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000001bffffff]
[ 0.000000] node 0: [mem 0x0000000020000000-0x0000000023ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] Normal zone: 576 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] HighMem zone: 65536 pages, LIFO batch:15
[ 0.000000] percpu: Embedded 14 pages/cpu s27152 r8192 d22000 u57344
[ 0.000000] pcpu-alloc: s27152 r8192 d22000 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: 130496
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Writing ErrCtl register=00000840
[ 0.000000] Readback ErrCtl register=00000840
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 509224K/524288K available (6291K kernel code, 268K rwdata, 1328K rodata, 1248K init, 235K bss, 15064K reserved, 0K cma-reserved, 262144K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 880MHz
[ 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.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.007887] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.074052] pid_max: default: 32768 minimum: 301
[ 0.078851] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.086051] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.096902] rcu: Hierarchical SRCU implementation.
[ 0.102396] smp: Bringing up secondary CPUs ...
[ 3.711245] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 3.711256] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 3.711269] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 3.711380] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.167194] Synchronize counters for CPU 1: done.
[ 3.426242] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 3.426251] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 3.426260] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 3.426320] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.258090] Synchronize counters for CPU 2: done.
[ 3.515716] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 3.515724] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 3.515732] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 3.515800] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.343270] Synchronize counters for CPU 3: done.
[ 0.373139] smp: Brought up 1 node, 4 CPUs
[ 0.381882] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.391670] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.398707] pinctrl core: initialized pinctrl subsystem
[ 0.405904] NET: Registered protocol family 16
[ 0.423622] FPU Affinity set after 11720 emulations
[ 0.443382] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.455025] clocksource: Switched to clocksource GIC
[ 0.461766] NET: Registered protocol family 2
[ 0.466374] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.474224] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.482539] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.490126] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.497230] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.503633] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.510110] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.517323] NET: Registered protocol family 1
[ 0.521619] PCI: CLS 0 bytes, default 32
[ 0.764952] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 0.771810] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.790401] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.796177] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.807691] bounce: pool size: 64 pages
[ 0.813607] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.819491] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.825369] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.831821] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.839639] printk: console [ttyS0] disabled
[ 0.843901] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 0.852887] printk: console [ttyS0] enabled
[ 0.861136] printk: bootconsole [early0] disabled
[ 0.873419] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[ 0.880009] spi-nor spi0.0: w25q256 (32768 Kbytes)
[ 0.884859] 6 fixed-partitions partitions found on MTD device spi0.0
[ 0.891207] Creating 6 MTD partitions on "spi0.0":
[ 0.896194] 0x000000000000-0x000000030000 : "u-boot"
[ 0.902352] 0x000000030000-0x000000040000 : "config"
[ 0.908554] 0x000000040000-0x000000050000 : "factory"
[ 0.914688] 0x000000050000-0x000001b00000 : "firmware"
[ 0.921311] 2 uimage-fw partitions found on MTD device firmware
[ 0.927239] Creating 2 MTD partitions on "firmware":
[ 0.932191] 0x000000000000-0x00000027d0b3 : "kernel"
[ 0.938471] 0x00000027d0b3-0x000001ab0000 : "rootfs"
[ 0.944498] mtd: device 5 (rootfs) set to be root filesystem
[ 0.950262] 1 squashfs-split partitions found on MTD device rootfs
[ 0.956441] 0x000000f70000-0x000001ab0000 : "rootfs_data"
[ 0.963111] 0x000001b00000-0x000001f00000 : "mini"
[ 0.969134] 0x000001f00000-0x000002000000 : "oem"
[ 0.976639] [mtk_hw_init] reset_lock:0, force:0
[ 0.981170] [mtk_hw_init] execute fe cold reset
[ 0.997481] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 1.003845] mtk_soc_eth 1e100000.ethernet: generated random MAC address f2:99:71:c8:0b:94
[ 1.012842] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 23
[ 1.021191] (unnamed net_device) (dummy): netif_napi_add() called with weight 256
[ 1.031769] mt7621-pci 1e140000.pcie: Parsing DT failed
[ 1.039414] NET: Registered protocol family 10
[ 1.045692] Segment Routing with IPv6
[ 1.049448] NET: Registered protocol family 17
[ 1.053963] Bridge firewalling registered
[ 1.058270] 8021q: 802.1Q VLAN Support v1.8
[ 1.066318] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 1.082070] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[ 1.091779] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[ 1.101974] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[ 1.112179] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[ 1.123291] DSA: tree 0 setup
[ 1.126617] rt2880-pinmux pinctrl: pcie is already enabled
[ 1.132235] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[ 1.139821] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[ 1.147278] mt7621-pci 1e140000.pcie: failed to parse bus ranges property: -22
[ 1.254390] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[ 1.259973] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[ 1.365424] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[ 1.372357] mt7621-pci 1e140000.pcie: PCIE0 enabled
[ 1.377221] mt7621-pci 1e140000.pcie: PCIE1 enabled
[ 1.382082] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[ 1.391530] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[ 1.397885] pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff]
[ 1.404727] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 1.411584] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.417100] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 1.423111] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 1.429368] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[ 1.435691] pci 0000:00:00.0: supports D1
[ 1.439683] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 1.445801] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 1.451811] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 1.458076] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[ 1.464372] pci 0000:00:01.0: supports D1
[ 1.468374] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 1.475811] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[ 1.481834] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 1.488233] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 1.495849] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 1.501062] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 1.507142] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 1.513901] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
[ 1.521115] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.527921] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[ 1.533943] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 1.540884] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[ 1.556168] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[ 1.561380] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff]
[ 1.567462] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
[ 1.574220] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref]
[ 1.581430] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 1.588074] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 1.594656] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 1.601603] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 1.608199] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 1.615146] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 1.621903] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[ 1.629106] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[ 1.635880] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[ 1.643069] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[ 1.649852] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[ 1.656627] pci 0000:00:00.0: BAR 7: assigned [io 0x1e160000-0x1e160fff]
[ 1.663385] pci 0000:00:01.0: BAR 7: assigned [io 0x1e161000-0x1e161fff]
[ 1.670161] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[ 1.676935] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.681879] pci 0000:00:00.0: bridge window [io 0x1e160000-0x1e160fff]
[ 1.688648] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 1.695419] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
[ 1.702615] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[ 1.709913] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 1.714854] pci 0000:00:01.0: bridge window [io 0x1e161000-0x1e161fff]
[ 1.721623] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
[ 1.728393] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref]
[ 1.736179] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1.736536] hctosys: unable to open rtc device (rtc0)
[ 1.754304] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.765760] Freeing unused kernel memory: 1248K
[ 1.770283] This architecture does not have kernel memory protection.
[ 1.776712] Run /sbin/init as init process
[ 3.030342] init: Console is alive
[ 3.034095] init: - watchdog -
[ 4.832555] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.225469] usbcore: registered new interface driver usbfs
[ 5.231063] usbcore: registered new interface driver hub
[ 5.236524] usbcore: registered new device driver usb
[ 5.272756] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.286562] SCSI subsystem initialized
[ 5.295251] ehci-fsl: Freescale EHCI Host controller driver
[ 5.302552] ehci-platform: EHCI generic platform driver
[ 5.312314] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.320110] ohci-platform: OHCI generic platform driver
[ 5.327884] uhci_hcd: USB Universal Host Controller Interface driver
[ 5.343246] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vbus not found, using dummy regulator
[ 5.352006] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 5.360981] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 5.366327] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[ 5.385230] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[ 5.394403] xhci-mtk 1e1c0000.xhci: irq 21, io mem 0x1e1c0000
[ 5.401537] hub 1-0:1.0: USB hub found
[ 5.405454] hub 1-0:1.0: 2 ports detected
[ 5.410127] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 5.415548] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[ 5.423017] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[ 5.429561] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 5.438618] hub 2-0:1.0: USB hub found
[ 5.442454] hub 2-0:1.0: 1 port detected
[ 5.498373] sdhci: Secure Digital Host Controller Interface driver
[ 5.504545] sdhci: Copyright(c) Pierre Ossman
[ 5.510455] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.519504] usbcore: registered new interface driver usb-storage
[ 5.526567] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.535624] init: - preinit -
[ 5.683394] mmc0: new high speed MMC card at address 0001
[ 5.694505] mmcblk0: mmc0:0001 SLD64G 57.6 GiB
[ 5.703806] mmcblk0boot0: mmc0:0001 SLD64G partition 1 4.00 MiB
[ 5.714488] mmcblk0boot1: mmc0:0001 SLD64G partition 2 4.00 MiB
[ 5.978072] random: procd: uninitialized urandom read (4 bytes read)
[ 7.543151] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 7.551530] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 7.560051] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.152806] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.230029] random: jshn: uninitialized urandom read (4 bytes read)
[ 8.269440] random: jshn: uninitialized urandom read (4 bytes read)
[ 11.816029] mount_root: loading kmods from internal overlay
[ 11.861656] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 11.872853] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 12.254810] random: crng init done
[ 12.258312] random: 6 urandom warning(s) missed due to ratelimiting
[ 12.550310] jffs2_scan_eraseblock(): End of filesystem marker found at 0x30000
[ 12.557579] jffs2_build_filesystem(): unlocking the mtd device...
[ 12.557608] done.
[ 12.565681] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 43.964779] done.
[ 43.974207] jffs2: notice: (640) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 43.990421] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 43.997664] block: unable to load configuration (fstab: Entry not found)
[ 44.004502] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 44.011122] block: unable to load configuration (fstab: Entry not found)
[ 44.018000] block: attempting to load /etc/config/fstab
[ 44.028912] block: unable to load configuration (fstab: Entry not found)
[ 44.035851] block: no usable configuration
[ 44.107200] jffs2: notice: (638) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 44.587408] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 44.594493] block: unable to load configuration (fstab: Entry not found)
[ 44.601397] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 44.607987] block: unable to load configuration (fstab: Entry not found)
[ 44.614816] block: attempting to load /etc/config/fstab
[ 44.620237] block: unable to load configuration (fstab: Entry not found)
[ 44.627078] block: no usable configuration
[ 44.633219] mount_root: overlay filesystem has not been fully initialized yet
[ 44.643507] mount_root: switching to jffs2 overlay
[ 44.656765] overlayfs: upper fs does not support tmpfile.
[ 48.818790] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 49.070493] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace
[ 49.078104] Backport generated by backports.git v5.15.33-1-0-g183c4ab2
[ 49.140051] mt7621-pci 1e140000.pcie: bus=1 slot=0 irq=24
[ 49.145578] pci 0000:00:00.0: enabling device (0006 -> 0007)
[ 49.151238] mt7603e 0000:01:00.0: enabling device (0000 -> 0002)
[ 49.157516] mt7603e 0000:01:00.0: ASIC revision: 76030010
[ 50.186429] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[ 50.191997] mt7603e 0000:01:00.0: Build Time: 20160107100755
[ 50.235011] mt7603e 0000:01:00.0: firmware init done
[ 50.402371] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 50.416217] procd: - early -
[ 50.419340] procd: - watchdog -
[ 50.995403] procd: - watchdog -
[ 50.999285] procd: - ubus -
[ 51.151129] procd: - init -
[ 52.078965] kmodloader: loading kernel modules from /etc/modules.d/*
[ 52.184626] NET: Registered protocol family 38
[ 52.216443] tun: Universal TUN/TAP device driver, 1.6
[ 52.283783] cryptodev: driver 1.12 loaded.
[ 52.298240] mediatek_soc_hnat 1e100000.hnat: wan = wan
[ 52.303412] mediatek_soc_hnat 1e100000.hnat: lan = lan
[ 52.308588] mediatek_soc_hnat 1e100000.hnat: ppd = lan
[ 52.313720] mediatek_soc_hnat 1e100000.hnat: gmac num = 1
[ 52.319204] mediatek_soc_hnat 1e100000.hnat: wan dsa port = 4
[ 52.324935] mediatek_soc_hnat 1e100000.hnat: ppe num = 1
[ 52.335494] mediatek_soc_hnat 1e100000.hnat: PPE0 entry number = 16384
[ 52.355672] mediatek_soc_hnat 1e100000.hnat: PPE0 hwnat start
[ 52.361563] hnat roaming work enable
[ 52.381514] usbcore: registered new interface driver cdc_wdm
[ 52.397494] mtk-eip93 1e004000.crypto: EIP93 Crypto Engine Initialized.
[ 52.411919] usbcore: registered new interface driver ipheth
[ 52.444035] mt7621-pci 1e140000.pcie: bus=2 slot=1 irq=25
[ 52.449593] pci 0000:00:01.0: enabling device (0006 -> 0007)
[ 52.455325] mt7615e 0000:02:00.0: enabling device (0000 -> 0002)
[ 52.473143] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 52.473185] ieee80211 phy1: copying sband (band 1) due to VHT EXT NSS BW flag
[ 52.500522] mt7615e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[ 52.500522]
[ 52.535592] mt7615e 0000:02:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[ 52.556608] xt_time: kernel timezone is -0000
[ 52.563568] usbcore: registered new interface driver cdc_ether
[ 52.573170] usbcore: registered new interface driver cdc_ncm
[ 52.580719] usbcore: registered new interface driver huawei_cdc_ncm
[ 52.668313] PPP generic driver version 2.4.2
[ 52.675122] PPP MPPE Compression module registered
[ 52.682661] mt7615e 0000:02:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190121161307
[ 52.682994] NET: Registered protocol family 24
[ 52.700855] usbcore: registered new interface driver rndis_host
[ 52.742405] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 56.913800] EXT4-fs (mmcblk0): mounted filesystem with ordered data mode. Opts:
[ 59.640112] mtk_soc_eth 1e100000.ethernet eth0: TX vlan offload cannot be enabled when dsa is attached.
[ 59.652078] mtk_soc_eth 1e100000.ethernet eth0: TX vlan offload cannot be enabled when dsa is attached.
[ 69.132869] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[ 69.184670] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 69.193095] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 69.202161] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 69.212274] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[ 69.219442] 8021q: adding VLAN 0 to HW filter on device wan
[ 69.229139] br-lan: port 1(wan) entered blocking state
[ 69.234313] br-lan: port 1(wan) entered disabled state
[ 69.240456] device wan entered promiscuous mode
[ 69.245150] device eth0 entered promiscuous mode
[ 69.284784] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[ 69.292274] 8021q: adding VLAN 0 to HW filter on device lan2
[ 69.305465] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 69.313111] 8021q: adding VLAN 0 to HW filter on device lan1
[ 72.435753] mt7530 mdio-bus:1f lan2: Link is Up - 1Gbps/Full - flow control off
[ 72.443163] IPv6: ADDRCONF(NETDEV_CHANGE): lan2: link becomes ready
[ 72.742121] br-lan: port 2(wlan0) entered blocking state
[ 72.747576] br-lan: port 2(wlan0) entered disabled state
[ 72.753630] device wlan0 entered promiscuous mode
[ 72.758876] br-lan: port 2(wlan0) entered blocking state
[ 72.764238] br-lan: port 2(wlan0) entered forwarding state
[ 72.770241] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 72.884940] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 73.395682] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
[ 73.402980] br-lan: port 1(wan) entered blocking state
[ 73.408214] br-lan: port 1(wan) entered forwarding state
[ 73.475864] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 74.858846] br-lan: port 3(wlan1) entered blocking state
[ 74.864153] br-lan: port 3(wlan1) entered disabled state
[ 74.870013] device wlan1 entered promiscuous mode
[ 74.874966] br-lan: port 3(wlan1) entered blocking state
[ 74.880355] br-lan: port 3(wlan1) entered forwarding state
[ 74.886113] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[ 74.893490] br-lan: port 3(wlan1) entered disabled state
[ 74.901964] pppoe-telecom: renamed from ppp0
[ 75.777761] pppoe-wan: renamed from ppp1
[ 77.409855] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 77.416648] br-lan: port 3(wlan1) entered blocking state
[ 77.421990] br-lan: port 3(wlan1) entered forwarding state
(4) 配置文件
/etc/config/network
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 'fdc9:2d14:f187::/48'
option packet_steering '1'
config interface 'lan'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '64'
option ifname 'wan'
config interface 'wan'
option ifname 'lan1'
option proto 'pppoe'
option keepalive '0'
option username '021********'
option password '******'
option metric '41'
option ipv6 'auto'
config interface 'rndis'
option proto 'dhcp'
option macaddr '2C:B2:1A:5D:8A:00'
option _orig_ifname 'usb0'
option _orig_bridge 'false'
option metric '40'
option ifname 'eth1'
config interface 'telecom'
option proto 'pppoe'
option ifname 'lan2'
option username 'ad********'
option password '********'
option keepalive '0'
option ipv6 'auto'
option metric '42'
硬件加速的流量无法统计,二选一