Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LSEFG-0005xX-G6 for mharc-grub-devel@gnu.org; Wed, 28 Jan 2009 12:30:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSEFE-0005uw-4M for grub-devel@gnu.org; Wed, 28 Jan 2009 12:30:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSEFB-0005ta-Hx for grub-devel@gnu.org; Wed, 28 Jan 2009 12:30:30 -0500 Received: from [199.232.76.173] (port=54476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSEF8-0005t7-Fw for grub-devel@gnu.org; Wed, 28 Jan 2009 12:30:27 -0500 Received: from nf-out-0910.google.com ([64.233.182.184]:29297) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSEF7-0004xZ-N2 for grub-devel@gnu.org; Wed, 28 Jan 2009 12:30:26 -0500 Received: by nf-out-0910.google.com with SMTP id c7so1431143nfi.26 for ; Wed, 28 Jan 2009 09:30:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=mw23oqCoMKNuoMHSLtaQcay8bRkQ+96Vj4VDkYDFPVU=; b=TkCVb9OmXXiaMCoGarqXpRz+/FpcxM9Ayz7osSkRk2auBX3KnCMaSi4UxW+ULVpzPg WNk1X6G8qwbCiQTnVSVWUiO2MSlAUjrW7zvDbaIp4dMCWV4ZTFHWIHYxowQYJWjwG26t XWbDQ4w8APTiwmrpCdlJ1w0lsWqf7FE13ZS+w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=lx77ou/N3CFtgXV5ZTPLI1MQ1UO22rBmYElNkH2eWU5KZ34c3jVwqqu1Jb/ug6zWRr OAweu20AKoghH3QhnfcEMDvwoQzGvs787z7PUmP4602tNIOx+Ir9u9+nCGVLuoyktf2U X4hn7cR3ReIhcPHvHG8L4VszB4++VA2g/vHRM= MIME-Version: 1.0 Sender: florian.idelberger@gmail.com Received: by 10.86.94.11 with SMTP id r11mr104223fgb.53.1233163824298; Wed, 28 Jan 2009 09:30:24 -0800 (PST) In-Reply-To: <1233161803.1302.5.camel@localhost> References: <1233161803.1302.5.camel@localhost> Date: Wed, 28 Jan 2009 18:30:24 +0100 X-Google-Sender-Auth: 62f9d2bca29e81cb Message-ID: From: step21 To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: grub-efi x86_64 on macbook air? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 17:30:32 -0000 On Wed, Jan 28, 2009 at 5:56 PM, Javier Mart=EDn wro= te: > El mi=E9, 28-01-2009 a las 17:42 +0100, step21 escribi=F3: >> Hey, while investigating possibilities on how it might be possible to >> install/run something "wubi" like on macs (without having windows >> installed) I ran into a couple of issues. I post here mainly in hope >> that one of the folks that actually wrote the code for this or at >> least have experience with it read this, cause most ppl on irc (while >> being very helpful) seem to know more about the pure x86/bios/linux >> side of things. >> >> Besides some (minor?) issues like that the command line >> freezes/becomes unresponsive after a (relatively short) amount of time >> and the fact that booting back to OS X (which everyone says should >> work 100%) does not work at all (it complains that it can't find the >> specified os x *efi, but it is there, and search correctly finds the >> right drive) my biggest problem right now is the following: >> >> I got some kerne/initrd combo to boot (2.6.26 from debian lenny >> netinstall iirc) but it gets to the language selection screen, first >> thing you notice, the keyboard is dead. I supplied "init=3D/bin/sh" to >> be able to read at least the last of the error messages. As it turns >> out to me it seems that seemingly everything pci-related is >> unavailable. Error messages are as follows: >> >> [time after boot]PCI No IRQ known for interrup pin C of device >> 0000:00:1a.7. Please Try using pci=3Dbiosirq >> [time after boot]ehci_hcd 0000:00:1a.7 Found HC with no IRQ. Check >> BIOS/PCI 0000:00:1a.7 setup! >> [time after boot]ehci_hcd 0000:00:1a.7 fail, -19 >> (of course time/device ids and pins (A-D) changed, but otherwise they >> were the same I think) >> I tried supplying pci=3Dbiosirq although I didn't think it would work, >> and it didn't, or some solution for a similiar issue from the debian >> wiki for the macbook (using a usb keyboard) which didn't work either. >> The usb keyboard works for refit and grub, but not once booted into >> linux. On some other wiki page it was suggested to supply "noapic >> acpi=3Dforce" and maybe "irqpoll" which I tried in various combinations >> without a change. >> >> The machine I use for testing this is a first generation macbook air. >> Now while there are numerous reports about people running linux on it >> (pretty well actually) by providing it with a legacy bios environment, >> I didn't find a report about one running grub-efi on it successfully >> to boot linux. The most relevant posts my searches come up with are my >> own posts on the ubunutu forums. >> >> So, I'm not sure who is to blame here, or if it's maybe just my own >> fault, but I decided that it would be nice to get the >> opinion/solutions? of some ppl who might be more intimately familiar >> with the workings of the mac boot firmware etc. and maybe know if this >> actually has been tested and should work, or not. >> >> Thanks for an help in advance. > > Are you sure that Debian lenny supports booting from EFI? I'm quite > literally talking out of my ass here, so I don't have a clue, but it > seems that the kernel you're trying to boot is trying to use BIOS > functionality. GRUB does _not_ include BIOS emulation, so that will > certainly not work. In order for a Linux kernel to boot from EFI, you > have to enable the switch in the pre-build kernel configuration. > > From my past knowledge (on my brother's Macbook), at least Ubuntu/x86 > kernels _do_ have the EFI switch enabled, so you might give it a try and > check if that's what's going wrong. > > On the OS X and keyboard issues, I'm afraid I cannot help you. Perhaps > our elders would be wiser? > > PS: you could try, however, to enable debug output when compiling your > GRUB so that you could see if there was anything wrong when loading the > file, like a hypothetical hfs.mod error (again, talking out of my > non-talking orifices) > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > Well, I didn't check specifically, but afaik the kernel has it enabled. I tried with an ubuntu kernel before which didn't even get that far. (just loaded kernel/initrd on commandline, but after "boot" nothing happened) Yes, I know grub does not supply bios emulation, but maybe the kernel just fails to recongize that it's supposed to use efi? On compiling kernel and grub2: I couldn't get compiling grub2 to work on os x, even with a seperate gnu gcc, then it failed on linking and it seems there is no gnu version of ld available for os x. (people say it just doesn't run) so I kinda gave up. Also, which applies also to kernel compiling, currently this is the only machine that totally belongs to myself. I might drob wubi or something on some windows box nobody really uses, and hope ppl don't hate me too much for that, then I could compile grub2/my own kernel where I know I have everything enabled. Anything specific I should be aware of if I compile grub2 with debug support? Someone on irc mentioned invoking grub_set_env() in grub_main() or something, is that right? I know that I can set debug=3Dall in grub.cfg, but most of the time the output is so mch it just floods my whole screen ...