User Tools

Site Tools


vmware.png nfs.png tftp.png subversion.png eclipse.png logo.png tutorial.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:general_information:autologin_systemd [2018/09/14 12:01] (current)
liedmann created
Line 1: Line 1:
 +===== Autologin with systemd =====
 +
 +<WRAP round info>
 +Tested with:
 +  * TQMa6x BSP REV.0109
 +  * TQMa7x BSP REV.0101
 +</​WRAP>​
 + 
 +==== Copy serial getty service ====
 +
 +Copy **/​lib/​systemd/​system/​serial-getty@.service** to **/​etc/​systemd/​system**
 +
 +<​code>​
 +cp /​lib/​systemd/​system/​serial-getty@.service /​etc/​systemd/​system
 +</​code>​
 +
 +
 +==== Rename systemd service ====
 +
 +
 +Navigate to **/​etc/​systemd/​system/​**
 +
 +<​code>​
 +cd /​etc/​systemd/​system/​
 +</​code>​
 +
 +Rename **serial-getty@.service** ​
 +
 +<​code>​
 +mv serial-getty@.service serial-getty@<​console_device>​.service
 +</​code>​
 +++++ example |
 +<​code>​
 +mv serial-getty@.service serial-getty@ttymxc1.service
 +</​code>​
 +++++
 +
 +==== Edit systemd service ====
 +
 +
 +Edit **serial-getty@ttymxc1.service** with e.g. nano editor
 +
 +<​code>​
 +nano serial-getty@ttymxc1.service
 +</​code>​
 +
 +Modify the line that begins with **ExecStart** as follows ​
 +
 +<​code>​
 +ExecStart=-/​sbin/​agetty -a <​username>​ <​console_device>​ <​buadrate>​ %I $TERM
 +</​code>​
 +
 +
 +++++ example |
 +<​code>​
 +ExecStart=-/​sbin/​agetty -a root ttymxc1 115200 %I $TERM
 +</​code>​
 +++++
 +
 +==== Enable the systemd service ====
 +
 +<​code>​
 +systemctl enable serial-getty@<​console_device>​.service
 +</​code>​
 +
 +++++ example |
 +<​code>​
 +systemctl enable serial-getty@ttymxc1.service
 +</​code>​
 +++++
  

en/general_information/autologin_systemd.txt · Last modified: 2018/09/14 12:01 by liedmann


Disclaimer

TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.


Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki