Thanks for your suggestions. I read the docs and it seems that maybe the standard boot procedure is a bit too much, the current u-boot config for raspberry pi CM4 is very simple and I'd like to keep it that way. By default the u-boot environment on CM4 is kept on the boot FAT partition. Would it be a good solution to simply copy all the CM4 related (but not u-boot) files like the kernel image, the device trees and the rpi config files (config.txt, cmdline.txt) to the rootfs partition and only tell u-boot that they are available there? I suppose that the files *.elf files should also stay on the /boot partition along with the uboot.env.
Best regards, Antoni On Tue, May 7, 2024 at 5:46 PM Mark Kettenis <mark.kette...@xs4all.nl> wrote: > > From: Igor Opaniuk <igor.opan...@gmail.com> > > Date: Tue, 7 May 2024 16:30:17 +0200 > > > > Hello Antoni, > > > > On Tue, May 7, 2024 at 4:14 PM Antoni Jankowski > > <antoni.s.jankow...@gmail.com> wrote: > > > > > > Hi, > > > > > > I've recently learned about the Distro Boot feature of u-boot. This > sounds > > > interesting, however the official instructions are sparse and examples > seem > > > to be non-existent. > > > > > > The platform I'm working with at the moment is a raspberry pi CM4, are > > > there any examples of how to implement this concept? Distro Boot seems > to > > > be suitable for updating all the rootfs at once, including what > usually is > > > a separate boot partition. > > > > > > Best regards, > > > Antoni > > > > There is a nice manual from Toradex about Distro Boot integration [1]. > > You can also find a bunch of examples of integration of existing boards > > just by grep-ing: > > > > u-boot.git$ grep -ine "config_distro_bootcmd" -r ./include/configs/ > > ./include/configs/pico-imx6ul.h:86:#include <config_distro_bootcmd.h> > > ./include/configs/kp_imx6q_tpc.h:84:#include <config_distro_bootcmd.h> > > ./include/configs/imx8mp_venice.h:21:#include <config_distro_bootcmd.h> > > ./include/configs/stm32f746-disco.h:30:#include <config_distro_bootcmd.h> > > ... > > > > Hope this helps. > > > > [1] > https://developer.toradex.com/linux-bsp/os-development/boot/distro-boot/ > > However, "distro boot" is being superseded by "standard boot" in > recent versions of U-Boot and the raspberry pi boards have already > moved on. See doc/develop/bootstd.rst for some documentation on > "standard boot". >