Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LwwL5-0006Oe-Dw for mharc-grub-devel@gnu.org; Thu, 23 Apr 2009 06:39:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwwL3-0006MA-B0 for grub-devel@gnu.org; Thu, 23 Apr 2009 06:39:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwwL2-0006Kk-AS for grub-devel@gnu.org; Thu, 23 Apr 2009 06:39:28 -0400 Received: from [199.232.76.173] (port=56079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwwL2-0006KV-1S for grub-devel@gnu.org; Thu, 23 Apr 2009 06:39:28 -0400 Received: from ey-out-1920.google.com ([74.125.78.148]:55256) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwwKx-00057H-M2 for grub-devel@gnu.org; Thu, 23 Apr 2009 06:39:24 -0400 Received: by ey-out-1920.google.com with SMTP id 13so92391eye.24 for ; Thu, 23 Apr 2009 03:39:18 -0700 (PDT) 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=WOYiyUGLhlaybk+FO81HM6viggBP30H9Lm7+IubpU2g=; b=otOrNf2PxWQErDW19nP3fbHQvqVuZa8fT2Q+Q641+08lT0RSWlhKpJ9cbsN9VLqGnp wFMJOo0Eljfi9sb1hvq8vpvmRuik0cS99YUUuQLfvF+kcWMKM8qhB+ywFs21Ws6RzvFD 4lY+vQ//4dZJEAy1DT0Mgh2mz2WtXAgsqvulI= 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=CzZHvX02hw/gBXHUcgMjWip//dCxHkAoiz606LVLjBVOC3GtpfMjagW+l6RC+vUJWw v17hgj0KN4YCW2wv16NbVNyScHS3sPU3xWk/hzw1zcx5GULnrjbSetISFDdVN1tEdOnw CZK9WGhNaYV/4GBHQMKD4z3hWifLY0cUoAQxE= MIME-Version: 1.0 Received: by 10.210.43.10 with SMTP id q10mr837511ebq.70.1240483158421; Thu, 23 Apr 2009 03:39:18 -0700 (PDT) In-Reply-To: <49F03D55.5060800@own-hero.net> References: <49F039BC.6090207@own-hero.net> <7abf96460904230256t1aed7201jb5ac82643ccd3546@mail.gmail.com> <49F03D55.5060800@own-hero.net> Date: Thu, 23 Apr 2009 12:39:18 +0200 Message-ID: From: Vladimir Serbinenko To: The development of GRUB 2 Content-Type: multipart/mixed; boundary=0015174c114601f2cf0468367ec5 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Grub2 SVN on 64bit Xserve 2,1 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, 23 Apr 2009 10:39:29 -0000 --0015174c114601f2cf0468367ec5 Content-Type: multipart/alternative; boundary=0015174c114601f2b90468367ec3 --0015174c114601f2b90468367ec3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You need to transform the code which switches to i386 into a trampoline in i386/efi/linux.c and i386/linux.c. I have no time to do it now. However I attach 2 patches with this mail which should help you. Apply only one of them (each of them tries a quick hack in a different way). On Thu, Apr 23, 2009 at 12:05 PM, decoder wrote: > Hi, > > > yes I am compiling grub on a 64 bit kernel and with x86_64 as target > (--with-platform=efi --target=x86_64) > > Compiling on a 32 bit machine does not succeed because the Xserve 2,1 does > not accept 32 bit EFI images. > > Best regards, > > > > Chris > > > > Chip Panarchy wrote: > >> Hello >> >> I don't know much about this. >> >> However, you're compiling it on a 64-bit kernel, right? >> >> The limitation you are talking about is the 32-bit 2 64-bit >> limitation. 32-bit only supports up to 3.25GB of RAM. >> >> Have you tried compiling it on 32-bit os? That may (for some reason) >> fix the problem. >> >> Give it a go. >> >> Panarchy >> >> >> ---------- Forwarded message ---------- >> From: decoder >> Date: Thu, Apr 23, 2009 at 7:49 PM >> Subject: Grub2 SVN on 64bit Xserve 2,1 >> To: grub-devel@gnu.org >> Cc: st_admin@st.cs.uni-saarland.de >> >> >> Hello all, >> >> >> recently, we tried to use Grub2 SVN on a 64bit Apple Xserve (Model >> 2,1) using EFI and after Bean solved some Xserve specific problems >> that were discussed on the Ubuntu forums >> (http://ubuntuforums.org/showthread.php?t=995704) someone else finally >> managed to boot his Xserve 2,1 model with Grub2. >> >> Ours however, did not boot and we isolated the problem to be a memory >> problem: When we plug in 4 GB or more, Grub2 fails (when you finally >> type "boot" on the command line, the machine instantly reboots). If we >> remove all but 2 GB of RAM, it works and we managed to boot a Debian >> kernel. So this seems to be a bug which only appears on this type of >> machine with >= 4GB of RAM. >> >> >> Unfortunately, I haven't found a way yet to get any debug output for >> you from the machine (serial console doesn't seem to be supported in >> EFI). If there is anything we can do to get this bug solved, please >> let us know. >> >> If this is the wrong list for this discussion, I'm sorry, I wasn't >> sure which list discusses Grub2 SVN bugs/problems :) >> >> >> >> Thanks in advance, >> >> >> >> Christian Holler >> System Administrator >> >> Saarland University >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> >> >> On Thu, Apr 23, 2009 at 7:49 PM, decoder wrote: >> >> >>> Hello all, >>> >>> >>> recently, we tried to use Grub2 SVN on a 64bit Apple Xserve (Model 2,1) >>> using EFI and after Bean solved some Xserve specific problems that were >>> discussed on the Ubuntu forums >>> (http://ubuntuforums.org/showthread.php?t=995704) someone else finally >>> managed to boot his Xserve 2,1 model with Grub2. >>> >>> Ours however, did not boot and we isolated the problem to be a memory >>> problem: When we plug in 4 GB or more, Grub2 fails (when you finally type >>> "boot" on the command line, the machine instantly reboots). If we remove >>> all >>> but 2 GB of RAM, it works and we managed to boot a Debian kernel. So this >>> seems to be a bug which only appears on this type of machine with >= 4GB >>> of >>> RAM. >>> >>> >>> Unfortunately, I haven't found a way yet to get any debug output for you >>> from the machine (serial console doesn't seem to be supported in EFI). If >>> there is anything we can do to get this bug solved, please let us know. >>> >>> If this is the wrong list for this discussion, I'm sorry, I wasn't sure >>> which list discusses Grub2 SVN bugs/problems :) >>> >>> >>> >>> Thanks in advance, >>> >>> >>> >>> Christian Holler >>> System Administrator >>> >>> Saarland University >>> >>> _______________________________________________ >>> 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 >> >> > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > --0015174c114601f2b90468367ec3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You need to transform the code which switches to i386 into a trampoline in = i386/efi/linux.c and i386/linux.c. I have no time to do it now. However I a= ttach 2 patches with this mail which should help you. Apply only one of the= m (each of them tries a quick hack in a different way).

On Thu, Apr 23, 2009 at 12:05 PM, decoder <decoder@own-her= o.net> wrote:
Hi,


yes I am compiling grub on a 64 bit kernel and with x86_64 as target (--wit= h-platform=3Defi --target=3Dx86_64)

Compiling on a 32 bit machine does not succeed because the Xserve 2,1 does = not accept 32 bit EFI images.

Best regards,



Chris



Chip Panarchy wrote:
Hello

I don't know much about this.

However, you're compiling it on a 64-bit kernel, right?

The limitation you are talking about is the 32-bit 2 64-bit
limitation. 32-bit only supports up to 3.25GB of RAM.

Have you tried compiling it on 32-bit os? That may (for some reason)
fix the problem.

Give it a go.

Panarchy


---------- Forwarded message ----------
From: decoder <decoder@own-hero.net>
Date: Thu, Apr 23, 2009 at 7:49 PM
Subject: Grub2 SVN on 64bit Xserve 2,1
To: grub-devel@gnu.= org
Cc: st_= admin@st.cs.uni-saarland.de


Hello all,


recently, we tried to use Grub2 SVN on a 64bit Apple Xserve (Model
2,1) using EFI and after Bean solved some Xserve specific problems
that were discussed on the Ubuntu forums
(http://ubuntuforums.org/showthread.php?t=3D995704) someone else f= inally
managed to boot his Xserve 2,1 model with Grub2.

Ours however, did not boot and we isolated the problem to be a memory
problem: When we plug in 4 GB or more, Grub2 fails (when you finally
type "boot" on the command line, the machine instantly reboots). = If we
remove all but 2 GB of RAM, it works and we managed to boot a Debian
kernel. So this seems to be a bug which only appears on this type of
machine with >=3D 4GB of RAM.


Unfortunately, I haven't found a way yet to get any debug output for you from the machine (serial console doesn't seem to be supported in EFI). If there is anything we can do to get this bug solved, please
let us know.

If this is the wrong list for this discussion, I'm sorry, I wasn't<= br> sure which list discusses Grub2 SVN bugs/problems :)



