Skip to content

Commit

Permalink
Add support for radxa rock5c(rk3588)
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed May 19, 2024
1 parent 480e225 commit 9014bb4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/packaging-openwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ on:
- jp-tvbox
- watermelon-pi
- rock5b
- rock5c
- s905
- s905d
- s905x2
Expand Down
3 changes: 2 additions & 1 deletion README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
| KERNEL_REPO_URL | breakings/OpenWrt | 设置内核下载仓库的 `<owner>/<repo>`,默认从 breakings 维护的[内核 Releases](https://github.com/breakings/OpenWrt/releases/tag/kernel_stable)里下载。 |
| KERNEL_VERSION_NAME | 6.1.y_6.6.y | 设置[内核版本](https://github.com/breakings/OpenWrt/releases/tag/kernel_stable),可以查看并选择指定。可指定单个内核如 `6.1.y` ,可选择多个内核用`_`连接如 `6.1.y_6.6.y` |
| KERNEL_AUTO_LATEST | true | 设置是否自动采用同系列最新版本内核。当为 `true` 时,将自动在内核库中查找在 `KERNEL_VERSION_NAME` 中指定的内核如 `6.1.y` 的同系列是否有更新的版本,如有更新版本时,将自动更换为最新版。设置为 `false` 时将编译指定版本内核。 |
| PACKAGE_SOC | all | 设置打包盒子的 `SOC` ,默认 `all` 打包全部盒子,可指定单个盒子如 `s905x3` ,可选择多个盒子用`_`连接如 `s905x3_s905d` 。各盒子的SoC代码为:`vplus`, `cm3`, `jp-tvbox`, `beikeyun`, `l1pro`, `rock5b`, `r66s`, `r68s`, `e25`, `photonicat`, `watermelon-pi`, `zcube1-max`, `ak88`, `ht2`, `e20c`, `h28k`, `h66k`, `h68k`, `h69k`, `h69k-max`, `h88k`, `h88k-v3`, `s905`, `s905d`, `s905x2`, `s905x3`, `s912`, `s922x`, `s922x-n2`, `qemu`, `diy`。说明:`s922x-n2` 是 `s922x-odroid-n2`, `diy` 是自定义盒子。 |
| PACKAGE_SOC | all | 设置打包盒子的 `SOC` ,默认 `all` 打包全部盒子,可指定单个盒子如 `s905x3` ,可选择多个盒子用`_`连接如 `s905x3_s905d` 。各盒子的SoC代码为:`vplus`, `cm3`, `jp-tvbox`, `beikeyun`, `l1pro`, `rock5b`, `rock5c`, `r66s`, `r68s`, `e25`, `photonicat`, `watermelon-pi`, `zcube1-max`, `ak88`, `ht2`, `e20c`, `h28k`, `h66k`, `h68k`, `h69k`, `h69k-max`, `h88k`, `h88k-v3`, `s905`, `s905d`, `s905x2`, `s905x3`, `s912`, `s922x`, `s922x-n2`, `qemu`, `diy`。说明:`s922x-n2` 是 `s922x-odroid-n2`, `diy` 是自定义盒子。 |
| GZIP_IMGS | auto | 设置打包完毕后文件压缩的格式,可选值 `.gz`(默认) / `.xz` / `.zip` / `.zst` / `.7z` |
| SELECT_PACKITPATH | openwrt_packit | 设置 `/opt` 下的打包目录名称 |
| SELECT_OUTPUTPATH | output | 设置 `${SELECT_PACKITPATH}` 目录中固件输出的目录名称 |
Expand All @@ -51,6 +51,7 @@
| SCRIPT_L1PRO | mk_rk3328_l1pro.sh | 设置打包 `rk3328 l1pro` 的脚本文件名 |
| SCRIPT_ZCUBE1MAX | mk_rk3399_zcube1-max.sh | 设置打包 `rk3399 zcube1-max` 的脚本文件名 |
| SCRIPT_ROCK5B | mk_rk3588_rock5b.sh | 设置打包 `rk3588 rock5b` 的脚本文件名 |
| SCRIPT_ROCK5C | mk_rk3588_rock5c.sh | 设置打包 `rk3588 rock5c` 的脚本文件名 |
| SCRIPT_R66S | mk_rk3568_r66s.sh | 设置打包 `rk3568 r66s` 的脚本文件名 |
| SCRIPT_R68S | mk_rk3568_r68s.sh | 设置打包 `rk3568 r68s` 的脚本文件名 |
| SCRIPT_E25 | mk_rk3568_e25.sh | 设置打包 `rk3568 e25` 的脚本文件名 |
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Based on the latest kernel packaging scripts released by `Flippy`, optional para
| KERNEL_REPO_URL | breakings/OpenWrt | Set `<owner>/<repo>` of the kernel download repository, it downloads from the [kernel Releases](https://github.com/breakings/OpenWrt/releases/tag/kernel_stable) maintained by breakings by default. |
| KERNEL_VERSION_NAME | 6.1.y_6.6.y | Set the [Kernel version](https://github.com/breakings/OpenWrt/releases/tag/kernel_stable), you can check and select a specific one. You can specify a single kernel such as `6.1.y`, or select multiple kernels connected with `_` like `6.1.y_6.6.y` |
| KERNEL_AUTO_LATEST | true | Set whether to automatically adopt the latest version kernel of the same series. When set to `true`, it will automatically look for whether there is an updated version of the kernel specified in `KERNEL_VERSION_NAME`, such as `6.1.y`, in the kernel library, and if there is an updated version, it will automatically replace it with the latest version. When set to `false`, it will compile the specified version kernel. |
| PACKAGE_SOC | all | Set the `SOC` of the package box, the default is `all` to package all boxes, you can specify a single box like `s905x3`, or select multiple boxes connected with `_` like `s905x3_s905d`. The SoC codes for each box are: `vplus`, `cm3`, `jp-tvbox`, `beikeyun`, `l1pro`, `rock5b`, `r66s`, `r68s`, `e25`, `photonicat`, `watermelon-pi`, `zcube1-max`, `ht2`, `e20c`, `h28k`, `h66k`, `h68k`, `h69k`, `h69k-max`, `h88k`, `h88k-v3`, `s905`, `s905d`, `s905x2`, `s905x3`, `s912`, `s922x`, `s922x-n2`, `qemu`, `diy`. Note: `s922x-n2` is `s922x-odroid-n2`, `diy` is a custom box. |
| PACKAGE_SOC | all | Set the `SOC` of the package box, the default is `all` to package all boxes, you can specify a single box like `s905x3`, or select multiple boxes connected with `_` like `s905x3_s905d`. The SoC codes for each box are: `vplus`, `cm3`, `jp-tvbox`, `beikeyun`, `l1pro`, `rock5b`, `rock5c`, `r66s`, `r68s`, `e25`, `photonicat`, `watermelon-pi`, `zcube1-max`, `ht2`, `e20c`, `h28k`, `h66k`, `h68k`, `h69k`, `h69k-max`, `h88k`, `h88k-v3`, `s905`, `s905d`, `s905x2`, `s905x3`, `s912`, `s922x`, `s922x-n2`, `qemu`, `diy`. Note: `s922x-n2` is `s922x-odroid-n2`, `diy` is a custom box. |
| GZIP_IMGS | auto | Set the format of the file compression after packaging, optional values are `.gz` (default) / `.xz` / `.zip` / `.zst` / `.7z` |
| SELECT_PACKITPATH | openwrt_packit | Set the name of the packaging directory under `/opt` |
| SELECT_OUTPUTPATH | output | Set the name of the firmware output directory in the `${SELECT_PACKITPATH}` directory |
Expand All @@ -51,6 +51,7 @@ Based on the latest kernel packaging scripts released by `Flippy`, optional para
| SCRIPT_L1PRO | mk_rk3328_l1pro.sh | Set the script filename for packaging `rk3328 l1pro` |
| SCRIPT_ZCUBE1MAX | mk_rk3399_zcube1-max.sh | Set the script filename for packaging `rk3399 zcube1-max` |
| SCRIPT_ROCK5B | mk_rk3588_rock5b.sh | Set the script filename for packaging `rk3588 rock5b` |
| SCRIPT_ROCK5C | mk_rk3588_rock5c.sh | Set the script filename for packaging `rk3588 rock5c` |
| SCRIPT_R66S | mk_rk3568_r66s.sh | Set the script filename for packaging `rk3568 r66s` |
| SCRIPT_R68S | mk_rk3568_r68s.sh | Set the script filename for packaging `rk3568 r68s` |
| SCRIPT_E25 | mk_rk3568_e25.sh | Set the script filename for packaging `rk3568 e25` |
Expand Down
7 changes: 5 additions & 2 deletions openwrt_flippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PACKAGE_FILE="openwrt-armvirt-64-generic-rootfs.tar.gz"

# Set the list of supported device
PACKAGE_OPENWRT=(
"rock5b" "ak88" "h88k" "h88k-v3"
"rock5b" "rock5c" "ak88" "h88k" "h88k-v3"
"r66s" "r68s" "e25" "photonicat" "cm3"
"watermelon-pi" "zcube1-max" "jp-tvbox" "ht2" "e20c" "h28k" "h66k" "h68k" "h69k" "h69k-max"
"beikeyun" "l1pro"
Expand All @@ -38,7 +38,7 @@ PACKAGE_OPENWRT=(
"diy"
)
# Set the list of devices using the [ rk3588 ] kernel
PACKAGE_OPENWRT_RK3588=("rock5b" "ak88" "h88k" "h88k-v3")
PACKAGE_OPENWRT_RK3588=("rock5b" "rock5c" "ak88" "h88k" "h88k-v3")
# Set the list of devices using the [ rk35xx ] kernel
# Devices from the rk3528/rk3566/rk3568 series can utilize the rk35xx and rk3588 kernels.
PACKAGE_OPENWRT_RK35XX=("watermelon-pi" "zcube1-max" "jp-tvbox" "ht2" "e20c" "h28k" "h66k" "h68k" "h69k" "h69k-max")
Expand Down Expand Up @@ -83,6 +83,7 @@ SCRIPT_E25_FILE="mk_rk3568_e25.sh"
SCRIPT_PHOTONICAT_FILE="mk_rk3568_photonicat.sh"
SCRIPT_WATERMELONPI_FILE="mk_rk3568_watermelon-pi.sh"
SCRIPT_ROCK5B_FILE="mk_rk3588_rock5b.sh"
SCRIPT_ROCK5C_FILE="mk_rk3588_rock5c.sh"
SCRIPT_S905_FILE="mk_s905_mxqpro+.sh"
SCRIPT_S905D_FILE="mk_s905d_n1.sh"
SCRIPT_S905X2_FILE="mk_s905x2_x96max.sh"
Expand Down Expand Up @@ -159,6 +160,7 @@ init_var() {
[[ -n "${SCRIPT_PHOTONICAT}" ]] || SCRIPT_PHOTONICAT="${SCRIPT_PHOTONICAT_FILE}"
[[ -n "${SCRIPT_WATERMELONPI}" ]] || SCRIPT_WATERMELONPI="${SCRIPT_WATERMELONPI_FILE}"
[[ -n "${SCRIPT_ROCK5B}" ]] || SCRIPT_ROCK5B="${SCRIPT_ROCK5B_FILE}"
[[ -n "${SCRIPT_ROCK5C}" ]] || SCRIPT_ROCK5C="${SCRIPT_ROCK5C_FILE}"
[[ -n "${SCRIPT_S905}" ]] || SCRIPT_S905="${SCRIPT_S905_FILE}"
[[ -n "${SCRIPT_S905D}" ]] || SCRIPT_S905D="${SCRIPT_S905D_FILE}"
[[ -n "${SCRIPT_S905X2}" ]] || SCRIPT_S905X2="${SCRIPT_S905X2_FILE}"
Expand Down Expand Up @@ -522,6 +524,7 @@ EOF
r66s) [[ -f "${SCRIPT_R66S}" ]] && sudo ./${SCRIPT_R66S} ;;
r68s) [[ -f "${SCRIPT_R68S}" ]] && sudo ./${SCRIPT_R68S} ;;
rock5b) [[ -f "${SCRIPT_ROCK5B}" ]] && sudo ./${SCRIPT_ROCK5B} ;;
rock5c) [[ -f "${SCRIPT_ROCK5C}" ]] && sudo ./${SCRIPT_ROCK5C} ;;
e25) [[ -f "${SCRIPT_E25}" ]] && sudo ./${SCRIPT_E25} ;;
photonicat) [[ -f "${SCRIPT_PHOTONICAT}" ]] && sudo ./${SCRIPT_PHOTONICAT} ;;
watermelon-pi) [[ -f "${SCRIPT_WATERMELONPI}" ]] && sudo ./${SCRIPT_WATERMELONPI} ;;
Expand Down

0 comments on commit 9014bb4

Please sign in to comment.