kiddin9 2 年之前
父节点
当前提交
8b42b73955

+ 2 - 4
.github/workflows/Openwrt-AutoBuild.yml

@@ -103,10 +103,8 @@ jobs:
     - name: Trigger Packages Update
       continue-on-error: true
       run: |
-        gitdate=$(curl -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].created_at')
-        gitdate=$(date -d "$gitdate" +%s)
-        now=$(date -d "$(date)" +%s)
-        if [[ $(expr $gitdate + 300) < $now ]]; then
+        status=$(curl -H "Authorization: token ${{ secrets.REPO_TOKEN }} -s "https://api.github.com/repos/kiddin9/openwrt-packages/actions/runs" | jq -r '.workflow_runs[0].status')
+        if [[ "$status" == "completed" ]]; then
           curl -X POST https://api.github.com/repos/kiddin9/openwrt-packages/dispatches \
             -H "Accept: application/vnd.github.everest-preview+json" \
             -H "Authorization: token ${{ secrets.REPO_TOKEN }}" \

+ 1 - 1
devices/armvirt_64/diy.sh

@@ -4,6 +4,6 @@ SHELL_FOLDER=$(dirname $(readlink -f "$0"))
 
 
 
-sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += perl btrfs-progs luci-app-amlogic kmod-brcmfmac wpad-basic-mbedtls iw -luci-app-attendedsysupgrade -luci-app-gpsysupgrade fdisk lsblk/' target/linux/armvirt/Makefile
+sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += -luci-app-attendedsysupgrade -luci-app-gpsysupgrade/' target/linux/armvirt/Makefile
 
 

+ 1 - 1
devices/armvirt_64/patches/rootfs.patch

@@ -21,7 +21,7 @@
 +define Device/box
 +  DEVICE_VENDOR := 
 +  DEVICE_MODEL := 电视盒子全系列 / N1
-+  DEVICE_PACKAGES :=
++  DEVICE_PACKAGES := perlbase-base btrfs-progs luci-app-amlogic kmod-brcmfmac wpad-basic-mbedtls iw fdisk lsblk
 +endef
 +TARGET_DEVICES += box
 +

+ 0 - 5
devices/common/diy.sh

@@ -40,9 +40,6 @@ sed -i "s/192.168.1/10.0.0/" package/feeds/kiddin9/base-files/files/bin/config_g
 sed -i "s/192.168.1/10.0.0/" package/base-files/files/bin/config_generate
 
 (
-svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/generic/hack-5.10 target/linux/generic/hack-5.10
-rm -rf target/linux/generic/hack-5.10/{220-gc_sections*,781-dsa-register*,780-drivers-net*,996-fs-ntfs3*,100-update-mtk_wed_h.patch}
-
 svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/generic/hack-5.15 target/linux/generic/hack-5.15
 svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/generic/backport-5.15 target/linux/generic/backport-5.15
 find target/linux/generic/backport-5.15 -name "[0-9][0-9][0-9]-[a-z][a-z]*" -exec rm -f {} \;
@@ -51,8 +48,6 @@ curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linu
 sed -i "s/CONFIG_WERROR=y/CONFIG_WERROR=n/" target/linux/generic/config-5.15
 ) &
 
-curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-5.10/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-5.10/613-netfilter_optional_tcp_window_check.patch
-
 sed -i "/BuildPackage,miniupnpd-iptables/d" feeds/packages/net/miniupnpd/Makefile
 sed -i 's/Os/O2/g' include/target.mk
 sed -i "/mediaurlbase/d" package/feeds/*/luci-theme*/root/etc/uci-defaults/*

+ 1 - 1
devices/common/patches/imagebuilder.patch

@@ -41,7 +41,7 @@
  	rm -rf $(TARGET_DIR) $(TARGET_DIR_ORIG)
  	mkdir -p $(TARGET_DIR) $(BIN_DIR) $(TMP_DIR) $(DL_DIR)
 +	if [[ "$(USER_PROFILE)" =~ (DEVICE_phicomm_k2p|DEVICE_asus_rt-n56u-b1|DEVICE_thunder_timecloud|DEVICE_youku_yk-l2|DEVICE_youhua_wr1200js|DEVICE_oraybox_x3a|DEVICE_netgear_wndr3700-v5|DEVICE_xiaomi_mi-router-4a-gigabit|DEVICE_xiaomi_mi-router-4a-gigabit-v2|DEVICE_xiaomi_mi-router-3g-v2|DEVICE_jcg_y2|DEVICE_glinet_gl-mt300a|DEVICE_glinet_gl-mt750|DEVICE_hiwifi_hc5661|DEVICE_hiwifi_hc5761|DEVICE_hiwifi_hc5861|DEVICE_lenovo_newifi-y1|DEVICE_lenovo_newifi-y1s|DEVICE_xiaomi_miwifi-mini|DEVICE_youku_yk-l1c|DEVICE_jdcloud_luban|DEVICE_zte_e8820v2) || "$(TARGETID)" == "ramips/mt76x8" ]]; then \
-+		echo "src/gz openwrt_smflash https://op.supes.top/packages/mipsel_24kc/small_flash" >>$(TOPDIR)/repositories.conf; \
++		echo "src/gz openwrt_smflash https://op.supes.top/packages/small_flash" >>$(TOPDIR)/repositories.conf; \
 +	else \
 +		sed -i "/smflash/d" $(TOPDIR)/repositories.conf; \
 +	fi

+ 3 - 2
devices/ipq50xx_arm/diy.sh

@@ -4,7 +4,7 @@ shopt -s extglob
 
 SHELL_FOLDER=$(dirname $(readlink -f "$0"))
 
-rm -rf package/feeds/kiddin9/rtl* feeds/kiddin9/{shortcut-fe,fullconenat-nft} package/kernel/mt76 package/kernel/exfat package/feeds/packages/fuse*
+rm -rf package/feeds/kiddin9/rtl* feeds/kiddin9/{shortcut-fe,fullconenat-nft} package/kernel/mt76 package/kernel/exfat package/feeds/packages/fuse* package/feeds/luci/ucode-mod-html package/feeds/luci/rpcd-mod-luci
 
 rm -rf devices/common/patches/{fix.patch,iptables.patch,kernel-defaults.patch,targets.patch}
 
@@ -13,4 +13,5 @@ rm -rf toolchain/musl package/utils/e2fsprogs package/libs/libselinux package/fe
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/toolchain/musl toolchain/musl
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/e2fsprogs package/utils/e2fsprogs
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/libs/libselinux package/libs/libselinux
-ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/
+svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/ucode package/utils/ucode
+#ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/

+ 1 - 1
devices/ipq50xx_arm/feeds.conf

@@ -1,4 +1,4 @@
 src-git packages https://git.openwrt.org/feed/packages.git;openwrt-21.02
-src-git luci https://github.com/openwrt/luci.git;openwrt-22.03
+src-git luci https://github.com/openwrt/luci.git;openwrt-23.05
 src-git routing https://git.openwrt.org/feed/routing.git;openwrt-21.02
 src-git kiddin9 https://github.com/kiddin9/openwrt-packages.git;master

+ 3 - 2
devices/ipq807x_ipq60xx/diy.sh

@@ -35,9 +35,10 @@ rm -rf package/kernel/exfat
 
 rm -rf devices/common/patches/{glinet,fix.patch,iptables.patch,targets.patch,kernel-defaults.patch,disable_flock.patch}
 
-rm -rf toolchain/musl package/utils/e2fsprogs package/libs/libselinux package/feeds/packages/acl
+rm -rf toolchain/musl package/utils/e2fsprogs package/libs/libselinux package/feeds/packages/acl  package/feeds/luci/ucode-mod-html package/feeds/luci/rpcd-mod-luci
 
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/toolchain/musl toolchain/musl
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/e2fsprogs package/utils/e2fsprogs
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/libs/libselinux package/libs/libselinux
-ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/
+svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/ucode package/utils/ucode
+#ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/

+ 1 - 1
devices/ipq807x_ipq60xx/feeds.conf

@@ -1,5 +1,5 @@
 src-git packages https://git.openwrt.org/feed/packages.git;openwrt-21.02
-src-git luci https://github.com/openwrt/luci.git;openwrt-22.03
+src-git luci https://github.com/openwrt/luci.git;openwrt-23.05
 src-git routing https://git.openwrt.org/feed/routing.git;openwrt-21.02
 src-git kiddin9 https://github.com/kiddin9/openwrt-packages.git;master
 src-git gl_feeds_common https://github.com/gl-inet/gl-feeds.git;common

+ 3 - 2
devices/mediatek_mt7981/diy.sh

@@ -10,9 +10,10 @@ rm -rf devices/common/patches/{fix.patch,iptables.patch,kernel-defaults.patch,ta
 
 sed -i "s/PKG_SOURCE_DATE:=.*/PKG_SOURCE_DATE:=2024-12-06/" package/network/config/netifd/Makefile
 
-rm -rf toolchain/musl package/utils/e2fsprogs package/libs/libselinux package/feeds/packages/acl
+rm -rf toolchain/musl package/utils/e2fsprogs package/libs/libselinux package/feeds/packages/acl package/feeds/luci/ucode-mod-html package/feeds/luci/rpcd-mod-luci
 
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/toolchain/musl toolchain/musl
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/e2fsprogs package/utils/e2fsprogs
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/libs/libselinux package/libs/libselinux
-ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/
+svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/ucode package/utils/ucode
+#ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/

+ 1 - 1
devices/mediatek_mt7981/feeds.conf

@@ -1,4 +1,4 @@
 src-git packages https://git.openwrt.org/feed/packages.git;openwrt-21.02
-src-git luci https://github.com/openwrt/luci.git;openwrt-22.03
+src-git luci https://github.com/openwrt/luci.git;openwrt-23.05
 src-git routing https://git.openwrt.org/feed/routing.git;openwrt-21.02
 src-git kiddin9 https://github.com/kiddin9/openwrt-packages.git;master

+ 14 - 0
devices/mediatek_mt7981/patches/fix.patch

@@ -39,3 +39,17 @@
          ],
          stdout=PIPE,
          stderr=PIPE,
