To use the serial shell I had to disable hardware control flow in minicom.
The issue with the first /init was that it was using mkfs which doesn't seem to work in this initramfs.
https://github.com/raspberrypi/buildroo ... igned-boot
I switch it to use mke2fs and everything is working.
Final /init
The issue with the first /init was that it was using mkfs which doesn't seem to work in this initramfs.
https://github.com/raspberrypi/buildroo ... igned-boot
I switch it to use mke2fs and everything is working.
Final /init
Code:
#!/usr/bin/shmount -t devtmpfs none /devmount -t proc proc /procmount -t sysfs sysfs /sysuntil [ -b "/dev/mmcblk0p2" ]; do sleep 5donerpi-otp-private-key -b > key.binif cryptsetup open --type=luks2 --key-file key.bin /dev/mmcblk0p2 appfs; then mkdir /media/mmcblk0p2 mount /dev/mapper/appfs /media/mmcblk0p2else mkdir /media/mmcblk0p2 mount /dev/mmcblk0p2 /media/mmcblk0p2 mkdir /root/mmcblk0p2 cp -r /media/mmcblk0p2/* /root/mmcblk0p2/ umount /media/mmcblk0p2 cryptsetup -q luksFormat --type=luks2 --key-file=key.bin --pbkdf argon2id /dev/mmcblk0p2 cryptsetup open --type=luks2 --key-file key.bin /dev/mmcblk0p2 appfs /usr/sbin/mke2fs -t ext4 /dev/mapper/appfs mount /dev/mapper/appfs /media/mmcblk0p2 cp -r /root/mmcblk0p2/* /media/mmcblk0p2/fiexec switch_root /media/mmcblk0p2/ /sbin/init
Statistics: Posted by BerryPiUser — Tue Mar 12, 2024 3:21 pm