Date: Wed, 2 Sep 2020 14:01:30 -0700 From: Navdeep Parhar <nparhar@gmail.com> To: Dave Cottlehuber <dch@freebsd.org>, Ryan Moeller <freqlabs@freebsd.org>, Matthew Macy <mmacy@freebsd.org> Cc: freebsd-current@freebsd.org, freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: [openzfs] r365058 arm64 uefi boot fails with "unknown filesystem" after launching kernel Message-ID: <a13cabae-c99e-6dc7-f779-a503f5004873@gmail.com> In-Reply-To: <c2c0eff7-18dc-4d50-97f0-4417684608f1@www.fastmail.com> References: <c2c0eff7-18dc-4d50-97f0-4417684608f1@www.fastmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Load cryptodev manually from the loader to boot and then add cryptodev_load=3D"YES" to your loader.conf. Regards, Navdeep On 9/2/20 1:58 PM, Dave Cottlehuber wrote: > hi Matt, Ryan >=20 > Something goes awry after loading kernel & zfs drivers, at point of mou= nting the root filesystem from boot env - unknown filesystem. >=20 > Running ? to show available fs doesn't show zfs here, but as we loaded = kernel already from zfs this is confusing. >=20 > Any ideas? >=20 > 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 >=20 > Additionally at this point, it doesn't appear to be possible to boot/mo= unt 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. >=20 > full dmesg/logs here - https://dpaste.org/iwRd , trimmed below.=20 >=20 > svn path=3D/head/; revision=3D365058 , commit 52a2c0f >=20 > 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,GP= T,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,0x= 64000)/\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,BE= 9634BF-D684-11EA-B300-001B21E07D7B,0x28,0x64000) > Setting currdev to disk1p1: > Trying: PciRoot(0xFF)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)/HD(2,GPT,BE9A15= 81-D684-11EA-B300-001B21E07D7B,0x64800,0x2800000) > Setting currdev to disk1p2: > Trying: PciRoot(0xFF)/Pci(0x1,0x0)/Sata(0x0,0xFFFF,0x0)/HD(3,GPT,BEA23F= FC-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 sy= ms=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+0x7= 50 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 = syms=3D[0x8+0x32e8+0x8+0x21ae] > /boot/kernel/mlx5.ko text=3D0xc369 text=3D0x23e24 data=3D0x1b50+0x94 sy= ms=3D[0x8+0x5100+0x8+0x3c65] > /boot/kernel/fusefs.ko text=3D0x8236 text=3D0xcb48 data=3D0x3420+0x68 s= yms=3D[0x8+0x4350+0x8+0x4894] > /boot/kernel/opensolaris.ko text=3D0x12c3 text=3D0x94c data=3D0x468+0x6= 830 syms=3D[0x8+0x1050+0x8+0x8bb] > /boot/kernel/mlxfw.ko text=3D0xed2 text=3D0x167c data=3D0x258 syms=3D[0= x8+0x750+0x8+0x409] > /boot/kernel/zfs.ko text=3D0xa3e88 text=3D0x1c8828 data=3D0x25908+0x158= 990 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 > ---<<BOOT>>--- > 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, 199= 4 > 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 llvm= org-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: <Micron 5200 MTFDDAK480TDC D1MH027> 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 e= rror 2: unknown file system. > ... > da0 at umass-sim0 bus 0 scbus4 target 0 lun 0 > da0: <Generic Flash Disk 8.07> Removable Direct Access SCSI-2 device > da0: Serial Number 512436A8 > da0: 40.000MB/s transfers > da0: 2006MB (4108288 512 byte sectors) > da0: quirks=3D0x2<NO_6_BYTE> > .. > 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a13cabae-c99e-6dc7-f779-a503f5004873>