Date: Thu, 4 Jul 2024 13:48:50 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: FreeBSD ARM List <freebsd-arm@freebsd.org>, "Patrick M. Hausen" <pmh@hausen.com> Subject: Re: Update boot partition on a Pi - necessary? How? Message-ID: <775871968.4613.1720093730415@localhost> In-Reply-To: <1128281839.5949.1720092998746@localhost> References: <6B3A59F7-92CF-4614-9501-8C7D62FF676B@hausen.com> <1128281839.5949.1720092998746@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_4612_879390193.1720093730380 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Ronald Klop <ronald-lists@klop.ws> Datum: donderdag, 4 juli 2024 13:36 Aan: "Patrick M. Hausen" <pmh@hausen.com> CC: FreeBSD ARM List <freebsd-arm@freebsd.org> Onderwerp: Re: Update boot partition on a Pi - necessary? How? > > > Van: "Patrick M. Hausen" <pmh@hausen.com> > Datum: donderdag, 4 juli 2024 09:02 > Aan: FreeBSD ARM List <freebsd-arm@freebsd.org> > Onderwerp: Update boot partition on a Pi - necessary? How? >> >> Hi all, >> >> my first release upgrade on the Pi platform - 14.0 --> 14.1. >> Smooth as usual. Special thanks to ronald@ for the >> smsc(4) improvements. >> >> Now I wonder how to do what I regularly do on amd64, >> namely update either the legacy boot partition or the >> EFI boot loader? >> >> What *are* all these files on that FAT partition, anyway? >> Is there any documentation on this? >> >> Thanks for pointers. >> >> Kind regards, >> Patrick >> >> >> >> > > > Hi, > > Thanks :-) > > The files in the FAT partition are a combination of > https://www.freshports.org/sysutils/rpi-firmware/ > and > https://www.freshports.org/sysutils/u-boot-rpi4/ > > But we also have https://www.freshports.org/sysutils/u-boot-rpi-arm64/ and I don't know what the difference is. > > 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: > > What I usually do is > - download the https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.1/FreeBSD-14.1-RELEASE-arm64-aarch64-RPI.img.xz release file > - 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. > > 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. > > Regards, > Ronald. > BTW. If you are familiar with some scripting. The release image is build from this: /usr/src/release/release.sh and the boot files for RPI-4 come from the arm64/RPI.conf file in that directory. Apparently the release does use the u-boot-rpi-arm64 pkg instead of u-boot-rpi4. Others have much more hands-on experience with these script as I do. But I think, if you can read scripts this is the best documentation on what files are in the FAT partition. Regards, Ronald. ------=_Part_4612_879390193.1720093730380 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body><br> <p><strong>Van:</strong> Ronald Klop <ronald-lists@klop.ws><br> <strong>Datum:</strong> donderdag, 4 juli 2024 13:36<br> <strong>Aan:</strong> "Patrick M. Hausen" <pmh@hausen.com><br> <strong>CC:</strong> FreeBSD ARM List <freebsd-arm@freebsd.org><br> <strong>Onderwerp:</strong> Re: Update boot partition on a Pi - necessary? How?</p> <blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px"> <div class="MessageRFC822Viewer" id="P"> <div class="MultipartAlternativeViewer"> <div class="TextHTMLViewer" id="P.P.P"> <p><strong>Van:</strong> "Patrick M. Hausen" <pmh@hausen.com><br> <strong>Datum:</strong> donderdag, 4 juli 2024 09:02<br> <strong>Aan:</strong> FreeBSD ARM List <freebsd-arm@freebsd.org><br> <strong>Onderwerp:</strong> Update boot partition on a Pi - necessary? How?</p> <blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px"> <div class="MessageRFC822Viewer" id="P"> <div class="TextPlainViewer" id="P.P">Hi all,<br> <br> my first release upgrade on the Pi platform - 14.0 --> 14.1.<br> Smooth as usual. Special thanks to ronald@ for the<br> smsc(4) improvements.<br> <br> Now I wonder how to do what I regularly do on amd64,<br> namely update either the legacy boot partition or the<br> EFI boot loader?<br> <br> What *are* all these files on that FAT partition, anyway?<br> Is there any documentation on this?<br> <br> Thanks for pointers.<br> <br> Kind regards,<br> Patrick<br> </div> <hr></div> </blockquote> <br> <br> Hi,<br> <br> Thanks :-)<br> <br> The files in the FAT partition are a combination of<br> <a href="https://www.freshports.org/sysutils/rpi-firmware/">https://www.freshports.org/sysutils/rpi-firmware/</a><br> and<br> <a href="https://www.freshports.org/sysutils/u-boot-rpi4/">https://www.freshports.org/sysutils/u-boot-rpi4/</a><br> <br> But we also have <a href="https://www.freshports.org/sysutils/u-boot-rpi-arm64/">https://www.freshports.org/sysutils/u-boot-rpi-arm64/</a> and I don't know what the difference is.<br> <br> 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.<br> <br> Another solution:<br> <br> What I usually do is<br> - download the <a href="https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.1/FreeBSD-14.1-RELEASE-arm64-aarch64-RPI.img.xz">https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.1/FreeBSD-14.1-RELEASE-arm64-aarch64-RPI.img.xz</a> release file<br> - mount it using mdconfig<br> - backup and empty the current FAT partition<br> - copy the content of the FAT partition from the mounted img<br> - diff the config files with my backup.<br> At least than I know I have all the files which were also in the release and hopefully tested by some people.<br> <br> A mdconfig+mount example can be found here: <a href="https://wiki.freebsd.org/arm/Raspberry%20Pi#Boot_Loader_Issues">https://wiki.freebsd.org/arm/Raspberry%20Pi#Boot_Loader_Issues</a> although they copy files into the image instead of the other way around.<br> <br> Regards,<br> Ronald.<br> </div> </div> </div> </blockquote> <br> BTW. If you are familiar with some scripting.<br> <br> The release image is build from this: /usr/src/release/release.sh and the boot files for RPI-4 come from the arm64/RPI.conf file in that directory.<br> Apparently the release does use the u-boot-rpi-arm64 pkg instead of u-boot-rpi4.<br> <br> Others have much more hands-on experience with these script as I do. But I think, if you can read scripts this is the best documentation on what files are in the FAT partition.<br> <br> Regards,<br> Ronald.<br> <br> </body></html> ------=_Part_4612_879390193.1720093730380--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?775871968.4613.1720093730415>