+
+--- a/package/mtk/applications/luci-app-mtk/luasrc/view/admin_mtk/mtk_wifi_vif_cfg.htm
++++ b/package/mtk/applications/luci-app-mtk/luasrc/view/admin_mtk/mtk_wifi_vif_cfg.htm
+@@ -581,9 +581,7 @@ <h2><%:Interface Configurations%> - <%=vifname and devname.."@"..vifname or devn
+         </table>
+         <h3><%:Access control MAC address list%></h3>
+         <textarea name="__maclist" id="__maclist" style="width:98%; height: 100px;"><%
+-        local list = cfgs["AccessControlList"..(vifidx-1)] or ""
+-        print(table.concat(list:split(";"), "\n"))
+-        %></textarea>
++        local list = cfgs["AccessControlList"..(vifidx-1)] or "" %><%=table.concat(list:split(";"), "\n")%></textarea>
+         </fieldset>
+ 
+         <% if string.split(cfgs.WirelessMode,";")[1] == "16" or string.split(cfgs.WirelessMode,";")[1] == "17" or string.split(cfgs.WirelessMode,";")[1] == "18" then %>

+ 3 - 2
devices/mediatek_mt7986/diy.sh

@@ -10,9 +10,10 @@ sed -i "s/PKG_SOURCE_DATE:=.*/PKG_SOURCE_DATE:=2024-12-06/" package/network/conf
 
 rm -rf devices/common/patches/{glinet,fix.patch,iptables.patch,kernel-defaults.patch,targets.patch}
 
