Skip to content

Commit

Permalink
Fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Dec 30, 2021
1 parent 3aa7ff3 commit 9068519
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions compile-kernel/README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sudo apt-get install -y $(curl -fsSL git.io/armbian-kernel-server)

2. 克隆仓库到本地 `git clone --depth 1 https://github.com/ophub/amlogic-s9xxx-armbian.git`

3. 首先在 `~/amlogic-s9xxx-armbian/compile-kernel` 目录下创建 `kernle` 目录,用于存放编译的内核源码。如采用 [kernel.org](https://cdn.kernel.org/pub/linux/kernel/v5.x/) 的源码进行编译,请下载对应的内核如 `linux-5.4.160.tar.xz` 并解压到对应的 `compile-kernel/kernle/linux-5.4.160` 目录下;如采用 [flippy](https://github.com/unifreq) 的源码进行编译,请克隆指定内核系列的源码如 `git clone --depth 1 https://github.com/unifreq/linux-5.4.y compile-kernel/kernle/linux-5.4.y` 到对应的目录下。完成后进入对应的内核如 `compile-kernel/kernle/linux-5.4.160` 的目录下,复制对应的内核系列的 [.config](tools/config) 模板到当前内核目录(如复制 config-5.4.160 文件,并重命名为 `.config`),并运行个性化配置选择命令 `make menuconfig` 进行自定义选择,完成后保存,会在内核目录下生成自定义的内核 `.config` 配置文件。
3. 首先在 `~/amlogic-s9xxx-armbian/compile-kernel` 目录下创建 `kernel` 目录,用于存放编译的内核源码。如采用 [kernel.org](https://cdn.kernel.org/pub/linux/kernel/v5.x/) 的源码进行编译,请下载对应的内核如 `linux-5.4.160.tar.xz` 并解压到对应的 `compile-kernel/kernel/linux-5.4.160` 目录下;如采用 [flippy](https://github.com/unifreq) 的源码进行编译,请克隆指定内核系列的源码如 `git clone --depth 1 https://github.com/unifreq/linux-5.4.y compile-kernel/kernel/linux-5.4.y` 到对应的目录下。完成后进入对应的内核如 `compile-kernel/kernel/linux-5.4.160` 的目录下,复制对应的内核系列的 [.config](tools/config) 模板到当前内核目录(如复制 config-5.4.160 文件,并重命名为 `.config`),并运行个性化配置选择命令 `make menuconfig` 进行自定义选择,完成后保存,会在内核目录下生成自定义的内核 `.config` 配置文件。

4. 进入 `~/amlogic-s9xxx-armbian` 根目录,然后运行 `sudo ./recompile -d -k 5.4.160 -r flippy -a false` 等指定参数命令即可编译内核。打包好的内核文件保存在 `compile-kernel/output` 目录里。

Expand All @@ -46,9 +46,9 @@ sudo apt-get install -y $(curl -fsSL git.io/armbian-kernel-server)

## 其他说明

1. 内核编译文件检查的优先级:如果 `compile-kernel/kernle` 目录下有指定内核的文件夹如 `linux-5.4.160` 时,将使用本地源码进行编译;当没有指定内核的文件夹,但有指定内核的压缩文件如 linux-5.4.160.tar.xz 时,将自动解压并进行编译;当本地没有指定内核时,将自动从服务器下载并编译。
1. 内核编译文件检查的优先级:如果 `compile-kernel/kernel` 目录下有指定内核的文件夹如 `linux-5.4.160` 时,将使用本地源码进行编译;当没有指定内核的文件夹,但有指定内核的压缩文件如 linux-5.4.160.tar.xz 时,将自动解压并进行编译;当本地没有指定内核时,将自动从服务器下载并编译。

2. 如果本地的内核目录如 `compile-kernel/kernle/linux-5.4.160` 中没有 [.config](tools/config) 文件,将自动从 flippy 分享的模板中复制相同内核系列的配置文件。
2. 如果本地的内核目录如 `compile-kernel/kernel/linux-5.4.160` 中没有 [.config](tools/config) 文件,将自动从 flippy 分享的模板中复制相同内核系列的配置文件。

3. 目前在 `Armbian` 系统下编译内核是最好的选择,强烈推荐。在 `x86_64` 环境下编译内核时,会自动下载 Armbian 系统,并通过 chroot 实现 `uInitrd` 文件的生成。内核编译完成后,将会按照 flippy 分享的内核文件的组织方式自动打包成 6 个内核文件,并存放在 `compile-kernel/output` 目录下。这些内核文件会自动从当前内核编译的系统中自动清除。如果你想在当前 Armbian 系统安装,可进入对应的内核目录如 `compile-kernel/output/5.4.160` 下,执行 `armbian-update` 命令进行内核安装。内核中的 `headers` 文件默认安装在 `/use/local/include` 目录下。

Expand Down
6 changes: 3 additions & 3 deletions compile-kernel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sudo apt-get install -y $(curl -fsSL git.io/armbian-kernel-server)

2. Clone the repository to local: `git clone --depth 1 https://github.com/ophub/amlogic-s9xxx-armbian.git`

3. First create a `kernle` directory under the `~/amlogic-s9xxx-armbian/compile-kernel` directory to store the compiled kernel source code. For example, use the source code of [kernel.org](https://cdn.kernel.org/pub/linux/kernel/v5.x/) to compile, Please download the corresponding kernel such as `linux-5.4.160.tar.xz` and unzip it to the `compile-kernel/kernle/linux-5.4.160` corresponding directory; If you use the source code of [flippy](https://github.com/unifreq) to compile, Please clone the source code of the specified kernel series such as `git clone --depth 1 https://github.com/unifreq/linux-5.4.y compile-kernel/kernle/linux-5.4.y` to the corresponding directory. After completion, enter the corresponding kernel such as `compile-kernel/kernle/linux-5.4.160` directory, Copy the [.config](tools/config) template of the corresponding kernel series to the current kernel directory (For example, copy the config-5.4.160 file and rename it to `.config`), Then run the personalized configuration selection command `make menuconfig` to Make a custom selection, save it after completion, A custom kernel `.config` configuration file will be generated in the kernel directory.
3. First create a `kernel` directory under the `~/amlogic-s9xxx-armbian/compile-kernel` directory to store the compiled kernel source code. For example, use the source code of [kernel.org](https://cdn.kernel.org/pub/linux/kernel/v5.x/) to compile, Please download the corresponding kernel such as `linux-5.4.160.tar.xz` and unzip it to the `compile-kernel/kernel/linux-5.4.160` corresponding directory; If you use the source code of [flippy](https://github.com/unifreq) to compile, Please clone the source code of the specified kernel series such as `git clone --depth 1 https://github.com/unifreq/linux-5.4.y compile-kernel/kernel/linux-5.4.y` to the corresponding directory. After completion, enter the corresponding kernel such as `compile-kernel/kernel/linux-5.4.160` directory, Copy the [.config](tools/config) template of the corresponding kernel series to the current kernel directory (For example, copy the config-5.4.160 file and rename it to `.config`), Then run the personalized configuration selection command `make menuconfig` to Make a custom selection, save it after completion, A custom kernel `.config` configuration file will be generated in the kernel directory.

4. Enter the root directory of `~/amlogic-s9xxx-armbian`, and then run `sudo ./recompile -d -k 5.4.160 -r flippy -a false` and other specified parameter commands to compile the kernel. The packaged kernel file is stored in the `compile-kernel/output` directory.

Expand All @@ -46,9 +46,9 @@ sudo apt-get install -y $(curl -fsSL git.io/armbian-kernel-server)

## Other instructions

1. Priority of kernel compilation file inspection: If there is a folder of the specified kernel in the `compile-kernel/kernle` directory, such as `linux-5.4.160`, the local source code will be used for compilation; when there is no specified kernel folder, but there is a compressed file of the specified kernel, such as linux -5.4.160.tar.xz, it will be automatically decompressed and compiled; when no kernel is specified locally, it will be automatically downloaded and compiled from the server.
1. Priority of kernel compilation file inspection: If there is a folder of the specified kernel in the `compile-kernel/kernel` directory, such as `linux-5.4.160`, the local source code will be used for compilation; when there is no specified kernel folder, but there is a compressed file of the specified kernel, such as linux -5.4.160.tar.xz, it will be automatically decompressed and compiled; when no kernel is specified locally, it will be automatically downloaded and compiled from the server.

2. If there is no [.config](tools/config) file in the local kernel directory such as `compile-kernel/kernle/linux-5.4.160`, the file will be automatically copied from template.
2. If there is no [.config](tools/config) file in the local kernel directory such as `compile-kernel/kernel/linux-5.4.160`, the file will be automatically copied from template.

3. Currently, compiling the kernel under the `Armbian` system is the best choice, and it is highly recommended. When compiling the kernel under the `x86_64` environment, the Armbian system will be automatically downloaded, and the `uInitrd` file will be generated through chroot. 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 system compiled with the current kernel. If you want to install on the current Armbian system, you can enter the corresponding kernel directory such as `compile-kernel/output/5.4.160` and execute the `armbian-update` command to install the kernel. The `headers` files in the kernel is installed in the `/use/local/include` directory.

Expand Down

0 comments on commit 9068519

Please sign in to comment.