From owner-freebsd-arm@freebsd.org Wed Mar 18 05:02:32 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 272B527C8B6 for ; Wed, 18 Mar 2020 05:02:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-22.consmr.mail.ne1.yahoo.com (sonic316-22.consmr.mail.ne1.yahoo.com [66.163.187.148]) (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 48hyZt2VT8z3Qsj for ; Wed, 18 Mar 2020 05:02:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: cJY8CPwVM1lWc5lnEKohgzi8RouDBiDIxKe6x7THOozjygNyIqVUa1d6VmbwF4u OadxV78HYPx0R4rmjMooGtkQiwCD4oKBC41EB82YZQTI4B8d._Gsr.qwxjlzpHj5j4gDOQCWFm3M uwINkrE0wOJNLX9Txlfgb97Xzm6H1BU0bjRhYk95kRklve3Qh7E78t08xg79yGcOcqcgp0vFiRIw kSYg2nAigxW5GZwPZtHq6pWzzizCRGqgRZyDeGXB6yhkIaK1YHVzGprmjEXCHW79qogRvad0Cddt Njp1J7LOtew4X5_9vCMOewE59jFOGFFKsl3bH_BM5jFVmZUUpumMGW91EQ.a83B2NLLjV3aiax1K hnYadnQD4hSwjJboz3Ww9sI9MNqbnvTCIJ6lCgr6wrc2OBfkZU.0kFyMwyYvOAzJPtsGfBV3lRji 885.gIEehPE46RFGyfBrV6uoHRvJcOZNVfn3LK4cfbPMt5FFUMNxz01i8EYoVJhwlm9m8BAsmtLJ gV2ZEkBT1iTm.kBQxB0Hjttj0vakG75hKpvaw00mG3vpSjpxV.77nJi3TrlCkpkQquKhd0n4By35 M.dNfY19VfBiDoCeEXBu8PufMHP4hW0qUf.YGPF07yaRsthizIkqYYZs1mMM3WsOgK6cF24lzeBW IDlUySofUcId77jeqClUZGiMXlrJ6C2A_EJpjt14r1SQC6_j2vuY8JY2qlQkaUSVsVznhwe49C6P n1dzCuY56Qtk204gnhOZdeguMGVy4h6OWGJiXiuFcPQSr7_pjwFf3xdCg0wdS0EYIumFUl_nwAlJ nJmNP7vGRe4xGTE_6PGO2NZfM.ZsnCNC8bbPUU5O.JKyeX6JesEpnBck3uD2qsXzzXFHswXRubMV hsipJG1XHFf4gShGN1yYETuLZ7h57_m63iHG38knJ0GmPGwm.gzsr9ZHVDm7O7hCAIhMmbXs.EMx zxnvLsBQHNStOoY7UqqKHzF4l61dhLr3wgf.E0O8srsiaJaIByKv_eiIPWDouvJfaLTYCafQrdKm afUJwSQOf8qpHgA.64ZiZj.Xdk7xrTOu5Y3HN0WK9VZ_bQ_SZZ.S_VhtBcHylxkx614BaCO2XiUI oyGYVXSsr_7vOh_84dRMiYr77c0A6L1yiJ.pfXCwKM.O6ohIGS3q0R0HsFDvCZ9OF5gVD9hpb3q5 QWAATzvbkrnEjiHa6IcWiLcHwwmze9t0KjpNfRgnHVF1tM6ieIA4lTCK0_i8vsMdUp5Fg.nmVf_8 fkjh6eFbyuQX4HSdLKSB3L7N7.eLmJavL2SuQe72UGTPDGC8cgmImehonVPM_EBpvQ_Txy8k8f7n tAa7WIXZeGTtGohqaNun6HoHFlzyywOq.n10BX6SQWvj3L6V3Gj_qz2EHs6LYya6Iv5r67ChmgXg wMBWJt2SelrbQDkLXucz8eiO1TRFF5l5zKLjdB2RcLeBwJ.eGcO_Shw8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Wed, 18 Mar 2020 05:02:29 +0000 Received: by smtp406.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID d0e732c4bce1e79c3c87f60289e1d78e; Wed, 18 Mar 2020 05:02:23 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: freebsd-arm Digest, Vol 724, Issue 3 (Answer: sysutils/u-boot-rpi3 and sysutils/u-boot-rpi4 have been updated) From: Mark Millard In-Reply-To: <40B4C39A-7A3D-4C34-81AC-7EC05BBF0572@yahoo.com> Date: Tue, 17 Mar 2020 22:02:22 -0700 Cc: Ross Alexander , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <4DB90158-B77E-4D65-8E94-B6941D7D76DE@yahoo.com> <20200317173515.GA65926@www.zefox.net> <40B4C39A-7A3D-4C34-81AC-7EC05BBF0572@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48hyZt2VT8z3Qsj X-Spamd-Bar: + X-Spamd-Result: default: False [1.48 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(1.00)[0.997,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[148.187.163.66.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.99)[0.986,0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (4.39), ipnet: 66.163.184.0/21(1.18), asn: 36646(0.94), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 05:02:32 -0000 On 2020-Mar-17, at 11:26, Mark Millard wrote: > On 2020-Mar-17, at 10:35, bob prohaska wrote: >=20 >> On Mon, Mar 16, 2020 at 06:25:01PM -0700, Mark Millard wrote: >>>=20 >>> sysutils/u-boot-rpi3 and sysutils/u-boot-rpi4 have >>> been updated to pick up patches and to configure >>> the reserved RAM for armstub8*.bin correctly: >>>=20 >>> Author: kevans >>> Date: Mon Mar 16 21:32:55 2020 >>> New Revision: 528547 >>> URL:=20 >>> https://svnweb.freebsd.org/changeset/ports/528547 >>>=20 >>>=20 >>> Log: >>> sysutils/u-boot-rpi{3,4}: Add patch to fix PSCI stub reservation >>>=20 >>> For the traditional spin table setup, only the lowest page needs >>> to be reserved. However, our PSCI stubs are slightly bigger and = occupy >>> a little over one page. These patches, already sent upstream, allow = a >>> variable number of initial pages to be reserved for the SMP stubs. = We >>> then set the values for these in our fragment to '2' to reserve the = first >>> and second page. >>>=20 >>> Approved by: koobs (mentor) >>> Approved by: manu (uboot, maintainer) >>> MFH: 2020Q1 >>> Differential Revision:=09 >>> https://reviews.freebsd.org/D24085 >>>=20 >>>=20 >>> Modified: >>> head/sysutils/u-boot-master/distinfo >>> head/sysutils/u-boot-rpi3/Makefile >>> head/sysutils/u-boot-rpi3/files/rpi3_fragment >>> head/sysutils/u-boot-rpi4/Makefile >>> head/sysutils/u-boot-rpi4/files/rpi4_fragment >>=20 >> It looks like sysutils/u-boot-rpi3 builds and installs without >> error on a Pi3 reporting >> root@www:/boot/uboot # uname -KU >> 1300045 1300045 >>=20 >> with /usr/ports at Revision: 528581 >>=20 >> However, the make install clearly didn't touch /boot/msdos and >> I couldn't find any obvious instructions on what has to be done >> by hand (ISTR some brief directions from make install previously). >> Make install claims to build man pages, but man can't find them. >>=20 >> In /usr/ports/sysutils/u-boot-rpi3/work/u-boot-2019.10 are found, >> among many other things, a series of files: >>=20 >> -rwxr-xr-x 1 root wheel 4794232 Mar 17 10:07 u-boot >> -rwxr-xr-x 1 root wheel 500440 Mar 17 10:07 u-boot-nodtb.bin >> -rwxr-xr-x 1 root wheel 500440 Mar 17 10:07 u-boot.bin >> -rw-r--r-- 1 root wheel 9167 Mar 17 09:58 u-boot.cfg >> -rw-r--r-- 1 root wheel 5605 Mar 17 10:07 u-boot.cfg.configs >> -rw-r--r-- 1 root wheel 1348 Mar 17 09:59 u-boot.lds >> -rw-r--r-- 1 root wheel 480139 Mar 17 10:07 u-boot.map >> -rwxr-xr-x 1 root wheel 1438904 Mar 17 10:07 u-boot.srec >> -rw-r--r-- 1 root wheel 195715 Mar 17 10:07 u-boot.sym >>=20 >> Any hints as to what goes where would be most helpful. >>=20 >=20 > Using an RPi4 as an example (mostly) . . . >=20 > # mount > /dev/label/RPi4root on / (ufs, NFS exported, local, noatime, = soft-updates) > devfs on /dev (devfs) > /dev/label/RPi4boot on /boot/efi (msdosfs, local, noatime) >=20 > So I see the msdosfs under /boot/efi/ . >=20 > # ls -ldT /boot/efi/*u-boot* > -rwxr-xr-x 1 root wheel 445896 Mar 16 07:59:02 2020 = /boot/efi/u-boot.bin >=20 > So that is where to place the file. >=20 > As for where to get the file to copy there, again for > my RPi4 context, not RPi3: >=20 > # ls -ldT /usr/local/share/u-boot/u-boot-rpi4/* > -rw-r--r-- 1 root wheel 124 Mar 16 07:59:03 2020 = /usr/local/share/u-boot/u-boot-rpi4/README > -rw-r--r-- 1 root wheel 37 Mar 16 07:59:03 2020 = /usr/local/share/u-boot/u-boot-rpi4/metadata > -rw-r--r-- 1 root wheel 445896 Mar 16 07:59:03 2020 = /usr/local/share/u-boot/u-boot-rpi4/u-boot.bin >=20 > So, for RPi3 that would be: >=20 > # ls -ldT /usr/local/share/u-boot/u-boot-rpi3/* > -rw-r--r-- 1 root wheel 124 Mar 16 07:59:02 2020 = /usr/local/share/u-boot/u-boot-rpi3/README > -rw-r--r-- 1 root wheel 37 Mar 16 07:59:02 2020 = /usr/local/share/u-boot/u-boot-rpi3/metadata > -rw-r--r-- 1 root wheel 500440 Mar 16 07:59:02 2020 = /usr/local/share/u-boot/u-boot-rpi3/u-boot.bin >=20 > Note: >=20 > The RPi*'s do not have such materials placed via dd (outside > the file systems), unlike most small arm boards. I use this > to have media that dual boots, such as booting a Rock64 (uses > dd to outside the file systems) or a RPi4 . I should have shown how to find where installed files are after installation. Using u-boot-rpi3 as an example: # pkg info -l u-boot-rpi3 u-boot-rpi3-2019.10_1: /usr/local/share/licenses/u-boot-rpi3-2019.10_1/GPLv2 /usr/local/share/licenses/u-boot-rpi3-2019.10_1/LICENSE /usr/local/share/licenses/u-boot-rpi3-2019.10_1/catalog.mk /usr/local/share/u-boot/u-boot-rpi3/README /usr/local/share/u-boot/u-boot-rpi3/metadata /usr/local/share/u-boot/u-boot-rpi3/u-boot.bin =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)