Commit Graph

1613 Commits (9410292dd114fcccf18281cfd8de237a720abc0d)

Author SHA1 Message Date
Marco Oliverio 9410292dd1 tools: rename qemu64-tpm.sh in the more general qemu.sh 2024-04-29 09:53:49 +02:00
Marco Oliverio db2b538b35 tools: qemu64-tpm.sh: make TPM optional 2024-04-29 09:53:49 +02:00
Marco Oliverio 4e99075e85 x86_fsp: remove unused configuration 2024-04-29 09:53:49 +02:00
Marco Oliverio ac1465ed20 x86_fsp: qemu: move fsp qemu script in tools/x86_fsp/qemu folder 2024-04-29 09:53:49 +02:00
Marco Oliverio d072f447e6 x86_fsp: qemu: remove redundant and unused qemu launch scripts 2024-04-29 09:53:49 +02:00
Marco Oliverio ccf093dd0e .gitignore: x86_fsp: add TPM key and intermediate files 2024-04-29 09:53:49 +02:00
Marco Oliverio 09a2c216e8 fsp: tgl: staggering GPIOs configuration 2024-04-29 09:53:49 +02:00
Marco Oliverio af90fd7daa fsp: tgl: disable T2 and T3 GPIOs configuration
To mirror SBL configuration
2024-04-29 09:53:49 +02:00
Marco Oliverio e6cf0b0b5f fsp: tgl: remove duplicate GPIO 2024-04-29 09:53:49 +02:00
Marco Oliverio a3cba9e9fd fsp: tgl: add DEBUG_GPIO capabilities 2024-04-29 09:53:49 +02:00
Marco Oliverio 1959f194a7 fsp: add pre_mem and pre_silicon cbs() 2024-04-29 09:53:49 +02:00
Marco Oliverio 0b5f7180cf fsp: mk: remove --print-gc-sections flag to reduce build output 2024-04-29 09:53:49 +02:00
Marco Oliverio fc08eac35d tpm: fix scan-build not null argument 2024-04-29 09:53:49 +02:00
Marco Oliverio 30ed1fae80 x86: fsp: tgl: enable usb 2024-04-29 09:53:49 +02:00
Marco Oliverio 41efa2920c pci: fix: add \r to new line in pci_dump 2024-04-29 09:53:49 +02:00
Marco Oliverio 9a37b85d67 pci: fsp: update doxygen comments 2024-04-29 09:53:49 +02:00
Marco Oliverio 71a43064f6 pci: stage2: uniform parameter-less function prototype 2024-04-29 09:53:49 +02:00
Marco Oliverio a0e61f3a58 x86: fsp: fix: remove unused variable 2024-04-29 09:53:49 +02:00
Marco Oliverio b82b435a8d x86: paging: fix typo 2024-04-29 09:53:49 +02:00
Marco Oliverio 91bc67cd6c fsp: add comment on stage2_parameters storage cycle 2024-04-29 09:53:49 +02:00
Marco Oliverio 0aa886783f fsp: support stage2_get_parameters() helper 2024-04-29 09:53:49 +02:00
Marco Oliverio e96babef24 refactor: rename stage1.{h,c} in stage2_params.{h,c} 2024-04-29 09:53:49 +02:00
Marco Oliverio 7ce14a242a pci: dump pci bus, lspci format 2024-04-29 09:53:49 +02:00
Marco Oliverio 0e334386a6 fsp: minor FSP UPD settings adjustments 2024-04-29 09:53:49 +02:00
Marco Oliverio a96b738e28 ahci: allow ATA_SEC0 on qemu target 2024-04-29 09:53:49 +02:00
Marco Oliverio 0aac8e2423 pci: add device present check in pcie_retraining_link() 2024-04-29 09:53:49 +02:00
Marco Oliverio 587c7450ac x86: fsp: add TPM self test 2024-04-29 09:53:49 +02:00
Marco Oliverio 37fb0aaa2a tpm: include self test wrapper 2024-04-29 09:53:49 +02:00
Marco Oliverio e784c75aef ahci: move MASTER_PASSWORD in options.mk as ATA_MASTER_PASSWORD 2024-04-29 09:53:49 +02:00
Marco Oliverio 8dc8c8ca22 fsp: tgl: retraing 0.6.0 link after SiliconInit 2024-04-29 09:53:49 +02:00
Marco Oliverio ceb7e65fd9 fsp: update SiliconInit parameters 2024-04-29 09:53:49 +02:00
Marco Oliverio 42d367ab97 fsp: update MemoryInit parameters 2024-04-29 09:53:49 +02:00
Marco Oliverio c94e691694 fsp: version bump to 0A.00.7E build 70 2024-04-29 09:53:49 +02:00
Marco Oliverio c33c85ae78 fsp: support printing of FSP Image Revision 2024-04-29 09:53:49 +02:00
Marco Oliverio 7a72bc719b ata: support master password in ata_security_erase_unit() 2024-04-29 09:53:49 +02:00
Marco Oliverio 37e8d7d03a ahci: support WOLFBOOT_ATA_DISABLE_USER_PASSWORD compile define
if defined, wolfBoot disables the user password by using the master key and
panic.
2024-04-29 09:53:49 +02:00
Marco Oliverio d7f509bdc4 ata: fix: forward master parameter 2024-04-29 09:53:49 +02:00
Marco Oliverio d0e6a7e990 x86_fsp: enable linker sections garbage collection
-ffunction-sections -fdata-sections compiles every function/data in its own
section, --gc-sections will remove the one that are unused.

