# 请问内核源码从哪里下载

**URL:** <https://bbs.aosc.io/t/topic/80>\
**Category:** 问答及求助\
**Created:** [2024 年3 月 28 日 12:29 UTC](https://bbs.aosc.io/t/topic/80 "2024-03-28T12:29:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsingkong](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/t/d2c977/32.png) [@tsingkong](https://bbs.aosc.io/u/tsingkong)\
**Post date:** [2024 年3 月 28 日 12:29 UTC](https://bbs.aosc.io/t/topic/80/1 "2024-03-28T12:29:52Z")

</div>

我在 [https://repo.aosc.io](https://repo.aosc.io) 里面没有找到，在 [AOSC-Dev repositories · GitHub](https://github.com/orgs/AOSC-Dev/repositories) 也没有找到。  
我下载内核源码是想在已有源码和 .config 的基础上增加编译一个 module  
谢谢

---

<div class="post-metadata">

**Author:** ![eatradish](https://bbs.aosc.io/user_avatar/bbs.aosc.io/eatradish/32/17_2.png) [@eatradish](https://bbs.aosc.io/u/eatradish)\
**Post date:** [2024 年4 月 3 日 07:15 UTC](https://bbs.aosc.io/t/topic/80/2 "2024-04-03T07:15:07Z")

</div>

你要的 config 文件在这里：[aosc-os-abbs/runtime-kernel/linux-kernel/autobuild at stable · AOSC-Dev/aosc-os-abbs · GitHub](https://github.com/AOSC-Dev/aosc-os-abbs/tree/stable/runtime-kernel/linux-kernel/autobuild) （选择你的架构就能看到）

如果方便说是我们缺了什么 module 的话，也请说说，看看下个版本能不能内置，谢谢

---

<div class="post-metadata">

**Author:** ![白铭骢](https://bbs.aosc.io/user_avatar/bbs.aosc.io/%E7%99%BD%E9%93%AD%E9%AA%A2/32/12_2.png) [@白铭骢](https://bbs.aosc.io/u/%E7%99%BD%E9%93%AD%E9%AA%A2)\
**Post date:** [2024 年4 月 3 日 07:18 UTC](https://bbs.aosc.io/t/topic/80/3 "2024-04-03T07:18:54Z")

</div>

补充下上面的回答，我们的内核源码（如下是 6.7.5 的）和补丁都是在 Git 仓库维护的：

> **[GitHub - AOSC-Tracking/linux at aosc/v6.7.5](https://github.com/AOSC-Tracking/linux/tree/aosc/v6.7.5)**
>
> aosc/v6.7.5

---

<div class="post-metadata">

**Author:** ![tsingkong](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/t/d2c977/32.png) [@tsingkong](https://bbs.aosc.io/u/tsingkong)\
**Post date:** [2024 年4 月 3 日 16:48 UTC](https://bbs.aosc.io/t/topic/80/4 "2024-04-03T16:48:50Z")

</div>

这正是我想要的，多谢

> [@白铭骢](#):
>
> 补充下上面的回答，我们的内核源码（如下是 6.7.5 的）和补丁都是在 Git 仓库维护的：
> 
> [GitHub - AOSC-Tracking/linux at aosc/v6.7.5 · GitHub](https://github.com/AOSC-Tracking/linux/tree/aosc/v6.7.5)

---

<div class="post-metadata">

**Author:** ![tsingkong](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/t/d2c977/32.png) [@tsingkong](https://bbs.aosc.io/u/tsingkong)\
**Post date:** [2024 年4 月 3 日 16:53 UTC](https://bbs.aosc.io/t/topic/80/5 "2024-04-03T16:53:12Z")

</div>

.config 文件我可以在 /usr/src/linux-headers-x.y.z-aosc-main/ 中找到。  
我想编译 loongson-dc 模块，对应 .config 中的 CONFIG\_DRM\_LOONGSON。就我目前了解到的情况，这个模块不适合内置。
