Skip to content

openeuler-mirror/raspberrypi-kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

raspberrypi-kernel

English | 简体中文

介绍

适用于树莓派的内核源码。

本仓库基于 openEuler 内核 ,合并了上游 树莓派内核 补丁。

支持硬件

树莓派 3B/3B+/4B/400

架构:AArch64

编译

编译内核和内核模块。

  1. 准备编译环境

    操作系统:openEuler 或 CentOS 7/8

    架构:AArch64

    交叉编译请参照:交叉编译内核

  2. 下载源码

    根据内核不同版本,需要下载不同仓库的不同分支:

    1. 5.10 内核

      • openEuler 21.09:git clone [email protected]:openeuler/raspberrypi-kernel.git -b openEuler-21.09 && cd raspberrypi-kernel
      • openEuler 21.03:git clone [email protected]:openeuler/kernel.git -b openEuler-21.03 && cd kernel
    2. 4.19 内核

      • openEuler 20.03 LTS:git clone [email protected]:openeuler/raspberrypi-kernel.git -b openEuler-20.03-LTS && cd raspberrypi-kernel
      • openEuler 20.09:git clone [email protected]:openeuler/raspberrypi-kernel.git -b openEuler-20.09 && cd raspberrypi-kernel
  3. 载入默认设置

    根据内核不同版本,需要载入不同的默认配置:

    1. 5.10 内核

      • openEuler 21.09:make bcm2711_defconfig
      • openEuler 21.03:make bcm2711_defconfig
    2. 4.19 内核

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

    对应的 defconfig 文件在 ./arch/arm64/configs 下。

  4. 编译内核

    make ARCH=arm64 -j4

  5. 创建编译内核模块目录

    mkdir ../output

  6. 编译内核模块

    make INSTALL_MOD_PATH=../output/ modules_install

至此,内核编译完成。

使用说明

利用上面编译好的内核来构建镜像,具体文档参见 raspberrypi 仓库

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 https://gitee.com/help
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published