kiddin9 2 سال پیش
والد
کامیت
9125989fac

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

@@ -69,7 +69,7 @@ jobs:
         elif [ ${{matrix.target}} == "x86_generic" ]; then
             echo "ARCH=linux/amd32" >> $GITHUB_ENV
             echo "MTARGET=x86_generic" >> $GITHUB_ENV
-        elif [[ ${{matrix.target}} =~ (armvirt_64|ipq807x_generic|mediatek_mt7622|mediatek_mt7981|mediatek_filogic|bcm27xx_bcm2710|ipq60xx_generic|ipq60xx_ipq60xx_64|bcm4908_generic|sunxi_cortexa53) ]]; then
+        elif [[ ${{matrix.target}} =~ (armvirt_64|ipq807x_generic|mediatek_mt7622|mediatek_mt7981|mediatek_filogic|bcm27xx_bcm2710|ipq60xx_generic|bcm4908_generic|sunxi_cortexa53) ]]; then
             echo "MTARGET=aarch64_cortex-a53" >> $GITHUB_ENV
         elif [[ ${{matrix.target}} =~ (ramips_mt7621|ramips_mt7620|ramips_mt76x8) ]]; then
             echo "MTARGET=mipsel_24kc" >> $GITHUB_ENV
@@ -165,6 +165,7 @@ jobs:
         cp -rf devices/${{matrix.target}}/. openwrt/
         cp -rf devices openwrt/
         cd openwrt
