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:
- http://linux.die.net/lkmpg/x380.html
- http://hychen.wuweig.org/blog/2009/10/09/rao-guo-linux-driver-vermagicjian-cha/
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-11-07 20:28:51