EVA-L19 /cust "Invalid argument" BRICKED - Huawei P9 Questions & Answers

Hello,
I have an issue with a P9 that I'm hoping has a work around. As of now there is no rom on it because I am unable to install one. Before this happened I updated to the Nougat 7.0 with the emui 5.0. I flashed the wrong version so I attempted to wipe and reinstall stock to no avail.
I have access to recovery between stock and TWRP. The bootloader is unlocked. I have attempted to flash stock with the dload method but always gets stuck on 5% and fails. When I try to flash with TWRP I get the cust "invalid argument" error. I have attempted to extract the files from the update.app and flash with fastboot but when I get to cust.img I get an error:
C:\platform-tools>fastboot flash cust cust.img
target reported max download size of 471859200 bytes
sending 'cust' (257481 KB)...
OKAY [ 8.301s]
writing 'cust'...
FAILED (remote: partition error)
finished. total time: 8.316s
I tried this method of restoring the cust partition and I receive an d error saying that there is not enough space.
https://forum.xda-developers.com/honor-5x/help/how-restore-cust-partition-t3356769/page2
My last resort was to attempt to wipe the cust partition but I receive "command not allowed"
At this point I'm unsure what else to do. Does anyone have any other ideas on how to restore the cust partition?

Just though I'd let you know that this was a newbie mistake.... For future reference, When you attempt the dlaod method DISCONNECT the usb from the computer or it will either hang or fail. My phone is back up and running )

do you still have the cust.img ?

Related

Help - Stuck in Bootloop