+        cp -Rf ./diy/* ./ || true
         chmod +x devices/common/$DIY_SH
         /bin/bash "devices/common/$DIY_SH"
         cp -f devices/common/$CONFIG_FILE .config
@@ -177,7 +178,6 @@ jobs:
           echo "/bin/bash devices/${{matrix.target}}/$DIY_SH"
           /bin/bash "devices/${{matrix.target}}/$DIY_SH"
         fi
-        cp -Rf ./diy/* ./ || true
 
     - name: Apply patches
       run: |

+ 9 - 0
devices/armsr_armv8/patches/enable_wifi.patch

@@ -0,0 +1,9 @@
+--- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
++++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
+@@ -213,5 +213,6 @@ detect_mac80211() {
+ 			set wireless.default_${name}.encryption=none
+ EOF
+ 		uci -q commit wireless
++		wifi reload
+ 	done
+ }

+ 2 - 0
devices/common/diy.sh

@@ -60,6 +60,8 @@ grep -q 'PKG_RELEASE:=9' package/libs/openssl/Makefile && {
 sh -c "curl -sfL https://github.com/openwrt/openwrt/commit/a48d0bdb77eb93f7fba6e055dace125c72755b6a.patch | patch -d './' -p1 --forward"
 }
 
+sed -i "/wireless.${name}.disabled/d" package/kernel/mac80211/files/lib/wifi/mac80211.sh
+
 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/*

+ 0 - 17
devices/common/patches/enable_wifi.patch

@@ -1,17 +0,0 @@
---- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
-+++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
-@@ -203,7 +203,6 @@ detect_mac80211() {
- 			set wireless.${name}.channel=${channel}
- 			set wireless.${name}.band=${mode_band}
- 			set wireless.${name}.htmode=$htmode
--			set wireless.${name}.disabled=1
- 
- 			set wireless.default_${name}=wifi-iface
- 			set wireless.default_${name}.device=${name}
-@@ -213,5 +212,6 @@ detect_mac80211() {
- 			set wireless.default_${name}.encryption=none
- EOF
- 		uci -q commit wireless
-+  		wifi reload
- 	done
- }

+ 0 - 67
devices/ipq60xx_generic/.config

@@ -1,67 +0,0 @@
-
-CONFIG_TARGET_ipq60xx=y
-CONFIG_TARGET_ipq60xx_generic=y
-CONFIG_TARGET_MULTI_PROFILE=y
-CONFIG_TARGET_ALL_PROFILES=y
-CONFIG_TARGET_DEVICE_ipq60xx_generic_DEVICE_glinet_gl-ax1800=n
-CONFIG_TARGET_DEVICE_ipq60xx_generic_DEVICE_glinet_gl-axt1800=n
-
-CONFIG_TARGET_ROOTFS_INITRAMFS=n
-
-CONFIG_PACKAGE_perf=n
-
-CONFIG_GCC_USE_VERSION_7=y
-CONFIG_PACKAGE_kmod-dm-raid=n
-CONFIG_PACKAGE_kmod-dm=n
-CONFIG_PACKAGE_kmod-fs-xfs=n
-CONFIG_PACKAGE_kmod-fs-btrfs=n
-CONFIG_PACKAGE_kmod-qca-nss-drv-bridge-mgr=n
-CONFIG_PACKAGE_kmod-qca-nss-drv-vlan-mgr=n
-CONFIG_PACKAGE_kmod-drm-ttm=n
-CONFIG_PACKAGE_kmod-drm-kms-helper=n
-CONFIG_PACKAGE_kmod-gigaset=n
-CONFIG_PACKAGE_kmod-isdn4linux=n
-CONFIG_PACKAGE_kmod-video-pwc=n
-CONFIG_PACKAGE_kmod-mmc-spi=n
-CONFIG_PACKAGE_kmod-scsi-cdrom=n
-CONFIG_PACKAGE_kmod-scsi-generic=n
-CONFIG_PACKAGE_kmod-scsi-tape=n
-CONFIG_PACKAGE_kmod-sound-core=n
-CONFIG_PACKAGE_kmod-iio-hmc5843=n
-CONFIG_PACKAGE_kmod-ledtrig-netdev=n
-CONFIG_PACKAGE_kmod-tg3=n
-CONFIG_PACKAGE_kmod-be2net=n
-CONFIG_PACKAGE_kmod-bmp085-spi=n
-CONFIG_PACKAGE_kmod-mac80211-hwsim=n
-CONFIG_PACKAGE_kmod-ath3k=n
-CONFIG_PACKAGE_kmod-ath5k=n
-CONFIG_PACKAGE_kmod-ath6kl-sdio=n
-CONFIG_PACKAGE_kmod-ath6kl-usb=n
-CONFIG_PACKAGE_kmod-ath9k=n
-CONFIG_PACKAGE_kmod-ath10k=n
-CONFIG_PACKAGE_kmod-ath10k-ct=n
-CONFIG_PACKAGE_kmod-ath10k-ct-smallbuffers=n
-CONFIG_PACKAGE_kmod-crypto-qcrypto=n
-CONFIG_PACKAGE_kmod-gl-mifi-mcu=n
-CONFIG_PACKAGE_kmod-mdio-netlink=n
-CONFIG_PACKAGE_kmod-nf-nathelper-extra=n
-CONFIG_PACKAGE_kmod-nf-ipvs-sip=n
-CONFIG_PACKAGE_kmod-nf-nathelper-extra=n
-CONFIG_PACKAGE_kmod-usb-serial-xr_usb_serial_common=n
-CONFIG_PACKAGE_kmod-ovpn-dco=n
-CONFIG_PACKAGE_spidev-test=n
-CONFIG_PACKAGE_kmod-lib80211=n
-CONFIG_PACKAGE_kmod-carl9170=n
-CONFIG_PACKAGE_kmod-batman-adv=n
-CONFIG_PACKAGE_kmod-rtl8812au-ct=n
-CONFIG_PACKAGE_kmod-rtl8821cu=n
-CONFIG_PACKAGE_kmod-rtl88x2bu=n
-CONFIG_PACKAGE_kmod-pf-ring=n
-CONFIG_PACKAGE_kmod-netatop=n
-
-
-CONFIG_SECCOMP=n
-
-CONFIG_PACKAGE_luci-ssl=y # uhttpd服务
-
-

+ 0 - 1
devices/ipq60xx_generic/README.md

@@ -1 +0,0 @@
-Kernel等部分源码来源 https://github.com/coolsnowwolf/openwrt-gl-ax1800 感谢

+ 0 - 48
devices/ipq60xx_generic/diy.sh

@@ -1,48 +0,0 @@
-#!/bin/bash
-shopt -s extglob
-
-rm -rf package/boot/uboot-envtools package/kernel package/firmware/ath11k* package/qca target/linux/generic target/linux/ipq60xx package/network/config/netifd feeds/kiddin9/fullconenat toolchain tools/squashfskit4
-svn export --force https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/package/boot/uboot-envtools package/boot/uboot-envtools
-svn export --force https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/package/firmware/ath11k-firmware package/firmware/ath11k-firmware
-svn export --force https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/package/qca package/qca
-
-svn co https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/target/linux/generic target/linux/generic
-svn co https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/target/linux/ipq60xx target/linux/ipq60xx
-wget -P dl/ https://github.com/coolsnowwolf/openwrt-gl-ax1800/raw/master/dl/linux-4.4.60.tar.xz
-svn co https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/package/kernel package/kernel
-svn co https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/package/network/services/fullconenat feeds/kiddin9/fullconenat
-svn co https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/package/network/config/netifd package/network/config/netifd
-svn co https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/toolchain toolchain
-svn co https://github.com/coolsnowwolf/openwrt-gl-ax1800/trunk/tools/squashfskit4 tools/squashfskit4
-rm -rf target/linux/generic/files
-rm -rf package/network/config/netifd/patches
-
-sed -i "s/PKG_SOURCE_DATE:=.*/PKG_SOURCE_DATE:=2024-12-06/" package/network/config/netifd/Makefile
-
-curl -sfL https://raw.githubusercontent.com/coolsnowwolf/openwrt-gl-ax1800/master/include/netfilter.mk -o include/netfilter.mk
-curl -sfL https://raw.githubusercontent.com/coolsnowwolf/openwrt-gl-ax1800/master/include/quilt.mk -o include/quilt.mk
-
-rm -rf toolchain/.svn
-rm -rf feeds/kiddin9/{rtl*,fullconenat-nft,shortcut-fe,netifd} package/kernel/mt76 toolchain/musl package/feeds/packages/{xtables-addons,openvswitch} package/libs/elfutils package/utils/util-linux package/feeds/luci/ucode-mod-html package/libs/openssl package/network/utils/iptables package/feeds/packages/v4l2loopback package/feeds/packages/jool package/network/utils/uqmi devices/common/patches/mt7922.patch
-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/toolchain/glibc toolchain/glibc
-svn co https://github.com/openwrt/openwrt/branches/openwrt-22.03/package/libs/elfutils package/libs/elfutils
-svn co https://github.com/openwrt/openwrt/branches/openwrt-22.03/package/utils/util-linux package/utils/util-linux
-svn co https://github.com/openwrt/openwrt/branches/openwrt-22.03/package/libs/openssl package/libs/openssl
-svn co https://github.com/openwrt/openwrt/branches/openwrt-22.03/package/network/utils/iptables package/network/utils/iptables
-svn co https://github.com/openwrt/openwrt/branches/openwrt-22.03/package/network/utils/uqmi package/network/utils/uqmi
-
-sed -i "s/5.4.0/4.4.0/" toolchain/glibc/common.mk
-
-echo '
-CONFIG_PNP_DEBUG_MESSAGES=y
-CONFIG_PINCTRL_BAYTRAIL=n
-CONFIG_PINCTRL_CHERRYVIEW=n
-CONFIG_PINCTRL_BROXTON=n
-CONFIG_PINCTRL_SUNRISEPOINT=n
-CONFIG_PINCTRL_QDF2XXX=n
-CONFIG_GPIO_AMDPT=n
-CONFIG_PCC=n
-CONFIG_PMIC_OPREGION=n
-CCONFIG_RYPTO_CRC32_ARM64=n
-' >> ./target/linux/ipq60xx/config-4.4

