From nobody Tue Oct 25 00:50:12 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 4MxCys4YN6z4g5Cb for ; Tue, 25 Oct 2022 00:50:13 +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 4MxCyr488nz3R9T for ; Tue, 25 Oct 2022 00:50:12 +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 29P0oCCi080473 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 24 Oct 2022 17:50:13 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.16.1/8.15.2/Submit) id 29P0oC7u080472; Mon, 24 Oct 2022 17:50:12 -0700 (PDT) (envelope-from fbsd) Date: Mon, 24 Oct 2022 17:50:12 -0700 From: bob prohaska To: Mark Millard Cc: Klaus K??chemann , freebsd-arm Subject: Re: EDK2 on RPi3 was: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it Message-ID: <20221025005012.GA80394@www.zefox.net> References: <136B9190-4C73-45FB-8B41-FEEF7C38A253@yahoo.com> <3A76826B-B4E6-4837-915E-C9E1172BEA20@yahoo.com> <20221021175142.GA62386@www.zefox.net> <0697DE1F-C626-4289-894A-4141CDF1B91B@yahoo.com> <71AB9FAC-EB00-48F0-B0DD-0629C2D3C8C0@googlemail.com> <5719632F-8A92-4784-88D8-EAE3F20F2FA3@yahoo.com> <20221024174930.GA79381@www.zefox.net> 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: X-Rspamd-Queue-Id: 4MxCyr488nz3R9T 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]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_WWW(0.50)[]; WWW_DOT_DOMAIN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; FREEMAIL_TO(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; TO_DN_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[zefox.net]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_CC(0.00)[googlemail.com,freebsd.org]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Oct 24, 2022 at 11:50:11AM -0700, Mark Millard wrote: > > bootcode.bin is only likely to help stages before > u-boot.bin starts. If it makes to to u-boot.bin > starting, bootcode.bin is then likely irrelevant > from then on. > > In fact bootcoce.bin is what loads the start*.elf > that is used. If the start*.elf starts, bootcode.bin > is likely irrelevant past that point. > I've put the console output at http://www.zefox.net/~fbsd/rpi2/20221024/boot_console in case it's of interest. There are a surprising number of what look like complaints/errors, but it boots anyway. > > > The interest I expressed in EDK2 appears to have been misguided, > > or at least premature. I was hoping it might be a more tractable > > replacement for u-boot, but it's equally inscrutable to an amateur. > > > Was this based on mina ports before vs. after: > > QUOTE > author Mark Millard 2022-10-21 21:47:14 +0000 > committer Lorenzo Salvadore 2022-10-21 22:00:03 +0000 > After. Before it failed in the expected way. After, it succeeded, but built edk2 for macchiatobin that wasn't useful. I couldn't figure out how to make poudriere attempt to build the needed rpi3 flavor and didn't find a flavor for rpi2. This was on a Pi4 running -current. It's unclear to me if edk2 offers any advantage over u-boot, at least when u-boot works. I think HPS's changes to usb probably did help, but won't know for a while yet given the erratic nature of the troubles. Thanks for all your help! bob prohaska