This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

8168 ttyS0打开错误。

我想实现一个在8168平台上运行的串口调试工具,目前代码已经编译通过,在虚拟机ubuntu10.04上面也能正常运行,但是移植到8168上面以后,打开
ttyS0-ttyS3时都会出现tcgetattr   Input/output error  这种错误。  而打开ttyO0-ttyO2则能正常打开。
我下载别人的做好的串口工具,交叉编译后放到板子上也是同样的问题。
下面是内核的uart有关的启动信息:

Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled

下面是板子启动后,用dmesg | grep tty*打印的信息

Kernel command line: console=ttyO2,115200n8 noinitrd ip=dhcp mem=256M rootdelay=5 root=/dev/nfs nfsroot=192.168.1.80:/home/akaedu/dm8168/DVRRDK_03.50.00.05/target/rfs_816x, rw ip=192.168.1.107:192.168.1.109:192.168.1.254:255.255.0.0::eth0:off vram=20M notifyk.vpssm3_sva=0xBEE00000 stdin=serial ddr_mem=1024M
ti81xx_pcie: Setting up Host Controller...
omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
davinci_mdio davinci_mdio.0: resetting idled controller
net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=143bca2)

请专家帮忙解决下这个问题。