Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2024 20:46:34 -0800
From:      Warner Losh <imp@bsdimp.com>
To:        Alexander Leidinger <Alexander@leidinger.net>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: No valid device tree blob found!
Message-ID:  <CANCZdfp=9RpRmSEFf37%2BO=q5ywAFZgM=VD2Kg0qLXLrfx9izfQ@mail.gmail.com>
In-Reply-To: <132ca9158817a4706d1b9e78c3567973@Leidinger.net>
References:  <8cf9adb0e7ca6340460c695ffd64a0df@Leidinger.net> <896b9ce404ffcb126dcdd6008583b117@Leidinger.net> <CANCZdfr4qGgyt=fN4%2BJiFytthjseNo_2B0LVXHZNH93Y3vqEVg@mail.gmail.com> <a007694a811d1daa48703236b3eba007@Leidinger.net> <CANCZdfq%2BUuP7Ya69jz5jnoBB1Cg2Y-sHq1g%2BixsmEvjU7cSipA@mail.gmail.com> <132ca9158817a4706d1b9e78c3567973@Leidinger.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
OK. I'm confused... but no matter.

Three more things to help...
(1) kenv after boot with a fixed kernel
(2) sudo efivar --device-path 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
(3) sudo efivar --device-path 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut

Warner

On Thu, Nov 7, 2024 at 2:41 PM Alexander Leidinger <Alexander@leidinger.net>
wrote:

> 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
>

[-- Attachment #2 --]
<div dir="ltr">OK. I&#39;m confused... but no matter. <div><br></div><div>Three more things to help... </div><div>(1) kenv after boot with a fixed kernel</div><div>(2) sudo efivar --device-path 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn</div><div>(3) sudo efivar --device-path 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut</div><div><br></div><div>Warner</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2024 at 2:41 PM Alexander Leidinger &lt;<a href="mailto:Alexander@leidinger.net" target="_blank">Alexander@leidinger.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p id="m_4714275516160504349m_-1080165619656712267reply-intro">Am 2024-11-07 20:59, schrieb Warner Losh:</p>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="m_4714275516160504349m_-1080165619656712267replybody1">
<div dir="ltr">
<div dir="ltr"> </div>
<br>
<div>
<div dir="ltr">On Wed, Nov 6, 2024 at 3:41 AM Alexander Leidinger &lt;<a href="mailto:Alexander@leidinger.net" rel="noreferrer" target="_blank">Alexander@leidinger.net</a>&gt; wrote:</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p id="m_4714275516160504349m_-1080165619656712267v1m_33128641647853291v1reply-intro">Am 2024-11-02 17:08, schrieb Warner Losh:</p>
<blockquote style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div id="m_4714275516160504349m_-1080165619656712267v1m_33128641647853291v1replybody1">
<div dir="auto">
<div><br><br>
<div>
<div dir="ltr">On Sat, Nov 2, 2024, 10:03 AM Alexander Leidinger &lt;<a href="mailto:Alexander@leidinger.net" rel="noreferrer" target="_blank">Alexander@leidinger.net</a>&gt; wrote:</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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 blob found!<br><br>For anyone interested, I opened <br><a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282493" rel="noopener noreferrer" target="_blank">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282493</a>; for this.</blockquote>
</div>
</div>
<div dir="auto"> </div>
<div dir="auto">Yea. This is a hang or a bad console. The warning is lame and misleading.</div>
<div dir="auto"> </div>
<div dir="auto">Can you bisect?</div>
</div>
</div>
</blockquote>
<p>Found it.</p>
<p style="padding-left:40px"># git bisect bad<br>c87b3f0006be9ac5813f1ff636f18c9b4a41b08e is the first bad commit<br>commit c87b3f0006be9ac5813f1ff636f18c9b4a41b08e (HEAD)<br>Author: Warner Losh &lt;imp@FreeBSD.org&gt;<br>Date:   Mon Oct 14 15:58:10 2024 -0600</p>
<p style="padding-left:40px">    uart: uart_getenv: check for NULL class last, not first</p>
<p style="padding-left:40px">    This allows one to specify dt:XXXX when the default class isn&#39;t compiled<br>    into the kernel. It&#39;s not an error to not have a class until we&#39;re done<br>    parsing the spec, so defer checking until then.</p>
<p style="padding-left:40px">    Sponsored by:           Netflix<br>    Reviewed by:            adrian, andrew, markj<br>    Differential Revision:  <a href="https://reviews.freebsd.org/D47078" rel="noopener noreferrer" target="_blank">https://reviews.freebsd.org/D47078</a></p>;
<p style="padding-left:40px"> sys/dev/uart/uart_subr.c | 14 +++++++-------<br> 1 file changed, 7 insertions(+), 7 deletions(-)</p>
<p>-current as of today without this change boots just fine on the Ampere system in the Oracle cloud.</p>
</div>
</div>
</blockquote>
<div> </div>
<div>what&#39;s your loader.conf? this should only matter if something is set there...  </div>
</div>
</div>
</div>
</blockquote>
<p>loader.conf:</p>
<p style="padding-left:40px">autoboot_delay=&quot;1&quot;<br>hw.usb.no_boot_wait=&quot;0&quot;<br>beastie_disable=&quot;YES&quot;<br>boot_serial=&quot;YES&quot;<br>loader_logo=&quot;none&quot;<br>cryptodev_load=&quot;YES&quot;<br>xz_load=&quot;YES&quot;<br>zfs_load=&quot;YES&quot;<br>geom_eli_load=&quot;YES&quot;</p>
<p style="padding-left:40px">tcphpts_load=&quot;yes&quot;<br>tcp_rack_load=&quot;YES&quot;</p>
<p style="padding-left:40px">hw.mca.enabled=&quot;1&quot;<br>vm.exec_map_entries=&quot;32&quot;</p>
<p style="padding-left:40px">net.link.ifqmaxlen=&quot;256&quot;<br>net.inet.tcp.soreceive_stream=&quot;1&quot;<br>kern.random.fortuna.concurrent_read=&quot;1&quot;<br>kern.msgbuf_show_timestamp=&quot;1&quot;</p>
<p>Bye,<br>Alexander.</p>
<div id="m_4714275516160504349m_-1080165619656712267signature">-- <br>
<div style="margin:0px;padding:0px;font-family:monospace"><a href="http://www.Leidinger.net" rel="noopener noreferrer" target="_blank">http://www.Leidinger.net</a>; <a href="mailto:Alexander@Leidinger.net:" target="_blank">Alexander@Leidinger.net:</a> PGP 0x8F31830F9F2772BF<br><a href="http://www.FreeBSD.org" rel="noopener noreferrer" target="_blank">http://www.FreeBSD.org</a>;    <a href="mailto:netchild@FreeBSD.org" target="_blank">netchild@FreeBSD.org</a>  : PGP 0x8F31830F9F2772BF</div>
</div>
</div>
</blockquote></div>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfp=9RpRmSEFf37%2BO=q5ywAFZgM=VD2Kg0qLXLrfx9izfQ>