From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MC7V9-0000Td-HV for mharc-grub-devel@gnu.org; Thu, 04 Jun 2009 03:36:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MC7V7-0000SG-GX for grub-devel@gnu.org; Thu, 04 Jun 2009 03:36:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MC7V2-0000N7-JQ for grub-devel@gnu.org; Thu, 04 Jun 2009 03:36:37 -0400 Received: from [199.232.76.173] (port=45553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MC7V2-0000N4-D6 for grub-devel@gnu.org; Thu, 04 Jun 2009 03:36:32 -0400 Received: from mx20.gnu.org ([199.232.41.8]:60227) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MC7V1-0005gH-KP for grub-devel@gnu.org; Thu, 04 Jun 2009 03:36:31 -0400 Received: from nougat.ucs.ed.ac.uk ([129.215.13.205]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MC7Ut-000169-OK for grub-devel@gnu.org; Thu, 04 Jun 2009 03:36:24 -0400 Received: from lmtp1.ucs.ed.ac.uk (lmtp1.ucs.ed.ac.uk [129.215.149.64]) by nougat.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id n547ZviR016939 for ; Thu, 4 Jun 2009 08:36:02 +0100 (BST) Received: from emperor.ucs.ed.ac.uk (emperor.ucs.ed.ac.uk [194.81.249.143]) by lmtp1.ucs.ed.ac.uk (8.13.8/8.13.7) with ESMTP id n547Zq3i004881 for ; Thu, 4 Jun 2009 08:35:57 +0100 (BST) Message-ID: <4A277958.70706@ed.ac.uk> Date: Thu, 04 Jun 2009 08:35:52 +0100 From: James Jarvis User-Agent: Thunderbird 2.0.0.19 (X11/20090107) MIME-Version: 1.0 To: The development of GRUB 2 References: <1244064732.3407.20.camel@fz.local> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus X-Scanned-By: MIMEDefang 2.60 on 129.215.13.205 X-Scanned-By: MIMEDefang 2.52 on 129.215.149.64 Content-Disposition: inline X-Detected-Operating-System: by mx20.gnu.org: Solaris 10 (beta) 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: Thu, 04 Jun 2009 07:36:37 -0000 Vladimir 'phcoder' Serbinenko wrote: > 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) > I have a 2.6.29.2 i386 linux kernel boot on a 64bit computer (Apple iMac 8,1). With fakebios it all works fine (although one cannot access efivars). When I boot the i386 kernel (and initrd and root in memory) in EFI mode on 64 bit it boots but not all modules insert. It loads and can start the init script. That suggests that Felix is right the assumption may not be absolute. Also, will the results of dmidecode be reliable if using fakebios??? >> 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 > I have already done this using the fatglue.py python script from refit. It works for grub.efi but not for modules. Another solution would be at module insertion that the process tries ..mod first before .mod. This means i386 and x86_64 modules could coexist in the same directory and be inserted accordingly. James -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.