HI to all, please help me!
ttyS0 and ttyS1 both used duart1 of p1010.
/dev/ttyS0 and /dev/ttyS1 can open success both, ttyS0 all is ok, but ttyS1 log input/output error when call tcgetattr().
The kernel message about serial in startup as following:
/////////////////////////////////////////
Serial 825016550 driver, 2 ports, IRQ sharing enabled
serial8250.0 ttyS0 at MMIO 0xffe04500 (irq = 42, base_baud = 25000000) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
//////////////////////////////////////////
As above showing, there is no about ttyS1 message,but this two uart is configured in dts, as following:
///////////////////////////////////////////////////
///////////////////////////////////////////////
There is more as following:
///////////////////////////////////////////
root@p1010rdb-pb:/proc/tty/driver# cat serial
serinfo:1.0 driver revision:
0: uart:16550A mmio:0xFFE04500 irq:42 tx:1779 rx:236 RTS|DTR
1: uart:unknown port:00000000 irq:0
//////////////////////////////////////////////////////
Why no message about ttyS1? Why ttyS1 can not use?
Please help me !
Thanks.
Please look this community topic:
https://community.nxp.com/thread/387283
Hope it will be helpful
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you very much!
It solves my problem.