PKGBUILDs/alarm/uboot-odroid-c2/0002-sd_fusing-tweaks.patch

44 lines
1.1 KiB
Diff
Raw Normal View History

2016-02-05 04:30:35 +00:00
From dc03be243f1d4b1c410b748373a9fda99c237797 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Wed, 3 Feb 2016 20:59:26 -0700
Subject: [PATCH 2/4] sd_fusing tweaks
---
sd_fuse/sd_fusing.sh | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/sd_fuse/sd_fusing.sh b/sd_fuse/sd_fusing.sh
index 538185b..c14e0e2 100755
--- a/sd_fuse/sd_fusing.sh
+++ b/sd_fuse/sd_fusing.sh
@@ -15,20 +15,19 @@ if [ -z $1 ]; then
fi
if [ ! -f $BL1 ]; then
- echo "error: $BL1 is not exist"
+ echo "error: $BL1 does not exist"
exit 1
fi
if [ ! -f $UBOOT ]; then
- echo "error: $UBOOT is not exist"
+ echo "error: $UBOOT does not exist"
exit 1
fi
-sudo dd if=$BL1 of=$1 conv=fsync bs=1 count=442
-sudo dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1
-sudo dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97
+dd if=$BL1 of=$1 conv=fsync bs=1 count=442
+dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1
+dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97
sync
-sudo eject $1
-echo Finished.
+echo "Successfully wrote U-Boot to $1"
--
2.7.0