简体   繁体   English

建立android系统:缺少system.img

[英]building android: system.img is missing

On Mac OS X, after the following steps: 在Mac OS X上,执行以下步骤:

  1. $ lunch , and pick full-grouper-userdebug $ lunch ,然后选择full-grouper-userdebug
  2. make -j8
  3. adb reboot bootloader
  4. fastboot flashall -w

I got the error: 我得到了错误:

error: could not load system.img: No such file or directory

Any idea? 任何想法?

I found the reason that the system.img was missing is the building process failed. 我发现缺少system.img的原因是构建过程失败。

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

I assigned my /Volumes/android partition a 40GB case-sensitive disk image . 我为/Volumes/android分区分配了40GB 区分大小写的磁盘映像 While I also put the .ccache under this partition and gave it a space limit of 50GB. 同时,我也将.ccache放在此分区下,并将其空间限制为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. 即使我没有看到.ccache的大小增加到很大(也许大约2GB),我怀疑它引起了No space错误。 So I moved .ccache to another directory other than /Volumes/android , and rebuilt the system. 因此,我将.ccache移至/Volumes/android以外的其他目录,并重建了系统。 This time, everything goes well, I got the system.img , as shown below. 这次一切顺利,我得到了system.img ,如下所示。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM