Lan LED deactivation

Hey Guys,

in version 18.06.7 it was possible to deactivate the lan led's.

in version 19.07.4 i can't find lan led's

openwrt

Is there a way to add lan led's by ssh?!

Check what LEDs are detected by the OS...

for me they're located in /sys/bus/platform/drivers/leds-gpio/leds/leds

root@OpenWrt2:/sys/devices/platform/leds/leds# ls
c2600:amber:wan      c2600:white:power    c2600:white:wan
c2600:white:general  c2600:white:usb_2    c2600:white:wps
c2600:white:lan      c2600:white:usb_4

19.07.4

root@OpenWrt:~# ls /sys/bus/platform/drivers/leds-gpio/leds/leds/
tp-link:green:system  tp-link:green:wlan
tp-link:green:usb     tp-link:green:wps

18.06.7

root@OpenWrt:~# ls /sys/bus/platform/drivers/leds-gpio/leds-gpio/leds/
tp-link:blue:qss     tp-link:blue:wlan2g  tp-link:green:usb2
tp-link:blue:system  tp-link:green:usb1

so there's more of them in 18, check if there's a GPIO package you might need to install.

OpenWrt 19.07.4, r11208-ce6496d796
 -----------------------------------------------------
root@OpenWrt:~#  opkg list-installed | grep gpio
gpioctl-sysfs - 0.0.6-2
gpiod-tools - 1.3-1
kmod-gpio-button-hotplug - 4.14.195-3
kmod-leds-gpio - 4.14.195-1
kmod-ledtrig-gpio - 4.14.195-1
libgpiod - 1.3-1
libugpio - 0.0.6-2

OpenWrt 18.06.7, r7976-ca47026b7d
 -----------------------------------------------------
root@OpenWrt:~# opkg list-installed | grep gpio
kmod-gpio-button-hotplug - 4.9.211-2

The kernel is growing, more and more functionality moves out of the kernel into addon modules/packages.

If you still have access to the 18.06.7, check/compare the modules loaded using lsmod,
it might provide you with some guidande.

comparing dmesg might also be a good idea.

I use this, to get rid of light at night. I put in off all leds after two minutes:

cat<<'EOF' > /etc/rc.local
#!/bin/sh
/etc/turn-off-leds &
exit 0
EOF
chmod +x /etc/rc.local

cat<<'EOF' > /etc/turn-off-leds
#!/bin/sh
sleep 120
echo 0 > /sys/class/leds/tp-link:green:lan1/brightness
echo 0 > /sys/class/leds/tp-link:green:lan2/brightness
echo 0 > /sys/class/leds/tp-link:green:lan3/brightness
echo 0 > /sys/class/leds/tp-link:green:lan4/brightness
echo 0 > /sys/class/leds/tp-link:green:qss/brightness
echo 0 > /sys/class/leds/tp-link:green:wan/brightness
echo 0 > /sys/class/leds/tp-link:green:wlan/brightness
exit 0
EOF

