Serial Console on Pidp8 Running Raspbian
-
Copy the file
serial-getty@.servicefrom/lib/systemd/systemto/etc/systemd/system -
The file must be renamed, so that it points to your serial terminal which will be ttyUSB0. The filename becomes:
serial-getty@ttyUSB0.service -
The file may need to be edited with the parameters of your serial terminal, or the default setting may work.
In my case I changed the first line in the [Service] section to read:ExecStart=-/sbin/agetty ttyUSB0 9600 vt100 -
Now, enable the service with:
sudo systemctl enable serial-getty@ttyUSB0.service
You should get a Creating sim link …. message. The service will now start up at every boot.
|
Note
|
The serial-getty@service file is a generic template for setting up a serial terminal with a log-in prompt.
|