diff options
author | John Stultz <john.stultz@linaro.org> | 2021-02-19 04:36:53 +0000 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2021-02-23 05:05:49 +0000 |
commit | 980b13085254f83937912453f8d6ad18ada248d0 (patch) | |
tree | 6fc16163ed80129d22b379386663ddfe4bbd1e9e | |
parent | e8fe717c88f80162d69307352ba06bf1121c861f (diff) | |
download | hikey-980b13085254f83937912453f8d6ad18ada248d0.tar.gz |
hikey960: flash-all: Make sure to format cache partition
We are re-using the cache partition as /metadata, so make
sure we format it when flashing to avoid quirks due to
outdated data left behind on the metadata parititon.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I03d254785f9f8d3fde49b0dc3e19e22c542fd0ea
-rwxr-xr-x | installer/hikey960/flash-all.sh | 1 | ||||
-rwxr-xr-x | installer/hikey960/uefi-flash-all.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/installer/hikey960/flash-all.sh b/installer/hikey960/flash-all.sh index 2828089a..a2c97a0c 100755 --- a/installer/hikey960/flash-all.sh +++ b/installer/hikey960/flash-all.sh @@ -26,4 +26,5 @@ fastboot flash boot "${ANDROID_PRODUCT_OUT}"/boot.img fastboot flash dts "${ANDROID_PRODUCT_OUT}"/dt.img fastboot flash super "${ANDROID_PRODUCT_OUT}"/super.img fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img +fastboot format cache fastboot reboot diff --git a/installer/hikey960/uefi-flash-all.sh b/installer/hikey960/uefi-flash-all.sh index 9c7301dc..c2f06aff 100755 --- a/installer/hikey960/uefi-flash-all.sh +++ b/installer/hikey960/uefi-flash-all.sh @@ -46,6 +46,7 @@ function flashing_atf_uefi () { fastboot flash boot "${ANDROID_PRODUCT_OUT}"/boot.img fastboot flash super "${ANDROID_PRODUCT_OUT}"/super.img fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img + fastboot format cache } function upgrading_ptable_1mb_aligned () { |