Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
b755e404
"docs/vscode:/vscode.git/clone" did not exist on "6ecded2002a1f1a874466422407100120ae4143a"
Unverified
Commit
b755e404
authored
Jan 09, 2025
by
wukongdaily
Committed by
GitHub
Jan 09, 2025
Browse files
瑞芯微机型增加用户预设置拨号功能
parent
a2558b4f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
153 additions
and
46 deletions
+153
-46
.github/workflows/build-rockchip-immortalWrt-23.05.4.yml
.github/workflows/build-rockchip-immortalWrt-23.05.4.yml
+52
-2
.github/workflows/build-rockchip-immortalWrt-24.10.yml
.github/workflows/build-rockchip-immortalWrt-24.10.yml
+72
-44
rockchip/23.05.4/build.sh
rockchip/23.05.4/build.sh
+15
-0
rockchip/build.sh
rockchip/build.sh
+14
-0
No files found.
.github/workflows/build-rockchip-immortalWrt-23.05.4.yml
View file @
b755e404
...
@@ -4,15 +4,53 @@ on:
...
@@ -4,15 +4,53 @@ on:
workflow_dispatch
:
workflow_dispatch
:
inputs
:
inputs
:
profile
:
profile
:
type
:
choice
description
:
|
description
:
|
输入 软路由型号(用逗号分隔的多个值),可选值如下:
输入 软路由型号 可选值如下:
ariaboard_photonicat,armsom_sige3,ezpro_mrkaio-m68s,firefly_roc-rk3328-cc,firefly_roc-rk3568-pc,friendlyarm_nanopc-t4,friendlyarm_nanopi-r2c,friendlyarm_nanopi-r2c-plus,friendlyarm_nanopi-r2s,friendlyarm_nanopi-r4s,friendlyarm_nanopi-r4s-enterprise,friendlyarm_nanopi-r4se,friendlyarm_nanopi-r5c,friendlyarm_nanopi-r5s,huake_guangmiao-g4c,lunzn_fastrhino-r66s,lunzn_fastrhino-r68s,lyt_t68m,pine64_rockpro64,radxa_rock-pi-4a,radxa_rock-pi-e,xunlong_orangepi-r1-plus,xunlong_orangepi-r1-plus-lts
required
:
true
required
:
true
options
:
-
ariaboard_photonicat
-
armsom_sige3
-
ezpro_mrkaio-m68s
-
firefly_roc-rk3328-cc
-
firefly_roc-rk3568-pc
-
friendlyarm_nanopc-t4
-
friendlyarm_nanopi-r2c
-
friendlyarm_nanopi-r2c-plus
-
friendlyarm_nanopi-r2s
-
friendlyarm_nanopi-r4s
-
friendlyarm_nanopi-r4s-enterprise
-
friendlyarm_nanopi-r4se
-
friendlyarm_nanopi-r5c
-
friendlyarm_nanopi-r5s
-
huake_guangmiao-g4c
-
lunzn_fastrhino-r66s
-
lunzn_fastrhino-r68s
-
lyt_t68m
-
pine64_rockpro64
-
radxa_rock-pi-4a
-
radxa_rock-pi-e
-
xunlong_orangepi-r1-plus
-
xunlong_orangepi-r1-plus-lts
default
:
'
friendlyarm_nanopi-r4s'
default
:
'
friendlyarm_nanopi-r4s'
rootfs_partsize
:
rootfs_partsize
:
description
:
'
设置软件包大小
单位(MB)'
description
:
'
设置软件包大小
单位(MB)'
required
:
true
required
:
true
default
:
'
1024'
default
:
'
1024'
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
:
jobs
:
build
:
build
:
...
@@ -25,6 +63,15 @@ jobs:
...
@@ -25,6 +63,15 @@ jobs:
-
name
:
Set executable permissions
-
name
:
Set executable permissions
run
:
chmod +x ${{ github.workspace }}/rockchip/23.05.4/build.sh
run
:
chmod +x ${{ github.workspace }}/rockchip/23.05.4/build.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
:
Building Rockchip ImmortalWrt
-
name
:
Building Rockchip ImmortalWrt
run
:
|
run
:
|
profiles="${{ github.event.inputs.profile }}"
profiles="${{ github.event.inputs.profile }}"
...
@@ -43,6 +90,9 @@ jobs:
...
@@ -43,6 +90,9 @@ jobs:
-v "${{ github.workspace }}/rockchip/23.05.4/build.sh:/home/build/immortalwrt/build.sh" \
-v "${{ github.workspace }}/rockchip/23.05.4/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e PROFILE=$profile \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
-e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \
-e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \
immortalwrt/imagebuilder:rockchip-armv8-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
immortalwrt/imagebuilder:rockchip-armv8-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
done
done
...
...
.github/workflows/build-rockchip-immortalWrt-24.10.yml
View file @
b755e404
...
@@ -4,57 +4,73 @@ on:
...
@@ -4,57 +4,73 @@ on:
workflow_dispatch
:
workflow_dispatch
:
inputs
:
inputs
:
profile
:
profile
:
type
:
choice
description
:
|
description
:
|
输入 软路由型号(用逗号分隔的多个值),可选值如下:
输入 软路由型号 可选值如下:
,ariaboard_photonicat
options
:
,armsom_sige3
-
ariaboard_photonicat
,armsom_sige7
-
armsom_sige3
,cyber_cyber3588-aib
-
armsom_sige7
,ezpro_mrkaio-m68s
-
cyber_cyber3588-aib
,firefly_roc-rk3328-cc
-
ezpro_mrkaio-m68s
,firefly_roc-rk3568-pc
-
firefly_roc-rk3328-cc
,friendlyarm_nanopc-t4
-
firefly_roc-rk3568-pc
,friendlyarm_nanopc-t6
-
friendlyarm_nanopc-t4
,friendlyarm_nanopi-r2c
-
friendlyarm_nanopc-t6
,friendlyarm_nanopi-r2c-plus
-
friendlyarm_nanopi-r2c
,friendlyarm_nanopi-r2s
-
friendlyarm_nanopi-r2c-plus
,friendlyarm_nanopi-r3s
-
friendlyarm_nanopi-r2s
,friendlyarm_nanopi-r4s
-
friendlyarm_nanopi-r3s
,friendlyarm_nanopi-r4se
-
friendlyarm_nanopi-r4s
,friendlyarm_nanopi-r4s-enterprise
-
friendlyarm_nanopi-r4se
,friendlyarm_nanopi-r5c
-
friendlyarm_nanopi-r4s-enterprise
,friendlyarm_nanopi-r5s
-
friendlyarm_nanopi-r5c
,friendlyarm_nanopi-r6c
-
friendlyarm_nanopi-r5s
,friendlyarm_nanopi-r6s
-
friendlyarm_nanopi-r6c
,huake_guangmiao-g4c
-
friendlyarm_nanopi-r6s
,lunzn_fastrhino-r66s
-
huake_guangmiao-g4c
,lunzn_fastrhino-r68s
-
lunzn_fastrhino-r66s
,lyt_t68m
-
lunzn_fastrhino-r68s
,pine64_rock64
-
lyt_t68m
,pine64_rockpro64
-
pine64_rock64
,radxa_cm3_io
-
pine64_rockpro64
,radxa_e25
-
radxa_cm3_io
,radxa_rock-3a
-
radxa_e25
,radxa_rock-3b
-
radxa_rock-3a
,radxa_rock-3c
-
radxa_rock-3b
,radxa_rock-5a
-
radxa_rock-3c
,radxa_rock-5b
-
radxa_rock-5a
,radxa_rock-pi-4a
-
radxa_rock-5b
,radxa_rock-pi-e
-
radxa_rock-pi-4a
,radxa_rock-pi-s
-
radxa_rock-pi-e
,radxa_zero-3e
-
radxa_rock-pi-s
,radxa_zero-3w
-
radxa_zero-3e
,sinovoip_bpi-r2-pro
-
radxa_zero-3w
,xunlong_orangepi-5
-
sinovoip_bpi-r2-pro
,xunlong_orangepi-5-plus
-
xunlong_orangepi-5
,xunlong_orangepi-r1-plus
-
xunlong_orangepi-5-plus
,xunlong_orangepi-r1-plus-lts
-
xunlong_orangepi-r1-plus
-
xunlong_orangepi-r1-plus-lts
required
:
true
required
:
true
default
:
'
friendlyarm_nanopi-r3s'
default
:
'
friendlyarm_nanopi-r3s'
rootfs_partsize
:
rootfs_partsize
:
description
:
'
设置软件包大小
单位(MB)'
description
:
'
设置软件包大小
单位(MB)'
required
:
true
required
:
true
default
:
'
1024'
default
:
'
1024'
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
:
jobs
:
build
:
build
:
...
@@ -66,6 +82,15 @@ jobs:
...
@@ -66,6 +82,15 @@ jobs:
-
name
:
Set executable permissions
-
name
:
Set executable permissions
run
:
chmod +x ${{ github.workspace }}/rockchip/build.sh
run
:
chmod +x ${{ github.workspace }}/rockchip/build.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
:
Building Rockchip ImmortalWrt
-
name
:
Building Rockchip ImmortalWrt
run
:
|
run
:
|
...
@@ -85,6 +110,9 @@ jobs:
...
@@ -85,6 +110,9 @@ jobs:
-v "${{ github.workspace }}/rockchip/build.sh:/home/build/immortalwrt/build.sh" \
-v "${{ github.workspace }}/rockchip/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e PROFILE=$profile \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
-e ENABLE_PPPOE=${{ inputs.enable_pppoe }} \
-e PPPOE_ACCOUNT=${{ inputs.pppoe_account }} \
-e PPPOE_PASSWORD=${{ inputs.pppoe_password }} \
immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10.0-rc3 /bin/bash /home/build/immortalwrt/build.sh
immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10.0-rc3 /bin/bash /home/build/immortalwrt/build.sh
done
done
-
name
:
Generate Firmware SHA-256
-
name
:
Generate Firmware SHA-256
...
...
rockchip/23.05.4/build.sh
View file @
b755e404
#!/bin/bash
#!/bin/bash
# Log file for debugging
LOGFILE
=
"/tmp/uci-defaults-log.txt"
echo
"Starting 99-custom.sh at
$(
date
)
"
>>
$LOGFILE
# yml 传入的路由器型号 PROFILE
# yml 传入的路由器型号 PROFILE
echo
"Building for profile:
$PROFILE
"
echo
"Building for profile:
$PROFILE
"
# yml 传入的固件大小 ROOTFS_PARTSIZE
# yml 传入的固件大小 ROOTFS_PARTSIZE
echo
"Building for ROOTFS_PARTSIZE:
$ROOTFS_PARTSIZE
"
echo
"Building for ROOTFS_PARTSIZE:
$ROOTFS_PARTSIZE
"
echo
"Create pppoe-settings"
mkdir
-p
/home/build/immortalwrt/files/etc/config
# 创建pppoe配置文件 yml传入环境变量ENABLE_PPPOE等 写入配置文件 供99-custom.sh读取
cat
<<
EOF
> /home/build/immortalwrt/files/etc/config/pppoe-settings
enable_pppoe=
${
ENABLE_PPPOE
}
pppoe_account=
${
PPPOE_ACCOUNT
}
pppoe_password=
${
PPPOE_PASSWORD
}
EOF
echo
"cat pppoe-settings"
cat
/home/build/immortalwrt/files/etc/config/pppoe-settings
# 输出调试信息
# 输出调试信息
...
...
rockchip/build.sh
View file @
b755e404
#!/bin/bash
#!/bin/bash
# Log file for debugging
LOGFILE
=
"/tmp/uci-defaults-log.txt"
echo
"Starting 99-custom.sh at
$(
date
)
"
>>
$LOGFILE
# yml 传入的路由器型号 PROFILE
# yml 传入的路由器型号 PROFILE
echo
"Building for profile:
$PROFILE
"
echo
"Building for profile:
$PROFILE
"
# yml 传入的固件大小 ROOTFS_PARTSIZE
# yml 传入的固件大小 ROOTFS_PARTSIZE
echo
"Building for ROOTFS_PARTSIZE:
$ROOTFS_PARTSIZE
"
echo
"Building for ROOTFS_PARTSIZE:
$ROOTFS_PARTSIZE
"
echo
"Create pppoe-settings"
mkdir
-p
/home/build/immortalwrt/files/etc/config
# 创建pppoe配置文件 yml传入环境变量ENABLE_PPPOE等 写入配置文件 供99-custom.sh读取
cat
<<
EOF
> /home/build/immortalwrt/files/etc/config/pppoe-settings
enable_pppoe=
${
ENABLE_PPPOE
}
pppoe_account=
${
PPPOE_ACCOUNT
}
pppoe_password=
${
PPPOE_PASSWORD
}
EOF
echo
"cat pppoe-settings"
cat
/home/build/immortalwrt/files/etc/config/pppoe-settings
# 输出调试信息
# 输出调试信息
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Starting build process..."
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Starting build process..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment