From nobody Fri Nov 08 04:46:34 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 4Xl5y00rR3z5c4jT for ; Fri, 08 Nov 2024 04:46:48 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xl5xz43jYz4tYB for ; Fri, 8 Nov 2024 04:46:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-7ed9c16f687so1203380a12.0 for ; Thu, 07 Nov 2024 20:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1731041206; x=1731646006; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=w1BwYxWHqpk5JMnU/q96aDjRfqtYMDkO+0I/J5dYVL8=; b=YLceG5rWOIWIzQm3nk5QAt55dwBEW0jM7MUKEE7sIudM4MEaMcF2RVXNiOJVUXUDX3 OQ7hVzOaJATZycby4qgR67D4BqLDTPoxcJ428LWZejU9rWhr+Es/LR5TRli4QrEX82Hz RYVXbw9CM8nShp12+r6jmB4gRQtPsN+j+ggXn1bSMZHSuSdqgLD/Ei78SsUSULoKsEP0 zyt02BQorD90sNrS5GRtxH/n3SXLzHFwJSGNrfBDoegMt1+R1KvpBiz3QD04/BE+J9nT yhjMFxRr8R8GBVpPNwhGAQOzvZO7z++vX+8lWKjcNhhgEZ4VN7AOL3Ww7qc/7mnEPxrO 0GVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731041206; x=1731646006; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w1BwYxWHqpk5JMnU/q96aDjRfqtYMDkO+0I/J5dYVL8=; b=BIm5bV7DCKnSv0NsS5DF8du6fM5aEzDjgj5VZWEB/luESB3rZ6wWcIdzKPlzVRPISc dpJdwHCw+mUR/Q2GKiU7Fnf7ZQvr3ujmTAP1vXy7kaNl6I8GOb6a2fdVpHlG87LkYtta eTvr4GhSKLfufWZrkNwDtAgoMThNG4YrCtJWuZWWw+Yt2SH3kk705XADyOqLKEEDph09 jIGTsY5kQsRrx9tqHKhxzxiREfjhbenJWKRX4GIHEGe/phA4V+2xEzgMyFH6pXRcrsjt J/DysaYy42NBEjl4EdIYqcaujRE6bJkhA+92ZKJhgAbexsmRw0UvFCTpLM1t99Re6UOo 8OBg== X-Gm-Message-State: AOJu0YyhJEXcWqFhIwKFcfHSuu8Bo1NYN0XOVBaqukCm0OCbVDpKnGLA +Kh3bRjtlHhZgSG9P+R/quUZXmA/FIdW3likRdGS1U0L3BDBgwE2A1/m3dTp4h0nSOa4B3fdTO4 x0GHtaHAu6/c3rZXt+1lpxnDeqLBLFisJN5n+EBVB8AsqvUfTtL+B3lvP X-Google-Smtp-Source: AGHT+IHSKJKtP30bxCJkRQkgBsgKyqqd6ahQMQpQw+QAuroqWum3Dj1vhygNENPdxFct8hcWlMHm3kySfg0o6/DLB+4= X-Received: by 2002:a05:6a21:20b:b0:1db:e329:83f5 with SMTP id adf61e73a8af0-1dc229901admr1411196637.14.1731041206130; Thu, 07 Nov 2024 20:46:46 -0800 (PST) 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 References: <8cf9adb0e7ca6340460c695ffd64a0df@Leidinger.net> <896b9ce404ffcb126dcdd6008583b117@Leidinger.net> <132ca9158817a4706d1b9e78c3567973@Leidinger.net> In-Reply-To: <132ca9158817a4706d1b9e78c3567973@Leidinger.net> From: Warner Losh Date: Thu, 7 Nov 2024 20:46:34 -0800 Message-ID: Subject: Re: No valid device tree blob found! To: Alexander Leidinger Cc: Current FreeBSD Content-Type: multipart/alternative; boundary="0000000000002f0a9806265f7056" 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Xl5xz43jYz4tYB X-Spamd-Bar: ---- --0000000000002f0a9806265f7056 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFPM Alexander Leidinger wrote: > 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 Warner Losh: > > > > On Sat, Nov 2, 2024, 10:03=E2=80=AFAM 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=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 > 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 do= ne > 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=3D"1" > hw.usb.no_boot_wait=3D"0" > beastie_disable=3D"YES" > boot_serial=3D"YES" > loader_logo=3D"none" > cryptodev_load=3D"YES" > xz_load=3D"YES" > zfs_load=3D"YES" > geom_eli_load=3D"YES" > > tcphpts_load=3D"yes" > tcp_rack_load=3D"YES" > > hw.mca.enabled=3D"1" > vm.exec_map_entries=3D"32" > > net.link.ifqmaxlen=3D"256" > net.inet.tcp.soreceive_stream=3D"1" > kern.random.fortuna.concurrent_read=3D"1" > kern.msgbuf_show_timestamp=3D"1" > > Bye, > Alexander. > -- > http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF > --0000000000002f0a9806265f7056 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OK. I'm confused... but no matter.=C2=A0

Three more things to help...=C2=A0
(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-93= ca-11d2-aa0d-00e098032b8c-ConOut

Warner

On Th= u, Nov 7, 2024 at 2:41=E2=80=AFPM Alexander Leidinger <Alexander@leidinger.net>= wrote:

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

=C2=A0

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

Am 2024-11-02 17:08, schrieb Warner 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 Leidinge= r:

> WARNING! Trying to fire up the kernel, but no device tree bl= ob found!

For anyone interested, I opened
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282= 493 for this.
=C2=A0
Yea. This is a hang or a bad console. The warning is lame= and misleading.
=C2=A0
Can you bisect?

Found it.

# git bisect bad
c87b3f0006be9ac5813f1ff6= 36f18c9b4a41b08e is the first bad commit
commit c87b3f0006be9ac5813f1ff6= 36f18c9b4a41b08e (HEAD)
Author: Warner Losh <imp@FreeBSD.org>
D= ate: =C2=A0 Mon Oct 14 15:58:10 2024 -0600

=C2=A0 =C2=A0 uart: uart_getenv: check for N= ULL class last, not first

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

=C2=A0 =C2=A0 Sponsored by: =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 Netflix
=C2=A0 =C2=A0 Reviewed by: =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0adrian, andrew, markj
=C2=A0 =C2=A0 Different= ial Revision: =C2=A0https://reviews.freebsd.org/D47078

=C2=A0sys/dev/uart/uart_subr.c | 14 +++++++-= ------
=C2=A01 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.

=C2=A0
what's your loader.conf? this should only matter if something is s= et there...=C2=A0=C2=A0

loader.conf:

autoboot_delay=3D"1"
hw.usb.no_= boot_wait=3D"0"
beastie_disable=3D"YES"
boot_seri= al=3D"YES"
loader_logo=3D"none"
cryptodev_load=3D= "YES"
xz_load=3D"YES"
zfs_load=3D"YES"<= br>geom_eli_load=3D"YES"

tcphpts_load=3D"yes"
tcp_rack_l= oad=3D"YES"

hw.mca.enabled=3D"1"
vm.exec_ma= p_entries=3D"32"

net.link.ifqmaxlen=3D"256"
net.= inet.tcp.soreceive_stream=3D"1"
kern.random.fortuna.concurrent= _read=3D"1"
kern.msgbuf_show_timestamp=3D"1"

Bye,
Alexander.

--
http://= www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http:= //www.FreeBSD.org =C2=A0 =C2=A0netchild@FreeBSD.org =C2=A0: PGP 0x8F31830F9F2772BF
--0000000000002f0a9806265f7056--