From: Microbit_Ubuntu <microbit@virginbroadband.com.au>
To: buildroot@busybox.net
Subject: [Buildroot] How does the Start and Entry Point addresses for a uImage get set?
Date: Thu, 27 May 2010 05:14:51 +1000 [thread overview]
Message-ID: <1274901291.23700.5.camel@ubuntu> (raw)
In-Reply-To: <1274899552.26577.86.camel@bbouterse-debian.escient.local>
Hi Bob,
On Wed, 2010-05-26 at 14:45 -0400, Bob Bouterse wrote:
> Thanks for the beagleboard patch! I have morphed it into an omap3_evm
> configuration. But I have hit a mystery...
> When the uImage for my kernel is created with mkimage, the start address
> is being set to 0x00008000, it should be 0x80008000 . The zreladdr-y in
> linux/arch/arm/mach-omap2/Makefile.boot is set to 0x80008000 .
>
> Does anyone know how this gets set in the uImage header?
>
> FYI, I found that the parameters to mkimage were set to zero in
> buildroot/target/u-boot/Makefile.in . I modified these to 0x80000000,
> and that corrected the problem, but I can't believe this is hard coded.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> Does anyone know how this gets set in the uImage header?
It doesn't, at least not the final execution address.
It's up to the actual HW to map the final address.
This is also why you found you had to "hard code" the exec addy.
Note that the linker must know where the code will execute on the target, case you don't have
relocatable (position independent) code.
This is not to be confused with usage of the MMU, which maps virtual addresses.
HTH !
B rgds
Kris
next prev parent reply other threads:[~2010-05-26 19:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-26 18:45 [Buildroot] How does the Start and Entry Point addresses for a uImage get set? Bob Bouterse
2010-05-26 19:14 ` Microbit_Ubuntu [this message]
2010-05-26 20:15 ` Bob Bouterse
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=1274901291.23700.5.camel@ubuntu \
--to=microbit@virginbroadband.com.au \
--cc=buildroot@busybox.net \
/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