Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2024 17:06:58 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Justin Hibbits <jhibbits@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: kldload tpm: Fail to load: "link_elf_obj: symbol tpm_bus_driver undefined"
Message-ID:  <CAFDf7UKrgZ6G_%2BV6Os94SyyCrtD71YY73OLEzQyiWmwhpT1EgA@mail.gmail.com>
In-Reply-To: <20240517085754.11ab519e@ralga.knownspace>
References:  <CAFDf7UKYB8Z0FW-0F3nTkTe3F0SrnJsmnce8p%2BwagFuuqUW-5w@mail.gmail.com> <20240517085754.11ab519e@ralga.knownspace>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003ec15b0618a88b65
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Working fine!

Thanks for fast fix.

Justin Hibbits <jhibbits@freebsd.org> escreveu (sexta, 17/05/2024 =C3=A0(s)
13:57):

> On Fri, 17 May 2024 11:09:00 +0100
> Nuno Teixeira <eduardo@freebsd.org> wrote:
>
> > 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,
>
> Sorry for the breakage.  Should be fixed by 62adeb92.
>
> - Justin
>


--=20
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

--0000000000003ec15b0618a88b65
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Working fine!</div><div><br></div><div>Thanks for fas=
t fix.<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">Justin Hibbits &lt;<a href=3D"mailto:jhibbits@freebsd.org">=
jhibbits@freebsd.org</a>&gt; escreveu (sexta, 17/05/2024 =C3=A0(s) 13:57):<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 17 May 2=
024 11:09:00 +0100<br>
Nuno Teixeira &lt;<a href=3D"mailto:eduardo@freebsd.org" target=3D"_blank">=
eduardo@freebsd.org</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt; <br>
&gt; tpm kernel module fails to load starting on main from May 9.<br>
&gt; Updated today and same error:<br>
&gt; <br>
&gt; ```<br>
&gt; $ kldload tpm<br>
&gt; kldload: an error occurred while loading module tpm. Please check<br>
&gt; dmesg(8) for more details.<br>
&gt; <br>
&gt; (dmesg)<br>
&gt; link_elf_obj: symbol tpm_bus_driver undefined<br>
&gt; linker_load_file: /boot/kernel/tpm.ko - unsupported file type<br>
&gt; ```<br>
&gt; <br>
&gt; I believe it is related to:<br>
&gt; <br>
&gt; ---<br>
&gt; commit 10eea8dc8c4f3d2a3495e7fb08837d91adf465e9<br>
&gt; Author: Justin Hibbits &lt;jhibbits@FreeBSD.org&gt;<br>
&gt; Date:=C2=A0 =C2=A0Thu May 9 15:27:35 2024 -0400<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0tpm20: Support partial reads<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0Summary:<br>
&gt;=C2=A0 =C2=A0 =C2=A0In some cases the TPM utilities may read only a par=
tial block,<br>
&gt; instead of a full block.=C2=A0 If a new command starts while in the mi=
ddle<br>
&gt; of a read it may cause the TPM to go catatonic and no longer respond<b=
r>
&gt; to SPI.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0Reviewed by:=C2=A0 =C2=A0 kd<br>
&gt;=C2=A0 =C2=A0 =C2=A0Obtained from:=C2=A0 Juniper Networks, Inc.<br>
&gt;=C2=A0 =C2=A0 =C2=A0Differential Revision: <a href=3D"https://reviews.f=
reebsd.org/D45140" rel=3D"noreferrer" target=3D"_blank">https://reviews.fre=
ebsd.org/D45140</a><br>
&gt; ---<br>
&gt; <br>
&gt; I use tpm for bhyve/Win11.<br>
&gt; <br>
&gt; Thanks,<br>
<br>
Sorry for the breakage.=C2=A0 Should be fixed by 62adeb92.<br>
<br>
- Justin<br>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div><div><font =
color=3D"#888888">
FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h=
ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr=
eeBSD.org</a><br></font></div></div></div></div>

--0000000000003ec15b0618a88b65--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKrgZ6G_%2BV6Os94SyyCrtD71YY73OLEzQyiWmwhpT1EgA>