linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Where to place the text section of the kernel image
@ 2002-05-29 22:31 Khai Trinh
  2002-05-30  0:42 ` Matt Porter
  0 siblings, 1 reply; 2+ messages in thread
From: Khai Trinh @ 2002-05-29 22:31 UTC (permalink / raw)
  To: linuxppc-embedded


I am building the ppc kernel image for Ebony. I would
like to find out how one goes about deciding where the
place the text section of the kernel image in memory?
The output of the built had it put @0x800000. I looked
in the Makefile but couldn't find where it's
specified. More importantly, how do we decide where to
put it? The output of the makefile is shown below:

ppc_405-ld -T ../ld.script -Ttext 0x00800000 -Bstatic
-o zvmlinux head.o ../comm
on/relocate.o direct.o ../common/misc-simple.o
../common/misc-common.o ../common
/string.o ../common/util.o ../common/ns16550.o image.o
../lib/zlib.a
ppc_405-objcopy -O elf32-powerpc zvmlinux zvmlinux -R
.comment -R .stab -R .stab
str \
        -R .ramdisk -R .sysmap
cp zvmlinux ../images/zvmlinux.ebony
../utils/mktree zvmlinux ../images/zImage.ebony
0x800000

Thanks,
--Khai


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Where to place the text section of the kernel image
  2002-05-29 22:31 Where to place the text section of the kernel image Khai Trinh
@ 2002-05-30  0:42 ` Matt Porter
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Porter @ 2002-05-30  0:42 UTC (permalink / raw)
  To: Khai Trinh; +Cc: linuxppc-embedded


On Wed, May 29, 2002 at 03:31:18PM -0700, Khai Trinh wrote:
>
> I am building the ppc kernel image for Ebony. I would
> like to find out how one goes about deciding where the
> place the text section of the kernel image in memory?
> The output of the built had it put @0x800000. I looked
> in the Makefile but couldn't find where it's
> specified. More importantly, how do we decide where to
> put it? The output of the makefile is shown below:

If you put the zImage at anything less than 0x800000 then the
bootloader has to do the extra work of relocating the bootloader
and image.  The simplest approach is to simply load it at
0x800000 so it can simply uncompress the vmlinux.gz and
vector to the kernel.

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-30  0:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-29 22:31 Where to place the text section of the kernel image Khai Trinh
2002-05-30  0:42 ` Matt Porter

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).