Hi to all, and a pre-emptive thanks for having a read through this.
I've got archlinux ARM working wonderfully on the A20 OlinuXino LIME2, burned the image to a microSD card and setup everything from there. However, I'm a little lost finding instructions on setting up an encrypted microSD card with dm-crypt and the simplest partition layout with LUKS. I've been following the arch wiki info https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Simple_partition_layout_with_LUKS
I've done this before with a raspberry pi 2, and the part I can't find is telling the bootloader where to look for the encrypted partition. In the wiki, this is under the section configuring the bootloader, where you need to specify a cryptdevice by UUID and a root location somewhere in /dev/mapper/
On the raspberry 2 this would be set in /boot/cmdline.txt. With the A20 the closest equivalent I've found is the /boot/boot.txt file. There is some info available on https://linux-sunxi.org/U-Boot/Configuration but my boot.txt file looks like:
$this->bbcode_second_pass_code('', '# After modifying, run ./mkscr
if test -n ${distro_bootpart}; then setenv bootpart ${distro_bootpart}; else setenv bootpart 1; fi
part uuid ${devtype} ${devnum}:${bootpart} uuidwith
setenv bootargs console=${console} root=PARTUUID=${uuid} rw rootwait
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/zImage; then
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
else
bootz ${kernel_addr_r} - ${fdt_addr_r};
fi;
fi;
fi
')
The syntax is very different from what was on the RPi2 or on the linux-sunxi page.
I'm honestly at a loss for where to specify the cryptdevice and root options, haven't gotten lucky with previous search efforts.
Any insight is greatly appreciated!
Kind regards,
Nezhac