Commit Graph

1748 Commits (2ec2bcdf7938fb54029ff477de7c938cb6d0cd6c)

Author SHA1 Message Date
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
Marco Oliverio 2d67742be9 x86: ahci: make freeze optional in sata_unlock_disk 2024-04-29 09:53:49 +02:00
Marco Oliverio b6217444bd x86: paging: increase Page Table Page to 512 2024-04-29 09:53:49 +02:00
Marco Oliverio 70024c4e2a fsp: tgl: flash BIOS read/write protection
before booting into the tactical image the FLASH will be read/write protected
2024-04-29 09:53:49 +02:00
Marco Oliverio 62c938f99d x86: tgl: remove binary FSP_S upd parameters
The parameters are configured in fsp_set_silicon_cfg
2024-04-29 09:53:49 +02:00
Marco Oliverio ffb8653f57 tgl: kontron_vx3060_S2 GPIOs configuration 2024-04-29 09:53:49 +02:00
Marco Oliverio 24067beca5 tgl: improved GPIO configuration 2024-04-29 09:53:49 +02:00
Marco Oliverio 4bbe43e222 x86: support cpu exceptions 2024-04-29 09:53:49 +02:00
Marco Oliverio 0833c4b1bf fsp: stage1: use temporary parameters struct in pre-mem stage 2024-04-29 09:53:49 +02:00
David Garske 9126150613 Fix for NXP i.MX RT flash configuration to not force .flash_config when building wolfBoot as library. ZD 17850. 2024-04-29 09:37:32 +02:00
Daniel Fedai Larsen d4df974efb Disable DCACHE when using PKA for CI tests 2024-04-29 07:49:22 +02:00
Daniel Fedai Larsen 0b703f716e Add PKA=1 CI test builds for RT10xx platforms 2024-04-29 07:24:13 +02:00
David Garske 30870114eb
Merge pull request #440 from MulattoKid/MIMXRT1061CVJ5B
Add support for MIMXRT1061CVJ5B
2024-04-26 10:27:24 -07:00
Daniel Fedai Larsen cd92a9591f Fix compilation issues when using PKA=1 2024-04-26 07:36:55 +02:00
Hideki Miyazaki 7b99e7b598 fix link to the figure in Readme 2024-04-26 07:40:35 +09:00
Hideki Miyazaki 7725cc1a8b initial support Renesas RZ with RSIP 2024-04-26 07:28:07 +09:00
Marco Oliverio d89b44e0f1 x86: use hlt instruction in panic() 2024-04-24 17:07:35 +02:00
Marco Oliverio fdcb83fe38 x86_fsp: scripts: print output of QEMU during test 2024-04-24 17:07:35 +02:00
Marco Oliverio 84be0dd27f x86_fsp: update qemu script to support GPT labels 2024-04-24 17:07:35 +02:00
Marco Oliverio e7a626223a gpt: support partition label 2024-04-24 17:07:35 +02:00
Marco Oliverio 46b3d8249b test_qemu.sh: support rebuild-only testing 2024-04-24 17:07:35 +02:00
Marco Oliverio 97b3beeba8 ahci: allow to delete sealed secret on error 2024-04-24 17:07:33 +02:00
Marco Oliverio fd457e51a7 x86: fsp: move stage1 to stage2 related function in a separate file 2024-04-24 10:50:50 +02:00
Marco Oliverio bc1e40b0a6 x86: ata: add check on drive number 2024-04-24 10:50:50 +02:00