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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,886 次查看
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 项奖励
回复
1 解答
1,795 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 项奖励
回复
4 回复数
1,837 次查看
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 项奖励
回复
1,853 次查看
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 项奖励
回复
1,835 次查看
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 项奖励
回复
1,796 次查看
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 项奖励
回复