Manjaro Arm Encrypted EMMC
#1
Hey,

Im trying to get an encrypted Manajaro Arm Minimal Running on my pbpro. I managed to create a minimal manjaro arm image and tried the following

1. Flash Uboot from Manjaro to the first sectors of the EMMC
2. Create a 500MB Ext4 Boot partition
3. Create an encrypted BTRFS Luks partition  for the rest of the emmc

I copied the fs to the main btrfs partition and moved /boot to the boot partition. Without any further setup i tried booting the pbpro and only got a black screen. I think what I have to do now is

1. Reconfigure UBOOT to find the /boot partition and advice kernel to mount encrypted btrfs root partition
2. Recompile Kernel with all the stuff necessary for booting luks
3. setup fstab for the new rootfs

I know how to do the last one but I'm stuck on the first two and cant find any good refenrece on how to do this on arm with uboot. Can you help me?

Thx

P.S. Once i firgured it all out, I'll write up a guide for yall
#2
look at the danielt's debian installer for ideas.
#3
Here is a write up on getting fde with luks on manjaro xfce image installed on an sdcard. Not exactly what your are wanting to do but may help.

https://forum.pine64.org/showthread.php?tid=9052
#4
You might want to have an UART connection handy.

Or if that's not a possibility, the first thing you should probably do is building an initramfs with the modules required for the display so you can get output earlier during boot; no need to rebuild the kernel. Beware, though, that the default boot.txt on Manjaro doesn't seem to properly load the initramfs. The linked thread by limxr and/or https://github.com/lsfxz/pinebookpro-thi...aster/luks might help (the latter was initially a gist elsewhere, should give you some hints about where to look / modify things).
#5
Has anyone managed to successfully do this?
#6
(02-10-2020, 03:14 AM)grego Wrote: Has anyone managed to successfully do this?

I have my PBP on Manjaro with the home directory encrypted via this guide.  https://wiki.archlinux.org/index.php/ECryptfs

Pretty much followed it to the letter and it worked fine. I haven't tried the encryption of the SWAP space as of yet.
#7
I did my best to understand the write up from: https://forum.pine64.org/showthread.php?tid=9052
Unfortunately I'm not experienced enough to understand it fully. I do feel confused at the start when using gparted for setting up partitions and copying files.
I'm going to do some more reading/testing and Kudos to limxr for writing this.
#8
(02-10-2020, 09:57 AM)Janoz Wrote: I did my best to understand the write up from: https://forum.pine64.org/showthread.php?tid=9052
Unfortunately I'm not experienced enough to understand it fully. I do feel confused at the start when using gparted for setting up partitions and copying files.
I'm going to do some more reading/testing and Kudos to limxr for writing this.


^I had to take it slower with gparted (never used it before). Now it finally works on my SD. I'm not sure if this will work on eMMC but it feels like it's around the corner. Thanks for this @limxr
#9
(02-10-2020, 09:19 AM)wsgts Wrote:
(02-10-2020, 03:14 AM)grego Wrote: Has anyone managed to successfully do this?

I have my PBP on Manjaro with the home directory encrypted via this guide.  https://wiki.archlinux.org/index.php/ECryptfs

Pretty much followed it to the letter and it worked fine. I haven't tried the encryption of the SWAP space as of yet.


Where do I get the 'ecryptfs-migrate-home' ? The wiki says nothing about where it can be found.


Possibly Related Threads…
Thread Author Replies Views Last Post
  PBP won’t boot from eMMC after Debian update / Tow-Boot installer won’t boot from SD Pino64 21 688 05-12-2022, 05:00 AM
Last Post: Pino64
  Broken eMMC boot annahellrothsparent 3 189 04-28-2022, 07:31 AM
Last Post: tophneal
  Manjaro and Arch repository with privacy oriented software as400 86 63,114 04-27-2022, 07:44 AM
Last Post: annahellrothsparent
  Fresh Manjaro does not boot from eMMC pentamassiv 6 617 03-27-2022, 11:01 AM
Last Post: xNix
  Dual boot Manjaro and Debian? dieselnutjob 3 368 03-26-2022, 07:17 AM
Last Post: dieselnutjob
  Pinebook Pro w/ Manjaro KDE Random Freeze/Crash BenniTec 1 364 03-18-2022, 04:03 PM
Last Post: BenniTec
  Manjaro Gnome on Pinebook Pro Review! - My New Favourite Pinebook Pro Distro! ImmyChan 0 410 02-18-2022, 12:59 PM
Last Post: ImmyChan
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 0 451 02-11-2022, 04:21 PM
Last Post: dumetrulo
  Installing debian on pinebook pro (deb installer/emmc) ljones 14 2,729 02-08-2022, 02:47 AM
Last Post: Humid Stylus
  Manjaro -box64 and wine -Help Mangled 1 805 01-27-2022, 01:13 PM
Last Post: Mangled

Forum Jump:


Users browsing this thread: 1 Guest(s)