hikey960: installer: Prepare for hikey960 ptable change
For a future ptable change, we need to flash xloader before
ptable. And after ptable is flashed, we need to reboot board to
ensure the new ptable is used before we flash other images.
Change-Id: Ib332a06b0241defbdd256318c38a8ac72e8576aa
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/installer/hikey960/flash-all.sh b/installer/hikey960/flash-all.sh
index 7b7db51..531411e 100755
--- a/installer/hikey960/flash-all.sh
+++ b/installer/hikey960/flash-all.sh
@@ -15,9 +15,10 @@
echo "android out dir:${ANDROID_PRODUCT_OUT}"
-fastboot flash ptable "${INSTALLER_DIR}"/ptable.img
fastboot flash xloader "${INSTALLER_DIR}"/sec_xloader.img
+fastboot flash ptable "${INSTALLER_DIR}"/ptable.img
fastboot flash fastboot "${INSTALLER_DIR}"/fastboot.img
+fastboot reboot-bootloader
fastboot flash nvme "${INSTALLER_DIR}"/nvme.img
fastboot flash fw_lpm3 "${INSTALLER_DIR}"/lpm3.img
fastboot flash trustfirmware "${INSTALLER_DIR}"/bl31.bin