===== Autologin with systemd =====
Tested with:
* TQMa6x BSP REV.0109
* TQMa7x BSP REV.0101
==== Copy serial getty service ====
Copy **/lib/systemd/system/serial-getty@.service** to **/etc/systemd/system**
cp /lib/systemd/system/serial-getty@.service /etc/systemd/system
==== Rename systemd service ====
Navigate to **/etc/systemd/system/**
cd /etc/systemd/system/
Rename **serial-getty@.service**
mv serial-getty@.service serial-getty@.service
++++ example |
mv serial-getty@.service serial-getty@ttymxc1.service
++++
==== Edit systemd service ====
Edit **serial-getty@ttymxc1.service** with e.g. nano editor
nano serial-getty@ttymxc1.service
Modify the line that begins with **ExecStart** as follows
ExecStart=-/sbin/agetty -a %I $TERM
++++ example |
ExecStart=-/sbin/agetty -a root ttymxc1 115200 %I $TERM
++++
==== Enable the systemd service ====
systemctl enable serial-getty@.service
++++ example |
systemctl enable serial-getty@ttymxc1.service
++++