[Q] Do I need to flash boot.img via fastboot? - One (M8) Q&A, Help & Troubleshooting

I've been using the HTC Desire HD for a long time, and I was wondering if things I've learnt with that phone are still relevant.
With the DHD, if the phone was S-ON (but with an unlocked bootloader and a custom recovery), whenever flashing a new ROM it was necessary to extract the boot.img file from the zip and flash it manually by using: fastboot flash boot boot.img.
That was because a custom recovery couldn't flash a custom kernel while the device was S-ON.
Is that also the case with an M8 device that stays S-ON?
Or is a custom recovery now able to write any custom kernel regardless of being S-ON/S-OFF?
Thanks!

Indeed
s-on = Flash kernel via fastboot
s-off = kernel is flashed via rom/recovery

Thank you for the quick reply!

quick question..if what you say is true..if s on flash kernal in fastboot..if s off just flash normally threw recovery...why in captins thread with his GPE rom..says s off users must flash boot.img in fastboot?...i was about to try his rom ,before i got to that part..i am s off and ive never had to flash a boot.img threw fastboot before flashing the rom....next question..do i need to unpack the rom zip ,extract the boot.img flash it in fastboot..then repack the zip and flash again in recovery?ive never had to do this..i thought i would see a boot.img zip as a seperate download wouldve been lot easier...ive never unpacked a zip to extract a boot.img before...so i had to back out for now..can someone plz give me step by step directions how to flash captins GPE rom..really appreciate it..and i know im in the correct section to ask such a newbie question..thanks in advance

is this still true with modern Marshmallow/Nougat ROMs (and their associated firmware updates)? the device is unlocked and S-ON?
example: I just flashed ViperROM v6.1 on Tmobile M8 with v6.2 firmware and separate flash of boot.img NOT required.
In fact, I validated theory by doing the traditional procedure and result as phone that did not boot.
traditional procedure: flash ROM via TWRP and reboot direct into bootloader and fastboot. then finalize by manual flash of boot.img via fastboot. boot.img pulled from root directory of ROM zip.
any insight would be appreciated. -GA
Mr Hofs said:
Indeed
s-on = Flash kernel via fastboot
s-off = kernel is flashed via rom/recovery
Click to expand...
Click to collapse

gads1 said:
is this still true with modern Marshmallow/Nougat ROMs (and their associated firmware updates)? the device is unlocked and S-ON?
example: I just flashed ViperROM v6.1 on Tmobile M8 with v6.2 firmware and separate flash of boot.img NOT required.
In fact, I validated theory by doing the traditional procedure and result as phone that did not boot.
traditional procedure: flash ROM via TWRP and reboot direct into bootloader and fastboot. then finalize by manual flash of boot.img via fastboot. boot.img pulled from root directory of ROM zip.
Click to expand...
Click to collapse
No need to flash boot.img separately using fastboot (with s-on).
But it shouldn't hurt anything, either. It's just a redundant step, as you are just flashing the same boot.img that TWRP is already installing.
Try it again, without flashing boot.img separately. But I have a feeling something else is causing no boot. Make sure you are using current TWRP (version 3.1) with default TWRP wipe (cache, dalvik and data), or try another ROM.

Related

Help please, New with HTC

