I compile the kernel and use Linaro Ubuntu for pcDuino.I want to use the serial port to connect other device,but,I don't know how to disable the console output and shell process on the port(UART0).Please~
How to use the serial port?
Posted 13 February 2015 - 04:39 PM
If you just want to use one UART, you can use gpio0/gpio1 as UART.
In a script, we need to first configure them to be UART mode.
$echo 3 > /sys/devices/virtual/misc/gpio/mode/gpio0
$echo 3 > /sys/devices/virtual/misc/gpio/mode/gpio1
Then, we can output through device /dev/ttyS1.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users