kiddin9 2 éve
szülő
commit
fbc9c6b997

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

@@ -72,6 +72,8 @@ jobs:
             echo "MTARGET=aarch64_cortex-a53" >> $GITHUB_ENV
         elif [[ ${{matrix.target}} =~ (ramips_mt7621|ramips_mt7620|ramips_mt76x8) ]]; then
             echo "MTARGET=mipsel_24kc" >> $GITHUB_ENV
+        elif [[ ${{matrix.target}} == "ath79_nand" ]]; then
+            echo "MTARGET=mips_24kc" >> $GITHUB_ENV
         elif [[ ${{matrix.target}} =~ (ipq40xx_generic|bcm27xx_bcm2709|sunxi_cortexa7) ]]; then
             echo "MTARGET=arm_cortex-a7_neon-vfpv4" >> $GITHUB_ENV
         elif [[ ${{matrix.target}} == "meson_meson8b" ]]; then

+ 5 - 0
.github/workflows/repo-dispatcher.yml

@@ -183,4 +183,9 @@ jobs:
           -H "Accept: application/vnd.github.everest-preview+json" \
           -H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
           -d '{"event_type": "sunxi_cortexa7 ${{ github.event.inputs.param }}", "client_payload": {"target": "sunxi_cortexa7"}}'
+          curl \
+          -X POST https://api.github.com/repos/${{ github.repository }}/dispatches \
+          -H "Accept: application/vnd.github.everest-preview+json" \
+          -H "Authorization: token ${{ secrets.REPO_TOKEN }}" \
+          -d '{"event_type": "ath79_nand ${{ github.event.inputs.param }}", "client_payload": {"target": "ath79_nand"}}'
 

+ 1 - 1
README.md

@@ -1,5 +1,5 @@
 #### 一分钟在线编译定制专属固件: [supes.top](https://supes.top)
-#### 支持150+设备:
+#### 支持200+设备:
 X86/64, 友善 NanoPi、R2S、R4S、R4SE、R5S、R2C、NEO3, 斐讯 N1、K2P、K3, 树莓派 4B、3B/3B+、2B, 电犀牛r68s、r66s, 香橙派 R1 Plus、R1 Plus LTS, 红米AX6, 小米AX3600, 小米AX9000, 红米AX6S/小米AX3200, 红米AC2100, 小米AC2100, 斐讯K3,  360V6, 玩客云, 极路由 HIWIFI HC5962(极路由4、B70)、HC5661A、HC5761A、HC5861B, 小米4, 小米 R3G, 小米 R3P, newifi-d2 (新路由3), 小娱XY-C5, 竞斗云2.0(P&W R619AC), GL.iNet GL-MT1300、GL-AX1800、GL-AXT1800、GL-microuter-N300、GL-MT300N V2, 小米CR660X(CR6606/CR6608/CR6609), 小米4A千兆版, 小米 R3G-v2, 小米青春版Nano, 迅雷下载宝 timecloud, 优酷 yk-l2, 有华 wr1200js, 向日葵 X3A, 华硕 ASUS RT-ACRH17、RT-AC58u/RT-ACRH13、RT-ac85p、RT-n56u-b1、RT-AC88U、RT-AC1200、RT-AC1200 V2, 网件 NETGEAR R6220、R6260、R6120、R6700-v2、R6800、R6850、R6900-v2、R7450、wndr3700-v5, H1 Box, 贝壳云P1, 我家云lL Pro, x96 Max, 微加云V-Plus, 章鱼星球ZYXQ, GT-King, Odroid N2, MXQ Pro+, 京东无线宝JDCloud RE-SP-01B, Linksys WRT1200AC、WRT1900AC v1、WRT1900AC v2、WRT3200ACM、WRT1900ACS v1、WRT1900ACS v2、WRT32X、EA7500 v2 等
 
 [1]: https://img.shields.io/badge/license-GPLV2-brightgreen.svg

