Skip to content

Commit

Permalink
armbian-update: install the current directory kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Dec 1, 2021
1 parent 4238ad3 commit 96be5d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ armbian-install
armbian-update 5.4.160
```

内核更新脚本会在开发中不断更新,可使用此命令同步更新本地的脚本:`wget -q -O /usr/sbin/armbian-update git.io/armbian-update` 。或者直接使用服务器端最新脚本进行内核更新:`bash <(curl -fsSL git.io/armbian-update) 5.4.160`
如果当前目录下有成套的内核文件,可以运行 `armbian-update` 命令安装此内核。内核更新脚本会在开发中不断更新,可使用此命令同步更新本地的脚本:`wget -q -O /usr/sbin/armbian-update git.io/armbian-update` 。或者直接使用服务器端最新脚本进行内核更新:`bash <(curl -fsSL git.io/armbian-update) 5.4.160`

内核更新时,默认从 [stable](https://github.com/ophub/kernel/tree/main/pub/stable) 内核版本分支下载,如果下载其他 [版本分支](https://github.com/ophub/kernel/tree/main/pub) 的内核,请在第 `2` 个参数中根据分支文件夹名称指定,如 `armbian-update 5.7.19 beta` 。默认自动安装主线 u-boot,可以更好的支持 5.10 及以上内核系列的使用。如果选择不安装,请在第 `3` 个输入参数中指定,如 `armbian-update 5.4.160 stable no`

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Query the available [kernel_version](https://github.com/ophub/kernel/tree/main/p
armbian-update 5.4.160
```

The kernel update script will be continuously updated during development. You can use this command to update the local script synchronously: `wget -q -O /usr/sbin/armbian-update git.io/armbian-update` . Or directly use the latest script on the server side to update the kernel: `bash <(curl -fsSL git.io/armbian-update) 5.4.160`
If there is a complete set of kernel files in the current directory, you can run the `armbian-update` command to install this kernel. The kernel update script will be continuously updated during development. You can use this command to update the local script synchronously: `wget -q -O /usr/sbin/armbian-update git.io/armbian-update` . Or directly use the latest script on the server side to update the kernel: `bash <(curl -fsSL git.io/armbian-update) 5.4.160`

When the kernel is updated, By default, download from [stable](https://github.com/ophub/kernel/tree/main/pub/stable) kernel version branch, if you download other [version branch](https://github.com/ophub/kernel/tree/main/pub), please specify according to the branch folder name in the `second` parameter, such as `armbian-update 5.7.19 beta` . The mainline u-boot is automatically installed by default, which can better support the use of kernel series 5.10 and above. If you choose not to install, please specify in the `third` input parameter, such as `armbian-update 5.4.160 stable no`

Expand Down
2 changes: 1 addition & 1 deletion compile-kernel/README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sudo apt-get install -y $(curl -fsSL git.io/armbian-kernel-server)

3. 目前,在 `x86_64` 环境下的交叉编译还不能完全代替真实 `Armbian` 环境下的内核编译。

4. 内核编译完成后,将会按照 flippy 分享的内核文件的组织方式自动打包成 5 个内核文件,并存放在 `compile-kernel/output` 目录下。这些内核文件会自动从当前内核编译的 Armbian 系统中清除。如果你想在当前系统安装,可进入对应的内核目录如 `compile-kernel/output/5.4.160` 下,执行指定内核安装命令如 `armbian-update 5.4.160` 进行安装。内核中的 `headers` 文件默认安装在 `/use/local/include` 目录下。
4. 内核编译完成后,将会按照 flippy 分享的内核文件的组织方式自动打包成 6 个内核文件,并存放在 `compile-kernel/output` 目录下。这些内核文件会自动从当前内核编译的 Armbian 系统中清除。如果你想在当前系统安装,可进入对应的内核目录如 `compile-kernel/output/5.4.160` 下,执行指定内核安装命令如 `armbian-update` 进行安装。内核中的 `headers` 文件默认安装在 `/use/local/include` 目录下。

5. 如果当前 `Armbian` 系统中已经安装了相同名称的内核如 `5.4.160-meson64-beta` ,将会自动停止编译,因为打包时会删除本地相同名称的内核文件,这么做会造成系统瘫痪。

Expand Down
2 changes: 1 addition & 1 deletion compile-kernel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sudo apt-get install -y $(curl -fsSL git.io/armbian-kernel-server)

3. At present, cross-compilation in the `x86_64` environment cannot completely replace the kernel compilation in the real `Armbian` environment.

4. After the kernel is compiled, it will be automatically packaged into 5 kernel files according to the organization of the kernel files shared by flippy and stored in the `compile-kernel/output` directory. These kernel files will be automatically cleared from the Armbian system compiled with the current kernel. If you want to install on the current system, you can enter the corresponding kernel directory such as `compile-kernel/output/5.4.160` and execute the specified kernel installation command such as `armbian-update 5.4.160` to install. The `headers` files in the kernel is installed in the `/use/local/include` directory.
4. After the kernel is compiled, it will be automatically packaged into 6 kernel files according to the organization of the kernel files shared by flippy and stored in the `compile-kernel/output` directory. These kernel files will be automatically cleared from the Armbian system compiled with the current kernel. If you want to install on the current system, you can enter the corresponding kernel directory such as `compile-kernel/output/5.4.160` and execute the specified kernel installation command such as `armbian-update` to install. The `headers` files in the kernel is installed in the `/use/local/include` directory.

5. If a kernel with the same name such as `5.4.160-meson64-beta` is already installed in the current `Armbian` system, the compilation will automatically stop, because the local kernel file with the same name will be deleted during packaging, which will cause the system to crash.

Expand Down

0 comments on commit 96be5d1

Please sign in to comment.