The point in which everything took a turn for the worst was while trying to update firmware via SD update method. At which point it just stayed on android boot screen.
Recovery was broken at this point
I successfully flashed an older CWM version, but that was useless for reflashing the latest Asus firmware.
I tried flashing stock recovery again and it appeared to succeed, but now when I try to boot to recovery, it just goes back to bootloop.
I'm trying to flash the US version now via fastboot I get bootloop again and I'm getting weird errors every time I try regarding filesize. (See below)
I tried flashing CROMbi as well and it went through the install process successfully, but that resulted in bootloop as well.
Tried flashing Asus US firmware again without success,
Kind of pissed that this all started when following the instructions on the Asus site to upgrade to their latest firmware via SD card.
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -i 0x0B05 flash system
asusus.zip
target reported max download size of 643825664 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 425021387 is not a multiple of t
he block size 4096
erasing 'system'...
OKAY [ 1.457s]
sending sparse 'system' (628732 KB)...
error: write_sparse_skip_chunk: don't care size 425021387 is not a multiple of t
he block size 4096
error: write_sparse_skip_chunk: don't care size 425021387 is not a multiple of t
he block size 4096
OKAY [ 86.837s]
writing 'system'...
OKAY [ 17.080s]
sending sparse 'system' (415060 KB)...
OKAY [ 57.305s]
writing 'system'...
OKAY [ 11.353s]
finished. total time: 174.042s
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot -i 0x0B05 reboot
rebooting...
finished. total time: 0.021s
C:\Program Files (x86)\Minimal ADB and Fastboot>
Last time something like this happened, I had to wipe everything and reflash. so I did the following.
fastboot -i 0x0b05 erase boot
fastboot -i 0x0b05 erase cache
fastboot -i 0x0b05 erase userdata
fastboot -i 0x0b05 erase recovery
fastboot -i 0x0b05 erase staging
fastboot -i 0x0b05 erase system
and now I get a bootloader error on startup
I was able to successfully flash CWM 6037 again. I tried newer ones, but 6037 is the only one that will work.
Stock firmware from custom recovery fails every time. "Installing update... Installation aborted."
Crombi installer goes through without any problems. but just never boots once completed.
I tried installing the latest Cyanogen Nightly and got the following error "This package is for tF701T devices; this is a K00C."
But the K00C is a TF701T
After installing CROMbi again, I'm no longer getting the bootloader error in red letters, but I am still bootlooping.
When crombi installer completes I do get one error at the very end. "set_metadata_recursive:some changes failed".
I looked at the log and it says Cant partition non-vfat datamedia.
Does bootloop after apparently successful fstboot flash have anythignt o do with why in the FAW's ASUS recommends ignoring the software update for 4.3? Afterall this is what put me in this situation.
The SD update is designed to work with the stock recovery. What made you think it would work with CWM?
The only successful recovery from a similar situation I remember is the following (and I'm quoting from memory here - it's too late here for me to find the thread, but it is somewhere here in this forum - search for it.
Download the stock recovery to your fastboot folder from here: http://droidbasement.com/db-blog/?p=3210
Also download the 10.26.1.18 firmware, unzip it once, put it on a microSD and insert into tablet.
Enter fastboot mode
Issue:
Code:
fastboot [b]boot[/b] recovery.img
Note: You do not flash the recovery, you boot it!
The recovery should recognize the firmware on the microSD and start to flash it.
If that is successful, you would have stock recovery and firmware again.
Then download the latest firmware, unzip it, put into microSD or internal and the stock recovery should flash it.
Good luck!
Sent from my K00C using Tapatalk
berndblb said:
The SD update is designed to work with the stock recovery. What made you think it would work with CWM?
The only successful recovery from a similar situation I remember is the following (and I'm quoting from memory here - it's too late here for me to find the thread, but it is somewhere here in this forum - search for it.
Download the stock recovery to your fastboot folder from here: http://droidbasement.com/db-blog/?p=3210
Also download the 10.26.1.18 firmware, unzip it once, put it on a microSD and insert into tablet.
Enter fastboot mode
Issue:
Code:
fastboot [b]boot[/b] recovery.img
Note: You do not flash the recovery, you boot it!
The recovery should recognize the firmware on the microSD and start to flash it.
If that is successful, you would have stock recovery and firmware again.
Then download the latest firmware, unzip it, put into microSD or internal and the stock recovery should flash it.
Good luck!
Sent from my K00C using Tapatalk
Click to expand...
Click to collapse
The attempted SD update was done with custom recovery as I couldn't get stock recovery to work after the initial SD update with stock recovery.
Thanks for the info. I'll update.
gorilla p said:
Last time something like this happened, I had to wipe everything and reflash. so I did the following.
fastboot -i 0x0b05 erase boot
fastboot -i 0x0b05 erase cache
fastboot -i 0x0b05 erase userdata
fastboot -i 0x0b05 erase recovery
fastboot -i 0x0b05 erase staging
fastboot -i 0x0b05 erase system
and now I get a bootloader error on startup
I was able to successfully flash CWM 6037 again. I tried newer ones, but 6037 is the only one that will work.
Stock firmware from custom recovery fails every time. "Installing update... Installation aborted."
Crombi installer goes through without any problems. but just never boots once completed.
I tried installing the latest Cyanogen Nightly and got the following error "This package is for tF701T devices; this is a K00C."
But the K00C is a TF701T
After installing CROMbi again, I'm no longer getting the bootloader error in red letters, but I am still bootlooping.
When crombi installer completes I do get one error at the very end. "set_metadata_recursive:some changes failed".
I looked at the log and it says Cant partition non-vfat datamedia.
Does bootloop after apparently successful fstboot flash have anythignt o do with why in the FAW's ASUS recommends ignoring the software update for 4.3? Afterall this is what put me in this situation.
Click to expand...
Click to collapse
That error message means that your internal sdcard is no t available to format. Erasing all partitions is a dangerous thing to do.
The only way you will get back to normal is to try and flash the stock asus rom now as that will recreate everything. I recommend you start with the 4.2.2 one - need to flash it over fastboot - I can't see anything else working as you have erased it all.....
Also you used 0x0b05 which is the code for the last generation of transformers..... You don't need it for the TF701 but not sure if that has caused additional grief now. Probably not but you never know .....
Yeah IO'm getting the same issue that I was having before. I tried both the 4.3 and 4.2 boot.img and the recommended recovery.img file. Each time I ran
fasboot boot recovery.img
downloading 'boot.img'...
OKAY [ 1.121s]
booting...
OKAY [ 0.032s]
finished. total time: 1.157s
booting from downloaded boot.img (on tablet)
Then it goes to boot into the image and...bootloop.
C:\Program Files (x86)\Minimal ADB and Fastboot\asus>fastboot flash system asus4
22.zip
target reported max download size of 643825664 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 346827884 is not a multiple of t
he block size 4096
erasing 'system'...
OKAY [ 1.515s]
sending sparse 'system' (628732 KB)...
error: write_sparse_skip_chunk: don't care size 346827884 is not a multiple of t
he block size 4096
error: write_sparse_skip_chunk: don't care size 346827884 is not a multiple of t
he block size 4096
OKAY [ 86.861s]
writing 'system'...
OKAY [ 17.098s]
sending sparse 'system' (338700 KB)...
OKAY [ 46.823s]
writing 'system'...
OKAY [ 9.280s]
finished. total time: 161.586s
Bootloop...
Could the inability to flash or boot from stock recovery have anything to do with the CWM recovery protection?
Well after those attempts it's totally shot.
Now I can't even get to fastboot. Every reboot results in "Unrecoverable bootloader error..."
Files RMA. Returned.
Moral of story. Don't do anything on a Tegra device without previous documentation that doesn't have NVFlash available.

[Q] Moto XT1097 AT&T fastboot loop.

I tried to update my moto XT1097 AT&T locked version and it did not complete the update successfully. It goes until flashing the boot.img, failed and don't go any further. I supposed it is because it is a locked phone. After this, the phone went to a fastboot mod loop. Even If I tried to sideload the orignial rom or use the fsaboot comandts to restore the original rom it remains in this mode.
It generates a first error when I tried to issue the command "fastboot flash partition gpt.bin" returning this:
target reported max download size of 536870912 bytes
sending 'partition' (32 KB)...
OKAY [ 0.004s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.013s
And the phone display shows "hab check failed for primary_gpt"
I am issuing this command from the folder where the files of the original rom are located.
I tried to use a different gpt.bin file, from other ROMs and the same thing happen. I also tried another Lollipop ROM and not luck at all.
What I understand is that the gpt is the partion table that indicates where begins and where finish the diferent partitions into the phone, so I guess the problem could be resolve if I can change the gpt file into the phone for the original one.
I have tried to follow with the rest of the instalation but the motoboot and the boot files also are rejected and the system files are denied due an authentication problem.
The roms I have tried are:
ATT_XT1097_4.4.4_KXE21.187-38_cid1_CFC.xml
TMO_21.21.42.victara_tmo.tmo.en.US
4.4.4_to_5.0-11OTA
And the first one I used, which reach the same stage every time is:
RETBR_XT1097_5.0_LXE22.46-17_cid12_CFC.xml
I really appreciate any help and ideas you can give me to get my phne back to kitkat. I am not an expert but I am willing to do and learn what it takes
Did you solve this? How?
I am into this problem too. Any news?

Installing TWRP on bricked, but not rooted Sprint M7?

After not messing with my wife's M7 for quite some time, I am back for another go at it. She managed to mess up her LG G3, so recovering the M7 is now back on the table. My goal has been to try to recover the data on the phone, so I have not tried a factory reset. Deleting the cache partition in the recovery menu also proved futile.
I have HBOOT 1.57, and a looked bootloader. I have ADB and Fastboot on my PC, and can get the phone into FASTBOOT USB, but my attempts to copy over TWRP 2.7.0.1 haven't worked.
What I got was this:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img
target reported max download size of 1514139648 bytes
sending 'recovery' (7918 KB)...
OKAY [ 1.132s]
writing 'recovery'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 1.780s
Can it be done with a bricked phone and a locked bootloader, or am I just wildly grasping at false hope?
groovyz1k said:
After not messing with my wife's M7 for quite some time, I am back for another go at it. She managed to mess up her LG G3, so recovering the M7 is now back on the table. My goal has been to try to recover the data on the phone, so I have not tried a factory reset. Deleting the cache partition in the recovery menu also proved futile.
I have HBOOT 1.57, and a looked bootloader. I have ADB and Fastboot on my PC, and can get the phone into FASTBOOT USB, but my attempts to copy over TWRP 2.7.0.1 haven't worked.
What I got was this:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img
target reported max download size of 1514139648 bytes
sending 'recovery' (7918 KB)...
OKAY [ 1.132s]
writing 'recovery'...
(bootloader) signature checking...
FAILED (remote: signature verify fail)
finished. total time: 1.780s
Can it be done with a bricked phone and a locked bootloader, or am I just wildly grasping at false hope?
Click to expand...
Click to collapse
I hate to be the one, but you are wildly grasping for a false hope. You need unlocked bootloader in order to flash custom recovery
That is actually a pretty big relief at this point. I was more mad that I was doing something wrong than I was about recovering the phone. Thanks! I should have asked the question hours earlier so I didn't waste all that time. I picked up some new understanding though, so all was not lost.
Factory Reset seems to have failed!
Mine shows:
-- Wiping data...
Formatting /data...
Backup Data Preload
Backup CW Package
Restore Data Preload
Restore CW Package
Formatting /cache
Data Wipe Complete.
Write host_mode:0 done
Then it gives me the same system recovery menu. Rebooting just put it right back into the same loop.

Bricked my phone

Hey,
I think I might have bricked my phone.
Whenever I want to instal my recovery fiile it keeps saying "Cannot mount /cust"& /vendor
I've tried almost anything I can think of. I've tried the dload method but it keeps giving me error about the firmware not being supported or so.
I've manually tried to flash the cust.img through adb :
PS C:\adb> fastboot flash recovery cust.img
target reported max download size of 471859200 bytes
sending 'recovery' (361698 KB)...
OKAY [ 12.789s]
writing 'recovery'...
FAILED (remote: partition error)
finished. total time: 12.815s
PS C:\adb>
I wiped everything and tried to instal a stock B381 firmware but no luck also.
Any help would be appreciated
Hola compaƱero, prueba esto.
https://forum.xda-developers.com/showpost.php?p=66570915&postcount=11
But where it says
mmcblk0p23
Change it to
mmcblk0p44
Besides. instead of using the sdcard partition, which is the internal memory, I advise you to do it from the external memory. So don't forget to trade one for the other on the command line.
My advice is that if you have TWRP installed you do it from the terminal of that recovery.
With VENDOR, the command line I used is the following
dd if=/external_sd/VENDOR.img of=/Vendor
I used the CUST and the VENDOR extracted from the B103 version, so if you don't have it I advise you to download it, and extract what you need from that version with Huawei Extractor, if everything works out well, I recommend that the first thing you do is, reinstall the official recoveries, and with the method of the 3 buttons, install that same version (Vie-l09B103C432), that in case your P9 is an L09 and you are in Rom international, if it is another version, you have to look for the files suitable for your terminal.
Good luck.
Translated with www.DeepL.com/Translator

help with VTR-L09 wrong pie?

Hi All.
Today i flashed TWRP on my phone Huawei P10 (europe version)
This works great so far so good.
I downloaded on this site and section:
1
VTR-L09C432E1R1P9B157 (9.0.1.157) the files:
update_full_VTR-L09_hw_eu.zip
update.zip
i cleaned cache/dalvik and i done a clean on internal storage.
then i say install :
HuRUpdater_0.3
boot no go...
then i install VTR-L09_hw_eu.zip
update.zip
but got allot of errors but i boots anyway....
It boots into PIE and touchscreen is not at correct place (its 3mm off) and i have no services with my provider (simcart not working)
when i take a closer look what software its running its:
model VKY
BUILD NR: LGRP2-OVS 9.0.1.163
EMUI 9.0.1
BASEBAND: 21C30B323S006C000
So its not VTR but i have PIE VKY... and i think the VKY got a different chipset for service provider then the VTR.
But my question is:
what am i doing wrong? do i need other flash file? can someone please point me to the good direction.
Regards.
Tim
Oke i discovered maybe the problem. I think its not flashing at all.. and the VKY is a wrong downloaded img from erecovery (i tryed that also) he connected thru wifi before and downloaded a img from huawei site.
When i flash update i got these msg:
installing zip file /external_sd/update/update.zip
no digest file found
script succeeded /data
script succeeded false
write radio image
check_write_data_to_partition,write data error
update_huawei_pkg_from_ota_zip update package from zip failed
E: unknown command errno
E: unknown command subproccesresult
updater ended with error 9
error installing zip file
updating partition details
...done.
update: and i hope someone would help me..
I have now TWRP only.
But for some reason i cant install the images i download. So i dont get a OS installed.
Can please someone help me
regards, Tim
is it possible that this is the problem:
c:\Users\Tim\Desktop\w>fastboot flash recovery twrp.img
target reported max download size of 471859200 bytes
sending 'recovery' (32034 KB)...
OKAY [ 0.693s]
writing 'recovery'...
FAILED (remote: partition length get error)
finished. total time: 0.705s
c:\Users\Tim\Desktop\w>fastboot flash recovery_ramdisk twrp.img
target reported max download size of 471859200 bytes
sending 'recovery_ramdisk' (32034 KB)...
OKAY [ 0.695s]
writing 'recovery_ramdisk'...
OKAY [ 0.301s]
finished. total time: 1.001s
Only recovery_ramdisk gives me TWRP not like the tutorials tell me todo (recovery)

Categories

Resources