- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
How to remove the login prompt after booting in imx8mqevk ?
I can't find /etc/inittab file in filesystem.
Sincerely.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
