ODROID U3 - system encryption / initrd

This forum is for supported devices using an ARMv7 Samsung SoC.

ODROID U3 - system encryption / initrd

Postby arxx » Wed Mar 26, 2014 11:44 am

hej,

so i'm trying to have a fully encrypted archlinux on an emmc in my odroid u3. i'm stuck right now: during the boot process the cryptdevice is not getting mounted and the process stops "waiting for /dev/mapper/root". to me it seems as if the initrd i specified is not getting loaded.

my boot file:
$this->bbcode_second_pass_code('', 'setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv fb_x_res "1920"
setenv fb_y_res "1080"
setenv hdmi_phy_res "1080"
setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootm 0x40008000 0x42000000"
setenv bootargs "fb_x_res=${fb_x_res} fb_y_res=${fb_y_res} hdmi_phy_res=${hdmi_phy_res} cryptdevice=/dev/mmcblk0p2:root root=/dev/mapper/root rootwait ro mem=2047M"
boot
')

do you have any ideas on this?
arxx
 
Posts: 3
Joined: Wed Mar 26, 2014 11:35 am

Re: ODROID U3 - system encryption / initrd

Postby Geoff » Wed Mar 26, 2014 5:06 pm

Some kernels don't have device-mapper or LVM built in. Try loading dm_mod and lvm2 in your uInitrd, along with crypto modules.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: ODROID U3 - system encryption / initrd

Postby arxx » Wed Mar 26, 2014 8:37 pm

Thanks for your advice. I put dm_mod and dm_crypt into the modules-array of the mkinitcpio.conf. imho lvm2 is not needed as i didn't setup a lvm.

Nevertheless, the boot process still stops with "waiting for /dev/mapper/root".
arxx
 
Posts: 3
Joined: Wed Mar 26, 2014 11:35 am

Re: ODROID U3 - system encryption / initrd

Postby WarheadsSE » Wed Mar 26, 2014 8:41 pm

Did you confirm that it is loading the module @ boot?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ODROID U3 - system encryption / initrd

Postby Geoff » Wed Mar 26, 2014 9:50 pm

Did you insert "encrypt" in between "block" and "filesystems" in the definition of HOOKS in /etc/mkinitcpio.conf? I imagine you won't get a prompt for the crypto password without that.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: ODROID U3 - system encryption / initrd

Postby arxx » Fri Mar 28, 2014 6:54 pm

$this->bbcode_second_pass_quote('Geoff', 'D')id you insert "encrypt" in between "block" and "filesystems" in the definition of HOOKS in /etc/mkinitcpio.conf? I imagine you won't get a prompt for the crypto password without that.

Yes, this is my current hooks-line:
$this->bbcode_second_pass_code('', 'HOOKS="base udev autodetect modconf block keyboard encrypt filesystems fsck"')

$this->bbcode_second_pass_quote('WarheadsSE', 'D')id you confirm that it is loading the module @ boot?

I'm quite sure that it doesn't - there are no "device-mapper" entries in the logs. I doubt that it loads the initrd at all. Is there a way to confirm this?
arxx
 
Posts: 3
Joined: Wed Mar 26, 2014 11:35 am

Re: ODROID U3 - system encryption / initrd

Postby WarheadsSE » Fri Mar 28, 2014 7:03 pm

Might want to add it to a modules-load.d/ entry

This is a sample on my desktop:
$this->bbcode_second_pass_code('', '
$ cat /etc/modules-load.d/docker.conf
# loop needs to be prior to aufs for docker.
loop
aufs
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ODROID U3 - system encryption / initrd

Postby Geoff » Fri Mar 28, 2014 9:50 pm

$this->bbcode_second_pass_quote('arxx', 'I') doubt that it loads the initrd at all. Is there a way to confirm this?

If you have access to dmesg.log, you can search it for RAMDISK. If you can access /proc/config.gz then you can see how initrd and device-mapper are configured in the kernel.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm
Top


Return to Samsung

Who is online

Users browsing this forum: No registered users and 2 guests