Skip to contentSkip to conversation

Autologin in imx8mq-var-dart issue in dnf #yocto #systemd

DISCUSSION Amrun Nisha.R 1 participant 1 message Mar 18, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

I want to add a feature auto login using sysvinit as init function in yocto. So I have created a new layer named "meta-autologin" and added in the bitbake layers. Now I have updated the local.conf  with the following

IMAGE_INSTALL_append = " autologin"
IMAGE_INSTALL_append = " linux-firmware dhcpcd dhcp-client dhcp-server iptables wpa-supplicant " CORE_IMAGE_EXTRA_INSTALL_append ="openssh dhcpcd dhcp-client"

And I have added the meta-autologin in the bblayer.conf

BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-poky \
${BSPDIR}/sources/poky/meta-autologin \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
\
${BSPDIR}/sources/meta-freescale \
${BSPDIR}/sources/meta-freescale-3rdparty \
${BSPDIR}/sources/meta-freescale-distro \
"
For init function, I have the fsl-wayland.conf file in \sources\meta-freescale-distro\conf\distro\fsl-wayland.conf as

# FSL Distro for Wayland with XWayland.

require conf/distro/include/fsl-base.inc

DISTRO = "fsl-xwayland"
DISTRO_NAME = "FSL Wayland with XWayland"

# Remove conflicting backends DISTRO_FEATURES_remove = "directfb" DISTRO_FEATURES_append = " x11 wayland pam systemd" #VIRTUAL-RUNTIME_init_manager = "systemd" VIRTUAL-RUNTIME_init_manager = "busybox" VIRTUAL-RUNTIME_initscripts = "initscripts" VIRTUAL-RUNTIME_keymaps = "keymaps" DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"

For sysinit function, I have updated the inc file in \meta-fsl-bsp-release\imx\meta-sdk\conf\distro\include\fsl-imx-preferred-env.inc as

# Use systemd as default init manager
VIRTUAL-RUNTIME_init_manager = "sysvinit"
#VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
#VIRTUAL-RUNTIME_login_manager = "busybox"
PREFERRED_PROVIDER_udev = "systemd"
PREFERRED_PROVIDER_udev-utils = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "systemd"
VIRTUAL-RUNTIME_initscripts = "initscripts"
IMX_DEFAULT_DISTRO_FEATURES += " sysvinit"

But I m getting error when the core-image-base_do_rootfs due to could not invoke dnf command and giving error as transaction failed . I have attached the error log file. Can someone resolve this issue? :(