[PATCH 7/8 v7] doc: qemu: Add instructions for swtpm usage

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Jan 27 23:08:29 CET 2022


Am 27. Januar 2022 16:06:03 MEZ schrieb Simon Glass <sjg at chromium.org>:
>Hi Ilias,
>
>On Mon, 15 Nov 2021 at 04:11, Ilias Apalodimas
><ilias.apalodimas at linaro.org> wrote:
>>
>> Hi Simon,
>>
>> On Sat, Nov 13, 2021 at 11:14:27AM -0700, Simon Glass wrote:
>> > Hi Ilias,
>> >
>> > On Tue, 9 Nov 2021 at 00:02, Ilias Apalodimas
>> > <ilias.apalodimas at linaro.org> wrote:
>> > >
>> > > A previous patch added support for an mmio based TPM.
>> > > Add an example in QEMU on it's usage
>> > >
>> > > Reviewed-by: Simon Glass <sjg at chromium.org>
>> > > Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>> > > ---
>> > >  doc/board/emulation/qemu-arm.rst | 25 +++++++++++++++++++++++++
>> > >  1 file changed, 25 insertions(+)
>> >
>> > How would I run the test that need this TPM emulator? Remember I was
>> > going to look at what is involved to enhance U-Boot's emulator.
>> >
>>
>>
>> Heinrich has already sent patches adding this to the docker CI [1].  Is
>> that clear enough ?
>
>Yes thanks.

The sandbox could communicate to swtpm via a socket like QEMU does or call libtpm directly. You may want to look at the QEMU code first.

Best regards

Heinrich




>
>
>- Simon
>
>
>>
>>
>> [1] https://lore.kernel.org/u-boot/20211115101106.36479-1-heinrich.schuchardt@canonical.com/T/#u
>> > Regards,
>> > Simon
>>
>>
>> Thanks
>> /Ilias



More information about the U-Boot mailing list