[meta-freescale] [Question]Cannot auto login with problem:INIT: Id "mxc1" respawning too fast: disabled for 5 minutes

Gao Yang gaoyang.fr at gmail.com
Mon Sep 4 02:38:12 PDT 2017


Hi All,

I use imx6q sabre lite board with Yocto Morty. Every time I start my imx6
board, it always asks me to enter login: root , so I have tried auto login
with the following way:
in my /usr/bin, I create a autologin script contains this:
#!/bin/sh
exec /bin/login -f root

then in /etc/inittab, I have changed
#mxc1:12345:respawn:/bin/start_getty 115200 ttymxc
to follows
mxc1:12345:respawn:/bin/start_getty -l /usr/bin/autologin -n 115200 ttymxc1

but when I reboot the board, it doesn't auto login, and it display:
INIT: Id "mxc1" respawning too fast: disabled for 5 minutes

I don't know where is wrong and how I should modify this file? I attached
my inittab file, thanks in advance!

-------------------------------------------------------------------------------------------
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
# The default runlevel.
id:5:initdefault:
# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS
# What to do in single-user mode.
~~:S:wait:/sbin/sulogin
# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin
mxc1:12345:respawn:/bin/start_getty 115200 ttymxc1
#mxc1:12345:respawn:/bin/start_getty -l /usr/bin/autologin -n 115200 ttymxc1
# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
1:12345:respawn:/sbin/getty 38400 tty1

Best regards,
Yang GAO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20170904/7db04e7f/attachment.html>


More information about the meta-freescale mailing list