Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use UARTs

1,018 bytes added, 12:15, 19 January 2012
no edit summary
=== Check UARTs devices ===
 
Make sure that Kernel detects UARTs, type:
<pre>dmesg | grep tty</pre>
The result will be similar at that:
<pre>root@localhost:~/PROGRAM# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.598999] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
[ 0.784057] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
[ 0.969085] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
[ 1.153503] serial8250.3: ttyS3 at MMIO 0x49042000 (irq = 80) is a ST16654
root@localhost:~/PROGRAM# </pre>
Get information about UARTs, type:
<pre>setserial -g /dev/ttyS[0123]</pre>
The result will be similar at that:
<pre>root@localhost:~/PROGRAM# setserial -g /dev/ttyS[0123]
/dev/ttyS0, UART: 16654, Port: 0x0000, IRQ: 72
/dev/ttyS1, UART: 16654, Port: 0x0000, IRQ: 73
/dev/ttyS2, UART: 16654, Port: 0x0000, IRQ: 74
/dev/ttyS3, UART: 16654, Port: 0x0000, IRQ: 80
root@localhost:~/PROGRAM# </pre>
If you don't have setserial installed type:
<pre>apt-get install setserial</pre>
=== Wire connectors ===
4,199
edits