From nobody Wed Sep 21 17:50:26 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MXmCk0m4bz4d7Dv for ; Wed, 21 Sep 2022 17:50:26 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MXmCh5hMVz3WqB for ; Wed, 21 Sep 2022 17:50:24 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 28LHoQr7045602 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 21 Sep 2022 10:50:27 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 28LHoQKb045601; Wed, 21 Sep 2022 10:50:26 -0700 (PDT) (envelope-from fbsd) Date: Wed, 21 Sep 2022 10:50:26 -0700 From: bob prohaska To: Mark Millard Cc: freebsd-arm Subject: Re: U-boot on RPI3, sees disk but won't boot it Message-ID: <20220921175026.GA45144@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> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8CC2A42B-21AC-44C6-BD02-44D320CADF63@yahoo.com> X-Rspamd-Queue-Id: 4MXmCh5hMVz3WqB X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [-1.09 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; NEURAL_HAM_SHORT(-0.99)[-0.990]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[zefox.net]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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