]> git.baikalelectronics.ru Git - kernel.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)
commitd229abd967dd3b83e7b30a97050767afd4dfc0b6
tree99c03eaf2eda0da6d5766d2cedd961aa10cf7ff2
parent63584868e498a5a7b6a2efa947ee9720df4d1463
[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