From nobody Thu Nov 07 22:41:23 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xkxs55tR3z5clld for ; Thu, 07 Nov 2024 22:42:01 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "E6" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xkxs528Glz4G1r for ; Thu, 7 Nov 2024 22:42:01 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1731019312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8IuY9wbahtRYmUmrPV8mKEK2ZXB3r9tPSY2seK+ZnD0=; b=nkG+ZNWDHWGooebGOoJN6d/2/kOiO4y7xWzvdPvhGCA7S3ut6sq3d6nFj5/ikqVeua9xSi 0WOrmH787fES7K/L1aNN+KjA+JNPrcCxFYVdsP48PyTyaWcHLDYpGX4QM7MPHc8z5clfBl jpF5JB6ZOE/AlZHNUrArUtRG+btjQZ0zffSPOIjdiGMeKXS2nvY+M2Iq/G0qXvMmpy1c78 UjxLKB4kAvtNCGdP2h8V/D+0hVQl9QMlAHOR/ZmwYSpFIq45zYlVuXz6ZC0kvyhDb+R3vO E19AcgIQhCZ1ffgr+ubK9gTSt5LNYAnGlco0DpzMWW25meap3gLDlHWaf37yBQ== Date: Thu, 07 Nov 2024 23:41:23 +0100 From: Alexander Leidinger To: Warner Losh Cc: Current FreeBSD Subject: Re: No valid device tree blob found! In-Reply-To: References: <8cf9adb0e7ca6340460c695ffd64a0df@Leidinger.net> <896b9ce404ffcb126dcdd6008583b117@Leidinger.net> Message-ID: <132ca9158817a4706d1b9e78c3567973@Leidinger.net> Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_4d9f453636eef0c498b23b37525abefe"; micalg=pgp-sha256 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE] X-Rspamd-Queue-Id: 4Xkxs528Glz4G1r X-Spamd-Bar: ---- 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 > wrote: > > Am 2024-11-02 17:08, schrieb Warner Losh: > > On Sat, Nov 2, 2024, 10:03 AM Alexander Leidinger > 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 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

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

 

On Wed, Nov 6, 2024 at 3:41=E2=80= =AFAM Alexander Leidinger <Alexander@leidinger.net> wrote:

Am 2024-11-02 17:08, schrieb W= arner Losh:



On Sat, Nov 2, 2024, 10:03=E2=80=AFAM Alexander Leidinger = <Alexander= @leidinger.net> wrote:
Am 2024-10-30 22:11, schrieb Alexander Leidinger:<= br />
> WARNING! Trying to fire up the kernel, but no device tree b= lob found!

For anyone interested, I opened
https://bugs.freebsd.org/bugzilla/show_bug.cgi?i= d=3D282493 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
c87b3f0006be9ac5813f= 1ff636f18c9b4a41b08e is the first bad commit
commit c87b3f0006be9ac581= 3f1ff636f18c9b4a41b08e (HEAD)
Author: Warner Losh <imp@FreeBSD.org&= gt;
Date:   Mon Oct 14 15:58:10 2024 -0600

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

    This allows one to specify d= t:XXXX when the default class isn't compiled
    into the ke= rnel. It's not an error to not have a class until we're done
  &n= bsp; parsing the spec, so defer checking until then.

    Sponsored by:     =       Netflix
    Reviewed by:     =        adrian, andrew, markj
    Differe= ntial Revision:  https://reviews.freebsd.org/D47078<= /a>

 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 s= ystem in the Oracle cloud.

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

loader.conf:

autoboot_delay=3D"1"
hw.usb.no_boot_w= ait=3D"0"
beastie_disable=3D"YES"
boot_serial=3D"YES"
loader= _logo=3D"none"
cryptodev_load=3D"YES"
xz_load=3D"YES"
zfs_lo= ad=3D"YES"
geom_eli_load=3D"YES"

tcphpts_load=3D"yes"
tcp_rack_load=3D= "YES"

hw.mca.enabled=3D"1"
vm.exec_map_entr= ies=3D"32"

net.link.ifqmaxlen=3D"256"
net.inet.t= cp.soreceive_stream=3D"1"
kern.random.fortuna.concurrent_read=3D"1"kern.msgbuf_show_timestamp=3D"1"

Bye,
Alexander.

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