1 Star 0 Fork 20

peng_langyuan / raspberrypi-kernel

forked from openEuler / raspberrypi-kernel 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

raspberrypi-kernel

English | 简体中文

Description

The kernel for running on Raspberry Pi.

This repository is based on openEuler kernel which is merged patches of Raspberry Pi kernel.

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: AArch64.

    You follow the documents of raspberrypi to cross-compile this kernel.

  2. Download source

    You need download different branches of different repositories according to the kernel version.

    1. Kernel 5.10

      • openEuler 21.09: git clone git@gitee.com:openeuler/raspberrypi-kernel.git -b openEuler-21.09 && cd raspberrypi-kernel
      • openEuler 21.03: git clone git@gitee.com:openeuler/kernel.git -b openEuler-21.03 && cd kernel
    2. Kernel 4.19

      • openEuler 20.03 LTS: git clone git@gitee.com:openeuler/raspberrypi-kernel.git -b openEuler-20.03-LTS && cd raspberrypi-kernel
      • openEuler 20.09: git clone git@gitee.com:openeuler/raspberrypi-kernel.git -b openEuler-20.09 && cd raspberrypi-kernel
  3. Load default settings

    You need load different settings according to the kernel version.

    1. Kernel 5.10

      • openEuler 21.09: make bcm2711_defconfig
      • openEuler 21.03: make bcm2711_defconfig
    2. Kernel 4.19

      • openEuler 20.03 LTS: make openeuler-raspi_defconfig
      • openEuler 20.09: make openeuler-raspi_defconfig

    The corresponding defconfig file is in . /arch/arm64/configs.

  4. Compile kernel

    make ARCH=arm64 -j4

  5. Create directory for compiling kernel modules

    mkdir ../output

  6. Compile kernel modules

    make INSTALL_MOD_PATH=../output/ modules_install

Now, the kernel compilation is complete.

Installation

Refer to raspberrypi Repository for details about how to use this compiled kernel to build openEuler image for Raspberry Pi.

Contributions

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/

Empty file

About

It provides openEuler kernel source for Raspberry Pi expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/peng-langyuan/raspberrypi-kernel.git
git@gitee.com:peng-langyuan/raspberrypi-kernel.git
peng-langyuan
raspberrypi-kernel
raspberrypi-kernel
master

Search

53164aa7 5694891 3bd8fe86 5694891