aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/wrapper
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-12-01 14:35:08 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-12-07 22:22:52 -0500
commit11eab297f57bd6168425ae968e56c314e71b024e (patch)
treed28266a447accf2b741e20d1e605e7a045ba9e2d /arch/powerpc/boot/wrapper
parentfaa8bf8878636e40646d307e0516dbadb3b65b4f (diff)
powerpc: Add support for OpenBlockS 600
So I've had one of these for a while and it looks like the vendor never bothered submitting the support upstream. This adds it using ppc40x_simple and provides a device-tree. There are some changes to the boot wrapper because the way u-boot works on this thing, it seems to expect a multipart image with the kernel, initrd and dtb in it. The USB support is missing as it needs the yet unmerged driver for the DWC OTG part and the GPIOs may need further definition in the dts. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-xarch/powerpc/boot/wrapper22
1 files changed, 21 insertions, 1 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index c74531af72c0..14cd4bca8b8a 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -163,7 +163,7 @@ coff)
163 link_address='0x500000' 163 link_address='0x500000'
164 pie= 164 pie=
165 ;; 165 ;;
166miboot|uboot) 166miboot|uboot*)
167 # miboot and U-boot want just the bare bits, not an ELF binary 167 # miboot and U-boot want just the bare bits, not an ELF binary
168 ext=bin 168 ext=bin
169 objflags="-O binary" 169 objflags="-O binary"
@@ -291,6 +291,26 @@ uboot)
291 fi 291 fi
292 exit 0 292 exit 0
293 ;; 293 ;;
294uboot-obs600)
295 rm -f "$ofile"
296 # obs600 wants a multi image with an initrd, so we need to put a fake
297 # one in even when building a "normal" image.
298 if [ -n "$initrd" ]; then
299 real_rd="$initrd"
300 else
301 real_rd=`mktemp`
302 echo "\0" >>"$real_rd"
303 fi
304 ${MKIMAGE} -A ppc -O linux -T multi -C gzip -a $membase -e $membase \
305 $uboot_version -d "$vmz":"$real_rd":"$dtb" "$ofile"
306 if [ -z "$initrd" ]; then
307 rm -f "$real_rd"
308 fi
309 if [ -z "$cacheit" ]; then
310 rm -f "$vmz"
311 fi
312 exit 0
313 ;;
294esac 314esac
295 315
296addsec() { 316addsec() {