Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2018 23:06:44 -0700
From:      John Kennedy <warlock@phouka.net>
To:        freebsd-fs@freebsd.org
Subject:   Re: Mounting from zfs:zroot/ROOT/default failed with error 6
Message-ID:  <20180727060644.GE75644@phouka1.phouka.net>
In-Reply-To: <20180727031859.GD75644@phouka1.phouka.net>
References:  <20180724012745.GB75644@phouka1.phouka.net> <3596ef16-da50-b26c-b7fd-724ca020cba2@FreeBSD.org> <20180726043937.GC75644@phouka1.phouka.net> <20180727031859.GD75644@phouka1.phouka.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 26, 2018 at 08:18:59PM -0700, John Kennedy wrote:
> ... If I add opensolaris, sort of progress:
> 
> 	Root mount waiting for: usbus0
> 	Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 3 more seconds
> 	Mounting from zfs:zroot/ROOT/default failed with error 6
> 
> Not only that, it looks like it gets me in a non-writing mode:
> 
> 	ZFS WARNING: Unable to open diskid/DISK-73180AA8s2 for writing (error=1).
> 
> ... If I start up with "boot -v", I see some new messages:
> 
> 	GEOM_PART: partition 1 on (mmcsd0, MBR) is not aligned to 4194304 bytes
> 	GEOM_PART: partition 1 on (diskid/DISK-73180AAB, MBR) is not aligned to 4194304 bytes
> 
> Those alternate about 5 times inbetween the second-by-second "error 6" countdown.
> 
> I'm going to rebuild it with that partition aligned and see what happens.


Fixing the partition alignment gets rid of that message, but doesn't get the
system to boot.

I grabbed FreeBSD-12.0-CURRENT-arm64-aarch64-RPI3-20180726-r336739.img and then
rebuilt with that.  That has issues:

	devfs didn't enumerate things like /dev/msdosfs
	ethernet (ue0) isn't showing up as a device (just lo0)
		(kldload ums fixed that)
	umodem.ko didn't find depedency (ucom.ko)

On a plus, it didn't hang.

Even though it was exported and destroyed, a previous incarnation of zroot
is cursing me.  So, have to wipe the card and reburn tomorrow.



An edited /var/log/messages after boot:

...
FreeBSD 12.0-CURRENT #0 r336739: Thu Jul 26 18:05:26 UTC 2018
    root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
...
Preloaded elf kernel "/boot/kernel/kernel" at 0xffff000001786000.
Preloaded elf module "/boot/kernel/umodem.ko" at 0xffff00000178f068.
Preloaded elf module "/boot/kernel/opensolaris.ko" at 0xffff00000178f880.
Preloaded elf module "/boot/kernel/zfs.ko" at 0xffff00000178ffa0.
KLD file umodem.ko is missing dependencies
...
bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> mem 0x7e980000-0x7e98ffff,0x7e006000-0x7e006fff irq 43,44 on simplebus0
usbus0 on bcm283x_dwcotg0
...
usbus0: 480Mbps High Speed USB v2.0
ugen0.1: <DWCOTG OTG Root HUB> at usbus0
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 64GB <SDHC SP64G 8.0 SN 73180AAB MFG 05/2018 by 3 SD> at mmc0 50.0MHz/4bit/65535-block
GEOM: new disk mmcsd0
Root mount waiting for: usbus0
ugen0.2: <vendor 0x0424 product 0x2514> at usbus0
uhub1: <vendor 0x0424 product 0x2514, class 9/0, rev 2.00/b.b3, addr 2> on usbus0
Root mount waiting for: usbus0
ugen0.3: <vendor 0x0424 product 0x2514> at usbus0
uhub2: <vendor 0x0424 product 0x2514, class 9/0, rev 2.00/b.b3, addr 3> on usbus0
Root mount waiting for: usbus0
Root mount waiting for: usbus0
ugen0.4: <vendor 0x0424 product 0x7800> at usbus0
ugen0.5: <Logitech USB Receiver> at usbus0
ukbd0: <Logitech USB Receiver, class 0/0, rev 2.00/24.01, addr 5> on usbus0
...
Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 3 more seconds
Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 2 more seconds
Mounting from zfs:zroot/ROOT/default failed with error 6; retrying for 1 more second
Mounting from zfs:zroot/ROOT/default failed with error 6.

Loader variables:
  vfs.root.mountfrom=zfs:zroot/ROOT/default

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> Trying to mount root from ufs:/dev/ufs/uroot []...
Warning: no time-of-day clock registered, system time will not be set accurately
start_init: trying /sbin/init
ZFS WARNING: Unable to open diskid/DISK-73180AABs2 for writing (error=1).
...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180727060644.GE75644>