From bca53dd343df7ddbb419d39cc3028e160f82a68e Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Wed, 17 Dec 2025 14:05:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=20aarch64=5Fgeneric=20=20?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 64bit/arch.conf | 5 +++-- gl-inet-op24.sh | 9 +++++++++ gl-inet.sh | 10 ++++++++++ mtarch/arch.conf | 4 ++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 mtarch/arch.conf diff --git a/64bit/arch.conf b/64bit/arch.conf index 4b507cb..4e62229 100644 --- a/64bit/arch.conf +++ b/64bit/arch.conf @@ -1,4 +1,5 @@ arch all 1 arch noarch 1 -arch aarch64_cortex-a53 5 -arch aarch64_cortex-a53_neon-vfpv4 10 \ No newline at end of file +arch aarch64_generic 5 +arch aarch64_cortex-a53 10 +arch aarch64_cortex-a53_neon-vfpv4 15 \ No newline at end of file diff --git a/gl-inet-op24.sh b/gl-inet-op24.sh index 6082f6d..4ad7986 100644 --- a/gl-inet-op24.sh +++ b/gl-inet-op24.sh @@ -32,6 +32,14 @@ setup_base_init() { } +# 调整架构 兼容aarch64_generic +add_arch() { + if ! wget -O /etc/opkg/arch.conf $HTTP_HOST/mtarch/arch.conf; then + echo "下载 arch.conf 失败,脚本终止。" + exit 1 + fi +} + ## 安装应用商店和主题 install_istore_os_style() { ##设置Argon 紫色主题 @@ -577,6 +585,7 @@ while true; do case $choice in 1) + add_arch if [[ "$gl_name" == *3000* ]]; then # 设置风扇工作温度 setup_cpu_fans diff --git a/gl-inet.sh b/gl-inet.sh index c553553..d9feaa0 100755 --- a/gl-inet.sh +++ b/gl-inet.sh @@ -32,6 +32,15 @@ setup_base_init() { } +# 调整架构 兼容aarch64_generic +add_arch() { + if ! wget -O /etc/opkg/arch.conf $HTTP_HOST/mtarch/arch.conf; then + echo "下载 arch.conf 失败,脚本终止。" + exit 1 + fi +} + + ## 安装应用商店和主题 install_istore_os_style() { ##设置Argon 紫色主题 @@ -642,6 +651,7 @@ while true; do case $choice in 1) + add_arch if [[ "$gl_name" == *3000* ]]; then # 设置风扇工作温度 setup_cpu_fans diff --git a/mtarch/arch.conf b/mtarch/arch.conf new file mode 100644 index 0000000..d479195 --- /dev/null +++ b/mtarch/arch.conf @@ -0,0 +1,4 @@ +arch all 1 +arch noarch 1 +arch aarch64_generic 10 +arch aarch64_cortex-a53 15 \ No newline at end of file