Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LakTV-0003hr-KE for mharc-grub-devel@gnu.org; Sat, 21 Feb 2009 00:32:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LakTT-0003hZ-F2 for grub-devel@gnu.org; Sat, 21 Feb 2009 00:32:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LakTS-0003hJ-RR for grub-devel@gnu.org; Sat, 21 Feb 2009 00:32:27 -0500 Received: from [199.232.76.173] (port=39001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LakTS-0003hD-Is for grub-devel@gnu.org; Sat, 21 Feb 2009 00:32:26 -0500 Received: from wa-out-1112.google.com ([209.85.146.181]:51598) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LakTR-00051G-UN for grub-devel@gnu.org; Sat, 21 Feb 2009 00:32:26 -0500 Received: by wa-out-1112.google.com with SMTP id k17so646257waf.26 for ; Fri, 20 Feb 2009 21:32:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hT51uiozNhHxdyausWkut+VXahB+8iEGUC6RWK+g00g=; b=yCu1vuOyL6ZwUWLaa7ax+riupVjGxWsg5eZ1jKuwtSDfl18O82y+mrwDHuyAf8hpgh yrXwX4RaSiIN3VRyUejwr1lpj3wPOUrwgvCpiQVejRXxrrJbGcjsrTsMdxrBADJlokpe eoVIvaZ9x+h2QW7AnRk/1zOWXVUgKmX6Wo8IY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Uc7a4a+B0gWvm8DNQmvMoq3BwPAZyXk9btzgsANsaX7csP1Z1TDyzIXBCxN/vYsf/O LZWQCwHuITj04SADUa3BaSRXcbJD0J8xQmcajenXjosmrkKDwU/opFfvKUPnCGvOl9OL 1D16YNq+GdRDj8Zaf2f5MDSzVIt1n2hjL6uM4= MIME-Version: 1.0 Received: by 10.115.91.11 with SMTP id t11mr685932wal.112.1235194344080; Fri, 20 Feb 2009 21:32:24 -0800 (PST) In-Reply-To: <72845EBE-2E56-454F-9547-8C16A59A9C99@mac.com> References: <48f46e890902200628w20025ec0tc680f64d3e7568b@mail.gmail.com> <72845EBE-2E56-454F-9547-8C16A59A9C99@mac.com> Date: Sat, 21 Feb 2009 16:32:23 +1100 Message-ID: <48f46e890902202132o74b7451dk2757b7532eb938fc@mail.gmail.com> From: Peter Cros To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=00163646d50c1b875e0463671844 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] bug fix for x86_64 efi 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: Sat, 21 Feb 2009 05:32:27 -0000 --00163646d50c1b875e0463671844 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I am just a grub.efi user/tester/enthusiast. I don't know the Xserve but some previous reports in this list of people getting grub.efi to boot on Xserve, and if so it will boot hd/usb linux on other Apple intel Macs with varying results . There are some grub.efi 64/32 bit test packages on ubuntuforums that you might try (include the patch) . Xserve results would be interesting. grub2 EFI boot loader internal/external booting On Sat, Feb 21, 2009 at 3:16 AM, Drew Rosen wrote: > Hi Peter / phcoder / all other grub gurus, > I've joined the grub-devel mail list while attempting to get MacIntel > Xserves to boot linux. I work with a 3d Movie Effects company that has 25 > MacIntel Xserves that are becoming close to as useful as paperweights > because they can't run Maya at 64bit for rendering. (and we can't repurpose > them as linux servers). > > Any chance we can help test this patch in an xserve environment, and/or do > you have any ideas that would help us? > > Here's the most discouraging info I've received in my research to date: > > The Xserve does not have BIOS compatibility, and so you'll need to boot > through EFI. The Apple EFI implementation will not boot directly off ISO9660 > media, so you'll need to find a way to get to the EFI console. You'll need a > kernel configured with EFI support. There's no especially sensible way to > get a working framebuffer on this hardware, so you'll need to work out what > arguments need to be passed to your distribution's installer in order to get > it to run over the serial port. elilo or grub-efi should be able to boot the > kernel and initramfs. > > I've been catologing my research at: > http://drewsta.com/xserve.html > > Thanks! > > Drew > > > > On Feb 20, 2009, at 6:28 AM, Peter Cros wrote: > > Tested the patch applied to rev 1996 for grub.efi 64 bit and 32 bit, on > Imac81 (4GB ram), MacBookPro41 (4GB and 2GB ram) MacBook21 (i386) > with Macosx 10.4 10.5, ubuntu810. > All good. > > 64bit Macs have other ongoing EFI problems with linux kernel initializtion > and keyboard. > > > On Fri, Feb 20, 2009 at 2:12 AM, Bean wrote: > >> Hi, >> >> This patch contains several important update for x86_64 efi: >> >> 1, Support memory larger than 2G. >> 2, Fix a bug in efi_call_6 that could cause chainloadering osx to fail. >> 3, Improve the method to detect frame buffer address and line length >> in linux loader. >> >> 2009-02-19 Bean >> >> * configure.ac: Check for -mcmodel=large in x86_64 target. >> >> * include/grub/efi/api.h (efi_call_10): New macro. >> (efi_wrap_10): New function. >> >> * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro. >> (GRUB_PE32_REL_BASED_HIGH): Likewise. >> (GRUB_PE32_REL_BASED_LOW): Likewise. >> (GRUB_PE32_REL_BASED_HIGHLOW): Likewise. >> (GRUB_PE32_REL_BASED_HIGHADJ): Likewise. >> (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise. >> (GRUB_PE32_REL_BASED_SECTION): Likewise. >> (GRUB_PE32_REL_BASED_REL): Likewise. >> (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise. >> (GRUB_PE32_REL_BASED_DIR64): Likewise. >> (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise. >> >> * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed >> relocation >> issue. >> >> * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix. >> (efi_wrap_10): New function. >> >> * kern/x86_64/efi/startup.S (codestart): Use relative addressing. >> >> * loader/efi/appleloader.c (devpath_5): Add support for late 2008 >> MB/MBP model (NV chipset). >> (devdata_devs): Add devpath_5 to the list. >> >> * load/i386/efi/linux.c (video_base): Remove variable. >> (RGB_MASK): New macro. >> (RGB_MAGIC): Likewise. >> (LINE_MIN): Likewise. >> (LINE_MAX): Likewise. >> (FBTEST_STEP): Likewise. >> (FBTEST_COUNT): Likewise. >> (fb_list): New variable. >> (grub_find_video_card): Remove function. >> (find_framebuf): New function. >> (grub_linux_setup_video): Use find_framebuf to get frame buffer and >> line length. >> >> * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation >> problem for x86_64. >> >> -- >> Bean >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> > > > -- > Cros (pxw) > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Cros (pxw) --00163646d50c1b875e0463671844 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I am j= ust  a  grub.efi user/tester/enthusiast.


