Autologin in imx8mqevk

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Autologin in imx8mqevk

ソリューションへジャンプ
3,252件の閲覧回数
lingguan
Contributor II

Hi,

  How to remove the login prompt after booting in imx8mqevk ?

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

Sincerely.

ラベル(1)
0 件の賞賛
返信
1 解決策
3,060件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
3,061件の閲覧回数
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 件の賞賛
返信
3,060件の閲覧回数
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.