需要更快的方法来构建和调试Linux内核

发布于 2025-02-13 11:47:17 字数 598 浏览 1 评论 0原文

我正在尝试调试我的硬件, 使用常规步骤编译最新的Linux内核(5.19.0-RC5)。

make oldconfig
make -j16 bzImage
make -j16 modules
make modules_install && make install

除了我的SPI放大器,新内核工作几乎可以很好。

我正在尝试通过修改某些代码来调试它,例如添加printk

然后,我

make -j16 bzImage
make install

现在无法启动我的新内核,并收到数百条这样的消息。

Failed to validate module [xxx] BTF: -22
BPF: Invalid name

这些模块是否无法识别新的vmlinuz

我必须做进行干净的,然后重建上面的完整脚本,即使使用-J16(我的所有CPU& threads),它也会消耗太多时间。

有什么更好的方法?

I'm trying to debug my hardware,
compile latest Linux kernel (5.19.0-rc5) using regular steps.

make oldconfig
make -j16 bzImage
make -j16 modules
make modules_install && make install

New kernel is working almost fine, Except my SPI amplifiers.

I'm trying to debug it by modify some codes, mostly adding printk for example.

Then I do

make -j16 bzImage
make install

Now I cannot boot to my new kernel and get hundreds of messages like this.

Failed to validate module [xxx] BTF: -22
BPF: Invalid name

Is it those modules are not recognize the new vmlinuz?

I have to do make clean and rebuild with the full script above which consumes too much time even with the -j16 (all of my cpu & threads).

What is better way to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文