Before:
$ ./tools/x86_fsp/print_flash_map.py
Name:                    Address:                    Size:
.stage2              0xffa00000           0x52cac
.policy              0xffa52cac           0x204
.config              0xffa52eb0           0x220
.ucode_update0       0xffd90000           0x1b000
.fit_table           0xffe00000           0x63000
.km                  0xffe80000           0x1000
.bpm                 0xffe90000           0x1000
.fsp_s               0xffea0000           0x5a200
.bootloader          0xfff00000           0x4f600
.iplt                0xfff4f600           0x0
.fsp_t               0xfff59000           0x7000
.fsp_m               0xfff60000           0x9f000
.jmpto32             0xfffffe00           0x158
.fit_table_tr        0xffffffc0           0x8
.reset_vector        0xffffffec           0x14
total sum: 0x222a44 (2186 KB)

After:
$ ./tools/x86_fsp/print_flash_map.py
Name:                    Address:                    Size:
.stage2              0xffa00000           0x2b24c
.policy              0xffa2b24c           0x204
.config              0xffa2b450           0x220
.ucode_update0       0xffd90000           0x1b000
.fit_table           0xffe00000           0x63000
.km                  0xffe80000           0x1000
.bpm                 0xffe90000           0x1000
.fsp_s               0xffea0000           0x5a200
.bootloader          0xfff00000           0x20900
.iplt                0xfff20900           0x0
.fsp_t               0xfff59000           0x7000
.fsp_m               0xfff60000           0x9f000
.jmpto32             0xfffffe00           0x158
.fit_table_tr        0xffffffc0           0x8
.reset_vector        0xffffffec           0x14
total sum: 0x1cc2e4 (1840 KB)
2024-04-29 09:53:49 +02:00
Marco Oliverio 94733b564c arch.mk: x86_fsp: be more precise with symbol parsing 2024-04-29 09:53:49 +02:00
Marco Oliverio 1374f79c76 x86_fsp: linker: remove unused .eh_frame from linking 2024-04-29 09:53:49 +02:00
Marco Oliverio fe5d1a98c7 x86_fsp: linker: add KEEP to sections that may be removed by gc 2024-04-29 09:53:49 +02:00
Marco Oliverio 22b1f3efa1 kontron: fix WOLFBOOT load address to not touch memory <1408MB 2024-04-29 09:53:49 +02:00
Marco Oliverio 77211cb247 x86_fsp: add tool to print flash map 2024-04-29 09:53:49 +02:00
Marco Oliverio 160e402fad x86_fsp: fix: printf wrong parameter 2024-04-29 09:53:49 +02:00
Marco Oliverio 311ed5fa22 sata_get_random_base64: fix: don't "overflow" the '\0' terminator
Also don't encode the base64 string with an ending newline.

The '\0' was stored just after out_size bytes in the output buffer, so it wasn't
stored on the TPM NV memory and it cause issues with functions expecting
a null terminated string (ata_security_*).
2024-04-29 09:53:49 +02:00
Marco Oliverio 4b957bd529 ahci: sata_disable_password() function
The function is normally excluded from the compilation but it's handy when
debugging hard disk security functions
2024-04-29 09:53:49 +02:00
Marco Oliverio 85d6437433 ata: enable to compare against master password 2024-04-29 09:53:49 +02:00
Marco Oliverio 992bb4c13d ata: support aync ATA command operation
only one operation at the time at driver level is allowed.
2024-04-29 09:53:49 +02:00
Marco Oliverio 604ec62129 ahci: minor fixes 2024-04-29 09:53:49 +02:00
Marco Oliverio e90ddcaadc ata: add missing prototypes 2024-04-29 09:53:49 +02:00