提交 9ffc583c 编写于 作者: J Jianmin 提交者: yafen

Change the default branch to master.

上级 3ff4e6f6
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
#### Description #### 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 #### Architecture Requirements
...@@ -18,35 +18,29 @@ Compile kernel and kernel modules. ...@@ -18,35 +18,29 @@ Compile kernel and kernel modules.
1. Prepare compile environment 1. Prepare compile environment
OS: openEuler or Centos 7/8; OS: openEuler or CentOS 7/8;
Architecture: ARM. 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 2. Download source
`git clone https://gitee.com/openeuler/raspberrypi-kernel.git` `git clone https://gitee.com/openeuler/raspberrypi-kernel.git`
3. Go to the source directory and checkout the openEuler-1.0-LTS-raspi branch 3. Load default settings
`cd raspberrypi-kernel`
`git checkout -b openEuler-1.0-LTS-raspi origin/openEuler-1.0-LTS-raspi`
4. Load default settings
`make openeuler-raspi_defconfig` `make openeuler-raspi_defconfig`
5. Compile kernel 4. Compile kernel
`make ARCH=arm64 -j4` `make ARCH=arm64 -j4`
6. Create directory for compiling kernel modules 5. Create directory for compiling kernel modules
`mkdir ../output` `mkdir ../output`
7. Compile kernel modules 6. Compile kernel modules
`make INSTALL_MOD_PATH=../output/ modules_install` `make INSTALL_MOD_PATH=../output/ modules_install`
......
...@@ -2,16 +2,15 @@ ...@@ -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 @@ ...@@ -19,35 +18,29 @@
1. 准备编译环境 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. 下载源码 2. 下载源码
`git clone https://gitee.com/openeuler/raspberrypi-kernel.git` `git clone https://gitee.com/openeuler/raspberrypi-kernel.git`
3. 进入源码目录并切换到openEuler-1.0-LTS-raspi分支 3. 载入默认设置
`cd raspberrypi-kernel`
`git checkout -b openEuler-1.0-LTS-raspi origin/openEuler-1.0-LTS-raspi`
4. 载入默认设置
`make openeuler-raspi_defconfig` `make openeuler-raspi_defconfig`
5. 编译内核 4. 编译内核
`make ARCH=arm64 -j4` `make ARCH=arm64 -j4`
6. 创建编译内核模块目录 5. 创建编译内核模块目录
`mkdir ../output` `mkdir ../output`
7. 编译内核模块 6. 编译内核模块
`make INSTALL_MOD_PATH=../output/ modules_install` `make INSTALL_MOD_PATH=../output/ modules_install`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册