From owner-freebsd-current@freebsd.org Wed Sep 2 20:59:04 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 28B863C9779; Wed, 2 Sep 2020 20:59:04 +0000 (UTC) (envelope-from dch@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bhbs40JvNz4HDb; Wed, 2 Sep 2020 20:59:04 +0000 (UTC) (envelope-from dch@freebsd.org) Received: from auth1-smtp.messagingengine.com (auth1-smtp.messagingengine.com [66.111.4.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: dch/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id DBA7627214; Wed, 2 Sep 2020 20:59:03 +0000 (UTC) (envelope-from dch@freebsd.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id EA1E727C0058; Wed, 2 Sep 2020 16:59:02 -0400 (EDT) Received: from imap6 ([10.202.2.56]) by compute4.internal (MEProxy); Wed, 02 Sep 2020 16:59:02 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudefledgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdffrghv vgcuvehothhtlhgvhhhusggvrhdfuceouggthhesfhhrvggvsghsugdrohhrgheqnecugg ftrfgrthhtvghrnhephfeutdeltdeludejfeeugfevffeitdegleehheduteevuddtveeu feegffefkeevnecuffhomhgrihhnpeguphgrshhtvgdrohhrghdptghonhhfrdhlohgtrg hlpdhskhhunhhkfigvrhhkshdrrghtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepuggthhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlih hthidqieejkedukeduhedvqdduvddufeduudejjedquggthheppehfrhgvvggsshgurdho rhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 96ABD1400A1; Wed, 2 Sep 2020 16:59:02 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-248-gcd102cb-fm-20200901.001-gcd102cb9 Mime-Version: 1.0 Message-Id: Date: Wed, 02 Sep 2020 20:58:42 +0000 From: "Dave Cottlehuber" To: "Ryan Moeller" , "Matthew Macy" Cc: freebsd-current@freebsd.org, freebsd-arm Subject: =?UTF-8?Q?[openzfs]__r365058_arm64_uefi_boot_fails_with_"unknown_filesys?= =?UTF-8?Q?tem"_after_launching_kernel?= Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2020 20:59:04 -0000 hi Matt, Ryan Something goes awry after loading kernel & zfs drivers, at point of moun= ting the root filesystem from boot env - unknown filesystem. Running ? to show available fs doesn't show zfs here, but as we loaded k= ernel already from zfs this is confusing. Any ideas? mountroot> ? List of GEOM managed disk devices: da1 ufs/FreeBSD_Install ufsid/5f3524aa78541663 da0s2 da0p1 da0 gpt/zfs0 gpt/swap0 msdosfs/EFISYS gpt/efiboot0 ada0p3 ada0p2 ada0p1 ada0 Additionally at this point, it doesn't appear to be possible to boot/mou= nt from the previous boot environment, as zfs.ko etc is already loaded, = I'm not sure if I can set this prior with `loaddev` or similar. full dmesg/logs here - https://dpaste.org/iwRd , trimmed below.=20 svn path=3D/head/; revision=3D365058 , commit 52a2c0f Consoles: EFI console =20 Reading loader env vars from /efi/freebsd/loader.env Setting currdev to disk1p1: FreeBSD/arm64 EFI loader, Revision 1.1 =E2=80=8B Command line arguments: loader.efi Image base: 0x9fe6d30000 EFI version: 2.70 EFI Firmware: American Megatrends (rev 5.13) Console: efi (0x20000000) Load Path: \EFI\FreeBSD\loader.efi Load Device: PciRoot(0xFF)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)/HD(1,GPT= ,BE9634BF-D684-11EA-B300-001B21E07D7B,0x28,0x64000) BootCurrent: 0001 BootOrder: 0001[*] 0004 001b 001f 001a 000e 0000 0003 0005 0006 0007 = 001c 001d 001e BootInfo Path: HD(1,GPT,BE9634BF-D684-11EA-B300-001B21E07D7B,0x28,0x6= 4000)/\EFI\refind\refind_aa64.efi Ignoring Boot0001: Only one DP found Trying ESP: PciRoot(0xFF)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)/HD(1,GPT,BE9= 634BF-D684-11EA-B300-001B21E07D7B,0x28,0x64000) Setting currdev to disk1p1: Trying: PciRoot(0xFF)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)/HD(2,GPT,BE9A158= 1-D684-11EA-B300-001B21E07D7B,0x64800,0x2800000) Setting currdev to disk1p2: Trying: PciRoot(0xFF)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)/HD(3,GPT,BEA23FF= C-D684-11EA-B300-001B21E07D7B,0x2864800,0x355DE800) Setting currdev to zfs:zroot/ROOT/13.0-CURRENT-20200901.193810: Loading /boot/defaults/loader.conf Loading /boot/defaults/loader.conf Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local Loading kernel... /boot/kernel/kernel text=3D0x2a8 text=3D0x799990 text=3D0x1e7a6c data=3D= 0x196b80 data=3D0x0+0x3a378e syms=3D[0x8+0x165978+0x8+0x158936] Loading configured modules... /boot/kernel/tmpfs.ko text=3D0x4421 text=3D0x8fec data=3D0x1110+0x18 sym= s=3D[0x8+0x1f68+0x8+0x13df] /boot/kernel/xz.ko text=3D0x850 text=3D0x22d0 data=3D0x268+0x400 syms=3D= [0x8+0x870+0x8+0x412] /boot/kernel/linuxkpi.ko text=3D0x709d text=3D0x13070 data=3D0x1970+0x75= 0 syms=3D[0x8+0x5a48+0x8+0x3dfb] /boot/entropy size=3D0x1000 /etc/hostid size=3D0x25 /boot/kernel/mlx5en.ko text=3D0x19b35 text=3D0x11a48 data=3D0x26d8+0x8 s= yms=3D[0x8+0x32e8+0x8+0x21ae] /boot/kernel/mlx5.ko text=3D0xc369 text=3D0x23e24 data=3D0x1b50+0x94 sym= s=3D[0x8+0x5100+0x8+0x3c65] /boot/kernel/fusefs.ko text=3D0x8236 text=3D0xcb48 data=3D0x3420+0x68 sy= ms=3D[0x8+0x4350+0x8+0x4894] /boot/kernel/opensolaris.ko text=3D0x12c3 text=3D0x94c data=3D0x468+0x68= 30 syms=3D[0x8+0x1050+0x8+0x8bb] /boot/kernel/mlxfw.ko text=3D0xed2 text=3D0x167c data=3D0x258 syms=3D[0x= 8+0x750+0x8+0x409] /boot/kernel/zfs.ko text=3D0xa3e88 text=3D0x1c8828 data=3D0x25908+0x1589= 90 syms=3D[0x8+0x2fa48+0x8+0x29ff3] =E2=80=8B Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 No valid device tree blob found! WARNING! Trying to fire up the kernel, but no device tree blob found! EFI framebuffer information: addr, size 0x430000000, 0x1d4c00 dimensions 800 x 600 stride 800 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 ---<>--- KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2020 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994= The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-CURRENT r365058+d8f4c1a833bf-c271116(master) GENERIC arm64 FreeBSD clang version 11.0.0 (git@github.com:llvm/llvm-project.git llvmo= rg-11.0.0-rc1-47-gff47911ddfc) WARNING: WITNESS option enabled, expect reduced performance. VT(efifb): resolution 800x600 module firmware already present! KLD file zfs.ko is missing dependencies module_register: cannot register tmpfs from kernel; already loaded from = tmpfs.ko Module tmpfs failed to register: 17 real memory =3D 137167400960 (130813 MB) avail memory =3D 133608034304 (127418 MB) FreeBSD/SMP: Multiprocessor System Detected: 32 CPUs random: unblocking device. ... ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-3 ATA SATA 3.x device ada0: Serial Number 191020FD543B ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 457862MB (937703088 512 byte sectors) ... sysctl_unregister_oid: failed(22) to unregister sysctl(tmpfs) Release APs...done Trying to mount root from zfs:zroot/ROOT/13.0-CURRENT-20200901.193810 []= ... Mounting from zfs:zroot/ROOT/13.0-CURRENT-20200901.193810 failed with er= ror 2: unknown file system. ... da0 at umass-sim0 bus 0 scbus4 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: Serial Number 512436A8 da0: 40.000MB/s transfers da0: 2006MB (4108288 512 byte sectors) da0: quirks=3D0x2 .. Loader variables: vfs.root.mountfrom=3Dzfs:zroot/ROOT/13.0-CURRENT-20200901.193810 =E2=80=8B Manual root filesystem specification:=20 =E2=80=94 Dave Cottlehuber +43 67 67 22 44 78 Managing Director Skunkwerks, GmbH http://skunkwerks.at/ ATU70126204 Firmenbuch 410811i