繁体   English   中英

当我编辑 linux kernel 代码时,构建和运行修改后的 kernel 的过程是什么?

[英]when i edit the linux kernel code, what is the process of building and running the modified kernel?

I am learning how to write some code in the Linux kernel, and i would like to start practicing writing code in the kernel, but my question is what is the process of building and running the modified kernel? 我应该只是每次,当我修改 kernel 代码时,重新编译 kernel,将其重新安装到我的机器上,然后重新启动我的机器,还是在现实生活中,在业界有另一种方法来完成这个过程?

好吧,最简单的是,如果您可以将要修改的代码放在一个模块中,那么您可以删除旧版本并加载新版本。

或者,您可以在主机内的虚拟机中运行 kernel,这样您只需重新启动虚拟机。 不是整个物理计算机。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM