From 6aa5345c3d5660b8cccc54442eb0f9ee93a30c73 Mon Sep 17 00:00:00 2001 From: jianmin Date: Mon, 13 Apr 2020 14:48:16 +0800 Subject: [PATCH 1/2] Add introduction into master branch. --- README.en.md | 63 ++++++++++++++++++++++++++++++++++++++++++---------- README.md | 59 +++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 100 insertions(+), 22 deletions(-) diff --git a/README.en.md b/README.en.md index 0d4da111db8b..cd278e0a4aca 100644 --- a/README.en.md +++ b/README.en.md @@ -1,24 +1,62 @@ # raspberrypi-kernel #### Description -It provides openEuler kernel source for Raspberry Pi -#### Software Architecture -Software architecture 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/). -#### Installation +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). + +#### Architecture Requirements + +Hardware: Raspberry Pi 3B/3B+/4B. + +Architecture: AArch64. + +#### Compiling + +Compile kernel and kernel modules. + +1. Prepare compile environment + +OS: openEuler or Centos 7/8; + +Architecture: ARM. + +For example, you can use [QEMU](https://www.qemu.org/) to build ARM system emulation. + +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 -1. xxxx -2. xxxx -3. xxxx +`cd raspberrypi-kernel` -#### Instructions +`git checkout -b openEuler-1.0-LTS-raspi origin/openEuler-1.0-LTS-raspi` -1. xxxx -2. xxxx -3. xxxx +4. Load default settings -#### Contribution +`make openeuler-raspi_defconfig` + +5. Compile kernel + +`make ARCH=arm64 -j4` + +6. Create directory for compiling kernel modules + +`mkdir ../output` + +7. Compile kernel modules + +`make INSTALL_MOD_PATH=../output/ modules_install` + +Now, the kernel compilation is complete. + +#### Installation + +Refer to `https://gitee.com/openeuler/raspberrypi` for details about how to use this compiled kernel to build openEuler image for Rasberry Pi. + +#### Contributions 1. Fork the repository 2. Create Feat_xxx branch @@ -34,3 +72,4 @@ Software architecture description 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) + diff --git a/README.md b/README.md index 3101f8d1e47d..50037bce003a 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,61 @@ # raspberrypi-kernel #### 介绍 -It provides openEuler kernel source for Raspberry Pi -#### 软件架构 -软件架构说明 +适用于树莓派的 openEuler-1.0-LTS 内核源码,位于本仓库分支:[openEuler-1.0-LTS-raspi](https://gitee.com/openeuler/raspberrypi-kernel/tree/openEuler-1.0-LTS-raspi/)。 +本仓库基于 [openEuler-1.0-LTS 内核](https://gitee.com/openeuler/kernel/tree/openEuler-1.0-LTS/) 和 [树莓派内核](https://github.com/raspberrypi/linux/tree/rpi-4.19.y)。 -#### 安装教程 -1. xxxx -2. xxxx -3. xxxx +#### 硬件要求 + +硬件:树莓派 3B/3B+4B。 + +架构:AArch64。 + +#### 编译 + +编译内核和内核模块。 + +1. 准备编译环境 + +操作系统:openEuler 或 Centos 7/8; + +架构:ARM。 + +可以使用 [QEMU](https://www.qemu.org) 模拟器搭建 ARM 运行环境。 + +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. 载入默认设置 + +`make openeuler-raspi_defconfig` + +5. 编译内核 + +`make ARCH=arm64 -j4` + +6. 创建编译内核模块目录 + +`mkdir ../output` + +7. 编译内核模块 + +`make INSTALL_MOD_PATH=../output/ modules_install` + +至此,内核编译完成。 #### 使用说明 -1. xxxx -2. xxxx -3. xxxx +利用上面编译好的内核来构建镜像,具体文档参见`https://gitee.com/openeuler/raspberrypi`。 #### 参与贡献 @@ -35,3 +73,4 @@ It provides openEuler kernel source for Raspberry Pi 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) + -- Gitee From e16ec5a5f6a83fe8448a364ec16cacff13cd4c38 Mon Sep 17 00:00:00 2001 From: jianmin Date: Mon, 13 Apr 2020 15:06:21 +0800 Subject: [PATCH 2/2] update arch name from ARM to AArch64 --- README.en.md | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.en.md b/README.en.md index cd278e0a4aca..73c16f19dbbe 100644 --- a/README.en.md +++ b/README.en.md @@ -20,9 +20,9 @@ Compile kernel and kernel modules. OS: openEuler or Centos 7/8; -Architecture: ARM. +Architecture: AArch64. -For example, you can use [QEMU](https://www.qemu.org/) to build ARM system emulation. +For example, you can use [QEMU](https://www.qemu.org/) to build AArch64 system emulation. 2. Download source diff --git a/README.md b/README.md index 50037bce003a..c03c14e8f5de 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ 操作系统:openEuler 或 Centos 7/8; -架构:ARM。 +架构:AArch64。 -可以使用 [QEMU](https://www.qemu.org) 模拟器搭建 ARM 运行环境。 +可以使用 [QEMU](https://www.qemu.org) 模拟器搭建 AArch64 运行环境。 2. 下载源码 -- Gitee