From nobody Sat Oct 1 19:58:00 2022 X-Original-To: freebsd-uboot@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 4MfyZT4Dmyz4dsPq for ; Sat, 1 Oct 2022 19:58:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (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 4MfyZS2gMfz3F4s for ; Sat, 1 Oct 2022 19:58:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664654286; bh=By0s1Ze6aXbYMkNUxkPw9h1YPYJBsL8jo17KPoceNkw=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=tBa5UGD1ZhMZNfqXgISZyi0ti1fqpg2y0J3CrZXk/JoOVslxUbc+j9kaCtWviu4/8kFqqu9D+YSjUD82d7sujSB36hdVoEFLiiZd4q/OeUSlxDNvpnBMergdIoesIYBoAUTErS/NDnfY9oRKuHR8X5k1rKo403OjlMAOxVkOsfrNIclkrC7WvNepPNM1/R38SVV7t1LfsDAjnMKh5kQ4VB+7rK9ZjyqplmZx1MG9MzN/NgjwkwQjT4iXSR4YjWEGu8I7mbIwgrAO9K4xJcHjA9zgpJGnExBLX9FYhQAXIek27WyVPpKvKwCbI8SuUtT1UAr6bcvpwcbA0B2sMTwc9g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664654286; bh=cl7dFyigNQz2uH3Np0uvJCPt/CsKGITq1k6aIusJ8yh=; h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1seaTHc5tzXhCFgv2QEZ72q4kR.Wmqq6Q_IAUSS4crZWaDMLqorxkez1F_8lYO0y kf3XM7rYJxPb2Owo4RIhp.f6MPpgz6HimCHTpanwy03tTS_DUvGNGmlkVhiGqSTmCEP9U_.mwx0H mEnAL5Kwfn4A0iewszGBaeDw8vUDYdTSSnWYNEUaj44JYD9iqZ._cEDL1.JJgh.pmI_PZ6d3lR0. ZQhjNSC59UuJE39T03xgRo0jIcD3LHP_e..9e_W9HpuTMoKtqWCCL6rTvjgP4qUw.McB9aQ05WWK dP4HXd6i4SbCgt5xnVJefb2oLGsGsB0gt_HXxa.qk61E6ejqOkDjvmwE66OMpMkGAOt31sXjniXh LV0_SIImapKKns5YaMQYxvutTLYUJQMyNIkogQW8R2800o1KGABUSCZ0TTNVygCjf4JJj8Hs5v9s CKvRGM1VzdYWKlfFyHfBmGv4yMRhz7.bQnjTm6V00m8hMwXorHC3S3anCammVdcz4rI39RlQdcAI yhammmxUCNdoiboxuAuLpLbA0Q_LsmNoyjm6LbmRN9Z99s_8gmwzUaki1Wbfm35p0xjoKOx0w8tS LlSk- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Sat, 1 Oct 2022 19:58:06 +0000 Received: by hermes--production-ne1-6944b4579f-wdnx4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a06b490abc79c6960214c8de43b8cff9; Sat, 01 Oct 2022 19:58:01 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it From: Mark Millard In-Reply-To: <20221001193033.GA98348@www.zefox.net> Date: Sat, 1 Oct 2022 12:58:00 -0700 Cc: freebsd-arm , freebsd-uboot@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <46226720-D867-4AD3-9559-A4365FAC28C4@yahoo.com> References: <62A7FD9D-DFAD-46B2-8681-F6EF0E5AC0DE@yahoo.com> <8CB25EDF-704A-4F86-B0D4-40818291C161@yahoo.com> <20220928234341.GA77046@www.zefox.net> <20220929002131.GA77106@www.zefox.net> <197D3C46-063B-4C67-AB1A-A3A072521D7F@yahoo.com> <6AA65AE6-41F1-405F-A592-7D641EA4C9CF@yahoo.com> <20221001174724.GA98055@www.zefox.net> <20221001193033.GA98348@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MfyZS2gMfz3F4s X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=tBa5UGD1; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; 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]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.147:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-uboot@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-1, at 12:30, bob prohaska wrote: > On Sat, Oct 01, 2022 at 11:32:52AM -0700, Mark Millard wrote: >> On 2022-Oct-1, at 10:47, bob prohaska wrote: >>=20 >>=20 >> Wrong email for the patch in question. Wrong patch used >> as well? (Actually, the log output still has the high >> volume debug(...) messagess, so you did not use the patch >> from the email that you replied to.) > That's possible.... >>=20 >> The email with the patch is Friday's 12:58 PM email about >> the patching involving 3 mdelay(...) calls. >>=20 > At this stage that's possible too 8-( >=20 > Right now sysutils/u-boot-rpi-arm64/files contains > root@pelorus:/usr/ports/sysutils/u-boot-rpi-arm64/files # ls -l > total 24 > -rw------- 1 root wheel 964 Oct 1 09:39 patch-common_usb.c=20 >=20 > which contains 3 references to mdelay.=20 >=20 > -rw------- 1 root wheel 382 Sep 28 21:31 patch-common_usb__hub.c > -rw------- 1 root wheel 362 Sep 28 21:31 = patch-common_usb__storage.c > -rw------- 1 root wheel 291 Sep 28 21:31 = patch-include_configs_rpi.h > -rw-r--r-- 1 root wheel 510 Jul 24 09:31 = patch-lib_efi__loader_efi__console.c > -rw-r--r-- 1 root wheel 169 Sep 30 18:57 rpi_arm64_fragment >=20 > If the sizes/dates are right maybe I copied the wrong u-boot.bin to = /boot/msdos. > If they're wrong a batch send of preferred patches is probably the = best > way to put things right.=20 What you report for behavior below suggests that you got an appropriate u-boot.bin in place. >>> In testing the patch thee seem to be more cases of u-boot getting >>> stuck in a loop, not all of the identical.=20 >>>=20 >>> The first in the script file left the disk LED stuck on with=20 >>> error 22 prominent, the second left the disk LED stuck off,=20 >>> with error 110 repeating. >>>=20 >>> The script file is at=20 >>> http://nemesis.zefox.com/~fbsd/ >>> in file pelorus_console.txt5_concise_loop_fails >>>=20 >>=20 >> As I understand the possible result of the intended >> patch is it might avoid the "0 Storage Device(s) >> found" problem but need not avoid the later -110 -22 >> error code related problems. >>=20 >> So if you no longer get "0 Storage Device(s) found" >> problems, that is progress/good, independent of any >> later issues. Otherwise the mdelay(...) changes are >> probably a waste and would just be reverted. >>=20 >=20 > Out of the last 24 boot attempts there have been 6 > loops and no failures to find a boot device. Given the "no failures to find a boot device", I suggest an experiment of (temporarily?) reverting to the official rpi_arm64_fragment (to disable the U-Boot logging) and seeing how it behaves without the extra messages. The timing changes from the messages could be contributing to some of the behaviors you are seeing. > The > log file is at > http://nemesis.zefox.com/~fbsd/pelorus_console.txt6_more_loops=20 >=20 >> It might not be handy to test lots of examples of >> the "Storage Device(s) found" messages, independent >> of what follows each non-zero one. But that is the >> kind of thing needed to test the consequences of >> the 3 mdelay(...) calls. >=20 > It's one of the few things I'm marginally capable of 8-) =3D=3D=3D Mark Millard marklmi at yahoo.com