From c8bb0575ddf384c39ca746f94e2ad7e80f4d34bf Mon Sep 17 00:00:00 2001 From: yafen Date: Thu, 2 Sep 2021 19:06:32 +0800 Subject: [PATCH] refine readme --- README.en.md | 22 +++++++++++++--------- README.md | 22 +++++++++++++--------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/README.en.md b/README.en.md index 8bec7d3d7fe3..3520e1ac7a33 100644 --- a/README.en.md +++ b/README.en.md @@ -1,5 +1,7 @@ # raspberrypi-kernel +English | [简体中文](./README.md) + #### Description The 4.19.90 kernel for running on Raspberry Pi. @@ -8,7 +10,7 @@ This repository is based on [openEuler 20.03 LTS](https://gitee.com/openeuler/ke #### Architecture Requirements -Hardware: Raspberry Pi 3B/3B+/4B. +Hardware: Raspberry Pi 3B/3B+/4B/400. Architecture: AArch64. @@ -18,31 +20,33 @@ Compile kernel and kernel modules. 1. Prepare compile environment -OS: openEuler or CentOS 7/8; + OS: openEuler or CentOS 7/8; -Architecture: AArch64. + Architecture: AArch64. -You follow the documents of [raspberrypi](https://gitee.com/openeuler/raspberrypi/blob/master/README.en.md) to cross-compile this kernel. + You follow the documents of [raspberrypi](https://gitee.com/openeuler/raspberrypi/blob/master/README.en.md) to cross-compile this kernel. 2. Download source -`git clone git@gitee.com:openeuler/raspberrypi-kernel.git` + `git clone git@gitee.com:openeuler/raspberrypi-kernel.git -b openEuler-20.03-LTS && cd raspberrypi-kernel` 3. Load default settings -`make openeuler-raspi_defconfig` + `make openeuler-raspi_defconfig` + + The corresponding defconfig file is in ./arch/arm64/configs. 4. Compile kernel -`make ARCH=arm64 -j4` + `make ARCH=arm64 -j4` 5. Create directory for compiling kernel modules -`mkdir ../output` + `mkdir ../output` 6. Compile kernel modules -`make INSTALL_MOD_PATH=../output/ modules_install` + `make INSTALL_MOD_PATH=../output/ modules_install` Now, the kernel compilation is complete. diff --git a/README.md b/README.md index d4b1a78dbfc2..20598ccbe1f7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # raspberrypi-kernel +[English](./README.en.md) | 简体中文 + #### 介绍 适用于树莓派 的 4.19.90 版本的内核源码。 @@ -8,7 +10,7 @@ #### 支持硬件 -树莓派 3B/3B+/4B +树莓派 3B/3B+/4B/400 架构:AArch64 @@ -18,31 +20,33 @@ 1. 准备编译环境 -操作系统:openEuler 或 CentOS 7/8 + 操作系统:openEuler 或 CentOS 7/8 -架构:AArch64 + 架构:AArch64 -交叉编译请参照:[交叉编译内核](https://gitee.com/openeuler/raspberrypi/blob/master/documents/交叉编译内核.md) + 交叉编译请参照:[交叉编译内核](https://gitee.com/openeuler/raspberrypi/blob/master/documents/交叉编译内核.md) 2. 下载源码 -`git clone git@gitee.com:openeuler/raspberrypi-kernel.git` + `git clone git@gitee.com:openeuler/raspberrypi-kernel.git -b openEuler-20.03-LTS && cd raspberrypi-kernel` 3. 载入默认设置 -`make openeuler-raspi_defconfig` + `make openeuler-raspi_defconfig` + + 对应的 defconfig 文件在 ./arch/arm64/configs 下。 4. 编译内核 -`make ARCH=arm64 -j4` + `make ARCH=arm64 -j4` 5. 创建编译内核模块目录 -`mkdir ../output` + `mkdir ../output` 6. 编译内核模块 -`make INSTALL_MOD_PATH=../output/ modules_install` + `make INSTALL_MOD_PATH=../output/ modules_install` 至此,内核编译完成。 -- Gitee