forked from ophub/amlogic-s9xxx-armbian
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
207 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# 可以安装在 Amlogic S9xxx 系列盒子中使用的 Armbian 系统 | ||
|
||
查看英文说明 | [View English description](README.md) | ||
|
||
为 Amlogic S9xxx 系列盒子编译 Armbian 系统。支持写入 EMMC 中使用,支持更新内核等功能。支持的 Amlogic S9xxx 系列型号有 ***`s922x, s905x3, s905x2, s912, s905d, s905x, s905w`*** 等,例如 ***`Belink GT-King, Belink GT-King Pro, UGOOS AM6 Plus, X96-Max+, HK1-Box, H96-Max-X3, Phicomm-N1, Octopus-Planet, Fiberhome HG680P, ZTE B860H`*** 等盒子。 | ||
|
||
最新的 Armbian 固件可以在 [Releases](https://github.com/ophub/amlogic-s9xxx-armbian/releases) 中下载。欢迎 `Fork` 并进行个性化定制。如果对你有用,可以点仓库右上角的 `Star` 表示支持。 | ||
|
||
## Armbian 固件说明 | ||
|
||
| 型号 | 盒子 | [可选内核](https://github.com/ophub/flippy-kernel/tree/main/library) | Armbian 固件 | | ||
| ---- | ---- | ---- | ---- | | ||
| s922x | [Belink](https://tokopedia.link/RAgZmOM41db), [Belink-Pro](https://tokopedia.link/sfTHlfS41db), [Ugoos-AM6-Plus](https://tokopedia.link/pHGKXuV41db) | 全部 | armbian_aml_s922x_buster_*.img | | ||
| s905x3 | [X96-Max+](https://tokopedia.link/uMaH09s41db), [HK1-Box](https://tokopedia.link/xhWeQgTuwfb), [H96-Max-X3](https://tokopedia.link/KuWvwoYuwfb), [Ugoos-X3](https://tokopedia.link/duoIXZpdGgb), [X96-Air](https://tokopedia.link/5WHiETbdGgb), [A95XF3-Air](https://tokopedia.link/ByBL45jdGgb) | 全部 | armbian_aml_s905x3_buster_*.img | | ||
| s905x2 | [X96Max-4G](https://tokopedia.link/HcfLaRzjqeb), [X96Max-2G](https://tokopedia.link/HcfLaRzjqeb) | 全部 | armbian_aml_s905x2_buster_*.img | | ||
| s912 | [H96-Pro-Plus](https://tokopedia.link/jb42fsBdGgb), Octopus-Planet | 全部 | armbian_aml_s912_buster_*.img | | ||
| s905d | Phicomm-N1 | 全部 | armbian_aml_s905d_buster_*.img | | ||
| s905x | [HG680P](https://tokopedia.link/HbrIbqQcGgb), [B860H](https://tokopedia.link/LC4DiTXtEib) | 5.4.* | armbian_aml_s905x_buster_*.img | | ||
| s905w | [X96-Mini](https://tokopedia.link/ro207Hsjqeb), [TX3-Mini](https://www.tokopedia.com/beststereo/tanix-tx3-mini-2gb-16gb-android-7-1-kodi-17-3-amlogic-s905w-4k-tv-box) | 5.4.* | armbian_aml_s905w_buster_*.img | | ||
|
||
## 安装及升级 Armbian 的相关说明 | ||
|
||
选择和你的盒子型号对应的 Armbian 固件,使用 [Rufus](https://rufus.ie/) 或者 [balenaEtcher](https://www.balena.io/etcher/) 等工具将固件写入 USB 里,然后把写好固件的 USB 插入盒子。 | ||
|
||
- ### 安装 Armbian | ||
|
||
登录 Armbian 系统 (默认用户: root, 默认密码: 1234) → 输入命令: | ||
|
||
```yaml | ||
armbian-install | ||
``` | ||
|
||
- ### 更新 Armbian | ||
|
||
查询 [可选内核](https://github.com/ophub/flippy-kernel/tree/main/library) 版本,登录 Armbian 系统 → 输入命令: | ||
|
||
```yaml | ||
# 使用 root 用户运行 (sudo -i), 输入命令: armbian-update <内核版本> | ||
armbian-update 5.10.66 | ||
``` | ||
|
||
## Armbian 固件制作方法 | ||
|
||
- 不同的 Amlogic armbian 固件,使用对应的 soc 代码生成。 请根据你的盒子的 soc 型号进行选择。支持 `s922x`,`s905x3`,`s905x2`,`s912`,`s905d`,`s905x`,`s905w` | ||
|
||
- 编译单个盒子的 Armbian 时,输入对应的 soc 型号,如 `sudo ./make s905x3`。 如果同时编译多个不同盒子时,将对应的 soc 型号使用 `_` 连接, 如 `sudo ./make s922x_s905x3` | ||
|
||
- 可选项: 替换内核。如 `sudo ./make s905x 5.4.149`。当一次编译多个内核版本时,内核版本号使用 `_` 连接。如 `sudo ./make s922x_s905x3 5.4.149_5.14.6`。编译程序会自动到 [内核库](https://github.com/ophub/flippy-kernel/tree/main/library) 中查找你指定的内核系列是否有更新的版本,如果有则直接使用最新版。如果你想使用指定的固定版本,可以在版本号后使用 false 参数固定版本,如 `sudo ./make s905x 5.4.149 false` | ||
|
||
💡提示:当前 ***`s905x`*** 和 ***`s905w`*** 系列的盒子只支持使用 `5.4.*` 内核,不能使用 5.10.* 或更高版本,请在编译时指定替换内核。其他型号的盒子可任选内核版本使用。 | ||
|
||
- ### 使用 GitHub Action 进行编译 | ||
|
||
1. 关于 Workflows 文件的配置在 [.yml](.github/workflows) 文件里。可以设置需要编译的盒子的 `soc` 等参数,具体详见 `Make Armbian for amlogic s9xxx` 节点。 | ||
|
||
2. 全新编译:在 [Action](https://github.com/ophub/amlogic-s9xxx-armbian/actions) 页面里选择 ***`Build Armbian For Amlogic`*** ,点击 ***`Run workflow`*** 按钮即可编译。 | ||
|
||
3. 再次编译:如果 [Releases](https://github.com/ophub/amlogic-s9xxx-armbian/releases) 中有已经编译好的 `Armbian_.*_Lepotato_.*.img.gz` 文件,你只是想再次制作其他不同 soc 的盒子,可以跳过 Armbian 源文件的编译,直接进行二次制作。在 [Action](https://github.com/ophub/amlogic-s9xxx-armbian/actions) 页面中选择 ***`Use Releases file to build`*** ,点击 ***`Run workflow`*** 按钮即可二次编译。 | ||
|
||
- ### 本地化打包 | ||
|
||
1. 安装必要的软件包(如 Ubuntu 20.04 LTS 用户) | ||
|
||
```yaml | ||
sudo apt-get update -y | ||
sudo apt-get full-upgrade -y | ||
sudo apt-get install -y $(curl -fsSL git.io/ubuntu-2004-openwrt) | ||
``` | ||
|
||
2. 克隆仓库到本地 `git clone --depth 1 https://github.com/ophub/amlogic-s9xxx-armbian.git` | ||
3. 在根目录下创建文件夹 `build/output/images` ,并上传采用 `lepotato` 分支生成的 Armbian 镜像文件 ( 如:`Armbian_21.11.0-trunk_Lepotato_buster_current_5.10.67.img` ) 到 `~/amlogic-s9xxx-armbian/build/output/images` 目录里。 | ||
4. 进入 `~/amlogic-s9xxx-armbian` 根目录,然后运行 `sudo ./make s905x3` 命令即可生成指定 soc 的 Armbian 镜像文件。生成的文件保存在 `build/output/images` 目录里。 | ||
|
||
## 鸣谢 | ||
|
||
编译的 [armbian](https://github.com/armbian/build) 系统直接使用了官方当前的最新源码进行实时编译。为不同的盒子制作专用的 Armbian 系统时采用了 [flippy](https://github.com/unifreq/openwrt_packit) 为 `amlogic s9xxx openwrt` 制作的内核及 `u-boot` 等资源。程序的开发思路来自 [ebkso](https://www.kflyo.com/howto-compile-armbian-for-n1-box) 等作者的教程。感谢各位的奉献和分享,让我们可以在 Amlogic s9xxx 盒子里使用 Armbian 系统。 | ||
|
||
## License | ||
|
||
[LICENSE](https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/LICENSE) © OPHUB | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters