Wind River Support Network

HomeDefectsLINCD-2559
Fixed

LINCD-2559 : tpm2-abrmd: ERROR:tcti:../tpm2-tss-2.3.2/src/tss2-tcti/tctildr.c:418:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI

Created: Jul 10, 2020    Updated: Jul 23, 2020
Resolved Date: Jul 20, 2020
Found In Version: 10.20.30.0
Fix Version: 10.20.30.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

$ setup.sh --machines=intel-x86-64 --templates feature/tpm2 --distro wrlinux --dl-layers
$ source oe-init-build-env
$ bitbake wrlinux-image-std

Boot up target:
$ systemctl start tpm2-abrmd
$ systemctl status tpm2-abrmd
* tpm2-abrmd.service - TPM2 Access Broker and Resource Management Daemon
 Loaded: loaded (/lib/systemd/system/tpm2-abrmd.service; disabled; vendor preset: disabled)
 Active: activating (auto-restart) (Result: exit-code) since Fri 2020-07-10 06:36:44 UTC; 1s ago
 Process: 3839 ExecStart=/usr/sbin/tpm2-abrmd (code=exited, status=1/FAILURE)
 Main PID: 3839 (code=exited, status=1/FAILURE)

Jul 10 06:44:36 intel-x86-64 systemd[1]: Starting TPM2 Access Broker and Resource Management Daemon...
-- Subject: A start job for unit tpm2-abrmd.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit tpm2-abrmd.service has begun execution.
--
-- The job identifier is 1120.
Jul 10 06:44:36 intel-x86-64 tpm2-abrmd[632]: tcti_conf before: "device:/dev/tpm0"
Jul 10 06:44:36 intel-x86-64 tpm2-abrmd[632]: tcti_conf after: "device:/dev/tpm0"
Jul 10 06:44:36 intel-x86-64 tpm2-abrmd[632]: ERROR:tcti:../tpm2-tss-2.3.2/src/tss2-tcti/tctildr.c:418:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI
Jul 10 06:44:36 intel-x86-64 tpm2-abrmd[632]: init_thread_func: failed to create TCTI with conf "device:/dev/tpm0"
Jul 10 06:44:36 intel-x86-64 tpm2-abrmd[632]: g_bus_unown_name: assertion 'owner_id > 0' failed
Jul 10 06:44:36 intel-x86-64 systemd[1]: tpm2-abrmd.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit tpm2-abrmd.service has exited.

Steps to Reproduce

/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/intel-qat feature/xfce feature/dpdk feature/bsp-extras feature/docker feature/kexec feature/kdump feature/lxc feature/tpm2 --layers meta-dpdk --distro wrlinux --accept-eula=yes --dl-layers

source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build

cp /lpg-build/cdc/WASSP_LINUX_MASTER_WR/testcases/wrlinux/wr-testing/bts-dev/test-plan/intel-x86-64/NUC7i5DNK1E_standard_next.ini customized_test_plan.ini

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 &&echo ACTIVE_PLAN = \"customized_test_plan.ini\" >> conf/local.conf

bitbake wrlinux-image-std

testing bbappend as below:

tpm2-tools_%.bbappend
PACKAGES_append_class-target += "${PN}-test"
RDEPENDS_${PN}_append_class-target += "${PN}-test"

SUITE_PATH = "/opt/wr-test/bin/${BPN}"
FILES_${PN}-test_class-target += "${SUITE_PATH}"

RDEPENDS_${PN}-test += "bash"

do_install_append_class-target () {
install -d ${D}/${SUITE_PATH}/
cp -rf ${S}/test/* ${D}/${SUITE_PATH}/
}

On target:

 

systemctl status tpm2-abrmd

systemctl restart tpm2-abrmd
Live chat
Online