-rm -rf toolchain/musl package/utils/e2fsprogs package/libs/libselinux package/feeds/packages/acl
+rm -rf toolchain/musl package/utils/e2fsprogs package/libs/libselinux package/feeds/packages/acl package/feeds/luci/ucode-mod-html package/feeds/luci/rpcd-mod-luci
 
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/toolchain/musl toolchain/musl
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/e2fsprogs package/utils/e2fsprogs
 svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/libs/libselinux package/libs/libselinux
-ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/
+svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/ucode package/utils/ucode
+#ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/

+ 1 - 1
devices/mediatek_mt7986/feeds.conf

@@ -1,4 +1,4 @@
 src-git packages https://git.openwrt.org/feed/packages.git;openwrt-21.02
-src-git luci https://github.com/openwrt/luci.git;openwrt-22.03
+src-git luci https://github.com/openwrt/luci.git;openwrt-23.05
 src-git routing https://git.openwrt.org/feed/routing.git;openwrt-21.02
 src-git kiddin9 https://github.com/kiddin9/openwrt-packages.git;master

+ 14 - 0
devices/mediatek_mt7986/patches/fix.patch

@@ -39,3 +39,17 @@
          ],
          stdout=PIPE,
          stderr=PIPE,
+
+--- a/package/mtk/applications/luci-app-mtk/luasrc/view/admin_mtk/mtk_wifi_vif_cfg.htm
++++ b/package/mtk/applications/luci-app-mtk/luasrc/view/admin_mtk/mtk_wifi_vif_cfg.htm
+@@ -581,9 +581,7 @@ <h2><%:Interface Configurations%> - <%=vifname and devname.."@"..vifname or devn
+         </table>
+         <h3><%:Access control MAC address list%></h3>
+         <textarea name="__maclist" id="__maclist" style="width:98%; height: 100px;"><%
+-        local list = cfgs["AccessControlList"..(vifidx-1)] or ""
+-        print(table.concat(list:split(";"), "\n"))
+-        %></textarea>
++        local list = cfgs["AccessControlList"..(vifidx-1)] or "" %><%=table.concat(list:split(";"), "\n")%></textarea>
+         </fieldset>
+ 
+         <% if string.split(cfgs.WirelessMode,";")[1] == "16" or string.split(cfgs.WirelessMode,";")[1] == "17" or string.split(cfgs.WirelessMode,";")[1] == "18" then %>

+ 2 - 0
devices/meson_meson8b/.config

@@ -6,3 +6,5 @@ CONFIG_TARGET_DEVICE_meson_meson8b_DEVICE_thunder-onecloud=y
 
 CONFIG_TARGET_ROOTFS_SQUASHFS=n
 CONFIG_TARGET_ROOTFS_EXT4FS=y
+
+CONFIG_PACKAGE_perf=n

+ 6 - 0
devices/meson_meson8b/diy.sh

@@ -4,5 +4,11 @@ shopt -s extglob
 
 SHELL_FOLDER=$(dirname $(readlink -f "$0"))
 
+rm -rf target/linux/generic feeds/routing/batman-adv
+
+svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/generic target/linux/generic
 svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/meson target/linux/meson
 
+curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/include/kernel-5.10 -o include/kernel-5.10
+
+svn co https://github.com/openwrt/routing/branches/openwrt-22.03/batman-adv feeds/routing/batman-adv

+ 485 - 0
devices/meson_meson8b/patches/kernel_5.10.revert.patch

