phosgene Posted September 23, 2021 Posted September 23, 2021 Hi guys, I've been trying to build Armbian with an encrypted rootfs, but I can't get it work... If I build Armbian with the following build options it works fine: sudo ./compile.sh \ BOARD=odroidxu4 \ BRANCH=current \ RELEASE=buster \ BUILD_MINIMAL=no \ BUILD_DESKTOP=no \ KERNEL_ONLY=no \ KERNEL_CONFIGURE=no \ COMPRESS_OUTPUTIMAGE=sha,gpg,img But if I build Armbian with these build options (as above but including the CRYPTROOT options) it doesn't work: sudo ./compile.sh \ BOARD=odroidxu4 \ BRANCH=current \ RELEASE=buster \ BUILD_MINIMAL=no \ BUILD_DESKTOP=no \ KERNEL_ONLY=no \ KERNEL_CONFIGURE=no \ COMPRESS_OUTPUTIMAGE=sha,gpg,img \ CRYPTROOT_ENABLE=yes \ CRYPTROOT_PASSPHRASE="yourpassword" \ CRYPTROOT_SSH_UNLOCK=yes \ CRYPTROOT_SSH_UNLOCK_PORT=2222 When I try to boot the image created with the CRYPTROOT options it gets stuck on "Starting Kernel...". For reference the SBC I'm using is an Odroid HC2 with a serial console, and the build environment is as per the the documentation (Ubuntu Hirsute 21.04.x amd64 running as a virtual machine). Is there anything that I'm doing wrong, or is there be something that I should be checking?
tparys Posted September 24, 2021 Posted September 24, 2021 https://forum.armbian.com/topic/18583-encrypted-image-no-prompt/?tab=comments#comment-126748 1
phosgene Posted September 24, 2021 Author Posted September 24, 2021 Thanks dude, I'll try adding "console=serial" to "/boot/armbianEnv.txt" and report back
phosgene Posted September 24, 2021 Author Posted September 24, 2021 Forgive me if this is a dumb question but do I need to create the armbianEnv.txt file myself? The file doesn't exist in /boot... I managed to get it to boot successfully by changing: setenv console "both" ...to: setenv console "serial" ...in boot.ini, but I note that it says: # DO NOT EDIT THIS FILE # # Please edit /boot/armbianEnv.txt to set supported parameters ...so I'm obviously doing the wrong thing.
tparys Posted September 24, 2021 Posted September 24, 2021 Just took a look. I don't see ArmbianEnv.txt on the stock image on the download page. Might be a bug? Might be this one? Not clear on the rationale. https://github.com/armbian/build/issues/1538 You can do one of these things: Create ArmbianEnv.txt with the options you need? Modify boot.ini, and accept it will eventually break on some upgrade You can also ask the Subforum for XU4 Support to see if anyone has any insight on why that's missing from the stock build? I would phrase it in terms of why that file is missing from the official build, not yours. But expect the answer might go for both.
g00d Posted October 19, 2021 Posted October 19, 2021 here too, the file /boot/armbianEnv.txt is not present in the latest Armbian image I use for the ODROID-HC2.
Recommended Posts