]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] bootwrapper: Use physical address in PHDR for uImage
authorKumar Gala <galak@kernel.crashing.org>
Tue, 15 Apr 2008 19:52:29 +0000 (05:52 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Apr 2008 21:46:14 +0000 (07:46 +1000)
commitb18796d32a35ca4d996c584c3bb6d0a4f8a7d310
tree99c03eaf2eda0da6d5766d2cedd961aa10cf7ff2
parent366234f657879aeb7a1e2ca582f2f24f3fae9269
[POWERPC] bootwrapper: Use physical address in PHDR for uImage

Now that we properly set the physical address in the program header of the
vmlinux ELF we can extract it to properly set the load and entry point for
u-boot uImages.  Before we always hard coded the load & entry point to 0.
However there are situations that the kernel may be built with a non-zero
physical address.

We use objdump to extract the PHDR.  We assume that there is only one
PHDR in the vmlinux of type LOAD.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/wrapper