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.

 地址在:http://www.moxa.com/support/faq/faq_detail.aspx?id=622

 

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

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

 

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

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

 

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

你可能感兴趣的:(ubuntu,cp-168u,moxa,串口连接,ttyM0)