by
prima » Sat Jan 04, 2020 8:20 pm
To further clarify my previous post: the instructions apply if your OS is
FriendlyCore.
If you want to use
Armbian the procedure is different.
The
Armbian page for the R1 mentions that "Debug serial console is enabled on UART0, which is located near mUSB port,"
So apparently the second UART port has to be enabled manually.
Here is what I did:
First of all run the armbian-config utility:
Go to: System and security settings
Then go to: Toggle hardware configuration: UART, I2C, etc.
Then enable UART2 (this is ttyS1)
Save.
Exit.
Next step:
Edit /boot/boot.cmd.
There is a section that reads:
Code: Select all
if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=ttyS0,115200 console=tty1"; fi
if test "${console}" = "serial"; then setenv consoleargs "console=ttyS0,115200"; fi
Change the second line as follows:
Code: Select all
if test "${console}" = "serial"; then setenv consoleargs "console=ttyS1,115200"; fi
(The default setting in /boot/armbianEnv.txt is: console=serial)
Reboot.