Introduction
The Maivin's default serial console is available on the internal debug UART which maps in Linux as ttymxc2. Additional consoles can be enabled to allow logins over alternative UARTs.
Note that u-Boot and Kernel boot messages are only supported on ttymxc2 (UART3).
Serial Ports
This table lists the serial ports (UART) available on the Maivin.
UART | Serial Port | Physical Location | Note |
UART1 | ttymxc0 | Rear Terminal Block | RS-485 |
UART2 | ttymxc1 | PCIe | |
UART3 | ttymxc2 | Internal Header | Debug Console |
UART4 | ttymxc3 | Bluetooth UART | Configurable as Internal Header |
Configuration
Additional serial consoles are configured through SystemD using the following commands.
Note these examples use the RS-485 (ttymxc0) as an example, replace ttymxc0 with the serial port you wish to configure as an additional console.
Enable Console
sudo systemctl enable serial-getty@ttymxc0.service
Start Console
sudo systemctl start serial-getty@ttymxc0.service
Stop Console
sudo systemctl stop serial-getty@ttymxc0.service
Disable Console
sudo systemctl disable serial-getty@ttymxc0.service
Advanced Configuration
For advanced configuration such as overriding the default baudrate or hardware flow-control settings initially configured by the kernel you will need to copy the serial-getty template and modify it to your needs. To do this copy the template from the following location and edit according to your needs, additional documentation is provided within the template file.
/usr/lib/systemd/system/serial-getty@.service
Comments
0 comments
Please sign in to leave a comment.