# aosc-rpi64内核的源代码在哪里

**URL:** <https://bbs.aosc.io/t/topic/314>\
**Category:** 问答及求助\
**Created:** [2025 年1 月 28 日 04:17 UTC](https://bbs.aosc.io/t/topic/314 "2025-01-28T04:17:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![match123](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/m/779978/32.png) [@match123](https://bbs.aosc.io/u/match123)\
**Post date:** [2025 年1 月 28 日 04:17 UTC](https://bbs.aosc.io/t/topic/314/1 "2025-01-28T04:17:16Z")

</div>

/usr/src/linux-headers-6.6.62-aosc-rpi64-rpi4里似乎只有一些配置文件，不能直接编译。  
之前我把上游树莓派的内核(linux-rpi-6.6.y)与这个文件夹合并之后编译，出现一堆未定义型错误.  
现在，我又在上游找到了两个月前的linux-rpi-6.6.62源代码与之合并，现在还在编译中。。。

所以，linux-kernel-rpi64的源代码在哪里？

---

<div class="post-metadata">

**Author:** ![cyan](https://bbs.aosc.io/user_avatar/bbs.aosc.io/cyan/32/4_2.png) [@cyan](https://bbs.aosc.io/u/cyan)\
**Post date:** [2025 年1 月 28 日 05:22 UTC](https://bbs.aosc.io/t/topic/314/2 "2025-01-28T05:22:27Z")

</div>

match123，你好!

> [@match123](#):
>
> /usr/src/linux-headers-6.6.62-aosc-rpi64-rpi4里似乎只有一些配置文件，不能直接编译。

`/usr/src/linux-headers-VERSION` 下的文件仅限内核模块编译系统编译树外模块之用。您无法通过合并等方式 “复原” 完整的内核树。

目前树莓派内核的源码没有任何补丁，直接使用了 [raspberrypi/linux](https://github.com/raspberrypi/linux) 的源码。

6.6.69 版本的内核可以通过如下方式获得：

```shell
git clone https://github.com/raspberrypi/linux.git
cd linux
git checkout eec7048c4e3aec1aadc21fcffcf6be9f5385f72a

```

祝好。
