From owner-freebsd-arm@freebsd.org Tue Mar 17 18:27:06 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 2205526E013 for ; Tue, 17 Mar 2020 18:27:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.ne1.yahoo.com (sonic306-21.consmr.mail.ne1.yahoo.com [66.163.189.83]) (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 48hhTh1KWCz4CCV for ; Tue, 17 Mar 2020 18:27:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: ScZZxEwVM1l0l_yLti_RdGAD1Mir.8zwSQAvDQzPzM.gs84wrJS1FKfqAnqAerU ftixn6LMBOWA_PQFxY.R48A6Ow.FMLitmZjTEWQSZp7gcXmurL.8WBaqZF0M1y1TGciqZ54xNDf9 kOCizQfRkqC8PvwfYhUbkxy71IsGAsY4YXwxOrCZu8E6AFkfTVHw9Hwa7efa8TERT.jGwgAE4DY8 RXVVV2GUUdKWnjpSch0HlnluEodV_PJiM3nxiF0O_V1ia508_KCSZjP5sPfIafMZnYZS70z4K86x XnORr7XcFNOD8HpW7qj_bqFsPws_U8nXoZeWVcyUdynxyz0kI3XkgJczItnL5QtWhFdamxLBYb8G 3vRZMbGFZemG2xBje3ZrfvoXel2PsB11wau3j8AHQO_ez_cNAEhmU1NW4MQ17yDajlODtMJOSi.K 9eXhNHs9iTFxPdQSGY6IYIrXDjQ8m.W4Es5e1Nsxu5d.me71pRvUd95bF25zdBL71SpOvUUhtLNn ezaBTnlSy30XQBHiCiQhlJ__AP.jOJU6rpR1WgohWy31lnOVQ2Vk2SAlz0f6IFdtG84Tr0wIhdn0 bPFAKmNl5LKhO2SARTRXCYEuCxUJ4wjkwLzzUZ01slC2CIi2vMXwiNwt8QsoLDVs_ckdv01QCsDB El5Pi6Ta5pKh4MAVYEj4O7CzpBp7MjbyYZ7J1AO65YqmD5EeFUj7l.JaOdAvtiGISKL58PgbrmCr x2b4wqg.uWsQTxFLdS_f8gPQX3OKnwTwuA5zVVvVs0RUzzVtHtZRg2_STe0hStl.TNTXNDYYMZqQ cuTraiCGlBejPdfJgm9QUw8qer6bu4yD5PRV67UB4_2taMI0WiBvk3dlUEvq086Vi6gM5mpt4R.b gJtZQuyoJ.WDuEsheuBiTiPGC.g4zw4sxnZNJwrPz1PWdgJzipsn0KmDDOd3uO5ieuBpS0dLShV_ NDGCuIT77MgETTVKXywUyPtutHfzu3WeNU7rlTYv4mwC89xqmvhBXX.mG2MIscoad2Sf3iMJMGNG EDJd_.PdIbSmzpxhFnPTg7cPbx5kKu3kT0rk1ZTOAv2y53zvEEMWrzMm1xu_Kbr8Mr_fqkjwRLD. nG1E_1JbGuw2pc0_vUcvBpwJcVJx0rb0l_tJeo3T7cwhCPqd1XONZFXb8JHLVndVRLKKpsH2mhUt 9K.uzpdBO.TIu4_BEffyIKcFdAIexNs9UsYLKQSTue0XEoiLPMxgDwQfxnez0llKenJHB8dWqASb AH_NrLYigPqWlOS2RuLnKrnJfFnXATmUUVkWY2gWCx1PZE9l_q16OsAl.EUkldG3GXiyDbUFi9VC A8BlBYaCpdpRYm.Bh0ZRRcKzgBIqMJRkGEoueaQ2E9SONJtXwMrnPL6tplB.rYl7YmRoWv6WPms4 rzjE63HZISvLVGfQa8NMDdWHZj2i382eQOFp3NIYQmd8KKnShdbQ- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Tue, 17 Mar 2020 18:26:57 +0000 Received: by smtp416.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 64ba6adefbc6ec65599124d00e6f7580; Tue, 17 Mar 2020 18:26:52 +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: <20200317173515.GA65926@www.zefox.net> Date: Tue, 17 Mar 2020 11:26:51 -0700 Cc: Ross Alexander , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <40B4C39A-7A3D-4C34-81AC-7EC05BBF0572@yahoo.com> References: <4DB90158-B77E-4D65-8E94-B6941D7D76DE@yahoo.com> <20200317173515.GA65926@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48hhTh1KWCz4CCV X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.49 / 15.00]; R_SPF_ALLOW(0.00)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RBL_MAILSPIKE_BAD(1.00)[83.189.163.66.rep.mailspike.net : 127.0.0.12]; DMARC_POLICY_ALLOW(0.00)[yahoo.com,reject]; 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:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(0.00)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (2.77), ipnet: 66.163.184.0/21(1.18), asn: 36646(0.94), country: US(-0.05)]; NEURAL_SPAM_MEDIUM(0.99)[0.992,0]; BAD_REP_POLICIES(0.10)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.997,0]; RCVD_IN_DNSWL_NONE(0.00)[83.189.163.66.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] 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: Tue, 17 Mar 2020 18:27:06 -0000 On 2020-Mar-17, at 10:35, bob prohaska wrote: > 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 Using an RPi4 as an example (mostly) . . . # 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) So I see the msdosfs under /boot/efi/ . # ls -ldT /boot/efi/*u-boot* -rwxr-xr-x 1 root wheel 445896 Mar 16 07:59:02 2020 = /boot/efi/u-boot.bin So that is where to place the file. As for where to get the file to copy there, again for my RPi4 context, not RPi3: # 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 So, for RPi3 that would be: # 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 Note: 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 . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)