"docs/vscode:/vscode.git/clone" did not exist on "c2f942cb6fd07310607d335b4d22fb7faffd3ac7"
Unverified Commit ff9e0d2f authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

新增103个MTK路由器机型

parent 6a0acefe
name: build-gl-inet-23.05.4 ImmortalWrt
on:
workflow_dispatch:
inputs:
profile:
type: choice
description: "请选择路由器型号"
required: true
options:
- glinet_gl-mt3000
- glinet_gl-mt2500
- glinet_gl-mt6000
- glinet_gl-b2200
default: glinet_gl-mt6000
include_docker:
description: |
是否编译 Docker 插件
required: true
default: 'no'
type: choice
options:
- 'yes'
- 'no'
enable_pppoe:
description: "是否配置PPPoE拨号信息?"
required: true
default: 'no'
type: choice
options:
- 'yes'
- 'no'
pppoe_account:
description: "宽带账号 (若启用PPPoE)"
required: false
pppoe_password:
description: "宽带密码 (若启用PPPoE)"
required: false
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set executable permissions
run: |
chmod +x ${{ github.workspace }}/mediatek-filogic/build23.sh
- name: Validate PPPoE Inputs
run: |
if [[ "${{ inputs.enable_pppoe }}" == "yes" ]]; then
if [[ -z "${{ inputs.pppoe_account }}" || -z "${{ inputs.pppoe_password }}" ]]; then
echo "Error: PPPoE account and password must be provided when PPPoE is enabled!"
exit 1
fi
fi
- name: Build Gl-iNet ImmortalWrt 23.05.4
run: |
profiles="${{ github.event.inputs.profile }}"
include_docker="${{ github.event.inputs.include_docker }}"
if [ "$profiles" = "glinet_gl-b2200" ]; then
tag=ipq40xx-generic-openwrt-23.05.4
echo "platform=ipq40xx/generic" >> $GITHUB_ENV
else
tag=mediatek-filogic-openwrt-23.05.4
echo "platform=mediatek/filogic" >> $GITHUB_ENV
fi
IFS=',' read -r -a profile_array <<< "$profiles"
for profile in "${profile_array[@]}"; do
echo "Building for profile: $profile"
docker run --rm -i \
--user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/glinet:/home/build/immortalwrt/files/etc/uci-defaults" \
-v "${{ github.workspace }}/arch/arch.conf:/home/build/immortalwrt/files/etc/opkg/arch.conf" \
-v "${{ github.workspace }}/shell:/home/build/immortalwrt/shell" \
-v "${{ github.workspace }}/mediatek-filogic/build23.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e INCLUDE_DOCKER=$include_docker \
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
-e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \
-e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \
immortalwrt/imagebuilder:$tag /bin/bash /home/build/immortalwrt/build.sh
done
- name: Create info
run: |
if [ "${{ github.event.inputs.include_docker }}" == "yes" ]; then
extra_content="### 默认带docker"
echo -e "\n $extra_content" >> ${{ github.workspace }}/mediatek-filogic/info.md
else
echo -e "NO docker"
fi
- name: Upload ImmortalWrt as release assets
uses: softprops/action-gh-release@v2.2.1
with:
tag_name: Autobuild-GL-iNet
name: ImmortalWrt-GL-iNet
body_path: ${{ github.workspace }}/mediatek-filogic/info.md
files: |
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.bin
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: build-mediatek-24.10.2
# 此工作流99% 使用luci 24.10.x 来构建 极个别机型使用快照版和24.05.4版本来构建
name: Build MTK Router ImmortalWrt 24.10.x
on:
workflow_dispatch:
inputs:
profile:
type: choice
description: "请选择路由器型号"
description: "请选择mtk路由器型号"
required: true
options:
- glinet_gl-mt3000
- glinet_gl-mt2500
- glinet_gl-mt3000
- glinet_gl-mt6000
- glinet_gl-b2200
- glinet_gl-x3000
- glinet_gl-xe3000
- cudy_tr3000-v1
- cudy_tr3000-v1-ubootmod
- cudy_tr3000-256mb-v1
default: cudy_tr3000-256mb-v1
- jcg_q30-pro
- jdcloud_re-cp-03
- xiaomi_mi-router-ax3000t
- xiaomi_mi-router-ax3000t-ubootmod
- xiaomi_mi-router-wr30u-stock
- xiaomi_mi-router-wr30u-ubootmod
- xiaomi_redmi-router-ax6000-stock
- xiaomi_redmi-router-ax6000-ubootmod
- cmcc_a10-stock
- cmcc_a10-ubootmod
- cmcc_rax3000m
- cmcc_rax3000me
- cmcc_rax3000m-emmc-ubootmod
- cmcc_rax3000m-nand-ubootmod
- abt_asr3000
- acelink_ew-7886cax
- acer_predator-w6
- acer_predator-w6d
- acer_vero-w6m
- arcadyan_mozart
- asus_rt-ax52
- asus_rt-ax59u
- asus_tuf-ax4200
- asus_tuf-ax6000
- bananapi_bpi-r3
- bananapi_bpi-r3-mini
- bananapi_bpi-r4
- bananapi_bpi-r4-poe
- cetron_ct3003
- cetron_ct3003-ubootmod
- comfast_cf-e393ax
- confiabits_mt7981
- cudy_ap3000-v1
- cudy_ap3000outdoor-v1
- cudy_m3000-v1
- cudy_re3000-v1
- cudy_wr3000-v1
- cudy_wr3000e-v1
- cudy_wr3000h-v1
- cudy_wr3000s-v1
- dlink_aquila-pro-ai-m30-a1
- dlink_aquila-pro-ai-m60-a1
- edgecore_eap111
- gatonetworks_gdsp
- h3c_magic-nx30-pro
- h3c_magic-nx30-pro-nmbm
- huasifei_wh3000-emmc
- imou_lc-hx3001
- keenetic_kn-3811
- keenetic_kn-3911
- konka_komi-a31
- livinet_zr-3020
- livinet_zr-3020-ubootmod
- mediatek_mt7981-rfb
- mediatek_mt7986a-rfb-nand
- mediatek_mt7986b-rfb
- mediatek_mt7988a-rfb
- mercusys_mr80x-v3
- mercusys_mr90x-v1
- mercusys_mr90x-v1-ubi
- netcore_n60
- netcore_n60-pro
- netgear_wax220
- netis_nx31
- nokia_ea0326gmp
- openembed_som7981
- openwrt_one
- qihoo_360t7
- routerich_ax3000
- routerich_ax3000-ubootmod
- routerich_ax3000-v1
- ruijie_rg-x60-pro
- smartrg_sdg-8612
- smartrg_sdg-8614
- smartrg_sdg-8622
- smartrg_sdg-8632
- smartrg_sdg-8733
- smartrg_sdg-8733a
- smartrg_sdg-8734
- tplink_archer-ax80-v1
- tplink_re6000xd
- tplink_tl-xdr4288
- tplink_tl-xdr6086
- tplink_tl-xdr6088
- tplink_tl-xtr8488
- ubnt_unifi-6-plus
- unielec_u7981-01-emmc
- unielec_u7981-01-nand
- wavlink_wl-wn573hx3
- wavlink_wl-wn586x3
- yuncore_ax835
- zbtlink_zbt-z8102ax
- zbtlink_zbt-z8103ax
- zyxel_ex5601-t0-stock
- zyxel_ex5601-t0-ubootmod
- zyxel_ex5700-telenor
- zyxel_nwa50ax-pro
default: cmcc_rax3000m-emmc-ubootmod
custom_router_ip:
description: "请设置路由器的管理地址 格式:192.168.x.1 10.x.x.1"
required: true
default: "192.168.100.1"
include_docker:
description: |
是否编译 Docker 插件
......@@ -51,6 +156,14 @@ jobs:
- name: Set executable permissions
run: |
chmod +x ${{ github.workspace }}/mediatek-filogic/build24.sh
- name: Save Custom Router IP into OpenWrt files
run: |
mkdir -p "${{ github.workspace }}/custom"
echo "${{ github.event.inputs.custom_router_ip }}" > "${{ github.workspace }}/custom/custom_router_ip.txt"
echo "您设置的路由器管理地址是:${{ github.event.inputs.custom_router_ip }}"
# 后续步骤会将该文件映射到路由器/etc/config/custom_router_ip.txt 以便用于开机脚本99-custom.sh读取用户设置的ip
- name: Validate PPPoE Inputs
run: |
......@@ -59,33 +172,43 @@ jobs:
echo "Error: PPPoE account and password must be provided when PPPoE is enabled!"
exit 1
fi
fi
fi
- name: Build mediatek ImmortalWrt 24.10.2
- name: Build MTK ImmortalWrt 24.10.2
run: |
profiles="${{ github.event.inputs.profile }}"
profile="${{ github.event.inputs.profile }}"
echo "Building for profile: $profile"
include_docker="${{ github.event.inputs.include_docker }}"
if [ "$profiles" = "glinet_gl-b2200" ]; then
tag=ipq40xx-generic-openwrt-24.10.2
echo "platform=ipq40xx/generic" >> $GITHUB_ENV
elif [ "$profiles" = "cudy_tr3000-256mb-v1" ]; then
tag=mediatek-filogic-24.10-SNAPSHOT
echo "platform=mediatek/filogic" >> $GITHUB_ENV
else
tag=mediatek-filogic-openwrt-24.10.2
echo "platform=mediatek/filogic" >> $GITHUB_ENV
fi
IFS=',' read -r -a profile_array <<< "$profiles"
for profile in "${profile_array[@]}"; do
echo "Building for profile: $profile"
echo "platform=mediatek/filogic" >> $GITHUB_ENV
# 判断机型
case "$profile" in
glinet_gl-b2200)
# 虽然它是高通平台 但由于都是gl机型 故放在一起 找起来方便
tag=ipq40xx-generic-openwrt-24.10.2
echo "platform=ipq40xx/generic" >> $GITHUB_ENV
;;
cudy_tr3000-256mb-v1)
# 由于256MB版本tr3000 还没有出正式版24.10.2 故使用快照版本来构建
tag=mediatek-filogic-24.10-SNAPSHOT
;;
cmcc_rax3000m-emmc-ubootmod|cmcc_rax3000m-nand-ubootmod)
# 此机型没有24.10.2 且应该和cmcc_rax3000me应该有区别 故采用支持的23.05.4版本来构建 且脚本采用build23.sh
tag=mediatek-filogic-openwrt-23.05.4
ls ${{ github.workspace }}/mediatek-filogic/
cp ${{ github.workspace }}/mediatek-filogic/build23.sh ${{ github.workspace }}/mediatek-filogic/build24.sh
;;
*)
tag=mediatek-filogic-openwrt-24.10.2
;;
esac
docker run --rm -i \
--user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/glinet:/home/build/immortalwrt/files/etc/uci-defaults" \
-v "${{ github.workspace }}/custom:/home/build/immortalwrt/files/etc/config" \
-v "${{ github.workspace }}/arch/arch.conf:/home/build/immortalwrt/files/etc/opkg/arch.conf" \
-v "${{ github.workspace }}/shell:/home/build/immortalwrt/shell" \
-v "${{ github.workspace }}/mediatek-filogic/build24.sh:/home/build/immortalwrt/build.sh" \
......@@ -94,8 +217,8 @@ jobs:
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
-e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \
-e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \
immortalwrt/imagebuilder:$tag /bin/bash /home/build/immortalwrt/build.sh
done
immortalwrt/imagebuilder:$tag /bin/bash /home/build/immortalwrt/build.sh
- name: Create info
run: |
......@@ -105,17 +228,21 @@ jobs:
else
echo -e "NO docker"
fi
custom_router_ip="${{ github.event.inputs.custom_router_ip }}"
extra_content_ip="#### 管理地址 $custom_router_ip"
echo -e "\n $extra_content_ip" >> ${{ github.workspace }}/mediatek-filogic/info.md
- name: Upload ImmortalWrt as release assets
uses: softprops/action-gh-release@v2.2.1
with:
tag_name: mediatek-filogic
name: mediatek-filogic router
tag_name: mediatek
name: ImmortalWrt-Mediatek
body_path: ${{ github.workspace }}/mediatek-filogic/info.md
files: |
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.bin
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.itb
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.fip
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.ubi
token: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
......@@ -88,7 +88,7 @@
> ### GL-iNet 和 Cudy MediaTek Filogic 工作流
> ### ~~GL-iNet 和 Cudy MediaTek Filogic 工作流~~ 归入MediaTek 路由器工作流(大约103种)build-mediatek-filogic-router.yml
| 📦 SoC平台 | 型号 | 厂商 | 处理器型号 | luci版本 |
|-----------------------------------|--------------------------------|------------|----------------|------------|
......@@ -136,3 +136,6 @@
### 晶晨电视盒子类和部分开发板
> a311d, a311d-oes, s922x-oes-plus, wxy-oect, wxy-oect-replaced, panther-x2, jp-tvbox, s905x3-hk1, tanix-tx6, s905l-b860av21u, s905l2-e900v21e, s905l, s905l-aurora-1s, s905l-mg101, s905l2, s905l2-wojia, s905l3, s905l3-cm211, s905l3-unt400g1, s905l3-unt402a, s905l3a, s905l3a-cm311, s905l3a-m401a, s905l3b, s905l3b-e900v21d, s905l3b-e900v22d, s905l3b-e900v22e, s905l3b-ip103h, s905l3b-rg020et-ca, s905l3b-unt403a, s905lb-ipbs9505, s905lb-q96-mini, s905lb-r3300l, r66s, r68s, nanopc-t6, nanopi-r5c, nanopi-r5s, orangepi-5-plus, orangepi-5b, alark35-3500, anas3035, beikeyun, chainedbox, crrc, dc-a588, dg3399, dg-tn3568, dlfr100, e20c, e25, eaidk-610, emb3531, fine3399, firefly-rk3399, fmx1-pro, h28k, h66k, h68k, h69k, h88k, h88k-v3, h96-max-m2, hs530r, hugsun-x99, ipc-r, king3399, kylin3399, lckfb-tspi, leez, lx-r3s, mrkaio-m68s, renegade-rk3328, rk3318-box, rock5b, rock5c, ruisen-box, s905, s905-beelink-mini, s905-mxqpro-plus, s905d-ki-pro, s905d-sml5442tw, s905mb, s905w, s905w-w95, s905w-x96-mini, s905w-x96w, s905x, s905x-b860h, s905x-nexbox-a95x, s905x-t95, s905x-tbee, s905x-tx9, s905x2, s905x2-km3, s905x2-x96max-2g, s905x3, s905x3-2101, s905x3-a100, s905x3-a95xf3, s905x3-a95xf3-gb, s905x3-b, s905x3-h96max, s905x3-ip1001m, s905x3-q1, s905x3-q2, s905x3-tx3, s905x3-tx3-bz, s905x3-ugoosx3, s905x3-whale, s905x3-x88-pro-x3, s905x3-x96air, s905x3-x96air-gb, s905x3-x96max, s912, s912-h96pro-plus, s912-m8s-pro, s912-nexbox-a1, s912-nexbox-a2, s912-onecloudpro, s912-phicomm-t1, s912-t95z-plus, s912-tx8-max, s912-tx9-pro-2g, s912-tx9-pro-3g, s912-x92, s912-zyxq-fake, s922x, s922x-ct2000, s922x-gtking, s922x-gtkingpro-h, s922x-odroid-n2, s922x-reva, s922x-ugoos-am6, seewo-sv21, smart-am40, smart-am60, station-m1, station-m2, sv-33a6x, swan1-w28, sw799, tb-ls3399, tn3399, tpm312, tqc-a01, tvi3315a, vplus, xiaobao, yskj, zcube1-max, zk-r39a, zysj
> ### MediaTek 路由器工作流(大约103种)build-mediatek-filogic-router.yml
abt_asr3000,acelink_ew-7886cax,acer_predator-w6,acer_predator-w6d,acer_vero-w6m,arcadyan_mozart,asus_rt-ax52,asus_rt-ax59u,asus_tuf-ax4200,asus_tuf-ax6000,bananapi_bpi-r3,bananapi_bpi-r3-mini,bananapi_bpi-r4,bananapi_bpi-r4-poe,cetron_ct3003,cetron_ct3003-ubootmod,cmcc_a10-stock,cmcc_a10-ubootmod,cmcc_rax3000m,cmcc_rax3000me,comfast_cf-e393ax,confiabits_mt7981,cudy_ap3000-v1,cudy_ap3000outdoor-v1,cudy_m3000-v1,cudy_re3000-v1,cudy_tr3000-v1,cudy_tr3000-v1-ubootmod,cudy_wr3000-v1,cudy_wr3000e-v1,cudy_wr3000h-v1,cudy_wr3000s-v1,dlink_aquila-pro-ai-m30-a1,dlink_aquila-pro-ai-m60-a1,edgecore_eap111,gatonetworks_gdsp,glinet_gl-mt2500,glinet_gl-mt3000,glinet_gl-mt6000,glinet_gl-x3000,glinet_gl-xe3000,h3c_magic-nx30-pro,h3c_magic-nx30-pro-nmbm,huasifei_wh3000-emmc,imou_lc-hx3001,jcg_q30-pro,jdcloud_re-cp-03,keenetic_kn-3811,keenetic_kn-3911,konka_komi-a31,livinet_zr-3020,livinet_zr-3020-ubootmod,mediatek_mt7981-rfb,mediatek_mt7986a-rfb-nand,mediatek_mt7986b-rfb,mediatek_mt7988a-rfb,mercusys_mr80x-v3,mercusys_mr90x-v1,mercusys_mr90x-v1-ubi,netcore_n60,netcore_n60-pro,netgear_wax220,netis_nx31,nokia_ea0326gmp,openembed_som7981,openwrt_one,qihoo_360t7,routerich_ax3000,routerich_ax3000-ubootmod,routerich_ax3000-v1,ruijie_rg-x60-pro,smartrg_sdg-8612,smartrg_sdg-8614,smartrg_sdg-8622,smartrg_sdg-8632,smartrg_sdg-8733,smartrg_sdg-8733a,smartrg_sdg-8734,tplink_archer-ax80-v1,tplink_re6000xd,tplink_tl-xdr4288,tplink_tl-xdr6086,tplink_tl-xdr6088,tplink_tl-xtr8488,ubnt_unifi-6-plus,unielec_u7981-01-emmc,unielec_u7981-01-nand,wavlink_wl-wn573hx3,wavlink_wl-wn586x3,xiaomi_mi-router-ax3000t,xiaomi_mi-router-ax3000t-ubootmod,xiaomi_mi-router-wr30u-stock,xiaomi_mi-router-wr30u-ubootmod,xiaomi_redmi-router-ax6000-stock,xiaomi_redmi-router-ax6000-ubootmod,yuncore_ax835,zbtlink_zbt-z8102ax,zbtlink_zbt-z8103ax,zyxel_ex5601-t0-stock,zyxel_ex5601-t0-ubootmod,zyxel_ex5700-telenor,zyxel_nwa50ax-pro
\ No newline at end of file
#!/bin/sh
# 该脚本为immortalwrt首次启动时 运行的脚本 即 /etc/uci-defaults/99-custom.sh
# 该脚本为immortalwrt首次启动时 运行的脚本 即 /etc/uci-defaults/99-custom.sh 也就是说该文件在路由器内 重启后消失 只运行一次
# 设置默认防火墙规则,方便虚拟机首次访问 WebUI
LOGFILE="/etc/config/uci-defaults-log.txt"
uci set firewall.@zone[1].input='ACCEPT'
# 设置主机名映射,解决安卓原生 TV 无法联网的问题
......@@ -16,9 +17,16 @@ else
# 读取pppoe信息(由build.sh写入)
. "$SETTINGS_FILE"
fi
# 无需判断网卡数量 因为glinet是多网口
uci set network.lan.ipaddr='192.168.8.1'
echo "set 192.168.8.1 at $(date)" >> $LOGFILE
IP_VALUE_FILE="/etc/config/custom_router_ip.txt"
if [ -f "$IP_VALUE_FILE" ]; then
CUSTOM_IP=$(cat "$IP_VALUE_FILE")
# 设置路由器的管理后台地址
uci set network.lan.ipaddr=$CUSTOM_IP
echo "custom router ip is $CUSTOM_IP" >> $LOGFILE
fi
# 判断是否启用 PPPoE
echo "print enable_pppoe value=== $enable_pppoe" >> $LOGFILE
if [ "$enable_pppoe" = "yes" ]; then
......@@ -92,7 +100,7 @@ uci commit
# 设置编译作者信息
FILE_PATH="/etc/openwrt_release"
NEW_DESCRIPTION="Compiled by wukongdaily"
NEW_DESCRIPTION="Packaged by wukongdaily"
sed -i "s/DISTRIB_DESCRIPTION='[^']*'/DISTRIB_DESCRIPTION='$NEW_DESCRIPTION'/" "$FILE_PATH"
exit 0
[![Github](https://img.shields.io/badge/Release文件可在国内加速站下载-FC7C0D?logo=github&logoColor=fff&labelColor=000&style=for-the-badge)](https://wkdaily.cpolar.top/archives/1)
#### 固件地址 `192.168.8.1`
#### 用户名 `root` 密码:无
#### 用户名 `root` 密码:无
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment