a038 Apple PowerPC Fully Encrypted Install Problem - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Non-i386 / amd64 > Other Architectures

Other Architectures FreeBSD on Alpha, PC98, PowerPC or Sparc64. This forum is also for questions related to porting FreeBSD to new architectures.

Reply
 
Thread Tools Display Modes
  #1  
Old September 11th, 2012, 20:33
hdokie hdokie is offline
Junior Member
 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apple PowerPC Fully Encrypted Install Problem

Hi,

I'm having trouble installing a full disk encrypted FreeBSD on my PowerPC Mac Mini (PowerMac10,1). Everything is fine but on boot, i get the "mountroot>" prompt, and the only devices available are the partitions (no .eli devices)

my geli encrypted partition was created with the command: (no passphrase, just a keyfile)
Code:
geli init -b -a HMAC/SHA256 -l256 -P -k enc.key /dev/ada0s5
and is confirmed to have the boot 'flag' with "geli list"

In my /boot/loader.conf (on the unencrypted partition) i have:
Code:
geom_eli_load="YES"
geli_ada0s5_keyfile0_load="YES"
geli_ada0s5_keyfile0_type="ada0s5:geli_keyfile0"
geli_ada0s5_keyfile0_name="/boot/enc.key"
vfs.root.mountfrom="ufs:/dev/ada0s5.eli"
I can confirm this is being read and loaded from the EFI (before the mac boots my FreeBSD kernel) with "lsmod":
Code:
/boot/kernel/kernel
.....
.....truncated
.....
modules: geom_eli.1
0xae0b70: /boot/enc.key (ada0s5:geli_keyfile0, 0x2000)
(and the fact it says it loads the module on boot into EFI )

and the last line of output of "show" has: (meaning the loader has read/understood the config)
Code:
vfs.root.mountfrom=ufs:/dev/ada0s5.eli
But still when i boot into my kernel, it gets to the point of mounting root, and says "mount from ufs:/dev/ada0s5.eli failed with error 19" and listing devices with "?" shows no .eli devices

I have searched all over for guides for encrypted installs for PowerPC but found nothing specific (even in standard FreeBSD installs for PowerPC)

Disk Layout:
/dev/ada0s2 - Apple Bootstrap
/dev/ada0s3 - Unencrypted /boot
/dev/ada0s4 - unused (but will be encrypted swap)
/dev/ada0s5 - GELI encrypted root

Guides I've followed:
https://www.dan.me.uk/blog/2012/05/0...x-well-almost/
http://forums.freebsd.org/showthread.php?t=29652
http://forums.freebsd.org/showthread.php?t=19082


I've tried to be as comprehensive as possible but there's probably more information i can give It feels like it's just on the cusp of working and there's something really simple i have to do...If anyone can point me in the right direction or offer any help it would be much appreciated!

Thanks in advance!
Reply With Quote
  #2  
Old September 15th, 2012, 13:06
hdokie hdokie is offline
Junior Member
 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem Solved!

PowerPC isn't great at dependencies when it comes to module loading.

So i added the following to loader.conf:
Code:
zlib_load="YES"
crypto_load="YES"
And now it loads the geli partitions on boot fine

Credit goes to Andreas on the mailing list


Thanks

Howard
Reply With Quote
Reply

Tags
apple, encrypted, geli, install, powerpc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attempting to Install on Apple G5 tuaris Other Architectures 5 July 27th, 2012 17:45
powerpc 9.0 install and incorrect keyboard de macunkie Other Architectures 1 June 8th, 2012 03:10
Install FreeBSD7.2 on Mac mini (powerpc) affa_pan Other Architectures 4 December 29th, 2009 00:41
Encrypted root with geli (can't find encrypted slices) ioxer Installing & Upgrading 5 December 25th, 2009 02:23
Can install the FreeBSD 7.1-ppc on the IBM powerpc server? Thanks! lcy66 Other Architectures 3 June 10th, 2009 21:00


All times are GMT +1. The time now is 01:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0