Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2022 09:03:28 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it
Message-ID:  <20220927160328.GA71742@www.zefox.net>
In-Reply-To: <3D6CF13E-261D-41D2-AC5B-923C0BF54087@yahoo.com>
References:  <20220921154240.GA37735@www.zefox.net> <8CC2A42B-21AC-44C6-BD02-44D320CADF63@yahoo.com> <20220921175026.GA45144@www.zefox.net> <5DB9C93B-B9E1-418D-ABA3-8A0CFCE85C0F@yahoo.com> <3781CF46-C4F7-4579-8655-B7558B724C0A@yahoo.com> <20220922014500.GA46697@www.zefox.net> <20220925160531.GA63213@www.zefox.net> <DBD238AA-8C65-46D2-87CC-A9875C6959BF@yahoo.com> <20220925193415.GA63733@www.zefox.net> <3D6CF13E-261D-41D2-AC5B-923C0BF54087@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 25, 2022 at 04:43:15PM -0700, Mark Millard wrote:
[snip]
> 
> Because USB3 introduces various differences, some testing
> via the RPi4B USB2 ports is appropriate.
> 

That turns out to be an easy experiment. Here's a summary: 

I have two identical mass storage devices (Seagate Barracuda 1TB)
in identical Sabrent EC-UASP USB-SATA enclosures. One runs an old
installation of -current and is connected to a Pi4. The other runs
a recent 13-stable via a Sabrent USB 3 powered hub to a Pi3B.

Neither machine has a microSD card installed.

For as long as I've had them, the Pi4 running -current has booted
reliably and the Pi3 running 13-stable has failed u-boot's disk
discovery on reboot around half the time. When u-boot succeeded,
the 13-stable system ran perfectly until rebooted. 

After swapping the disks, enclosures and cables between Pi4 and
Pi3 (including the hub) both machines booted on the first try,
every try.

Moving the 13-stable (troublesome) disk to the Pi4's USB 2 port
didn't cause any problems either. The disk continued to boot.
Restoring the original setup restored the boot failures.

The u-boot versions are different: 13-stable uses u-boot-rpi-arm64,
compiled yesterday. The -current disk still uses the u-boot that
came with the snapshot used to set up the disk, reporting
U-Boot 2020.10 (Mar 04 2021 - 04:32:31 +0000)

Config.txt is identical apart from force_turbo=1 on 13-stable,
which didn't make any visible difference when added. 

Using the older u-boot on the 13-stable disk didn't have any 
effect. Are there any other files that alter u-boot behavior?

It's hard to see how the hub's at fault, since it works with 
-current.  

I did look at common/usb.c but it's far from obvious how one
can turn on the logging feature so as to report more errors
to the console.

Thanks for reading and replying!

bob prohaska




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