From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: GRUB2 for UEFI crashes at startup when we got 8 gigabyte of memory
Date: Wed, 21 Apr 2010 20:58:22 +0200 [thread overview]
Message-ID: <4BCF4ACE.8030209@gmail.com> (raw)
In-Reply-To: <8979901.01271851613316.JavaMail.root@wombat>
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
gburanov@gmail.com wrote:
>> It may be a recent regression because we have a reports of successful
>> boot in such configuration
>> (http://lists.gnu.org/archive/html/grub-devel/2009-05/msg00179.html and
>> neighbour threads).
>> Be sure that grub is compiled with -mcmodel=large. You can also try
>> disable usage of >4GiB memory by adding
>> #define MCMODEL_SMALL
>> to kern/efi/mm.c
>>
>
> Hm, as far as I can understand, the grub is always compiled with mcmodel=large for UEFI
>
>
It's checked that gcc supports -mcmodel=large and if it doesn't it
defaults to smaller models and modifes module loader in order to satisfy
the necessary placement requirements. However grub.efi itself is loaded
by EFI and there is no way of informing it where grub should be loaded.
I guess I should remove this hack and just refuse to compile to 64-bit
efi if -mcmodel=large doesn't work.
Also it's possible that flags aren't propagated correctly so please
check that -mcmodel=large is really passed to gcc
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
next prev parent reply other threads:[~2010-04-21 18:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 7:53 GRUB2 for UEFI crashes at startup when we got 8 gigabyte of memory gburanov
2010-04-21 8:31 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-21 12:06 ` gburanov
2010-04-21 18:58 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-04-21 8:34 ` Seth Goldberg
2010-04-21 9:12 ` Bean
2010-04-21 9:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-04 12:59 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BCF4ACE.8030209@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).