Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Nov 2024 23:41:23 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: No valid device tree blob found!
Message-ID:  <132ca9158817a4706d1b9e78c3567973@Leidinger.net>
In-Reply-To: <CANCZdfq%2BUuP7Ya69jz5jnoBB1Cg2Y-sHq1g%2BixsmEvjU7cSipA@mail.gmail.com>
References:  <8cf9adb0e7ca6340460c695ffd64a0df@Leidinger.net> <896b9ce404ffcb126dcdd6008583b117@Leidinger.net> <CANCZdfr4qGgyt=fN4%2BJiFytthjseNo_2B0LVXHZNH93Y3vqEVg@mail.gmail.com> <a007694a811d1daa48703236b3eba007@Leidinger.net> <CANCZdfq%2BUuP7Ya69jz5jnoBB1Cg2Y-sHq1g%2BixsmEvjU7cSipA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_4d9f453636eef0c498b23b37525abefe
Content-Type: multipart/alternative;
 boundary="=_9b537057f29aedb8651e4dedd0ab2b26"

--=_9b537057f29aedb8651e4dedd0ab2b26
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8;
 format=flowed

Am 2024-11-07 20:59, schrieb Warner Losh:

> On Wed, Nov 6, 2024 at 3:41 AM Alexander Leidinger 
> <Alexander@leidinger.net> wrote:
> 
> Am 2024-11-02 17:08, schrieb Warner Losh:
> 
> On Sat, Nov 2, 2024, 10:03 AM Alexander Leidinger 
> <Alexander@leidinger.net> wrote: Am 2024-10-30 22:11, schrieb Alexander 
> Leidinger:
> 
>> WARNING! Trying to fire up the kernel, but no device tree blob found!
> 
> For anyone interested, I opened
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282493 for this.
> 
> Yea. This is a hang or a bad console. The warning is lame and 
> misleading.
> 
> Can you bisect?

Found it.

# git bisect bad
c87b3f0006be9ac5813f1ff636f18c9b4a41b08e is the first bad commit
commit c87b3f0006be9ac5813f1ff636f18c9b4a41b08e (HEAD)
Author: Warner Losh <imp@FreeBSD.org>
Date:   Mon Oct 14 15:58:10 2024 -0600

     uart: uart_getenv: check for NULL class last, not first

     This allows one to specify dt:XXXX when the default class isn't 
compiled
     into the kernel. It's not an error to not have a class until we're 
done
     parsing the spec, so defer checking until then.

     Sponsored by:           Netflix
     Reviewed by:            adrian, andrew, markj
     Differential Revision:  https://reviews.freebsd.org/D47078

  sys/dev/uart/uart_subr.c | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)

-current as of today without this change boots just fine on the Ampere 
system in the Oracle cloud.

what's your loader.conf? this should only matter if something is set 
there...

loader.conf:

autoboot_delay="1"
hw.usb.no_boot_wait="0"
beastie_disable="YES"
boot_serial="YES"
loader_logo="none"
cryptodev_load="YES"
xz_load="YES"
zfs_load="YES"
geom_eli_load="YES"

tcphpts_load="yes"
tcp_rack_load="YES"

hw.mca.enabled="1"
vm.exec_map_entries="32"

net.link.ifqmaxlen="256"
net.inet.tcp.soreceive_stream="1"
kern.random.fortuna.concurrent_read="1"
kern.msgbuf_show_timestamp="1"

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF
--=_9b537057f29aedb8651e4dedd0ab2b26
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p id=3D"reply-intro">Am 2024-11-07 20:59, schrieb Warner Losh:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div dir=3D"ltr">
<div dir=3D"ltr">&nbsp;</div>
<br />
<div class=3D"v1gmail_quote">
<div class=3D"v1gmail_attr" dir=3D"ltr">On Wed, Nov 6, 2024 at 3:41=E2=80=
=AFAM Alexander Leidinger &lt;<a href=3D"mailto:Alexander@leidinger.net" re=
l=3D"noreferrer">Alexander@leidinger.net</a>&gt; wrote:</div>
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left: 1px solid #cccccc; padding-left: 1ex;">
<div style=3D"font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<div style=3D"font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p id=3D"v1m_33128641647853291v1reply-intro">Am 2024-11-02 17:08, schrieb W=
arner Losh:</p>
<blockquote style=3D"padding: 0px 0.4em; border-left: 2px solid #1010ff; ma=
rgin: 0px;">
<div id=3D"v1m_33128641647853291v1replybody1">
<div dir=3D"auto">
<div><br /><br />
<div>
<div dir=3D"ltr">On Sat, Nov 2, 2024, 10:03=E2=80=AFAM Alexander Leidinger =
&lt;<a href=3D"mailto:Alexander@leidinger.net" rel=3D"noreferrer">Alexander=
@leidinger.net</a>&gt; wrote:</div>
<blockquote style=3D"margin: 0px 0px 0px 0.8ex; border-left: 1px solid #ccc=
ccc; padding-left: 1ex;">Am 2024-10-30 22:11, schrieb Alexander Leidinger:<=
br /><br />&gt; WARNING! Trying to fire up the kernel, but no device tree b=
lob found!<br /><br />For anyone interested, I opened <br /><a href=3D"http=
s://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282493" target=3D"_blank" r=
el=3D"noopener noreferrer">https://bugs.freebsd.org/bugzilla/show_bug.cgi?i=
d=3D282493</a> for this.</blockquote>
</div>
</div>
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">Yea. This is a hang or a bad console. The warning is lame=
 and misleading.</div>
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">Can you bisect?</div>
</div>
</div>
</blockquote>
<p>Found it.</p>
<p style=3D"padding-left: 40px;"># git bisect bad<br />c87b3f0006be9ac5813f=
1ff636f18c9b4a41b08e is the first bad commit<br />commit c87b3f0006be9ac581=
3f1ff636f18c9b4a41b08e (HEAD)<br />Author: Warner Losh &lt;imp@FreeBSD.org&=
gt;<br />Date: &nbsp; Mon Oct 14 15:58:10 2024 -0600</p>
<p style=3D"padding-left: 40px;">&nbsp; &nbsp; uart: uart_getenv: check for=
 NULL class last, not first</p>
