From nobody Mon Oct 10 07:08:15 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 4Mm94B1vdwz4dhQ6 for ; Mon, 10 Oct 2022 07:08:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-19.consmr.mail.gq1.yahoo.com (sonic306-19.consmr.mail.gq1.yahoo.com [98.137.68.82]) (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 4Mm9486Rn8z3SQP for ; Mon, 10 Oct 2022 07:08:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665385703; bh=3jO0DkKDpBg53kMcjttZ1RGocGlBDfMKdPxbJdIX9mU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=iu3JF4pgQc0Jpq1zygcEqxJbnixxY5/VV6t0aJ+XcnRsN+CpJhVmjn30zi8jS1FvEazKjTjRkTLvKSnRKA2hZtqFWZti3eZmHgQuGI2kPb9ossVNGjFPqUA4C6Ig9WSo26vBp2Zf/h8d1gjKuwflSxO93L7xHgjiLl4HwZhLgK/65MSje1AJqWFAHWHr/HKKXydOzJ4Jjh77LL57FzhBeFOO2n9+z6ntirhzsrkW6x26oXppbNtSzZaupoIYRJf9etHEIwmH8QHj7KW0dF3BqojOTd1uLUXSGcywr4tYAOsmXl+HPaelmiXq3dKn7pt83gXv7EyKF7JtEK/P+31DSQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1665385703; bh=us5cPPY9GnzpawYmupfzzNqZ4AmUL8/vN91NlU7589M=; h=X-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vT2IJtylcO0CtlRdyvLVx4RnoS0r_j.ii.3E BCsgD_rpKoQi9V5TUc24fwvBwoewPAiBF3pfHPpWuYvhvb4yRsYN4faVdf.HjQj0y5gUmljFpAmU muUmgY6e5a.6AvxUhdUV9sifPLI3eZjMtL0ERhgrATSnZROd1yEwXRYChTE0a8X2pAGBFva.B7xq 1AD9uTfpw9P4CytWs09QkkXJpfNS.HrKNxJAS2S6zi48rXu8X41zIQjNbgOvTkhARgn3nQmuD_gb fI9x4qLjb6szZFHHAIoxuhhfmZX6IJ1SsYbxXXB6lgXaWBuRLlrdsmFYtWz1oyDnX_MZGPdkTWhw 3LxaVVZwDuaj2cdwNJ5ALSrgULecgA36EFwvdNVvP4qtkiZzwnc3rz9JBZAH6vRx2Yu1lawuuSI3 0kJReQuvlJ0R27sUt5oWS00x.052TM8ugq3y6GQ2aNum5OSm_rhZIwBKjk4.LdNll7p5IadHE1CB eihAs6leuPW_zrV6LrbdO5_fSda.FrFoijpDXY.GwF2HtrPuoEui09Me0jT96YNK8dzHUeHtSeSg eRQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Mon, 10 Oct 2022 07:08:23 +0000 Received: by hermes--production-ne1-54c586f8df-9fhsr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d6b1f8b35ddf4b7686c5d1bb5b2d9aad; Mon, 10 Oct 2022 07:08:16 +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: <79FC26F6-7023-473B-B59B-2A80D97572EF@yahoo.com> Date: Mon, 10 Oct 2022 00:08:15 -0700 Cc: freebsd-uboot@freebsd.org, freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <376089E4-8450-4842-B24D-1D6334D504CC@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> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Mm9486Rn8z3SQP X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=iu3JF4pg; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.82 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.47 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.97)[-0.968]; 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]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.82:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-9, at 21:44, Mark Millard wrote: > 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 My experiments with: A) An RPi2B v1.1 (so actual armv7) and: B) An RPi3B (so aarch64, but a pre-RPi4B design) are incomplete but both work the same for as far as I got them to go. I got them to: . . . Using DTB provided by EFI at 0x7ef6000. Kernel entry at 0x36a00200... Kernel args: (null) and there is no more output. This means that the following all happened: 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. Beyond that I do not know what is going on. Still, unlike the RPi4B, the RPi3B looks to be handled by the armv7 context (at least for as far as I got). =3D=3D=3D Mark Millard marklmi at yahoo.com