Title: mkimage.sh loops forever [Print This Page] Author: pietrushnic Time: 8/19/2015 03:25 Title: mkimage.sh loops forever I'm trying to follow this tutorial and it looks like mkimage.sh loops forever (I stopped watch when processing system.img reached 9.5GB interestingly du show about 470MB).
[16:22:51] pietrushnic:firefly-rk3288 gitmaster*) $ ./mkimage.sh
TARGET_PRODUCT=rk3288
TARGET_HARDWARE=rk30board
system filesysystem is ext4
create boot.img without kernel... done.
create recovery.img with kernel and with out resource... done.
create misc.img.... done.
create system.img...
I'm using e2f2ba5dd349 tag: Firefly-RK3288_Android4.4_201504181055. I wonder what is the purpose of loop in mkimage.sh:
Looks like I'm looping here forever. My system.img from ./out/target/product/rk3288/system.img file size is 399306712.
Any idea how to pass mkimage.sh script ?
Author: sghazagh Time: 8/19/2015 08:33 Last edited by sghazagh In 8/19/2015 16:30 Editor
Probably your "losetup" device is busy...
Try restarting your machine an see if it can create the image...
It needs to add a loop back device and mount to copy the system image.
Sometimes the loop back device is occupied and it cannot create other loop back device.
Restart and test...
You can get a list of loop back devices currently in use by command "losetup -a" Author: pietrushnic Time: 8/19/2015 14:58
Thanks for reply.
Ok the key information was that it should create loop device. it need root privileges to to do that.
sudo ./mkimage.sh
Copy the code
Did the trick. Thanks for helping out.
BTW to check loop devices
losetup -a
Copy the code
should be used at least for Debian.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)