I come from the SGAce forums where flashing is just download-and-flash method and now I wanna try the HTC One X and use ARHD Rom (used it on my friend's Gnexus) And I really don't know what to do! It's just too complicated for me
My bootloader is already unlocked and it's only a test phone I borrowed cause I'm not sure what to buy yet
If anyone can help Here as well as ow to flash the rom and the .bat file
THANK YOU A LOT
First you need unlock bootloader to flash custom recovery. Follow this guide for example how to do it.
After recovery, make a backup of your current rom.
After backup, download ARHD 5.1.0 and superwipe script to your sdcard, after you got them both flash boot.img from ARHD thread. (Download this & run "install-boot.bat") This is mandatory because without S-OFF one can't flash boot.img from recovery, and without boot.img flashed one can't boot their device or it won't work properly.
Then to the basic flashing process, boot to recovery and flash superwipe script and afterwards flash ARHD and you're good to go!
BTW, you don't need to flash firmware files
Nubzori said:
First you need unlock bootloader to flash custom recovery. Follow this guide for example how to do it.
After recovery, make a backup of your current rom.
After backup, download ARHD 5.1.0 and superwipe script to your sdcard, after you got them both flash boot.img from ARHD thread. (Download this & run "install-boot.bat") This is mandatory because without S-OFF one can't flash boot.img from recovery, and without boot.img flashed one can't boot their device or it won't work properly.
Then to the basic flashing process, boot to recovery and flash superwipe script and afterwards flash ARHD and you're good to go!
BTW, you don't need to flash firmware files
Click to expand...
Click to collapse
so I will only run the .bat file or use command prompt?
Doo:DAce said:
so I will only run the .bat file or use command prompt?
Click to expand...
Click to collapse
In which part? When u flash boot.img you only need to run .bat file and press any button when device is in usb fastboot mode
Just another 13-Year old non-developer member running around the forums like a boss
Nubzori said:
In which part? When u flash boot.img you only need to run .bat file and press any button when device is in usb fastboot mode
Click to expand...
Click to collapse
Ok im confused. How do you flah those two things?
Doo:DAce said:
Ok im confused. How do you flah those two things?
Click to expand...
Click to collapse
Download the boot.img from ARHD thread, it has instructions inside

[Q] rerooting after OTA update, cdma htc one v

Hi,
I need help. I did an ota update from htc to improve battery performance on my rooted phone. Now the phone is not rooted anymore. I'm still on stock ics rom, how do I reroot the phone again? Do I just follow the same procedures when I rooted it the first time? Thanks in advance for any help.
Performing the OTA update will cause boot loops with most of the custom roms such as CM10 and AOKP. To successfully run a custom rom you should revert to an older RUU then reroot the phone and choose the custom rom of your choice. Here is a link to the older RUU you need to be able to run most of the custom roms http://forum.xda-developers.com/showthread.php?t=2094373
if you have relocked the bootloader,u have to unlock it again.for this,place the Unlock_code.bin file u received from htc for unlocking ur bootloader the first time in the fastboot folder.(or the platform-tools folder,whichever u have).then boot into bootloader and go to fastboot.then connect phone to pc.then just flash the token using-
fastboot flash unlocktoken Unlock_code.bin
select yes on ur screen,ur bootloader is now unlocked.
now flash a custom recovery by placing the recovery_name.img in the fastboot/platform-tools folder and flash it using-
fastboot flash recovery recovery_name.img
once recovery is flashed,flash this zip in recovery-
http://forum.xda-developers.com/showthread.php?t=1538053
now ur phone is rooted once again
Gryff302 said:
Performing the OTA update will cause boot loops with most of the custom roms such as CM10 and AOKP. To successfully run a custom rom you should revert to an older RUU then reroot the phone and choose the custom rom of your choice. Here is a link to the older RUU you need to be able to run most of the custom roms http://forum.xda-developers.com/showthread.php?t=2094373
Click to expand...
Click to collapse
I'm still on the ROM the phone came with. I did not install any custom ROM after I rooted it first time. Do I reroot by doing the same procedures like I did the first time? i.e. unlock bootloader through HTC dev and use primo superboot to root.
mihirengg19 said:
if you have relocked the bootloader,u have to unlock it again.for this,place the Unlock_code.bin file u received from htc for unlocking ur bootloader the first time in the fastboot folder.(or the platform-tools folder,whichever u have).then boot into bootloader and go to fastboot.then connect phone to pc.then just flash the token using-
fastboot flash unlocktoken Unlock_code.bin
select yes on ur screen,ur bootloader is now unlocked.
now flash a custom recovery by placing the recovery_name.img in the fastboot/platform-tools folder and flash it using-
fastboot flash recovery recovery_name.img
once recovery is flashed,flash this zip in recovery-
http://forum.xda-developers.com/showthread.php?t=1538053
now ur phone is rooted once again
Click to expand...
Click to collapse
I did not flash any custom ROM after it was rooted the first time. The phone is still on the original ROM it came with. Do I just need to unlock and use primo superboot to root again?
yes
edit:just flash the zip i linked you to in recovery after flashing the recovery.u can also do the superboot way but this is more simple...
mihirengg19 said:
yes
edit:just flash the zip i linked you to in recovery after flashing the recovery.u can also do the superboot way but this is more simple...
Click to expand...
Click to collapse
Great! Thanks for the help, I will give it a go.

Can't boot in recovery or ROM

Hey
I was following this tutorial:
http://forum.xda-developers.com/showthread.php?t=1525100
And everything worked well untill the part I had to boot into recovery mode.
I couldn't get into it and decided to skip that part and just flash the boot.img from the ROM
http://forum.xda-developers.com/showthread.php?t=1778202
I flashed everything succesful without any errors but now my phone won't boot, it just gives me a black screen and can't get into recovery.
My bootloader is unlocked and I can still get into it.
I was thinking about flashing the stock RUU or another ROM, but is this possible?
Now I can't use my desire hd .. need some help with it.
EDIT:
I'm S-ON and unlocked bootloader.
I just tried to flash CWM and it flashed succesfully but still couldn't boot into recovery..
That tutorial is for the Desire S. What RUU did you use?
bananagranola said:
That tutorial is for the Desire S. What RUU did you use?
Click to expand...
Click to collapse
I didn't use RUU yet, I was thinking about it..
...OK, I'm confused. Exactly what have you done?
bananagranola said:
...OK, I'm confused. Exactly what have you done?
Click to expand...
Click to collapse
First I unlocked the bootloader.
Then I moved the ROM's zip file to the SD card.
I flashed the 4EXT Recovery after that.
I couldn't boot into recovery so I flashed the ROM's boot.img
Then I couldn't boot my phone in normal mode
After that I flashed CWM but it also didn't work..
Then I used fastboot erase cache and after that I tried fastboot oem rebootRUU
that's all I did untill now
What did you have on your phone to begin with, stock? What ROM zip did you get the boot.img from? How did you flash recovery? Which image?
bananagranola said:
What did you have on your phone to begin with, stock? What ROM zip did you get the boot.img from? How did you flash recovery? Which image?
Click to expand...
Click to collapse
I had stock rom on my phone, didn't make a backup.
http://forum.xda-developers.com/showthread.php?t=2335496 is the rom I tried to put on my phone, that is where the boot.img is from.
And I flashed recovery with
fastboot flash recovery recovery.img
btw, i dont have a file PD98IMG
EDIT:
I tried booting into recovery with the command fastboot boot recovery.img
but it is stuck on the HTC screen
OK, you've flashed a JB AOSP boot.img on a Froyo/GB Sense ROM. No wonder it's not booting. Again, where did you get the recovery image from? You need to flash a working recovery from fastboot (fastboot flash recovery recovery.img), flash the ROM from recovery, and flash the matching boot.img from fastboot (fastboot flash boot boot.img).
bananagranola said:
OK, you've flashed a JB AOSP boot.img on a Froyo/GB Sense ROM. No wonder it's not booting. Again, where did you get the recovery image from? You need to flash a working recovery from fastboot (fastboot flash recovery recovery.img), flash the ROM from recovery, and flash the matching boot.img from fastboot (fastboot flash boot boot.img).
Click to expand...
Click to collapse
I just googled the CWM Recover img...
Can you link me to a working recovery img? and to a ROM that is running android 4.0 or higher and is easier to flash?
thanks man!
SmikkelMikkel said:
I just googled the CWM Recover img...
Can you link me to a working recovery img? and to a ROM that is running android 4.0 or higher and is easier to flash?
thanks man!
Click to expand...
Click to collapse
Recoveries are device specific. http://www.clockworkmod.com/rommanager. ROMs are all flashed the same way if you are S-On with an unlocked bootloader.
bananagranola said:
Recoveries are device specific. http://www.clockworkmod.com/rommanager. ROMs are all flashed the same way if you are S-On with an unlocked bootloader.
Click to expand...
Click to collapse
Well thanks, I fixed it myself but still thank you for your help.
You sent me in the right direction !

Flashed recovery as boot.img

Hello everyone,
After having unlocked the boot loader I flashed via fast boot TWRP. The only problem is that I flashed "fastboot flash BOOT recovery.img" instead of RECOVERY... I wasn't paying enough attention...
The phone still boots but it goes straight to recovery. What can I do? Fast boot still recognizes it. I was thinking of extracting the boot.img file from a sense based rom like android revolution HD for the m8 or putting the whole rom android revolution HD on an sd card and flashing via recovery. In other threads users had already flashed a custom rom so they could flash the boot.img extracting it from that but I don't know since I still had the stock unlocked rom.
Would one of these solutions solve the problem?
u can try fastboot flash boot whateverbootloader.img otherwise try fastboot rebootRUU and try flashing hboot from within a ruu zip or wait for HTC to release official RUU
djkinetic said:
u can try fastboot flash boot whateverbootloader.img otherwise try fastboot rebootRUU and try flashing hboot from within a ruu zip or wait for HTC to release official RUU
Click to expand...
Click to collapse
I'll try flashing a boot.img, the other solution is beyond my current skills...
Just extract the boot.img from the ROM you were using. If stock, download one of the stock Roms and then extract the boot.IMG from it and then
fastboot flash boot boot.img
Obviously the boot.img will need to be in your fastboot/adb folder.
Sent from my HTC One_M8 using xda app-developers app
thank you both, I flashed the correct boot.img and everything is fine now
djkinetic said:
u can try fastboot flash boot whateverbootloader.img otherwise try fastboot rebootRUU and try flashing hboot from within a ruu zip or wait for HTC to release official RUU
Click to expand...
Click to collapse
What... He just needs to flash a kernel, why potentially cause someone to brick their device by flashing a hboot which wouldn't even solve the issue?
where did you get the boot.img file ? care to share it I am stuck too. My phones is from Rogers
tawer said:
where did you get the boot.img file ? care to share it I am stuck too. My phones is from Rogers
Click to expand...
Click to collapse
Go to my backup thread and get a nandroid ....the kernel is inside the backup.
Thank you so much.

Flashing Boot IMGS and roms

Hi Forum!
A question, as I like to flash the 4.2.2 sense roms, each one says you need to flash a boot.img with each rom, even though each rom contains a boot.img too, are these all the same? i mean can i just use one boot.img file in my fastboot folder work on each sense rom?
Also when I change roms, do i need to flash a boot.img each time? (bearing in mind, I only use the sense roms
You need to flash the boot image that is included with each Rom, they are all specific to the Rom you are flashing. And yes you need flash the boot image every time you change roms
Sent from my Xperia Z2 through XDA premium and a carrier pigeon
biggary said:
Hi Forum!
A question, as I like to flash the 4.2.2 sense roms, each one says you need to flash a boot.img with each rom, even though each rom contains a boot.img too, are these all the same? i mean can i just use one boot.img file in my fastboot folder work on each sense rom?
Also when I change roms, do i need to flash a boot.img each time? (bearing in mind, I only use the sense roms
Click to expand...
Click to collapse
From what I have understood while lingering around XDA is, that the boot.img file is the kernel and you need to flash it (every time you change ROMs) in fastboot (because our phones are S-ON we can't just simply flash the ROM zip and be done).
So, flash the ROM zip, then fastboot flash the boot.img from a PC (remember to fastboot erase cache too).
You mean S-ON .... ^^
classic20 said:
From what I have understood while lingering around XDA is, that the boot.img file is the kernel and you need to flash it (every time you change ROMs) in fastboot (because our phones are S-OFF we can't just simply flash the ROM zip and be done).
So, flash the ROM zip, then fastboot flash the boot.img from a PC (remember to fastboot erase cache too).
Click to expand...
Click to collapse
Does the ordering matter? In this ROM it is stated to flash the boot.img first and then the ROM:
http://forum.xda-developers.com/showthread.php?t=2630225
No does not matter.
Please delete
Mr Hofs said:
You mean S-ON .... ^^
Click to expand...
Click to collapse
Yes, correct as always Mr. Hofs

Categories

Resources