linux串口查看mxser,Ubuntu8.04安装CP-168U的串口连接问题

毕业设计需要用到1托8的MOXA CP-168U卡做一个交换机管理程序,

在搭环境的过程遇到了这样那样的问题,

系统的问题就不说了,

这里主要讲在Ubuntu8.04下安装CP-168U驱动的问题。

在MOXA官方网站下载到最新的CP-168U驱动,

按照官方的安装指导进行安装:

安装向导 写道

用root帐户(sudo就可以了)

$ sudo make clean

$ sudo make install

$ cd /mxser/driver

$ sudo ./msmknod (生成设备文件,一直回车就行)

$ sudo modprobe mxser (加载mxser驱动)

$ cd /mxser/utility/diag

$ ./msdiag (查看设备运行状态,这里没有异常,如果没有运行"sudo ./msmknod",就会出现“Please run msmknod and load driver first or there are no Card in the system.“提示)

这样一路做下来,没有出现错误,

可是在使用minicom连接/dev/ttyM0 时,死活不能连接上!!!!

于是,卸载了重装N次,

依然不行,前后折腾了2天,

终于在google上搜索到了官方的答案:

它这样 写道

[Description]

Some of the latest Linux kernels have Moxa’s multiport serial board (MSB) drivers built-in. Therefore, after installing a Moxa PCI MSB on your PC, the built-in module will load automatically. You may see the mxser_new module with the lsmod command but cannot get access to its serial ports. If you would like to install the Moxa-provided drivers instead of using the built-in one, you may see that mxser and mxser_new modules exist at the same time after installation if you did not properly remove the built-in driver first. We need to remove the built-in driver before installing the Moxa-provided driver in order to let the Moxa driver work correctly with the Moxa SmartIO PCI serial board.

[Solution]

Please use the following procedure to remove the existing module and driver:

1. #rmmod mxser_new

2. #rm –f /lib/modules/2.6.xx-xx/kernel/drivers/char/mxser_new.ko

After uninstalling the built-in driver, we need to install the Moxa-provided driver:

1. In the directory mxser where you unzip our driver -> #make clean; make install

2. Load module -> #modprobe mxser

3. Check module -> #lsmod | grep mxser

4.

意思就是系统自带的mxser_new导致官方的驱动不能正常工作,

需要卸载掉系统自带的驱动……

按照上面的操作卸载掉mxser_new之后,重新安装官方驱动,

果然,使用minicom可以连接上/dev/ttyM0了!

弄这个弄得人都憔悴了……人生在于折腾啊。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值