免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2016 | 回复: 2
打印 上一主题 下一主题

setserial的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-23 13:32 |只看该作者 |倒序浏览
10可用积分
本人的电脑上有一个RS232接口即COM port,现在电脑上安装了Fedora6和Fedora8,在Fedora8下用setserial -a /dev/ttyS0可以显示出如下信息:
/dev/ttyS0,Line0,UART:16550A,Port:0x03f8,IRQ:4
Baud_base:115200,close_delay:50,divisor:0
closing_wait:3000
Flags:spd_normal skip_test
而在Fedora6却显示:
Cannot get serial info: Invalid argument
在Fedora6下/dev/ttyS0应该可以使用啊,因为别人的Fedora6也可以啊。

由于我要用RS232接口外接一控制器,此控制器的驱动证实可用,但就是因为无法启动/dev/ttyS0而导致控制器无法工作。
而且在RS232接口外接上控制器时,用cat /dev/ttyS0时,Fedora6下控制器上的LED灯不亮,而Fedora8下能够亮,这更加说明了Fedora6下/dev/ttyS0不可用。

为什么在Fedora6下/dev/ttyS0无法使用了?有什么办法可以启动/dev/ttyS0了?

最佳答案

查看完整内容

应该是个BUG。Aha! So I'm not alone. It appears there is a multilegged thing called a bug in the present kernel. Let me make a couple of observations re the config for 2.6.18-1.2798.fc6xen. I looked at it with a make xconfig, thinking I might rebuild it, and found with grep:[root coyote 2.6.18-1.2798.fc6-i586]# grep SER .configCONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y# CONFIG_SER ...

论坛徽章:
0
2 [报告]
发表于 2008-09-23 13:32 |只看该作者
应该是个BUG。

Aha!  So I'm not alone.  It appears there is a multilegged thing called a
bug in the present kernel.  Let me make a couple of observations re the
config for 2.6.18-1.2798.fc6xen.  I looked at it with a make xconfig,
thinking I might rebuild it, and found with grep:

[root coyote 2.6.18-1.2798.fc6-i586]# grep SER .config
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
CONFIG_SERIO_RAW=m
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_ESPSERIAL is not set
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_PNP=y
CONFIG_SERIAL_8250_CS=m
CONFIG_SERIAL_8250_NR_UARTS=32 <--------WTH?
CONFIG_SERIAL_8250_RUNTIME_UARTS=4 <----WTH?
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_RSA=y
# CONFIG_SERIAL_8250_FOURPORT is not set
# CONFIG_SERIAL_8250_ACCENT is not set
# CONFIG_SERIAL_8250_BOCA is not set
# CONFIG_SERIAL_8250_HUB6 is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_JSM=m
# CONFIG_SND_SERIAL_U16550 is not set

Now, I snipped the USB stuff back out.  And, note that the 8250 is set for
32 of them, with 4 being the default.  My working kernel is 2 & 2 there.  
I think I need a beer, coffee isn't working anymore

Can we file a bug?

--
Cheers, Gene
http://www.linux-faqs.com/archiv ... ember/msg02709.html

论坛徽章:
0
3 [报告]
发表于 2008-09-24 08:44 |只看该作者
原帖由 ziggler 于 2008-9-23 14:23 发表
应该是个BUG。

Aha!  So I'm not alone.  It appears there is a multilegged thing called a
bug in the present kernel.  Let me make a couple of observations re the
config for 2.6.18-1.2798.fc6 ...

多谢你的指点,我现在换了个kernel后serial port终于有反应了,虽然我的触摸屏还没完全work.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP