summaryrefslogtreecommitdiffstats
path: root/board/freescale-mx35-3-stack/env/bin/_update
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale-mx35-3-stack/env/bin/_update')
-rw-r--r--board/freescale-mx35-3-stack/env/bin/_update5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/freescale-mx35-3-stack/env/bin/_update b/board/freescale-mx35-3-stack/env/bin/_update
index fb7cbe8..4f0839f 100644
--- a/board/freescale-mx35-3-stack/env/bin/_update
+++ b/board/freescale-mx35-3-stack/env/bin/_update
@@ -20,7 +20,7 @@ fi
ping $eth0.serverip
if [ $? -ne 0 ] ; then
- echo "update aborted"
+ echo "Server did not reply! Update aborted."
exit 1
fi
@@ -28,9 +28,12 @@ unprotect $part
echo
echo "erasing partition $part"
+echo
erase $part
echo
echo "flashing $image to $part"
echo
tftp $image $part
+
+protect $part