
Getting Started
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/[email protected]
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 [email protected]
Created symlink from /etc/systemd/system/getty.target.wants/serial-
[email protected] to /lib/systemd/system/[email protected]
$
dmesg | grep ttyFx
Alternatively via
$
sudo cat /proc/ioports
$
nano /lib/systemd/system/[email protected]
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 [email protected]
Created symlink from /etc/systemd/system/getty.target.wants/serial-
[email protected] to /lib/systemd/system/[email protected]