Bug 1226142

Summary: u-boot enabled with tpm2 and soft spi
Product: [openSUSE] openSUSE Tumbleweed Reporter: Jonas Kvinge <jonaski>
Component: BootloaderAssignee: Matthias Brugger <mbrugger>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: jonaski
Version: Current   
Target Milestone: ---   
Hardware: aarch64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: tpm2 spoftspi patch

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?