From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MCNRJ-00010Q-S8 for mharc-grub-devel@gnu.org; Thu, 04 Jun 2009 20:37:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCNRI-0000zQ-LO for grub-devel@gnu.org; Thu, 04 Jun 2009 20:37:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCNRE-0000wJ-1z for grub-devel@gnu.org; Thu, 04 Jun 2009 20:37:44 -0400 Received: from [199.232.76.173] (port=48138 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCMUj-0008FZ-Pk for grub-devel@gnu.org; Thu, 04 Jun 2009 19:37:14 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:56756) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCA0u-000143-1D for grub-devel@gnu.org; Thu, 04 Jun 2009 06:17:36 -0400 Received: from [85.180.13.174] (e180013174.adsl.alicedsl.de [85.180.13.174]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MKuxg-1MCA0l0Skj-000c6r; Thu, 04 Jun 2009 12:17:27 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: References: <1244064732.3407.20.camel@fz.local> Content-Type: text/plain Date: Thu, 04 Jun 2009 12:17:26 +0200 Message-Id: <1244110646.3397.10.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19Y+SMZgubu1HBDtBMtSqu2IQP3OyANpGmsPbx sIxNkkPVme3reNv+16Y19F0Vc2OU+bODAXJ92WtzycF33upX8t n1/NWSmzKLpLiYPRkNt6w== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: EFI and 32bit vs. 64bit 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: Fri, 05 Jun 2009 00:37:45 -0000 Am Donnerstag, den 04.06.2009, 01:23 +0200 schrieb Vladimir 'phcoder' Serbinenko: > On Wed, Jun 3, 2009 at 11:32 PM, Felix Zielcke wrote: > > Hello, > > > > just talked with a guy from the debian-boot people about using grub-efi > > for the Intel Mac Users. > > Is there any way avaible in Linux to detect somehow if the EFI is 64bit > > or 32bit? > If you EFI-boot linux then its architecture is also the one of efi > (afaik linux doesn't support efi64 with i386 kernel or otherway round) > If it's not the only reasonable way is to use dmidecode's output > (especially ProductName) Hm but ProductName is for me the motherboard name. So it looks like we'll have to maintain a list? Bah why is EFI so stupid that it can be a different bit size then the CPU uses. > > Maybe some list of CPUs which could be grep'ed from /proc/cpuinfo or so? > > I read on refit page that Apple introducted fat binaries, which would > > work on both, but can they actually be created outside of MacOSX? > fat binary is just a concateneting of 2 binaries with an extra header. > So it's quite easy to create one On refit homepage stands that they're Apple specific, so I don't think it would be a good solution for longterm. Seems like more and more adopt EFI now [0] Otavio thought this would be grub's business not grub-installer's but I start to think this just can't be properly solved in grub. And as James said that efivars won't work if you boot the wrong kernel, we even can't use that to detect EFI properly. [0] http://en.wikipedia.org/wiki/Extensible_Firmware_Interface#Platforms_that_use_UEFI_or_the_Framework -- Felix Zielcke