Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sd_fusing.sh #58

Open
wants to merge 1 commit into
base: odroidn2-v2015.01
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sd_fuse/sd_fusing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
#

abort() {
echo $1
echo "$1"
exit 1
}

[ -z $1 ] && abort "usage: $0 <your/memory/card/device>"
[ -z ${UBOOT} ] && UBOOT=${PWD}/u-boot.bin
[ ! -f ${UBOOT} ] && abort "error: ${UBOOT} is not exist"
[ -z "$1" ] && abort "usage: $0 <your/memory/card/device>"
[ -z "${UBOOT}" ] && UBOOT=${PWD}/u-boot.bin
[ ! -f "${UBOOT}" ] && abort "error: ${UBOOT} is not exist"

sudo dd if=$UBOOT of=$1 conv=fsync,notrunc bs=512 seek=1
sudo dd if="$UBOOT" of="$1" conv=fsync,notrunc bs=512 seek=1

sync

sudo eject $1
sudo eject "$1"
echo Finished.