From 6121c22730e20e943ed376cebb7d23f05c961f81 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 21 Aug 2012 13:32:27 -0500 Subject: [PATCH] dd: factor out the seek and bs settings Signed-off-by: Robert Nelson --- mk_mmc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 867ea33..ea128f5 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1100,7 +1100,7 @@ function dd_to_drive { echo "" echo "Using dd to place bootloader on drive" echo "-----------------------------" - dd if=${TEMPDIR}/dl/${UBOOT} of=${MMC} seek=1 bs=1024 + dd if=${TEMPDIR}/dl/${UBOOT} of=${MMC} seek=${dd_seek} bs=${dd_bs} bootloader_installed=1 echo "Using parted to create BOOT Partition" @@ -1377,6 +1377,8 @@ function is_imx { bootloader_location="dd_to_drive" unset spl_name boot_name="u-boot.imx" + dd_seek="1" + dd_bs="1024" SUBARCH="imx"