All of lore.kernel.org
 help / color / mirror / Atom feed
* How to enable building tpm.mod into core.img ?
@ 2020-08-12  0:37 Hanson Char
  2020-08-12  1:38 ` Hanson Char
  0 siblings, 1 reply; 2+ messages in thread
From: Hanson Char @ 2020-08-12  0:37 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

Hi,

The tpm module included in grub 2.04 doesn't seem to be installed/loaded by
default.  How can I configure it such that it can be built and included
into the core.img?

Or is the tpm module ready for general use yet?

Regards,
Hanson

[-- Attachment #2: Type: text/html, Size: 347 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to enable building tpm.mod into core.img ?
  2020-08-12  0:37 How to enable building tpm.mod into core.img ? Hanson Char
@ 2020-08-12  1:38 ` Hanson Char
  0 siblings, 0 replies; 2+ messages in thread
From: Hanson Char @ 2020-08-12  1:38 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]

Figured it out:

$ ./configure --with-platform=efi --target=x86_64 --prefix=/usr
$ make
$ sudo make install
$ sudo grub-install --modules=tpm

Reboot, then

$ tpm2_pcrread sha256

sha256:
> 0 : 0x900FD2C82E3E2B314AE76C88747BF60B9BC1E6598C2F555E9345F310CCD04449
> 1 : 0xE2ACC183A24C4A4BB4215FFCCEA87BC196956CA0B5FCD216EBD8051988DD8BC7
> 2 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969
> 3 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969
> 4 : 0x4E17504B6469280DBC0182ED50ADE241870AC2DB84061B698B2916F46D09CD47
> 5 : 0x747D7B26332C936176DA03CA20FE39F7C771A8531AF7237967D366FACDF60198
> 6 : 0x3D458CFE55CC03EA1F443F1562BEEC8DF51C75E14A9FCF9A7234A13F198E7969
> 7 : 0x65CAF8DD1E0EA7A6347B635D2B379C93B9A1351EDC2AFC3ECDA700E534EB3068
> 8 : 0xC52158AD666784746FCA3DA5F82DB9102EEBA555870218BEDD12911587A1D618
> 9 : 0x807D6E0F5E48441CD163AE8AB963E96295A99869BA99BCA91A650A0AE2DABF0F
> 10: 0x6F8DC9F3CDA1247B4CC05466F6C8396CEA0A66FC9D104D3E83CF78A7BCC3ADA8

...





On Tue, Aug 11, 2020 at 5:37 PM Hanson Char <hanson.char@gmail.com> wrote:

> Hi,
>
> The tpm module included in grub 2.04 doesn't seem to be installed/loaded
> by default.  How can I configure it such that it can be built and included
> into the core.img?
>
> Or is the tpm module ready for general use yet?
>
> Regards,
> Hanson
>

[-- Attachment #2: Type: text/html, Size: 2330 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-12  1:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12  0:37 How to enable building tpm.mod into core.img ? Hanson Char
2020-08-12  1:38 ` Hanson Char

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.