summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorGuodong Xu <guodong.xu@linaro.org>2017-08-15 04:26:17 +0100
committerJohn Stultz <john.stultz@linaro.org>2017-10-03 14:33:10 -0700
commitb8c41776fd026f4910eaf96dc6fdc046f1829449 (patch)
treec4ebeca17b2a32bb763124f0576c8937e783bdb0 /installer
parentb266cd2109ae0bae7ab6aead0da8dcc74ce82b08 (diff)
downloadhikey-b8c41776fd026f4910eaf96dc6fdc046f1829449.tar.gz
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>
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/hikey960/flash-all.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/installer/hikey960/flash-all.sh b/installer/hikey960/flash-all.sh
index 7b7db51e..531411eb 100755
--- a/installer/hikey960/flash-all.sh
+++ b/installer/hikey960/flash-all.sh
@@ -15,9 +15,10 @@ fi
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