+ 21 - 0
devices/ath79_nand/.config

@@ -0,0 +1,21 @@
+
+CONFIG_TARGET_ath79=y
+CONFIG_TARGET_ath79_nand=y
+CONFIG_TARGET_MULTI_PROFILE=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-ar300m-nand=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-ar750s-nor-nand=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-e750=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_glinet_gl-xe300=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_r6100=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr3700-v4=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300-v2=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300sw=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4300tn=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_netgear_wndr4500-v3=y
+CONFIG_TARGET_DEVICE_ath79_nand_DEVICE_zte_mf286=y
+
+CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
+
+
+

+ 10 - 0
devices/ath79_nand/diy.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+shopt -s extglob
+
+SHELL_FOLDER=$(dirname $(readlink -f "$0"))
+#bash $SHELL_FOLDER/../common/kernel_5.15.sh
+
+
+
+

+ 1 - 1
devices/bcm27xx_bcm2708/diy.sh

@@ -2,7 +2,7 @@
 
 sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152-vendor/' target/linux/bcm27xx/Makefile
 
-sed -i 's/factory.img.gz //' target/linux/bcm27xx/image/Makefile
+sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile
 
 SHELL_FOLDER=$(dirname $(readlink -f "$0"))
 #bash $SHELL_FOLDER/../common/kernel_5.15.sh

+ 2 - 1
devices/bcm27xx_bcm2709/diy.sh

@@ -2,8 +2,9 @@
 
 sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152-vendor/' target/linux/bcm27xx/Makefile
 
-sed -i 's/factory.img.gz //' target/linux/bcm27xx/image/Makefile
+sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile
 
 SHELL_FOLDER=$(dirname $(readlink -f "$0"))
 #bash $SHELL_FOLDER/../common/kernel_5.15.sh
 
+

+ 8 - 2
devices/bcm27xx_bcm2710/diy.sh

@@ -2,7 +2,13 @@
 
 sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152-vendor/' target/linux/bcm27xx/Makefile
 
-sed -i 's/factory.img.gz //' target/linux/bcm27xx/image/Makefile
+sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile
 
 SHELL_FOLDER=$(dirname $(readlink -f "$0"))
-#bash $SHELL_FOLDER/../common/kernel_5.15.sh
+bash $SHELL_FOLDER/../common/kernel_5.15.sh
+
+mkdir -p files/lib/firmware/brcm
+wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436-sdio.bin
+wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436-sdio.txt
+wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436s-sdio.bin
+wget -P files/lib/firmware/brcm/ https://github.com/RPi-Distro/firmware-nonfree/raw/bullseye/debian/config/brcm80211/brcm/brcmfmac43436s-sdio.txt

+ 11 - 0
devices/bcm27xx_bcm2710/patches/Zero-2.patch

@@ -0,0 +1,11 @@
+--- a/target/linux/bcm27xx/image/Makefile
++++ b/target/linux/bcm27xx/image/Makefile
+@@ -122,7 +122,7 @@ define Device/rpi-3
+   DEVICE_MODEL := 3B/3B+/CM3
+   DEVICE_VARIANT := (64bit)
+   DEVICE_ALT0_VENDOR := Raspberry Pi
+-  DEVICE_ALT0_MODEL := 2B-1.2
++  DEVICE_ALT0_MODEL := 2B-1.2/Zero 2/Zero 2W
+   DEVICE_ALT0_VARIANT := (64bit)
+   KERNEL_IMG := kernel8.img
+   DEVICE_DTS := \

+ 1 - 1
devices/bcm27xx_bcm2711/diy.sh

@@ -2,7 +2,7 @@
 
 sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152-vendor/' target/linux/bcm27xx/Makefile
 
-sed -i 's/factory.img.gz //' target/linux/bcm27xx/image/Makefile
+sed -i 's/ factory.img.gz / /' target/linux/bcm27xx/image/Makefile
 
 SHELL_FOLDER=$(dirname $(readlink -f "$0"))
 bash $SHELL_FOLDER/../common/kernel_5.15.sh

