From nobody Sun Oct 02 19:35:42 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 4MgZ2D0gftz4ctGv for ; Sun, 2 Oct 2022 19:35:48 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MgZ2C1y1Rz3RZ6 for ; Sun, 2 Oct 2022 19:35:47 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-ed1-x534.google.com with SMTP id a41so12031927edf.4 for ; Sun, 02 Oct 2022 12:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date; bh=/J+Q/BVj+qJmWco20psMrCNXZrcsNeK6TQBwfyiZs+0=; b=Pr3GyAgSpfXFqujGJMp7kqinOG2k21keFwsw4zz300dyWQ3aOmdVTnVVZ0q1FdXk54 UiOfruID1IPvcaovVmNRUT7pcLtFl/By60u3pPyE+1Kil534CXEWRS11kiK/QrISVIM2 ayhvkwfeFV3zx2FU6QF2oyQmtaZfbpdRt0ABjS69dqg7QR3Lji9GuuIQJVAWi99y+65K 0tEkirnufX59MDYNNdpQ54Hmz66sysfUYmDblPKjtQMO5akoOwdIW4Ylx0dEoXuVkiMN SjudTbZbwKqM7uYCIrN7yQPnTixxU7JG4BUZw3jCFxOU7mOIRZEnpHulKBqC26L93Zcb +O6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date; bh=/J+Q/BVj+qJmWco20psMrCNXZrcsNeK6TQBwfyiZs+0=; b=Kksua/+o3Imwy1+PfYS1c0BWPoomECM6ZwFI5X558OczShIzVgGGMDmpv0nEIoNnY5 TZfz+U4sU3AFOv+M4evUKwn4riumGMV0YK08zqUb8O8TUdmJpalsAYiVmGoEud+sPXLs nkmbiVELeYJgFs0ucgmbtbdosJoJGJqYWPYgUkx5C0IjfnUfM4yR/AFKfcBO2L04gzbx owEDGVHZZ4bArpNwPrwiEeLIIiIKvCCdFAMOSnsGtzADLosPPr5hjFT101gJeGzgJ+Xt mpoiM9C58nkrfh2A6QwCsBSwcyd9zOEkyAsrzhYhrTCaQ7fgI2glh7/dW2TEq0SVvCK8 YbXw== X-Gm-Message-State: ACrzQf1S0xXkRPbal6BDhiE+MDEO8daoEIXVwyQrfmLMPL8+YzSPldmX fJGw6hP8Lfyau9aALBvfRgc= X-Google-Smtp-Source: AMsMyM4IRSDtav9xkaip5DmTPNwlhk+lSg323xhq+p3Vrko8vd3E/XgwJ6IJx7KEvpignGw0Z7Zn/g== X-Received: by 2002:a50:9344:0:b0:448:ce76:7c81 with SMTP id n4-20020a509344000000b00448ce767c81mr16263649eda.187.1664739344974; Sun, 02 Oct 2022 12:35:44 -0700 (PDT) Received: from smtpclient.apple (dynamic-046-114-026-059.46.114.pool.telefonica.de. [46.114.26.59]) by smtp.googlemail.com with ESMTPSA id r20-20020aa7c154000000b004582a37889csm5865292edp.16.2022.10.02.12.35.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Oct 2022 12:35:44 -0700 (PDT) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Date: Sun, 2 Oct 2022 21:35:42 +0200 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> To: bob prohaska , Mark Millard , freebsd-arm@freebsd.org In-Reply-To: <20221002182049.GA2255@www.zefox.net> Message-Id: <5FFDAA6A-AD8C-4E40-A2EB-4082E5086679@googlemail.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MgZ2C1y1Rz3RZ6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=googlemail.com header.s=20210112 header.b=Pr3GyAgS; dmarc=pass (policy=quarantine) header.from=googlemail.com; spf=pass (mx1.freebsd.org: domain of maciphone2@googlemail.com designates 2a00:1450:4864:20::534 as permitted sender) smtp.mailfrom=maciphone2@googlemail.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)[googlemail.com,quarantine]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::534:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[googlemail.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[googlemail.com:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[www.zefox.net,yahoo.com,freebsd.org]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N > 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 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. 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). 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 :-) Regards Klaus