@@ -0,0 +1,485 @@
+diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
+index 77d8d6c98bc8b..c3c56864b77e7 100644
+--- a/package/kernel/linux/modules/fs.mk
++++ b/package/kernel/linux/modules/fs.mk
+@@ -83,21 +83,36 @@ endef
+ $(eval $(call KernelPackage,fs-btrfs))
+ 
+ 
++define KernelPackage/fs-smbfs-common
++  SUBMENU:=$(FS_MENU)
++  TITLE:=SMBFS common dependencies support
++  HIDDEN:=1
++  KCONFIG:=CONFIG_SMBFS_COMMON
++  FILES:= \
++	$(LINUX_DIR)/fs/smbfs_common/cifs_arc4.ko \
++	$(LINUX_DIR)/fs/smbfs_common/cifs_md4.ko
++endef
++
++define KernelPackage/fs-smbfs-common/description
++ Kernel module dependency for CIFS or SMB_SERVER support
++endef
++
++$(eval $(call KernelPackage,fs-smbfs-common))
++
++
+ define KernelPackage/fs-cifs
+   SUBMENU:=$(FS_MENU)
+   TITLE:=CIFS support
+   KCONFIG:= \
+-	CONFIG_SMBFS_COMMON \
+ 	CONFIG_CIFS \
+ 	CONFIG_CIFS_DFS_UPCALL=n \
+ 	CONFIG_CIFS_UPCALL=n
+   FILES:= \
+-	$(LINUX_DIR)/fs/smbfs_common/cifs_arc4.ko \
+-	$(LINUX_DIR)/fs/smbfs_common/cifs_md4.ko \
+ 	$(LINUX_DIR)/fs/cifs/cifs.ko
+   AUTOLOAD:=$(call AutoLoad,30,cifs)
+   $(call AddDepends/nls)
+   DEPENDS+= \
++    +kmod-fs-smbfs-common \
+     +kmod-crypto-md5 \
+     +kmod-crypto-sha256 \
+     +kmod-crypto-sha512 \
+diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
+index 446801ae23360..a3785d26fd04b 100644
+--- a/package/kernel/linux/modules/crypto.mk
++++ b/package/kernel/linux/modules/crypto.mk
+@@ -824,9 +824,7 @@ $(eval $(call KernelPackage,crypto-rmd160))
+ 
+ define KernelPackage/crypto-rng
+   TITLE:=CryptoAPI random number generation
+-  DEPENDS:=+kmod-crypto-hash +kmod-crypto-hmac \
+-		+LINUX_5_10:kmod-crypto-sha256 \
+-		+LINUX_5_15:kmod-crypto-sha512
++  DEPENDS:=+kmod-crypto-hash +kmod-crypto-hmac +kmod-crypto-sha512
+   KCONFIG:= \
+ 	CONFIG_CRYPTO_DRBG \
+ 	CONFIG_CRYPTO_DRBG_HMAC=y \
+diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
+index 547cc796442bd..77d8d6c98bc8b 100644
+--- a/package/kernel/linux/modules/fs.mk
++++ b/package/kernel/linux/modules/fs.mk
+@@ -98,20 +98,18 @@ define KernelPackage/fs-cifs
+   AUTOLOAD:=$(call AutoLoad,30,cifs)
+   $(call AddDepends/nls)
+   DEPENDS+= \
+-    +LINUX_5_10:kmod-crypto-md4\
+     +kmod-crypto-md5 \
+     +kmod-crypto-sha256 \
+     +kmod-crypto-sha512 \
+     +kmod-crypto-cmac \
+     +kmod-crypto-hmac \
+-    +LINUX_5_10:kmod-crypto-arc4 \
+     +kmod-crypto-aead \
+     +kmod-crypto-ccm \
+     +kmod-crypto-ecb \
+     +kmod-crypto-des \
+-    +(LINUX_5_15):kmod-asn1-decoder \
+-    +(LINUX_5_15):kmod-oid-registry \
+-    +(LINUX_5_15):kmod-dnsresolver
++    +kmod-asn1-decoder \
++    +kmod-oid-registry \
++    +kmod-dnsresolver
+ endef
+ 
+ define KernelPackage/fs-cifs/description
+@@ -367,7 +365,6 @@ $(eval $(call KernelPackage,fs-msdos))
+ define KernelPackage/fs-netfs
+   SUBMENU:=$(FS_MENU)
+   TITLE:=Network Filesystems support
+-  DEPENDS:=@LINUX_5_15
+   KCONFIG:= CONFIG_NETFS_SUPPORT
+   FILES:=$(LINUX_DIR)/fs/netfs/netfs.ko
+   AUTOLOAD:=$(call AutoLoad,28,netfs)
+@@ -531,7 +528,6 @@ define KernelPackage/fs-ntfs3
+   KCONFIG:= CONFIG_NTFS3_FS CONFIG_NTFS3_FS_POSIX_ACL=y
+   FILES:=$(LINUX_DIR)/fs/ntfs3/ntfs3.ko
+   $(call AddDepends/nls)
+-  DEPENDS+=@!LINUX_5_10
+   AUTOLOAD:=$(call AutoLoad,80,ntfs3)
+ endef
+ 
+diff --git a/package/kernel/linux/modules/input.mk b/package/kernel/linux/modules/input.mk
+index 6cc72207f3ebd..92587b1874cf0 100644
+--- a/package/kernel/linux/modules/input.mk
++++ b/package/kernel/linux/modules/input.mk
+@@ -92,7 +92,7 @@ $(eval $(call KernelPackage,input-gpio-keys))
+ define KernelPackage/input-gpio-keys-polled
+   SUBMENU:=$(INPUT_MODULES_MENU)
+   TITLE:=Polled GPIO key support
+-  DEPENDS:=@GPIO_SUPPORT +kmod-input-core +LINUX_5_10:kmod-input-polldev
++  DEPENDS:=@GPIO_SUPPORT +kmod-input-core
+   KCONFIG:= \
+ 	CONFIG_KEYBOARD_GPIO_POLLED \
+ 	CONFIG_INPUT_KEYBOARD=y
+@@ -142,21 +142,6 @@ endef
+ $(eval $(call KernelPackage,input-joydev))
+ 
+ 
+-define KernelPackage/input-polldev
+-  SUBMENU:=$(INPUT_MODULES_MENU)
+-  TITLE:=Polled Input device support
+-  DEPENDS:=+kmod-input-core @LINUX_5_10
+-  KCONFIG:=CONFIG_INPUT_POLLDEV
+-  FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
+-endef
+-
+-define KernelPackage/input-polldev/description
+- Kernel module for support of polled input devices
+-endef
+-
+-$(eval $(call KernelPackage,input-polldev))
+-
+-
+ define KernelPackage/input-matrixkmap
+   SUBMENU:=$(INPUT_MODULES_MENU)
+   TITLE:=Input matrix devices support
+diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk
+index ce72465ce4d82..fcf9c987e8ece 100644
+--- a/package/kernel/linux/modules/leds.mk
++++ b/package/kernel/linux/modules/leds.mk
+@@ -118,7 +118,6 @@ $(eval $(call KernelPackage,ledtrig-pattern))
+ define KernelPackage/ledtrig-tty
+   SUBMENU:=$(LEDS_MENU)
+   TITLE:=LED Trigger for TTY devices
+-  DEPENDS:=@LINUX_5_15
+   KCONFIG:=CONFIG_LEDS_TRIGGER_TTY
+   FILES:=$(LED_TRIGGER_DIR)/ledtrig-tty.ko
+   AUTOLOAD:=$(call AutoLoad,50,ledtrig-tty)
+diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
+index ade6438b9c9ba..dd458ece4cfd4 100644
+--- a/package/kernel/linux/modules/netdevices.mk
++++ b/package/kernel/linux/modules/netdevices.mk
+@@ -1448,7 +1448,6 @@ $(eval $(call KernelPackage,sfc-falcon))
+ define KernelPackage/wwan
+   SUBMENU:=$(NETWORK_DEVICES_MENU)
+   TITLE:=WWAN Driver Core
+-  DEPENDS:=@LINUX_5_15
+   KCONFIG:=CONFIG_WWAN
+   FILES:=$(LINUX_DIR)/drivers/net/wwan/wwan.ko
+   AUTOLOAD:=$(call AutoProbe,wwan)
+@@ -1464,7 +1463,7 @@ $(eval $(call KernelPackage,wwan))
+ define KernelPackage/mhi-net
+   SUBMENU:=$(NETWORK_DEVICES_MENU)
+   TITLE:=MHI Network Device
+-  DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus
++  DEPENDS:=@PCI_SUPPORT +kmod-mhi-bus
+   KCONFIG:=CONFIG_MHI_NET
+   FILES:=$(LINUX_DIR)/drivers/net/mhi_net.ko
+   AUTOLOAD:=$(call AutoProbe,mhi_net)
+@@ -1479,7 +1478,7 @@ $(eval $(call KernelPackage,mhi-net))
+ define KernelPackage/mhi-wwan-ctrl
+   SUBMENU:=$(NETWORK_DEVICES_MENU)
+   TITLE:=MHI WWAN Control
+-  DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus +kmod-wwan
++  DEPENDS:=@PCI_SUPPORT +kmod-mhi-bus +kmod-wwan
+   KCONFIG:=CONFIG_MHI_WWAN_CTRL
+   FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_ctrl.ko
+   AUTOLOAD:=$(call AutoProbe,mhi_wwan_ctrl)
+@@ -1495,7 +1494,7 @@ $(eval $(call KernelPackage,mhi-wwan-ctrl))
+ define KernelPackage/mhi-wwan-mbim
+   SUBMENU:=$(NETWORK_DEVICES_MENU)
+   TITLE:=MHI MBIM
+-  DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus +kmod-wwan
++  DEPENDS:=@PCI_SUPPORT +kmod-mhi-bus +kmod-wwan
+   KCONFIG:=CONFIG_MHI_WWAN_MBIM
+   FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_mbim.ko
+   AUTOLOAD:=$(call AutoProbe,mhi_wwan_mbim)
+diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
+index d9d6a98ed245d..4653b8256502e 100644
+--- a/package/kernel/linux/modules/netsupport.mk
++++ b/package/kernel/linux/modules/netsupport.mk
+@@ -1187,7 +1187,7 @@ define KernelPackage/sctp
+   FILES:= $(LINUX_DIR)/net/sctp/sctp.ko
+   AUTOLOAD:= $(call AutoLoad,32,sctp)
+   DEPENDS:=+kmod-lib-crc32c +kmod-crypto-md5 +kmod-crypto-hmac \
+-    +LINUX_5_15:kmod-udptunnel4 +LINUX_5_15:kmod-udptunnel6
++    +kmod-udptunnel4 +kmod-udptunnel6
+ endef
+ 
+ define KernelPackage/sctp/description
+@@ -1443,7 +1443,6 @@ define KernelPackage/qrtr
+   SUBMENU:=$(NETWORK_SUPPORT_MENU)
+   TITLE:=Qualcomm IPC Router support
+   HIDDEN:=1
+-  DEPENDS:=@!LINUX_5_10
+   KCONFIG:=CONFIG_QRTR
+   FILES:= \
+   $(LINUX_DIR)/net/qrtr/qrtr.ko
+diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
+index e8b4ea54feaf7..51e70fbe18af5 100644
+--- a/package/kernel/linux/modules/other.mk
++++ b/package/kernel/linux/modules/other.mk
+@@ -1251,8 +1251,8 @@ $(eval $(call KernelPackage,keys-trusted))
+ define KernelPackage/tpm
+   SUBMENU:=$(OTHER_MENU)
+   TITLE:=TPM Hardware Support
+-  DEPENDS:= +kmod-random-core +(LINUX_5_15):kmod-asn1-decoder \
+-	  +(LINUX_5_15):kmod-asn1-encoder +(LINUX_5_15):kmod-oid-registry
++  DEPENDS:= +kmod-random-core +kmod-asn1-decoder \
++	  +kmod-asn1-encoder +kmod-oid-registry
+   KCONFIG:= CONFIG_TCG_TPM
+   FILES:= $(LINUX_DIR)/drivers/char/tpm/tpm.ko
+   AUTOLOAD:=$(call AutoLoad,10,tpm,1)
+@@ -1336,7 +1336,6 @@ $(eval $(call KernelPackage,i6300esb-wdt))
+ define KernelPackage/mhi-bus
+   SUBMENU:=$(OTHER_MENU)
+   TITLE:=MHI bus
+-  DEPENDS:=@LINUX_5_15
+   KCONFIG:=CONFIG_MHI_BUS \
+            CONFIG_MHI_BUS_DEBUG=y
+   FILES:=$(LINUX_DIR)/drivers/bus/mhi/core/mhi.ko
+@@ -1352,7 +1351,7 @@ $(eval $(call KernelPackage,mhi-bus))
+ define KernelPackage/mhi-pci-generic
+   SUBMENU:=$(OTHER_MENU)
+   TITLE:=MHI PCI controller driver
+-  DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus
++  DEPENDS:=@PCI_SUPPORT +kmod-mhi-bus
+   KCONFIG:=CONFIG_MHI_BUS_PCI_GENERIC
+   FILES:=$(LINUX_DIR)/drivers/bus/mhi/mhi_pci_generic.ko
+   AUTOLOAD:=$(call AutoProbe,mhi_pci_generic)
+diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
+index 5747ad21663a2..2561f36aa3d6d 100644
+--- a/package/kernel/linux/modules/usb.mk
++++ b/package/kernel/linux/modules/usb.mk
+@@ -1155,7 +1155,7 @@ $(eval $(call KernelPackage,usb-net-aqc111))
+ 
+ define KernelPackage/usb-net-asix
+   TITLE:=Kernel module for USB-to-Ethernet Asix convertors
+-  DEPENDS:=+kmod-libphy +LINUX_5_15:kmod-net-selftests +LINUX_5_15:kmod-mdio-devres +kmod-phy-ax88796b
++  DEPENDS:=+kmod-libphy +kmod-net-selftests +kmod-mdio-devres +kmod-phy-ax88796b
+   KCONFIG:=CONFIG_USB_NET_AX8817X
+   FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.ko
+   AUTOLOAD:=$(call AutoProbe,asix)
+@@ -1394,7 +1394,7 @@ define KernelPackage/usb-net-rtl8152
+   KCONFIG:=CONFIG_USB_RTL8152
+   FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
+   AUTOLOAD:=$(call AutoProbe,r8152)
+-  $(call AddDepends/usb-net, +LINUX_5_10:kmod-crypto-hash)
++  $(call AddDepends/usb-net)
+ endef
+ 
+ define KernelPackage/usb-net-rtl8152/description
+diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
+index a89ceef54b1a3..f1e61f33a5761 100644
+--- a/package/kernel/linux/modules/video.mk
++++ b/package/kernel/linux/modules/video.mk
+@@ -226,7 +226,7 @@ define KernelPackage/drm
+   TITLE:=Direct Rendering Manager (DRM) support
+   HIDDEN:=1
+   DEPENDS:=+kmod-dma-buf +kmod-i2c-core +PACKAGE_kmod-backlight:kmod-backlight \
+-	+(LINUX_5_15):kmod-fb
++	+kmod-fb
+   KCONFIG:=CONFIG_DRM
+   FILES:= \
+ 	$(LINUX_DIR)/drivers/gpu/drm/drm.ko \
+diff --git a/package/kernel/linux/modules/block.mk b/package/kernel/linux/modules/block.mk
+index f6c9df06989ab..bdf84e8ae29b2 100644
+--- a/package/kernel/linux/modules/block.mk
++++ b/package/kernel/linux/modules/block.mk
+@@ -521,13 +521,13 @@ define KernelPackage/scsi-core
+   TITLE:=SCSI device support
+   KCONFIG:= \
+ 	CONFIG_SCSI \
+-	[email protected] \
++	CONFIG_SCSI_COMMON \
+ 	CONFIG_BLK_DEV_SD
+   FILES:= \
+ 	$(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
+-	$(LINUX_DIR)/drivers/scsi/[email protected] \
++	$(LINUX_DIR)/drivers/scsi/scsi_common.ko \
+ 	$(LINUX_DIR)/drivers/scsi/sd_mod.ko
+-  AUTOLOAD:=$(call AutoLoad,40,scsi_mod [email protected] sd_mod,1)
++  AUTOLOAD:=$(call AutoLoad,40,scsi_mod scsi_common sd_mod,1)
+ endef
+ 
+ $(eval $(call KernelPackage,scsi-core))
+diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk
+index 98bcb9e874701..446801ae23360 100644
+--- a/package/kernel/linux/modules/crypto.mk
++++ b/package/kernel/linux/modules/crypto.mk
+@@ -704,7 +704,6 @@ define KernelPackage/crypto-misc
+ 	CONFIG_CRYPTO_KHAZAD \
+ 	CONFIG_CRYPTO_SERPENT \
+ 	CONFIG_CRYPTO_TEA \
+-	[email protected] \
+ 	CONFIG_CRYPTO_TWOFISH \
+ 	CONFIG_CRYPTO_TWOFISH_COMMON \
+ 	CONFIG_CRYPTO_TWOFISH_586 \
+@@ -717,7 +716,6 @@ define KernelPackage/crypto-misc
+ 	$(LINUX_DIR)/crypto/cast6_generic.ko \
+ 	$(LINUX_DIR)/crypto/khazad.ko \
+ 	$(LINUX_DIR)/crypto/tea.ko \
+-	$(LINUX_DIR)/crypto/[email protected] \
+ 	$(LINUX_DIR)/crypto/twofish_common.ko \
+ 	$(LINUX_DIR)/crypto/wp512.ko \
+ 	$(LINUX_DIR)/crypto/twofish_generic.ko \
+@@ -725,7 +723,7 @@ define KernelPackage/crypto-misc
+ 	$(LINUX_DIR)/crypto/blowfish_generic.ko \
+ 	$(LINUX_DIR)/crypto/serpent_generic.ko
+   AUTOLOAD:=$(call AutoLoad,10,anubis camellia_generic cast_common \
+-	cast5_generic cast6_generic khazad tea [email protected] twofish_common \
++	cast5_generic cast6_generic khazad tea twofish_common \
+ 	wp512 blowfish_common serpent_generic)
+   ifndef CONFIG_TARGET_x86
+ 	AUTOLOAD+= $(call AutoLoad,10,twofish_generic blowfish_generic)
+@@ -738,10 +736,9 @@ ifndef CONFIG_TARGET_x86_64
+     FILES+= \
+ 	$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko \
+ 	$(LINUX_DIR)/arch/x86/crypto/serpent-sse2-i586.ko \
+-	$(LINUX_DIR)/arch/x86/crypto/[email protected] \
+ 	$(LINUX_DIR)/crypto/cryptd.ko \
+ 	$(LINUX_DIR)/crypto/crypto_simd.ko
+-    AUTOLOAD+= $(call AutoLoad,10,cryptd [email protected] \
++    AUTOLOAD+= $(call AutoLoad,10,cryptd \
+ 	serpent-sse2-i586 twofish-i586 blowfish_generic)
+   endef
+ endif
+diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk
+index 19fa9fcfc0720..547cc796442bd 100644
+--- a/package/kernel/linux/modules/fs.mk
++++ b/package/kernel/linux/modules/fs.mk
+@@ -87,13 +87,13 @@ define KernelPackage/fs-cifs
+   SUBMENU:=$(FS_MENU)
+   TITLE:=CIFS support
+   KCONFIG:= \
+-	[email protected] \
++	CONFIG_SMBFS_COMMON \
+ 	CONFIG_CIFS \
+ 	CONFIG_CIFS_DFS_UPCALL=n \
+ 	CONFIG_CIFS_UPCALL=n
+   FILES:= \
+-	$(LINUX_DIR)/fs/smbfs_common/[email protected] \
+-	$(LINUX_DIR)/fs/smbfs_common/[email protected] \
++	$(LINUX_DIR)/fs/smbfs_common/cifs_arc4.ko \
++	$(LINUX_DIR)/fs/smbfs_common/cifs_md4.ko \
+ 	$(LINUX_DIR)/fs/cifs/cifs.ko
+   AUTOLOAD:=$(call AutoLoad,30,cifs)
+   $(call AddDepends/nls)
+diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
+index c0e37f06c7455..f901f87ddd512 100644
+--- a/package/kernel/linux/modules/iio.mk
++++ b/package/kernel/linux/modules/iio.mk
+@@ -438,7 +438,7 @@ define KernelPackage/iio-sps30
+ 	CONFIG_SPS30_I2C
+   FILES:= \
+ 	$(LINUX_DIR)/drivers/iio/chemical/sps30.ko \
+-	$(LINUX_DIR)/drivers/iio/chemical/[email protected]
++	$(LINUX_DIR)/drivers/iio/chemical/sps30_i2c.ko
+   AUTOLOAD:=$(call AutoProbe,sps30 sps30_i2c)
+   $(call AddDepends/iio)
+ endef
+diff --git a/package/kernel/linux/modules/input.mk b/package/kernel/linux/modules/input.mk
+index 6270cdeb3b09d..6cc72207f3ebd 100644
+--- a/package/kernel/linux/modules/input.mk
++++ b/package/kernel/linux/modules/input.mk
+@@ -179,10 +179,8 @@ define KernelPackage/input-touchscreen-ads7846
+   DEPENDS:=+kmod-hwmon-core +kmod-input-core +kmod-spi-bitbang
+   KCONFIG:= \
+ 	CONFIG_INPUT_TOUCHSCREEN=y \
+-	[email protected] \
+ 	CONFIG_TOUCHSCREEN_ADS7846
+-  FILES:=$(LINUX_DIR)/drivers/input/touchscreen/ads7846.ko \
+-	$(LINUX_DIR)/drivers/input/touchscreen/[email protected]
++  FILES:=$(LINUX_DIR)/drivers/input/touchscreen/ads7846.ko
+   AUTOLOAD:=$(call AutoProbe,ads7846)
+ endef
+ 
+@@ -199,10 +197,8 @@ define KernelPackage/input-touchscreen-edt-ft5x06
+   DEPENDS:=+kmod-i2c-core +kmod-input-core
+   KCONFIG:= \
+ 	CONFIG_INPUT_TOUCHSCREEN=y \
+-	[email protected] \
+ 	CONFIG_TOUCHSCREEN_EDT_FT5X06
+-  FILES:=$(LINUX_DIR)/drivers/input/touchscreen/edt-ft5x06.ko \
+-	$(LINUX_DIR)/drivers/input/touchscreen/[email protected]
++  FILES:=$(LINUX_DIR)/drivers/input/touchscreen/edt-ft5x06.ko
+   AUTOLOAD:=$(call AutoProbe,edt-ft5x06)
+ endef
+ 
+diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
+index 208518c3bfc02..ade6438b9c9ba 100644
+--- a/package/kernel/linux/modules/netdevices.mk
++++ b/package/kernel/linux/modules/netdevices.mk
+@@ -1170,7 +1170,7 @@ define KernelPackage/of-mdio
+   KCONFIG:=CONFIG_OF_MDIO
+   FILES:= \
+ 	$(LINUX_DIR)/drivers/net/mdio/of_mdio.ko \
+-	$(LINUX_DIR)/drivers/net/mdio/[email protected]
++	$(LINUX_DIR)/drivers/net/mdio/fwnode_mdio.ko
+   AUTOLOAD:=$(call AutoLoad,41,of_mdio)
+ endef
+ 
+diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk
+index 1772545f25e82..99a48a37d479b 100644
+--- a/package/kernel/linux/modules/netfilter.mk
++++ b/package/kernel/linux/modules/netfilter.mk
+@@ -1141,7 +1141,6 @@ define KernelPackage/nft-bridge
+   FILES:=$(foreach mod,$(NFT_BRIDGE-m),$(LINUX_DIR)/net/$(mod).ko)
+   AUTOLOAD:=$(call AutoProbe,$(notdir $(NFT_BRIDGE-m)))
+   KCONFIG:= \
+-	[email protected] \
+ 	$(KCONFIG_NFT_BRIDGE)
+ endef
+ 
+diff --git a/package/kernel/linux/modules/spi.mk b/package/kernel/linux/modules/spi.mk
+index 5cdfc3b2b36b6..78a1c8a03283b 100644
+--- a/package/kernel/linux/modules/spi.mk
++++ b/package/kernel/linux/modules/spi.mk
+@@ -15,10 +15,9 @@ define KernelPackage/mmc-spi
+           CONFIG_SPI=y \
+           CONFIG_SPI_MASTER=y
+   FILES:=\
+-	$(if $(CONFIG_OF),$(LINUX_DIR)/drivers/mmc/host/[email protected]) \
+-	$(LINUX_DIR)/drivers/mmc/host/[email protected] \
++	$(LINUX_DIR)/drivers/mmc/host/of_mmc_spi.ko \
+ 	$(LINUX_DIR)/drivers/mmc/host/mmc_spi.ko
+-  AUTOLOAD:=$(call AutoProbe,$(if $(CONFIG_OF),[email protected]) [email protected] mmc_spi)
++  AUTOLOAD:=$(call AutoProbe,of_mmc_spi mmc_spi)
+ endef
+ 
+ define KernelPackage/mmc-spi/description
+diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
+index 9c2e01357acbf..5747ad21663a2 100644
+--- a/package/kernel/linux/modules/usb.mk
++++ b/package/kernel/linux/modules/usb.mk
+@@ -1823,9 +1823,8 @@ define KernelPackage/usb-xhci-mtk
+   KCONFIG:=CONFIG_USB_XHCI_MTK
+   HIDDEN:=1
+   FILES:= \
+-	 $(LINUX_DIR)/drivers/usb/host/[email protected] \
+-	 $(LINUX_DIR)/drivers/usb/host/[email protected]
+-  AUTOLOAD:=$(call AutoLoad,54,[email protected] [email protected],1)
++	 $(LINUX_DIR)/drivers/usb/host/xhci-mtk-hcd.ko
++  AUTOLOAD:=$(call AutoLoad,54,xhci-mtk-hcd,1)
+   $(call AddDepends/usb)
+ endef
+ 
+diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
+index 83f48ac8492c5..a89ceef54b1a3 100644
+--- a/package/kernel/linux/modules/video.mk
++++ b/package/kernel/linux/modules/video.mk
+@@ -376,7 +376,7 @@ define KernelPackage/drm-imx-ldb
+ 	CONFIG_DRM_PANEL_SITRONIX_ST7789V=n
+   FILES:=$(LINUX_DIR)/drivers/gpu/drm/imx/imx-ldb.ko \
+ 	$(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko \
+-	$(LINUX_DIR)/drivers/gpu/drm/[email protected]
++	$(LINUX_DIR)/drivers/gpu/drm/drm_dp_aux_bus.ko
+   AUTOLOAD:=$(call AutoLoad,08,imx-ldb)
+ endef
+ 
+diff --git a/package/kernel/linux/modules/virt.mk b/package/kernel/linux/modules/virt.mk
+index 59a2d79563dcb..85f47aacbf94f 100644
+--- a/package/kernel/linux/modules/virt.mk
++++ b/package/kernel/linux/modules/virt.mk
+@@ -104,7 +104,7 @@ define KernelPackage/vfio-pci
+ 	CONFIG_VFIO_PCI \
+ 	CONFIG_VFIO_PCI_IGD=y
+   FILES:= \
+-	$(LINUX_DIR)/drivers/vfio/pci/[email protected] \
++	$(LINUX_DIR)/drivers/vfio/pci/vfio-pci-core.ko \
+ 	$(LINUX_DIR)/drivers/vfio/pci/vfio-pci.ko
+   AUTOLOAD:=$(call AutoProbe,vfio-pci)
+ endef

+ 13 - 8
devices/rockchip_armv8/patches/r6s.patch

@@ -35,12 +35,13 @@
 
 --- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
 +++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
-@@ -19,9 +19,13 @@ rockchip_setup_interfaces()
+@@ -19,9 +19,14 @@ rockchip_setup_interfaces()
  	rocktech,mpc1903|\
  	sharevdi,guangmiao-g4c|\
  	xunlong,orangepi-r1-plus|\
 -	xunlong,orangepi-r1-plus-lts)
 +	xunlong,orangepi-r1-plus-lts|\
++	friendlyarm,nanopc-t6|\
 +	friendlyarm,nanopi-r6c)
  		ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
  		;;
@@ -72,7 +73,7 @@
 +		wan_mac=$(nanopi_get_mac wan 2-0051)
 +		lan_mac=$(nanopi_get_mac lan 2-0051)
 +		;;
-+	friendlyarm,nanopi-r6s|friendlyarm,nanopi-r6c)
++	friendlyarm,nanopi-r6s|friendlyarm,nanopi-r6c|friendlyarm,nanopc-t6)
 +		wan_mac=$(nanopi_get_mac wan 6-0053)
 +		lan_mac=$(nanopi_get_mac lan 6-0053)
  		;;
