diff --git a/README.en.md b/README.en.md index cd278e0a4aca1bb9c234c70944931917412ba821..c3d79179834a242a2a1872cf884b7e2ab4fef302 100644 --- a/README.en.md +++ b/README.en.md @@ -2,9 +2,9 @@ #### Description -The openEuler-1.0-LTS kernel for running on Raspberry Pi, located at branch [openEuler-1.0-LTS-raspi](https://gitee.com/openeuler/raspberrypi-kernel/tree/openEuler-1.0-LTS-raspi/). +The 4.19.90 kernel for running on Raspberry Pi, branch master is the branch on development. -This repository is built based on [openEuler-1.0-LTS kernel](https://gitee.com/openeuler/kernel/tree/openEuler-1.0-LTS/) and [Raspberry Pi kernel](https://github.com/raspberrypi/linux/tree/rpi-4.19.y). +This repository is based on [4.19.90-2003.4.0](https://gitee.com/openeuler/kernel/tree/openEuler-1.0-LTS/) version kernel which is built into openEuler 20.03 LTS, and is merge with the 4.19.y branch of [Raspberry Pi kernel](https://github.com/raspberrypi/linux/tree/rpi-4.19.y). #### Architecture Requirements @@ -18,35 +18,29 @@ Compile kernel and kernel modules. 1. Prepare compile environment -OS: openEuler or Centos 7/8; +OS: openEuler or CentOS 7/8; Architecture: ARM. -For example, you can use [QEMU](https://www.qemu.org/) to build ARM system emulation. +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 https://gitee.com/openeuler/raspberrypi-kernel.git` -3. Go to the source directory and checkout the openEuler-1.0-LTS-raspi branch - -`cd raspberrypi-kernel` - -`git checkout -b openEuler-1.0-LTS-raspi origin/openEuler-1.0-LTS-raspi` - -4. Load default settings +3. Load default settings `make openeuler-raspi_defconfig` -5. Compile kernel +4. Compile kernel `make ARCH=arm64 -j4` -6. Create directory for compiling kernel modules +5. Create directory for compiling kernel modules `mkdir ../output` -7. Compile kernel modules +6. Compile kernel modules `make INSTALL_MOD_PATH=../output/ modules_install` diff --git a/README.md b/README.md index 50037bce003a901af93d01eecc40dc17cdfd38eb..516797509369e16bbcb4cea6a793ec13377e41fd 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,15 @@ #### 介绍 -适用于树莓派的 openEuler-1.0-LTS 内核源码,位于本仓库分支:[openEuler-1.0-LTS-raspi](https://gitee.com/openeuler/raspberrypi-kernel/tree/openEuler-1.0-LTS-raspi/)。 +适用于树莓派 的 4.19.90 版本的内核源码,主开发分支为 master 分支。 -本仓库基于 [openEuler-1.0-LTS 内核](https://gitee.com/openeuler/kernel/tree/openEuler-1.0-LTS/) 和 [树莓派内核](https://github.com/raspberrypi/linux/tree/rpi-4.19.y)。 +本仓库基于 openEuler 20.3 LTS 的 [4.19.90-2003.4.0](https://gitee.com/openeuler/kernel/tree/4.19.90-2003.4.0/) 版本的内核,合并了上游 [树莓派内核 4.19.y](https://github.com/raspberrypi/linux/tree/rpi-4.19.y) 的分支代码。 +#### 支持硬件 -#### 硬件要求 +树莓派 3B/3B+/4B -硬件:树莓派 3B/3B+4B。 - -架构:AArch64。 +架构:AArch64 #### 编译 @@ -19,35 +18,29 @@ 1. 准备编译环境 -操作系统:openEuler 或 Centos 7/8; +操作系统:openEuler 或 CentOS 7/8 -架构:ARM。 +架构:AArch64 -可以使用 [QEMU](https://www.qemu.org) 模拟器搭建 ARM 运行环境。 +交叉编译请参照:[交叉编译内核](https://gitee.com/openeuler/raspberrypi/blob/master/documents/交叉编译内核.md) 2. 下载源码 `git clone https://gitee.com/openeuler/raspberrypi-kernel.git` -3. 进入源码目录并切换到openEuler-1.0-LTS-raspi分支 - -`cd raspberrypi-kernel` - -`git checkout -b openEuler-1.0-LTS-raspi origin/openEuler-1.0-LTS-raspi` - -4. 载入默认设置 +3. 载入默认设置 `make openeuler-raspi_defconfig` -5. 编译内核 +4. 编译内核 `make ARCH=arm64 -j4` -6. 创建编译内核模块目录 +5. 创建编译内核模块目录 `mkdir ../output` -7. 编译内核模块 +6. 编译内核模块 `make INSTALL_MOD_PATH=../output/ modules_install`