Skip to content

Measured boot for KGPE-D16 not working #740

Description

@Tonux599

Setting 'CONFIG_MEASURED_BOOT=y' in this boards config causes it to fail to build with the error below. Currently with a compatible TPM module only PCRs 4 and 7 are populated meaning that the boot block, ROM stage, RAM stage and the kernel/initrd are not measured and as such, the TPMTOTP will not reflect any changes.

tail /home/user/tonux599-heads/build/log/coreboot.log
-----
    CC         ramstage/southbridge/amd/sb700/pci.o
    CC         ramstage/southbridge/amd/sb700/ramtop.o
    CC         ramstage/southbridge/amd/sb700/reset.o
    CC         ramstage/southbridge/amd/sb700/sata.o
    CC         ramstage/southbridge/amd/sb700/sb700.o
    CC         ramstage/southbridge/amd/sb700/sm.o
    CC         ramstage/southbridge/amd/sb700/smbus.o
    CC         ramstage/southbridge/amd/sb700/spi.o
    CC         ramstage/southbridge/amd/sb700/usb.o
    CC         ramstage/security/tpm/tss/tcg-2.0/tss.o
src/security/tpm/tss/tcg-2.0/tss.c:309:10: error: conflicting types for 'tlcl_define_space'
 uint32_t tlcl_define_space(uint32_t space_index, size_t space_size)
          ^~~~~~~~~~~~~~~~~
In file included from src/security/tpm/tss/tcg-2.0/tss_structures.h:18,
                 from src/security/tpm/tss/tcg-2.0/tss.c:15:
src/security/tpm/tss.h:65:10: note: previous declaration of 'tlcl_define_space' was here
 uint32_t tlcl_define_space(uint32_t index, uint32_t perm, uint32_t size);
          ^~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:356: kgpe-d16-workstation-nouveau/ramstage/security/tpm/tss/tcg-2.0/tss.o] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions