heads/boards
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
..
kgpe-d16_server boards/* : Add/uniformize missing CONFIG_BOARD_NAME for coreboot boards 2022-01-28 14:17:22 -05:00
kgpe-d16_server-whiptail boards/* : Add/uniformize missing CONFIG_BOARD_NAME for coreboot boards 2022-01-28 14:17:22 -05:00
kgpe-d16_workstation boards/* : Add/uniformize missing CONFIG_BOARD_NAME for coreboot boards 2022-01-28 14:17:22 -05:00
kgpe-d16_workstation-usb_keyboard boards/* : Add/uniformize missing CONFIG_BOARD_NAME for coreboot boards 2022-01-28 14:17:22 -05:00
leopard Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
librem_13v2 board/librem_*: Update to coreboot 4.17 2022-09-12 13:22:00 -06:00
librem_13v4 board/librem_*: Update to coreboot 4.17 2022-09-12 13:22:00 -06:00
librem_14 board/librem_*: Update to coreboot 4.17 2022-09-12 13:22:00 -06:00
librem_15v3 board/librem_*: Update to coreboot 4.17 2022-09-12 13:22:00 -06:00
librem_15v4 board/librem_*: Update to coreboot 4.17 2022-09-12 13:22:00 -06:00
librem_l1um board/librem_*: Switch to cryptsetup2 2022-01-27 16:40:47 -06:00
librem_mini board/librem_*: Update to coreboot 4.17 2022-09-12 13:22:00 -06:00
librem_mini_v2 board/librem_*: Update to coreboot 4.17 2022-09-12 13:22:00 -06:00
qemu-coreboot Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
qemu-coreboot-fbwhiptail Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
qemu-coreboot-fbwhiptail-tpm1 Add TRACE function tracing function to output on console when enabled 2023-02-20 11:44:52 -05:00
qemu-coreboot-fbwhiptail-tpm1-hotp Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
qemu-coreboot-fbwhiptail-tpm2 Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
qemu-coreboot-fbwhiptail-tpm2-hotp Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
qemu-coreboot-whiptail-tpm1 Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
qemu-coreboot-whiptail-tpm1-hotp Add TRACE function tracing function to output on console when enabled 2023-02-20 11:44:52 -05:00
qemu-coreboot-whiptail-tpm2 Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
qemu-coreboot-whiptail-tpm2-hotp Addition of qemu-(fb)whiptail-tpm2(-hotp) boards 2023-03-08 12:45:43 -05:00
qemu-linuxboot Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
r630 Support Multiple Kernel Options (#805) 2020-08-20 19:26:48 -04:00
s2600wf Support Multiple Kernel Options (#805) 2020-08-20 19:26:48 -04:00
t420 xx20 and xx30: split kernel configs to legacy and maximized and board configs point to them 2022-06-10 09:52:07 -04:00
t420-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
t420-maximized xx20 and xx30: split kernel configs to legacy and maximized and board configs point to them 2022-06-10 09:52:07 -04:00
t430-hotp-legacy xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
t430-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
t430-legacy xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
t430-legacy-flash xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
t430-maximized Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
t440p-hotp-maximized Add Heads config for the T440p (maximized/hotp-maximized) 2023-01-18 15:27:45 -05:00
t440p-maximized Make T440p Coreboot build depend on blob files 2023-02-25 19:53:47 -05:00
t520-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
t520-maximized xx20 and xx30: split kernel configs to legacy and maximized and board configs point to them 2022-06-10 09:52:07 -04:00
t530-dgpu-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
t530-dgpu-maximized xx30 - pack cryptsetup2 instead of cryptsetup 2022-09-16 12:51:38 -04:00
t530-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
t530-maximized xx30 - pack cryptsetup2 instead of cryptsetup 2022-09-16 12:51:38 -04:00
talos-2_server Merge pull request #1242 from tlaurion/talos_cryptsetup2 2022-11-11 16:19:42 -05:00
talos-2_workstation Merge pull request #1242 from tlaurion/talos_cryptsetup2 2022-11-11 16:19:42 -05:00
tioga Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
w530-dgpu-K1000m-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
w530-dgpu-K1000m-maximized xx30 - pack cryptsetup2 instead of cryptsetup 2022-09-16 12:51:38 -04:00
w530-dgpu-K2000m-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
w530-dgpu-K2000m-maximized xx30 - pack cryptsetup2 instead of cryptsetup 2022-09-16 12:51:38 -04:00
w530-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
w530-maximized xx30 - pack cryptsetup2 instead of cryptsetup 2022-09-16 12:51:38 -04:00
winterfell Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
x220 xx20 and xx30: split kernel configs to legacy and maximized and board configs point to them 2022-06-10 09:52:07 -04:00
x220-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
x220-maximized xx20 and xx30: split kernel configs to legacy and maximized and board configs point to them 2022-06-10 09:52:07 -04:00
x230-hotp-legacy xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
x230-hotp-maximized remove coreboot-hotp* duplicates, have boards configs point to non-hotp maximized equivalents 2023-02-09 12:34:33 -05:00
x230-hotp-maximized_usb-kb xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
x230-hotp-maximized-fhd_edp Add x230-maximized-fhd_edp and x230-hotp-maximized-fhd_edp boards 2023-01-31 09:58:43 -05:00
x230-legacy xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
x230-legacy-flash xx30: rename legacy boards names, remove coreboot config duplicates 2023-02-09 12:50:56 -05:00
x230-maximized Introduce $(board_build) variable 2022-08-25 20:55:35 +03:00
x230-maximized-fhd_edp Add x230-maximized-fhd_edp and x230-hotp-maximized-fhd_edp boards 2023-01-31 09:58:43 -05:00