@@ -81,18 +82,22 @@
 
 --- a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
 +++ a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
-@@ -30,6 +30,15 @@ friendlyarm,nanopi-r5s)
+@@ -30,6 +30,19 @@ friendlyarm,nanopi-r5s)
  hinlink,opc-h68k)
  	ucidef_set_led_netdev "wan" "WAN" "blue:net" "eth0"
  	;;
 +friendlyarm,nanopi-r6s)
-+	ucidef_set_led_netdev "wan" "WAN" "wan_led" "eth2" "link"
-+	ucidef_set_led_netdev "lan1" "LAN1" "lan1_led" "eth1" "link"
-+	ucidef_set_led_netdev "lan2" "LAN2" "lan2_led" "eth0" "link"
++	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth2"
++	ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "eth1"
++	ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth0"
 +	;;
 +friendlyarm,nanopi-r6c)
-+	ucidef_set_led_netdev "wan" "WAN" "wan_led" "eth0" "link"
-+	ucidef_set_led_netdev "lan1" "LAN1" "lan1_led" "eth1" "link"
++	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
++	ucidef_set_led_netdev "lan1" "LAN1" "green:lan" "eth1"
++	;;
++friendlyarm,nanopc-t6)
++	ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
++	ucidef_set_led_netdev "lan1" "LAN1" "green:lan" "eth1"
 +	;;
  esac