Skip to content
Snippets Groups Projects
Commit 2a8ddf4a authored by Joakim Bech's avatar Joakim Bech
Browse files

hikey: Add sleep to prevent umount failure


Sometimes it happens that the umount fails saying that a device/resource
is busy when trying umount the device after the filesystem has been
created. We don't know how and why this happens, but in the meantime
while waiting for a proper solution we have added a sleep that seems to
solve the problem.

Signed-off-by: default avatarJoakim Bech <joakim.bech@linaro.org>
Reviewed-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent bbba13bc
No related branches found
No related tags found
No related merge requests found
......@@ -316,6 +316,11 @@ boot-img: linux update_rootfs
sudo cp $(LINUX_PATH)/arch/arm64/boot/Image $(LINUX_PATH)/arch/arm64/boot/dts/hi6220-hikey.dtb .tmpbootimg/
sudo cp $(GEN_ROOTFS_PATH)/filesystem.cpio.gz .tmpbootimg/initrd.img
sudo cp $(EDK2_PATH)/Build/HiKey/$(EDK2_BUILD)_GCC49/AARCH64/AndroidFastbootApp.efi .tmpbootimg/fastboot.efi
# We cannot figure out why we need the sleep here, but from time to time
# we can see that we get "device/resource busy" when trying to unmount
# .tmpbootimg below. A short sleep seems to solve the problem and has to
# be here until we figure out why this happens.
sleep 3
sudo umount .tmpbootimg
sudo rm -rf .tmpbootimg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment