garypang13 %!s(int64=4) %!d(string=hai) anos
pai
achega
f173ad447d

+ 1 - 3
README.md

@@ -48,9 +48,7 @@
 | NanoPi-R2S    | [📥](https://op.supes.top/firmware/nanopi-r2s/)     | 默认交换了网口,靠近电源口的是WAN口   |         |
 | NanoPi-R2S    | [📥](https://op.supes.top/firmware/nanopi-r2s/)     | 默认交换了网口,靠近电源口的是WAN口   |         |
 | NanoPi-R4S    | [📥](https://op.supes.top/firmware/nanopi-r4s/)     |             |
 | NanoPi-R4S    | [📥](https://op.supes.top/firmware/nanopi-r4s/)     |             |
 | Raspberry Pi 4B (树莓派4B)| [📥](https://op.supes.top/firmware/Rpi-4B/)         |   
 | Raspberry Pi 4B (树莓派4B)| [📥](https://op.supes.top/firmware/Rpi-4B/)         |   
-| Newifi-D2 (新路由3)      | [📥](https://op.supes.top/firmware/newifi-d2/)      |      |        |
-| Xiaomi-R3P (小米路由PRO)    | [📥](https://op.supes.top/firmware/xiaomi-r3p/)     |           |
-| XY-C5 (小娱-C5)         | [📥](https://op.supes.top/firmware/XY-C5/)          |           |
+| Newifi-D2 (新路由3)      | [📥](https://op.supes.top/firmware/newifi-d2/)      |      |        |       |           |
 
 
 
 
 后台入口 10.0.0.1  (若后台无法打开,请插拔交换wan,lan网线顺序.)
 后台入口 10.0.0.1  (若后台无法打开,请插拔交换wan,lan网线顺序.)

+ 0 - 42
devices/XY-C5/.config

@@ -1,42 +0,0 @@
-CONFIG_TARGET_ramips=y
-CONFIG_TARGET_ramips_mt7621=y
-CONFIG_TARGET_ramips_mt7621_DEVICE_xiaoyu_xy-c5=y
-
-CONFIG_KERNEL_MIPS_FPU_EMULATOR=y
-
-CONFIG_PACKAGE_luci-app-turboacc=y
-CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_natflow=y
-CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_shortcut-fe=n
-
-# 其他需要安装的软件包:
-
-CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
-CONFIG_PACKAGE_autocore-switch=y
-CONFIG_PACKAGE_luci-app-ramfree=y
-
-# USB3.0支持:
-CONFIG_PACKAGE_kmod-usb2=y
-CONFIG_PACKAGE_kmod-usb2-pci=y
-CONFIG_PACKAGE_kmod-usb3=y
-CONFIG_PACKAGE_kmod-usb-audio=y
-CONFIG_PACKAGE_kmod-usb-printer=y
-CONFIG_PACKAGE_automount=y
-CONFIG_PACKAGE_autosamba=y
-CONFIG_PACKAGE_autosamba-ksmbd=y
-#ksmbd
-CONFIG_PACKAGE_kmod-fs-ksmbd=y
-#nfs
-CONFIG_PACKAGE_kmod-fs-nfsd=y
-CONFIG_PACKAGE_kmod-fs-nfs=y
-CONFIG_PACKAGE_kmod-fs-nfs-v4=y
-#3G/4G Support
-CONFIG_PACKAGE_kmod-usb-serial=y
-CONFIG_PACKAGE_kmod-usb-serial-option=y
-CONFIG_PACKAGE_kmod-usb-serial-wwan=y
-CONFIG_PACKAGE_kmod-mii=y
-CONFIG_PACKAGE_kmod-usb-acm=y
-#Sound Support
-CONFIG_PACKAGE_kmod-sound-core=y
-CONFIG_PACKAGE_kmod-sound-hda-codec-realtek=y
-CONFIG_PACKAGE_kmod-sound-hda-intel=y
-CONFIG_PACKAGE_kmod-sound-hda-codec-hdmi=y

+ 0 - 14
devices/XY-C5/default-settings

@@ -1,14 +0,0 @@
-
-test $version -lt 2 && {
-	uci set system.@system[0].zram_size_mb='28'
-	uci set system.@system[0].zram_comp_algo='lz4'
-	uci commit system
-	version=2
-}
-
-uci set base_config.@status[0].version=$version
-uci commit base_config
-
-sed -i '1i src/gz openwrt_custom https://op.supes.top/packages/mipsel' /etc/opkg/distfeeds.conf
-
-exit 0

+ 0 - 0
devices/XY-C5/diy.sh


+ 0 - 19
devices/XY-C5/patches/tblsection.patch

@@ -1,19 +0,0 @@
---- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
-+++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
-@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
- 
- 			local isempty, section, i, k = true, nil, nil
- 		    for i, k in ipairs(self:cfgsections()) do
-+		    	if i <= 100 then
- 				isempty = false
- 				section = k
- 
-@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
- 				</td>
- 			<%- end -%>
- 		</tr>
-+			<%- i=i+1 -%>
-+			<%- end -%>
- 		<%- end -%>
- 
- 		<%- if isempty then -%>

+ 0 - 41
devices/xiaomi-r3p/.config

@@ -1,41 +0,0 @@
-CONFIG_TARGET_ramips=y
-CONFIG_TARGET_ramips_mt7621=y
-CONFIG_TARGET_ramips_mt7621_DEVICE_xiaomi_mir3p=y
-
-CONFIG_KERNEL_MIPS_FPU_EMULATOR=y
-
-CONFIG_PACKAGE_luci-app-turboacc=y
-CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_flow-offload=y
-CONFIG_PACKAGE_luci-app-turboacc_INCLUDE_shortcut-fe=n
-
-# 其他需要安装的软件包:
-CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
-CONFIG_PACKAGE_autocore-switch=y
-CONFIG_PACKAGE_luci-app-ramfree=y
-
-# USB3.0支持:
-CONFIG_PACKAGE_kmod-usb2=y
-CONFIG_PACKAGE_kmod-usb2-pci=y
-CONFIG_PACKAGE_kmod-usb3=y
-CONFIG_PACKAGE_kmod-usb-audio=y
-CONFIG_PACKAGE_kmod-usb-printer=y
-CONFIG_PACKAGE_automount=y
-CONFIG_PACKAGE_autosamba=y
-CONFIG_PACKAGE_autosamba-ksmbd=y
-#ksmbd
-CONFIG_PACKAGE_kmod-fs-ksmbd=y
-#nfs
-CONFIG_PACKAGE_kmod-fs-nfsd=y
-CONFIG_PACKAGE_kmod-fs-nfs=y
-CONFIG_PACKAGE_kmod-fs-nfs-v4=y
-#3G/4G Support
-CONFIG_PACKAGE_kmod-usb-serial=y
-CONFIG_PACKAGE_kmod-usb-serial-option=y
-CONFIG_PACKAGE_kmod-usb-serial-wwan=y
-CONFIG_PACKAGE_kmod-mii=y
-CONFIG_PACKAGE_kmod-usb-acm=y
-#Sound Support
-CONFIG_PACKAGE_kmod-sound-core=y
-CONFIG_PACKAGE_kmod-sound-hda-codec-realtek=y
-CONFIG_PACKAGE_kmod-sound-hda-intel=y
-CONFIG_PACKAGE_kmod-sound-hda-codec-hdmi=y

+ 0 - 15
devices/xiaomi-r3p/default-settings

@@ -1,15 +0,0 @@
-
-test $version -lt 2 && {
-	uci set system.@system[0].zram_size_mb='28'
-	uci set system.@system[0].zram_comp_algo='lz4'
-	uci commit system
-	version=2
-}
-
-uci set base_config.@status[0].version=$version
-uci commit base_config
-
-sed -i '1i src/gz openwrt_custom https://op.supes.top/packages/mipsel' /etc/opkg/distfeeds.conf
-
-
-exit 0

+ 0 - 6
devices/xiaomi-r3p/diy.sh

@@ -1,6 +0,0 @@
-rm -Rf target/linux/{ramips,generic}
-svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/ramips target/linux/ramips
-svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/generic target/linux/generic
-
-rm -rf include/kernel-version.mk
-wget -O include/kernel-version.mk https://raw.githubusercontent.com/coolsnowwolf/lede/master/include/kernel-version.mk

+ 0 - 19
devices/xiaomi-r3p/patches/tblsection.patch

@@ -1,19 +0,0 @@
---- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
-+++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
-@@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
- 
- 			local isempty, section, i, k = true, nil, nil
- 		    for i, k in ipairs(self:cfgsections()) do
-+		    	if i <= 100 then
- 				isempty = false
- 				section = k
- 
-@@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
- 				</td>
- 			<%- end -%>
- 		</tr>
-+			<%- i=i+1 -%>
-+			<%- end -%>
- 		<%- end -%>
- 
- 		<%- if isempty then -%>

+ 8 - 8
onekey/compile.sh

@@ -57,7 +57,7 @@ echo "
 
 
 7. newifi-d2
 7. newifi-d2
 
 
-8. XY-C5
+8. Rpi-4B
 
 
 9. Exit
 9. Exit
 
 
@@ -97,7 +97,7 @@ case $CHOOSE in
 	break
 	break
 	;;
 	;;
 	8)
 	8)
-		firmware="XY-C5"
+		firmware="Rpi-4B"
 	break
 	break
 	;;
 	;;
 	9)	exit 0
 	9)	exit 0
@@ -106,21 +106,21 @@ case $CHOOSE in
 esac
 esac
 done
 done
 
 
+git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
+svn co https://github.com/garypang13/OpenWrt/trunk/devices openwrt/devices
+
 if [[ $firmware =~ (redmi-ac2100|phicomm-k2p|newifi-d2|k2p-32m-usb|XY-C5|xiaomi-r3p) ]]; then
 if [[ $firmware =~ (redmi-ac2100|phicomm-k2p|newifi-d2|k2p-32m-usb|XY-C5|xiaomi-r3p) ]]; then
-		git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
-		svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
 		cd openwrt
 		cd openwrt
 		wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/ramips/mt7621/openwrt-sdk-21.02-SNAPSHOT-ramips-mt7621_gcc-8.4.0_musl.Linux-x86_64.tar.xz
 		wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/ramips/mt7621/openwrt-sdk-21.02-SNAPSHOT-ramips-mt7621_gcc-8.4.0_musl.Linux-x86_64.tar.xz
 elif [[ $firmware =~ (nanopi-r2s|nanopi-r4s) ]]; then
 elif [[ $firmware =~ (nanopi-r2s|nanopi-r4s) ]]; then
-		git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
-		svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
 		cd openwrt
 		cd openwrt
 		wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/rockchip/armv8/openwrt-sdk-21.02-SNAPSHOT-rockchip-armv8_gcc-8.4.0_musl.Linux-x86_64.tar.xz
 		wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/rockchip/armv8/openwrt-sdk-21.02-SNAPSHOT-rockchip-armv8_gcc-8.4.0_musl.Linux-x86_64.tar.xz
 elif [[ $firmware == "x86_64" ]]; then
 elif [[ $firmware == "x86_64" ]]; then
-		git clone -b openwrt-21.02 --depth 1 https://github.com/openwrt/openwrt
-		svn co https://github.com/garypang13/Actions-OpenWrt/trunk/devices openwrt/devices
 		cd openwrt
 		cd openwrt
 		wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/x86/64/openwrt-sdk-21.02-SNAPSHOT-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
 		wget -cO sdk.tar.xz https://mirrors.cloud.tencent.com/openwrt/releases/21.02-SNAPSHOT/targets/x86/64/openwrt-sdk-21.02-SNAPSHOT-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
+elif [[ $firmware == "Rpi-4B" ]]; then
+		cd openwrt
+		wget -cO sdk.tar.xz https://downloads.openwrt.org/releases/21.02-SNAPSHOT/targets/bcm27xx/bcm2711/openwrt-sdk-21.02-SNAPSHOT-bcm27xx-bcm2711_gcc-8.4.0_musl.Linux-x86_64.tar.xz
 fi
 fi
 
 
 
 

+ 2 - 2
onekey/recompile.sh

@@ -40,8 +40,8 @@ elif [ $firmware == "friendlyarm_nanopi-r2s" ]; then
 	firmware="nanopi-r2s"
 	firmware="nanopi-r2s"
 elif [ $firmware == "friendlyarm_nanopi-r4s" ]; then
 elif [ $firmware == "friendlyarm_nanopi-r4s" ]; then
 	firmware="nanopi-r4s"
 	firmware="nanopi-r4s"
-elif [ $firmware == "xiaoyu_xy-c5" ]; then
-	firmware="XY-C5"
+elif [ $firmware == "rpi-4" ]; then
+	firmware="Rpi-4B"
 elif [ $firmware == "d-team_newifi-d2" ]; then
 elif [ $firmware == "d-team_newifi-d2" ]; then
 	firmware="newifi-d2"
 	firmware="newifi-d2"
 else
 else