imx8mm rootfs: Failed to start User Login Management

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mm rootfs: Failed to start User Login Management

241 Views
arnold0kang
Contributor I

hi, 

  I use imx8mm chip , use yocto build rootfs , when I burn rootfs to board. some error ocur,  failed to start User Login Management.

[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Reached target Multi-User System.
Starting Record Runlevel Change in UTMP...
Starting Load Kernel Module drm...
[ OK ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.
[ OK ] Finished Record Runlevel Change in UTMP.
Starting Load Kernel Module drm...
[ OK ] Finished Load Kernel Module drm.
[FAILED] Failed to start User Login Management.
See 'systemctl status systemd-logind.service' for details.

NXP i.MX Release Distro 6.6-scarthgap imx8mm-ddr4-evk ttymxc1

imx8mm-ddr4-evk login: root
Feb 27 17:26:09 imx8mm-ddr4-evk authpriv.debug login[332]: pam_unix(login:auth): user [root] has blank password; authenticated without it
Feb 27 17:26:09 imx8mm-ddr4-evk authpriv.info login[332]: pam_unix(login:session): session opened for user root(uid=0) by LOGIN(uid=0)
Feb 27 17:26:09 imx8mm-ddr4-evk daemon.info dbus-daemon[318]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requested by ':1.4' (uid=0 pid=332 comm="/bin/login -- ")
Feb 27 17:26:34 imx8mm-ddr4-evk auth.notice dbus-daemon[318]: [system] Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
Feb 27 17:26:34 imx8mm-ddr4-evk authpriv.err login[332]: pam_systemd(login:session): Failed to create session: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
Feb 27 17:26:34 imx8mm-ddr4-evk authpriv.notice login[348]: ROOT LOGIN on '/dev/ttymxc1'
root@imx8mm-ddr4-evk:~# [ 33.757392] VDDEXT_3V3: disabling
[ 33.760718] VSD_3V3: disabling
[ 60.381539] imx-sdma 302c0000.dma-controller: external firmware not found, using ROM firmware
[ 60.381685] imx-sdma 302b0000.dma-controller: external firmware not found, using ROM firmware
[ 60.392957] imx-sdma 30bd0000.dma-controller: loaded firmware 4.6
[ 62.429792] cfg80211: failed to load regulatory.db

root@imx8mm-ddr4-evk:~#
root@imx8mm-ddr4-evk:~# systemctl status systemd-logind.service
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

Labels (1)
0 Kudos
Reply
4 Replies

210 Views
arnold0kang
Contributor I

hi,   

  we desgin the board use imx8mm . not use evk board.  and yes , its ddr4

  I build the sdk flow thease steps:

1 setup bsp

  mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.23-2.0.0.xml
repo sync

2, setup project 

 DISTRO=fsl-imx-xwayland MACHINE=imx8mm-ddr4-evk source imx-setup-release.sh -b LoRaWAN

3, build 

bitbake core-image-base

then , I get the rootfs 

here is my local.conf : 

MACHINE ??= 'imx8mm-ddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"

thanks 

 

0 Kudos
Reply

178 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @arnold0kang 

 

I am not sure what is happening, but it appears that Yocto is setting a blank password on the user account.

Please try to add this to you local.conf in order to configure the user account:

# Set user account and password
APTGET_ADD_USERS = "user:password:shell"
#  format 'name:password:shell'.
#    'name' is the user name.
#    'password' is an encrypted password (e.g. generated with
#    `echo "P4sSw0rD" \| openssl passwd -stdin`).
#    If empty or missing, they'll get an empty password.
#    'shell' is the default shell (if empty, default is /bin/sh).

 

Please try it.

 

Best regards,

Salas.

0 Kudos
Reply

226 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @arnold0kang 

 

I hope you are doing well.

 

Could you please share the steps that you did for this compilation?

Also, Could you please share the content of your local.conf file? 

 

Also, are you using the EVK? if yes, is the LPDDR4 or DDR4?

 

Best regards,

--... ...--

Salas.

0 Kudos
Reply

199 Views
arnold0kang
Contributor I

hi,   

  we desgin the board use imx8mm . not use evk board.  and yes , its ddr4

  I build the sdk flow thease steps:

1 setup bsp

  mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.23-2.0.0.xml
repo sync

2, setup project 

 DISTRO=fsl-imx-xwayland MACHINE=imx8mm-ddr4-evk source imx-setup-release.sh -b LoRaWAN

3, build 

bitbake core-image-base

then , I get the rootfs 

here is my local.conf : 

MACHINE ??= 'imx8mm-ddr4-evk'
DISTRO ?= 'fsl-imx-xwayland'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"

thanks 

0 Kudos
Reply