Hello.
After some recent update my Raspberry Pi4 with Debian 12 aarch64 won’t boot anymore.
The Pi has FDE with Zymkey and it fails to find /dev/mapper/cryptrfs.
I read through FDE setup script and tried to run /lib/cryptsetup/scripts/zk_get_key, which seg faults. I guess this it the cause of the boot failure.
zk_get_key MD5 is f7dae8167de29e3102e36e95ddc0bca8 which is consistent across my Pis, doesn’t seem to be corrupted.
Any suggestion on how can I debug this further? Is it a known issue with a recent Debian 12?
Just realized /lib/cryptsetup/scripts/zk_get_key is a script.
It looks like the script is able to find /sys/class/net/eth0, there is no /etc/zymbit_mac_address or /var/lib/zymbit/zkenv.conf configured.
/var/lib/zymbit/key.bin.lock file exists and it is not empty. However /sbin/zkunlockifs seg faults.
Tried to install Debian 12 on a new SD card and encrypted it with Zymkey. Worked fine and survived couple reboots.
Once I’ve installed latest Debian 12 updates the system started to fail to boot with the same symptoms.
I guess there something Zymbit needs to fix to make zkunlockifs to be compatible with latest Debian 12 (Raspberry Pi OS 12).
zk_get_key is a script that uses the ZYMKEY to unlock your LUKS key. The zymbit_mac_address is a hook to allow changing the MAC and is not necessary. /var/lib/zkenv.conf is used to pass environment variables for cases like when you need to move I2C, which also is not relevant to your setup. zkunlockifs seg fault is the problem.
You mentioned a recent update. Did that update your kernel? I’m wondering if you have a mismatch between your kernel and /lib/modules? Can you check that?
Actually you’re right.
In initrd I have /lib/modules/6.1.0-rpi7-rpi-v8, while uname in busybox reports 6.6.20-1+rpt1
It looks like upon kernel upgrade initrd wasn’t updated for some reason…
After re-generating initramfs for the new test SD card (I’ve added a passphrase along with Zymkey this time) I ended up with zkunlockifc reporting “ERROR: no zymkeys installed.”
Even after I’ve booted to OS, zkunlockifc still reports the same.
i2c modules are inserted (i2c_dev, i2c_bcm2708, i2c_bcm2835 & i2c_brcmstb), /dev/i2c-1 exists.
LED blinks fast, like there is no binding.
zkifc reports “could not open “/dev” dir, errno=24”. After zkifc service restart there is no error, but still LED blinks fast and zkunlockifc won’t work.
@afunix I think that rule might have covered legacy OSs. I don’t think it is used in bookworm. You are correct in that the names don’t match in bookworm.
My guess is the move to 6.6.20 is still the culprit. Debian/RaspberryPi changed the way GPIO numbering is handled. Another customer ran into this issue. Can you try this?