+ 2 - 0
devices/common/diy.sh

@@ -57,6 +57,8 @@ sed -i "s/tty\(0\|1\)::askfirst/tty\1::respawn/g" target/linux/*/base-files/etc/
 sed -i '$a CONFIG_ACPI=y\nCONFIG_X86_ACPI_CPUFREQ=y\nCONFIG_NR_CPUS=128\nCONFIG_FAT_DEFAULT_IOCHARSET="utf8"\nCONFIG_CRYPTO_CHACHA20_NEON=y\n \
 CONFIG_CRYPTO_CHACHA20POLY1305=y\nCONFIG_BINFMT_MISC=y' `find target/linux -path "target/linux/*/config-*"`
 
+sh -c "curl -sfL https://github.com/openwrt/openwrt/commit/2e6d19ee32399e37c7545aefc57d41541a406d55.patch | patch -d './' -p1 --forward" || true
+
 sed -i '$a  \
 CONFIG_CPU_FREQ_GOV_POWERSAVE=y \
 CONFIG_CPU_FREQ_GOV_USERSPACE=y \

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

@@ -39,7 +39,7 @@
  	echo
  	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-3g-v2|DEVICE_asus_rt-ac1200|DEVICE_asus_rt-ac1200-v2|DEVICE_glinet_gl-mt300n-v2|DEVICE_glinet_microuter-n300|DEVICE_hiwifi_hc5661a|DEVICE_hiwifi_hc5761a|DEVICE_hiwifi_hc5861b|DEVICE_netgear_r6120|DEVICE_xiaomi_miwifi-nano|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) ]]; then \
++	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-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) || "$(TARGETID)" == "ramips/mt76x8" ]]; then \
 +		echo "src/gz openwrt_smflash https://op.supes.top/packages/mipsel_24kc/small_flash" >>$(TOPDIR)/repositories.conf; \
 +	else \
 +		sed -i "/smflash/d" $(TOPDIR)/repositories.conf; \
@@ -75,7 +75,7 @@
  		) \
  	)
  	$(call prepare_rootfs,$(TARGET_DIR),$(USER_FILES),$(DISABLED_SERVICES))
-+	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-3g-v2|DEVICE_asus_rt-ac1200|DEVICE_asus_rt-ac1200-v2|DEVICE_glinet_gl-mt300n-v2|DEVICE_glinet_microuter-n300|DEVICE_hiwifi_hc5661a|DEVICE_hiwifi_hc5761a|DEVICE_hiwifi_hc5861b|DEVICE_netgear_r6120|DEVICE_xiaomi_miwifi-nano|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) ]]; then \
++	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-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) || "$(TARGETID)" == "ramips/mt76x8" ]]; then \
 +		echo "src/gz openwrt_smflash https://op.supes.top/packages/mipsel_24kc/small_flash" >>$(BUILD_DIR)/root-ramips/etc/opkg/distfeeds.conf; \
 +	fi
  

+ 1 - 2
devices/ramips_mt7621/diy.sh

@@ -2,7 +2,6 @@
 
 shopt -s extglob
 
-sed -i "s/DEVICE_MODEL := HC5962$/DEVICE_MODEL := HC5962\/B70/" target/linux/ramips/image/mt7621.mk
-
+sed -i "s/DEVICE_MODEL := HC5962$/DEVICE_MODEL := HC5962 \/ B70/" target/linux/ramips/image/mt7621.mk
 
 

+ 1 - 0
devices/ramips_mt76x8/.config

@@ -10,6 +10,7 @@ CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_glinet_microuter-n300=y
 CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5661a=y
 CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5761a=y
 CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5861b=y
+CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_hiwifi_hc5611=y
 CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_netgear_r6120=y
 CONFIG_TARGET_DEVICE_ramips_mt76x8_DEVICE_xiaomi_miwifi-nano=y
 

