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
  Manjaro Sway Theme Broken Eighty8 1 166 03-08-2024, 08:41 AM
Last Post: tophneal
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 1 1,605 02-02-2024, 02:45 AM
Last Post: frankkinney
  Manjaro network problem late 2023 acruhl 1 213 01-19-2024, 11:32 PM
Last Post: Kevin Kofler
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 1,914 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 1,979 12-11-2023, 03:47 AM
Last Post: calinb
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 291 12-07-2023, 03:11 PM
Last Post: wdt
  Manjaro ARM: enabling external monitors & fixing Broadcom WiFi after updating trifleneurotic 2 746 11-14-2023, 10:57 AM
Last Post: trifleneurotic
  Manjaro [ARM Stable Update] 2021-07-23 issues Bocanila 1 1,913 08-21-2023, 09:10 PM
Last Post: vanessadonald
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 1,853 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Manjaro - HIbernate - brcmfmac clk issue pompeyPinePro 1 709 08-18-2023, 02:06 AM
Last Post: juliamenendez

Forum Jump:


Users browsing this thread: 1 Guest(s)