Chinaunix

标题: setserial的问题 [打印本页]

作者: lodayo    时间: 2008-09-23 13:32
标题: setserial的问题
本人的电脑上有一个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了?
作者: ziggler    时间: 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
作者: lodayo    时间: 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.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2