+ 2 - 0
devices/ramips_mt76x8/diy.sh

@@ -5,6 +5,8 @@ shopt -s extglob
 SHELL_FOLDER=$(dirname $(readlink -f "$0"))
 #bash $SHELL_FOLDER/../common/kernel_5.15.sh
 
+#sh -c "curl -sfL https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/11287.patch | patch -d './' -p1 --forward"
+
 #curl -sfL https://raw.githubusercontent.com/x-wrt/x-wrt/master/target/linux/mediatek/patches-5.15/995-0001-hwnat-add-natflow-flow-offload-support.patch -o target/linux/ramips/patches-5.15/995-0001-hwnat-add-natflow-flow-offload-support.patch
 
 #svn export --force https://github.com/x-wrt/x-wrt/trunk/target/linux/ramips/files/drivers/net/ethernet/ralink target/linux/ramips/files/drivers/net/ethernet/ralink

+ 140 - 0
devices/ramips_mt76x8/patches/hc5611.patch

@@ -0,0 +1,140 @@
+From 1a9e3658471433376dc3896b549aade18bd6a373 Mon Sep 17 00:00:00 2001
+From: Senis <[email protected]>
+Date: Sat, 19 Nov 2022 11:30:54 +0800
+Subject: [PATCH] ramips: add support for HiWiFi HC5611
+
+### Hardware:
+CPU: MediaTek MT7628AN @ 575 MHz
+Flash: 16 MB
+RAM: 128 MB
+Ethernet: 10/100Mbps x 1
+Wlan: 300 Mbps
+USB: USB 2.0 x 1
+LED: red/green x 1
+Button: reset x 1
+
+### Installation
+
+1. Open https://www.hiwifi.wtf/, Get Cloud token and unlock ssh
+2. Upload the openwrt firmware to the router via SCP
+3. Login the router via SSH
+4. Run `mtd -r write path_to_firmware.bin firmware`
+
+### Others
+I have tested on my device.
+```
+- The LED will display RED on power-on, After system start completed, trun GREEN
+- Reset button working now. Long press after 5s will reset factory. Short press less 1s will reboot the device
+- USB can working under official u-boot
+```
+
+Signed-off-by: Senis Y <[email protected]>
+---
+ .../ramips/dts/mt7628an_hiwifi_hc5611.dts     | 29 +++++++++++++++++++
+ target/linux/ramips/image/mt76x8.mk           |  8 +++++
+ .../mt76x8/base-files/etc/board.d/01_leds     |  3 ++
+ .../mt76x8/base-files/etc/board.d/02_network  |  2 ++
+ .../etc/hotplug.d/ieee80211/10_fix_wifi_mac   |  1 +
+ 5 files changed, 43 insertions(+)
+ create mode 100644 target/linux/ramips/dts/mt7628an_hiwifi_hc5611.dts
+
+diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5611.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5611.dts
+new file mode 100644
+index 0000000000000..10b12f16a89f6
+--- /dev/null
++++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5611.dts
+@@ -0,0 +1,29 @@
++#include "mt7628an_hiwifi_hc5x61a.dtsi"
++
++/ {
++	compatible = "hiwifi,hc5611", "mediatek,mt7628an-soc";
++	model = "HiWiFi HC5611";
++
++	leds {
++		compatible = "gpio-leds";
++
++		led_system: system {
++			label = "green:system";
++			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
++			default-state = "on";
++		};
++
++		internet {
++			label = "red:internet";
++			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
++		};
++	};
++
++};
++
++&state_default {
++	gpio {
++		groups = "i2c", "refclk", "wdt", "wled_an";
++		function = "gpio";
++	};
++};
+diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
+index 5e8d05b04283f..1b7e786b52b88 100644
+--- a/target/linux/ramips/image/mt76x8.mk
++++ b/target/linux/ramips/image/mt76x8.mk
+@@ -243,6 +243,14 @@ define Device/hilink_hlk-7688a
+ endef
+ TARGET_DEVICES += hilink_hlk-7688a
+ 
++define Device/hiwifi_hc5611
++  IMAGE_SIZE := 15808k
++  DEVICE_VENDOR := HiWiFi
++  DEVICE_MODEL := GO (HC5611)
++  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
++endef
++TARGET_DEVICES += hiwifi_hc5611
++
+ define Device/hiwifi_hc5661a
+   IMAGE_SIZE := 15808k
+   DEVICE_VENDOR := HiWiFi
+diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
+index 8a21756225acf..66628cea09f8d 100644
+--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
++++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
+@@ -46,6 +46,9 @@ skylab,skw92a)
+ hilink,hlk-7688a)
+ 	ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
+ 	;;
++hiwifi,hc5611)
++	ucidef_set_led_netdev "internet" "internet" "red:internet" "br-lan" "tx rx"
++	;;
+ hiwifi,hc5661a|\
+ hiwifi,hc5761a)
+ 	ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x10"
+diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+index 38ff38bac5fea..d85cdf3db7fac 100644
+--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
++++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+@@ -14,6 +14,7 @@ ramips_setup_interfaces()
+ 	glinet,microuter-n300|\
+ 	glinet,vixmini|\
+ 	hak5,wifi-pineapple-mk7|\
++	hiwifi,hc5611|\
+ 	mediatek,linkit-smart-7688|\
+ 	minew,g1-c|\
+ 	onion,omega2p|\
+@@ -226,6 +227,7 @@ ramips_setup_macs()
+ 	zyxel,keenetic-extra-ii)
+ 		wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1)
+ 		;;
++	hiwifi,hc5611|\
+ 	hiwifi,hc5661a|\
+ 	hiwifi,hc5761a|\
+ 	hiwifi,hc5861b)
+diff --git a/target/linux/ramips/mt76x8/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ramips/mt76x8/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
+index b8f8faee9ca28..c9e205a0fc143 100644
+--- a/target/linux/ramips/mt76x8/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
++++ b/target/linux/ramips/mt76x8/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
+@@ -10,6 +10,7 @@ PHYNBR=${DEVPATH##*/phy}
+ board=$(board_name)
+ 
+ case "$board" in
++	hiwifi,hc5611|\
+ 	hiwifi,hc5661a|\
+ 	hiwifi,hc5761a|\
+ 	hiwifi,hc5861b)

