Thanks @doitright. I had to modify uefi-flash-all.sh
[1] as it uses variables ANDROID_BUILD_TOP
and ANDROID_PRODUCT_OUT
, and various build products that I don’t have e.g.:
# fastboot flash boot "${ANDROID_PRODUCT_OUT}"/boot.img
# fastboot flash system "${ANDROID_PRODUCT_OUT}"/system.img
# fastboot flash vendor "${ANDROID_PRODUCT_OUT}"/vendor.img
# fastboot flash cache "${ANDROID_PRODUCT_OUT}"/cache.img
# fastboot flash userdata "${ANDROID_PRODUCT_OUT}"/userdata.img
Unfortunately, flashing the Linux rootFS after that didn’t work. (I think that system
is perhaps different for AOSP and Linux.)
Right now I am just wondering if there is a way to reformat the whole internal flash, and then start with the Linux instructions from scratch.
[1] installer/hikey960/uefi-flash-all.sh - device/linaro/hikey - Git at Google