Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Sep 2022 09:05:31 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        freebsd-ports@freebsd.org
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it
Message-ID:  <20220925160531.GA63213@www.zefox.net>
In-Reply-To: <20220922014500.GA46697@www.zefox.net>
References:  <20220919221553.GA33878@www.zefox.net> <9A2A4E83-22F2-4441-82BF-0B8E6718ED34@yahoo.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 21, 2022 at 06:45:00PM -0700, bob prohaska wrote:
> 
> After setting initial_turbo=60 in config.txt the first reboot
> found the disk, the second did not. Running usb reset then
> found the disk, but run bootcmd_usb0 seemingly caused a reset
> that  _then_ found the disk. 

It looks as if u-boot is somehow restarting itself unexpectedly.
This is an RPi3B running stable-13, system and ports up to date
as of yesterday.

Here's an example session following a failed boot attempt:

U-Boot> usb reset
resetting USB...
Bus usb@7e980000: USB DWC2
scanning bus usb@7e980000 for devices... 6 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
U-Boot> usb part

[I think some information about the disk should have been displayed]

U-Boot 2022.04 (Sep 23 2022 - 17:28:32 -0700)

DRAM:  948 MiB

[...usual startup output]

Are there any debug switches for u-boot? I've looked a bit and
what I find is either stale or not implemented. There's a reference
to a "log" command, but it does not seem to be recognized.

It does seem clear that the presence of a timeout file makes no
meaningful difference. Boot succeeds rate is less than 50%

This is using an unmodified u-boot-rpi-arm64 built locally. The
system has no microSD installed, u-boot is started from the USB
disk (which is found by firmware without trouble). 

If setting up a microSD to start u-boot alone would simplify 
matters that seems worth a try. Hints much appreciated! 

Once the machine boots into freebsd it seems to work just fine.
The problem appears to be with u-boot only.

Thanks for reading,

bob prohaska




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