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.
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.
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...
给主人留下些什么吧!~~
评论热议
0 0
- batman-adv-kernel-android-(make-depmod-modprobe)
- BATMAN-ADV
- Have you considered compiled a batman-adv.ko for android?
- modprobe与depmod与insmod
- batman-adv协议相关概念
- batman-adv主要结构体
- batman-adv路由算法分析
- 使用insmod/modprobe/depmod遇到的问题
- (OK) 编译batman-adv.ko—成功—android—cm11源码—下载
- (OK) 编译batman-adv.ko—成功—android—cm11源码—下载
- batman-adv链路传输质量计算方法
- [batman-adv]学习(1) —— Overview
- 浅谈linux中的模块加载 lsmod,modprobe,depmod
- modprobe XXX not found 解决与Depmod命令
- modprobe XXX not found 解决与Depmod命令; insmod/modprobe的区别
- modprobe XXX not found 解决与Depmod命令; insmod/modprobe的区别
- (OK) install—batman-adv—batctl—CentOS7
- (OK) install—batman-adv—batctl—CentOS7
- 使用java 和freemarker实现多级菜单(分类)
- Lua环境安装
- (OK) C/S—心跳检测—heartbeat
- java中的缓存技术该如何实现
- 遗产
- batman-adv-kernel-android-(make-depmod-modprobe)
- 抑郁
- springmvc+mybatis学习笔记(汇总)
- TestDisk, Data Recovery—分区恢复—文件恢复
- (OK) mkisofs——in linux
- O2O商业模式剖析
- Skype—set font size —in CentOS/Fedora/RHEL—修改Skype字体大小
- nginx—fastcgi—FCGX_Accept_r failed with error code: -88—in CentOS7
- 55. Jump Game
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
火钳刘明什么梗
火钳
火钳刘明是什么梗
火钳图片
火钳刘明是什么意思
火铳
猎魂觉醒火铳
猎魂觉醒2019火铳是亲儿子
如何在家自制小火铳
火铺
火赤链
火链
火锅底料
火锅菜
特色火锅
火锅蘸料
海底捞火锅
自热火锅
四川火锅
孕妇吃火锅
孕妇火锅
重庆火锅
羊肉火锅
火锅菜单
麻辣火锅
火锅步骤
火锅鸡做法
家庭火锅
火锅英雄
羊蝎子火锅
在家吃火锅
火锅菜品
自热小火锅
火锅底料炒
火锅做法
火锅英文
火锅材料
火锅汤底
火锅品牌
火锅鸭
铜火锅图片