batman-adv-kernel-android-(make-depmod-modprobe)

来源:互联网 发布:mysql怎么取消主键 编辑:程序博客网 时间:2024/05/01 11:39
http://supportcode.xyz/question/16219731/why-wont-modprobe-or-insmod-work-when-i-have-the-ko-file-available

Why won't modprobe or insmod work when I have the .ko file available?

I downloaded a kernel module source for the batman advanced MANET and then called make in the directory of the source and let it do its thing.

Once make was finished the file batman-adv.ko was available in the folder located in /home/batman-adv-2013.2.0. When I call modprobe batman-adv in the directory I get the error:

FATAL: Module batman_adv not found.

and when I call insmod batman-adv.ko:

 insmod: error inserting '/home/batman-adv-2013.2.0/batman-adv.ko': -1 Unknown symbol in module

The operating system I am using is Debian GNU/Linux 6.0.7 (squeeze)

Have I missed anything that I should have done differently or perhaps the module files need to be placed somewhere else?

2 Answers:

"Unknown symbol" usually implies that the module has a dependency on another module. You can verify which symbol by using dmesg, which will tell you what unknown symbol(s) have been encountered. usually the prefix of a symbol (e.g. fat_***xx) implies which kernel module is required. modprobe will work only for modules which are listed in the modules.dep file.

to add to Technologeeks answer:

modprobe will only search for modules in the standard path /lib/modules/$(uname -r). since your .ko file is not in that directory, modprobe doesn't find it.

the proper way to use your module would be to:

make install
depmod -a
modprobe batman-adv

    the first line should install the module to a proper location, where all the other tools work with.

    the 2nd line tries to find out all the dependencies needed to use your modules, and puts that info into some persistent place (lib/modules/$(uname -r)/modules.dep)

    the 3rd line uses the dependency information and loads all dependencies and your module.


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(157) | 评论(0) | 转发(0) |
0

上一篇:缅怀—纪念—1893.12.26

下一篇:抑郁

相关热门文章
  • Android之开发环境搭建
  • Android自定义View的实现...
  • AndroidManifest.xml配置文件...
  • Android相对布局+圆角按钮+Sha...
  • 查看Android应用包名package和...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~