Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2024 11:09:00 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Cc:        Justin Hibbits <jhibbits@freebsd.org>
Subject:   kldload tpm: Fail to load: "link_elf_obj: symbol tpm_bus_driver undefined"
Message-ID:  <CAFDf7UKYB8Z0FW-0F3nTkTe3F0SrnJsmnce8p%2BwagFuuqUW-5w@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello,

tpm kernel module fails to load starting on main from May 9.
Updated today and same error:

```
$ kldload tpm
kldload: an error occurred while loading module tpm. Please check dmesg(8)
for more details.

(dmesg)
link_elf_obj: symbol tpm_bus_driver undefined
linker_load_file: /boot/kernel/tpm.ko - unsupported file type
```

I believe it is related to:

---
commit 10eea8dc8c4f3d2a3495e7fb08837d91adf465e9
Author: Justin Hibbits <jhibbits@FreeBSD.org>
Date:   Thu May 9 15:27:35 2024 -0400

    tpm20: Support partial reads

    Summary:
    In some cases the TPM utilities may read only a partial block, instead
    of a full block.  If a new command starts while in the middle of a read
    it may cause the TPM to go catatonic and no longer respond to SPI.

    Reviewed by:    kd
    Obtained from:  Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D45140
---

I use tpm for bhyve/Win11.

Thanks,
-- 
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

[-- Attachment #2 --]
<div dir="ltr"><div>Hello,</div><div><br></div><div>tpm kernel module fails to load starting on main from May 9.</div><div>Updated today and same error:</div><div><br></div><div>```<br></div><div>$ kldload tpm</div><div>kldload: an error occurred while loading module tpm. Please check dmesg(8) for more details.</div><div><br></div><div>(dmesg)</div><div>link_elf_obj: symbol tpm_bus_driver undefined<br>linker_load_file: /boot/kernel/tpm.ko - unsupported file type</div><div>```</div><div><br></div><div>I believe it is related to:</div><div><br></div><div>---<br></div><div>commit 10eea8dc8c4f3d2a3495e7fb08837d91adf465e9<br>Author: Justin Hibbits &lt;jhibbits@FreeBSD.org&gt;<br>Date:   Thu May 9 15:27:35 2024 -0400<br><br>    tpm20: Support partial reads<br><br>    Summary:<br>    In some cases the TPM utilities may read only a partial block, instead<br>    of a full block.  If a new command starts while in the middle of a read<br>    it may cause the TPM to go catatonic and no longer respond to SPI.<br><br>    Reviewed by:    kd<br>    Obtained from:  Juniper Networks, Inc.<br>    Differential Revision: <a href="https://reviews.freebsd.org/D45140">https://reviews.freebsd.org/D45140</a></div><div>---</div><div><br></div><div>I use tpm for bhyve/Win11.</div><div><br></div><div>Thanks,<br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font color="#888888">Nuno Teixeira</font></div><div><div><font color="#888888">
FreeBSD UNIX:  &lt;eduardo@FreeBSD.org&gt;   Web:  <a href="https://FreeBSD.org" rel="noreferrer" target="_blank">https://FreeBSD.org</a><br></font></div></div></div></div></div>;
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKYB8Z0FW-0F3nTkTe3F0SrnJsmnce8p%2BwagFuuqUW-5w>