<p style=3D"padding-left: 40px;">&nbsp; &nbsp; This allows one to specify d=
t:XXXX when the default class isn't compiled<br />&nbsp; &nbsp; into the ke=
rnel. It's not an error to not have a class until we're done<br />&nbsp; &n=
bsp; parsing the spec, so defer checking until then.</p>
<p style=3D"padding-left: 40px;">&nbsp; &nbsp; Sponsored by: &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; Netflix<br />&nbsp; &nbsp; Reviewed by: &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp;adrian, andrew, markj<br />&nbsp; &nbsp; Differe=
ntial Revision: &nbsp;<a href=3D"https://reviews.freebsd.org/D47078" target=
=3D"_blank" rel=3D"noopener noreferrer">https://reviews.freebsd.org/D47078<=
/a></p>
<p style=3D"padding-left: 40px;">&nbsp;sys/dev/uart/uart_subr.c | 14 ++++++=
+-------<br />&nbsp;1 file changed, 7 insertions(+), 7 deletions(-)</p>
<p>-current as of today without this change boots just fine on the Ampere s=
ystem in the Oracle cloud.</p>
</div>
</div>
</blockquote>
<div>&nbsp;</div>
<div>what's your loader.conf? this should only matter if something is set t=
here...&nbsp;&nbsp;</div>
</div>
</div>
</div>
</blockquote>
<p>loader.conf:</p>
<p style=3D"padding-left: 40px;">autoboot_delay=3D"1"<br />hw.usb.no_boot_w=
ait=3D"0"<br />beastie_disable=3D"YES"<br />boot_serial=3D"YES"<br />loader=
_logo=3D"none"<br />cryptodev_load=3D"YES"<br />xz_load=3D"YES"<br />zfs_lo=
ad=3D"YES"<br />geom_eli_load=3D"YES"</p>
<p style=3D"padding-left: 40px;">tcphpts_load=3D"yes"<br />tcp_rack_load=3D=
"YES"</p>
<p style=3D"padding-left: 40px;">hw.mca.enabled=3D"1"<br />vm.exec_map_entr=
ies=3D"32"</p>
<p style=3D"padding-left: 40px;">net.link.ifqmaxlen=3D"256"<br />net.inet.t=
cp.soreceive_stream=3D"1"<br />kern.random.fortuna.concurrent_read=3D"1"<br=
 />kern.msgbuf_show_timestamp=3D"1"</p>
<p>Bye,<br />Alexander.</p>
<div id=3D"signature">-- <br />
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
<a href=3D"http://www.Leidinger.net" target=3D"_blank" rel=3D"noopener nore=
ferrer">http://www.Leidinger.net</a>; <a href=3D"mailto:Alexander@Leidinger.=
net:">Alexander@Leidinger.net:</a> PGP 0x8F31830F9F2772BF<br /><a href=3D"h=
ttp://www.FreeBSD.org" target=3D"_blank" rel=3D"noopener noreferrer">http:/=
/www.FreeBSD.org</a> &nbsp; &nbsp;<a href=3D"mailto:netchild@FreeBSD.org">n=
etchild@FreeBSD.org</a> &nbsp;: PGP 0x8F31830F9F2772BF</div>
</div>
</body></html>

--=_9b537057f29aedb8651e4dedd0ab2b26--


--=_4d9f453636eef0c498b23b37525abefe
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIyBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmctQiQACgkQEg2wmwP4
2IY7eQ/yAj1SrxNp1OnbxNTBvvgNjnEZgwnRGnztAUDXWb6F1whXNZbQMb0md5DF
B8RSRxsqzxhr1B+YuoUq30CZ4r3MEcTVVbUUakCyQk3b52FSg52e84HXQHoVL/qE
2UQ/H2TLk2PGwJDfvctiZx63b+brLnuMJX/s9nqHxOY/eyOVEm7F9ZV25peP1Slk
U0bLE4g58GaxIlWF/mt8AEm2Yr8rE6l9FJ+rwP+43J11EEWMOUrADwwBbexuQRE+
EsrfI8RDeRGPj7p694lIuURgPlatr9EDtmcuZ+F21bCAmX1VEodMqezADaLz0mb6
G8qmOhvAVS8HBxTHpE+RPcYuI/Ubp8Ej9XTHpxVKQuXZJ3SAGq3P82AR20uPfPI9
ljQMJRc3PKAuf9XJ9ndhl6UsO4Vy+WKshE2bTkQwxlArXUq1FDTkc0f2fEKqVYUM
8xWxJklRwi01mKvxzUCxjnIiUtfkYauQI//eB8AngOZHVK/NBpaZ1mUTh3B8ggDF
r4MOa2YvpPbECEdjABzhr5TyxNFpb+JnYMCOw1hKIZ4oB8nYFWrjMhr1X9aOtvbN
mcgLfM92RvX23byPafMMA6kv8OfDr2QAUFbB85RxGDNBm6BtyIyiP2mNhDdMeq6p
xVfMh1qEdKtlQvYc5+hJmp9TjyZz7LcZHvT+I4i10RXWwGQb3w==
=IsYD
-----END PGP SIGNATURE-----

--=_4d9f453636eef0c498b23b37525abefe--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?132ca9158817a4706d1b9e78c3567973>