aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-26 20:37:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-26 20:37:19 +0000
commit83edad4a85206be0828a203584eddb051a52cf27 (patch)
tree2125d9d5e515a02d73beebf65aae8cab1d7bb60d
parent9515165e033a0e326ad465d7bbe572e99ef9a598 (diff)
downloadupstream-83edad4a85206be0828a203584eddb051a52cf27.tar.gz
upstream-83edad4a85206be0828a203584eddb051a52cf27.tar.bz2
upstream-83edad4a85206be0828a203584eddb051a52cf27.zip
gemini: make dd commands more portable
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45039 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/gemini/image/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile
index d4d0aac0a6..b67a7fa638 100644
--- a/target/linux/gemini/image/Makefile
+++ b/target/linux/gemini/image/Makefile
@@ -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)