w / ziparchive zip:无法在偏移量0处分配x咬伤0:在钓鱼者上闪烁的工厂映像留在设备上没有空间(Nexus 6p) -- rom-flashing 领域 和 nexus 领域 android 相关 的问题

W/ziparchive Zip: unable to allocate X bites at offset 0 : No space left on device while flashing factory image on angler (Nexus 6P)


简体版||繁體版
0
vote

问题

中文

我正在尝试做 Flash出厂图像在 angler 在我的nexus 6p上。有一些 No space left on device 错误:

  ./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [  0.127s] writing 'bootloader'... OKAY [  0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [  1.283s] writing 'radio'... OKAY [  2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate  2860210996 bytes at offset 0 :     No space left on device failed to extract 'system.img': I/O error   

(由自己插入的空间以获得更好的可读性)

我想这是手机上缺乏空间。

  shell@angler: $ df -h                                                   Filesystem                Size      Used Available Use% Mounted on tmpfs                     1.4G    484.0K      1.4G   0% /dev tmpfs                     1.4G         0      1.4G   0% /mnt /dev/block/dm-0           3.0G      1.8G      1.1G  62% /system /dev/block/dm-1         196.6M    184.7M      8.0M  96% /vendor /dev/block/platform/soc.0/f9824900.sdhci/by-name/cache                          92.9M      1.8M     88.0M   2% /cache /dev/block/platform/soc.0/f9824900.sdhci/by-name/persist                           3.9M    740.0K      3.0M  20% /persist /dev/block/platform/soc.0/f9824900.sdhci/by-name/modem                          80.0M     47.5M     32.4M  59% /firmware tmpfs                     1.4G         0      1.4G   0% /storage /dev/block/dm-2          53.5G    132.9M     52.9G   0% /data df: /mnt/runtime/default/emulated: Permission denied /data/media              53.5G    132.9M     52.9G   0% /storage/emulated   

使用 fastboot 版本 1:8.1.0+r23-5 从debian,android是 angler:8.1.0

任何想法可能是什么问题?

在源中搜索,它失败 static void* unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz)

  int error = ExtractToMemory(zip, &zip_entry, data, zip_entry.uncompressed_length); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s ", entry_name, ErrorCodeString(error));     free(data);     return 0; }   

https:/ / android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#505

static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name)

  int error = ExtractEntryToFile(zip, &zip_entry, fd); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s ", entry_name, ErrorCodeString(error));     return -1; }   

https:/ / android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#628

