autologin problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

autologin problem

1,513 次查看
dhseok
Contributor I

Hi, I'm using i.MX6, and i want to do "autologin" without inserting 'username(root)' after finish booting on the board.

----------------------------------------------------------

freescale login: root

Password:

login[3101]: root login on 'ttymxc1'

----------------------------------------------------------

There are similar problem on the web.. they give solutions that I have to modify a file : '/etc/inittab'

My 'inittab' file is below

----------------------------------------------------------

::sysinit:/etc/rc.d/rcS

::respawn:/etc/rc.d/rc_mxc.S

::sysinit:/etc/rc.d/rc_gpu.S

::ctrlaltdel:/sbin/reboot

::shutdown:/etc/rc.d/rcS stop

::restart:/sbin/init

----------------------------------------------------------

it is different from others on the web.

So, i have tried several times,, but could't solve this problem

somebody has solutions about the problem?

thank you

标签 (1)
0 项奖励
回复
1 回复

1,202 次查看
radhikasomaiya
Senior Contributor II

Hi Donghee Seok,

You can follow the below steps (to autologin in imx6q) 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.

0 项奖励
回复