Open Siecje opened 4 months ago
This particular problem can be fixed by backporting https://gitlab.com/buildroot.org/buildroot/-/commit/9e2128bf5072e5f2fd69e2fc0239558782dfc677
But then at least on my build host I pretty much immediately run into more build failures (building host-m4), I guess it's time to upgrade the copy of buildroot for this project so it's buildable on modern systems again.
I was able to build scriptexecute.img
.
git clone https://github.com/raspberrypi/scriptexecutor
cd scriptexecutor
git clone https://github.com/buildroot/buildroot.git
cd buildroot
git checkout 2023.11.1
cd ..
mv buildroot buildroot-2023.11.1
# modify build.sh to contain "buildroot-2023.11.1"
make -C buildroot-2023.11.1 menuconfig
# It said to save to auto apply config migrations
# I saved in the curses interface
# make -C buildroot-2023.11.1 savedefconfig # failed
make -C buildroot-2023.11.1 menuconfig
# remove legacy config option
# in my case add cryptsetup (target packages -> hardware handling -> cryptsetup)
# BR2_PACKAGE_CURL was the only one
# The BR2_PACKAGE_CURL config symbol was renamed to BR2_PACKAGE_LIBCURL_CURL
# save in interface
make -C buildroot-2023.11.1 savedefconfig
./build.sh
# which failed a couple times and based on the errors I did
cp output/config.txt buildroot-2023.11.1/package/rpi-firmware/
cp output/cmdline.txt buildroot-2023.11.1/package/rpi-firmware/
./build.sh
# output/scriptexecute.img was created
When this is updated the firmware should also be updated.
$ vcmailbox 0x0000001 4 4 0
0x0000001c 0x80000000 0x00000001 0x00000004 0x80000004 0x623c6fde 0x00000000
The current version doesn't support the device private key OTP.
When I would run rpi-otp-private-key
[1] I would get "Failed to read the current key from OTP"
I replaced start4.elf
and fixup4.dat
from https://github.com/raspberrypi/firmware/tree/master/boot
1: I added rpi-otp-private-key
as an overlay file in the build (scriptexecutor/buildroot-2023.11.1/board/raspberrypicm4io-64/overlay/usr/bin/rpi-otp-private-key)
After cloning and running
./build.sh
I get these errors.I'm trying to customize the environment and add cryptsetup to be able to encrypt the filesystem.