Autologin in imx8mqevk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autologin in imx8mqevk

Jump to solution
2,209 Views
lingguan
Contributor II

Hi,

  How to remove the login prompt after booting in imx8mqevk ?

  I can't find /etc/inittab file in filesystem.

Sincerely.

Labels (1)
0 Kudos
Reply
1 Solution
2,017 Views
b36401
NXP Employee
NXP Employee

Yes. It can be done with adding "-a root" (or some other user) into ExecStart option
of /etc/systemd/system/getty.target.wants/serial-getty@ttyAMA0.service file:

ExecStart=-/sbin/agetty -8 -a root -L %I 115200 $TERM

View solution in original post

0 Kudos
Reply
2 Replies
2,018 Views
b36401
NXP Employee
NXP Employee

Yes. It can be done with adding "-a root" (or some other user) into ExecStart option
of /etc/systemd/system/getty.target.wants/serial-getty@ttyAMA0.service file:

ExecStart=-/sbin/agetty -8 -a root -L %I 115200 $TERM

0 Kudos
Reply
2,017 Views
radhikasomaiya
Senior Contributor II

Hi Ling guan,

You can follow the below steps (to autologin in imx8mqevk) after getting the boards console in minicom. (You need to login at least one time then you can do changes as per below.)

1.   $ cp /lib/systemd/system/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@<console>.service

2. And append the "-a root" for auto login:  (in  /etc/systemd/system/getty.target.wants/serial-getty@<console>.service).

      $ ExecStart=-/sbin/agetty -8 -a root -L %I 115200 $TERM

Regards,

Radhika Somaiya.