Skip to content

Commit

Permalink
Complete documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jan 28, 2022
1 parent 9f8abb6 commit 1d1d2db
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 69 deletions.
34 changes: 18 additions & 16 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ ddbr

## 打包命令的相关参数说明

| 参数 | 含义 | 说明 |
| ---- | ---- | ---- |
| -d | Defaults | 使用默认配置 |
| -b | Build | 指定电视盒子型号,如 `-b s905x3` . 多个型号使用 `_` 进行连接,如 `-b s905x3_s905d` . 可以指定的型号有: `s905x3`, `s905x2`, `s905x`, `s905w`, `s905d`, `s905d-ki`, `s905`, `s922x`, `s922x-n2`, `s912`, `s912-t95z` 。说明:`s922x-reva``s922x-gtking-pro-rev_a``s922x-n2``s922x-odroid-n2``s912-t95z``s912-t95z-plus``s905d-ki``s912-mecool-ki-pro``s905x2-km3``s905x2-mecool-km3` |
| -v | Version | 指定内核 [版本分支](https://github.com/ophub/kernel/tree/main/pub) 名称,如 `-v stable` 。指定的名称须与分支目录名称相同。默认使用 `stable` 分支版本。 |
| -k | Kernel | 指定 [kernel](https://github.com/ophub/kernel/tree/main/pub/stable) 名称,如 `-k 5.4.170` . 多个内核使用 `_` 进行连接,如 `-k 5.15.13_5.4.170` |
| -a | AutoKernel | 设置是否自动采用同系列最新版本内核。当为 `true` 时,将自动在内核库中查找在 `-k` 中指定的内核如 5.4.170 的 5.4 同系列是否有更新的版本,如有 5.4.170 之后的最新版本时,将自动更换为最新版。设置为 `false` 时将编译指定版本内核。默认值:`true` |
| -s | Size | 对固件的 ROOTFS 分区大小进行设置,默认大小为 2748M, 固件大小必须大于 2000M. 例如: `-s 2748` |
| 参数 | 含义 | 说明 |
| ---- | ---------- | ---------- |
| -d | Defaults | 使用默认配置 |
| -b | Build | 指定电视盒子型号,如 `-b s905x3` . 多个型号使用 `_` 进行连接,如 `-b s905x3_s905d` . 可以指定的型号有: `s905x3`, `s905x2`, `s905x`, `s905w`, `s905d`, `s905d-ki`, `s905`, `s922x`, `s922x-n2`, `s912`, `s912-t95z` 。说明:`s922x-reva``s922x-gtking-pro-rev_a``s922x-n2``s922x-odroid-n2``s912-t95z``s912-t95z-plus``s905d-ki``s912-mecool-ki-pro``s905x2-km3``s905x2-mecool-km3` |
| -v | Version | 指定内核 [版本分支](https://github.com/ophub/kernel/tree/main/pub) 名称,如 `-v stable` 。指定的名称须与分支目录名称相同。默认使用 `stable` 分支版本。 |
| -k | Kernel | 指定 [kernel](https://github.com/ophub/kernel/tree/main/pub/stable) 名称,如 `-k 5.4.170` . 多个内核使用 `_` 进行连接,如 `-k 5.15.13_5.4.170` |
| -a | AutoKernel | 设置是否自动采用同系列最新版本内核。当为 `true` 时,将自动在内核库中查找在 `-k` 中指定的内核如 5.4.170 的 5.4 同系列是否有更新的版本,如有 5.4.170 之后的最新版本时,将自动更换为最新版。设置为 `false` 时将编译指定版本内核。默认值:`true` |
| -s | Size | 对固件的 ROOTFS 分区大小进行设置,默认大小为 2748M, 固件大小必须大于 2000M. 例如: `-s 2748` |

- `sudo ./rebuild -d -b s905x3 -k 5.4.170` : 推荐使用. 使用默认配置进行相关内核打包。
- `sudo ./rebuild -d -b s905x3_s905d -k 5.15.13_5.4.170` : 使用默认配置,进行多个内核同时打包。使用 `_` 进行多内核参数连接。
Expand Down Expand Up @@ -202,14 +202,16 @@ sudo apt-get install -y $(curl -fsSL git.io/ubuntu-2004-server)
- GitHub Action 输入参数说明
| 参数 | 默认值 | 说明 |
|------------------------|------------------------|------------------------------------------------|
| armbian_path | no | 设置原版 Armbian 文件的路径,支持使用当前工作流中的文件路径如 `build/output/images/*.img` ,也支持使用网络下载地址如: `https://dl.armbian.com/*/Armbian_*.img.xz` |
| armbian_soc | s905d_s905x3 | 设置打包盒子的 `SOC` ,可指定单个盒子如 `s905x3` ,可选择多个盒子用_连接如 `s905x3_s905d` 。各盒子的SoC代码为:`s905x3`, `s905x2`, `s905x`, `s905w`, `s905d`, `s905d-ki`, `s905`, `s922x`, `s922x-n2`, `s912`, `s912-t95z` 。说明:`s922x-reva` 是 `s922x-gtking-pro-rev_a`,`s922x-n2` 是 `s922x-odroid-n2` ,`s912-t95z` 是 `s912-t95z-plus` ,`s905d-ki` 是 `s912-mecool-ki-pro`,`s905x2-km3` 是 `s905x2-mecool-km3` |
| version_branch | stable | 指定内核 [版本分支](https://github.com/ophub/kernel/tree/main/pub) 名称,如 `stable` 。指定的名称须与分支目录名称相同。默认使用 `stable` 分支版本 |
| armbian_kernel | 5.15.13_5.4.170 | 设置内核 [版本](https://github.com/ophub/kernel/tree/main/pub/stable) 如 `5.4.170` ,多个内核使用 `_` 进行连接,如 `5.15.13_5.4.170` |
| auto_kernel | true | 设置是否自动采用同系列最新版本内核。当为 `true` 时,将自动在内核库中查找在 `amlogic_kernel` 中指定的内核如 5.4.170 的 5.4 同系列是否有更新的版本,如有 5.4.170 之后的最新版本时,将自动更换为最新版。设置为 `false` 时将编译指定版本内核。默认值:`true` |
| armbian_size | 2748 | 设置固件 ROOTFS 分区的大小,必须大于 2000 |
相关参数与`本地打包命令`相对应,请参考上面的说明。

| 参数 | 默认值 | 说明 |
|------------------|-------------------|------------------------------------------------|
| armbian_path | no | 设置原版 Armbian 文件的路径,支持使用当前工作流中的文件路径如 `build/output/images/*.img` ,也支持使用网络下载地址如: `https://dl.armbian.com/*/Armbian_*.img.xz` |
| armbian_soc | s905d_s905x3 | 设置打包盒子的 `SOC` ,功能参考 `-b` |
| version_branch | stable | 指定内核 [版本分支](https://github.com/ophub/kernel/tree/main/pub) 名称,功能参考 `-v` |
| armbian_kernel | 5.15.13_5.4.170 | 设置内核 [版本](https://github.com/ophub/kernel/tree/main/pub/stable),功能参考 `-k` |
| auto_kernel | true | 设置是否自动采用同系列最新版本内核,功能参考 `-a` |
| armbian_size | 2748 | 设置固件 ROOTFS 分区的大小,功能参考 `-s` |

- GitHub Action 输出变量说明

Expand Down
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ According to the prompt, enter `b` to perform system backup, and enter `r` to pe
## Detailed build compile command

| Parameter | Meaning | Description |
| ---- | ---- | ---- |
| -d | Defaults | Compile all cores and all firmware types. |
| -b | Build | Specify the Build firmware type. Write the build firmware name individually, such as `-b s905x3` . Multiple firmware use `_` connect such as `-b s905x3_s905d` . You can use these codes: `s905x3`, `s905x2`, `s905x`, `s905w`, `s905d`, `s905d-ki`, `s905`, `s922x`, `s922x-n2`, `s912`, `s912-t95z` . Note: `s922x-reva` is `s922x-gtking-pro-rev_a`, `s922x-n2` is `s922x-odroid-n2`, `s912-t95z` is `s912-t95z-plus`, `s905d-ki` is `s912-mecool-ki-pro`, `s905x2-km3` is `s905x2-mecool-km3`. |
| -v | Version | Specify the [version branch](https://github.com/ophub/kernel/tree/main/pub), Such as `-v stable`. The specified name must be the same as the branch directory name. The `stable` branch version is used by default. |
| -k | Kernel | Specify the [kernel version](https://github.com/ophub/kernel/tree/main/pub/stable), Such as `-k 5.4.170` . Multiple kernel use `_` connection such as `-k 5.15.13_5.4.170` |
| -a | AutoKernel | Set whether to automatically adopt the latest version of the kernel of the same series. When it is `true`, it will automatically find in the kernel library whether there is an updated version of the kernel specified in `-k` such as 5.4.170 version. If there is the latest version of 5.4 same series, it will automatically Replace with the latest version. When set to `false`, the specified version of the kernel will be compiled. Default value: `true` |
| -s | Size | Specify the size of the ROOTFS partition in MB. The default is 2748, and the specified size must be greater than 2000. Such as `-s 2748` |
| ------ | ---------- | ----------------------------------------- |
| -d | Defaults | Compile all cores and all firmware types. |
| -b | Build | Specify the Build firmware type. Write the build firmware name individually, such as `-b s905x3` . Multiple firmware use `_` connect such as `-b s905x3_s905d` . You can use these codes: `s905x3`, `s905x2`, `s905x`, `s905w`, `s905d`, `s905d-ki`, `s905`, `s922x`, `s922x-n2`, `s912`, `s912-t95z` . Note: `s922x-reva` is `s922x-gtking-pro-rev_a`, `s922x-n2` is `s922x-odroid-n2`, `s912-t95z` is `s912-t95z-plus`, `s905d-ki` is `s912-mecool-ki-pro`, `s905x2-km3` is `s905x2-mecool-km3`. |
| -v | Version | Specify the [version branch](https://github.com/ophub/kernel/tree/main/pub), Such as `-v stable`. The specified name must be the same as the branch directory name. The `stable` branch version is used by default. |
| -k | Kernel | Specify the [kernel version](https://github.com/ophub/kernel/tree/main/pub/stable), Such as `-k 5.4.170` . Multiple kernel use `_` connection such as `-k 5.15.13_5.4.170` |
| -a | AutoKernel | Set whether to automatically adopt the latest version of the kernel of the same series. When it is `true`, it will automatically find in the kernel library whether there is an updated version of the kernel specified in `-k` such as 5.4.170 version. If there is the latest version of 5.4 same series, it will automatically Replace with the latest version. When set to `false`, the specified version of the kernel will be compiled. Default value: `true` |
| -s | Size | Specify the size of the ROOTFS partition in MB. The default is 2748, and the specified size must be greater than 2000. Such as `-s 2748` |

- `sudo ./rebuild -d -b s905x3 -k 5.4.170`: recommend. Use the default configuration, specify a kernel and a firmware for compilation.
- `sudo ./rebuild -d -b s905x3_s905d -k 5.15.13_5.4.170`: Use the default configuration, specify multiple cores, and multiple firmware for compilation. use `_` to connect.
Expand Down Expand Up @@ -202,14 +202,16 @@ You can use other methods to build the Armbian system. Or use [Armbian](https://
- GitHub Action Input parameter description
| Parameter | Defaults | Description |
|------------------------|------------------------|---------------------------------------------------------------|
| armbian_path | no | Set the path of the original Armbian file, support the file path in the current workflow such as `build/output/images/*.img`, and also support the use of the network download address such as: `https://dl.armbian.com/*/Armbian_*.img.xz` |
| armbian_soc | s905d_s905x3 | Set the `SoC` of the packaging box, you can specify a single box such as `s905x3`, you can choose multiple boxes to use `_` connection such as `s905x3_s905d` . SOC code of each box is: `s905x3`, `s905x2`, `s905x`, `s905w`, `s905d`, `s905d-ki`, `s905`, `s922x`, `s922x-n2`, `s912`, `s912-t95z` . Note: `s922x-reva` is `s922x-gtking-pro-rev_a`, `s922x-n2` is `s922x-odroid-n2`, `s912-t95z` is `s912-t95z-plus`, `s905d-ki` is `s912-mecool-ki-pro`, `s905x2-km3` is `s905x2-mecool-km3`. |
| version_branch | stable | Set the [version branch](https://github.com/ophub/kernel/tree/main/pub), Such as `stable`. The specified name must be the same as the branch directory name. The `stable` branch version is used by default. |
| armbian_kernel | 5.15.13_5.4.170 | Set the [kernel version](https://github.com/ophub/kernel/tree/main/pub/stable), Such as `5.4.170` . Multiple kernel use `_` connection such as `5.15.13_5.4.170` |
| auto_kernel | true | Set whether to automatically adopt the latest version of the kernel of the same series. When it is `true`, it will automatically find in the kernel library whether there is an updated version of the kernel specified in `amlogic_kernel`. such as 5.4.170 version. If there is the latest version of 5.4 same series, it will automatically Replace with the latest version. When set to `false`, the specified version of the kernel will be compiled. Default value: `true` |
| armbian_size | 2748 | Set the size of the firmware ROOTFS partition, and the specified size must be greater than 2000. |
The relevant parameters correspond to the `local packaging command`, please refer to the above description.

| Parameter | Defaults | Description |
|--------------------|-------------------|---------------------------------------------------------------|
| armbian_path | no | Set the path of the original Armbian file, support the file path in the current workflow such as `build/output/images/*.img`, and also support the use of the network download address such as: `https://dl.armbian.com/*/Armbian_*.img.xz` |
| armbian_soc | s905d_s905x3 | Set the `SOC` of the packaged box, function reference `-b` |
| version_branch | stable | Specify the name of the kernel [version branch](https://github.com/ophub/kernel/tree/main/pub), function reference `-v` |
| armbian_kernel | 5.15.13_5.4.170 | Set kernel [version](https://github.com/ophub/kernel/tree/main/pub/stable), function reference `-k` |
| auto_kernel | true | Set whether to automatically use the latest version of the same series of kernels, function reference `-a` |
| armbian_size | 2748 | Set the size of the firmware ROOTFS partition, function reference `-s` |

- GitHub Action Output variable description

Expand Down
Loading

0 comments on commit 1d1d2db

Please sign in to comment.