2013-04-28 88 views
0

在Mac OS X上,下列步驟後:建築安卓:system.img缺少

  1. $ lunch,並挑選full-grouper-userdebug
  2. make -j8
  3. adb reboot bootloader
  4. fastboot flashall -w

我得到了錯誤:

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

有什麼想法?

+0

make -j8之後,是否會生成一個system.img? – StarPinkER 2013-04-28 02:42:15

+0

@JermaineXu號我意識到由於空間不足而無法成功建造。我將ccache(50GB)放入'Volumes/android/WORKING_DERECTORY'中。我想這導致了這個問題。我只是把它移到了我的主目錄'〜/ .ccache',並且正在重建它。 – JackWM 2013-04-28 03:13:10

+0

如果您的建築物出現任何錯誤,請將其粘貼出來。 – StarPinkER 2013-04-28 03:16:39

回答

0

我發現system.img丟失的原因是構建過程失敗。

在建設,我得到這個錯誤:

/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 

我指定我/Volumes/android分區40GB 區分大小寫的磁盤映像。雖然我也把.ccache放在這個分區下,並給它一個50GB的空間限制。儘管我沒有看到.ccache的規模增長到非常大(大約2GB),但我懷疑它導致了No space錯誤。於是我將.ccache移到/Volumes/android以外的另一個目錄,並重建了系統。這一次,一切順利,我得到了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