update mainly of the repo#1
Merged
Merged
Conversation
站点门面对齐 TAMCPP: - 首页升级 home layout(hero + 卡片网格 + 成熟度标记) - 新增学习路线图(mermaid 依赖图 + 逐层四段式) - 新增更新日志 changelogs/(v0.1.0: 通识基础 8 篇 + 基建) - 补齐 6 个 layer 首页(修顶栏 404 死链) - 页脚注入 git 版本号(build-info.ts) - 顶栏加路线图/更新日志入口 - build.ts 接入 changelogs/roadmap 分卷 完成度标记体系: - 教程 frontmatter maturity 字段(verified/drafting/growing) - foundations 8 篇 + guides 挂 verified CI 守护: - build-check.yml: PR/push 验证构建 + 死链检查 双轨 handbook 线起步: - mm-buddy 伙伴系统骨架(从笔记 ch7/ch8 整理,对外 🔨 整理中) - kernel 首页内存管理 📚→🔨
- build-examples.yml: matrix arm64+riscv,先编 vmlinux 生成完整 Module.symvers (modules_prepare 不够——不编 vmlinux,缺 _printk 等导出符号,hello.ko modpost 报 "_printk undefined"),缓存内核树(key 含 linux 子模块 SHA),再 build_examples.py 编 - build_examples.py: 发现 example/mini/*/Makefile + make ARCH= 编译 + 校验 .ko(ELF 机器 类型)+ 失败聚合(error 行)+ ::group:: 折叠 - arm32(工具链 -none- 命名坑)/x86_64(KDIR 指宿主内核)二期再补
- vmlinux/modules_prepare 都不 modpost → Module.symvers 缺 _printk → hello.ko modpost 报 "_printk undefined"。改 make modules(含 modpost vmlinux 阶段)。 第一次 CI 慢(~15min/架构),缓存后秒级。 - build_examples 架构校验改 readelf(file 对 arm64 输出 "ARM aarch64", 与大写 AArch64 匹配失败误判;本地 hello.ko 其实编通了)。
defconfig make modules 编到 arch/riscv/kvm/kvm.ko modpost 失败(该模块符号依赖 问题,与 hello 无关)。改 allnoconfig + 开 MODULES/PRINTK: - 无 =m 配置模块 → make modules 只 modpost vmlinux,不碰 kvm - allnoconfig vmlinux 极小,编译 ~3min(vs defconfig ~15min) - hello.c 只用 _printk(pr_info)+ module 宏,allnoconfig 内核够用
make modules 时 KBUILD_BUILTIN 为空 → 不 modpost vmlinux → Module.symvers 缺 _printk → hello.ko modpost 报 undefined(defconfig/allnoconfig 都一样)。 改用 make(默认,KBUILD_BUILTIN=1):modpost vmlinux 出完整 Module.symvers。 allnoconfig + MODULES + PRINTK,本地验证 Module.symvers 含 _printk(EXPORT_SYMBOL)。 无 =m 配置模块,不碰 riscv kvm,又快(allnoconfig vmlinux 小)又干净。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.