毕业设计需要用到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了!
弄这个弄得人都憔悴了……人生在于折腾啊。
分享到:
相关推荐
Ubuntu8.04安装基础入门教程没叫你如何搞定安装Ubuntu8.04!
ubuntu 8.04 安装g++ ,在ubuntu 8.04 配置okl4时有用
一.系统初始化 二.输入法 三.系统美化 四.影视工具 五.文件浏览 六.系统管理 七.其他软件 八.虚拟 九.编程环境 十.KDE 十一.Ubuntu 出现的一些问题 十二.Ubuntu 使用技巧
里面包括grub020p;vmlinuz;initrd 我用这三个成功的硬盘安装了ubuntu-8.04-alternate-i386 又要用的看一下。 安装步骤其实很简单,如果有不会的可以看我的Blog相关内容 j2me.zor.org
详解:Vmware虚拟机下Ubuntu8.04安装.pdf
Ubuntu 8.04 Server版安装图解 很完整
ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源ubuntu8.04默认的源
Ubuntu 8.04桌面版详细安装教程,图片文字版!
ubuntu8.04 qt-eclipse编程环境搭建
用 Wubi 安装 Ubuntu 8.04 只需五步
ubuntu8.04速成手册1.0.rar ubuntu8.04 ubuntu8安装与配置 ubuntu8.0.4实用手册
ubuntu8.04优化指南 ubuntu8.04优化指南
ubuntu8.04使用手册,ubuntu8.04使用手册ubuntu8.04使用手册,ubuntu8.04使用手册,ubuntu8.04使用手册,
ubuntu8.04中配置java+tomcat+eclipseMyEclipse开发环境(更新)
该文章比较详细地讲述了如何在ubuntu8.04中安装中文输入法,特别对于初学ubuntu的来说,无疑是个好的参考资料。
ubuntu经典主题 橙色的那个太丑了何不试试这个
描述在ubuntu 8.04上安装samba的步骤及其设置方法
个人结合网上和自己的实践整理的,是用wubi安装的,我运行过,很稳定!里面包含输入法的安装。
ubuntu 8.04使用手册
ubuntu8.04速成手册。这个资源对与想学ubuntu的新手来说。绝对值得看