How to change Imx8mpevk board - Yocto Project Init Manager, Systemd to Sysvinit

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

How to change Imx8mpevk board - Yocto Project Init Manager, Systemd to Sysvinit

Jump to solution
1,767 Views
seenuEmb
Contributor I

How to change the default Systemd - Init Manager of imx8mpevk board to Sysvinit.

Did changes in build/conf/local.conf file INIT_MANAGER = "sysvinit" and built the image.

Searched and confirmed the variable value with the following command.

$bitbake -e <image-bb-file> ^INIT_MANAGER=

But the image booted from SD card for Imx8mpevk "ps" command still shows "PID 1 systemd".

Please assist.

 

 

0 Kudos
Reply
1 Solution
1,676 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
4 Replies
1,718 Views
seenuEmb
Contributor I

Thanks for responding.

Did changes mentioned above. When checked PID 1 with "PS" command - busybox as init manager.

With these changes - imx8mp can boot and enters into root long-in page but does not launch Weston Wayland terminal and chromium browser as these packages were added part of <image>.bb file.

Even tried with INIT_MANAGER = "sysvinit" and VIRTUAL-RUNTIME_init_manager = "sysvinit" still the same behaviour.

Can you please assist am i missing  anthing?

 

0 Kudos
Reply
1,734 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Try to change files: sources/meta-fsl-bsp-release/imx/meta-sdk/conf/distro/include/fsl-imx-preferred-env.inc

From:
# Use systemd as default init manager
# VIRTUAL-RUNTIME_init_manager = "systemd"
# PREFERRED_PROVIDER_udev = "systemd"
# PREFERRED_PROVIDER_udev-utils = "systemd"
# DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
# IMX_DEFAULT_DISTRO_FEATURES += " systemd"

 

To:
VIRTUAL-RUNTIME_init_manager = "busybox"
# PREFERRED_PROVIDER_udev = "sysvinit"
# PREFERRED_PROVIDER_udev-utils = "sysvinit"
# DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
IMX_DEFAULT_DISTRO_FEATURES += " sysvinit"

0 Kudos
Reply
1,716 Views
seenuEmb
Contributor I
Thanks for responding.

Did changes mentioned above. When checked PID 1 with "PS" command - busybox as init manager.

With these changes - imx8mp can boot and enters into root long-in page but does not launch Weston Wayland terminal and chromium browser as these packages were added part of <image>.bb file.

Even tried with INIT_MANAGER = "sysvinit" and VIRTUAL-RUNTIME_init_manager = "sysvinit" still the same behaviour.

Can you please assist am i missing anthing?
0 Kudos
Reply
1,677 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @seenuEmb 

You can refer such link to modify the bb file of  weston

https://lists.openembedded.org/g/openembedded-core/topic/patch_weston_init_set/81349618?p=

0 Kudos
Reply