Thanks in advance,



Christian Holler
System Administrator

Saarland University

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>
http://lists.gnu.org/mailman/listinfo/grub-devel




On Thu, Apr 23, 2009 at 7:49 PM, decoder <decoder@own-hero.net> wrote:
=A0
Hello all,


recently, we tried to use Grub2 SVN on a 64bit Apple Xserve (Model 2,1)
using EFI and after Bean solved some Xserve specific problems that were
discussed on the Ubuntu forums
(http://ubuntuforums.org/showthread.php?t=3D995704) someone else f= inally
managed to boot his Xserve 2,1 model with Grub2.

Ours however, did not boot and we isolated the problem to be a memory
problem: When we plug in 4 GB or more, Grub2 fails (when you finally type "boot" on the command line, the machine instantly reboots). If we= remove all
but 2 GB of RAM, it works and we managed to boot a Debian kernel. So this seems to be a bug which only appears on this type of machine with >=3D 4= GB of
RAM.


Unfortunately, I haven't found a way yet to get any debug output for yo= u
from the machine (serial console doesn't seem to be supported in EFI). = If
there is anything we can do to get this bug solved, please let us know.

If this is the wrong list for this discussion, I'm sorry, I wasn't = sure
which list discusses Grub2 SVN bugs/problems :)



Thanks in advance,



Christian Holler
System Administrator

Saarland University

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>
http://lists.gnu.org/mailman/listinfo/grub-devel


=A0 =A0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org<= /a>
http://lists.gnu.org/mailman/listinfo/grub-devel
=A0


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


--0015174c114601f2b90468367ec3-- --0015174c114601f2cf0468367ec5 Content-Type: text/x-patch; charset=US-ASCII; name="l64t.diff" Content-Disposition: attachment; filename="l64t.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ftvbmzy31 ZGlmZiAtLWdpdCBhL2xvYWRlci9pMzg2L2VmaS9saW51eC5jIGIvbG9hZGVyL2kzODYvZWZpL2xp bnV4LmMKaW5kZXggMTAwYjI2OC4uY2NmNDk2MCAxMDA2NDQKLS0tIGEvbG9hZGVyL2kzODYvZWZp L2xpbnV4LmMKKysrIGIvbG9hZGVyL2kzODYvZWZpL2xpbnV4LmMKQEAgLTQxOCw5ICs0MTgsNiBA QCBncnViX2xpbnV4X2Jvb3QgKHZvaWQpCiAgIC8qIEhhcmR3YXJlIGludGVycnVwdHMgYXJlIG5v dCBzYWZlIGFueSBsb25nZXIuICAqLwogICBhc20gdm9sYXRpbGUgKCJjbGkiIDogOiApOwogICAK LSAgLyogTG9hZCB0aGUgSURUIGFuZCB0aGUgR0RUIGZvciB0aGUgYm9vdHN0cmFwLiAgKi8KLSAg YXNtIHZvbGF0aWxlICgibGlkdCAlMCIgOiA6ICJtIiAoaWR0X2Rlc2MpKTsKLSAgYXNtIHZvbGF0 aWxlICgibGdkdCAlMCIgOiA6ICJtIiAoZ2R0X2Rlc2MpKTsKIAogI2lmZGVmIF9feDg2XzY0X18K IApAQCAtNDMwLDEwICs0MjcsMTkgQEAgZ3J1Yl9saW51eF9ib290ICh2b2lkKQogICBhc20gdm9s YXRpbGUgKCAibW92ICUwLCAlJXJieCIgOiA6ICJtIiAocGFyYW1zLT5jb2RlMzJfc3RhcnQpKTsK ICAgYXNtIHZvbGF0aWxlICggIm1vdiAlMCwgJSVyc2kiIDogOiAibSIgKHJlYWxfbW9kZV9tZW0p KTsKIAorICAvKiBMb2FkIHRoZSBJRFQgYW5kIHRoZSBHRFQgZm9yIHRoZSBib290c3RyYXAuICAq LworICBhc20gdm9sYXRpbGUgKCJsaWR0ICUwIiA6IDogIm0iIChpZHRfZGVzYykpOworICBhc20g dm9sYXRpbGUgKCJsZ2R0ICUwIiA6IDogIm0iIChnZHRfZGVzYykpOworCiAgIGFzbSB2b2xhdGls ZSAoICJsam1wIColMCIgOiA6ICJtIiAoanVtcHZlY3RvcikpOwogCiAjZWxzZQogCisgIC8qIExv YWQgdGhlIElEVCBhbmQgdGhlIEdEVCBmb3IgdGhlIGJvb3RzdHJhcC4gICovCisgIGFzbSB2b2xh dGlsZSAoImxpZHQgJTAiIDogOiAibSIgKGlkdF9kZXNjKSk7CisgIGFzbSB2b2xhdGlsZSAoImxn ZHQgJTAiIDogOiAibSIgKGdkdF9kZXNjKSk7CisKKwogICAvKiBQYXNzIHBhcmFtZXRlcnMuICAq LwogICBhc20gdm9sYXRpbGUgKCJtb3ZsICUwLCAlJWVjeCIgOiA6ICJtIiAocGFyYW1zLT5jb2Rl MzJfc3RhcnQpKTsKICAgYXNtIHZvbGF0aWxlICgibW92bCAlMCwgJSVlc2kiIDogOiAibSIgKHJl YWxfbW9kZV9tZW0pKTsK --0015174c114601f2cf0468367ec5 Content-Type: text/x-patch; charset=US-ASCII; name="l64t2.diff" Content-Disposition: attachment; filename="l64t2.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ftvbn5092 ZGlmZiAtLWdpdCBhL2tlcm4vZWZpL21tLmMgYi9rZXJuL2VmaS9tbS5jCmluZGV4IDM1YjEyYWIu LmQ4NDVlYzMgMTAwNjQ0Ci0tLSBhL2tlcm4vZWZpL21tLmMKKysrIGIva2Vybi9lZmkvbW0uYwpA QCAtNzMsNyArNzMsMTAgQEAgZ3J1Yl9lZmlfYWxsb2NhdGVfcGFnZXMgKGdydWJfZWZpX3BoeXNp Y2FsX2FkZHJlc3NfdCBhZGRyZXNzLAogICAgIHR5cGUgPSBHUlVCX0VGSV9BTExPQ0FURV9BRERS RVNTOwogI2Vsc2UKICAgaWYgKGFkZHJlc3MgPT0gMCkKLSAgICB0eXBlID0gR1JVQl9FRklfQUxM T0NBVEVfQU5ZX1BBR0VTOworICAgIHsKKyAgICAgIHR5cGUgPSBHUlVCX0VGSV9BTExPQ0FURV9N QVhfQUREUkVTUzsKKyAgICAgIGFkZHJlc3MgPSAweGZmZmZmZmZmOworICAgIH0KICAgZWxzZQog ICAgIHR5cGUgPSBHUlVCX0VGSV9BTExPQ0FURV9BRERSRVNTOwogI2VuZGlmCg== --0015174c114601f2cf0468367ec5--