I don&= #39;t know the Xserve but some previous reports in this list of people gett= ing grub.efi to boot on Xserve, and if so it will boot hd/usb linux on othe= r Apple intel Macs with varying results .


There = are some  grub.efi 64/32 bit test packages on ubuntuforums  that = you might try (include the patch) . Xserve results would be interesting.


grub2 EFI boot load= er internal/external booting



On Sat, Feb 21, 2009 at 3:16 AM= , Drew Rosen <drews= ta@mac.com> wrote:
Hi Peter / phcoder / all other grub gur= us,

I've joined the grub-devel mail list while attem= pting to get MacIntel Xserves to boot linux. I work with a 3d Movie Effects= company that has 25 MacIntel Xserves that are becoming close to as useful = as paperweights because they can't run Maya at 64bit for rendering. (an= d we can't repurpose them as linux servers).

Any chance we can help test this patch in an xserve env= ironment, and/or do you have any ideas that would help us? 
=
Here's the most discouraging info I've received in m= y research to date:

The Xserve does not have BIOS compatibility, and so you= 'll need to boot through EFI. The Apple EFI implementation will not boo= t directly off ISO9660 media, so you'll need to find a way to get to th= e EFI console. You'll need a kernel configured with EFI support. There&= #39;s no especially sensible way to get a working framebuffer on this hardw= are, so you'll need to work out what arguments need to be passed to you= r distribution's installer in order to get it to run over the serial po= rt. elilo or grub-efi should be able to boot the kernel and initramfs.

I've been catologing my research at:

Thanks!

Drew

=

On Feb 20, 2009, at 6:28 AM, Peter = Cros wrote:

Tested the patch applie= d to rev 1996 for grub.efi 64 bit and 32 bit, on Imac81 (4GB ram), MacBookP= ro41 (4GB and 2GB ram)  MacBook21 (i386)
with Macosx 10.4 10.5, ubuntu810.
All good.

<= /div>
64bit Macs have other ongoing EFI problems with linux kernel init= ializtion and keyboard.


On Fri, Feb 20, 2009 at 2:12 AM, Bean <bean123ch@gmail.com> wrote:
Hi,

This patch contains several important update for x86_64 efi:
1, Support memory larger than 2G.
2, Fix a bug in efi_call_6 th= at could cause chainloadering osx to fail.
3, Improve the method to det= ect frame buffer address and line length
in linux loader.

2009-02-19  Bean  <bean123ch@gmail.com>
       * configure.ac: Check for -mcmodel=3Dlarge in x86_64 target.

       * include/grub/efi/api.h (efi_call_10): Ne= w macro.
       (efi_wrap_10): New function.
       * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE= _HIGH): New macro.
       (GRUB_PE32_REL_BASED_HIGH= ): Likewise.
       (GRUB_PE32_REL_BASED_LOW): Likewise.
 =      (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
  &n= bsp;    (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
   = ;    (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
  &nb= sp;    (GRUB_PE32_REL_BASED_SECTION): Likewise.
       (GRUB_PE32_REL_BASED_REL): Likewise.
 =      (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
 =      (GRUB_PE32_REL_BASED_DIR64): Likewise.
  &nbs= p;    (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.

  &= nbsp;    * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixe= d relocation
       issue.

       * ke= rn/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
      &n= bsp;(efi_wrap_10): New function.

       * kern= /x86_64/efi/startup.S (codestart): Use relative addressing.

 =      * loader/efi/appleloader.c (devpath_5): Add support fo= r late 2008
       MB/MBP model (NV chipset).
    &n= bsp;  (devdata_devs): Add devpath_5 to the list.

   = ;    * load/i386/efi/linux.c (video_base): Remove variable.
&= nbsp;      (RGB_MASK): New macro.
      &= nbsp;(RGB_MAGIC): Likewise.
       (LINE_MIN): Likewise.
      =  (LINE_MAX): Likewise.
       (FBTEST_STEP): L= ikewise.
       (FBTEST_COUNT): Likewise.
 = ;      (fb_list): New variable.
      &nb= sp;(grub_find_video_card): Remove function.
       (find_framebuf): New function.
   = ;    (grub_linux_setup_video): Use find_framebuf to get frame buf= fer and
       line length.

    =    * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix reloc= ation
       problem for x86_64.

--
Bean

__________________________________________= _____
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel




--
Cros (pxw)


_________= ______________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo= /grub-devel


________________________= _______________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel




--
Cros (pxw)

<= br> --00163646d50c1b875e0463671844--