Bug 1226142 - u-boot enabled with tpm2 and soft spi
Summary: u-boot enabled with tpm2 and soft spi
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Bootloader (show other bugs)
Version: Current
Hardware: aarch64 openSUSE Tumbleweed
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Matthias Brugger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-10 11:16 UTC by Jonas Kvinge
Modified: 2024-07-11 16:10 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
tpm2 spoftspi patch (5.05 KB, patch)
2024-06-10 11:16 UTC, Jonas Kvinge
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Kvinge 2024-06-10 11:16:57 UTC
Created attachment 875402 [details]
tpm2 spoftspi patch

To get the TPM2 PCR values filled in I need to enable some extra configuration options for u-boot:

* Device Drivers
  * (y) SPI Support
    * (y) Enable Driver Model for SPI drivers     (`DM_SPI`)
    * (y) Soft SPI driver                         (`SOFT_SPI`)
* Library routines
  * Security Support
    * (y) Trusted Platform Module (TPM) support   (`TPM`)
* Device Drivers
  * TPM support
    * (y) TPMv2.x support                         (`TPM_V2`)
    * (y) Enable support for TPMv2.x SPI chips    (`TPM2_TIS_SPI`)
* Command line interface
  * Security commands
    * (y) Enable the 'tpm' command                (`CMD_TPM`)

https://github.com/joholl/rpi4-uboot-tpm/blob/ad31306ce2f2d52f0572385bfc8bac33cb1f1f68/README.md

Is this possible to enable for the u-boot-rpi4 package?

I've attached a patch with the changes from "make rpi_4_defconfig".
Comment 1 Matthias Brugger 2024-07-11 16:05:34 UTC
openSUSE uses the rpi_arm64_defconfig, not rpi_4_defconfig. Is there any reason you want to use rpi_4_defconfig?