Flashing Boot IMGS and roms - HTC One X

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

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

Changing Rom

Hi all,
Recently rooted my one x (used to have a rooted desire) and changing rom isn't as easy as I remember.
I've searched the forums and the net but can't find much about swapping onto a different rom. I've put it onto MIUI V4 but want to try out cyanogenmod 10/9 but i keep getting boot loops. From what i've read i think its something to do with the boot img? Can anyone help or link me to a guide?
I have managed to restore onto MIUI through the clockwork recovery. Also in ROM manager i can only see MIUI roms :s
Don't use ROM Manager - it's crap
With the One X you can't flash a new boot.img from Recovery so you have to flash the boot.img in a ROMs ZIP file before flashing the ROM using the fastboot command 'fastboot flash boot boot.img'
Guides are in the Dev forum, or Google it
This may help you.
http://forum.xda-developers.com/showthread.php?t=1832891
But as said above, basically any ROM you want to change to, you need to extract the boot.img from the roms .zip, flash it using the fastboot command, then flash the ROM via recovery.
craftycarper1 said:
This may help you.
http://forum.xda-developers.com/showthread.php?t=1832891
But as said above, basically any ROM you want to change to, you need to extract the boot.img from the roms .zip, flash it using the fastboot command, then flash the ROM via recovery.
Click to expand...
Click to collapse
Thanks for both of your replys. That thread really helps, going to give it a go tonight!

Does every rom (4.2) need boot.img flash

Hi,
Ive done a quick search and cannot find a straight answer, i dont own HTC one x but need to modify a friends phone. as far as im aware they have a custom 4.1 rom and CWM etc.
Do i need to flash boot.img for every rom regardless of what it says on the post? some dont mention it... just want to be sure!
LOGMD said:
Hi,
Ive done a quick search and cannot find a straight answer, i dont own HTC one x but need to modify a friends phone. as far as im aware they have a custom 4.1 rom and CWM etc.
Do i need to flash boot.img for every rom regardless of what it says on the post? some dont mention it... just want to be sure!
Click to expand...
Click to collapse
If the rom uses stock kernel, then no but you may lose ram disk tweaks for that rom.
Sent from my HTC One X using xda app-developers app
Basically, Yes. If you switch over to a different ROM you have to flash the new boot image. Sometimes the boot image is also updated with a new version of a ROM in that case you have to flash the new Boot Image too.
You can install rom without flash boot.img only if you device is S-Off.
If your are S-On, you have to flash boot.img everytime you install a new rom.
I have a Desire S-Off and i can flash which rom i want without flash boot.img.
For my Sensation XE, it's the same.
For my HOX, i have to flash everytime i change my rom.
totofe69 said:
You can install rom without flash boot.img only if you device is S-Off.
If your are S-On, you have to flash boot.img everytime you install a new rom.
I have a Desire S-Off and i can flash which rom i want without flash boot.img.
For my Sensation XE, it's the same.
For my HOX, i have to flash everytime i change my rom.
Click to expand...
Click to collapse
No. No. No.
Some or most kernels and ROM's for the OneX are NOT set up to flash the boot.img in recovery precisely because there is no method to S-Off the phone. Devs have simply stopped implementing the method. I have no idea which ones can and cannot so err on the side NONE can and you cannot go wrong.
Always flash, in fastboot, the given boot.img for every ROM is the general basic rule.
Tigerlight said:
No. No. No.
Some or most kernels and ROM's for the OneX are NOT set up to flash the boot.img in recovery precisely because there is no method to S-Off the phone. Devs have simply stopped implementing the method. I have no idea which ones can and cannot so err on the side NONE can and you cannot go wrong.
Always flash, in fastboot, the given boot.img for every ROM is the general basic rule.
Click to expand...
Click to collapse
If both roms are using stock kernel and on the same base and you don't mind losing the roms ram disk tweaks you really don't need to flash.
Same if you are using a custom kernel.
So long as the kernel/base match you would just need to flash the modules.
Sent from my HTC One X using xda app-developers app
If you use Android 4.2.2 with sense 5, you only flash boot.img one time and flash any rom except Alex-V's rom. Because still now, all sense 5 rom using stock kernek
If you flash cm, you must flash boot.img every time you flash difference rom
if your device already s-off and super-cid you flash rom normal no need flash boot.img except some rom not allow flash boot.img in update-script
Thanks all!
nightstorm8x said:
If you use Android 4.2.2 with sense 5, you only flash boot.img one time and flash any rom except Alex-V's rom. Because still now, all sense 5 rom using stock kernek
If you flash cm, you must flash boot.img every time you flash difference rom
if your device already s-off and super-cid you flash rom normal no need flash boot.img except some rom not allow flash boot.img in update-script
Click to expand...
Click to collapse
Thanks for all the replies guys, given me a better insight to the method i should take with this phone when i get hold of the phone ill analyse the rom currently on there. i think its 4.1 with sense so ill do more homework and figure it out!:cyclops:

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.

[Q] Do I need to flash boot.img via fastboot?

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.

Categories

Resources