summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2016-05-30 15:48:50 +0800
committerDmitry Shmidt <dimitrysh@google.com>2016-05-31 14:54:06 -0700
commite637ba5fec76ef175cfad04630d58943a3836b9b (patch)
tree6347e6dba994749a63f9ed3d02215ec03b00fb44
parent1879e03a599f4d86a162f8af35a62dc55be6d0f7 (diff)
downloadhikey-e637ba5fec76ef175cfad04630d58943a3836b9b.tar.gz
installer/flash-all.sh: add sudo to run hisi-idt.py
so that we don't need to run flash-all.sh with sudo command Change-Id: Ic9610dffebad2f8a5e8f08992de981bb121964ad Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xinstaller/flash-all.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/flash-all.sh b/installer/flash-all.sh
index 0d71b45b..c4049e22 100755
--- a/installer/flash-all.sh
+++ b/installer/flash-all.sh
@@ -45,7 +45,7 @@ if [ ! -d $OUT_IMGDIR ]; then
fi
echo "android out dir:$OUT_IMGDIR"
-python ${INSTALLER_DIR}/hisi-idt.py --img1=${INSTALLER_DIR}/l-loader.bin -d ${DEVICE_PORT}
+sudo python ${INSTALLER_DIR}/hisi-idt.py --img1=${INSTALLER_DIR}/l-loader.bin -d ${DEVICE_PORT}
fastboot flash ptable ${INSTALLER_DIR}/${PTABLE}
fastboot flash fastboot ${INSTALLER_DIR}/fip.bin
fastboot flash nvme ${INSTALLER_DIR}/nvme.img