All customers except US A&D: to ensure that you can access all of your product downloads, you must log in to the Wind River Delivers portal https://delivers.windriver.com and visit the My Products page to force an initial sync of your product entitlement. Only after you’ve completed this step will you be able to access and download product content through the Artifacts, Registry, and Git interfaces. This also applies to users attempting to run the Wind River installer in maintenance or update mode or Linux installation updates at the command line.

Wind River Support Network

HomeDefectsLIN1021-1846
Fixed

LIN1021-1846 : bootchart2: spawns 2 processes in SysVinit environment

Created: Oct 26, 2021    Updated: Dec 7, 2021
Resolved Date: Nov 23, 2021
Found In Version: 10.21.20.5
Fix Version: 10.21.20.7
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Userspace

Description

1, setup.sh --machines nxp-imx6
2, Modify local.conf to:
#Use SysVinit insetead of systemd

# Select the default init manager
# use systemd as the default init manager
#DISTRO_FEATURES_append = " systemd"
#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
#VIRTUAL-RUNTIME_init_manager = "systemd"
#VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
#KERNEL_FEATURES_append = " cfg/systemd.scc"# use sysvinit as the default init manager
DISTRO_FEATURES_append = " sysvinit"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "systemd"
VIRTUAL-RUNTIME_init_manager = "sysvinit"
VIRTUAL-RUNTIME_initscripts = "initscripts"

3, Add bootchart2 to local.conf:
IMAGE_INSTALL_append = " bootchart2"
4, bitbake wrlinux-image-std
5, Add "init=/sbin/bootchartd" to kernel command line when booting the target
root@nxp-imx6:~# ps -ef | grep bootchartd
root       201     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       202     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       553   516  0 09:10 ?        00:00:00 grep bootchartd
root@nxp-imx6:~# /sbin/bootchartd stop
[bootchart] bootchart-collector started as pid 596 with 2 args:
[bootchart]  '--dump'
[bootchart]  '/tmp/bootchart.3lXpVDAq3v'
[bootchart] Extracting profile data from pid 204
[bootchart] map 0xbed9a000 -> 0xbedbb000 size: 132k from 'bed9a000' 'bedbb000'
[bootchart] read 135168 bytes of 135168
[bootchart] reading 150 chunks (of 150) ...
[bootchart] wrote 18760 kb
[bootchart] bootchart-collector pid: 596 unmounted proc / clean exit
root@nxp-imx6:~# ps -ef | grep bootchartd
root       202     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       629   516  0 09:10 ?        00:00:00 grep bootchartd
root@nxp-imx6:~# /sbin/bootchartd stop
[bootchart] bootchart-collector started as pid 644 with 2 args:
[bootchart]  '--dump'
[bootchart]  '/tmp/bootchart.puv4n4l25p'
[bootchart] Failed to find the collector's pid
[bootchart] bootchart-collector pid: 644 unmounted proc / clean exit
Can't extract boot chart from collector
root@nxp-imx6:~# ps -ef | grep bootchartd
root       202     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       668   516  0 09:10 ?        00:00:00 grep bootchartd

Steps to Reproduce

* Setup project with:

 

./wrlinux-x/setup.sh --machines nxp-imx6
 
 * Modify local.conf to:

 

#Use SysVinit insetead of systemd

# Select the default init manager
# use systemd as the default init manager
#DISTRO_FEATURES_append = " systemd"
#DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
#VIRTUAL-RUNTIME_init_manager = "systemd"
#VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
#KERNEL_FEATURES_append = " cfg/systemd.scc"# use sysvinit as the default init manager
DISTRO_FEATURES_append = " sysvinit"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "systemd"
VIRTUAL-RUNTIME_init_manager = "sysvinit"
VIRTUAL-RUNTIME_initscripts = "initscripts"
 * Add bootchart2 to local.conf:

 

 

IMAGE_INSTALL_append = " bootchart2"

 * Build project:

 

$ bitbake wrlinux-image-small

Add "init=/sbin/bootchartd" to kernel command line when booting and test:

Wind River Linux LTS 21.20 Update 5 nxp-imx6 console
nxp-imx6 login: root
root@nxp-imx6:~# ps -ef | grep bootchartd
root       201     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       202     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       553   516  0 09:10 ?        00:00:00 grep bootchartd
root@nxp-imx6:~# /sbin/bootchartd stop
[bootchart] bootchart-collector started as pid 596 with 2 args:
[bootchart]  '--dump'
[bootchart]  '/tmp/bootchart.3lXpVDAq3v'
[bootchart] Extracting profile data from pid 204
[bootchart] map 0xbed9a000 -> 0xbedbb000 size: 132k from 'bed9a000' 'bedbb000'
[bootchart] read 135168 bytes of 135168
[bootchart] reading 150 chunks (of 150) ...
[bootchart] wrote 18760 kb
[bootchart] bootchart-collector pid: 596 unmounted proc / clean exit
root@nxp-imx6:~# ps -ef | grep bootchartd
root       202     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       629   516  0 09:10 ?        00:00:00 grep bootchartd
root@nxp-imx6:~# /sbin/bootchartd stop
[bootchart] bootchart-collector started as pid 644 with 2 args:
[bootchart]  '--dump'
[bootchart]  '/tmp/bootchart.puv4n4l25p'
[bootchart] Failed to find the collector's pid
[bootchart] bootchart-collector pid: 644 unmounted proc / clean exit
Can't extract boot chart from collector
root@nxp-imx6:~# ps -ef | grep bootchartd
root       202     1  0 09:09 ?        00:00:00 /bin/sh /sbin/bootchartd
root       668   516  0 09:10 ?        00:00:00 grep bootchartd

 

 
Live chat
Online