You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
I have a clean build pulled just this week from the Sumo branch. The target is aarch62 for the raspberryPI 3 64 bit user space target. This is a systemd target not sysvinit. The build completed successfully after which I added the packagegroup-security-tpm2 package. Now I am getting the following build failure. I checked the package group and see the resourcemgr is part of the build. Don't know where to go with this... Thanks.
NOTE: Executing RunQueue Tasks
ERROR: tpm2.0-tss-1.3.0-r0 do_patch: Function failed: fix_systemd_unit (log file is located at /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164)
ERROR: Logfile of failure stored in: /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/MCA_RDP_SRV/poky-pi/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['quilt-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function do_patch
| DEBUG: Executing python function patch_do_patch
| DEBUG: Searching for ax_pthread.m4 in paths:
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/
| DEBUG: Python function patch_do_patch finished
| DEBUG: Python function do_patch finished
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function fix_systemd_unit
| sed: can't read /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/git/contrib/resourcemgr.service: No such file or directory
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: fix_systemd_unit (log file is located at /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164)
ERROR: Task (/home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2935 tasks of which 2934 didn't need to be rerun and 1 failed.
@AndreasFuchsSIT
Member
AndreasFuchsSIT commented 10 minutes ago
Hi...
First, tpm2-tss v1.3.0 is quite old by now. I highly recommend going for the 2.1 release now.
Second, the build scripts you're using there are attempting to get to the resource manager which was split out and reimplemented into a second (independent) project.
So these are errors in the bitbake recepies of the distro you're attempting to build. Has nothing to do with this project here, sorry.
Try to get in touch with the author of the bitbake and also kindly ask them to move up to version 2.1 of tpm2-tss...
Thanks...
The text was updated successfully, but these errors were encountered:
Actually after looking further I see that I am pulling from https://git.yoctoproject.org/git/meta-security/meta-tpm (Sumo branch) not from meta-secure-core.
I just added the tpm2 package to my recipe:
root/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
Which is composed of:
DESCRIPTION = "Security packagegroup for Poky"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
inherit packagegroup
PACKAGES = "packagegroup-security-tpm2"
SUMMARY_packagegroup-security-tpm2 = "Security TPM 2.0 support"
RDEPENDS_packagegroup-security-tpm2 = " \
tpm2.0-tools \
trousers \
libtss2 \
libtctidevice \
libtctisocket \
resourcemgr \
"
I assume somewhere in this recipe is the patch file that assumes a different configuration of the systemd resource manager file.
I have a clean build pulled just this week from the Sumo branch. The target is aarch62 for the raspberryPI 3 64 bit user space target. This is a systemd target not sysvinit. The build completed successfully after which I added the packagegroup-security-tpm2 package. Now I am getting the following build failure. I checked the package group and see the resourcemgr is part of the build. Don't know where to go with this... Thanks.
NOTE: Executing RunQueue Tasks
ERROR: tpm2.0-tss-1.3.0-r0 do_patch: Function failed: fix_systemd_unit (log file is located at /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164)
ERROR: Logfile of failure stored in: /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/MCA_RDP_SRV/poky-pi/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['quilt-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function do_patch
| DEBUG: Executing python function patch_do_patch
| DEBUG: Searching for ax_pthread.m4 in paths:
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/poky
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/raspberrypi3-64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/raspberrypi3
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/rpi
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/aarch64
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss-1.3.0/
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss/
| /home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/files/
| DEBUG: Python function patch_do_patch finished
| DEBUG: Python function do_patch finished
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function fix_systemd_unit
| sed: can't read /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/git/contrib/resourcemgr.service: No such file or directory
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: fix_systemd_unit (log file is located at /home/rpi/tmp/work/aarch64-poky-linux/tpm2.0-tss/1.3.0-r0/temp/log.do_patch.10164)
ERROR: Task (/home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2935 tasks of which 2934 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/MCA_RDP_SRV/poky-pi/meta-security/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb:do_patch
Comment from tpm2-tss team.....
@AndreasFuchsSIT
Member
AndreasFuchsSIT commented 10 minutes ago
Hi...
First, tpm2-tss v1.3.0 is quite old by now. I highly recommend going for the 2.1 release now.
Second, the build scripts you're using there are attempting to get to the resource manager which was split out and reimplemented into a second (independent) project.
So these are errors in the bitbake recepies of the distro you're attempting to build. Has nothing to do with this project here, sorry.
Try to get in touch with the author of the bitbake and also kindly ask them to move up to version 2.1 of tpm2-tss...
Thanks...
The text was updated successfully, but these errors were encountered: