“无效参数”有什么问题?从insmod命令? [英] What's wrong with "invalid parameters" from insmod command?

查看:1113
本文介绍了“无效参数”有什么问题?从insmod命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的平台是ubuntu 11.04 / iMx6。我想验证一台打印机。当我尝试使用命令:insmod usblp.ko安装USB打印机驱动程序usblp.ko时,我得到了回复



insmod:错误插入'usblp .ko': - 1参数无效



我发现了一些关于类似现象的讨论;例如insmod:错误插入:xxxx:无效参数,....

'无效参数'有什么问题?这个驱动程序不是来自我,而是来自标准的Linux开源。我该怎么办呢?谢谢。

My platform is ubuntu 11.04 / iMx6. I would like to verify a printer. When I tried to install a USB Printer driver, usblp.ko with command: "insmod usblp.ko", I got response of

"insmod: error inserting 'usblp.ko': -1 Invalid parameters"

I found some discussions about similar phenomenon; such as "insmod: error inserting: xxxx: invalid parameters", ....
What's wrong with 'invalid parameters'? This driver is not from me, but from standard Linux open source. What can I do to work on it? Thanks.

推荐答案

这种错误可能有很多原因。在我的情况下,它发生了几次,我通过在构建底层映像的开发环境中重新构建驱动程序来解决它。也就是说,驱动程序必须与内核映像在相同的开发环境中构建。内核代码的一点点更新可能会导致在旧映像的开发环境中构建的驱动程序无法正常工作。
There may be lots of causes for such bug. In my case, it happened several times and I worked out it by re-building the driver in the development environment where the underlying image was built. That is, the drivers must be built at the same development environment as the kernel image. A little update of kernel codes may cause the drivers built at development environment of old image not working.


这篇关于“无效参数”有什么问题?从insmod命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