From owner-freebsd-arm@freebsd.org Fri Sep 11 18:25:07 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E4B2F3E2588 for ; Fri, 11 Sep 2020 18:25:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-55.consmr.mail.gq1.yahoo.com (sonic307-55.consmr.mail.gq1.yahoo.com [98.137.64.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bp41G6M91z3RQm for ; Fri, 11 Sep 2020 18:25:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: YyEvsnAVM1mbGyojUYGUegnbGfcvuHMxERJFTbFN8WrepYDTHuF45B6S0x4TvS6 dF4njdD1OIjCcrZ_qd1_BPzr_Mc192KzNxYjvWWEsYCsfS7vtN0jE7d8RJ1uYjpmoK8nTEmGGOXt aXCFPI6uonPmTLTTEy3xlAEQ76GkIJ1y6Nq03NE0eHVrs.M3dgm_U0zEJu4LUALqbeCHP.KjHRTF aY207Li_IdhiCq6fGKsWJaq3lRMwLm3ob8gp05.UfLWJgEc_9Dr341zW28QlJcY1zhiPT0gNTeib c05WNjhCYKdmpvtB53zxBNoFlDQzDVXRAe1wUSQM_QxHri1i_wm5G6FIA5NhHOJ0kk3eWV6f99Qc c9Qfp8H91ZBcPg7rsbugaHQJ_2EJj5A3imd1jjj.pHUr9AzwPuWCxuvM0hU8QMXgZQm7nUcaJO58 BCjafIULwIo7fItKzvXE2S1XqnL.9k44_2AO6xuQdqO_JffxMVvFiFuAo4paAOZP9jY8rRnU7EAK Zq30k874hbhx33RoukrJFw083jg0sRIQda.dDcaSDlc__z1r__WMzv85HAWn3u1WZnrj0LxXYDsh .W30jSB6Kd9jYWER6A8glPvfhZ6UZ0bWN3S8c6GoybXvPxUj2t9TBU9ir2dZhYze3OSDkzHvY.P6 Fpjr5h4fECuramnKYDieBIZ6Lt_.iORaZWeXbvPGmukipcoxrxvEAva5dMKSVWdcoACZFbZH9S1Q Jxg6rUhsydrUo24GDMyNxoWlHMTRO58Hs2WTd.AZwtp1i5b.qUyPYOF0bPYOR_j3W0RGDeZhLD8j netaIpnNDmmfT.r_hhoYior5zuv7NgPQWIFqCrARoNZyl1d7EzHAhiC6vcA3kh9oU4by4r5a01m. DiXobLXSIcdSPgcEQhgojwfWhFsR27AiFmIydYaQ61nve1teWNR4YLdBEGoE7WnkcfHsw4UDxPs5 j7lYPcCeCBYn9LkOr8v.n.nyVvh7k3KpNo5u4VxDXxvmCr_QSSXF9L841EBRrySFAMl4DICO94VL bUtWZOS0kBPxUuLQYe08IZZoa.RmGni7KKBWtBZMLl57U96bK7lGNz_PMqA3dpaKG6i2Pf9Xki79 OBrcoM_NlbNjmrF6JQ.nKLKHqGOz5pE.moAo7Vz0nsZv16hwJTx0iGqXlIbMOZsJjn6cWcYyr0za weYlodTshht9npDssA2r3KomDFAUicmt3YGXqfK6RXekDCvwkue5LGIBjm9NSaQYPDGwNfYtGxWE tViirSHsxTA7ZzngHVzX4MTagaDt3NPvzYWr9gFfpfotHckGc0cAj_X15GXFkLtjU3K9cxVpR2qC RJ81U5B5VEZEyhrYS.DwiD_6RpOFbPKPi3ZSD5N948BtPIPZi4VJyzvllimpAJoSfHDXBcL6lB0I hq3nH77wETM8GY.NVpo.MVU2mmE0X_sBB4BP0XjqJTzhFMwviJfIsWMLIVcQq0rR.PaGmNblr_ij dJvJXYkwuQkZXGM_Jk5fMGobPFWRUWg2BHajTHXuhq76Gx1em8yJdkNUnmGYJSm6Mda6bPKU4 Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Fri, 11 Sep 2020 18:25:05 +0000 Received: by smtp419.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 50dbd04884c2467e0270a0ebecf2ad61; Fri, 11 Sep 2020 18:25:02 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: Attempting to install on RPi4B w/ UEFI, having some problems From: Mark Millard In-Reply-To: <20200911114214.GA56507@fuz.su> Date: Fri, 11 Sep 2020 11:25:00 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <9E14D44F-2F16-486E-ACFB-EC189A345D5B@yahoo.com> References: <20200910201146.GA99827@fuz.su> <0E3AD53C-AA47-491B-B1C3-931C559CDC10@yahoo.com> <20200911114214.GA56507@fuz.su> To: Robert Clausecker X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Rspamd-Queue-Id: 4Bp41G6M91z3RQm X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.28 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.80)[-0.802]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.981]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.992]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.31:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.31:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2020 18:25:08 -0000 > On 2020-Sep-11, at 04:42, Robert Clausecker wrote: >=20 > Hi Mark, >=20 > On Thu, Sep 10, 2020 at 04:25:34PM -0700, Mark Millard wrote: >>=20 >>=20 >> On 2020-Sep-10, at 13:11, Robert Clausecker wrote: >>=20 >>> Greetings! >>>=20 >>> I'm trying to install FreeBSD on a Raspberry Pi 4B w/ UEFI. >>>=20 >>> I've done the following: >>>=20 >>> * update the RPi4 firmware to support USb boot >>>=20 >>> * format a USB drive as follows >>>=20 >>> $ gpart show >>> =3D> 63 468862065 da0 MBR (224G) >>> 63 32768 1 efi (16M) >>> 32831 468829297 2 freebsd (224G) >>>=20 >>> =3D> 0 468829297 da0s2 BSD (224G) >>> 0 16777216 2 freebsd-swap (8.0G) >>> 16777216 452052081 1 freebsd-zfs (216G) >>=20 >> FYI: I use GPT partitioning. (No claim that you need to.) >=20 > Ah, good to know that that works. I was afraid the UEFI code > required an MBR scheme as the documentation indicated such. The constraint was Raspberry pi firmware stages before uefi is involved. Modern enough Raspberry pi firmware supports GPT at those early stages. # gpart show -p =3D> 40 468862048 da0 GPT (224G) 40 2008 - free - (1.0M) 2048 413138944 da0p1 freebsd-ufs (197G) 413140992 9437184 da0p2 freebsd-swap (4.5G) 422578176 204800 da0p3 ms-basic-data (100M) 422782976 46079112 - free - (22G) >>> . . . >>>=20 >>> * boot into uefi config menu, set console to serial, choose boot = device, >>> set up ACPI+DTB mode, disable memory limit >>=20 >> To my knowledge FreeBSD makes no claim to be trying to >> support ACPI+DTB. I use ACPI for UEFI based booting (no DTB). >=20 > The Wiki page (arm/Raspberry Pi) does say explicitly: >=20 >> RPI4-UEFI, allows us to triple-boot FreeBSD on the RPi4 from either >> Device Tree or ACPI or ACPI&Device-tree(both).=20 Ahh. I do not expect that the Wiki is being maintained by someone involved in implementing such things. So somewhat more guess work is involved in the WIki's production.=20 > But it appears that loading the DTB from the UEFI boot loader is not > supported at all. In fact, when I configure UEFI to generate a DTB > only (ACPI off), the kernel hangs during boot. I'm not sure anyone has examined the content of the DTB produced by the UEFI software. If not, then no one knows what would be required to support it vs. the u-boot port's DTB and what the u-boot port initializes before FreeBSD is involved. >>> . . . >>>=20 >>> * a genet ethernet device does not seem to exist and = consequentially, >>> no network connection can be established. >>=20 >> FreeBSD does not yet support the built-in Ethernet via ACPI booting. >> I use a USB3 Ethernet device instead. >=20 > Thanks, will use a USB ethernet dongle as a stop gap solution. I get Gbit-ballpark speeds from: ugen0.3: at usbus0 ure0: = on usbus0 But that is based on a patch from a review. I'm unsure if a more modern FreeBSD has the patch applied already. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)