* How Can The Starting Address Of An Image In ELF File BeChanged
@ 2004-03-05 4:18 Thamarai Selvan
2004-03-05 6:16 ` Stephen Williams
0 siblings, 1 reply; 5+ messages in thread
From: Thamarai Selvan @ 2004-03-05 4:18 UTC (permalink / raw)
To: uclinux-dev, linuxppc-embedded
Hi all,
I created the elf file of the kernel using "make vmlinux", when i checked
the created system.map i found the the kernel image starting from
0xc0000000. Can any tell where this address is defined or configured? and
how can this be changed to 0x0000000 is it possible?
with regards
Thamarai Selvan.G
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How Can The Starting Address Of An Image In ELF File BeChanged
2004-03-05 4:18 How Can The Starting Address Of An Image In ELF File BeChanged Thamarai Selvan
@ 2004-03-05 6:16 ` Stephen Williams
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Williams @ 2004-03-05 6:16 UTC (permalink / raw)
To: linuxppc-embedded
Thamarai Selvan Thamarai.Selvan-at-lntinfotech.com |PPC Linux Embedded|
wrote:
> Hi all,
>
> I created the elf file of the kernel using "make vmlinux", when i checked
> the created system.map i found the the kernel image starting from
> 0xc0000000. Can any tell where this address is defined or configured? and
> how can this be changed to 0x0000000 is it possible?
The linux cernel is linked to 0xc0000000, and the entry is really
up there. In fact, the kernel is loaded starting at 0x0, and there
is code at the beginning that turns on address translation so that
it appears at the right place.
In other words, there is nothing for you to change.
--
Steve Williams "The woods are lovely, dark and deep.
steve at XXXXXXXXXX But I have promises to keep,
http://www.XXXXXXXXXX and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How Can The Starting Address Of An Image In ELF File BeChanged
@ 2004-03-05 6:33 Thamarai Selvan
2004-03-05 20:40 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Thamarai Selvan @ 2004-03-05 6:33 UTC (permalink / raw)
To: Stephen Williams; +Cc: linuxppc-embedded
hi
iam still not clear with it
can u guide me 2 some document/link on it or brief it little bit more
why it is linked to that address ?
if it is linked it should be configurable
bcuz iam using vision ice to download my image.
Thanks for your immediate reply
with regards
Thamarai Selvan.G
[ "Stephen Williams" <612dlag102@sneakemail.com> writes: ]
Thamarai Selvan Thamarai.Selvan-at-lntinfotech.com |PPC Linux Embedded| wrote:
>
> I created the elf file of the kernel using "make vmlinux", when i
> checked the created system.map i found the the kernel image starting
> from 0xc0000000. Can any tell where this address is defined or
> configured? and how can this be changed to 0x0000000 is it possible?
The linux cernel is linked to 0xc0000000, and the entry is really up
there. In fact, the kernel is loaded starting at 0x0, and there is code
at the beginning that turns on address translation so that it appears at
the right place.
In other words, there is nothing for you to change.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How Can The Starting Address Of An Image In ELF File BeChanged
2004-03-05 6:33 Thamarai Selvan
@ 2004-03-05 20:40 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-03-05 20:40 UTC (permalink / raw)
To: Thamarai Selvan; +Cc: Stephen Williams, linuxppc-embedded
In message <OF243EF967.6B4324CF-ON65256E4E.00240CC6@lntinfotech.com> you wrote:
>
> can u guide me 2 some document/link on it or brief it little bit more
> why it is linked to that address ?
Because that was the decision of the designers.
> if it is linked it should be configurable
> bcuz iam using vision ice to download my image.
You get this wrong. The layout of the Linux kernel should not be
modified to try adapting it to any tools - this will fail sooner
orlater. Instead, get tools that are capable of dealing with the task
you put at them.
VisionIce should be usable to download and start thi image, but it
will probably be of little use after that. Get yourself a BDI2000
instead ;-)
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Inside every old person is a young person wondering what happened.
- Terry Pratchett, _Moving Pictures_
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How Can The Starting Address Of An Image In ELF File BeChanged
@ 2004-03-05 17:00 VanBaren, Gerald (AGRE)
0 siblings, 0 replies; 5+ messages in thread
From: VanBaren, Gerald (AGRE) @ 2004-03-05 17:00 UTC (permalink / raw)
To: linuxppc-embedded
The linux kernel runs in VIRTUAL memory space starting at 0xC000_0000. It needs to be loaded in PHYSICAL space where there is RAM for it to run out of. When it starts up, it relocates itself to location 0x0000_0000, and then turns on the MMU which it uses to map the physical RAM that it is running out of to virtual memory location 0xC000_0000.
The previous paragraph is extremely simplified. I strongly suggest you read some kernel and booting HOWTOs and/or buy some books that cover details of the kernel.
One good starting place is Denx' DULG manual
http://www.denx.de/twiki/bin/view/DULG/Manual
(the title is "Linux for PowerPC Embedded Systems HOWTO", but much/most of it is generic to all the CPUs).
It may be helpful in future questions to identify the CPU (and possibly the board) you are using.
gvb
> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf
> Of Thamarai
> Selvan
> Sent: Friday, March 05, 2004 1:34 AM
> To: Stephen Williams
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: How Can The Starting Address Of An Image In ELF File
> BeChanged
>
>
>
> hi
>
> iam still not clear with it
> can u guide me 2 some document/link on it or brief it little bit more
> why it is linked to that address ?
> if it is linked it should be configurable
> bcuz iam using vision ice to download my image.
> Thanks for your immediate reply
>
> with regards
> Thamarai Selvan.G
>
> [ "Stephen Williams" <612dlag102@sneakemail.com> writes: ]
>
> Thamarai Selvan Thamarai.Selvan-at-lntinfotech.com |PPC Linux
> Embedded| wrote:
> >
> > I created the elf file of the kernel using "make vmlinux", when i
> > checked the created system.map i found the the kernel image starting
> > from 0xc0000000. Can any tell where this address is defined or
> > configured? and how can this be changed to 0x0000000 is it possible?
>
> The linux cernel is linked to 0xc0000000, and the entry is really up
> there. In fact, the kernel is loaded starting at 0x0, and
> there is code
> at the beginning that turns on address translation so that it
> appears at
> the right place.
>
> In other words, there is nothing for you to change.
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-05 20:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 4:18 How Can The Starting Address Of An Image In ELF File BeChanged Thamarai Selvan
2004-03-05 6:16 ` Stephen Williams
-- strict thread matches above, loose matches on Subject: below --
2004-03-05 6:33 Thamarai Selvan
2004-03-05 20:40 ` Wolfgang Denk
2004-03-05 17:00 VanBaren, Gerald (AGRE)
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).