chore: kernel-src 归项目目录,更新路径与 gitignore
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|------|------|
|
||||
| 固件(intel-signed vs community) | 已实验:**单独换固件不能恢复 HDMI**;可能影响插拔检测,需按 OPERATION 文档回退 |
|
||||
| 拓扑 | 与 ChromeOS **等效**(采集结论见 `audio_topology/ANALYSIS_Audio.md`) |
|
||||
| Ubuntu HWE 6.17 实验补丁 `patches/ubuntu-hwe-6.17/0001-*.patch` | **勿在 6.17 上应用**:`struct snd_soc_dai_link` 已无 `dpcm_playback` 成员,会编译失败;保留作历史记录 |
|
||||
| Ubuntu HWE 6.17 补丁 | `0001-*.patch`:**勿在 6.17 上应用**(已无 `dpcm_playback` 成员)。可试 **`0002-*.patch`**(iDisp HDMI DPCM trigger POST);摘要见 `patches/ubuntu-hwe-6.17/DIFF_SUMMARY.txt` |
|
||||
| 全量内核编译 `fakeroot debian/rules binary-generic` | 进行中遇阻:**磁盘空间不足**(建议单独分区空闲 **≥35~50GB**);勿在同一源码树混用裸 `make` 与 `debian/rules`(需 `make mrproper` 清根目录) |
|
||||
| Windows 侧 | 以 **CoolStar / Chrultrabook 成套驱动** 与设备管理器排错为主;见 `audio_topology/OPERATION_Windows_Audio.md` |
|
||||
|
||||
@@ -67,17 +67,17 @@ apt-cache showsrc linux-hwe-6.17 | grep -E '^Package:|^Version:' | head
|
||||
**下载源码(把 `Version:` 换成 `apt-cache showsrc` 里与当前内核一致的那一行)**:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/kernel-src && cd ~/kernel-src
|
||||
mkdir -p /path/to/chromebox_10th_audio_driver/kernel-src && cd /path/to/chromebox_10th_audio_driver/kernel-src
|
||||
apt source linux-hwe-6.17=6.17.0-19.19~24.04.2
|
||||
```
|
||||
|
||||
解压得到目录类似:`linux-hwe-6.17-6.17.0/`,以及 `.dsc` / `.orig.tar.gz` / `.diff.gz`。
|
||||
解压得到目录类似:`linux-hwe-6.17-6.17.0/`,以及 `.dsc` / `.orig.tar.gz` / `.diff.gz`(大文件已被 `.gitignore` 忽略,不提交仓库;见 `kernel-src/README.md`)。
|
||||
|
||||
**编译 generic 包(需足够磁盘与依赖)**:
|
||||
|
||||
```bash
|
||||
sudo apt build-dep linux-hwe-6.17
|
||||
cd ~/kernel-src/linux-hwe-6.17-6.17.0
|
||||
cd /path/to/chromebox_10th_audio_driver/kernel-src/linux-hwe-6.17-6.17.0
|
||||
export CONCURRENCY_LEVEL="$(nproc)"
|
||||
fakeroot debian/rules clean
|
||||
fakeroot debian/rules binary-generic
|
||||
@@ -90,7 +90,7 @@ fakeroot debian/rules binary-generic
|
||||
## 四、换机后建议最短路径
|
||||
|
||||
1. 克隆本仓库 `chromebox_10th_audio_driver`。
|
||||
2. 按需重新拉取 **Ubuntu 源码**(用新机器上的 `uname -r` / `dpkg -s` / `apt-cache showsrc` 核对版本号)。
|
||||
2. 按需在本仓库 **`kernel-src/`** 下重新拉取 **Ubuntu 源码**(用新机器上的 `uname -r` / `dpkg -s` / `apt-cache showsrc` 核对版本号;**24.04** 上可直接 `apt build-dep linux-hwe-6.17`)。
|
||||
3. 按需重新克隆 **ChromiumOS kernel** 分支(或从旧机拷贝 `chromiumos_kernel/` 目录)。
|
||||
4. 阅读:`audio_topology/REPAIR_Plan_Audio.md`、`audio_topology/ANALYSIS_Audio.md`。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user