#!/bin/bash
UTOOL="${ROCKDEV_SCRIPTS}/upgrade_tool/upgrade_tool" 
if [ -z "${1}" ]; then
	"${UTOOL}" ef "${ROCKDEV_ROOT}/${ROCKDEV_ROM_NAME}.dump/Image/MiniLoaderAll.bin"
fi
"${UTOOL}" uf "${ROCKDEV_ROOT}/${ROCKDEV_ROM_NAME}"
echo "Ignore any \"Download Firmware Fail\" errors..."
"${UTOOL}" rd
