Wind River Support Network

HomeDefectsLINCD-1826
Fixed

LINCD-1826 : boot IMA wic image failed with kernel panic due to /init: line 72: /rootfs/usr/sbin/switch_root.static: Permission denied

Created: Apr 30, 2020    Updated: May 29, 2020
Resolved Date: May 20, 2020
Found In Version: 10.20.21.0
Fix Version: 10.20.24.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: BSP, Userspace

Description

1. Setup with ima enabled
$ setup.sh --machines=intel-x86-64 --templates feature/ima \
  --distro wrlinux --accept-eula=yes --dl-layers

2. source
$ source environment-setup-x86_64-wrlinuxsdk-linux
$ source oe-init-build-env build

3. Do not build live (iso/hddimage) image
echo 'IMAGE_FSTYPES_remove = " live"' >>conf/local.conf

4. Build
$ bitbake wrlinux-image-std

5. Boot wrlinux-image-std failed with kernel panic
...
/init: line 72: /rootfs/usr/sbin/switch_root.static: Permission denied
...

Workaround: drop step 3 to build live image

Steps to Reproduce

Shared image path:

[http://pek-lpgtest3.wrs.com/lpg-build/cdc/publiclog/WASSP_LOG/pek-lpgtest7302.wrs.com/SharedImage/LINCD_NEXT/BSP/intel-x86-64_standard_glibc-std_Security_seloader/20200429_100310/]

[http://pek-lpgtest3.wrs.com/lpg-build/cdc/publiclog/WASSP_LOG/pek-lpgtest7302.wrs.com/SharedImage/LINCD_NEXT/BSP/intel-x86-64_standard_glibc-std_Security_grub_gpg/20200429_092924/]

 

/lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machines=intel-x86-64 --templates feature/linux-yocto-dev feature/toolchain-next feature/userspace-next feature/ima --distro wrlinux --accept-eula=yes --dl-layers

source environment-setup-x86_64-wrlinuxsdk-linux

source oe-init-build-env build

echo GPG_PATH = "/tmp/tmp.5lLnQUAr2l" >> conf/local.conf

bitbake-layers add-layer /folk/xdong/SHARED_WASSP_LINUX_MASTER_WR/testcases/wrlinux/wr-testing/bts-dev 

echo require templates/feature/bts/template.conf >> conf/local.conf 

echo IMAGE_FSTYPES += " tar.bz2" >> conf/local.conf

echo BB_NO_NETWORK_pn-lmbench = "0" >> conf/local.conf

cp /folk/jhu2/repo/wassp_cd_shared/WASSP_LINUX_MASTER_WR/testcases/wrlinux/wr-testing/bts-dev/test-plan/security.ini customized_test_plan.ini

echo ACTIVE_PLAN = "customized_test_plan.ini" >> conf/local.conf

echo IMAGE_FSTYPES_remove = " live hddimg iso" >>conf/local.conf

bitbake wrlinux-image-glibc-std
Live chat
Online