[Q] Incredible 2: fastboot flash boot.img unknown error - Android Q&A, Help & Troubleshooting

Hello and thanks for viewing!
I unlocked bootloader with HTCdev method. Flashed Clockworkmod v 5.0.2 and then SuperSU. When I tried to flash CM 7.2 and reboot I got hung up on the white HTC screen. There were a few posts similar to my problem (ex: http://forum.xda-developers.com/showthread.php?t=2048236) that all suggest flashing the ROMs boot.img. However when I try I get this:
Code:
C:\Android phone tools>fastboot flash boot boot.img
error: cannot load 'boot.img': Unknown error
Any help is much appreciated.

first make sure youre boot.img is for that rom another is try doing it on another pc make sure you have proper drivers installed
Sent from my Nexus 7 using XDA Premium HD app

ngoralph said:
first make sure youre boot.img is for that rom another is try doing it on another pc make sure you have proper drivers installed
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
I thought I had double checked the boot.img before but it seems not well enough. I pulled the boot.img from the ROM package again and it worked no problem this time. Everything is up and running now. Thank you!

Related

[Q] Flashing recovery

When i try to flash twrp with fastboot i keep getting this error: "error: cannot load 'recovery.img': Unknown error". Does anybody know how to fix this? I also flashed the unsecured kernel.
tlwolford said:
When i try to flash twrp with fastboot i keep getting this error: "error: cannot load 'recovery.img': Unknown error". Does anybody know how to fix this? I also flashed the unsecured kernel.
Click to expand...
Click to collapse
Same problem here.
Make sure you have your recovery named recovery.img. And make sure that it is in the same folder as where you're running the commands from.
Sent from my HTC6435LVW using Tapatalk 2
Make sure your commands are " fastboot flash recovery recovery.img" :beer:
Sent from my DROID DNA
17akota said:
Make sure you have your recovery named recovery.img. And make sure that it is in the same folder as where you're running the commands from.
Sent from my HTC6435LVW using Tapatalk 2
Click to expand...
Click to collapse
Rammstein1313 said:
Make sure your commands are " fastboot flash recovery recovery.img" :beer:
Sent from my DROID DNA
Click to expand...
Click to collapse
I am petty sure I tried all that. It was pretty late last night when I was trying it.
I will give it another go after church today.
I downloaded the recovery file again and it worked that time. I guess something happened when i downloaded it the first time
I am an idiot and didn't unzip it first.
Its my first day.
Sent from my HTC6435LVW using Tapatalk 2

Rooted HTC one x+ using wrong rootboot version and lost signal and wifi

Hi,
I just rooted my HTC One x+ using RootBoot for Software number 1.14.401.16 and i had completely forgotten that I upgraded to 1.17 today
I lost my signal, wifi isnt working and it was stuck on the HTC logo for a while but its unbricked now. I still have no signal or wifi though.
Does anyone know if there is a new rootboot version?
Cheers
flash the kernel from your custom rom
where can i find my custom rom please????
i am still on the custom rom that came with the phone? how can i find that?
skdubg said:
flash the kernel from your custom rom
Click to expand...
Click to collapse
So, you have a recovery installed, either CWM or TWRP? Why do you want to keep the stock ROM?
Use the All in One tool from Hasoon or follow the guide for the original One X that explains how to set up the fastboot folder on your C: drive, then flash one of the above mentioned recoveries for the X+ via fastboot, then flash the boot.img of a ROM you'd like to try, also via fastboot and then flash a custom ROM from recovery. But first make sure that you download a custom ROM.zip and transfer it to your phone as unlocking will have wiped your SD card.
Or you can just root your stock ROM, for that you need the Super User tools, so after unlocking, flash one of the recoveries for the X+ via fastboot, power up phone, copy Super User tools to SD card and flash them in recovery!
Make sure that you understand what you are doing. Reading first is mandatory!
Sent from my HTC One X+ using xda premium
I couldnt find the CWM for HTC one x+, just for htc one x. should i use that one?
Can you please tell me where I can find it? and whats a good custom ROM that i can use? also is it possible to just go back to the stock ROM for now?
Cheers
hardstuffmuc said:
So, you have a recovery installed, either CWM or TWRP? Why do you want to keep the stick ROM?
Use the All in One tool from Hasoon or follow the guide for the original One X that explains how to set up the fastboot folder on your C: drive, the flash one of the above mentioned recoveries for the X+ and via fastboot, then the boot.img of a ROM you'd like to try, also via fastboot and then flash a custom ROM from recovery. But first make sure that you download a custom ROM.zip and transfer it to your phone.
Make sure that you understand what you are doing. Reading first is mandatory!
Sent from my HTC One X+ using xda premium
Click to expand...
Click to collapse
so i just installed CWM and tried Elite's kernel but i still have the same issue. no signal, no wifi.
can someone please help? would a whole new RUU work?
I had the same problem but i finally managed to fix that by flashing a custom rom after flashing the boot.img for that rom.
roufee said:
so i just installed CWM and tried Elite's kernel but i still have the same issue. no signal, no wifi.
can someone please help? would a whole new RUU work?
Click to expand...
Click to collapse
You need to flash the boot.img inside the Rom.zip that you download. Put the whole .zip on your SD card, boot into bootloader, select fastboot, hook up the phone, point to the folder your fastboot files are located and you dropped the boot.img, open a cmd window, and type
cd c:\fastboot and enter, then
fastboot erase cache and enter
fastboot flash boot boot.img and enter
fastboot erase cache and enter
Unplug cable, select hboot/boot recovery, select, then inside recovery install zip from SD card, don't forget to select the wipe option in the aroma installer...
The whole process takes like 20 mins, including download of the ROM, copying the boot.img into the fastboot folder (make sure there is only one boot.img in there...the one you want/need), flashing the boot.img, flashing ROM in recovery and booting up (which takes like a few minutes)
Hope this helps
Sent from my HTC One X+ using xda premium
---------- Post added at 02:35 PM ---------- Previous post was at 02:26 PM ----------
roufee said:
so i just installed CWM and tried Elite's kernel but i still have the same issue. no signal, no wifi.
can someone please help? would a whole new RUU work?
Click to expand...
Click to collapse
Just to make sure http://forum.xda-developers.com/showthread.php?p=34173694 is the CWM recovery for the X+ or use the TWRP recovery found in the Android Original Dev section...and please, use the search button, read, understand and ask if you don't, and then a hit on the thanks button is appreciated
Sent from my HTC One X+ using xda premium
hill67 said:
I had the same problem but i finally managed to fix that by flashing a custom rom after flashing the boot.img for that rom.
Click to expand...
Click to collapse
Which ROM did you flash ? I have the same problem and have no luck with decoding HTC stock ROMs.
Please try to flash boot.img from ARHD 6.2 here http://forum.xda-developers.com/showthread.php?t=1987885
I am in a same problem ase I flash my ARHD 6.2 Rom and after the Oxp_elitekernel_130119, all work but my data connection is not stopped when screen is in sleep mode...
Is Oxp_elitekernel_130119 works fine with ARHD 6.2 ROM ?

[SOFT BRICK] No OS installed, can't access phone from PC

So, here are my problems.
I have no OS
I can't access phone from windows, either in recovery/bootloader
When I hit "Install" in TWRP it shows all of the normal folders but there are no files anywhere
Is there any way to fix this?
Solution is the "adb sideload" command. There is a tutorial in the HTC One X+ General forum where you can read about how to use it.
Sent from my HTC One X+ using xda app-developers app
xTomus said:
So, here are my problems.
I have no OS
I can't access phone from windows, either in recovery/bootloader
When I hit "Install" in TWRP it shows all of the normal folders but there are no files anywhere
Is there any way to fix this?
Click to expand...
Click to collapse
Use "adb push" command to send files to your internal memory and then flash it.
Also you MAY need to flash a kernel via "fastboot flash boot" command.
What exactly you did before this happens, which rom did your tried to flash?
Same Problem & Worse
i have the same problem but even worse , i have no os cuz i formatted it with the TWRP recovery and i re-locked the bootloader trying to flash stock rom i have 02__001 and it doesn't exist anywhere so i tried some random stock rom but it didn't work !! now my battery is low and it wont charge it wont go into recovery because of the re-locked bootloader i'm in hell here , any advice or guide ?
Davirus849 said:
Use "adb push" command to send files to your internal memory and then flash it.
Also you MAY need to flash a kernel via "fastboot flash boot" command.
What exactly you did before this happens, which rom did your tried to flash?
Click to expand...
Click to collapse
OK, well I was trying to install CM.
I sort of fixed the OS problem by fiddling with adb. Now recovery recognises I have an OS, but every ROM I try to flash gets stuck at boot logo. I'v waited about 10 minutes with each rom, from reading around it seems if it isn't done in 5 you've done something wrong
I have tried:
CM
AOKP
Insert Coin sense 5 rom
I wipe cache and system each time like everybody says but I can't seem to change the outcome.
xTomus said:
OK, well I was trying to install CM.
I sort of fixed the OS problem by fiddling with adb. Now recovery recognises I have an OS, but every ROM I try to flash gets stuck at boot logo. I'v waited about 10 minutes with each rom, from reading around it seems if it isn't done in 5 you've done something wrong
I have tried:
CM
AOKP
Insert Coin sense 5 rom
I wipe cache and system each time like everybody says but I can't seem to change the outcome.
Click to expand...
Click to collapse
Are you flashing the right boot.img for the rom(s) you want? Aosp and sense have very diffrent kernels....
Sent from my HTC One X+ using Tapatalk 4 Beta
AndroHero said:
Are you flashing the right boot.img for the rom(s) you want? Aosp and sense have very diffrent kernels....
Sent from my HTC One X+ using Tapatalk 4 Beta
Click to expand...
Click to collapse
What kernel do kernel do I need for aosp?
Inside the .zip for each rom, you will find a boot.img. As we don't have S-Off, we can't flash the boot.img from recovery with the rest of the rom, So you need to extract the boot.img from the rom you wan't, and flash it from fastboot before you flash the rom. You can use the command "fastboot flash boot boot.img" to flash the kernel.
Sent from my HTC One X+ using Tapatalk 4 Beta
AndroHero said:
Inside the .zip for each rom, you will find a boot.img. As we don't have S-Off, we can't flash the boot.img from recovery with the rest of the rom, So you need to extract the boot.img from the rom you wan't, and flash it from fastboot before you flash the rom. You can use the command "fastboot flash boot boot.img" to flash the kernel.
Sent from my HTC One X+ using Tapatalk 4 Beta
Click to expand...
Click to collapse
Thanks, is it compulsory to install gapps to boot?
No phone will boot without G-Apps. But you'll have no initial setup app and obviously no market.
Sent from my HTC One X+ using Tapatalk 4 Beta
xTomus said:
Thanks, is it compulsory to install gapps to boot?
Click to expand...
Click to collapse
no, you can also install gapps any time later.

[Q] I messed up bad. Wiped SD.

I got an HTC One today, and wanted to install MIUI, as it is very similar to iOS and I've been using an iPhone since the 3G came out. I've jailbroken most of my devices so I figured rooting it would be a fairly similar experience. I was wrong. It was complicated, but nothing I couldn't handle. I get to the point where I flashed MIUI through TWRP and then flashed my boot.img through terminal. Tried to boot and got stuck at the animation logo for 15 minutes. Started troubleshooting trying to figure it out. Tried reinstalling, etc. One time I went to advance wipe and chose cache, dalvik cache, and internal storage on accident and wiped it. Immediately realizing what I had done, I knew I ****ed up. Followed some instructions to do a ADB Sideload and it worked, flashed my boot.img again and now I'm still stuck in that loop.
I don't know what to do at this point. I'm downloading the stock RUU so I can maybe just relock the bootloader and try again. Please explain any procedures to me like I'm 5. I'm very new to Android, and compared to the one click jailbreaking available to the iPhone, this is a little messy.
Appreciate the help in advance.
Make sure you have the right version of MIUI. ADB push the zip in recovery and flash it. Don't flash boot.img.
What commands do I type in to cmd after i cd \Android into the folder with that stuff? I'm unsure of how to push the zip installation onto the phone in recovery mode.
Adb sideload sideload.zip
Sent from my HTC One using Tapatalk 4 Beta
Nick281051 said:
Adb sideload sideload.zip
Sent from my HTC One using Tapatalk 4 Beta
Click to expand...
Click to collapse
No luck sideloading the zip file either. I know it's the right file...
Did you rename the file sideload.zip?
Sent from my HTC One using Tapatalk 4 Beta
Yup. Tried it as MIUI.zip, then sideload.zip
Don't really know where to go from here. I cannot get out of the boot loop no matter what I try. I've flashed the boot.img through terminal, I've flashed it through Hasoon's AIOK and I still get stuck there.
I'm lost.
CKRT said:
Don't really know where to go from here. I cannot get out of the boot loop no matter what I try. I've flashed the boot.img through terminal, I've flashed it through Hasoon's AIOK and I still get stuck there.
I'm lost.
Click to expand...
Click to collapse
I think you're fine with just choosing the zip file. You don't need to flash the boot.img. I've never had to flash a boot.img, just the zip file.
Do a factory reset, the Rom zip, and then flash. Only do those steps and see what happens.
Sent from my HTC One using xda premium
ngIfy which
I went ahead and used fastboot oem lock and executed the stock RUU. I'm up and running again with the stock stuff.
I really want to get MIUI up and running. Can anyone tell me what I need to do assuming I'm coming from a stock phone?
I know I need to:
Unlock bootloader again (with a terminal command or do I do the htcdev thing again?)
Flash a new recovery
Transfer the ROM
Flash the ROM
Restart to bootloader
Flash boot.img
Restart and hopefully have a working boot this time
Do I need to be doing anything with S-Off? I know the HTC Dev unlock only partially S-Off's..is that causing my problem?
Edit: using htcdev to unlock my bootloader isn't working. I get this message:
Error Code: Invalid Bootloader Token Length.
Error Reason: The submitted Token appears to be the wrong length and won't work.
Is this because I already unlocked the bootloader before? If so how do I unlock the bootloader after relocking it?
Edit 2: I am dumb. I just reused my unlock_code.bin.
About to try to reflash. Wish me luck!
You don't have to flash a boot.img
Sent from my HTC One using xda app-developers app
dcemtp1 said:
You don't have to flash a boot.img
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Everything says it was done successfully, but I'm still hanging on the boot logo for MIUI. Didn't flash a boot.img.
EDIT:
IT WORKS! I cleared my cache/data/davlik by using the regular wipe and it worked!

Tried to Unlock bootloader

I did all of the steps that i read and watched on youtube for the all in one toolkit by Hasoon2000... At the bootloader screen it says
*** Tampered ***
*** Unlocked ***
it will not let me do a flash recover, which I was going to use TWRP (Sprint Only)
any help would be useful, i have searched for the answer but im very new at this.
Thank you in advance.
HTC ONE (SPRINT)
fastboot flash recovery nameofrecovery.img
Best not to use toolkits
Sent from my Nexus 7 using XDA Premium 4 mobile app
demkantor said:
fastboot flash recovery nameofrecovery.img
Best not to use toolkits
Sent from my Nexus 7 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
i dont understand, could you please elaborate?
gsxronchrome said:
i dont understand, could you please elaborate?
Click to expand...
Click to collapse
When i go into recover the "teamwin" logo comes on, the it promps me to to a menu which seems as if it would work with touch screen... when it says install it will not allow enter any option its almost as if its frozen and the touch screen does not work.
After a lot of searching i think i figured out what it was you were trying to say to me. I did what you said using TWRP the picture shows what happened after i opened the cmd window and typed the command. TWRP freezes up when i go into recovery. Am i doing something wrong?
Replace nameofrecovery.img with the actual name of the file, more info here
http://forum.xda-developers.com/showthread.php?t=2277112
You may have the wrong twrp image installed to your phone, I can think of a good reason why it freezes on you. So when in recovery you can not press any option? If this is the case I would look for a new copy of twrp specific to your device, check md5sum, then flash it with fastboot
fastboot erase recovery
fastboot flash recovery placethenameofrecoveryhere.img
Sent from my Nexus 7 using XDA Premium 4 mobile app
demkantor said:
Replace nameofrecovery.img with the actual name of the file, more info here
http://forum.xda-developers.com/showthread.php?t=2277112
You may have the wrong twrp image installed to your phone, I can think of a good reason why it freezes on you. So when in recovery you can not press any option? If this is the case I would look for a new copy of twrp specific to your device, check md5sum, then flash it with fastboot
fastboot erase recovery
fastboot flash recovery placethenameofrecoveryhere.img
Sent from my Nexus 7 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes it gets stuck in recovery... i cannot use the touchscreen at all...
i downloaded the newest twrp copy... i downloaded md5sum and i have no idea how to use that even after looking it up and searching through youtube. i have the new ".img" file on hand... i just need to find out how to erase the old one in order to install the new one and see if it works
here is the CMD screen
this is what happens when i open "minimal adb and fastboot" and type in the commands you sent me... the top one that says failed, is when the phone is in the fastboot usb screen... when it says waiting for device... the phone is just turned on
Being you are s-on (can confirm if you write down all info on phone when in bootloader mode) you probably don't have permission to erase recovery but you should be able to just overwrite it, so just
fastboot flash recovery twrporwhatever.img
Also I believe there is a way to gain s-off with your phone, once you get all this down than I suggest doing that but first get the proper recovery
Oh and there are many ways to check md5sum (just Google for one if the one I linked you isn't working) this just makes sure you had a good download of a file, a good idea to do it but not need
Sent from my Nexus 4 using XDA Premium 4 mobile app

Categories

Resources