diff options
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-x | arch/powerpc/boot/wrapper | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index 14a01823ba53..d6c96d9ab291 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper | |||
@@ -230,10 +230,13 @@ if [ -n "$version" ]; then | |||
230 | uboot_version="-n Linux-$version" | 230 | uboot_version="-n Linux-$version" |
231 | fi | 231 | fi |
232 | 232 | ||
233 | # physical offset of kernel image | ||
234 | membase=`${CROSS}objdump -p "$kernel" | grep -m 1 LOAD | awk '{print $7}'` | ||
235 | |||
233 | case "$platform" in | 236 | case "$platform" in |
234 | uboot) | 237 | uboot) |
235 | rm -f "$ofile" | 238 | rm -f "$ofile" |
236 | mkimage -A ppc -O linux -T kernel -C gzip -a 00000000 -e 00000000 \ | 239 | mkimage -A ppc -O linux -T kernel -C gzip -a $membase -e $membase \ |
237 | $uboot_version -d "$vmz" "$ofile" | 240 | $uboot_version -d "$vmz" "$ofile" |
238 | if [ -z "$cacheit" ]; then | 241 | if [ -z "$cacheit" ]; then |
239 | rm -f "$vmz" | 242 | rm -f "$vmz" |