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.