-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only half work seems to be done #108
Comments
At first glance, the initial configuration looks to be broken:
I'd expect the The most plausible reason I can think for that search failing is that the armhf image is structured differently - and if that's the case, using arm64 might be exactly the change you need. |
Hi Tom, I altered all the things you mentioned, but it didn´t work out. I have rebuilt the image with pi-gen (this time arm64), added it to my config. And started the process again. So I decided to reset the entire system. Downloaded the latest 64bit version of raspberryOS as my foundation. Installed the provisioner via apt install on it. And put all the things together like descibed. - Again nothing in the kernel variable. What else can I try? Regards Erwin |
@EWagRP Sounds like we need to investigate further on our side. I'll drop another comment once we understand what's happened. Tagging @roliver-rpi for visibility. |
Thanks guys, I really appreciate your help! |
I suspect that you're seeing a breakage in Assuming you're ready to actually write the OS - are you prepared to try again with |
Hi there, i changed my config to DEMO_MODE_ONLY= I really don´t know what´s going on here, but things are getting really expensive. Would you mind it to connect to my device some day to figure out why the process fails? |
Good news: Your devices are not bricks, you just need to provide software that's been signed accordingly. Bad news: You seem to be running the binary directly, rather than using the In this case, it looks like you've got a particularly exotic execution environment:
|
Hello again, :-) this time I come along with a big smile on my face! Tomorrow I´ll go on with some more tests. Especially mass deployment will be the thing to catch up with. Thanks for your patience and support! I really appreciate your tips:
But these were not the points that messed up my process. Except that little issue when I missed out the serial device name. The Excitement took over as I saw the rootfs was getting prepared!! Let´s hope I can reproduce that work tomorrow again - keep my fingers crossed. Let me know if you visit the embedded world in Germany next month. A beer is on me. |
I think the incoming PR #118 is going to make your day a little bit better, then. It appears the automated retry mechanism I introduced to catch pre-signed devices doesn't work the way I hoped, and so I've added a side-step file you can insert into the device's log area to bypass the keywriting that wouldn't proceed.
|
Hello there again,
I need to seek help, because I step on the same spot over and over again.
Well, I achieved to prepare some bootfs parts, but any given time I fail on the rootfs.
First I´d like to share my config:
CUSTOMER_KEY_FILE_PEM=/home/pi/SECURE-BOOT-Dependency/privatekey.pem
CUSTOMER_KEY_PKCS11_NAME=
GOLD_MASTER_OS_FILE=/home/pi/SECURE-BOOT-Dependency/2025-01-02-raspios-bookworm-armhf.img
RPI_DEVICE_STORAGE_TYPE=sd
RPI_DEVICE_STORAGE_CIPHER=aes-xts-plain64
RPI_DEVICE_FAMILY=5
RPI_DEVICE_BOOTLOADER_CONFIG_FILE=/var/lib/rpi-sb-provisioner/bootloader.config
RPI_DEVICE_LOCK_JTAG=
RPI_DEVICE_EEPROM_WP_SET=
RPI_DEVICE_FETCH_METADATA=
RPI_DEVICE_RETRIEVE_KEYPAIR=
DEMO_MODE_ONLY=1
RPI_SB_WORKDIR=/home/pi/SECUREBOOT
RPI_SB_PROVISONER_MANUFACTURING_DB=
The entire output is too long for this post, but you can find it as attached file:
output_rpi_sb_provisioner.txt
I had to change some lines in rpi-sb-provisioner.sh:
rpi-sb-provisioner.sh.txt
The changes can be found in,
line 343 cleanup(): #rm -rf "${TMP_DIR}" otherwise the device always remains busy and can´t delete the directories either.
line 382 changed SOURCE_EEPROM_IMAGE="/lib/firmware/raspberrypi/bootloader-2712/latest/pieeprom-2025-01-14.bin"
pieeprom-2024-09-23.bin seems to be outdated.
And there is something else I figured out. In function augment_initramfs() my kernel variable is empty, but I wonder why.
Well in the end I got these files in my output folder:
My monitor approved the process failed.
keywriter.log
provisioner.log
triage.log
Is there anybody understanding my issue ? :-)
How can I successfully prepare my secure boot?
The text was updated successfully, but these errors were encountered: