linux README

The project's README from github.com/raspberrypi/linux. As one markdown file: README.md.

Linux kernel

There are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF. Please read Documentation/admin-guide/README.rst first.

In order to build the documentation, use make htmldocs or make pdfdocs. The formatted documentation can also be read online at:

https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the requirements for building and running the kernel, and information about the problems which may result by upgrading your kernel.

Build status for rpi-6.12.y: Pi kernel build tests dtoverlaycheck

Build status for rpi-6.18.y: Pi kernel build tests dtoverlaycheck

linux (raspberrypi/linux)

Searching Database…

13.3K ·GitHub
这是什么?这是树莓派官方的 Linux 内核源码树:官方树莓派内核就是用它编译出来的,其中在 Linux 主线内核之上附加了树莓派专用的驱动和补丁。
这是大家通用的那个 Linux 内核,还是树莓派专用版本?它是主线内核的一个下游分支。树莓派基于上游发布分支,并在其之上加入自己的开发板支持和补丁。
我怎么用这份源码编译内核?走标准的内核构建流程:从源码树中的 Documentation/admin-guide/README.rst 入手,为你的开发板做好配置,然后用 make 编译。仓库的 README 基本就是引导你去读那份文档。
编译它需要安装哪些东西?一台 Linux 主机,配上常用的内核编译工具链。README 让你参考 Documentation/process/changes.rst,里面列出了编译和运行内核所需的各项工具要求。
运行从这里编译出来的内核之前,有什么需要留意的吗?有——升级内核可能带来问题,README 指向 Documentation/process/changes.rst,里面说明了这些注意事项。另外,这里的 issue 跟踪器只处理内核相关的问题;树莓派的一般性问题请到别处反馈。
这是给我用的,还是只面向内核开发者的?主要面向为树莓派开发板编译或定制内核的开发者。如果你只是普通用户,非内核相关的问题应该发到社区论坛 forums.raspberrypi.com,而不是这个跟踪器。
这个源码树目前跟踪哪些内核版本?README 上显示了两个活跃分支 rpi-6.12.y 和 rpi-6.18.y 的构建状态徽章,说明这两条发布线目前都在为树莓派硬件持续构建。
代码会自动测试吗?会——仓库自带 CI 工作流,会编译内核、运行 kunit 测试、执行 checkpatch 风格检查,并校验设备树 overlay(对应 kernel-build.yml、kunit.yml、checkpatch.yml、dtoverlaycheck.yml)。
不编译任何东西,我能直接读内核文档吗?可以:文档放在 Documentation/ 子目录下,用 reStructuredText 编写,网上有排版好的版本可以直接阅读,你也可以用 make htmldocs 或 make pdfdocs 自己生成。
Size
5 GB
Stars
13.3K
Updated
CommitOct 16
Age
14y
Commits · 90 Days