From nobody Wed Sep 21 18:52:33 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 4MXnbX5BVZz4dGWM for ; Wed, 21 Sep 2022 18:52:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-24.consmr.mail.gq1.yahoo.com (sonic304-24.consmr.mail.gq1.yahoo.com [98.137.68.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MXnbW4bxPz3csH for ; Wed, 21 Sep 2022 18:52:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663786358; bh=CiXQ1s4aOJyD5awZ+sGVjfhGLwpk4YB7KfVo1iPYhc4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=hm6+0N0DYmJaC2EUitzp7e2HtFpweyIAfxMExyEd/cEwvGUZ2bJyznUp0kAUP4FEuVU9ajh4rWpyVxg2ZWDb2+ygik8PaRbENKNCUMlYIKkiPWbDVQDwxyxIjXkAOFp2KVQEQmgzo1g13e1jEN/REJkas310Mo/J9YRtBbCO+ImPLj0S7k2DRPJrcOLBfwOO3Z2lkdyG8F73dUGLporuksajO+jNFUBei7arLbylZMyeSqIJS/csfBsgyqUNsz8m0MpAuD3lrR3+h7/95fDKJkSIekey0cSWHHxWMvhApt5ORuIBYW6RWagJFj3V0WCkNVqlsQuzZnC8YI1rcPH25w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663786358; bh=Vu4+93GKVIcAumzk7Fm87Mg1lahSWkE/i8lntwdBdj0=; h=X-Son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NHGAJzZEsd580OxmvZfTCtguUNKUHcfKtQ5ScJ0wGyxiFtJ. 6pfcWwjH9xH9te0Rni46LyigEBgCcIA6PSmVNXp6SYPsCc0XcldxsoL3SDbvaMzve7YFO..5KZ14 aTBrWPY2TE68b8Xuvi3JZ7jBywyKNxpaZ.x0P1PL6p4RimYneCZNXZ1zpeg7wPFoGMN5TjpaNbKm yIEbeVGH9BlMhqM0cYsfLlh9m7I3QwkJZ5X1f42SP0jd2OHZ4kbc0Ar5x_TQadiISr.hS_lBr1Vt jAQyr6_GIsjqbHNSgBH6KcYbmYpNpUZg41mHFMmPmRCTjm.LRKtvOfdRPWE0Mz.dULyErEe0geM5 U0A.zmlTh9JOUKOVuBrz31zWzNwXvfAc_dP23GyctHuS9V6EIZ8ShtLh5fAyTUJ7Wet.q627XOv6 fjZhx4zEtKGfYRupjKfweqBY4uiBSF9EsOmy5WCncFniJbUY705DK2kQEq4LIm6bh3jrf8caOTmE fU5NEmJ7iPs.207BP2G.2ScjjwcZrSk4Xu3M0_1UkF4Yw_dpwovqAZKi3eEcwSjeDxuCTWjl_p6H 4HVDv X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Wed, 21 Sep 2022 18:52:38 +0000 Received: by hermes--production-ne1-544744cc75-tx7vf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ee350aac7a928448950d4213c9c1c83a; Wed, 21 Sep 2022 18:52:35 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: U-boot on RPI3, sees disk but won't boot it From: Mark Millard In-Reply-To: <20220921175026.GA45144@www.zefox.net> Date: Wed, 21 Sep 2022 11:52:33 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <5DB9C93B-B9E1-418D-ABA3-8A0CFCE85C0F@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> <20220921175026.GA45144@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4MXnbW4bxPz3csH X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=hm6+0N0D; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.205 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.26 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.96)[-0.964]; NEURAL_HAM_SHORT(-0.79)[-0.794]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.205:from]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-21, at 10:50, bob prohaska wrote: > On Wed, Sep 21, 2022 at 09:17:31AM -0700, Mark Millard wrote: >>=20 >>> On Mon, Sep 19, 2022 at 05:26:08PM -0700, Mark Millard wrote: >>>>=20 >>>> 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. >>>>=20 >>>> 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: >>>>=20 >>>> # more = /usr/ports/sysutils/u-boot-rpi-arm64/files/patch-include_configs_rpi.h=20= >>>> --- 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=3D2000\0" \ >>>> + "usb_ready_retry=3D5\0" \ >>>> BOOTENV >>>>=20 >>>>=20 >>>>=20 >>>=20 >=20 > I seem to have fumbled the attempt at replicating your patch. It's > recognized but fails with: >=20 > =3D=3D=3D> 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 > =3D=3D=3D> FAILED Applying extra patch patch-include_configs_rpi.h > =3D=3D=3D> FAILED to apply cleanly extra patch patch(es) = patch-include_configs_rpi.h > *** Error code 1 >=20 > If I open the local patch with=20 > vi = /usr/ports/sysutils/u-boot-rpi-arm64/files/patch-include_configs_rpi.h > it's displayed as: >=20 > --- 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=3D2000\0" \ > + "usb_ready_retry=3D5\0" \ > BOOTENV The lines that begin with spaces should instead begin with a space and then a tab instead. (Whitespace does not necessarily survive unchanged through E-mail or such.) The space is not from the patched file but the tab is: the first column is a form of instruction indicating what to do for the line. There should be 2 more lines after the "BOOTENV" line. Each has just one space. The 8 in "+210,8" indicates how many lines below are for the specific line replacements. So there should be 8 lines. The lines with the "+" then tab sequence are new lines. The ones with a leading space should have the text after the space matching the original file content: no change but checks for matching context. A "-" then tab line would be for deleting a line if it matches. Similar points go for the other two patches that I sent in later E-mail. I'm unsure about the "No such line 209 in input file, ignoring" message details. But I'd not sorry until the patch file is correct. > The text was transferred from your email to vi using copy-paste.=20 > The ports were updated last night, might that be the problem?=20 > Prior to adding the new patch u-boot-rpi-arm64 built successfully. My ports tree is as of: # ~/fbsd-based-on-what-commit.sh -C /usr/ports/ branch: main merge-base: 7e8044bf1f9999f77ac2e1fc2e688df9250dc9ae merge-base: CommitDate: 2022-09-13 06:28:06 +0000 7e8044bf1f99 (HEAD -> main, freebsd/main, freebsd/HEAD) = graphics/drm-510-kmod: Update to drm_v5.10.113_7 n595518 (--first-parent --count for merge-base) u-boot-rpi-arm64 has not changed since: author Emmanuel Vadot 2022-05-02 15:15:40 = +0000 committer Emmanuel Vadot 2022-05-03 = 08:10:43 +0000 u-boot-rpi3 has not changed since: author Emmanuel Vadot 2022-05-02 15:15:40 = +0000 committer Emmanuel Vadot 2022-05-03 = 08:10:43 +0000 u-boot-rpi4 has not changed since: author Emmanuel Vadot 2022-05-02 15:15:40 = +0000 committer Emmanuel Vadot 2022-05-03 = 08:10:43 +0000 u-boot master has not chnaged since: author Tobias Kortkamp 2022-09-10 17:41:16 = +0000 committer Stefan E=C3=9Fer 2022-09-10 = 17:41:16 +0000 =3D=3D=3D Mark Millard marklmi at yahoo.com