Skip to content

Commit

Permalink
Support automatic query and update
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jan 18, 2022
1 parent 9e7a232 commit 2918d6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ armbian-install

- ### 更新 Armbian 内核

查询 [可选内核](https://github.com/ophub/kernel/tree/main/pub/stable) 版本,登录 Armbian 系统 → 输入命令:
登录 Armbian 系统 → 输入命令:

```yaml
# 使用 root 用户运行 (sudo -i), 输入命令: armbian-update <内核版本>
armbian-update 5.4.170
# 使用 root 用户运行 (sudo -i)
armbian-update
```

如果当前目录下有成套的内核文件,可以运行 `armbian-update` 命令安装此内核。内核更新脚本会在开发中不断更新,可使用此命令同步更新本地的脚本:`wget -O /usr/sbin/armbian-update git.io/armbian-update` 。或者直接使用服务器端最新脚本进行内核更新:`bash <(curl -fsSL git.io/armbian-update) 5.4.170`
如果当前目录下有成套的内核文件,将使用当前目录的内核进行更新。如果当前目录没有内核文件,将从服务器查询并下载同系列的最新内核进行更新。你也可以查询[可选内核](https://github.com/ophub/kernel/tree/main/pub/stable)版本,进行指定版本更新:`armbian-update 5.4.170`。在设备支持的可选内核里可以自由更新,如从 5.4.170 内核更新为 5.10.90 内核。内核更新脚本会在开发中不断更新,可使用此命令同步更新本地的脚本:`wget -O /usr/sbin/armbian-update git.io/armbian-update` 。或者直接使用服务器端最新脚本进行内核更新:`bash <(curl -fsSL git.io/armbian-update) 5.4.170`

内核更新时,默认从 [stable](https://github.com/ophub/kernel/tree/main/pub/stable) 内核版本分支下载,如果下载其他 [版本分支](https://github.com/ophub/kernel/tree/main/pub) 的内核,请在第 `2` 个参数中根据分支文件夹名称指定,如 `armbian-update 5.7.19 dev` 。默认不安装主线 u-boot,如果选择安装,请在第 `3` 个输入参数中指定,如 `armbian-update 5.4.170 stable yes`

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ The mainline u-boot is not installed by default, and individual boxes need to be

- ### Update Armbian Kernel

Query the available [kernel_version](https://github.com/ophub/kernel/tree/main/pub/stable). Login in to armbian → input command:
Login in to armbian → input command:

```yaml
# Run as root user (sudo -i), input command: armbian-update <kernel_version>
armbian-update 5.4.170
# Run as root user (sudo -i)
armbian-update
```

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 -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.170`
If there is a set of kernel files in the current directory, it will be updated with the kernel in the current directory. If there is no kernel file in the current directory, it will query and download the latest kernel of the same series from the server for update. You can also query the [optional kernel](https://github.com/ophub/kernel/tree/main/pub/stable) version and update the specified version: `armbian-update 5.4.170`. The optional kernel supported by the device can be freely updated, such as from 5.4.170 kernel to 5.10.90 kernel. The kernel update script will be continuously updated during development. You can use this command to update the local script synchronously: `wget -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.170`

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 `2` parameter, such as `armbian-update 5.7.19 dev` . The mainline u-boot is not installed by default, and individual boxes need to be installed when using kernels above 5.10. If you choose to install, specify it in the `3` input parameter, e.g. `armbian-update 5.4.170 stable yes`

Expand Down

0 comments on commit 2918d6d

Please sign in to comment.