本本无串口,ubuntu下usb转232?
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
本本无串口,ubuntu下usb转232?
本本无串口,有z-tek usb转通用串口线一根(型号:zku11a),附有redhat下的驱动,请问各位大侠如何做才能在unbuntu8.04下使用?
- 附件
-
- zku11a.rar
- z-tek 网站上下的对应驱动
- (19.44 KiB) 已下载 265 次
-
- ftdi_sio.rar
- 配套光盘上的驱动
- (27.98 KiB) 已下载 260 次
-
- 帖子: 16
- 注册时间: 2008-01-19 19:33
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
不是RPM,是源代码,还有Make file,我按照说明做了,编译不成功!peter81015 写了:redhat下的驱动是RPM的吗?要是的话,可以试试用软件把它转换成deb格式的。
上次由 linqingzhou 在 2008-08-14 22:31,总共编辑 1 次。
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
zlq@zlq-laptop:~/Linux/Redhat9$ make instxeoc 写了:那你就编译咯,编译的基本不会有发行版差别,反正我是没见过
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -I/usr/src/linux-2.4/drivers/usb/serial -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -DMODULE -c pl2303.c
pl2303.c:33:26: 错误: linux/config.h:没有该文件或目录
pl2303.c:36:24: 错误: linux/init.h:没有该文件或目录
pl2303.c:37:24: 错误: linux/slab.h:没有该文件或目录
pl2303.c:39:30: 错误: linux/tty_driver.h:没有该文件或目录
pl2303.c:40:28: 错误: linux/tty_flip.h:没有该文件或目录
pl2303.c:42:26: 错误: linux/module.h:没有该文件或目录
pl2303.c:43:28: 错误: linux/spinlock.h:没有该文件或目录
pl2303.c:44:25: 错误: asm/uaccess.h:没有该文件或目录
pl2303.c:45:23: 错误: linux/usb.h:没有该文件或目录
pl2303.c:53:24: 错误: usb-serial.h:没有该文件或目录
pl2303.c:54:20: 错误: pl2303.h:没有该文件或目录
包含的这些头文件好像找不到,请问怎样设置路径?
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
好象 ubuntu linux自带了驱动了。
在 /usr/src/linux-headers-2.6.24-1o/drivers/usb/serial 下有驱动了,
config USB_SERIAL_PL2303
tristate "USB Prolific 2303 Single Port Serial Driver"
depends on USB_SERIAL
help
Say Y here if you want to use the PL2303 USB Serial single port
adapter from Prolific.
To compile this driver as a module, choose M here: the
module will be called pl2303.
这个对应就我要那个驱动,本人很菜现在还没学会怎么把驱动装上去。。。。有用过的朋友可否帮个忙?
config USB_SERIAL_PL2303
tristate "USB Prolific 2303 Single Port Serial Driver"
depends on USB_SERIAL
help
Say Y here if you want to use the PL2303 USB Serial single port
adapter from Prolific.
To compile this driver as a module, choose M here: the
module will be called pl2303.
这个对应就我要那个驱动,本人很菜现在还没学会怎么把驱动装上去。。。。有用过的朋友可否帮个忙?
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
eexpress 写了:??你dmesg过吗?看过/dev/ttyUSB0这样的文件吗?
我把USB-232 插上后 dmesg | grep USB
[ 9132.365610] usb 1-3: new full speed USB device using ohci_hcd and address 2
[ 9132.831054] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[ 9132.831248] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 9132.837850] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
[ 9132.838026] usb 1-3: pl2303 converter now attached to ttyUSB0
[ 9132.838038] /build/buildd/linux-2.6.24/drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
好像驱动已经自动装上了也,对不对?
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 16
- 注册时间: 2008-08-06 21:31
谢谢
谢谢各位的帮助,我已经能够在ubuntu下使用串口调试了,个人感觉cutecom 比较易用....