建筑机器人:system.img缺失 [英] building android: system.img is missing
问题描述
在Mac OS X上,下面的步骤后:
On Mac OS X, after the following steps:
-
$午餐
,并选择全石斑鱼-userdebug
-
使-j8
-
亚行重新启动引导程序
-
FASTBOOT flashall -w
$ lunch
, and pickfull-grouper-userdebug
make -j8
adb reboot bootloader
fastboot flashall -w
我得到了错误:
错误:无法加载system.img:没有这样的文件或目录
任何想法?
推荐答案
我发现 system.img
是缺少的是建设过程中失败的原因。
I found the reason that the system.img
was missing is the building process failed.
在建设,我得到这个错误:
During the building, I got this error:
/bin/bash: line 0: echo: write error: No space left on device
make: *** [out/target/common/obj/APPS/ContactsProvider_intermediates/classes-full-debug.jar] Error 1
make: *** Waiting for unfinished jobs....
prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-ar: out/target/product/grouper/obj/STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a: No space left on device
Unable to add 'hdpi/res/drawable-hdpi/browser_widget_preview.png #generated': Zip add failed
ERROR: unable to process assets while packaging 'out/target/product/grouper/obj/APPS/Browser_intermediates/package.apk'
ERROR: packaging of 'out/target/product/grouper/obj/APPS/Browser_intermediates/package.apk' failed
make: *** [out/target/product/grouper/obj/APPS/Browser_intermediates/package.apk] Error 1
make: *** [out/target/product/grouper/obj/STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a] Error 1
make: *** Deleting file `out/target/product/grouper/obj/STATIC_LIBRARIES/libwebcore_intermediates/libwebcore.a'
Running: e2fsck -f -n out/target/product/grouper/unsparse_userdata.img
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
out/target/product/grouper/unsparse_userdata.img: 11/401408 files (0.0% non-contiguous), 53385/1603328 blocks
out/target/product/grouper/userdata.img maxsize=6704729856 blocksize=4224 total=106792464 reserve=67727616
我指定我 /卷/ Android版
分区40GB的区分大小写的磁盘映像即可。虽然我也把 .ccache
这个分区下,给了它50GB的空间限制。虽然我没有看到 .ccache
的规模发展到非常大的(也许2GB左右),我怀疑这引起了无空间
错误。让我感动 .ccache
比之外的其他目录/卷/ Android版
,并重建系统。这一次,一切顺利,我得到了 system.img
,如下图所示。
I assigned my /Volumes/android
partition a 40GB case-sensitive disk image. While I also put the .ccache
under this partition and gave it a space limit of 50GB. Even though I didn't see the size of .ccache
grown to very large (maybe around 2GB), I suspect it caused the No space
error. So I moved .ccache
to another directory other than /Volumes/android
, and rebuilt the system. This time, everything goes well, I got the system.img
, as shown below.
out/target/product/grouper/obj/PACKAGING/systemimage_intermediates/unsparse_system.img: 1075/41664 files (0.0% non-contiguous), 54050/166400 blocks
Running: mkuserimg.sh -s out/target/product/grouper/system out/target/product/grouper/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 681574400 out/target/product/grouper/root/file_contexts
Running: simg2img out/target/product/grouper/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/grouper/obj/PACKAGING/systemimage_intermediates/unsparse_system.img
Running: e2fsck -f -n out/target/product/grouper/obj/PACKAGING/systemimage_intermediates/unsparse_system.img
Install system fs image: out/target/product/grouper/system.img
out/target/product/grouper/system.img+out/target/product/grouper/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=695844864 blocksize=4224 total=212435867 reserve=7028736
这篇关于建筑机器人:system.img缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!