Date: Wed, 21 Sep 2022 10:50:26 -0700 From: bob prohaska <fbsd@www.zefox.net> To: Mark Millard <marklmi@yahoo.com> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: U-boot on RPI3, sees disk but won't boot it Message-ID: <20220921175026.GA45144@www.zefox.net> In-Reply-To: <8CC2A42B-21AC-44C6-BD02-44D320CADF63@yahoo.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 21, 2022 at 09:17:31AM -0700, Mark Millard wrote: > > > On Mon, Sep 19, 2022 at 05:26:08PM -0700, Mark Millard wrote: > >> > >> U-Boot resets the bus, re-enumerates the devices, etc. This > >> can time out or otherwise fail despite prior activity by the > >> RPi* firmware that managed to use the device. > >> > >> My NVMe USB SSD media have such issues with RPI4B's, also > >> getting 0 found in U-Boot. This is why I build U-Boot using > >> the patch: > >> > >> # more /usr/ports/sysutils/u-boot-rpi-arm64/files/patch-include_configs_rpi.h > >> --- include/configs/rpi.h.orig 2022-01-22 06:03:55.862541000 -0800 > >> +++ include/configs/rpi.h 2022-01-22 06:03:05.435341000 -0800 > >> @@ -210,6 +210,8 @@ > >> ENV_DEVICE_SETTINGS \ > >> ENV_DFU_SETTINGS \ > >> ENV_MEM_LAYOUT_SETTINGS \ > >> + "usb_pgood_delay=2000\0" \ > >> + "usb_ready_retry=5\0" \ > >> BOOTENV > >> > >> > >> > > I seem to have fumbled the attempt at replicating your patch. It's recognized but fails with: ===> Applying extra patch patches for u-boot-rpi-arm64-2022.04_1 from /usr/ports/sysutils/u-boot-rpi-arm64/files/ No such line 209 in input file, ignoring 1 out of 1 hunks failed--saving rejects to include/configs/rpi.h.rej ===> FAILED Applying extra patch patch-include_configs_rpi.h ===> FAILED to apply cleanly extra patch patch(es) patch-include_configs_rpi.h *** Error code 1 If I open the local patch with vi /usr/ports/sysutils/u-boot-rpi-arm64/files/patch-include_configs_rpi.h it's displayed as: --- include/configs/rpi.h.orig 2022-01-22 06:03:55.862541000 -0800 +++ include/configs/rpi.h 2022-01-22 06:03:05.435341000 -0800 @@ -210,6 +210,8 @@ ENV_DEVICE_SETTINGS \ ENV_DFU_SETTINGS \ ENV_MEM_LAYOUT_SETTINGS \ + "usb_pgood_delay=2000\0" \ + "usb_ready_retry=5\0" \ BOOTENV The text was transferred from your email to vi using copy-paste. The ports were updated last night, might that be the problem? Prior to adding the new patch u-boot-rpi-arm64 built successfully. Thank you! bob prohaska
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220921175026.GA45144>