public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: Hamit Can Karaca <hckaraca99@gmail.com>, devel@edk2.groups.io
Subject: Re: [edk2-devel] TPM2 NVM WRITE IN EDK2
Date: Wed, 15 Nov 2023 14:15:26 +0100	[thread overview]
Message-ID: <c8026074-0db1-2c5a-8e3b-01358c64e968@redhat.com> (raw)
In-Reply-To: <2967.1700049785284722966@groups.io>

On 11/15/23 13:03, Hamit Can Karaca wrote:
> Thanks for your Laszlo,
> 
> I am using the functions that are available in EDK2 TpmCommandLib. I am
> not sure where I fail because all the structs that I use are those which
> are given in EDK2. I will add my code below. It would be very nice If
> you could check my code. If you have examples where you use
> Tpm2DefineSpace and Tpm2NvWrite functions, can you please share with me?

Sorry, I have zero TPM programming experience; I've only checked the TCG
specs for responding earlier...

I suggest adding DEBUG macro invocations all around the problematic code
path, and narrowing down the issue as much as possible. You might want
to test on a different TPM chip as well (different physical board, or
maybe try swtpm with QEMU / OVMF).

Laszlo



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111275): https://edk2.groups.io/g/devel/message/111275
Mute This Topic: https://groups.io/mt/102510897/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/xyzzy [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



      reply	other threads:[~2023-11-15 13:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-09 10:39 [edk2-devel] TPM2 NVM WRITE IN EDK2 Hamit Can Karaca
2023-11-13 12:57 ` Laszlo Ersek
2023-11-15 12:03   ` Hamit Can Karaca
2023-11-15 13:15     ` Laszlo Ersek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8026074-0db1-2c5a-8e3b-01358c64e968@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox