From nobody Tue Oct 11 02:37:21 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 4Mmg184kkqz4fbBV for ; Tue, 11 Oct 2022 02:37:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-8.consmr.mail.gq1.yahoo.com (sonic308-8.consmr.mail.gq1.yahoo.com [98.137.68.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 4Mmg171mZNz3pRl for ; Tue, 11 Oct 2022 02:37:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665455848; bh=MCTt4E0XpMFNyqhr3md5Z5QmrKqwCxIW04kRZJ3QQ50=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=jIAh+JkbUPayfXItlLR9jgKj6mbkKJGTJFsgXro7xX+OAh8kKysIwJCNTYf9d+aNp7niAbznAYSMShB1w8kZm/UvEx1C9WlD5qgEpOIfGkZyCG+WzM5UmibaU/iNkTMiKPzaIdkT71nNadein4X9vxAlnqmFSru4rfB4dL6v7QjvpQ9sGQyzaLicBKkwgEj3yOInKjdler4qxyJdhvEcA1AT5/w4FXgvA3gemPylvbeLTbKfVfHNwVXfFTLstLMNMeDLPJ4B4mjfu9DSwI7zFFUImtE7ZZj93lYiTenzWlUFzYIjVkQLmcqbmP2XH3wc+6NhXmDrtuxHwH/kyT4KRw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665455848; bh=SYcBstmZh8JNW7fPCW+2nBEX89PDo9ucIglXIGl2jqA=; h=X-Sonic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d3yw9sRRCC_FuwpbqQxWl3MkN1Df.ZK1G_FI3ACwGrb163uORFJmUvuNe36CH 6H6m7yosQ8Qv9aeDnxgYyfZWoDvDy3RzF9oZcf0j9XQBC7vud_6mskBH9AP9qqnS11dzFHVKO26k GvcPQBdIQROy8BTlsSc3dkLhwUlE_i5LLerjz4D_gQnKKV45bHr_fH0kjhfol4bz834Pg.STK4.K mxQt7GxuvyhpsQXQuyi4JNosSWV6jDxl.TzSP24MuQBAJ_.04Atcp56aEiAtpll.1Tpma.bAZjq. mZI6TPMFttNNkRNG_bID.hg0jFbFqsSfmOnu9C7y2Slknpvq7Xa80K1cyq3WcxOASYTLYo0MZxKS S0_1nu_Hfb5cTNk_eFSx91Sb77RQYa5GPGlKOkj9SrrbI0Bn7wshppqQCboUHAb_8kFP4Kgh1C_B YL3MFoWB7bAPHHvMFCt1kDM45_kwJE.Y.kctRH1NTxqqg5N2d.IkzfdeHHBf51bhFs6iNsNQPwzS k17f3WIvh0aCWkFjqySScxDt1A09Ua0ONUlz.dJvBAruMW1CFXLn2Zt5qJfClQ8KWPqySOkHK6wz ZzQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Tue, 11 Oct 2022 02:37:28 +0000 Received: by hermes--production-bf1-585bd66ffc-hkqwj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 54d7420a8f3725e92a4f125b5c79a295; Tue, 11 Oct 2022 02:37:24 +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: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it From: Mark Millard In-Reply-To: <376089E4-8450-4842-B24D-1D6334D504CC@yahoo.com> Date: Mon, 10 Oct 2022 19:37:21 -0700 Cc: freebsd-uboot@freebsd.org, freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <3AA3A257-50DA-4896-84CF-1339AF7F3854@yahoo.com> References: <20221003004624.GA3381@www.zefox.net> <20221004001857.GA7109@www.zefox.net> <62F8D709-BBC3-41C4-B1A9-939B2001BA52@yahoo.com> <20221004192707.GA11488@www.zefox.net> <6B44FACC-AECE-4BF5-9CCD-72F0056D0F88@yahoo.com> <20221007022121.GA22533@www.zefox.net> <20221009040903.GA1584@www.zefox.net> <20221010002828.GA4232@www.zefox.net> <56AFA741-6370-4E21-A146-D33E26CD1228@yahoo.com> <79FC26F6-7023-473B-B59B-2A80D97572EF@yahoo.com> <376089E4-8450-4842-B24D-1D6334D504CC@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Mmg171mZNz3pRl X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=jIAh+Jkb; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.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)[-1.000]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; 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.68.32:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; 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.68.32:from] X-ThisMailContainsUnwantedMimeParts: N [Summary of armv7 experiments: it looks like the RPi2B v1.1 armv7 support is broken on FreeBSD's main [so: 14].] On 2022-Oct-10, at 00:08, Mark Millard wrote: > On 2022-Oct-9, at 21:44, Mark Millard wrote: >=20 >> On 2022-Oct-9, at 19:29, Mark Millard wrote: >>=20 >>> On 2022-Oct-9, at 17:28, bob prohaska wrote: >>>> . . . >>>> Is it possible to boot ARMv7 on a Pi3 or Pi4? >>>=20 >>> There is no ARMv7 EDK2 so far as I know. So the ARMv7 U-Boot would >>> need to be in use U-Boot and the ARMv7 RPi* firmware files would >>> need to be present. >>>=20 >>> https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/ (the end of >>> the BETA) is from this year. Prior to that the official support was >>> all ARMv7 or ARMv6 based. >>>=20 >>>> That would let me >>>> set up a single SATA drive that could be tested on any host in >>>> my collection with any candidate USB-SATA bridge.=20 >>>=20 >>> As I understand, such could work. But I've not tested such >>> combinations. I doubt that those FreeBSD folks that developed >>> the RPi4B support did much testing of armv7 use then or since. >>>=20 >>> I'm not sure how much RAM would be put to use on a RPi4B with >>> more than 2 GiBytes of RAM. >>=20 >> My experiments indicate that the armv7 u-boot ( u-boot-rpi2 ) >> does not deal with the RPi4B's USB: >>=20 >> U-Boot 2022.04 (May 13 2022 - 23:52:35 +0000) >>=20 >> DRAM: alloc space exhausted >> 947 MiB >> RPI 4 Model B (0xd03114) >> Core: 195 devices, 9 uclasses, devicetree: board >> MMC: mmc@7e300000: 3, emmc2@7e340000: 0 >> Loading Environment from FAT... Card did not respond to voltage = select! : -110 >> In: serial >> Out: serial >> Err: serial >> Net: No ethernet found. >> starting USB... >> No working controllers found >> Hit any key to stop autoboot: 0=20 >> Card did not respond to voltage select! : -110 >> MMC Device 1 not found >> no mmc device at slot 1 >> MMC Device 2 not found >> no mmc device at slot 2 >> starting USB... >> No working controllers found >> USB is stopped. Please issue 'usb start' first. >> starting USB... >> No working controllers found >> . . . >>=20 >> Also, if I had a EtherNet dongle plugged in, it did not >> even get that far. Note the "No ethernet found" as well >> (no dongle present). >>=20 >=20 > My experiments with: >=20 > A) An RPi2B v1.1 (so actual armv7) > and: > B) An RPi3B (so aarch64, but a pre-RPi4B design) >=20 > are incomplete but both work the same for as far > as I got them to go. I got them to: >=20 >=20 > . . . > Using DTB provided by EFI at 0x7ef6000. > Kernel entry at 0x36a00200... > Kernel args: (null) >=20 >=20 > and there is no more output. >=20 > This means that the following all happened: >=20 > A) RPi* firmware got U-Boot started. > B) U-Boot got the FreeBSD loader started. > C) The FreeBSD loader got as far as those messages > after loading the kernel. >=20 > Beyond that I do not know what is going on. >=20 > Still, unlike the RPi4B, the RPi3B looks to be handled > by the armv7 context (at least for as far as I got). >=20 >=20 Well, I tried: FreeBSD-14.0-CURRENT-arm-armv7-GENERICSD-20220930-42dc8696df5-258315.img and I get the same sort of hangup on both the RPi2B v1.1 and the RPi3B when booting with the FreeBSD loader, kernel, and world on the USB media. I've tried 2 types of USB media, both got the same result. (microsd card media is involved in the early stages.) So I tried using just microsd card media produced with dd: A) The RPi2B v1.1 hangs the same sort of way again. There is no .dtb for the RPi3B unless added to the microsd card. So adding it and trying: B) The RPi3B hangs the same sort of way again. So it looks like RPi2B v1.1 armv7 support is broken on FreeBSD. As I remember, HPS's patch is not in place yet in stable/13 . =3D=3D=3D Mark Millard marklmi at yahoo.com