cat<<'EOF' >> /etc/sysupgrade.conf
/etc/rc.local
/etc/turn-off-leds
EOF
cat /etc/sysupgrade.conf
OpenWrt 18.06.7, r7976-ca47026b7d
-----------------------------------------------------
root@OpenWrt:~# lsmod
ath                    16832  3 ath9k,ath9k_common,ath9k_hw
ath9k                  90992  0
ath9k_common           10880  1 ath9k
ath9k_hw              331808  2 ath9k,ath9k_common
cfg80211              200592  4 ath9k,ath9k_common,ath,mac80211
compat                  4704  4 ath9k,ath9k_common,mac80211,cfg80211
crc_ccitt                960  1 ppp_async
ehci_hcd               33072  1 ehci_platform
ehci_platform           3968  0
gpio_button_hotplug     4512  0
ip_tables              10064  3 iptable_nat,iptable_mangle,iptable_filter
ip6_tables              9920  2 ip6table_mangle,ip6table_filter
ip6t_REJECT              896  2
ip6table_filter          608  1
ip6table_mangle         1120  0
ipt_MASQUERADE           608  0
ipt_REJECT               864  2
iptable_filter           672  1
iptable_mangle           896  0
iptable_nat              704  1
ledtrig_usbport         2160  0
mac80211              393248  1 ath9k
nf_conntrack           52928  9 nf_conntrack_ipv6,xt_state,xt_conntrack,xt_CT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_conntrack_rtcache
nf_conntrack_ipv4       5280  4
nf_conntrack_ipv6       5792  3
nf_conntrack_rtcache    2432  0
nf_defrag_ipv4           800  1 nf_conntrack_ipv4
nf_defrag_ipv6          4304  1 nf_conntrack_ipv6
nf_log_common           2336  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3104  0
nf_log_ipv6             3264  0
nf_nat                  9456  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             3760  1 iptable_nat
nf_nat_masquerade_ipv4    1264  1 ipt_MASQUERADE
nf_nat_redirect          896  1 xt_REDIRECT
nf_reject_ipv4          2080  1 ipt_REJECT
nf_reject_ipv6          2304  1 ip6t_REJECT
nls_base                4736  1 usbcore
ppp_async               6176  0
ppp_generic            21040  3 pppoe,ppp_async,pppox
pppoe                   7808  0
pppox                   1168  1 pppoe
slhc                    4160  1 ppp_generic
usb_common              1312  1 usbcore
usbcore               119552  3 ledtrig_usbport,ehci_platform,ehci_hcd
x_tables               11344 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_CT,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xt_CT                   2496  0
xt_LOG                   704  0
xt_REDIRECT              608  0
xt_TCPMSS               2624  0
xt_comment               448 30
xt_conntrack            2144  6
xt_limit                 960  2
xt_mac                   576  0
xt_mark                  608  0
xt_multiport            1152  0
xt_nat                  1088  0
xt_state                 640  0
xt_tcpudp               1664  4
xt_time                 1568  0
root@OpenWrt:~# dmesg
[    0.000000] Linux version 4.9.211 (buildbot@91d4e1610b27) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7976-ca47026b7d) ) #0 Wed Jan 29 16:06:05 2020
[    0.000000] MyLoader: sysp=84c31530, boardp=0065cbe4, parts=195ef6a4
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80450454, node_mem_map 81000020
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    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: 32512
[    0.000000] Kernel command line:  board=TL-WDR4300  console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124940K/131072K available (3412K kernel code, 175K rwdata, 448K rodata, 308K init, 211K bss, 6132K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:560.000MHz, DDR:450.000MHz, AHB:225.000MHz, Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.008318] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.081146] pid_max: default: 32768 minimum: 301
[    0.086168] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093221] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.103464] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.113961] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.121670] NET: Registered protocol family 16
[    0.127917] MIPS: machine is TP-LINK TL-WDR3600/4300/4310
[    0.137024] registering PCI controller with io_map_base unset
[    0.391757] PCI host bridge to bus 0000:00
[    0.396130] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.403491] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.409418] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.416653] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.425113] pci 0000:00:00.0: [168c:0033] type 00 class 0x028000
[    0.425124] pci 0000:00:00.0: invalid calibration data
[    0.430634] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[    0.430688] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.430765] pci 0000:00:00.0: supports D1
[    0.430775] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.431016] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.431045] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    0.438845] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    0.446570] pci 0000:00:00.0: using irq 40 for pin 1
[    0.455071] clocksource: Switched to clocksource MIPS
[    0.461574] NET: Registered protocol family 2
[    0.467186] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.474617] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.481441] TCP: Hash tables configured (established 1024 bind 1024)
[    0.488299] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.494526] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.501482] NET: Registered protocol family 1
[    0.506193] PCI: CLS 0 bytes, default 32
[    0.508962] Crashlog allocated RAM at address 0x3f00000
[    0.515650] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.529856] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.536097] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.555626] io scheduler noop registered
[    0.559797] io scheduler deadline registered (default)
[    0.565729] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.575304] console [ttyS0] disabled
[    0.599180] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.608379] console [ttyS0] enabled
[    0.615809] bootconsole [early0] disabled
[    0.630297] m25p80 spi0.0: found s25fl064k, expected m25p80
[    0.647990] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.653152] 5 tp-link partitions found on MTD device spi0.0
[    0.658851] Creating 5 MTD partitions on "spi0.0":
[    0.663719] 0x000000000000-0x000000020000 : "u-boot"
[    0.670670] 0x000000020000-0x0000001725f0 : "kernel"
[    0.677755] 0x0000001725f0-0x0000007f0000 : "rootfs"
[    0.684387] mtd: device 2 (rootfs) set to be root filesystem
[    0.690218] 1 squashfs-split partitions found on MTD device rootfs
[    0.696508] 0x0000003c0000-0x0000007f0000 : "rootfs_data"
[    0.704102] 0x0000007f0000-0x000000800000 : "art"
[    0.710962] 0x000000020000-0x0000007f0000 : "firmware"
[    0.719238] libphy: Fixed MDIO Bus: probed
[    0.735411] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.407547] libphy: ag71xx_mdio: probed
[    2.036469] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    2.047987] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    2.056333] NET: Registered protocol family 10
[    2.064819] NET: Registered protocol family 17
[    2.069440] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.082702] 8021q: 802.1Q VLAN Support v1.8
[    2.088782] hctosys: unable to open rtc device (rtc0)
[    2.099110] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.107714] Freeing unused kernel memory: 308K
[    2.112225] This architecture does not have kernel memory protection.
[    2.565085] random: fast init done
[    2.812754] init: Console is alive
[    2.816476] init: - watchdog -
[    3.778072] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.847138] usbcore: registered new interface driver usbfs
[    3.852786] usbcore: registered new interface driver hub
[    3.858320] usbcore: registered new device driver usb
[    3.868909] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.877142] ehci-platform: EHCI generic platform driver
[    3.882543] ehci-platform ehci-platform: EHCI Host Controller
[    3.888464] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    3.898610] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    3.925132] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    3.932399] hub 1-0:1.0: USB hub found
[    3.936648] hub 1-0:1.0: 1 port detected
[    3.941478] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.959265] init: - preinit -
[    4.545151] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    4.788899] random: procd: uninitialized urandom read (4 bytes read)
[    4.795830] hub 1-1:1.0: USB hub found
[    4.802830] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.809063] hub 1-1:1.0: 4 ports detected
[    5.876324] eth0: link up (1000Mbps/Full duplex)
[    5.881095] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.077438] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    8.084783] jffs2_build_filesystem(): unlocking the mtd device...
[    8.090941] done.
[    8.092899] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   22.055241] done.
[   22.057235] jffs2: notice: (440) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   22.074437] mount_root: overlay filesystem has not been fully initialized yet
[   22.090034] mount_root: switching to jffs2 overlay
[   22.702260] urandom-seed: Seed file not found (/etc/urandom.seed)
[   22.907084] eth0: link down
[   22.921593] procd: - early -
[   22.924611] procd: - watchdog -
[   23.557606] procd: - watchdog -
[   23.561051] procd: - ubus -
[   23.670035] random: ubusd: uninitialized urandom read (4 bytes read)
[   23.677603] random: ubusd: uninitialized urandom read (4 bytes read)
[   23.684520] random: ubusd: uninitialized urandom read (4 bytes read)
[   23.692050] procd: - init -
[   24.095532] kmodloader: loading kernel modules from /etc/modules.d/*
[   24.106846] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   24.124590] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   24.132761] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   24.142651] ip_tables: (C) 2000-2006 Netfilter Core Team
[   24.157083] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   24.217300] xt_time: kernel timezone is -0000
[   24.284515] PPP generic driver version 2.4.2
[   24.291403] NET: Registered protocol family 24
[   24.336063] ath: EEPROM regdomain: 0x0
[   24.336072] ath: EEPROM indicates default country code should be used
[   24.336076] ath: doing EEPROM country->regdmn map search
[   24.336091] ath: country maps to regdmn code: 0x3a
[   24.336096] ath: Country alpha2 being used: US
[   24.336101] ath: Regpair used: 0x3a
[   24.348362] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   24.352244] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[   24.359202] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   24.370446] ath: EEPROM regdomain: 0x0
[   24.370453] ath: EEPROM indicates default country code should be used
[   24.370456] ath: doing EEPROM country->regdmn map search
[   24.370472] ath: country maps to regdmn code: 0x3a
[   24.370478] ath: Country alpha2 being used: US
[   24.370482] ath: Regpair used: 0x3a
[   24.380812] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   24.384729] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
[   24.495287] kmodloader: done loading kernel modules from /etc/modules.d/*
[   25.389793] urandom_read: 5 callbacks suppressed
[   25.389801] random: jshn: uninitialized urandom read (4 bytes read)
[   38.553866] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   38.574039] br-lan: port 1(eth0.1) entered blocking state
[   38.579578] br-lan: port 1(eth0.1) entered disabled state
[   38.585497] device eth0.1 entered promiscuous mode
[   38.590365] device eth0 entered promiscuous mode
[   38.626601] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   38.871491] br-wan: port 1(eth0.2) entered blocking state
[   38.877024] br-wan: port 1(eth0.2) entered disabled state
[   38.882925] device eth0.2 entered promiscuous mode
[   38.915339] IPv6: ADDRCONF(NETDEV_UP): br-wan: link is not ready
[   39.636384] eth0: link up (1000Mbps/Full duplex)
[   39.665145] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   39.735217] br-lan: port 1(eth0.1) entered blocking state
[   39.740707] br-lan: port 1(eth0.1) entered forwarding state
[   39.746575] br-wan: port 1(eth0.2) entered blocking state
[   39.752057] br-wan: port 1(eth0.2) entered forwarding state
[   39.929264] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   39.936092] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[   41.171748] ath: EEPROM regdomain: 0x8114
[   41.175865] ath: EEPROM indicates we should expect a country code
[   41.182042] ath: doing EEPROM country->regdmn map search
[   41.187461] ath: country maps to regdmn code: 0x37
[   41.192322] ath: Country alpha2 being used: DE
[   41.196842] ath: Regpair used: 0x37
[   41.200383] ath: regdomain 0x8114 dynamically updated by user
[   41.206300] ath: EEPROM regdomain: 0x8114
[   41.210369] ath: EEPROM indicates we should expect a country code
[   41.216571] ath: doing EEPROM country->regdmn map search
[   41.221959] ath: country maps to regdmn code: 0x37
[   41.226830] ath: Country alpha2 being used: DE
[   41.231331] ath: Regpair used: 0x37
[   41.234873] ath: regdomain 0x8114 dynamically updated by user
[  106.568659] random: crng init done
OpenWrt 19.07.4, r11208-ce6496d796
-----------------------------------------------------
root@OpenWrt:~# lsmod
ath                    18240  3 ath9k,ath9k_common,ath9k_hw
ath9k                  98960  0
ath9k_common           11232  1 ath9k
ath9k_hw              343488  2 ath9k,ath9k_common
cfg80211              222864  4 ath9k,ath9k_common,ath,mac80211
compat                  5888  4 ath9k,ath9k_common,mac80211,cfg80211
crc_ccitt                960  1 ppp_async
ehci_hcd               35312  1 ehci_platform
ehci_platform           4992  0
gpio_button_hotplug     6816  0
ip_tables              10576  4 iptable_nat,iptable_mangle,iptable_filter
ip6_tables             10464 24 ip6table_mangle,ip6table_filter
ip6t_REJECT              992  2
ip6table_filter          608  1
ip6table_mangle         1184  1
ipt_MASQUERADE           640  1
ipt_REJECT               928  2
iptable_filter           608  1
iptable_mangle           896  1
iptable_nat              672  1
ledtrig_gpio            1760  0
ledtrig_usbport         2704  0
mac80211              443840  1 ath9k
nf_conntrack           60832 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       5056 11
nf_conntrack_ipv6       5424  5
nf_conntrack_rtcache    2592  0
nf_defrag_ipv4          1056  1 nf_conntrack_ipv4
nf_defrag_ipv6          4704  1 nf_conntrack_ipv6
nf_flow_table          13136  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw        2112  1
nf_log_common           2592  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3296  0
nf_log_ipv6             4000  0
nf_nat                 10000  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf                                                                                                                                _nat_ipv4
nf_nat_ipv4             3824  1 iptable_nat
nf_nat_masquerade_ipv4    1584  1 ipt_MASQUERADE
nf_nat_redirect         1408  1 xt_REDIRECT
nf_reject_ipv4          2080  1 ipt_REJECT
nf_reject_ipv6          2432  1 ip6t_REJECT
nls_base                4832  1 usbcore
ppp_async               6816  0
ppp_generic            22288  3 pppoe,ppp_async,pppox
pppoe                   9152  0
pppox                   1168  1 pppoe
slhc                    4992  1 ppp_generic
usb_common              2208  1 usbcore
usbcore               129264  3 ledtrig_usbport,ehci_platform,ehci_hcd
x_tables               12656 24 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_s                                                                                                                                tate,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPM                                                                                                                                SS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD,xt_CT,iptable_mangle,iptable_filter,ip_tabl                                                                                                                                es,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xt_CT                   2624  0
xt_FLOWOFFLOAD          3024  0
xt_LOG                   736  0
xt_REDIRECT              672  0
xt_TCPMSS               2720  4
xt_comment               448127
xt_conntrack            2272 14
xt_limit                1152 20
xt_mac                   576  0
xt_mark                  640  0
xt_multiport            1216  0
xt_nat                  1504  0
xt_state                 672  0
xt_tcpudp               1728 12
xt_time                 1728  0
root@OpenWrt:~# dmesg
[    0.000000] Linux version 4.14.195 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11208-ce6496d796)) #0 Sun Sep 6 16:19:39 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is TP-Link TL-WR1043ND v2
[    0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[    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 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 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 804fbf70, node_mem_map 81008400
[    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 0x804ff740 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    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: 58328K/65536K available (4031K kernel code, 160K rwdata, 532K rodata, 1220K init, 212K bss, 7208K 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] CPU clock: 720.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5309056796 ns
[    0.000008] sched_clock: 32 bits at 360MHz, resolution 2ns, wraps every 5965232126ns
[    0.008314] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.075001] pid_max: default: 32768 minimum: 301
[    0.080093] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.087128] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098346] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108854] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.115410] pinctrl core: initialized pinctrl subsystem
[    0.123061] NET: Registered protocol family 16
[    0.147141] clocksource: Switched to clocksource MIPS
[    0.153460] NET: Registered protocol family 2
[    0.158893] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.166320] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.173136] TCP: Hash tables configured (established 1024 bind 1024)
[    0.180049] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.186275] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.193212] NET: Registered protocol family 1
[    0.197909] PCI: CLS 0 bytes, default 32
[    0.201368] Crashlog allocated RAM at address 0x3f00000
[    0.208145] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.219561] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.225764] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.244881] io scheduler noop registered
[    0.249106] io scheduler deadline registered (default)
[    0.254882] ar7200-usb-phy 18030000.usb-phy0: phy reset is missing
[    0.263210] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    0.271114] gpio-export gpio-export: 1 gpio(s) exported
[    0.277484] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.286381] console [ttyS0] disabled
[    0.290266] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A
[    0.299470] console [ttyS0] enabled
[    0.306875] bootconsole [early0] disabled
[    0.335324] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.340260] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.346705] Creating 3 MTD partitions on "spi0.0":
[    0.351593] 0x000000000000-0x000000020000 : "u-boot"
[    0.357406] 0x000000020000-0x0000007f0000 : "firmware"
[    0.363631] 2 tplink-fw partitions found on MTD device firmware
[    0.369688] Creating 2 MTD partitions on "firmware":
[    0.374735] 0x000000000000-0x000000186118 : "kernel"
[    0.380427] 0x000000186118-0x0000007d0000 : "rootfs"
[    0.386081] mtd: device 3 (rootfs) set to be root filesystem
[    0.391932] 1 squashfs-split partitions found on MTD device rootfs
[    0.398227] 0x0000003f0000-0x0000007d0000 : "rootfs_data"
[    0.404351] 0x0000007f0000-0x000000800000 : "art"
[    0.410924] libphy: Fixed MDIO Bus: probed
[    0.758879] libphy: ag71xx_mdio: probed
[    0.765468] switch0: Atheros AR8327 rev. 4 switch registered on mdio-bus.0
[    1.416502] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    1.427944] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    1.768785] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.778462] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: sgmii
[    1.786850] NET: Registered protocol family 10
[    1.796102] Segment Routing with IPv6
[    1.799961] NET: Registered protocol family 17
[    1.804512] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.817678] 8021q: 802.1Q VLAN Support v1.8
[    1.823911] hctosys: unable to open rtc device (rtc0)
[    1.836091] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    1.849839] Freeing unused kernel memory: 1220K
[    1.854436] This architecture does not have kernel memory protection.
[    2.557160] random: fast init done
[    2.687106] init: Console is alive
[    2.690823] init: - watchdog -
[    3.611517] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.686961] usbcore: registered new interface driver usbfs
[    3.692661] usbcore: registered new interface driver hub
[    3.698183] usbcore: registered new device driver usb
[    3.708897] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.716988] ehci-platform: EHCI generic platform driver
[    3.722571] ehci-platform 1b000000.usb: EHCI Host Controller
[    3.728390] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    3.736415] ehci-platform 1b000000.usb: irq 13, io mem 0x1b000000
[    3.767187] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    3.774218] hub 1-0:1.0: USB hub found
[    3.778389] hub 1-0:1.0: 1 port detected
[    3.783409] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.801187] init: - preinit -
[    4.801795] random: jshn: uninitialized urandom read (4 bytes read)
[    4.996192] random: jshn: uninitialized urandom read (4 bytes read)
[    5.173514] random: jshn: uninitialized urandom read (4 bytes read)
[    6.465135] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[    6.471183] IPv6: ADDRCONF(NETDEV_UP): eth1.1: link is not ready
[    6.511424] urandom_read: 4 callbacks suppressed
[    6.511432] random: procd: uninitialized urandom read (4 bytes read)
[    7.538277] eth1: link up (1000Mbps/Full duplex)
[    7.542988] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[    7.551673] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.1: link becomes ready
[    9.727218] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    9.757052] urandom-seed: Seed file not found (/etc/urandom.seed)
[    9.852891] eth1: link down
[    9.872987] procd: - early -
[    9.876003] procd: - watchdog -
[   10.544417] procd: - watchdog -
[   10.547928] procd: - ubus -
[   10.612762] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.678209] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.685852] procd: - init -
[   11.258985] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.392234] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.415965] Loading modules backported from Linux version v4.19.137-0-gc076c79e03c6
[   11.423789] Backport generated by backports.git v4.19.137-1-0-g60c3a249
[   11.458453] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.471411] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   11.581224] xt_time: kernel timezone is -0000
[   11.641358] urngd: v1.0.2 started.
[   11.689463] PPP generic driver version 2.4.2
[   11.707999] NET: Registered protocol family 24
[   11.769065] ath: EEPROM regdomain: 0x0
[   11.769073] ath: EEPROM indicates default country code should be used
[   11.769076] ath: doing EEPROM country->regdmn map search
[   11.769090] ath: country maps to regdmn code: 0x3a
[   11.769095] ath: Country alpha2 being used: US
[   11.769099] ath: Regpair used: 0x3a
[   11.787863] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.789490] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=12
[   11.897505] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.019819] random: crng init done
[   27.348465] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   27.355454] jffs2_build_filesystem(): unlocking the mtd device...
[   27.359394] done.
[   27.367665] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   27.623929] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   27.638661] eth1: link up (1000Mbps/Full duplex)
[   27.643361] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   27.680770] br-lan: port 1(eth1.1) entered blocking state
[   27.686258] br-lan: port 1(eth1.1) entered disabled state
[   27.692063] device eth1.1 entered promiscuous mode
[   27.696928] device eth1 entered promiscuous mode
[   27.780945] br-lan: port 1(eth1.1) entered blocking state
[   27.786438] br-lan: port 1(eth1.1) entered forwarding state
[   27.792285] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   27.883162] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.934877] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   28.658677] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   28.900013] eth0: link up (1000Mbps/Full duplex)
[   28.904773] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.926683] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   43.159830] done.
[   43.161819] jffs2: notice: (1266) 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.358969] overlayfs: upper fs does not support tmpfile.
[  737.081704] br-lan: port 1(eth1.1) entered disabled state
[  737.122116] device eth1.1 left promiscuous mode
[  737.126724] device eth1 left promiscuous mode
[  737.131332] br-lan: port 1(eth1.1) entered disabled state
[  737.171152] IPv6: ADDRCONF(NETDEV_UP): eth1.1: link is not ready
[  737.180447] eth1: link down
[  737.240153] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  737.247231] eth1: link up (1000Mbps/Full duplex)
[  737.266442] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[  737.297774] br-lan: port 1(eth1.1) entered blocking state
[  737.303262] br-lan: port 1(eth1.1) entered disabled state
[  737.309071] device eth1.1 entered promiscuous mode
[  737.313933] device eth1 entered promiscuous mode
[  737.346587] br-lan: port 1(eth1.1) entered blocking state
[  737.352123] br-lan: port 1(eth1.1) entered forwarding state
[  746.907500] br-lan: port 1(eth1.1) entered disabled state
[  746.940957] device eth1.1 left promiscuous mode
[  746.945560] device eth1 left promiscuous mode
[  746.950165] br-lan: port 1(eth1.1) entered disabled state
[  746.981369] IPv6: ADDRCONF(NETDEV_UP): eth1.1: link is not ready
[  747.000452] eth1: link down
[  747.036129] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  747.043263] eth1: link up (1000Mbps/Full duplex)
[  747.058039] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[  747.082957] br-lan: port 1(eth1.1) entered blocking state
[  747.088628] br-lan: port 1(eth1.1) entered disabled state
[  747.094377] device eth1.1 entered promiscuous mode
[  747.099293] device eth1 entered promiscuous mode
[  747.146124] br-lan: port 1(eth1.1) entered blocking state
[  747.151675] br-lan: port 1(eth1.1) entered forwarding state
[  967.394277] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  967.404033] br-lan: port 2(wlan0) entered blocking state
[  967.409495] br-lan: port 2(wlan0) entered disabled state
[  967.415154] device wlan0 entered promiscuous mode
[  974.244305] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  974.250991] br-lan: port 2(wlan0) entered blocking state
[  974.256382] br-lan: port 2(wlan0) entered forwarding state
[  974.277492] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[  974.657464] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[ 1061.169380] device wlan0 left promiscuous mode
[ 1061.174057] br-lan: port 2(wlan0) entered disabled state
[ 1061.952618] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 1062.018932] br-lan: port 2(wlan0) entered blocking state
[ 1062.024332] br-lan: port 2(wlan0) entered disabled state
[ 1062.030053] device wlan0 entered promiscuous mode
[ 1062.034911] br-lan: port 2(wlan0) entered blocking state
[ 1062.040350] br-lan: port 2(wlan0) entered forwarding state
[ 1062.417146] br-lan: port 2(wlan0) entered disabled state
[ 1069.184850] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1069.191523] br-lan: port 2(wlan0) entered blocking state
[ 1069.196920] br-lan: port 2(wlan0) entered forwarding state
[ 2640.583220] kmodloader: loading kernel modules from /etc/modules.d/*
[ 2640.592134] kmodloader: done loading kernel modules from /etc/modules.d/*
[351337.719597] kmodloader: loading kernel modules from /etc/modules.d/*
[351337.727840] kmodloader: done loading kernel modules from /etc/modules.d/*
[351357.040397] kmodloader: loading kernel modules from /etc/modules.d/*
[351357.049979] kmodloader: done loading kernel modules from /etc/modules.d/*