From nobody Thu Oct 6 02:38: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 4MjbGP0PMzz4dhvX; Thu, 6 Oct 2022 02:38: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 4MjbGN1GbVz3cpw; Thu, 6 Oct 2022 02:38: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 2962cNRO016854 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 5 Oct 2022 19:38: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 2962cNYO016853; Wed, 5 Oct 2022 19:38:23 -0700 (PDT) (envelope-from fbsd) Date: Wed, 5 Oct 2022 19:38:23 -0700 From: bob prohaska To: Mark Millard Cc: Klaus K??chemann , freebsd-arm@freebsd.org, freebsd-uboot@freebsd.org Subject: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it Message-ID: <20221006023823.GA16472@www.zefox.net> References: <5FFDAA6A-AD8C-4E40-A2EB-4082E5086679@googlemail.com> <38DFEB91-AC60-4FD1-8088-95B0A06C5E5D@yahoo.com> <20221003004624.GA3381@www.zefox.net> <20221004001857.GA7109@www.zefox.net> <62F8D709-BBC3-41C4-B1A9-939B2001BA52@yahoo.com> <1DE565E3-3906-4C53-83C8-EBC20A4E3C95@yahoo.com> <20221005034608.GA12761@www.zefox.net> <1560695E-4D99-40A1-8D62-29EAB24C7997@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: <1560695E-4D99-40A1-8D62-29EAB24C7997@yahoo.com> X-Rspamd-Queue-Id: 4MjbGN1GbVz3cpw 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.07 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.970]; WWW_DOT_DOMAIN(0.50)[]; MID_RHS_WWW(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]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_CC(0.00)[googlemail.com,freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zefox.net]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Oct 04, 2022 at 11:27:00PM -0700, Mark Millard wrote: > [big snip] > On a possible issue: You have > > ugen1.6: at usbus1 > > plugged in. > [snip] > It might be worth experimenting with > avoiding having more plugged in than: > > Boot USB drive (I count your powered hub as part of this) > Ethernet cable > serial console connection > fan > power The buildworld/kernel completed without issue and it seemed to help. Immediately afterward the machine reached S=shutdown, M=mountroot, F=disk detect fail, R=reset SSMSSSSMSSSF Next I set device tree only, per your instructions and it reached RSFRFRFR so I tried ACPI only, reaching FR so I put back DT+ACPI, with result SMMRSSMSSSSSSSMFRS at which time I pulled out the FT232 usb-serial link. That reached SSMSSSMSSMMMSSFFSFSSSFSSS Looks to me like pulling the FT232 didn't help, DT+ACPI works better than either alone. 35 shutdown -r 10 mountroot failures 9 disk detection failures That's actually pretty good for the JMS577 enclosure. The world/kernel upgrade to stable/13-5ec288b57: Wed Oct 5 16:55:43 PDT 2022 seems to have been helpful (not sure why), omitting the FT232 didn't help much, if at all. Compared to yesterday I'm tempted to call it progress. One thing I forgot to mention: The microSD formerly hosted a RasPiOS installation. I simply cleaned out the DOS partition and installed the EDK2 files. At one point during buildworld I ran gstat and saw reports of zero activity for the microSD partitions. I didn't think the kernel would even notice them. Is that to be expected? Thanks for reading! bob prohaska