-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hello,
I am trying to build a br2rauc based image for RPi 5 (in my case CM5) - I used raspberrypi5-rauc_defconfig for configuration.
After following the README, it looks a bit outdated, because the RPi5 support was added in 2024.08.x., but README suggests 2022.02.x
So I used the 2024.08.x branch of buildroot.
I have not modified the make menuconfig with the exception of enabling the ccache and a external buildchain, as described in the README. The buildchain version is also different from README: aarch64 glibc stable 2024.02-1
The build works, but at the post-image.sh it throws following error:
>>> Executing post-image script /home/ubuntu/rauc/br2rauc/board/raspberrypi5/post-image.sh
INFO: cmd: "mkdir -p "/home/ubuntu/rauc/output/build/genimage.tmp"" (stderr):
INFO: cmd: "rm -rf "/home/ubuntu/rauc/output/build/genimage.tmp"/*" (stderr):
INFO: cmd: "mkdir -p "/home/ubuntu/rauc/output/build/genimage.tmp"" (stderr):
INFO: cmd: "cp -a "/tmp/tmp.zodzTrdSVw" "/home/ubuntu/rauc/output/build/genimage.tmp/root"" (stderr):
ERROR: file(rpi-firmware/overlays): stat(/home/ubuntu/rauc/output/images/rpi-firmware/overlays) failed: No such file or directory
ERROR: vfat(boot.vfat): could not setup rpi-firmware/overlays
INFO: cmd: "rm -rf "/home/ubuntu/rauc/output/build/genimage.tmp/"" (stderr):
make[1]: *** [Makefile:829: target-post-image] Error 1
make: *** [Makefile:23: _all] Error 2
The directory output/images/rpi-firmware indeed does not contain an overlays directory, but it is required by br2rauc/board/raspberrypi/genbootfs-raspberrypi5.cfg.
I currently removed that requirement from the genbootfs-raspberrypi5.cfg and the sdcard.img.xz was built successfully.
Is this a correct way of how to fix the missing overlay directory or how can an RPi 5 image be built?
Thank you