Am 27. Januar 2022 16:06:03 MEZ schrieb Simon Glass <s...@chromium.org>: >Hi Ilias, > >On Mon, 15 Nov 2021 at 04:11, Ilias Apalodimas ><ilias.apalodi...@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.apalodi...@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 <s...@chromium.org> >> > > Signed-off-by: Ilias Apalodimas <ilias.apalodi...@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.schucha...@canonical.com/T/#u >> > Regards, >> > Simon >> >> >> Thanks >> /Ilias