From nobody Thu Jul 04 16:04:08 2024 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 4WFM0R6ysqz5Nlr8 for ; Thu, 04 Jul 2024 16:04:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-19.consmr.mail.gq1.yahoo.com (sonic313-19.consmr.mail.gq1.yahoo.com [98.137.65.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 4WFM0R4XHCz4mHc for ; Thu, 4 Jul 2024 16:04:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720109061; bh=yB/3P3KR4mzpOXOtwKmitiJS2aiLXLUXXcjWd/wh4T0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=KQqjaFFDE0jWYwMzUHU/SxFwikVPY2dSvBwP290wHn22vFbmCMYTiAs2hAYPcjyioKvNv7GW0nqDIHxm63bjC49yZls7H/IShqj8yb+IGtP6Cy2JDybYgeZiwSjRsK3QojYP4JZdhlKdsgermCd6h2i6q+NqzAD15oIR7vSjLOMr1Fmi9pwjzNYctg0kKyEqlzbRopvB/vCy5QnmqRqgrksvniyQdjoFRVGi5EisvW6AKdhMfp/N32poXm9RHCv2WnSqviROQYI5dQnfIDVXFspGECpHSHSD9aKege/hzlPAGF/USN4cugovTqLgAuBKlkNwScbPgZYOo26q5U4Zyw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720109061; bh=G2if/iNa68wVGBSPKsnOkAFgIjcMlNRj+Zpmp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qq6K3maoXSMi.hYsNLyPsegeMCLd2vm_Uw21jkqf3htGzz7uD9NbBTRXBsmOYWWoj_0cp VDp9CAG3q2CZgYhMnR9O9tPb1NXDgHGwb5iDJGtytjT16zSfLP9EN78um6gCjBWFq2mJ.Hj2ecpH 1RiW75cBAn7eAx5NLOgeupoqa7jB312eeuVn7NZSIWOzs_7n8eRKQRgYyUEbtp4SBALEglVgR9IZ CczW_IQ39P3iJbKHP1XzwJlVhhudekIFVp5EDrFJmr.gcpJCLBLKayxoknAB1PSIFlkEtUWCQUEU IErRETaq678ZJDAKWhxugUEosyuYVAV.RHr6F93NvqOh1I0JnDbIStFDBkRdQKptwyhf.gCsVDiU FrfV1CUW2xXn6h_5U20ETXpcaCaDJw2Z_oPEzQ7bRWkiYU_8VjCNF11AfQ0l2KRdFMEs00rm_F9s F_gO0ENdAW7UnGmpZhFyTs4mGpTI7fSqoUzv9R0jcUA9RIpR5JeLneLE6LLfwPPAoXOqWh7_KWyN SdNvIJ6VOT_7z9dikfgIF1Tr8l60OxLN38FmKKDys.jdQFbXR61.jGTUNqFGcWFP6p123XN_VPNL AAlQJbkVhkQ8- X-Sonic-MF: X-Sonic-ID: c5a451af-a8c5-48c2-8f21-e9fbfdf70923 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Thu, 4 Jul 2024 16:04:21 +0000 Received: by hermes--production-gq1-5b4c49485c-q2dhb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b9f1f4cf5fc80018a09bb952b1448e26; Thu, 04 Jul 2024 16:04:19 +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 \(3774.600.62\)) Subject: Re: Update boot partition on a Pi - necessary? How? From: Mark Millard X-Priority: 3 (Normal) In-Reply-To: <1128281839.5949.1720092998746@localhost> Date: Thu, 4 Jul 2024 09:04:08 -0700 Cc: FreeBSD ARM List Content-Transfer-Encoding: quoted-printable Message-Id: <36B840F1-D893-4888-B4B2-C94735EC7D92@yahoo.com> References: <6B3A59F7-92CF-4614-9501-8C7D62FF676B@hausen.com> <1128281839.5949.1720092998746@localhost> To: Ronald Klop , "Patrick M. Hausen" X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4WFM0R4XHCz4mHc On Jul 4, 2024, at 04:36, Ronald Klop wrote: >> Van: "Patrick M. Hausen" >> Datum: donderdag, 4 juli 2024 09:02 >> Aan: FreeBSD ARM List >> Onderwerp: Update boot partition on a Pi - necessary? How? >> Hi all, >>=20 >> my first release upgrade on the Pi platform - 14.0 --> 14.1. >> Smooth as usual. Special thanks to ronald@ for the >> smsc(4) improvements. >>=20 >> Now I wonder how to do what I regularly do on amd64, >> namely update either the legacy boot partition or the >> EFI boot loader? >>=20 >> What *are* all these files on that FAT partition, anyway? >> Is there any documentation on this? >>=20 >> Thanks for pointers. >>=20 >> Kind regards, >> Patrick > =20 >=20 > Hi, >=20 > Thanks :-) >=20 > The files in the FAT partition are a combination of > https://www.freshports.org/sysutils/rpi-firmware/ Installing that package/port installs files into: /usr/local/share/rpi-firmware/ =46rom there various files can be copied over to the msdosfs that has what might be older files. FreeBSD release and snapshot builds only have a subset of the files from /usr/local/share/rpi-firmware/ . Avoid blindly copying over: /usr/local/share/rpi-firmware/config.txt to the msdosfs. The various: /usr/local/share/rpi-firmware/config_*.txt are alternatives for the content of the config.txt . Modern releases and snapshots are based on the content of: /usr/local/share/rpi-firmware/config_arm64.txt But see below about u-boot as well. Also, if you have your own tailoring of the content of the msdosfs config.txt then you may want to preserve that tailoring in your update. Other than config.txt , copying more files than you need should not hurt anything so long as the msdosfs has sufficient space. Only the armstub8*.bin files and some config.txt content are somewhat FreeBSD specific. The rest are just a vintage of materials from the RPi folks that includes the subset that FreeBSD tries to support. (The ones in the msdosfs for the release and snapshot builds for the type of context: armv7 vs. aarch64 . I ignore armv6 here.) > and > https://www.freshports.org/sysutils/u-boot-rpi4/ That one is rpi4 specific and would go with use of the content of: /usr/local/share/rpi-firmware/config_rpi4.txt This is not what modern releases and snapshots are based on. > But we also have > https://www.freshports.org/sysutils/u-boot-rpi-arm64/ Modern releases and snapshots are based on this one. It supports, for example: RPi4B, RPi3B, and RPi2B v1.2 Installing this package/port installs files into: /usr/local/share/u-boot/u-boot-rpi-arm64/ # ls -C1 /usr/local/share/u-boot/u-boot-rpi-arm64/ README metadata u-boot.bin If newer, the u-boot.bin is copied to the msdosfs to replace the older one. The README's reference to "RPI2v1.1" is wrong: it should reference "RPI2v1.2". (An RPi2B v1.1 is an armv7 system, not an aarch64 system.) The content of: /usr/local/share/rpi-firmware/config_arm64.txt is what goes with this u-boot, but the content goes in the msdosfs's config.txt . If you have your own tailoring of the content of the msdosfs config.txt then you may want to preserve that tailoring in your update. > and I don't know what the difference is. >=20 > You can install the rpi-firmware and u-boot-rpi4 ports/pkgs and copy = the content to the FAT partition. Unfortunately I don't know an = automated way to do this and if it will overwrite config files. > Another solution: >=20 > What I usually do is > - download the = https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.1/FreeBS= D-14.1-RELEASE-arm64-aarch64-RPI.img.xz release file Using snapshot image files can be an alternative, if any are available at the time. For example in: http://ftp3.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/14.1/ However, due to snafus, it happens to be empty until a new build of snapshots is done. The compressed file's name(s) would match a pattern something like: FreeBSD-*-STABLE-arm64-aarch64-RPI-*.img.xz > - mount it using mdconfig > - backup and empty the current FAT partition > - copy the content of the FAT partition from the mounted img > - diff the config files with my backup. > At least than I know I have all the files which were also in the = release and hopefully tested by some people. >=20 > A mdconfig+mount example can be found here: = https://wiki.freebsd.org/arm/Raspberry%20Pi#Boot_Loader_Issues although = they copy files into the image instead of the other way around. >=20 > Regards, > Ronald. =20 =3D=3D=3D Mark Millard marklmi at yahoo.com