From nobody Tue Oct 11 05:50:07 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 4MmlHX3Fwdz4dxxb for ; Tue, 11 Oct 2022 05:50:16 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (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 4MmlHW3GQ1z4677 for ; Tue, 11 Oct 2022 05:50:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665467413; bh=pQ/Rm1TbDzz0F/hvPKZHxFWQ5xCoLfz4mIUrOC1B+Io=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=uiSipAtHnIzxamq5L5oIC3GPK+zkHlqnlOdZuIyhpxbWiqCSmtNZma6VehvsPD8IJj1SCL4FXYJ3JKUgvI5uyS59c6vyKBcUyJTsulgYxRg2h6oNvkXQxFbSbzaT3BFayZt43U3hjUc4zXh+rgB/a7j/nG6b65R+9YTWdiRwBGbOE9tL0JbwbnDzZFGi8UUzdqn+Ko3h5sQmHklgp6Avb1zybt3h36pufCo7v1uAUh/zaY3mTWjLnhoGATUmdxtPVL21W5WLXq5q9ppFB5SwYGPbOOBeB0mjBiMaBo4h1gdA94xxHjFu9SyTCxbmN4Aa4LCptrnNySObC+3Qt+8DgA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665467413; bh=GFQDCthW/Lh+x4M+t8OIT+u6VlIjqUK0XDCWoBA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pIVaB6QUMlvn3wfDpRhB5NAW347bEiklsGMQkk.rNyubWFoO7xI5vi2_ oqcwWoArB4R4_L7WvQEn98hhgTa.yipWesgsB.jq_2ubPEypOnwvQSlKuGD8YId5WuezD6SQS69k nyNdCzN9210f565n2eEPx1uzKYHqr_mZRApa_ZB2I8..GGx2zDgZEaFNEWz8krog._DyRyFTO3FF os7bH8W3t2D25SvPt8OZSXVtOs43gHAzn6HVy.FegOSrMkEDHBT0pfsGJXyvsgQaA7UIy0IXg9y8 6gJ9o39nnE9KbXgo9dOyiDW4yAnIjzPo6UQREHjEGCEGS5PDCYrsIQCM8.CKeJT01Kk3ipwDXK0d _I0HwFG4GWs6R6wQDPP5iv9896MJWHpftR02pT3WEM6StiFsilW2rLh5ubdiv5ahWuepsx4xs6hP 5fzS8tbvNatOslF7aYIggAdEt5fV2qlaA3wpbvhqXaJEtNbvZ1_KYg8AZ7a3NH9YX74gwwfb421o A_F9WM2MP9_YnwVr8uVnfS0ovAAgEJlKVSrqVN6yu_V10kcNjshCx1lL97KQ0HG_2tOXljCSKpu5 E X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Tue, 11 Oct 2022 05:50:13 +0000 Received: by hermes--production-ne1-5db649d989-rdwc8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 79109e3134296a6433abcfb84f0ff88c; Tue, 11 Oct 2022 05:50:09 +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: FYI: FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20220930-42dc8696df5-258315.img is broken for RPi2 v1.1 (so: armv7) From: Mark Millard In-Reply-To: Date: Mon, 10 Oct 2022 22:50:07 -0700 Cc: freebsd-arm , bob prohaska Content-Transfer-Encoding: quoted-printable Message-Id: References: <6B46F46A-2CAF-42C9-9A04-63567D7DB9B2@yahoo.com> To: Warner Losh X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MmlHW3GQ1z4677 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=uiSipAtH; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.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)[yahoo.com,reject]; 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)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.206:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.206:from] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-10, at 21:08, Warner Losh wrote: > On Mon, Oct 10, 2022, 10:00 PM Mark Millard wrote: > [Summary: it looks to be FreeBSD main's EFI loader that is > at issue for armv7 RPi2B v1.1 booting not working.] >=20 > On 2022-Oct-10, at 20:04, Mark Millard wrote: >=20 > > I put: > >=20 > > = FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20220930-42dc8696df5-258315.img > >=20 > > on a microsd card via dd and tried to boot a RPi2 v1.1. it > > hung up after: > >=20 > > Using DTB provided by EFI at 0x7ef6000. > > Kernel entry at 0x36a00200... > > Kernel args: (null) > >=20 > > (A "-" might show in the next line.) > >=20 > > So I tried: > >=20 > > = FreeBSD-13.1-STABLE-arm-armv7-GENERICSD-20221007-d497b97e902-252653.img > >=20 > > on the microsd card instead. It worked just fine. (Thus the > > RPi2B v1.1 is not broken.) > >=20 > > I did this experiment because recent testing for other > > reasons of somewhat older main vintages that I'd built > > also showed such failures. This test shows official > > builds also have the problem. > >=20 > > I've no clue how long this issue has been around. It > > been a very long time since the RPi2B v1.1 had been > > powered on. > >=20 > >=20 > > Note: The arm-armv7-GENERICSD images include the RPi2B > > v1.1 related RPi* firmware and u-boot, in addition to > > an installed FreeBSD EFI loader and a kernel and a > > world. Historically it was supposed to just work for > > RPi2B v1.1's.=20 >=20 > I mounted the main [so: 14] media to /mnt and > copied /mnt/EFI/BOOT/bootarm.efi to > /boot/msdos/EFI/BOOT/bootarm.efi . >=20 > The result makes the 13.1-STABLE media fail in > the same sort of manor as 14-CURRENT did. >=20 > So I tried an experiment going in the other > direction: copying 13.1-STABLE's > EFI/BOOT/bootarm.efi into a main [so: 14] > context that had been failing to boot. > It then boots fine. >=20 > main's armv7 EFI/BOOT/bootarm.efi is broken, at > least for RPi2B v1.1 systems. >=20 > Can you write a brief summary so I can recreate? This is an independent report from the exchange with Bob P. about his overall problems. This has its own subject text. There is not much to this specific report. Messages with other subjects should be ignored for this issue. USB media is not involved here: a microsd card is sufficient to see the problem. > And are you sure it's a booting issue and not a console issue? No clue for your distinction. But, being serial console based until ssh is possible for my context, I classify serial-console-broken as a booting issue. (For example, not being able to identify the DHCP address assigned if it did make it that far.) It may be that the snapshots need to be modified to deal with EFI loader changes --instead of changes to the loader needing to be made. I'm not trying to specify which. > I can't make heads or tails of this whole thread. I need something = simple, that's like 5 steps with version numbers. The images listed in the above are the official snapshots. I've no way to be more explicit than the file names of the official snaphot images. The use of 20220930 (date) instead of 20221007 for main's snapshot was an accident and I could try the one with the more recent date if needed. If you have RPi2B v1.1 (so: armv7) access, just try to boot: FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20220930-42dc8696df5-258315.img via serial console usage, no video connection present. (I did not try a video connection as that is not my type of context.) To make it work for that context, replace the EFI/BOOT/bootarm.efi by the one from: FreeBSD-13.1-STABLE-arm-armv7-GENERICSD-20221007-d497b97e902-252653.img and then retry booting the result. =3D=3D=3D Mark Millard marklmi at yahoo.com