From nobody Tue Oct 11 06:13:48 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 4Mmlps0rk9z4f105 for ; Tue, 11 Oct 2022 06:13:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-8.consmr.mail.gq1.yahoo.com (sonic316-8.consmr.mail.gq1.yahoo.com [98.137.69.32]) (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 4Mmlpq6npSz49b6 for ; Tue, 11 Oct 2022 06:13:55 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665468834; bh=W20HivK0FojZTqoAOYwsSqakVv6WCI1xi9nJkkMWEnM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=gi5saW0dYpCvyvEgNjvNKZkVk/wwDRAk6c5lAPBNfDssvbltnuw2JVVjIEwEqFOZIGW9331NopE20LghvQFiYOW1SmY/gyqjJxGC5kpoOkgi99rvy7iG9+wo2V0QdBhRj3lLcOllE1lCElxfyo9kD0Agv+62uuwZRLu03M/UFADbqEZCWzKgU8kVJEi+SEHRPZZRK02gj9GI6OkHcc/V+92thP6xiTpoLE2f5o/1N7DWLk8SgRiR+aPKs49r4IFqXLElVDwZjGDjePl2QmRf3wCTIOOpBh+ftPdTsglI+BKk1vtw43rHXmIOAZn2jb4qHnBfDOzzSi2yqcVZCSoY1A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665468834; bh=HbKoSWAIbOAKjduGuJbnp5gU2wnhzPo493pXyL53Qin=; h=X-Sonic-MF:Sub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ws_IWiRXEOgLD6oRGUodg y4iR6Ur1zDhM.KgJxxO.IAvopyq3oRZ79sUr3F4rANKxhF0.uUhBJI1QZi6tNCpIVPPd_zcbXpaQ u5aF53xBSlNoG357lPdKB1yGm4yGoKTLcwuSPbZrN8qZ2aDMPoSnpO4WhEdSePJPk3xpTnpNsYVe ky3RAS2Q0atOlej0xe3TN.thQsKspvOzIYAviAj1sl0JBfGWjei_pxOWnaK8xCdd6voccl.4PoOw QOAeREqgSxjSTGwKwyc4JTI8us9ePnkhRcdLv1v6vDSFtjAzBhjXJ9Z90zH3fKNtsfwpbkmdqwOt 4Q.6452UKZ9eGsi.irRDQA11Ee.qSuTHHPQwkoBMDSOQEs7h1lKRWtdfXebmR2zYN.lt7S6rbeBr W9TYEyuLargS16Y3k0zpsgtJhh4zWYDteqJkeJD79wo8WsDiNy.AJzpBQFSHj1YR9GASbBKQJLit d.qtPdpVN0UpSXx1jANxg4x0Tas9IhE2gZR4h6Itf.f8hLwUswR4jwsvs8nJrHc4bsDz1M5.3M4r 3 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Tue, 11 Oct 2022 06:13:54 +0000 Received: by hermes--production-gq1-75cfcccdb-rwsc5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 25330bc66af6e59f0391167b29467360; Tue, 11 Oct 2022 06:13:49 +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 23:13:48 -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: 4Mmlpq6npSz49b6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=gi5saW0d; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.32 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)[-0.999]; 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.69.32: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.69.32:from] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-10, at 22:50, Mark Millard wrote: > On 2022-Oct-10, at 21:08, Warner Losh wrote: >=20 >> 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? >=20 > 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. >=20 >> And are you sure it's a booting issue and not a console issue? >=20 > 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.) >=20 > 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. >=20 >> I can't make heads or tails of this whole thread. I need something = simple, that's like 5 steps with version numbers. >=20 > 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. >=20 > If you have RPi2B v1.1 (so: armv7) access, just try to boot: >=20 > = FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20220930-42dc8696df5-258315.img >=20 > via serial console usage, no video connection present. (I > did not try a video connection as that is not my type of > context.) >=20 > To make it work for that context, replace the EFI/BOOT/bootarm.efi > by the one from: >=20 > = FreeBSD-13.1-STABLE-arm-armv7-GENERICSD-20221007-d497b97e902-252653.img >=20 > and then retry booting the result. I've tried the snapshot: FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20221007-b05b1ecbef0-258483.img and got the same boot failure when it is what is on the microsd card (no EFI loader replacement). I got access to a display and HDMI cable and tried booting with it connected. The last text it displays matches the last text on the serial console: Using DTB provided by EFI at 0x7ef6000. Kernel entry at 0x33800200... Kernel args: (null) - (ignoring, possibly, the "-"). =3D=3D=3D Mark Millard marklmi at yahoo.com