You are not logged in.

#1 2012-07-28 13:48:34

pinprick
Member
Registered: 2012-07-28
Posts: 17

macbookpro 2010 EFI

Hi, I recently managed to install arch linux on mac 6,2 and then installed the grub efi x86_64 boot loader. Followed the wiki on how to install grub 2 to the EFI system partition along with the config and modules.

# modprobe dm-mod
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --boot-directory=/boot/efi/EFI --recheck --debug
# mkdir -p /boot/efi/EFI/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/efi/EFI/grub/locale/en.mo

My problem is that the initramfs was generated according to the mkinitcpio.conf during installation which was run in bios compatibilty mode. So from my standpoint it seems that the bios handles hardware in a different way to the unified extensible firmware interface (UEFI). Different software interface. So that is the reason why during arch linux booting it cannot find the hard drive nor the other harfware (it breaks in initramfs).

i8042: No controller found
uchi_hcd 0000:00:1a.0: Found HC with no IRQ check Bios/PCI 0000:00:1a.0 setup
uchi_hcd 0000:00:1a.0: init 0000:00:1a.0 fail. -19
uchi_hcd 0000:00:1a.0: Found HC with no IRQ check Bios/PCI 0000:00:1a.0 setup

If I use the fallback mode it prints: Invalid rom contents

How can I make it work? Build a kernel with EFI support and corresponding modules, then generate initramfs and consequently update grub.conf with grub-mkconfig ? (I have done it)

Does the default kernel have EFI support ? If so, do I have to do sth else? Like just generate initramfs xor change sth in grub.conf ?
Do I have to run a live cd, mount /boot and /, then edit /etc/mkinitcpio.conf and add some modules and hooks (what should I add ? ) and generate the cpio. From what I have read the kernel unpacks initramfs to ram, mounts it in disk and runs a set of software (modules I think) to identify hardware and make it work.

This was done with the latest official Installation iso. I couldn't boot the installation cd with EFI it replied: Invalid rom contents.

Thanks.

Last edited by pinprick (2012-07-28 13:50:50)

Offline

#2 2012-07-28 17:53:48

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: macbookpro 2010 EFI

Anyone ? I really want to mess with arch linux sad .

Offline

#3 2012-07-29 12:39:10

pinprick
Member
Registered: 2012-07-28
Posts: 17

Re: macbookpro 2010 EFI

Any suggestions ?

Offline

#4 2012-07-29 12:49:20

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: macbookpro 2010 EFI

You should at least add ahci to the modules in your initramfs, have you done that? You shouldn't have to build a custom kernel for EFI booting.

It might also be worth trying to boot the kernel directly with config_efi_stub instead of using grub, more information about that here: https://wiki.archlinux.org/index.php/UE … ng_EFISTUB


ᶘ ᵒᴥᵒᶅ

Offline

#5 2012-07-30 22:34:57

wombat23
Member
Registered: 2011-01-14
Posts: 46

Re: macbookpro 2010 EFI

The errors you've mentioned are inconclusive.
"i8042: No controller found"
refers to the old PS2 mouse/keyboard controllers that your Macbook doesnt have (it has USB mouse/keyboard)
and "Invalid ROM contents" I get, too on my Macbook (in my case, it's a harmless graphics card error)

if no hard drive is found, try adding "ahci sd_mod" to the MODULES array in /etc/mkinitcpio.conf and run mkinitcpio -p linux again. That worked for me when my hard drives weren't found after EFI install in BIOS mode.

also: more precise error message in case of fallback mode would be helpful

Last edited by wombat23 (2012-07-30 22:39:00)

Offline

#6 2012-08-08 00:10:59

DrMeers
Member
Registered: 2012-08-08
Posts: 2

Re: macbookpro 2010 EFI

I'm having a similar issue, I believe, on a MacBook Air 4,2. I get:

i8042: No controller found
Waiting 10 seconds for device /dev/disk/by-uuid/<UUID>
ERROR: device 'UUID=<UUID>' not found. Skipping fsck.
ERROR: unable to find root device 'UUID=<UUID>'.

In the recovery shell, /dev/disk/by-uuid/ doesn't even exist; the only drive present in /dev/disk/ is the Apple card reader.
I'll try wombat23's "ahci sd_mod" and see how I go...

Offline

#7 2012-08-08 00:23:24

DrMeers
Member
Registered: 2012-08-08
Posts: 2

Re: macbookpro 2010 EFI

Success. Thanks wombat23

Offline

Board footer

Powered by FluxBB