Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Iyf2d-0007qm-SS for mharc-grub-devel@gnu.org; Sat, 01 Dec 2007 21:58:47 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iyf2b-0007pg-DI for grub-devel@gnu.org; Sat, 01 Dec 2007 21:58:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iyf2Z-0007nu-UG for grub-devel@gnu.org; Sat, 01 Dec 2007 21:58:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iyf2Z-0007ng-N3 for grub-devel@gnu.org; Sat, 01 Dec 2007 21:58:43 -0500 Received: from bigbox.boeglin.org ([88.191.20.48]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iyf2Z-0001il-4M for grub-devel@gnu.org; Sat, 01 Dec 2007 21:58:43 -0500 Received: by bigbox.boeglin.org (Postfix, from userid 65534) id B047E9408A; Sun, 2 Dec 2007 03:58:41 +0100 (CET) Received: from boeglin.org (localhost [127.0.0.1]) by bigbox.boeglin.org (Postfix) with ESMTP id 6ECF194078 for ; Sun, 2 Dec 2007 03:58:40 +0100 (CET) MIME-Version: 1.0 Date: Sun, 2 Dec 2007 03:58:40 +0100 From: Alexandre Boeglin To: The development of GRUB 2 In-Reply-To: <200712020112.53541.okuji@enbug.org> References: <2ed765c35bb7a3e57d19e67c0ee96cce@boeglin.org> <200712020112.53541.okuji@enbug.org> Message-ID: <22e0298741e5cf275d667076d18d2283@boeglin.org> X-Sender: alex@boeglin.org User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Additional EFI definitions 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: Sun, 02 Dec 2007 02:58:45 -0000 On Sun, 2 Dec 2007 01:12:53 +0100, "Yoshinori K. Okuji" wrote: > Do you know what these drivers are? Unfortunately, no. For now, I have only analysed the bootcamp EFI application, that load all these drivers in one single function. And goin= g through all of them sound extremely boring ... > Also, if I want to confirm what are > required on my machine (the first generation of Mac Mini), what should = I > perform? I expect that they must be identical among different models mo= re > or > less, but I think it would be better to verify it on some models. First, you would need to extract the bootcamp EFI application from your firmware, and decompress it. I used the tool available at http://forum.insanelymac.com/index.php?showtopic=3D17917&st=3D300&p=3D178= 122&#entry178122 Then, use a disassembler (I like hte.sourceforge.net) to edit the file wi= th the guid 2B0585EB-D8B8-49A9-8B8C-E21B01AEF2B7. Next, look for a function (called from entry function, in my case) which starts like this: =E2=94=82........ ! sub_10000347: ;xref c10000319 = =20 =20 =E2=94=82........ ! push ebp =20 =E2=94=8210000348 ! mov ebp, esp = =20 =20 =E2=94=821000034a ! sub esp, 10h = =20 =20 =E2=94=821000034d ! push ebx = =20 =20 =E2=94=821000034e ! push esi = =20 =20 =E2=94=821000034f ! xor esi, esi = =20 =20 =E2=94=8210000351 ! cmp [ebp+8], esi = =20 =20 =E2=94=8210000354 ! push edi = =20 =20 =E2=94=8210000355 ! jz loc_10000360 = =20 =20 =E2=94=8210000357 ! mov dword ptr [ebp-8], 1 = =20 =20 =E2=94=821000035e ! jmp loc_1000036e = =20 =20 =E2=94=8210000360 ! = =20 =20 =E2=94=82........ ! loc_10000360: ;xref j10000355 = =20 =20 =E2=94=82........ ! mov dword ptr [ebp+8], data_10001480 = =20 =20 =E2=94=8210000367 ! mov dword ptr [ebp-8], 0ah = =20 =20 In this case, 0x10001480 is a list of 0xa guid. I guess Apple uses the same code base for all its hardware, so it should look similar in all firmwares. If you really want to make sure that it's the correct function, you'd need to check that this function iterates ove= r these guids, calls schedule from the dxe service table on all of them for all memory mapped firmware volume, then calls dispatch in a loop, which would require a bit more time. Regards, Alex