libimobiledevice / idevicerestore

Restore/upgrade firmware of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v3.0
1.33k stars 393 forks source link

RamrodErrorDomain error 1002 - update_gas_gauge: gasgauge_swupdate returned -4 #180

Open d3vCr0w opened 7 years ago

d3vCr0w commented 7 years ago

Hi, I'm trying to restore an iPhone 4s to iOS 9.3.5 and I'm getting the following error:

`entering ramrod_probe_media device partitioning scheme is GPT find_filesystem_partitions: storage=/dev/disk0s1 system=/dev/disk0s1s1 data=/dev/disk0s1s2 baseband data= log= entering mount_filesystems entering mount_partition executing /sbin/fsck_hfs journal_replay(/dev/disk0s1s1) returned 0 /dev/rdisk0s1s1 Cache size should be multiple of cache block size (currently 32K) Using cacheBlockSize=32K cacheTotalBlock=2019 cacheSize=64608K. Executing fsck_hfs (version hfs-305.10.1). Checking Journaled HFS Plus volume. Detected a case-sensitive volume. The volume name is Genoa13G36.N94OS Checking extents overflow file. Checking catalog file. Checking multi-linked files. Checking catalog hierarchy. Checking extended attributes file. Checking volume bitmap. Checking volume information. Trimming unused blocks. The volume Genoa13G36.N94OS appears to be OK. CheckHFS returned 0, fsmodified = 0 executing /sbin/mount_hfs /dev/disk0s1s1 mounted on /mnt1 System mounted read-write entering mount_partition executing /sbin/fsck_hfs journal_replay(/dev/disk0s1s2) returned 0 /dev/rdisk0s1s2 Cache size should be multiple of cache block size (currently 32K) Using cacheBlockSize=32K cacheTotalBlock=2019 cacheSize=64608K. Executing fsck_hfs (version hfs-305.10.1). Checking Journaled HFS Plus volume. Detected a case-sensitive volume. The volume name is Data Checking extents overflow file. Checking catalog file. Checking multi-linked files. Checking catalog hierarchy. Checking extended attributes file. Checking volume bitmap. Checking volume information. Trimming unused blocks. The volume Data appears to be OK. CheckHFS returned 0, fsmodified = 0 executing /sbin/mount_hfs mount_hfs: Could not exec re-keying daemon /usr/libexec/rolld: No such file or directory /dev/disk0s1s2 mounted on /mnt2 Data mounted read-write RestoredFDRRestoreSavedData success entering install_kernel_cache writing kernelcache to /mnt1/System/Library/Caches/com.apple.kernelcaches/kernelcache entering install_secure_vault_daemon entering get_hardware_platform platform-name = s5l8940x linking /mnt1/usr/sbin/securekeyvaultd to /mnt1/usr/sbin/securekeyvaultd.s5l8940x no securekeyvaultd for s5l8940x entering ramrod_ticket_write writing ticket to /mnt1/System/Library/Caches/apticket.der entering RestoredFDRRecover entering update_device_firmware entering add_baseband_partition_options entering ramrod_update_device_firmware entering update_iBoot found 'AppleImage3NORAccess' object in IORegistry entering update_iBoot_image3_NOR_access write_image3_data: flashing illb data (length = 0x24a1a) SYSLOG: Jan 1 02:35:05 localhost kernel[0] : AppleImage3NORAccess::_getSuperBlock imageVersion: 3 SYSLOG: Jan 1 02:35:06 localhost kernel[0] : AppleImage3NORAccess::_getSuperBlock imageVersion: 3 write_image3_data: flashing SCAB data (length = 0xaf0) ticket updated write_image3_data: flashing ibot data (length = 0x4418c) write_image3_data: flashing dtre data (length = 0x1464c) write_image3_data: flashing logo data (length = 0x1a8c) write_image3_data: flashing recm data (length = 0x143cc) write_image3_data: flashing bat0 data (length = 0xaa4c) write_image3_data: flashing bat1 data (length = 0x80c) write_image3_data: flashing chg0 data (length = 0x260c) write_image3_data: flashing chg1 data (length = 0x88cc) write_image3_data: flashing glyP data (length = 0x2e4c) write_image3_data: flashing batF data (length = 0x1484c) SYSLOG: Jan 1 02:35:06 localhost kernel[0] : [nand_part_core:INF@2297] first 2 pages of boot blocks written with copies of partition table SYSLOG: Jan 1 02:35:09 localhost kernel[0] : [nand_part_core:INF@3177] next 98 pages of boot blocks written with LLB image of size 150080 bytes SYSLOG: Jan 1 02:35:09 localhost kernel[0] : [nand_part_core:INF@3180] final 156 pages of boot blocks written with random data in full page format entering update_gas_gauge Update[Gas Gauge] error - The operation couldn\U2019t be completed. (RamrodErrorDomain error 1002 - update_gas_gauge: gasgauge_swupdate returned -4) Update[Gas Gauge] failed - 2 retries remaining... entering update_gas_gauge Update[Gas Gauge] error - The operation couldn\U2019t be completed. (RamrodErrorDomain error 1002 - update_gas_gauge: gasgauge_swupdate returned -4) Update[Gas Gauge] failed - 1 retries remaining... entering update_gas_gauge Update[Gas Gauge] error - The operation couldn\U2019t be completed. (RamrodErrorDomain error 1002 - update_gas_gauge: gasgauge_swupdate returned -4) Update[Gas Gauge] failed - 0 retries remaining... 0: RamrodErrorDomain/3ea: update_gas_gauge: gasgauge_swupdate returned -4

ERROR: Unable to successfully restore device ERROR: Unable to restore device`

Do doy have any iDea on what is happening and how to solve this?

BTW thanks

d3vCr0w commented 7 years ago

Is it possible to skip the gas_gauge update?

perezdann commented 7 years ago

I Have same issue