Re: Mountroot problems on RPi3/aarch64

From: Mark Johnston <markj_at_freebsd.org>
Date: Wed, 01 Jun 2022 18:25:56 UTC
On Wed, Jun 01, 2022 at 10:28:50AM -0600, Warner Losh wrote:
> On Wed, Jun 1, 2022 at 10:17 AM Mark Millard <marklmi@yahoo.com> wrote:
> 
> > On 2022-Jun-1, at 08:41, bob prohaska <fbsd@www.zefox.net> wrote:
> >
> > > Since about 05/29 mountroot has been failing on a Pi3 self-hosting
> > -current,
> > > using a usb mechanical hard disk.
> > >
> > > Anybody else seen this sort of behavior?
> >
> > You do not report much context. FreeBSD version? UFS? ZFS?
> > And so on.
> >
> > However, there has been today (for main):
> >
> > git: bc218d89200f - main - Two bug fixes to UFS/FFS superblock integrity
> > checks when reading a superblock
> >
> > that is for fixing boot problems in UFS contexts. See:
> >
> >
> > https://lists.freebsd.org/archives/dev-commits-src-main/2022-June/006977.html
> >
> > This is for fixes related to the 2022-May-27 change:
> >
> >         • git: 076002f24d35 - main - Do comprehensive UFS/FFS superblock
> > integrity checks when reading a superblock. Kirk McKusick
> >
> 
> I'd expect these to fix only the boot loader issues, not the mountroot
> issues, but it wouldn't hurt to try...  p3 is aarch64 which is UEFI which
> had the right MAXPHYS in the boot loader...  though since the change is in
> the tree, it wouldn't hurt to try it...

At least in my case (a filesystem created with makefs), one of the bugs
fixed by that commit caused mountroot to fail, but the loader was fine.