[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 06:09:11 PDT 2017


Hi Fabio,

Thank you for you response. I have verified in my build directory, in the
tmp/work/nitrogen6x-fslc-linux-gnueabi/linux-boundary/4.1.15-r0/defconfig,
CONFIG_FHANDLE=y is set. Should I add DISTRO_FEATURES_append = "systemd"
and VIRTUAL-RUNTIME_init_manager = "systemd" in my local.conf in order to
use systemd?

Best regards,
Yang GAO


2017-09-04 14:05 GMT+02:00 Fabio Berton <fabio.berton at ossystems.com.br>:

> Hi!
>
> Are you using systemd? If you're using systemd check if you
> have CONFIG_FHANDLE=y in your defconfig, if not add this to defconfig,
> build kernel and try to boot again.
>
> Fabio Berton
>
> On Mon, Sep 4, 2017 at 6:38 AM, Gao Yang <gaoyang.fr at gmail.com> wrote:
>
>> 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
>>
>> --
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20170904/d0662bfa/attachment.html>


More information about the meta-freescale mailing list