Олег Яблонский Posted January 20, 2018 Posted January 20, 2018 Hello, Is such configuration possible: 1. Orange Pi Zero + 2. SPI-boot with no USB storage 3. SD Card has armbian files, but it is not bootable. I red that there is configuration with SPI-boot + USB storage, but not sure if there is a guide/possibility to continue use SD Card. Is that possible, is there any guide? Thank you.
martinayotte Posted January 20, 2018 Posted January 20, 2018 SDCard has the priority in the boot process, so why do you want to use SPI-Boot ?
Олег Яблонский Posted January 20, 2018 Author Posted January 20, 2018 I want to have my SDCard storage fully encrypted including /etc and /home so it can be used with particular OrangePI Zero board. USB drive is not an option for me, so I thought for SPI-boot with some storage keys for SDCard.
martinayotte Posted January 22, 2018 Posted January 22, 2018 Even if your rootfs is encrypted, it doesn't prevent to leave the u-boot on the sd-card as usual. BTW, I doubt that current Armbian u-boot is encryption aware, you will need custom build ...
botfap Posted January 22, 2018 Posted January 22, 2018 You dont want uboot on the SD, it has higher priority than the spi so the spi boot hook will never get triggered with a valid uboot on the sd. The way I did this with an Allwinner board with an A25Q128FV 128Mbit chip was to put the kernel with an embedded rootfs onto the spi. Boot spi kernel+rootfs image, decrypt sd, change root, continue sd boot process. I used buildroot to create the kernel+rootfs image which was about 9MB.
Олег Яблонский Posted January 22, 2018 Author Posted January 22, 2018 Thank you for answers guys. It seems I understand now the way I should explore.
Recommended Posts