更新:看起来它真的缺少笔记本电脑上的空间。以前我有大约8GB,我认为足够了。清楚后有17GB并尝试更新不同的图像图像--angler-nmf26f.zip我得到了不同的错误(可能是不同的错误(可能是相关的 ./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [ 0.127s] writing 'bootloader'... OKAY [ 0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [ 0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [ 1.283s] writing 'radio'... OKAY [ 2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [ 0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate 2860210996 bytes at offset 0 : No space left on device failed to extract 'system.img': I/O error 0 ./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [ 0.127s] writing 'bootloader'... OKAY [ 0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [ 0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [ 1.283s] writing 'radio'... OKAY [ 2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [ 0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate 2860210996 bytes at offset 0 : No space left on device failed to extract 'system.img': I/O error 1 ):

  ./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [  0.127s] writing 'bootloader'... OKAY [  0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [  1.283s] writing 'radio'... OKAY [  2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate  2860210996 bytes at offset 0 :     No space left on device failed to extract 'system.img': I/O error 2  
english

I was trying to do flash factory image on angler on my Nexus 6P. There is some No space left on device error:

./flash-all.sh # added set -x to script + fastboot flash bootloader bootloader-angler-angler-03.68.img target reported max download size of 494927872 bytes sending 'bootloader' (3544 KB)... OKAY [  0.127s] writing 'bootloader'... OKAY [  0.208s] finished. total time: 0.335s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.073s + sleep 5 + fastboot flash radio radio-angler-angler-03.81.img < waiting for any device > target reported max download size of 494927872 bytes sending 'radio' (48728 KB)... OKAY [  1.283s] writing 'radio'... OKAY [  2.174s] finished. total time: 3.457s + fastboot reboot-bootloader rebooting into bootloader... OKAY [  0.022s] finished. total time: 0.072s + sleep 5 + fastboot -w update image-angler-n2g48c.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2727 MB)... W/ziparchive(66399): Zip: unable to allocate  2860210996 bytes at offset 0 : \    No space left on device failed to extract 'system.img': I/O error 

(space inserted by myself for better readability)

I suppose this is lacking space on the phone.

shell@angler: $ df -h                                                   Filesystem                Size      Used Available Use% Mounted on tmpfs                     1.4G    484.0K      1.4G   0% /dev tmpfs                     1.4G         0      1.4G   0% /mnt /dev/block/dm-0           3.0G      1.8G      1.1G  62% /system /dev/block/dm-1         196.6M    184.7M      8.0M  96% /vendor /dev/block/platform/soc.0/f9824900.sdhci/by-name/cache                          92.9M      1.8M     88.0M   2% /cache /dev/block/platform/soc.0/f9824900.sdhci/by-name/persist                           3.9M    740.0K      3.0M  20% /persist /dev/block/platform/soc.0/f9824900.sdhci/by-name/modem                          80.0M     47.5M     32.4M  59% /firmware tmpfs                     1.4G         0      1.4G   0% /storage /dev/block/dm-2          53.5G    132.9M     52.9G   0% /data df: /mnt/runtime/default/emulated: Permission denied /data/media              53.5G    132.9M     52.9G   0% /storage/emulated 

Using fastboot version 1:8.1.0+r23-5 from Debian, Android is angler:8.1.0.

Any idea what could be the problem?

Searching in the sources, it fails in static void* unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz)

int error = ExtractToMemory(zip, &zip_entry, data, zip_entry.uncompressed_length); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s\n", entry_name, ErrorCodeString(error));     free(data);     return 0; } 

https://android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#505

or in static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name)

int error = ExtractEntryToFile(zip, &zip_entry, fd); if (error != 0) {     fprintf(stderr, "failed to extract '%s': %s\n", entry_name, ErrorCodeString(error));     return -1; } 

https://android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#628

UPDATE: it looks like it's really lack of space on the laptop. Previously I had about 8GB, which I considered enough. After clear to have 17GB and trying to update different image image-angler-nmf26f.zip I got different error (probably related /tmp being tmpfs):

strace -o strace.log fastboot -w update image-angler-nmf26f.zip extracting android-info.txt (0 MB)... extracting boot.img (12 MB)... target reported max download size of 494927872 bytes archive does not contain 'boot.sig' archive does not contain 'dtbo.img' archive does not contain 'dt.img' extracting recovery.img (17 MB)... archive does not contain 'recovery.sig' extracting system.img (2691 MB)... archive does not contain 'system.sig' archive does not contain 'vbmeta.img' extracting vendor.img (194 MB)... W/ziparchive(109113): Zip: unable to allocate  204079852 bytes at offset 0 : No space left on device failed to extract 'vendor.img': I/O error wiping userdata... Couldn't parse erase-block-size '0x'. Couldn't parse logical-block-size '0x'. mke2fs 1.45.5 (07-Jan-2020) /tmp/TemporaryFile-xaoMGH: Unimplemented ext2 library function while setting up superblock /usr/lib/android-sdk/platform-tools/mke2fs failed with status 1 mke2fs failed: 1 error: Cannot generate image for userdata 
     

回答列表

0
 
vote

根据其他是 -w 选项以某种方式破损,应该用 fastboot erase <partition> 替换,例如:

  fastboot oem unlock fastboot erase boot fastboot erase cache fastboot erase recovery fastboot erase system fastboot erase userdata fastboot flash bootloader bootloader-angler-angler-03.68.img fastboot reboot-bootloader sleep 5 fastboot flash radio radio-angler-angler-03.81.img   

i结束我遵循 fireelord建议解压缩 image-angler-nmf26f.zip (而不是闪烁它),并手动闪存所有分区:

  fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash vendor vendor.img   

注意:运行命令 fastboot erase <partition> 不需要作为 fastboot flash 擦除系统。

 

According to the others is -w option is somehow broken and should be replaced with fastboot erase <partition>, e.g.:

fastboot oem unlock fastboot erase boot fastboot erase cache fastboot erase recovery fastboot erase system fastboot erase userdata fastboot flash bootloader bootloader-angler-angler-03.68.img fastboot reboot-bootloader sleep 5 fastboot flash radio radio-angler-angler-03.81.img 

I the end I followed Firelord suggestion to unpack image-angler-nmf26f.zip (instead of flashing it) and flash all partitions manually:

fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img fastboot flash vendor vendor.img 

NOTE: running commands fastboot erase <partition> is not needed as fastboot flash erase system.

 
 

相关问题

0  使用带有Nexus 7的外部DVD播放器  ( Using external dvd player with nexus 7 ) 
我希望能够使用我的外部DVD播放器与我的Nexus 7平板电脑,是那个或挂载的插件吗? ...

0  消息卡在通知区域  ( Messages stuck in notification area ) 
我有三星J3运行Android 7.我收到了2个通知,似乎卡在通知区域,没办法摆脱它们。 一个是推送消息,说我已经使用了每月1.6GB的每月流量(来自我的运营商)。即使我将我的短信应用程序设置为来自Google的"邮件" ,也可以以某种方式与电话(无法判断谁是供应商)相关联 另一个是来自"WiFi呼唤" ,它向我通知...

4  忘记了Nexus 6p的刷卡图案锁(但指纹工作!)  ( Forgotten swipe pattern lock for nexus 6p but fingerprint works ) 
我有一个使用Copperhead OS安装的Google Nexus 6p。我忘记了模式解锁屏幕。有没有办法我可以在手机上恢复(部分)数据?我很确定答案将是"没办法" ,但我只是想在我擦拭手机之前确定。 我在手机中有一个指纹,它有效。不幸的是 - 对于某些安全原因 - 它也希望模式也是如此。 也许我可以添加,即我类型...

0  当连接到WiFi或蜂窝数据时,我的Nexus 6p会导致转动  ( My nexus 6p keeps turning of when connected to wifi or cellular data ) 
我有一个5个月的Nexus 6p,每当我打开WiFi或蜂窝数据时,它会重新启动自己。如果没有连接,它可以完全正常。 请帮助 ...

4  无法使用Nougat连接到WiFi  ( Cant connect to wifi using nougat ) 
我在我的nougat上更新了我的nougat 5x。似乎无法连接到一些WiFi网络,因为连接按钮进入凭据后保持灰色。什么是错误的? ...

1  nexus 6p - 使用损坏的卷按钮修复“无命令”  ( Nexus 6p fix no command with a broken volume button ) 
所以,我已经损坏了我的音量按钮。我的手机已经进入了一个"没有命令" 模式,不会让我打开手机。 由于我的音量陷入困境并无法工作,我如何重置手机,以便我可以回复使用它?我可以通过按下电源和音量来进入重启屏幕。但不能进一步继续,因为我的音量不起作用。 有没有办法解决这个问题?谢谢! ...

1  一个应用程序让我的状态栏自动隐藏和透明。怎么修? (新星,系统UI)  ( An app put made my status bar auto hide and transparent how to fix nova syst ) 
我尝试了什么:卸载应用程序(黑色口袋)并重新启动。 还尝试了:谷歌。所有搜索结果告诉我如何隐藏状态栏,这不是我想要的。 显然就像大多数用户一样,我想在我按电源按钮时查看所有电池和连接图标,然后是主页按钮。 在Nexus 6p上使用Nova和System UI在Android 8.1.0上 - 好像这与它有任何关系,...

0  主页按钮,最近按钮,通知,下拉菜单都停止工作  ( Home button recent button notifications pull down menu all stopped working ) 
我有一个nexus 9运行Android 7.1.1,以及Home按钮,最近按钮,所有通知,以及顶部下拉菜单都停止工作。 家庭和最近的按钮响应被删除,因为指示我删除它们的动画(灰色圆圈从按钮扩展),但没有发生任何事情。我可以打开顶部下拉菜单,但它总是说没有通知,我无法进一步将菜单拉下来扩展图标。 我有大约30 gb可...

0  交换或合并左右音频频道  ( Swap or merge left and right audio channels ) 
我扎根的Nexus 6上的扬声器在事故发生后停止工作。每次我打电话时,我都必须使用耳机听到另一端的人。扬声器呼叫设置也没有声音。是否可以通过底部扬声器输出呼叫音频? ...

1  Nexus 7 2013 WiFi(Flo)Bootloader解锁失败  ( Nexus 7 2013 wifi flo bootloader unlock fails ) 
我正在尝试在我的Nexus 7 2013 WiFi 32GB(FLO)上解锁引导加载程序。我关闭它,按下电源按钮+音量,很快用"bootloader" 迎接我。然后,我ran fastboot oem unlock ,它提示平板电脑询问我是否真的想要解锁引导加载程序,然后我随后使用卷键导航为yes,并用电源按钮确认...




© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有