+ 10 - 0
devices/ramips_mt76x8/patches/small_flash.patch

@@ -0,0 +1,10 @@
+--- a/target/linux/ramips/Makefile
++++ b/target/linux/ramips/Makefile
+@@ -17,6 +17,6 @@ define Target/Description
+ endef
+ 
+ include $(INCLUDE_DIR)/target.mk
+-DEFAULT_PACKAGES += kmod-leds-gpio kmod-gpio-button-hotplug
++DEFAULT_PACKAGES += kmod-leds-gpio kmod-gpio-button-hotplug wpad-mini -wpad-basic-wolfssl -coremark -htop -bash -openssh-sftp-server
+ 
+ $(eval $(call BuildTarget))

+ 0 - 1
devices/rockchip_armv8/diy.sh

@@ -12,7 +12,6 @@ svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/rockchip target/l
 rm -rf target/linux/rockchip/{.svn,patches-5.15/.svn}
 svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/rockchip/patches-5.15 target/linux/rockchip/patches-5.15
 rm -rf target/linux/rockchip/patches-5.15/{002-net-usb*,003-dt-bindings*,006-rockchip-rk3399*}
-svn export --force https://github.com/friendlyarm/friendlywrt/trunk/target/linux/rockchip/armv8/base-files/etc/modules.d target/linux/rockchip/armv8/base-files/etc/modules.d
 
 curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk