From nobody Wed Sep 28 02:13:03 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 4Mcg552nxSz4V6q5 for ; Wed, 28 Sep 2022 02:13:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (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 4Mcg541LHVz3YxX for ; Wed, 28 Sep 2022 02:13:12 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664331190; bh=UF7qBiDqQz1P9sVCgYP6hZnaizmxisQLl/Mz1EfRoPQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=KMpXFFZGR/jUTQc0/cPYhA3XbK5MyB2SDjw8RfJ4wijL6+OmUNn7sE7JX6zwSeBj8fZq48yht4SA5zwwBN5lJoMebQj2ta4voi9XlmguQO80qtUS282LAmPUzVpXL3KXcCxdiKKEdC/tRDJ29ycMu6Wd/HYAYZjv+4EkIUNIIxnWkK4FovyE7l0Pq7QePVdIJxolDjLmHcZO64fmTVHtPXXI5zyGMrqHXJ9jJ+muw4+bxxM52ZiRjZN/mebVBld4lLr1HgKAgDZVmloJMWDGAOmjRPzDWqDDB36P0dAZKMiXkpQKeJvJH+M9BPUIcwcJuNtEFaUgmF6LbUV9samtLA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664331190; bh=R20BxY9lphdpaiTaU313sM0sEzZyMkDMvM/E7VVMexm=; h=X-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a2ORGaVwbIZ3ZW5fLQm3g9fubrF tTB_KQspO3d.iZYZrB3YymzbvivcPKbXIk4HumiTKpc4hi3XrbGuFSgV0O1Ixcnzx8G30ijIOCG_ zigPl85F80_2uD7gkohF_ddiKHFInAwvnOQEp.TIVyVIuDybuJv4K12UYmIX1X8Vs20iHxNMPSCf vfAsBXyopfbyg7UKvjD5sXT0YZP8c4j6aFq3jH8oJp0agpHKLwodbBv2jkYyl_J2BwqB.lDf2eNN qYiiYQXAVaDGOtxF.i_Q0zJ6nSJxMB7a0hk2d94kVZcFGgBUHjDO69U3b3WwhBRl.u3WmqYL4pFb 2AMgUAsaDoebV5QxDdcoSEqOzQ.fMhsS4Sh9xCPf27beyNxilgtPMf5PSYya3AEdVQKOYvawZK9_ w61Q9XGKFr5unMoWMmO_mZg8oV9tzz6W_CShTYL1SwAfTv3JnnvPhXrvSQ6RaIK_XlQe.fLQFeXA 7_NHnpLZ81ZOOezn.uItir.rLXMHQlkiw_Q.l.EnUfQRIoC7l1fZeA83_OBZ8m0dK3zY3C2OEHC0 S5Ajr9maR X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Wed, 28 Sep 2022 02:13:10 +0000 Received: by hermes--production-bf1-759bcdd488-4bs5n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 4b7523ce67b2a23cdd1a1ebacebcf575; Wed, 28 Sep 2022 02:13:06 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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: <20220928015721.GA73356@www.zefox.net> Date: Tue, 27 Sep 2022 19:13:03 -0700 Cc: Klaus K??chemann , freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: <67C09E9F-AD1D-4D0D-9E6F-9C1B046D8952@googlemail.com> <4154AFCB-7428-4005-843A-4EF8C0EBCCB8@googlemail.com> <9A3609DF-D873-4712-A61D-C351C162EF2A@googlemail.com> <61CFA9D4-8DFD-41C5-A2B4-E5B3CD78C327@yahoo.com> <650FD030-783D-46C4-8CC9-50D608569898@yahoo.com> <81C8A094-8492-41DC-A74E-486A9225A2A3@googlemail.com> <760FE9D5-7A1D-40C2-B4CC-E90B300F5B3B@yahoo.com> <20220927232930.GC72077@www.zefox.net> <9F57D5D0-F715-4DD2-A05C-FB2B9E8B5C30@yahoo.com> <20220928015721.GA73356@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Mcg541LHVz3YxX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=KMpXFFZG; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.84 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.48 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.995]; NEURAL_HAM_SHORT(-0.99)[-0.989]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.84:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.84:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[googlemail.com,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-27, at 18:57, bob prohaska wrote: > On Tue, Sep 27, 2022 at 05:14:54PM -0700, Mark Millard wrote: >> On 2022-Sep-27, at 16:29, bob prohaska wrote: >> >>> On Tue, Sep 27, 2022 at 03:27:10PM -0700, Mark Millard wrote: >>>> . . . >>> . . . >>> U-Boot> usb reset >>> resetting USB... >>> Bus usb@7e980000: dwc2_usb usb@7e980000: Can't get reset: -2 >>> USB DWC2 >>> scanning bus usb@7e980000 for devices... 6 USB Device(s) found >>> scanning usb for storage devices... 1 Storage Device(s) found >>> U-Boot> >>> >>> Issuing >>> U-Boot> run bootcmd_usb0 >>> >>> Device 0: >>> >>> [tens of seconds pause, looks like u-boot started over] >>> >>> U-Boot 2022.04 (Sep 27 2022 - 15:47:57 -0700) >> . . . >> >> Do you have RPi* firmware debug output ennabled such that >> you would see messages from it if the RPi* firmware started >> over? >> > I do now, enable_uart=1 is set in config.txt Good. >> In other words, can you tell if . . . >> >> A) The RPi* firmware and then U-Boot both restarted >> vs. >> B) Just U-Boot restarted, not the RPi* firmware? >> >> If you can tell, which was it? >> > Looks to me as if A) is the case. After the > > Device 0: > > line comes > > Raspberry Pi Bootcode That indicates that U-Boot did not initiate the reboot of the RPi3B: there should have been messages from U-Boot for it being about to make such a request. This again looks like a possible power problem where the RPi3B uncontrollably restarts. Even a very short power problem can lead to such. Another possibility is if the RPi3B firmware has a watchdog running that initiated the reset after something took too long in the watchdog's protocol for monitoring progress/activity. I do not know a way to get evidence for which. > Read File: config.txt, 239 > Read File: start.elf, 2952960 (bytes) > Read File: fixup.dat, 7314 (bytes) > MESS:00:00:21.191824:0: brfs: File read: /mfs/sd/config.txt > MESS:00:00:21.196253:0: brfs: File read: 239 bytes > MESS:00:00:21.252921:0: HDMI0:EDID error reading EDID block 0 attempt 0 > > The machine is headless, so I think the HDMI errors are normal. Yep. > Following the self-inflicted reboot the machine reached multi-user. > > I'll see if I can figure out how to apply your patches shortly. Like when you tried my usb_pgood_delay related patch, you put the files in the files/ directory, allowing the one replacement to happen. (I do not cover the attachment to file conversion part of the sequencing for your context. As I understand it went fine last time.) === Mark Millard marklmi at yahoo.com