Debian Bug report logs - #617377
Support for EFI booting on Intel Macs

Package: src:linux; Maintainer for src:linux is Debian Kernel Team <debian-kernel@lists.debian.org>;

Reported by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Date: Tue, 8 Mar 2011 14:33:02 UTC

Severity: wishlist

Tags: upstream

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#617377; Package linux-image-2.6.37-2-amd64. (Tue, 08 Mar 2011 14:33:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Kahn Gillmor <dkg@fifthhorseman.net>:
New Bug report received and forwarded. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Tue, 08 Mar 2011 14:33:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: submit@bugs.debian.org
Subject: linux fails to functionally boot under EFI (using grub-efi-amd64)
Date: Tue, 08 Mar 2011 09:30:16 -0500
[Message part 1 (text/plain, inline)]
Package: linux-image-2.6.37-2-amd64

I got grub-efi-amd64 working on a very modern macbook.  When i tried to
use it to boot linux (using both the squeeze kernel
(linux-image-2.6.32-5-amd64) and the unstable kernel, booting the kernel
with no parameters resulted in a hung machine with no output on the
video console at all.

If i supplied the "noefi" kernel parameter, the machine would boot, and
the console messages would come up, but there would be no keyboard, and
i'd get error messages from ehci_hcd and ohci_hcd suggesting that i try
setting pci=biosirq.  If i set both noefi and pci=biosirq, i continue
getting the same errors.  (sorry i don't have the exact transcript of
the error messages -- i no longer have the machine to copy them down).

I believe modern macbook kbds are connected via USB, so the module
failures would explain why the kbd was unresponsive.

Ultimately, i gave up on booting through EFI and booted with emulated
BIOS mode.  The machine works OK under emulated bios, but it would be
nice to avoid the extra layer of cruft if possible.

I found a gentoo discussion of what it took to get the kernel running
cleanly under plain EFI on a comparable machine:

 https://forums.gentoo.org/viewtopic-t-860544.html

But the reference link (which was actually full of detailed info on
saturday) is now showing an IIS7 welcome graphic :/

 http://www.tomjepp.co.uk/?page=gentoo_mbp62

They pointed in particular to this patch for running EFI in physical mode:

 https://patchwork.kernel.org/patch/119823/

Sorry i don't have more details at the moment.  I can gather more
details about the machine from its owner if that would be useful.

	--dkg

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#617377; Package linux-image-2.6.37-2-amd64. (Tue, 08 Mar 2011 14:45:19 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Tue, 08 Mar 2011 14:45:19 GMT) Full text and rfc822 format available.

Message #10 received at 617377@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, 617377@bugs.debian.org
Subject: Re: Bug#617377: linux fails to functionally boot under EFI (using grub-efi-amd64)
Date: Tue, 08 Mar 2011 14:41:01 +0000
[Message part 1 (text/plain, inline)]
On Tue, 2011-03-08 at 09:30 -0500, Daniel Kahn Gillmor wrote:
> Package: linux-image-2.6.37-2-amd64
> 
> I got grub-efi-amd64 working on a very modern macbook.  When i tried to
> use it to boot linux (using both the squeeze kernel
> (linux-image-2.6.32-5-amd64) and the unstable kernel, booting the kernel
> with no parameters resulted in a hung machine with no output on the
> video console at all.
> 
> If i supplied the "noefi" kernel parameter, the machine would boot, and
> the console messages would come up, but there would be no keyboard, and
> i'd get error messages from ehci_hcd and ohci_hcd suggesting that i try
> setting pci=biosirq.  If i set both noefi and pci=biosirq, i continue
> getting the same errors.  (sorry i don't have the exact transcript of
> the error messages -- i no longer have the machine to copy them down).
> 
> I believe modern macbook kbds are connected via USB, so the module
> failures would explain why the kbd was unresponsive.
> 
> Ultimately, i gave up on booting through EFI and booted with emulated
> BIOS mode.  The machine works OK under emulated bios, but it would be
> nice to avoid the extra layer of cruft if possible.

EFI on Macs is horrifically buggy.  The BIOS emulation isn't great, but
since it's good enough to boot Windows it will generally work for Linux
too.

> They pointed in particular to this patch for running EFI in physical
> mode:
> 
>  https://patchwork.kernel.org/patch/119823/
> 
> Sorry i don't have more details at the moment.  I can gather more
> details about the machine from its owner if that would be useful.

That was not accepted upstream, so we won't apply it.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
[signature.asc (application/pgp-signature, inline)]

Severity set to 'wishlist' from 'normal' Request was from Ben Hutchings <ben@decadent.org.uk> to control@bugs.debian.org. (Tue, 08 Mar 2011 14:45:21 GMT) Full text and rfc822 format available.

Added tag(s) upstream. Request was from Ben Hutchings <ben@decadent.org.uk> to control@bugs.debian.org. (Tue, 08 Mar 2011 14:45:22 GMT) Full text and rfc822 format available.

Changed Bug title to 'Support for EFI booting on Intel Macs' from 'linux fails to functionally boot under EFI (using grub-efi-amd64)' Request was from Ben Hutchings <ben@decadent.org.uk> to control@bugs.debian.org. (Tue, 08 Mar 2011 15:09:15 GMT) Full text and rfc822 format available.

Bug reassigned from package 'linux-image-2.6.37-2-amd64' to 'linux-2.6'. Request was from Martin Michlmayr <tbm@cyrius.com> to control@bugs.debian.org. (Sun, 29 May 2011 09:45:41 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#617377; Package linux-2.6. (Sat, 06 Aug 2011 17:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Sat, 06 Aug 2011 17:51:03 GMT) Full text and rfc822 format available.

Message #23 received at 617377@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: 617377@bugs.debian.org
Subject: Re: linux fails to functionally boot under EFI (using grub-efi-amd64)
Date: Sat, 6 Aug 2011 19:47:54 +0200
found 617377 linux-2.6/2.6.32-31
found 617377 linux-2.6/2.6.37-2
quit

Hi Daniel,

Daniel Kahn Gillmor wrote:

> I got grub-efi-amd64 working on a very modern macbook.  When i tried to
> use it to boot linux (using both the squeeze kernel
> (linux-image-2.6.32-5-amd64) and the unstable kernel, booting the kernel
> with no parameters resulted in a hung machine with no output on the
> video console at all.

There has been several EFI developments recently, some chronicled at
<http://mjg59.dreamwidth.org/>.  v3.0-rc1~22^2~4 (x86, efi: Retain
boot service code until after switching to virtual mode, 2011-05-25)
in particular seems vaguely promising.

Does version 3.0.0-1 produce the same symptoms?  Does adding
"noexec=off" to the kernel command line help?

Thanks,
Jonathan




Bug Marked as found in versions linux-2.6/2.6.32-31. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Sat, 06 Aug 2011 17:51:06 GMT) Full text and rfc822 format available.

Bug Marked as found in versions linux-2.6/2.6.37-2. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Sat, 06 Aug 2011 17:51:07 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#617377; Package linux-2.6. (Sat, 02 Jun 2012 22:51:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Sat, 02 Jun 2012 22:51:06 GMT) Full text and rfc822 format available.

Message #32 received at 617377@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: 617377-submitter@bugs.debian.org
Cc: 617377@bugs.debian.org
Subject: Re: Support for EFI booting on Intel Macs
Date: Sat, 02 Jun 2012 23:50:21 +0100
[Message part 1 (text/plain, inline)]
Status update from Matthew Garrett:

23:31 < bwh> mjg59: Ignoring installation for the moment, are there kernel 
             changes post-3.2 needed to boot through EFI (64-bit) on a Mac?
23:34 < mjg59> bwh: Depends on the Mac
23:34 < mjg59> Even with git you'll fail on some

-- 
Ben Hutchings
The obvious mathematical breakthrough [to break modern encryption] would be
development of an easy way to factor large prime numbers. - Bill Gates
[signature.asc (application/pgp-signature, inline)]

Message sent on to Daniel Kahn Gillmor <dkg@fifthhorseman.net>:
Bug#617377. (Sat, 02 Jun 2012 22:51:08 GMT) Full text and rfc822 format available.

Bug reassigned from package 'linux-2.6' to 'src:linux'. Request was from Moritz Muehlenhoff <jmm@debian.org> to control@bugs.debian.org. (Tue, 09 Jul 2013 15:57:15 GMT) Full text and rfc822 format available.

No longer marked as found in versions linux-2.6/2.6.32-31 and linux-2.6/2.6.37-2. Request was from Moritz Muehlenhoff <jmm@debian.org> to control@bugs.debian.org. (Tue, 09 Jul 2013 15:57:16 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 05:55:21 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.