"adb remount" fails with latest android tip code for hikey960

Hi,

I have tried to flash latest android tip code on Hikey960, flashing seems fine, but after boot, “adb root” is fine, but “adb remount” fails with below error.

Waited one second for gsiservice (is service started? are binder threads started and available?)
Could not acquire IImageManager: Invalid path
Overlayfs setup for /system failed, skipping: No such file or directory
Could not acquire IImageManager: Invalid path
Overlayfs setup for /vendor failed, skipping: No such file or directory
Could not acquire IImageManager: Invalid path
Overlayfs setup for /system_ext failed, skipping: No such file or directory
Could not acquire IImageManager: Invalid path
Overlayfs setup for /product failed, skipping: No such file or directory
No partitions to remount
remount failed

I have used below command to build.
$ make TARGET_KERNEL_USE=5.4 HIKEY_USES_GKI=true -j32

I have used “device/linaro/hikey/installer/hikey960/flash-all.sh” to flash.
Also noticed that it uses super.img and not system.img and vendor.img. Can someone help me understand what exactly “super.img” is?

Thanks.

This should be helpful;
https://source.android.com/devices/tech/ota/dynamic_partitions/implement

Thanks for the pointers regarding dynamic partitions.

Do you have any suggestion for “adb remount” fails with android tip code?

According to the logs, @jstultz is responsible for those changes, so he’d probably be best able to answer you on that.

However, my recommendation is this; you shouldn’t have to remount those partitions. If you need to change things on them, implement those changes in the build tree (i.e. /device/linaro/hikey/), run a build, and write the updated image.

Apologies. While we have had some recent fixups, I did miss one edge case with the hisi-bootloader.

A fix is here:
https://android-review.googlesource.com/c/device/linaro/hikey/+/1646411

Let me know if you still have trouble after re-flashing with that fix.

Thanks @jstultz, with this change “adb remount” is working fine.

$ adb remount
Waited one second for gsiservice (is service started? are binder threads started and available?)
Using overlayfs for /system
Using overlayfs for /vendor
Using overlayfs for /system_ext
Using overlayfs for /product
Now reboot your device for settings to take effect
remount succeeded

Hi,

It is still failing for me.

Sending ‘userdata’ (184 KB) OKAY [ 0.012s]
Writing ‘userdata’ OKAY [ 1.088s]
Finished. Total time: 1.126s

  • fastboot format:ext4:10000000 cache
    Warning: cache type is 0.5, but ext4 was requested for formatting.
    Warning: cache size is 0.5, but 10000000 was requested for formatting.
    Couldn’t parse erase-block-size ‘0x0.5’.
    Couldn’t parse logical-block-size ‘0x0.5’.
    /usr/bin/mke2fs failed with status 1
    fastboot: error: Cannot generate image for cache
  • fastboot reboot
    Rebooting

Trying to flash the hikey960 from ubuntu platform with the latest fastboot tool.
Below are my flash commands:

adb -s $1 reboot-bootloader
fastboot flash xloader “${INSTALLER_DIR}”/hisi-sec_xloader.img
fastboot flash ptable “${INSTALLER_DIR}”/hisi-ptable.img
fastboot flash fastboot “${INSTALLER_DIR}”/hisi-fastboot.img
fastboot reboot-bootloader
fastboot flash nvme “${INSTALLER_DIR}”/hisi-nvme.img
fastboot flash fw_lpm3 “${INSTALLER_DIR}”/hisi-lpm3.img
fastboot flash trustfirmware “${INSTALLER_DIR}”/hisi-bl31.bin
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:ext4:10000000 cache
fastboot reboot

Could you please help me with this.

ignore.

cp /platform-tools/mke2fs /usr/local/bin/mke2fs /usr/bin/
mke2fs has to be updated.

After updating the above bin, could run the below command.
fastboot format:ext4:10000000 cache

Thanks,

Hi,

In my case adb remount is success with overlaysfs. But if I push any new files in vendor or system partition its getting lost after reboot.

Any idea on how to push/replace the files in vendor/system partition ?

Regards,

Mallikarjun