<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11466</bug_id>
          
          <creation_ts>2017-05-05 07:06:25 +0000</creation_ts>
          <short_desc>TPM 2.0 support (under qemu)</short_desc>
          <delta_ts>2025-02-14 16:48:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>IoT Reference OS Kit</product>
          <component>intel-iot-refkit-security</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS IMPLEMENTATION</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>matti-pekka.sivosuo</cc>
    
    <cc>mikko.ylinen</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73070</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-05-05 07:06:25 +0000</bug_when>
    <thetext>Currently, whole-disk encryption only works with TPM v1.2. TPM in firmware (aka fTPM) is based on TPM v2.0.

This issue here covers:
- enabling the TPM 2.0 userspace = https://github.com/01org/tpm2.0-tools
- adding the necessary kernel configuration (if needed)
- adding a &quot;tpm2.0&quot; image and distro feature, with the corresponding changes to
  the code which currently only supports tpm1.2 (initramfs, installer): as for 
  1.2, usage of 2.0 is meant to be optional with parameters to make it mandatory
- testing under qemu, using the experimental 
  https://github.com/stefanberger/swtpm/tree/tpm2-preview

*Not* covered is testing on real hardware. Joule might work, but testing and automating that is something that needs to be done by QA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75556</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-08-01 11:26:03 +0000</bug_when>
    <thetext>https://github.com/pohly/intel-iot-refkit/commits/tpm2 contains my work-in-progress changes. Currently it only allows building tpm2.0-tools from meta-measured.

Clearly I am not going to finish this for M2, so I propose moving it to M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87595</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-06-25 08:20:13 +0000</bug_when>
    <thetext>Still valid and should be possible to refactor refkit implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99148</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-06-06 15:20:20 +0000</bug_when>
    <thetext>Unfortunately, meta-measured (https://github.com/flihp/meta-measured) is now marked as archived.

The most current tpm support is in meta-tpm (https://git.yoctoproject.org/meta-security/tree/meta-tpm)

The number of recipes there is probably too much to move into oe-core, so we might want to create a reference implementation in meta-security. Hopefully one that could be tested on the AutoBuilder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100993</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:46:29 +0000</bug_when>
    <thetext>bulk change to add Saul&apos;s non-WR address.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101080</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:48:27 +0000</bug_when>
    <thetext>Bulk change: Remove Saul&apos;s old WR address.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>