码迷,mamicode.com
首页 > 其他好文 > 详细

Building modules for a precompiled kernel

时间:2015-07-03 17:29:09      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:building   module   linux   

When we inserting a module into linux kernel, the linux (almost) always check the vermagic info of module, if it does not match kernel’s, inserting process fails.

So, the question is :

How to build modules for a precompiled kernel ?

Solution:

Edit VERMAGIC_STRING in include/linux/vermagic.h

Ref:

  1. http://linux.die.net/lkmpg/x380.html
  2. http://hychen.wuweig.org/blog/2009/10/09/rao-guo-linux-driver-vermagicjian-cha/

版权声明:本文为博主原创文章,未经博主允许不得转载。

Building modules for a precompiled kernel

标签:building   module   linux   

原文地址:http://blog.csdn.net/stpallas/article/details/46743497

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!