From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LSEnu-0000fH-0D for mharc-grub-devel@gnu.org; Wed, 28 Jan 2009 13:06:22 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSEnr-0000cP-68 for grub-devel@gnu.org; Wed, 28 Jan 2009 13:06:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSEnq-0000ar-05 for grub-devel@gnu.org; Wed, 28 Jan 2009 13:06:18 -0500 Received: from [199.232.76.173] (port=57068 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSEno-0000aO-UD for grub-devel@gnu.org; Wed, 28 Jan 2009 13:06:16 -0500 Received: from ey-out-1920.google.com ([74.125.78.150]:28129) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSEno-0000VM-7F for grub-devel@gnu.org; Wed, 28 Jan 2009 13:06:16 -0500 Received: by ey-out-1920.google.com with SMTP id 4so46037eyg.24 for ; Wed, 28 Jan 2009 10:06:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=MFepc3DwZhGqaY0HpGDCZFde9HGJ+UQXbljsG9cPiFw=; b=ssgHDfZ/6S3zDTYvui+WkfZE6AktIneXDe1lheo/7AK9jo429/9k3CkojHss81Wi76 g12T361Kq1UuB3OJa3GqvCN0mwhOogJdrdhTs3qTet2MdkU94spdMVP7r7Ula+olgvjZ DoWXv1KPzt7MTsAL41NeVQPbWmgk5vV3729D0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=xo14ubJsxvQJqgrMclC+DuxxL+aZeDsM5YWSSVfC8TVvm0yk5tTZrEcI/2sgkEBgb/ M64VE7IbC3pyg/DkqH2FO0ex8HRNLINGMZZRAESuv7MG7jOgJ5ZoYkq4+5z816WCw2jk VGort7YjtJj3h7CGgVQllW5BeFBT+WokYYjvI= Received: by 10.86.52.6 with SMTP id z6mr524466fgz.20.1233165974648; Wed, 28 Jan 2009 10:06:14 -0800 (PST) Received: from ?192.168.1.102? (213.37.137.93.dyn.user.ono.com [213.37.137.93]) by mx.google.com with ESMTPS id 12sm5204231fgg.56.2009.01.28.10.04.34 (version=SSLv3 cipher=RC4-MD5); Wed, 28 Jan 2009 10:04:34 -0800 (PST) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: References: <1233161803.1302.5.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-mwKYMy+XHnh9rP14N4/O" Date: Wed, 28 Jan 2009 19:05:01 +0100 Message-Id: <1233165901.24270.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 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 18:06:19 -0000 --=-mwKYMy+XHnh9rP14N4/O Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El mi=C3=A9, 28-01-2009 a las 18:30 +0100, step21 escribi=C3=B3: > On Wed, Jan 28, 2009 at 5:56 PM, Javier Mart=C3=ADn wrote: > > El mi=C3=A9, 28-01-2009 a las 17:42 +0100, step21 escribi=C3=B3: > >> 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 combination= s > >> 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 an= d > > 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 > > > > >=20 > 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 ... No, sorry, I'm afraid you found the last element of the food chain here, so I just gave you whatever I could gather from past experience. As I said, the elders may be wiser. However, if you cannot boot an Ubuntu liveCD (which _did_ work for my Macbook), you might be better off asking about EFI and the Macbook Air in the Debian and Ubuntu forms, rather than the grub-devel list: maybe it's just a kernel switch you're missing, or you could try to disable the "quiet splash" switches and see what the kernel spits out, etc. --=-mwKYMy+XHnh9rP14N4/O Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAABAgAGBQJJgJ5IAAoJEKSl+Fbdeo72LgoQAMJHlc316hFl2iziSxxZtoOv 6hgm7E7+C6xT9elHfPv1wI5m6c14O0hQmioCJhYraYQAZeyYeTmg3kQNuobY/sJ/ xSLzdEkHqqqWYARQAARJs0XZo9ts9VbZXRbcZoBwmkTIsmBGj3BI5SPEwY8dJYfA pQXcMwh5n6KjHUFAZVGDZLSm/YEJObMqxns3xgQ9IAa5fow2VOPdka9f+kSZ33Z7 zNSj3SQz3Fur653Dnv1uPVcgOCMcMcmsYETUkaisDu4XYKTMznwau2iLBckSFQ0Z GtLBmMD+es9VBNRv5a2RbiUb+O0upyT5R4RI626AzEGNc0rDeSlaTq7mEwuRDN2y sYUo7is7Kz56Bz9RYNQ31aWHJ891aQ5G909ktFIRPaObuzTP5DtYQ67WzcSBfd63 a/wmJ5dR4r+3r0AaLsqXRPGem3+LOk58mEejnteXx/ZprYQmcx7/WIatM8wOqhL+ KldDbk5rkMcXrZ2jEvG9/fZuJ13tEhyiDFKWgDPjsu4/ZMbpAGpih/UdHcjGM5FA S3xarf7uyQLmC9kkjkh8TTwHzJk+/j4gsZLK8Qerpkm1/k5uhLWoSa/N5oAQXnJE 6p9QtRFXA6KcJQE6MM7PdcYg/NNnpkt2xInjNi4lpkKzarQaXdJZpiMcrXDJr6jY gbbu5JHwG01b2LF2ZvVP =djpO -----END PGP SIGNATURE----- --=-mwKYMy+XHnh9rP14N4/O--