需要更快的方法来构建和调试Linux内核
我正在尝试调试我的硬件, 使用常规步骤编译最新的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论