liugang9931706 发表于 2010-02-02 01:49

modprobe: module 'usbserial' not found

modprobe usbserial 加载驱动,明明就在当前目录下,可就是报没有找到,不明白怎么回事。。
modprobe: module 'usbserial' not found

snail_314 发表于 2010-02-02 09:06

modprobe是有规则的吧。如果不配置的话是到/lib/modules/`uname -r`/kernel/driver目录下面去找吧。

emmoblin 发表于 2010-02-02 09:59

那你就要用modprobe ./name

liugang9931706 发表于 2010-02-02 23:33

先谢谢两位好心人。我想我没有描述清楚问题。我这个驱动是移植到mini2440开发板上运行时出现这个问题。
# cd /usr/
# ls
bin         sbin          usbserial.ko
local         share         usbserial.o
# modprobe ./usbserial.ko
modprobe: module './usbserial.ko' not found
# modprobe usbserial
modprobe: module 'usbserial' not found
# modprobe ./usbserial
modprobe: module './usbserial' not found

zhsishi 发表于 2010-02-03 17:34

用insmod呢?

emmoblin 发表于 2010-02-03 22:39

insmod肯定没事

snail_314 发表于 2010-02-04 10:08

回复 4# liugang9931706


我觉得从modprobe的文档里可以看出一些端倪:
man modprobe   
       modprobe intelligently adds or removes a module fromtheLinuxkernel:
       note that for convenience, there is no difference between _ and - in mod-
       ule names. modprobe looks in themoduledirectory/lib/modules/`uname
       -r`forallthemodulesandotherfiles,exceptfor 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`里面去行不行。可能这个是写死了的

binglong168 发表于 2010-03-23 11:43

这位老兄,不知道你的这个问题解决了没有。你是买的mini2440的开发板吧。

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

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

liugang9931706 发表于 2010-07-23 09:10

我这个问题解决了,我是和内核一起编译的。
这样模块有个依赖关系!

yucejun 发表于 2011-02-14 10:56

楼主最后说,“我是和内核一起编译的。这样模块有个依赖关系!”,有依赖关系是什么意思呀?
页: [1] 2
查看完整版本: modprobe: module 'usbserial' not found