Re: No valid device tree blob found!

From: Warner Losh <imp_at_bsdimp.com>
Date: Fri, 08 Nov 2024 13:27:38 UTC
On Fri, Nov 8, 2024, 12:34 AM Alexander Leidinger <Alexander@leidinger.net>
wrote:

> Am 2024-11-08 05:46, schrieb Warner Losh:
>
> OK. I'm confused... but no matter.
>
> Three more things to help...
> (1) kenv after boot with a fixed kernel
>
>
> COLUMNS="100"
> LINES="31"
> acpi.oem="BOCHS "
> acpi.revision="2"
> acpi.rsdp="0x00000006385c0018"
> acpi.rsdt="0x0000000000000000"
> acpi.xsdt="0x00000006385cfe98"
> acpi.xsdt_length="36"
> acpi_dsdt_load="NO"
> acpi_dsdt_name="/boot/acpi_dsdt.aml"
> acpi_dsdt_type="acpi_dsdt"
> acpi_video_load="NO"
> audit_event_load="NO"
> audit_event_name="/etc/security/audit_event"
> audit_event_type="etc_security_audit_event"
> autoboot_delay="1"
> beastie_disable="YES"
> bitmap_load="NO"
> bitmap_name="splash.bmp"
> bitmap_type="splash_image_data"
> boot_multicons="YES"
> boot_serial="YES"
> bootenv_autolist="YES"
> bootenvs[0]="zfs:zroot/ROOT/2024-10-30-121420_ko"
> bootenvs[10]="zfs:zroot/ROOT/2024-07-15-110946"
> bootenvs[11]="zfs:zroot/ROOT/2024-09-12-140543"
> bootenvs[1]="zfs:zroot/ROOT/2024-10-14-233343_ko"
> bootenvs[2]="zfs:zroot/ROOT/2024-10-14-160359"
> bootenvs[3]="zfs:zroot/ROOT/2024-10-14-160358"
> bootenvs[4]="zfs:zroot/ROOT/2024-10-13-232308"
> bootenvs[5]="zfs:zroot/ROOT/2024-10-14-102617"
> bootenvs[6]="zfs:zroot/ROOT/2024-10-11-084349"
> bootenvs[7]="zfs:zroot/ROOT/2024-11-06-084833"
> bootenvs[8]="zfs:zroot/ROOT/2024-08-15-222928"
> bootenvs[9]="zfs:zroot/ROOT/2024-07-16-094205"
> bootenvs_count="12"
> bootfile="kernel"
> console="efi"
> cpu_microcode_load="NO"
> cpu_microcode_name="/boot/firmware/ucode.bin"
> cpu_microcode_type="cpu_microcode"
> cryptodev_load="YES"
> currdev="zfs:zroot/ROOT/2024-11-06-084833:"
> efi-version="2.70"
> efi_com_port="0"
> efi_com_speed="38400"
> efi_max_resolution="1x1"
> entropy_cache_load="YES"
> entropy_cache_name="/boot/entropy"
> entropy_cache_type="boot_entropy_cache"
> entropy_efi_seed="YES"
> entropy_efi_seed_size="2048"
> geom_eli_load="YES"
> hint.acpi.0.disabled="0"
> hint.smbios.0.mem="0x63bed0000"
> hostuuid_load="YES"
> hostuuid_name="/etc/hostid"
> hostuuid_type="hostuuid"
> hw.mca.enabled="1"
> hw.uart.console="db:8,dt:pl011,mm:0x9000000,rs:0,rw:1,pa:none,br:9600,xo=0"
> hw.usb.no_boot_wait="0"
> kern.msgbuf_show_timestamp="1"
> kern.random.fortuna.concurrent_read="1"
> kernel="kernel"
> kernel_options=""
> kernel_path="/boot/kernel"
> kernelname="/boot/kernel/kernel"
> kernels_autodetect="YES"
> loaddev="zfs:zroot/ROOT/2024-11-06-084833:"
> loader.efi="1"
> loader_conf_dirs="/boot/loader.conf.d"
> loader_logo="none"
> local_loader_conf_files="/boot/loader.conf.local"
> module_blacklist="drm drm2 radeonkms i915kms amdgpu"
> module_path="/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays"
> module_verbose="2"
> net.inet.tcp.soreceive_stream="1"
> net.link.ifqmaxlen="256"
> nextboot_conf="/boot/nextboot.conf"
> ram_blacklist_load="NO"
> ram_blacklist_name="/boot/blacklist.txt"
> ram_blacklist_type="ram_blacklist"
> screensave_load="NO"
> screensave_name="green_saver"
> script.lang="lua"
> smbios.bios.reldate="06/16/2021"
> smbios.bios.revision="0.0"
> smbios.bios.vendor="EFI Development Kit II / OVMF"
> smbios.bios.version="1.5.1"
> smbios.chassis.maker="QEMU"
> smbios.chassis.tag="OracleCloud.com"
> smbios.chassis.type="Other"
> smbios.chassis.version="virt-4.2"
> smbios.memory.enabled="25165824"
> smbios.socket.enabled="1"
> smbios.socket.populated="1"
> smbios.system.maker="QEMU"
> smbios.system.product="KVM Virtual Machine"
> smbios.system.uuid="14fd7a5a-8f68-44d4-88b6-68498f8b55fb"
> smbios.system.version="virt-4.2"
> smbios.version="3.0"
> splash="/boot/images/freebsd-logo-rev.png"
> splash_bmp_load="NO"
> splash_pcx_load="NO"
> splash_txt_load="NO"
> tcp_rack_load="YES"
> tcphpts_load="YES"
> twiddle_divisor="16"
> verbose_loading="NO"
> vesa_load="NO"
> vfs.root.mountfrom="zfs:zroot/ROOT/2024-11-06-084833"
> vm.exec_map_entries="32"
> xz_load="YES"
> zfs-bootonce="zfs:zroot/ROOT/2024-11-06-084833:"
> zfs_be_active="zfs:zroot/ROOT/2024-10-14-160358"
> zfs_be_currpage="1"
> zfs_be_root="zroot/ROOT"
> zfs_load="YES"
>
>
> (2) sudo efivar --device-path 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
>
>
> 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
> :
> UsbHID(0xffff,0xffff,0x1,0x1),/VenHw(d3987d4b-971a-435f-8caf-4967eb627241)/Uart(38400,8,N,1)/VenVt100()
>
>
> (3) sudo efivar --device-path 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
>
>
> 8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
> :
> PciRoot(0x0)/Pci(0x1,0x0)/AcpiAdr(0x80010300),/VenHw(d3987d4b-971a-435f-8caf-4967eb627241)/Uart(38400,8,N,1)/VenVt100()
>

Oh and a dmesg?

Warner

>
> Bye,
> Alexander.
>
>
> 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:
> <#m_-4440668305350821778_NOP> PGP 0x8F31830F9F2772BF
> http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF
>
>
> --
> http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
> http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF
>