All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: Carlos Roberto do Nascimento Costa <crncosta@linux.vnet.ibm.com>,
	Hollis Blanchard <hollisb@us.ibm.com>,
	Segher Boessenkool <segher@kernel.crashing.org>
Subject: Re: [PATCH] Grub2 running address on PowerPC64
Date: Sat, 22 Nov 2008 21:13:06 +0100	[thread overview]
Message-ID: <20081122201306.GF7779@thorin> (raw)
In-Reply-To: <1227034953.17386.29.camel@manoel-laptop>


Committed, thanks!

On Tue, Nov 18, 2008 at 05:02:33PM -0200, Manoel wrote:
> OF uses the address 0x4000 as base-load (as stated in NOTE section added
> by grub-mkelfimage) and grub uses 0x10000 as running address, thus
> causing segment overlapping which leads to grub2 unable to load its
> modules.
> 
> This patch moves the running address to 0x200000 to prevent overlapping,
> its the same address used by Yaboot and is know to work well.
> 
> the makefile must be regenerated using the command:
>  $ ruby genmk.rb < conf/powerpc-ieee1275.rmk> conf/powerpc-ieee1275.mk 
> 
> 
> -- 
> Best Regards,
> 
> Manoel Abranches <mrabran@linux.vnet.ibm.com>
> IBM Linux Technology Center Brazil

> Index: conf/powerpc-ieee1275.rmk
> ===================================================================
> --- conf/powerpc-ieee1275.rmk	(revision 1917)
> +++ conf/powerpc-ieee1275.rmk	(working copy)
> @@ -85,7 +85,7 @@
>  kernel_elf_CFLAGS = $(COMMON_CFLAGS)
>  kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
>  kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
> -	-Wl,-N,-S,-Ttext,0x10000,-Bstatic
> +	-Wl,-N,-S,-Ttext,0x200000,-Bstatic
>  
>  # Scripts.
>  sbin_SCRIPTS = grub-install

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


-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



      reply	other threads:[~2008-11-22 20:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-18 19:02 [PATCH] Grub2 running address on PowerPC64 Manoel
2008-11-22 20:13 ` Robert Millan [this message]

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=20081122201306.GF7779@thorin \
    --to=rmh@aybabtu.com \
    --cc=crncosta@linux.vnet.ibm.com \
    --cc=grub-devel@gnu.org \
    --cc=hollisb@us.ibm.com \
    --cc=segher@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.