Menu Home

编译单个linux kernel 模块


kernel 编译单个模块

假设需要单独编译resiserfs内核模块:

1)make menuconfig
load 一下当前目录下的.config 文件
进入文件系统选项,选择reiserfs 模块,使其前面有个M
保存退出

2)make prepare
不运行该命令make 时将会报错

3)make scripts

4)make M=fs/reiserfs
开始编译单个模块,编译完成后模块生成在fs/reiserfs.ko

4 replies

  1. I just wanted to post a brief comment to be able to appreciate you for all of the splendid ideas you are writing on this site. My extended internet search has at the end of the day been compensated with reputable strategies to share with my great friends. I would say that many of us readers actually are very much fortunate to dwell in a fantastic network with very many brilliant people with useful tips and hints. I feel rather happy to have discovered your entire web page and look forward to plenty of more excellent times reading here. Thanks a lot again for a lot of things.

  2. I wish to express some thanks to you just for bailing me out of this particular trouble. Right after surfing through the search engines and seeing things that were not helpful, I figured my entire life was over. Being alive without the presence of answers to the issues you have resolved as a result of your good write-up is a serious case, and ones that would have negatively damaged my career if I hadn’t noticed your blog post. Your main mastery and kindness in handling all things was valuable. I am not sure what I would have done if I had not come across such a point like this. I can also at this time relish my future. Thank you very much for this high quality and results-oriented guide. I won’t hesitate to refer your blog post to any person who would need assistance about this matter.

  3. Thank you for each of your efforts on this web page. My aunt take interest in conducting internet research and it’s simple to grasp why. My spouse and i learn all concerning the dynamic medium you present functional tips and hints through your blog and even attract response from some others on the point plus our own princess is undoubtedly learning a great deal. Take pleasure in the rest of the new year. You are doing a powerful job.

Leave a Reply

Your email address will not be published.