From 980b13085254f83937912453f8d6ad18ada248d0 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Fri, 19 Feb 2021 04:36:53 +0000 Subject: 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 Change-Id: I03d254785f9f8d3fde49b0dc3e19e22c542fd0ea --- installer/hikey960/flash-all.sh | 1 + installer/hikey960/uefi-flash-all.sh | 1 + 2 files changed, 2 insertions(+) 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 () { -- cgit v1.2.3