gemini: make dd commands more portable
authorFelix Fietkau <nbd@openwrt.org>
Thu, 26 Mar 2015 20:37:19 +0000 (20:37 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 26 Mar 2015 20:37:19 +0000 (20:37 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45039

target/linux/gemini/image/Makefile

index d4d0aac0a6e426c1afd72724c1076622b6ffb3f3..b67a7fa6386d84fc77ba941bfa0f93c743ad12e6 100644 (file)
@@ -71,9 +71,9 @@ endif
 ifeq ($(SUBTARGET),raidsonic)
 define Image/Build
        $(call Image/Build/$(1),$(1))
-       dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/rd.gz bs=6M count=1
-#      dd if=/dev/zero of=$(BIN_DIR)/hddapp.tgz bs=6M count=1
-       dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/hddapp.tgz bs=6M count=1 seek=1
+       dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/rd.gz bs=6144k count=1
+#      dd if=/dev/zero of=$(BIN_DIR)/hddapp.tgz bs=6144k count=1
+       dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/hddapp.tgz bs=6144k count=1 seek=1
        cp $(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage $(BIN_DIR)/zImage
        cp ./ImageInfo-ib4220 $(BIN_DIR)/ImageInfo
        (cd $(BIN_DIR); tar -czf sysupgrade-ib4220.tar.gz ImageInfo zImage rd.gz hddapp.tgz)