Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How does the Start and Entry Point addresses for a uImage get set?
@ 2010-05-26 18:45 Bob Bouterse
  2010-05-26 19:14 ` Microbit_Ubuntu
  2010-05-26 20:15 ` Bob Bouterse
  0 siblings, 2 replies; 3+ messages in thread
From: Bob Bouterse @ 2010-05-26 18:45 UTC (permalink / raw)
  To: buildroot

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.

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

* [Buildroot] How does the Start and Entry Point addresses for a uImage get set?
  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
  2010-05-26 20:15 ` Bob Bouterse
  1 sibling, 0 replies; 3+ messages in thread
From: Microbit_Ubuntu @ 2010-05-26 19:14 UTC (permalink / raw)
  To: buildroot

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

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

* [Buildroot] How does the Start and Entry Point addresses for a uImage get set?
  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
@ 2010-05-26 20:15 ` Bob Bouterse
  1 sibling, 0 replies; 3+ messages in thread
From: Bob Bouterse @ 2010-05-26 20:15 UTC (permalink / raw)
  To: buildroot

Ok, I found this. The real fix to my problem was the complete rebuild of
the kernel.

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.

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

end of thread, other threads:[~2010-05-26 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-05-26 20:15 ` Bob Bouterse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox