免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 11152 | 回复: 13
打印 上一主题 下一主题

modprobe: module 'usbserial' not found [复制链接]

论坛徽章:
3
CU大牛徽章
日期:2013-03-14 14:14:08CU大牛徽章
日期:2013-03-14 14:14:26CU大牛徽章
日期:2013-03-14 14:14:29
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-02 01:49 |只看该作者 |倒序浏览
modprobe usbserial 加载驱动,明明就在当前目录下,可就是报没有找到,不明白怎么回事。。
modprobe: module 'usbserial' not found

论坛徽章:
0
2 [报告]
发表于 2010-02-02 09:06 |只看该作者
modprobe是有规则的吧。如果不配置的话是到/lib/modules/`uname -r`/kernel/driver目录下面去找吧。

论坛徽章:
0
3 [报告]
发表于 2010-02-02 09:59 |只看该作者
那你就要用modprobe ./name

论坛徽章:
3
CU大牛徽章
日期:2013-03-14 14:14:08CU大牛徽章
日期:2013-03-14 14:14:26CU大牛徽章
日期:2013-03-14 14:14:29
4 [报告]
发表于 2010-02-02 23:33 |只看该作者
先谢谢两位好心人。我想我没有描述清楚问题。我这个驱动是移植到mini2440开发板上运行时出现这个问题。
[root@FriendlyARM sbin]# cd /usr/
[root@FriendlyARM /usr]# ls
bin           sbin          usbserial.ko
local         share         usbserial.o
[root@FriendlyARM /usr]# modprobe ./usbserial.ko
modprobe: module './usbserial.ko' not found
[root@FriendlyARM /usr]# modprobe usbserial
modprobe: module 'usbserial' not found
[root@FriendlyARM /usr]# modprobe ./usbserial
modprobe: module './usbserial' not found

论坛徽章:
0
5 [报告]
发表于 2010-02-03 17:34 |只看该作者
用insmod呢?

论坛徽章:
0
6 [报告]
发表于 2010-02-03 22:39 |只看该作者
insmod肯定没事

论坛徽章:
0
7 [报告]
发表于 2010-02-04 10:08 |只看该作者
回复 4# liugang9931706


我觉得从modprobe的文档里可以看出一些端倪:
man modprobe   
       modprobe intelligently adds or removes a module from  the  Linux  kernel:
       note that for convenience, there is no difference between _ and - in mod-
       ule names. modprobe looks in the  module  directory  /lib/modules/`uname
       -r`  for  all  the  modules  and  other  files
,  except  for the optional
       /etc/modprobe.conf configuration file and /etc/modprobe.d directory  (see
       modprobe.conf(5)). modprobe will also use module options specified on the
       kernel command line in the form of <module>.option>.

你看看把ko放到/lib/modules/`uname -r`里面去行不行。可能这个是写死了的

论坛徽章:
0
8 [报告]
发表于 2010-03-23 11:43 |只看该作者
这位老兄,不知道你的这个问题解决了没有。你是买的mini2440的开发板吧。

你要加载的usbserial 在你把usb转串口插到你的linux的usb口里的时候已经自动加载了。
你可以用lsmod |grep usbserial  来查看一下。

你的操作是已经通过终端连接到你的开发板上了,而你开发板上面的系统里面可能没有你要的 usbserial.ko 文件,或者还需要其他的文件,就会显示  module 'usbserial' not found 了。其实你不需要把开发板当主机来用的,只要在你的linux主机上有这个就可以正常工作了。

论坛徽章:
3
CU大牛徽章
日期:2013-03-14 14:14:08CU大牛徽章
日期:2013-03-14 14:14:26CU大牛徽章
日期:2013-03-14 14:14:29
9 [报告]
发表于 2010-07-23 09:10 |只看该作者
我这个问题解决了,我是和内核一起编译的。
这样模块有个依赖关系!

论坛徽章:
1
C
日期:2016-10-25 16:25:06
10 [报告]
发表于 2011-02-14 10:56 |只看该作者
楼主最后说,“我是和内核一起编译的。这样模块有个依赖关系!”,有依赖关系是什么意思呀?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP