From nobody Sat Oct 01 16:33:23 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 4Mft291JW1z4cySX; Sat, 1 Oct 2022 16:33:21 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mft282QHqz418R; Sat, 1 Oct 2022 16:33:20 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.16.1/8.15.2) with ESMTPS id 291GXOkB097840 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 1 Oct 2022 09:33:24 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 291GXNet097839; Sat, 1 Oct 2022 09:33:23 -0700 (PDT) (envelope-from fbsd) Date: Sat, 1 Oct 2022 09:33:23 -0700 From: bob prohaska To: Mark Millard Cc: freebsd-arm , freebsd-uboot@freebsd.org Subject: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it Message-ID: <20221001163323.GB97581@www.zefox.net> References: <20220929170927.GB80020@www.zefox.net> <6C5019EC-B4A8-448F-9A85-4A98BC46F7DD@yahoo.com> <20220930002742.GA81169@www.zefox.net> <7A431698-1A8C-44BA-AFA2-EF5BAA69574F@googlemail.com> <924ED901-F9EB-4CFE-8376-1C2653FB6EBE@yahoo.com> <97AB11F6-2F4D-4026-8A96-50FC68B6EF8C@googlemail.com> <20220930214234.GA86711@www.zefox.net> <20221001152242.GA97581@www.zefox.net> <51B729B0-3792-4870-9DEA-3E47F8BCB37F@yahoo.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51B729B0-3792-4870-9DEA-3E47F8BCB37F@yahoo.com> X-Rspamd-Queue-Id: 4Mft282QHqz418R X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [-1.10 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.998]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org,freebsd-uboot@freebsd.org]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[zefox.net]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sat, Oct 01, 2022 at 09:12:23AM -0700, Mark Millard wrote: > On 2022-Oct-1, at 08:22, bob prohaska wrote: > > > On Fri, Sep 30, 2022 at 05:51:03PM -0700, Mark Millard wrote: > >> > >> By the way, it looks like having the line: > >> > >> CONFIG_CMD_LOG=y > >> > >> in files/rpi_arm64_fragment would try to build the > >> log command into U-Boot. > >> > > > > Done and working. Now to learn how to use it. > > Good. > > Have you tried the updated patch-common_usb.c that > has the 3 mdelay(...) adjustments? Does it lead to > avoiding the problem? Any change in observed > behavior? > > Not yet. However, with logging enabled (but still not understood) there are more mountroot failures. Here's a list of tries, where S means I issued shutdown -r P means I had to powercycle R means I issued a reset to u-boot L means the Pi got stuck in a loop U means usb reset was issued M means the Pi stopped at mountroot (self-reset) B means I issued a boot at the loader prompt The sequence was: PRSSSSBSSSSULPMSSM I've placed the log script at http://nemesis.zefox.com/~fbsd/ with mountroot in the filename. I'll try your patch next. Thank you! bob prohaska