From nobody Sun Oct 2 19:58:35 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 4MgZXj3wGGz4cwWP for ; Sun, 2 Oct 2022 19:58:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-20.consmr.mail.gq1.yahoo.com (sonic317-20.consmr.mail.gq1.yahoo.com [98.137.66.146]) (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 4MgZXh4WpQz3Swj for ; Sun, 2 Oct 2022 19:58:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664740723; bh=8R0T5tGjWzaecCwrg3ipYPIioXPMCO7BhGS509vZYz8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=W4NSs4Dh6DCkt4XjYDhvhLkIRT7q6596CdSr4JUZ36r5rmWaQnNNtvUKcSN7jmFaBghsmDIgLogUhkmkirZRQcl6P0Md3uTLAPCKAAeKRdNOuoV3QDXAl1K46naNi+Nsk5+PLh1tlz5uRdSl+p2NhKgwP2qHwuClX6rbLjVHWNTgxuLaW+S1YpF77PVaNdSJc80F76FYu9Kvtm+WJajDVTIVl2A89wsrkSdB/YbjS/QhPQrPHkglgPoEQUv26qWPk/Vble3ABG4vW2mGoTOJ/G7yofPP4xTDQtbqznWHFQqOwe7rKlrGWY3kh0wDdgqT74rou5Iao3jNOvk4bdKHPw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664740723; bh=HO6paaLza11aSG2uO0xinCcpqfW0OgozYxIHuRbIRSB=; h=X-Sonic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FSey7HYo4zL03t6QGUbn2zKNq1_WgxAJS pLwnJNUo0p8E1UjIdoNYoG9CPU5CUjDTRf_35E5LQsJ3YNYr.arbDtNXHmgne8D2xtom1eEnnfRw wZ5wHh06xJ1RmA6aCFOIg9tXe8MR7bCZHEh9UXHoZ5V22u5Xza8z9yuf7sChAYyQ2cpAbKdzjoxh OyvGdPkQ4bauQ5KcKofWOqIWLvZMMsyLm2TFtho5VFOHFeOdfJWUIs94LrpVtxP4TP.bgueJwucg HKfufTthSpHkER3sVSNnO2W83NumED1.a7s42n5u15xmGWjL3fqih9SSLAN0ciQ_x5SZuQghO7hd r7.CmoV6ZGyHcQaNtL.38M0XIgV3y1Mbb8uj5uBQAd3McxUFedkueXUx6jsNP3UhhvQeRbbNioGb PMJcJ2AMtQvADOyLn6p__cmh4ulQNhEUDSnvUtLiKGFKf6BESLEH2xtes521BwmkcRRYJGXaYJaW em5z9XRq2d6EpfEwnXKesxvP8uOmj1L.BiXUHnY4XwAKiJ01NmD2fsVfqu9FStuSqMuui0BGB19y vgud6v5g- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Sun, 2 Oct 2022 19:58:43 +0000 Received: by hermes--production-ne1-6944b4579f-75kjj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 387255e2e6f705807d02e0e2b83b21a3; Sun, 02 Oct 2022 19:58:37 +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 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: <5FFDAA6A-AD8C-4E40-A2EB-4082E5086679@googlemail.com> Date: Sun, 2 Oct 2022 12:58:35 -0700 Cc: bob prohaska , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <38DFEB91-AC60-4FD1-8088-95B0A06C5E5D@yahoo.com> References: <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> <46226720-D867-4AD3-9559-A4365FAC28C4@yahoo.com> <6DB88FC9-629C-43E6-9673-32640FC547F7@yahoo.com> <20221002182049.GA2255@www.zefox.net> <5FFDAA6A-AD8C-4E40-A2EB-4082E5086679@googlemail.com> To: =?utf-8?Q?Klaus_K=C3=BCchemann?= X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MgZXh4WpQz3Swj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=W4NSs4Dh; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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.66.146: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:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-2, at 12:35, Klaus K=C3=BCchemann = wrote: > Am 02.10.2022 um 20:20 schrieb bob prohaska : >>=20 >> On Sat, Oct 01, 2022 at 02:21:42PM -0700, Mark Millard wrote: >>>=20 >>> http://nemesis.zefox.com/~fbsd/pelorus_console.txt7_orig_fragment >>>=20 >>> still shows all the debug output. It did not >>> avoid the timing changes. >>>=20 >>> You might need to not use either of: >>>=20 >>> patch-common_usb__hub.c >>> patch-common_usb__storage.c >>>=20 >>> and to disable the LOG_DEBUG and DEBUG lines in: >>>=20 >>> patch-common_usb.c >>>=20 >>> via turning them into comments by adding // as >>> indicated below: >>>=20 >>> +//#define LOG_DEBUG >>> +//#define DEBUG >>>=20 >>=20 >> I think the changes were successful, u-boot compiles and >> runs. There's no extra output, and unfortunately only one=20 >> successful reboot so far. Bus scanning seems quite slow. >> Storage devices are rarely found on reset, but usb reset >> does sometimes work. Run bootcmd_usb0 paused for minutes >> at Device 0: and paused again after reporting ..current device. >> No echo from the console, ctrl-C did nothing.=20 >>=20 >> The attempt sequence was >> SRBSPRMRPRRPUPPRRUPUCUUC >> where=20 >> S is shutdown -r >> R is reset of u-boot >> U is usb reset >> P is powercycle >> M is stop at mountroot >> C is run bootcmd_usb0 >>=20 >> The console log is at >> http://nemesis.zefox.com/~fbsd/pelorus_console.txt8_no_debug >>=20 >> It now appears that the run bootcmd_usb0 rather reliably gets >> stuck, with the disk LED on steadily (no activity). Maybe in >> one of the loops seen earlier?=20 >>=20 >> Thanks again for all your help! >>=20 >> bob prohaska >>=20 >=20 >=20 > So if you now reapply the #define DEBUG patches(while keeping the = mdelay-patch) and the reboot issues definitely went away > we have a typical so called Heisenbug, hopefully more or less now a = fixed issue. No. Bob has more than one problem: more problems observed after "1 Storage Device(s) found". The DEBUG/mdelay combination only seemed to cause the "1 Storage Device(s) found" to be at least more reliable, not later stages. It is not obvious if earlier activity contributes or not to the problems observed after "1 Storage Device(s) found". So far nothing has gotten near having things just work for booting without manual intervention, multiple retries being involved sometimes. > Well, USB-boot problems on earlier Pi models( afaik all except the 4) = are commonly known, from defective HW to power cycle issues we will find = a lot of discussions on the WWW and we will see that even the = debug-message =E2=80=9Eis your USB cable bad?=E2=80=9C did fix issues = in some cases. Others applied RNG devices or external clock or even = plugging a mouse fixed it( to change usb enumeration). >=20 > I think with the working u-boot.bin after 1500 successful reboots you = can be sure it=E2=80=99s working =E2=80=A6. > just kidding=E2=80=A6 :-) >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com