Problem to flash firmware - Sprint HTC One (M7)

Hi guys, I have a little problem to the hour of flash the firmware. When I put th phone in fastboot usb and write the command fastboot oem reboot RUU, appear the error (bootloader) [ERR] Command error !
I have the unlocked bootloader, so I don´t know if it´s for that. If you can help me I would thank.

jovino06 said:
Hi guys, I have a little problem to the hour of flash the firmware. When I put th phone in fastboot usb and write the command fastboot oem reboot RUU, appear the error (bootloader) [ERR] Command error !
I have the unlocked bootloader, so I don´t know if it´s for that. If you can help me I would thank.
Click to expand...
Click to collapse
You typed "fastboot oem reboot RUU". It should be "fastboot oem rebootRUU".

Leave me try it another again and I say you the result.

Related

[URGENT] Phone Stuck in Fastboot !!! Can't Reboot !!! Can't RUU

I was running my rom fine an hour ago, until I decided to try and reboot into recovery to make a backup. Instead of recovery, I ended up in bootloader. I then tried to enter recovery through the menu. It rebooted into bootloader and flashed the "3 Skating Androids" in the middle of the screen. I then tried to simply restart, and it did the same. All buttons did this. I then tried to run the RUU, and lock the bootloader from command prompt. I entered "fastboot oem lock", and it returned the following:
Code:
(bootloader) [ERR] Cmd18 polling status timed out, MCI_STATUS: 0x4C2000
(bootloader) [ERR] sdcc_command: sdcc_poll_status error, rc: 2
(bootloader) [SD_HW_ERR] read data fail in CMD18
(bootloader) CMD18: cmd failed
(bootloader) [SD_HW_ERR] SD: Read data fail..
(bootloader) [PG_ERROR] htc_pg_hdr_get(117):
(bootloader) sd_read_sector error
(bootloader) [PG_ERROR] htc_pg_part_hdr_get(169):
(bootloader) htc_pg_hdr_get failed
(bootloader) Lock successfully...
(bootloader) mipi display off
(bootloader) mipi_dsi_cmds_tx_ext
(bootloader) pm8921_vreg_disable function, vreg_id = 38
(bootloader) pm8921_vreg_disable function, vreg_id = 1
(bootloader) TZ_HTC_SVC_DISABLE ret = 534642044 (0x1FDDFD7C)
(bootloader) Use PSHOLD to reset device.
FAILED (status read failed (No such file or directory))
finished. total time: 1.094s
I am unable to relock the bootloader, therefore I am unable to return to stock. I can't boot, and I have no way of recovering. I am sick and tired of these situations with my phone. What on earth could I possibly do to fix this ****?!
Your bootloader is unlocked correct? Do you have S-off? You can flash the RUU without re locking the bootloader if you have S-off.
chuckwago88 said:
Your bootloader is unlocked correct? Do you have S-off? You can flash the RUU without re locking the bootloader if you have S-off.
Click to expand...
Click to collapse
Unfortunately I don't have S-OFF, and I was unable to get it. I was running ViperOne 6.2.1 with Elemental X 14.12.
***UNLOCKED***
M7_UL PVT SHIP S-ON RH
HBOOT-1.56.0000
OS-4.19.661.8
eMMC-boot 2048MB
HTC1V said:
Unfortunately I don't have S-OFF, and I was unable to get it. I was running ViperOne 6.2.1 with Elemental X 14.12.
***UNLOCKED***
M7_UL PVT SHIP S-ON RH
HBOOT-1.56.0000
OS-4.19.661.8
eMMC-boot 2048MB
Click to expand...
Click to collapse
Try reading through this http://forum.xda-developers.com/showthread.php?t=2633276 . And you can find more instructions and information here http://forum.xda-developers.com/showthread.php?t=2632351 . I had a hard time getting it done, I was HBOOT 1.57, but firewater is what got it done for me.
chuckwago88 said:
Try reading through this http://forum.xda-developers.com/showthread.php?t=2633276 . And you can find more instructions and information here http://forum.xda-developers.com/showthread.php?t=2632351 . I had a hard time getting it done, I was HBOOT 1.57, but firewater is what got it done for me.
Click to expand...
Click to collapse
Thanks for trying to help. But my device appears to softbricked. I don't have access to my operating system, so S-OFF is not even remotely possible. Anyone else have any possible solutions?
I am pretty sure the term soft bricked means you can still boot into your bootloader. Hold down the power and volume down buttons until it gets there, mine took 20+ seconds when I was soft bricked. From your bootloader you can flash a recovery and then you should be able to get S-off. If you can't get into recovery or the bootloader I don't know what else to tell you.
chuckwago88 said:
I am pretty sure the term soft bricked means you can still boot into your bootloader. Hold down the power and volume down buttons until it gets there, mine took 20+ seconds when I was soft bricked. From your bootloader you can flash a recovery and then you should be able to get S-off. If you can't get into recovery or the bootloader I don't know what else to tell you.
Click to expand...
Click to collapse
Unfortunately I cannot boot into recovery. Every time I hit an option, the bootloader restarts. I will try leaving my phone turned off for the next day, to see if draining the circuits does anything.
HTC1V said:
Unfortunately I cannot boot into recovery. Every time I hit an option, the bootloader restarts. I will try leaving my phone turned off for the next day, to see if draining the circuits does anything.
Click to expand...
Click to collapse
If you can get into the bootloader you should be good to flash a recovery through fastboot. Try looking at this link, get all the correct files for your phone and computer, and look towards the end of the page where it talks about download via fastboot, this is what you need to do. http://teamw.in/project/twrp2/164 . After you get the TWRP installed, you will be able to sideload a rom from there.
chuckwago88 said:
If you can get into the bootloader you should be good to flash a recovery through fastboot. Try looking at this link, get all the correct files for your phone and computer, and look towards the end of the page where it talks about download via fastboot, this is what you need to do. http://teamw.in/project/twrp2/164 . After you get the TWRP installed, you will be able to sideload a rom from there.
Click to expand...
Click to collapse
As I said earlier, I am unable to boot into recovery. I've tried CWM, TWRP, and stock. Every time I try to use a command, I get an error. I get "FAILED (remote: image update error)" every time I try to flash a recovery. It's like my fastboot mode is broken. I also tried booting directly into recovery with "fastboot boot twrp.img" but this didn't work, and just froze the device.
HTC1V said:
As I said earlier, I am unable to boot into recovery. I've tried CWM, TWRP, and stock. Every time I try to use a command, I get an error. I get "FAILED (remote: image update error)" every time I try to flash a recovery. It's like my fastboot mode is broken. I also tried booting directly into recovery with "fastboot boot twrp.img" but this didn't work, and just froze the device.
Click to expand...
Click to collapse
What stock recovery are you using ?
Here's the steps I would take
from bootloader choose shut down
wait about 5 min reboot to the bootloader fastboot USB
then fastboot erase cache
fastboot reboot-bootloader
now flash Stock recovery
fastboot flash recovery stock_recovery.img
fastboot erase cache
fastboot reboot-bootloader
now enter stock recovery (power + volume up after you choose it in the bootloader)
when you see the menu choose factory reset
now start over with the custom recovery
Unlock the bootloader at HTCDEV
then from fastboot USB
Flash recovery TWRP 2.6.3.3
http://techerrata.com/browse/twrp2/m7
fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
fastboot erase cache
fastboot reboot-bootloader
then sideload this Rom to your phone
http://www.androidrevolution.org/downloader/download.php?file=One_5.11.401.10_odexed.zip
TWRP / Advanced / ADB Sideload - swipe to sideload
From PC adb / fastboot folder
you use
adb sideload name-of-rom.zip
make sure the rom is in the same folder as adb / fastboot
clsA said:
What stock recovery are you using ?
Here's the steps I would take
from bootloader choose shut down
wait about 5 min reboot to the bootloader fastboot USB
then fastboot erase cache
fastboot reboot-bootloader
now flash Stock recovery
fastboot flash recovery stock_recovery.img
fastboot erase cache
fastboot reboot-bootloader
now enter stock recovery (power + volume up after you choose it in the bootloader)
when you see the menu choose factory reset
now start over with the custom recovery
Unlock the bootloader at HTCDEV
then from fastboot USB
Flash recovery TWRP 2.6.3.3
http://techerrata.com/browse/twrp2/m7
fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
fastboot erase cache
fastboot reboot-bootloader
then sideload this Rom to your phone
http://www.androidrevolution.org/downloader/download.php?file=One_5.11.401.10_odexed.zip
TWRP / Advanced / ADB Sideload - swipe to sideload
From PC adb / fastboot folder
you use
adb sideload name-of-rom.zip
make sure the rom is in the same folder as adb / fastboot
Click to expand...
Click to collapse
I'm using the telus stock recovery from here: http://forum.xda-developers.com/showthread.php?t=2545227 and unfortunately, I get an error every time I try to wipe the cache. I get:
Code:
erasing 'cache'...
FAILED (remote: erasing error!)
finished. total time: 0.015s
I also get errors when I flash the stock recovery, I can't access anything it seems. My cord is fine, it's worked for me forever.
There must be a way to fix this!
HTC1V said:
I'm using the telus stock recovery from here: http://forum.xda-developers.com/showthread.php?t=2545227 and unfortunately, I get an error every time I try to wipe the cache. I get:
Code:
erasing 'cache'...
FAILED (remote: erasing error!)
finished. total time: 0.015s
I also get errors when I flash the stock recovery, I can't access anything it seems. My cord is fine, it's worked for me forever.
There must be a way to fix this!
Click to expand...
Click to collapse
sounds like your bootloader is locked
clsA said:
sounds like your bootloader is locked
Click to expand...
Click to collapse
:silly: No my bootloader is not locked. It says *** UNLOCKED *** right on the screen. Just because I'm a junior member doesn't mean I'm a noob. I have tried many commands, including "fastboot oem lock" but nothing works. Read my first post again. Let me clarify for everyone! My bootloader is not fully fuctional. I am able to check barcode, and shutdown. Any fastboot commands don't seem to really work (with exception of "fastboot devices," and "fastboot oem unlock_token token.bin"). I've been trying to relock my device, so I can run the RUU.exe, but I this gives me an error. I tried unlocking my device for a second time, and it says unlock successful, but I don't get the warranty, and prompt on screen. I've only had this phone for about 4 months, and I'd like to get a little more life out of it before turning to ebay to find another.
HTC1V said:
:silly: No my bootloader is not locked. It says *** UNLOCKED *** right on the screen. Just because I'm a junior member doesn't mean I'm a noob. I have tried many commands, including "fastboot oem lock" but nothing works. Read my first post again. Let me clarify for everyone! My bootloader is not fully fuctional. I am able to check barcode, and shutdown. Any fastboot commands don't seem to really work (with exception of "fastboot devices," and "fastboot oem unlock_token token.bin"). I've been trying to relock my device, so I can run the RUU.exe, but I this gives me an error. I tried unlocking my device for a second time, and it says unlock successful, but I don't get the warranty, and prompt on screen. I've only had this phone for about 4 months, and I'd like to get a little more life out of it before turning to ebay to find another.
Click to expand...
Click to collapse
I wasn't implying your were dumb ..i was pointing out that your phone acts the same as one with a locked bootloader.
the bootloader partition seems corrupt, fixing it is out of my league. Maybe @nkk71 or @alray has some advice
clsA said:
I wasn't implying your were dumb ..i was pointing out that your phone acts the same as one with a locked bootloader.
the bootloader partition seems corrupt, fixing it is out of my league. Maybe @nkk71 or @alray has some advice
Click to expand...
Click to collapse
Sorry. Thank you very much for the help dude. I'll see what I can do about getting it fixed, I hope there's nothing wrong on the hardware side.
HTC1V said:
Sorry. Thank you very much for the help dude. I'll see what I can do about getting it fixed, I hope there's nothing wrong on the hardware side.
Click to expand...
Click to collapse
like cIsA said, it looks like your eMMC is corrupted, at least the partition where your bootloader is. Ive never seen that kind of error before (SD_HW_ERR] read data fail in CMD18) so I don't have any idea how to help you. Probably re-flashing the firmware or a complete ruu will fix it but its not possible with a non-relockable bootloader + S-ON.
sorry
alray said:
like cIsA said, it looks like your eMMC is corrupted, at least the partition where your bootloader is. Ive never seen that kind of error before (SD_HW_ERR] read data fail in CMD18) so I don't have any idea how to help you. Probably re-flashing the firmware or a complete ruu will fix it but its not possible with a non-relockable bootloader + S-ON.
sorry
Click to expand...
Click to collapse
So it's time for a new phone?
HTC1V said:
So it's time for a new phone?
Click to expand...
Click to collapse
You should wait to see what nkk71 think about your situation.
Code:
(bootloader) [ERR] Cmd18 polling status timed out, MCI_STATUS: 0x4C2000
(bootloader) [ERR] sdcc_command: sdcc_poll_status error, rc: 2
(bootloader) [[COLOR="Red"]SD_HW_ERR[/COLOR]] [COLOR="red"]read data fail in CMD18[/COLOR]
(bootloader) CMD18: cmd failed
(bootloader) [SD_HW_ERR] SD: Read data fail..
only speculating here but I think that CMD is a master/slave protocol used to send commands to the eMMC chip (I might be wrong, I'm not an expert in this matter) So this could mean you have a defective or corrupted eMMC. that would explain why you got these error codes and that you are not able to do anything useful from the bootloader.
Maybe a jtag/riffbox flash could fix this....
HTC1V said:
So it's time for a new phone?
Click to expand...
Click to collapse
Sorry for the late reply, but yep, i think it's time for a new phone.
from what i've seen (and/or):
* "image update error"
* unable to relock bootloader
* "fastboot oem rebootRUU" doesn't actually go to RUU mode (gives some kind of CMDxx / SD error)
== fried phone
sorry to be the bearer of bad news
nkk71 said:
Sorry for the late reply, but yep, i think it's time for a new phone.
from what i've seen (and/or):
* "image update error"
* unable to relock bootloader
* "fastboot oem rebootRUU" doesn't actually go to RUU mode (gives some kind of CMDxx / SD error)
== fried phone
sorry to be the bearer of bad news
Click to expand...
Click to collapse
Thank you nkk71
There's no way I can repair it? Jtag is jot an option?

TWRP Fastboot Command not allowed (P10)

Hi!
I'm trying to install TWRP on my P10. I've unlocked bootloader on Huawei website.
Whenever I'm typing in fastboot "flash recovery twrp.img" it goes through and everything says OK
But when i try to "fastboot boot twrp.img" I get FAILED (remote: command not allowed)
"fastboot oem device-info" gives me the same error too and "fastboot oem unlock" gives me already fastboot unlocked
What do you thing "fastboot boot twrp.img" should do? This command isn't allowed because it does not exist.
If you want to boot into your flashed TWRP recovery, you have to enter "fastboot reboot" and press volume up while booting - the USB cable has to be disconnected.
Instead of "fastboot oem device-info" try "fastboot Gevtvar unlocked".
or use adb when the phone is running.
"adb reboot recovery"
you can't go direct from fastboot to recovery simply by a command
Yeah, the command was wrong, sorry xD
Anyway I thinks it's fixed now and I'm able to boot manually to recovery from phone now!
jejeje i was coming here to tell you about wrong command
I have the same problem with FAILED (remote: command not allowed). When I try to install or flash anything I see the info about FAILED (remote: command not allowed). I have FRP locked and I can't enable OEM developing option (it is inactive). I can't relock bootloader, can't instal TWRP, I have only simply erocevery where I can't wipe - only reboot and shutdown device.
I tried do update via dload, hwota - all with defeat
In ADB and Fastboot I can see my device connected.
Does anyone have any idea?
do you have instaled driver for P10, does computer recognice device like P10 ?
DiMeteo24 said:
I have the same problem with FAILED (remote: command not allowed). When I try to install or flash anything I see the info about FAILED (remote: command not allowed). I have FRP locked and I can't enable OEM developing option (it is inactive). I can't relock bootloader, can't instal TWRP, I have only simply erocevery where I can't wipe - only reboot and shutdown device.
I tried do update via dload, hwota - all with defeat
In ADB and Fastboot I can see my device connected.
Does anyone have any idea?
Click to expand...
Click to collapse
Any news? My p10+ it's in the same case
same problem im already unlock but the twr not install what is propper command
Hey guys, for all of you with "command not allowed" problem, you have to check OEM unlock setting on developer options but if you have a greyed out button, you need to flash again your stock room with a tool like dc-phoenix unlocker and bypass frp lock (on YouTube you will find tons of videos regarding this matter). Also, you can check if your Fastboot is protected (frp locked) on Fastboot screen...
There you go---> https://forum.xda-developers.com/hu...ution-bl-unlockedfrp-locked-fastboot-t3684302
PS READ the post to the END!! don't make mistakes it's really easy and fast. It works!
Hi guys.
I know this thread is pretty old but I'm getting the exact same problem as the OP except on my P20 Pro: I can flash a recovery but not boot one from fastboot.
The biggest difference is that my bootloader is unlocked and I have FRP Unlock, so according to every post I've seen it SHOULD be working.
My fastboot log:
PS C:\adb> fastboot devices
LCL0218415002142 fastboot
PS C:\adb> fastboot boot twrp-3.2.1-0-charlotte.img
downloading 'boot.img'...
OKAY [ 0.187s]
booting...
FAILED (remote: Command not allowed)
finished. total time: 0.187s
Armand Bernard said:
Hi guys.
I know this thread is pretty old but I'm getting the exact same problem as the OP except on my P20 Pro: I can flash a recovery but not boot one from fastboot.
The biggest difference is that my bootloader is unlocked and I have FRP Unlock, so according to every post I've seen it SHOULD be working.
My fastboot log:
PS C:\adb> fastboot devices
LCL0218415002142 fastboot
PS C:\adb> fastboot boot twrp-3.2.1-0-charlotte.img
downloading 'boot.img'...
OKAY [ 0.187s]
booting...
FAILED (remote: Command not allowed)
finished. total time: 0.187s
Click to expand...
Click to collapse
Have you try this command fasboot reboot recovery_ramdisk?
I get:
PS C:\adb> fastboot reboot recovery_ramdisk
fastboot: usage: unknown reboot target recovery_ramdisk
with "fastboot boot recovery_ramdisk" I get
error: cannot load 'recovery_ramdisk': No such file or directory
I sorted out my problem from a different angle so I no longer need to boot to TWRP from fastboot. Thanks for your help!
Question
Armand Bernard said:
I sorted out my problem from a different angle so I no longer need to boot to TWRP from fastboot. Thanks for your help!
Click to expand...
Click to collapse
Could you please tell me how did u solve this problem. thx
darkdante13 said:
Could you please tell me how did u solve this problem. thx
Click to expand...
Click to collapse
This was quite some time back so I don't remember all that well, but I think I just used the built in Huawei recovery, erecovery, to restore my whole phone and then I was able to reinstall my custom recovery and boot to it normally. I can't guarantee this as I don't remember the whole context of this. Using erecovery I didn't lose my locally stored files, only my apps and app data. Hope this helps.

Unlock OEM via ADB

Hi, so my Xiaomi MI A2 is kinda not working and I think that wiping cache partition might help but I can't access the recovery so I wanted to install TWRP. The thing is I have the boatloader locked, I have the USB depuration activated but not the OEM, so how can I unlock boatload or unlock OEM via fastboot?
Thanks
_08_ said:
Hi, so my Xiaomi MI A2 is kinda not working and I think that wiping cache partition might help but I can't access the recovery so I wanted to install TWRP. The thing is I have the boatloader locked, I have the USB depuration activated but not the OEM, so how can I unlock boatload or unlock OEM via fastboot?
Thanks
Click to expand...
Click to collapse
run "fastboot oem unlock" and "fastboot oem unlock_critical" see if its execute without error , then run " fastboot oem device-info" , let us know what the result.
shihabrumel said:
run "fastboot oem unlock" and "fastboot oem unlock_critical" see if its execute without error , then run " fastboot oem device-info" , let us know what the result.
Click to expand...
Click to collapse
It won't let me. It says:
my command: fastboot oem unlock System: FAILED (remote "flashing unlock is not allowed")
Fastboot: error: command failed.
Same with the critical. I also had an error trying another command, it said, not allowed in lock mode.
Actually, I'm trying other commands and it's the same error with all comands.
My Mi A2 was not booting
My mi a2 last updated to 19/04/05 pie version, then i install the Google camera using below steps..
1. Turn on debugging mode/oem & turn off the phone
2. Then power button+vol dwn Fastboot mode & connect to pc (Pc already have the adb)
3. In pc>adb>folder>Cmd> type "fastboot oem unlock"
4. Then factory reset the phone and reboot again to fastboot mode
5. Then boot the patched image for phone
6. Then install the magisk and gcam work perfectly.
Simply i used these methods
the***********.com/enable-camera2-api-xiaomi-mi-a2-lite-guide/
But then I tried to relock the bootloader, using below commands on cmd
1. "adb reboot-bootloader"
2."fastboot oem lock"
I tried these 2 commands 4 or 5 times
But phone is not power on with locked bootloader. Then I unlock again oem and try again,, But not working,
Then i unlock bootloader again and try these commands to lock it again,
1. "adb reboot-bootloader"
2."fastboot flashing lock"
3. "fastboot oem lock"
Unfortunately it is not work, also i can't give command "fastboot oem unlock", also i can't turn on my phone, Please help me... I want to restore my phone to working mode... Please help me, Quick, urgent :crying::crying::crying::crying:

Need Help Relocking The Bootloder **Solved**

** Nevermind, i found the command i needed.
fastboot oem asus-csc_lk
Hello, im having hardware problems and having to send my rog phone 2 back, but the bootloader is unlocked and i cant relock it. I've gone on google and tryed everything but i keep getting errors. Does anyone know how to relock it? Im kind of stressing out.
Fastboot can detect the phone but no matter what i do it just says "FAILED"
Commands:
fastboot flashing lock = FAILED (remote: 'permission denied')
fastboot oem lock = FAILED (remote: 'unknown command')
Thank you for your help.

Relock the Bootloader?

I know asking this question at a very early point would be very foolish, I tried searching various places for the answer but didn't, can anyone from previous experience or with answer tell me how can the Bootloader be locked again?
Thanks in advance!
EDIT: Thanks to IDunnoLookatXDA The BL can be locked using
Code:
fastboot oem asus-lock
THEHOLYG0D said:
I know asking this question at a very early point would be very foolish, I tried searching various places for the answer but didn't, can anyone from previous experience or with answer tell me how can the Bootloader be locked again?
Thanks in advance!
Click to expand...
Click to collapse
Fastboot oem lock
bs3pro said:
Fastboot oem lock
Click to expand...
Click to collapse
Nope, I've tried all the asus specific and default fastboot commands:
Code:
fastboot oem asus-back
fastboot oem asus-csc_lk
fastboot flashing lock
fastboot flashing lock_critical
fastboot oem lock
fastboot oem lock_critical
fastboot flash !frp-partition! default_key.bin
None of this worked
THEHOLYG0D said:
Nope, I've tried all the asus specific and default fastboot commands:
Code:
fastboot oem asus-back
fastboot oem asus-csc_lk
fastboot flashing lock
fastboot flashing lock_critical
fastboot oem lock
fastboot oem lock_critical
fastboot flash !frp-partition! default_key.bin
None of this worked
Click to expand...
Click to collapse
oem asus-lock
IDunnoLookatXDA said:
oem asus-lock
Click to expand...
Click to collapse
Holy SH1T that actually worked
for beginners oem is no command
To lock the bootloader (or remove the annoying prompt you get at startup)
Code:
fastboot oem asus-lock
THEHOLYG0D said:
Holy SH1T that actually worked
for beginners oem is no command
To lock the bootloader (or remove the annoying prompt you get at startup)
Code:
fastboot oem asus-lock
Click to expand...
Click to collapse
This does not work for me. This is what I get from the cmd prompt:
C:\Users\uli13>fastboot oem asus-lock
...
FAILED (remote: Command not supported in default implementation)
finished. total time: 0.004s
Please help
I've sent the device back because of Display issues, and no longer own it.
But what I understood from your response and suggest you is:
Turn off the device and put it in fastboot mode, then issue the above command and it should work. Hope it helps
THEHOLYG0D said:
Nope, I've tried all the asus specific and default fastboot commands:
Code:
fastboot oem asus-back
fastboot oem asus-csc_lk
fastboot flashing lock
fastboot flashing lock_critical
fastboot oem lock
fastboot oem lock_critical
fastboot flash !frp-partition! default_key.bin
None of this worked
Click to expand...
Click to collapse
fastboot oem asus-csc_lk worked for me after that wipe data

Categories

Resources