heads/config
Thierry Laurion 6923fb5e20
Addition of qemu-(fb)whiptail-tpm2(-hotp) boards
-coreboot support of TPM v2.0 (shared config for TPM2 support across all 4 previous variations)
-swtpm set to be launched under TPM v2.0 mode under board config
-Documentation file under each board.md softlinks to qemu-coreboot-fbwhiptail-tpm1.md (which has been generalized)
This is skeleton for TPM v2 integration under Heads

-------------
WiP

TODO:
- libcurl cannot be built as a tpm2-tools dependency as of now not sure why. curl currently needs to be added in board config to be built
- Note: tpm-reset (master and here) needs some review, no handle of no tpm use case. Caller is responsible to not call it otherwise does nothing
- init tries to bind fd and fails currently
- Note: Check if whiptail is different of fbwhiptail in clearing screen. As of now every clear seems to be removed, still whiptail clears previous console output
- When no OS' /boot can be mounted, do not try to TPM reset (will fail)

- seal-hotpkey is not working properly
- setting disk unlock key asks for TPM ownership passphrase (sealing in NV requires ownership, but text is misleading user as if reowning TPM)
  - We should cache input, feed tpm behind the scene and wipe passphrase and state clearly that this is TPM disk unlock kye passphrase.
- primary key from TPM2 is invalid most of the time from kexec-select-boot and verifying global hashes but is setuped correctly at disk unlock key setup
- would be nice to take advantage of bash function tracing to understand where we are for debugging purposes, code takes ash in consideration only
- tpmr says it implements nv calls but actually doesn't. Removing those falsely wrapped functions would help.
  - Implementing them would be better
- REVIEW TODOS IN CODE
- READD CIRCLECI CONFIG

Current state:
- TPM unseal works without disk unlock key and generates TOTP properly (was missing die condition at unseal to not produce always good TOTP even if invalid)
- TPM disk encryption key fails. Hypothesis is that sealing with USB drivers loaded and measures in inconsistent with sealed with/without.
 - TPM disk unsealing happens without USB modules being loaded in non-HOTP setup. This fails.

- Current tests are with fbwhiptail (no clear called so having traces on command line of what happens)
 - Testing with HOTP implementation for sealing/unsealing since that forces USB module loads on each boot to remove this from failing possibilities
2023-03-08 12:45:43 -05:00
..
busybox.config Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
coreboot-kgpe-d16_server-whiptail.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-kgpe-d16_server.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-kgpe-d16_workstation-usb_keyboard.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-kgpe-d16_workstation.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_13v2.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_13v4.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_14.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_15v3.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_15v4.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_l1um.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_mini_v2.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-librem_mini.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-qemu-fbwhiptail-tpm1-hotp.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-qemu-fbwhiptail.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
coreboot-qemu-tpm1.config qemu-coreboot-tpm boards: usage optimizations 2023-01-11 15:38:30 -05:00
coreboot-qemu-tpm2.config Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
coreboot-qemu.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-t420-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-t420.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-t430-legacy-flash.config xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
coreboot-t430-legacy.config xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
coreboot-t430-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-t440p.config Add intel_iommu=igfx_off to T440p Coreboot kernel parameters 2023-01-18 15:27:45 -05:00
coreboot-t520-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-t530-dgpu-hotp-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-t530-dgpu-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-t530-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-talos-2.config Talos II : add TPM module as under 2207bbcccb 2022-11-24 10:23:29 -05:00
coreboot-w530-dgpu-K1000m-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-w530-dgpu-K2000m-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-w530-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-x220-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-x220.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-x230-legacy-flash.config xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
coreboot-x230-legacy.config xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
coreboot-x230-maximized-fhd_edp.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
coreboot-x230-maximized.config xx20/xx30 maximized coreboot configs: Fix CONFIG_CBFS_SIZE to reflect ifd.bin's BIOS regions. 2023-02-09 12:28:59 -05:00
linux-kgpe-d16_server-whiptail.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
linux-kgpe-d16_server.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
linux-kgpe-d16_workstation.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
linux-librem_common.config Reduced defconfig 2022-11-05 21:07:51 +03:00
linux-linuxboot.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
linux-qemu.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
linux-t440p.config t440p: disable NVMe support in Linux kernel 2023-01-23 22:28:32 -05:00
linux-talos-2_server.config Enable Infineon TPM1 for Talos-2 boards 2022-09-01 00:28:16 +03:00
linux-talos-2_workstation.config Enable Infineon TPM1 for Talos-2 boards 2022-09-01 00:28:16 +03:00
linux-x230-flash.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
linux-x230-legacy.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00
linux-x230-maximized.config Expand @VAR@ placeholders in configuration files 2022-08-25 13:58:40 +03:00