From f37b236da3a075e2a2fcc829445f18be5e985838 Mon Sep 17 00:00:00 2001 From: Jianmin Date: Mon, 20 Apr 2020 14:50:42 +0800 Subject: [PATCH 1/2] Change the default branch to master. --- README.en.md | 22 ++++++++-------------- README.md | 31 ++++++++++++------------------- 2 files changed, 20 insertions(+), 33 deletions(-) diff --git a/README.en.md b/README.en.md index cd278e0a4aca..c3d79179834a 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 50037bce003a..516797509369 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` -- Gitee From a1c97e9790f9774d3048323c3e6d96a699c2ae72 Mon Sep 17 00:00:00 2001 From: Jianmin Date: Wed, 22 Apr 2020 23:16:22 +0800 Subject: [PATCH 2/2] fix error words. --- README.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.en.md b/README.en.md index c3d79179834a..899f9f772a05 100644 --- a/README.en.md +++ b/README.en.md @@ -4,7 +4,7 @@ The 4.19.90 kernel for running on Raspberry Pi, branch master is the branch on development. -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). +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 merged with the 4.19.y branch of [Raspberry Pi kernel](https://github.com/raspberrypi/linux/tree/rpi-4.19.y). #### Architecture Requirements @@ -20,7 +20,7 @@ Compile kernel and kernel modules. OS: openEuler or CentOS 7/8; -Architecture: ARM. +Architecture: AArch64. You follow the documents of [raspberrypi](https://gitee.com/openeuler/raspberrypi/blob/master/README.en.md) to cross-compile this kernel. -- Gitee