From owner-freebsd-arm@freebsd.org Sat Oct 10 00:22:00 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 BE88C43155F for ; Sat, 10 Oct 2020 00:22:00 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (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 4C7Qc6562Dz3c4s for ; Sat, 10 Oct 2020 00:21:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: KEYldM0VM1kbZgAVyERZf_mOdA1En9CD.wg6U76EarnS0Enbw8mEVC8jbi0JtzB Ym8On8FUOm96sgNJUgcq9UeEO2pcE85.dmNcWTm3CuZhqrDnFR5n_J64U1jMEeLb_RF8_zvo8A9u lMd8Gxh91KchNXh0pb9ezcUweW91qmv8GtSSIgLMQdBCzhY_30snnC6SAedSJf_3BFSvQG2Qw5za 9UO6kRLwwJShAfrJArNGOaCTVOOYwHQKUvYeBT0Ornl3WaqORRu7uqT09lrNUUbdCjrvD97TslO4 wIWP9CExJ9GwCXMxIBZSjxi6GWiNGeEuyKjBuuZuC1A0Lnos8Hcn2Lg232dPScAcacLEHPf8Xiz_ KBfK196azan7JEWCkcmkH6uwGdSeQZhT9s1Fgw7MLtd_bMN_xUhsGtdwwV70Z9VopXpOsPxBD160 CVFqbquz65arEEtdrhTQxCwwqDvDLqbVNI2GQBFMM31XxksV643eellJtcVY7eiB5l8Yf6G4lD9B hBdjaO6zuQ4iOr_EADdlAYzF.97QhVwfs1VPRA5q0ieO771IeyIkPsdukkI.kvcNaeRZaGf2c8FG dB1dgbb1_CvSUml50wo3iaz6jsQkp4Af5xJ0s8PonJBIoe8iXtQD0JH4AvjPLcVFCb1pJrHmbSMG O3gJCRtpkCCjJ7mna8_.LIwQMQuueCKtRQpWD8G7ChLV3L069crQRXQ69h.qEHRavstYmX7p0W1S YcEYuP5Aqlr6oRwbEIcc1YIGL6WVeTD.x3xh2k0T2R58X__2fcpo86w83HVEgMv5XeuKdWYQfeil g9dS982qQm9DZzI93yW.4HugYY4Vjr4eBEvjfvURyknp8EczHDkiZOcKHRrApBWnttJbw3OASOPk 8Usi2wR7ZGA5cHgntj2SrvO.xJyOEIrITT4JbP9zmRgbxXGgCDgTBj85lmnooXFQc4r.tK5NdKVT um3IF4LQ5hNO0gRLOfaMGS_vp7U.5Td.ohoo62XA.Xm9s6g8okuyhMDmyQEKIaj6CsilmIzK2XDl lXRDR1wm6eQhKm3xTG7Ti0FjT7Q3i.mM_Iki9pRfAZh1.PCejzRO4jQsvc8LM5yIRX94UFZhrsbB a68QhhYy6U9ywxgc5rTbvbJudAw7PBtZdjeQaBV2LMDicTPZqWYt9VTYF2KCmWfVfWhD4SOhJEGO z1zvoV7SgoqKtiT5dQGNna7DW.KUhB0PfvanI8_W5AMdQQf4zapJi.5sRFoddz1AuzIxMhrGmDxc bjv3.QR_5Zjg1t5ahTVfXuYysjnSGUHgEjBE.73oXQ3hLXdC._P26.aaq281LvquMUaDlDl73L0y TEBlm9NtqIEZ49YH8lY4aW.yqL9VR.11BVFUGfH5VJLoPinrB0zpBQ_Tl5VZkUBmgvGiGUaq8mXy ZTZG1too_D.AO5YQYYl46SfCD2sp_9cQ37LDoYUckiZcbYIA4NxCLYMTurYfvdXQjogQ42FPoRdo cHnvmqa2FDOYnoOGlEs0meTTZ9yN67g4tcO_A9joqPlnfV_cFUG8oOW8IhUliGL1krAHwAizRnm8 - Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sat, 10 Oct 2020 00:21:56 +0000 Received: by smtp414.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e9bbda6d2dc48703a606e8b7df55c48b; Sat, 10 Oct 2020 00:21:53 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: RPi4B: emmc2bus dma-range handling does not track the boot-time-FDT (u-boot based booting) From: Mark Millard In-Reply-To: <83BA1DDB-C725-470C-B382-9D229860E2F1@googlemail.com> Date: Fri, 9 Oct 2020 17:21:52 -0700 Cc: Robert Crowston , Kyle Evans , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <98BC985D-EAAB-4AFB-AA8F-7391A45C4EBF@yahoo.com> <91324D35-B66A-4674-AE37-45F3DDB736FD@yahoo.com> <2B3F0409-88F2-4EBD-9C39-37929F973C77@yahoo.com> <803EF261-1407-4331-AC56-1D49E05F8382@googlemail.com> <2FAA304E-045B-4B10-AA14-1E869FB6FD00@yahoo.com> <36A6B0E4-7578-4EFF-8095-9030DA36214B@yahoo.com> <83BA1DDB-C725-470C-B382-9D229860E2F1@googlemail.com> To: Klaus Cucinauomo X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Rspamd-Queue-Id: 4C7Qc6562Dz3c4s X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.54 / 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:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.08)[-1.081]; FREEMAIL_TO(0.00)[googlemail.com]; 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.97)[-0.974]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-0.99)[-0.987]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from]; FREEMAIL_CC(0.00)[protonmail.com,freebsd.org]; 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: Sat, 10 Oct 2020 00:22:00 -0000 On 2020-Oct-9, at 16:20, Klaus Cucinauomo = wrote: >> Am 10.10.2020 um 00:48 schrieb Mark Millard : >> =E2=80=A6. Sorry for the noise. =E2=80=A6... >=20 > the more noise, the more we find out ;-)..=20 > and of course also for me , probably all of us, that=E2=80=99s all = really confusing stuff from raspberrypi.org=20 > because very strange that ubuntu`msdos is compatible with 2020.10=20 > while their GitHub-stuff isn=E2=80=99t (in our msdos-part) . Does not go so well for FreeBSD in my context . . . My FreeBSD USB3 SSD is partitioned as: # 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) # gpart show -pl . . . =3D> 40 468862048 da0 GPT (224G) 40 2008 - free - (1.0M) 2048 413138944 da0p1 RPi4Broot (197G) 413140992 9437184 da0p2 RPi4Bswap (4.5G) 422578176 204800 da0p3 RPi4BEFI (100M) 422782976 46079112 - free - (22G) So it is the 3rd partition that has the msdos file system. Turns out that the start4.elf / fixup4.dat vintage in the ubuntu materials assumes the msdos file system to be the first one instead of looking for it. So, attempting to use the ubuntu vintage start4.elf / fixup4.dat, I end up with: QUOTE Device 0: Vendor: OWC Rev: 0 Prod: Envoy Pro mini =20 Type: Hard Disk Capacity: 228936.5 MB =3D 223.5 GB (468862128 x 512) ... is now current device ** Unrecognized filesystem type ** END QUOTE After that it tries to boot from ethernet (which was not connected). This is not true of the start4.elf / fixup4.dat vintage used by the uefi/ACPI v1.20 materials. That start4.elf / fixup4.dat pair finds and uses the 3rd partition for the msdos file system based material just fine.=20 So using older materials than the 2020-Aug-20 RaspiOS related ones does have tradeoffs. >> =E2=80=A6=E2=80=A6 >> . >> FYI for the u-boot vintage/variant involved for ubuntu: >>=20 >> # strings /boot/firmware/uboot_rpi_4.bin | grep 2020 >> gcc (Ubuntu 9.2.1-28ubuntu1) 9.2.1 20200203 >> 02/11/2020 >> U-Boot 2019.07+dfsg-1ubuntu6 (Feb 11 2020 - 10:43:57 +0000) > =E2=80=A6.. > I even didn=E2=80=99t boot it, just copied the msdos-part=E2=80=A6=20 > all files in ubuntu server msdos are of date /31st of July 2020 / That well predates 2020-Aug-20. /boot/firmware/ is the mounted msdos file system under ubuntu. uboot_rpi_4.bin is one of the things in that file system. > , the only reason why I used that distro is really because it seems to = be a raspberrypi.org official image =20 https://www.raspberrypi.org/downloads/ lists the following "Third Party Operating System Images" (down a ways on the page), saying: QUOTE Third-party operating system images for Raspberry Pi are also available: Ubuntu MATE Ubuntu Core Ubuntu Server OSMC LibreELEC Mozilla WebThings PiNet RISC OS Weather Station IchigoJam RPi END QUOTE Clicking on the image for one of those takes you to the third party's web site for it, such as https://ubuntu.com/download/raspberry-pi/ for "Ubuntu Server". The RaspberryPi-imager apparently gives access to some of those 3rd party operating systems images as well. > And I GUESSED(!;-) it has to boot up 2020.10 , and that was right=E2=80=A6= > But puuuh, all strange stuff What I report about finding and using the msdos file system is from before u-boot would have been started. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)