EasyManua.ls Logo

duagon MC50M - Page 42

duagon MC50M
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Getting Started
20MC50M00 E5
2020-10-20
42
2.6.6.2 Configuring Console Redirection and Early-Console Functionality
The following describes configuration in Ubuntu.
Note: Replace ttyFx by the actual port designation in all examples.
Console Redirection
» Create a getty service for your console:
» Enable the RS232 serial port to be used:
» Re-boot the system.
» When the operating system is loading and the Linux kernel is started, set kernel
parameter console to "console=ttyFx".
Early-Console Functionality
The ASIX driver does not support early-console functionality yet. You can use a
workaround, though.
» While the system is running determine the I/O port of the ttyFx devices:
This yields, e.g., 0xb090.
» Create a getty service for your console:
» Enable the RS232 serial port to be used:
» Re-boot the system.
» When the operating system is loading and the Linux kernel is started, set kernel
parameter console to "console=uart,io,0xb090,115200n8", with the I/O port number
determined before.
$ nano /lib/systemd/system/serial-getty@.service
Change the following line
ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
to this setting:
ExecStart=-/sbin/agetty 115200 %I $TERM
$ systemctl enable serial-getty@ttyFx.service
Created symlink from /etc/systemd/system/getty.target.wants/serial-
getty@ttyFx.service to /lib/systemd/system/serial-getty@.service
$ dmesg | grep ttyFx
Alternatively via
$ sudo cat /proc/ioports
$ nano /lib/systemd/system/serial-getty@.service
Change the following line
ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
to this setting:
ExecStart=-/sbin/agetty 115200 %I $TERM
$ systemctl enable serial-getty@ttyFx.service
Created symlink from /etc/systemd/system/getty.target.wants/serial-
getty@ttyFx.service to /lib/systemd/system/serial-getty@.service

Table of Contents