+ 0 - 2
devices/ipq60xx_generic/diy/include/kernel-4.4

@@ -1,2 +0,0 @@
-LINUX_VERSION-4.4 = .60
-LINUX_KERNEL_HASH-4.4.60 = 10f619f7f9ab9f2776d0e34d37138b1ca14e9a026b91790dbdb1eb6c8d15edc6

BIN
devices/ipq60xx_generic/diy/package/firmware/ath11k-firmware/files/board-2.bin.IPQ6018


+ 0 - 11
devices/ipq60xx_generic/diy/package/system/fstools/patches/fix.patch

@@ -1,11 +0,0 @@
---- a/libfstools/overlay.c
-+++ b/libfstools/overlay.c
-@@ -33,4 +33,8 @@
- #define SWITCH_JFFS2 "/tmp/.switch_jffs2"
- 
-+#ifndef GLOB_ONLYDIR
-+#define GLOB_ONLYDIR 0
-+#endif
-+
- static bool keep_sysupgrade;
- 

+ 0 - 117
devices/ipq60xx_generic/patches/fix.patch

@@ -1,117 +0,0 @@
---- a/rules.mk
-+++ b/rules.mk
-@@ -136,8 +136,12 @@ else
-   TOOLCHAIN_DIR_NAME:=toolchain-$(GNU_TARGET_NAME)
- endif
- 
--ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_TARGET_uml)),)
--  iremap = -f$(if $(CONFIG_REPRODUCIBLE_DEBUG_INFO),file,macro)-prefix-map=$(1)=$(2)
-+ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),)
-+  ifeq ($(CONFIG_GCC_USE_EMBEDDED_PATH_REMAP),y)
-+    iremap = -fmacro-prefix-map=$(1)=$(2)
-+  else
-+    iremap = -iremap$(1):$(2)
-+  endif
- endif
- 
- PACKAGE_DIR:=$(BIN_DIR)/packages
-
---- a/include/image.mk
-+++ b/include/image.mk
-@@ -159,9 +159,6 @@ DTC_WARN_FLAGS := \
-   -Wno-graph_port \
-   -Wno-unique_unit_address
- 
--DTC_FLAGS += $(DTC_WARN_FLAGS)
--DTCO_FLAGS += $(DTC_WARN_FLAGS)
--
- define Image/pad-to
- 	dd if=$(1) of=$(1).new bs=$(2) conv=sync
- 	mv $(1).new $(1)
-
---- a/package/network/utils/iptables/Makefile
-+++ b/package/network/utils/iptables/Makefile
-@@ -784,7 +784,6 @@ $(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m)))
- $(eval $(call BuildPlugin,iptables-mod-hashlimit,$(IPT_HASHLIMIT-m)))
- $(eval $(call BuildPlugin,iptables-mod-rpfilter,$(IPT_RPFILTER-m)))
- $(eval $(call BuildPlugin,iptables-mod-led,$(IPT_LED-m)))
--$(eval $(call BuildPlugin,iptables-mod-socket,$(IPT_SOCKET-m)))
- $(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m)))
- $(eval $(call BuildPlugin,iptables-mod-tee,$(IPT_TEE-m)))
- $(eval $(call BuildPlugin,iptables-mod-u32,$(IPT_U32-m)))
-
---- a/include/target.mk
-+++ b/include/target.mk
-@@ -147,10 +147,17 @@ ifneq ($(TARGET_BUILD)$(if $(DUMP),,1),)
- endif
- 
- GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic
-+ifeq ($(CONFIG_TARGET_ipq60xx),y)
-+GENERIC_BACKPORT_DIR :=
-+GENERIC_PATCH_DIR :=
-+GENERIC_HACK_DIR :=
-+GENERIC_FILES_DIR :=
-+else
- GENERIC_BACKPORT_DIR := $(GENERIC_PLATFORM_DIR)/backport$(if $(wildcard $(GENERIC_PLATFORM_DIR)/backport-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
- GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/pending$(if $(wildcard $(GENERIC_PLATFORM_DIR)/pending-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
- GENERIC_HACK_DIR := $(GENERIC_PLATFORM_DIR)/hack$(if $(wildcard $(GENERIC_PLATFORM_DIR)/hack-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
- GENERIC_FILES_DIR := $(foreach dir,$(wildcard $(GENERIC_PLATFORM_DIR)/files $(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)),"$(dir)")
-+endif
- 
- __config_name_list = $(1)/config-$(KERNEL_PATCHVER) $(1)/config-default
- __config_list = $(firstword $(wildcard $(call __config_name_list,$(1))))
-
---- a/package/kernel/mac80211/ath.mk
-+++ b/package/kernel/mac80211/ath.mk
-@@ -282,7 +282,7 @@ define KernelPackage/ath11k
-   TITLE:=Atheros 802.11ax wireless cards support
-   URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath11k
-   DEPENDS+= @TARGET_ipq60xx +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11AC_SUPPORT \
--	+@DRIVER_11AX_SUPPORT +@DRIVER_11W_SUPPORT +kmod-qca-nss-drv
-+	+@DRIVER_11AX_SUPPORT +@DRIVER_11W_SUPPORT +kmod-qca-nss-drv +kmod-hwmon-core
-   FILES:= \
- 	$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k.ko
- endef
-
---- a/target/linux/ipq60xx/Makefile
-+++ b/target/linux/ipq60xx/Makefile
-@@ -16,7 +16,7 @@ include $(INCLUDE_DIR)/target.mk
- DEFAULT_PACKAGES += \
- 	kmod-leds-gpio kmod-gpio-button-hotplug swconfig \
- 	kmod-qca-nss-dp kmod-qca-nss-drv kmod-qca-ssdk \
--	kmod-ath11k-ahb qca-ssdk-shell wpad-openssl \
-+	kmod-ath11k-ahb qca-ssdk-shell wpad-basic-mbedtls \
- 	ath11k-firmware-ipq6018 nss-firmware-ipq6018 \
- 	kmod-qca-nss-drv-pppoe kmod-qca-nss-ecm uboot-envtools
- 
-
---- a/target/linux/ipq60xx/image/Makefile
-+++ b/target/linux/ipq60xx/image/Makefile
-@@ -104,7 +104,7 @@ define Device/qihoo_v6
- 	PAGESIZE := 2048
- 	DEVICE_DTS := qcom-ipq6018-qihoo-v6
- 	DEVICE_DTS_CONFIG := config@cp03-c1
--	DEVICE_TITLE := Qihoo V6
-+	DEVICE_TITLE := Qihoo 360 V6
- 	DEVICE_PACKAGES := ath11k-wifi-qihoo-v6 kmod-usb3 kmod-usb-phy-msm
- endef
- TARGET_DEVICES += qihoo_v6
-
---- a/target/linux/ipq60xx/files-4.4/arch/arm64/boot/dts/qcom/qcom-ipq6018-zn-m2.dts
-+++ b/target/linux/ipq60xx/files-4.4/arch/arm64/boot/dts/qcom/qcom-ipq6018-zn-m2.dts
-@@ -70,3 +70,15 @@
- 		};
- 	};
- };
-+
-+&qusb_phy_0 {
-+status = "ok";
-+};
-+
-+&ssphy_0 {
-+status = "ok";
-+};
-+
-+&usb3 {
-+status = "ok";
-+};

+ 0 - 2
devices/mediatek_mt7981/diy.sh

@@ -19,5 +19,3 @@ svn co https://github.com/openwrt/openwrt/branches/openwrt-23.05/package/utils/u
 #ln -sf $(pwd)/feeds/luci/modules/luci-base package/feeds/kiddin9/
 
 sed -i "s/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += luci-app-mtk mii_mgr wifi-profile mtkhqos_util wireless-regdb switch regs kmod-warp kmod-mt_wifi kmod-mediatek_hnat kmod-conninfra datconf-lua/" target/linux/mediatek/Makefile
-
-rm -rf devices/common/patches/enable_wifi.patch

+ 0 - 2
devices/rockchip_rk3588_armv8/diy.sh

@@ -22,8 +22,6 @@ sed -i "/KernelPackage,dma-buf/d" package/kernel/linux/modules/other.mk
 
 sed -i "/friendlyelec/d" package/feeds/kiddin9/base-files/files/lib/preinit/02_sysinfo
 
-rm -rf devices/common/patches/enable_wifi.patch
-
 sed -i "s/ath11k ath11k-ahb ath11k-pci //" package/kernel/mac80211/ath.mk
 
 #curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk