Installing another Kernel (Zip not .img) on a S-ON device - HTC Sensation

I can't find any guides about how to install a different (but compatible) kernel, zipped, on a S-ON device. I know I need the kernel to be in .img form and not .zip. Can anyone lead me to a guide, or give me some advices on how do I actually do it?

So you want .zip or .img?
At title it says ''Zip not .img'' And later it says ''to be in .img form and not .zip''
Anyways, with the .img one; you need to find a correct boot.img, then follow this;
http://forum.xda-developers.com/showthread.php?t=1631861
Scroll down, find the ''Extra 1: Flashing "boot.img"''
If this is what you're looking for..
Someone smarter should correct me if I was wrong.

each kernel in development section comes with zip format

There's a mess in my head right now and I can't explain exactly what I want. I apologize.
I have a S-ON HTC Sensation, that means when I want to install a new rom I need to enter bootloader and fastboot the boot.img. Then enter Recovery and flash the rom in zip form.
What if I want to install a new Kernel (a compatible one, as i said) but which is in zip form as the rom. How do I get the boot.img out of it so I can flash the zip afterwards? Because I understand that zipping it normally without any boot.img might get me some errors.

rareshutzu said:
There's a mess in my head right now and I can't explain exactly what I want. I apologize.
I have a S-ON HTC Sensation, that means when I want to install a new rom I need to enter bootloader and fastboot the boot.img. Then enter Recovery and flash the rom in zip form.
What if I want to install a new Kernel (a compatible one, as i said) but which is in zip form as the rom. How do I get the boot.img out of it so I can flash the zip afterwards? Because I understand that zipping it normally without any boot.img might get me some errors.
Click to expand...
Click to collapse
i think i know what are you talking about
do you have 4ext recovery installed?
if not then install 4ext and before flashing any rom or even a kernel enable smartflash from it
you just avoid the step for flashing the boot.img manually
with smartflash feature you don't need to flash any boot.img

rzr86 said:
i think i know what are you talking about
do you have 4ext recovery installed?
if not then install 4ext and before flashing any rom or even a kernel enable smartflash from it
you just avoid the step for flashing the boot.img manually
with smartflash feature you don't need to flash any boot.img
Click to expand...
Click to collapse
Great. That's exactly what I wanted. To not flash boot.img anymore. I'll try and let you know

rareshutzu said:
Great. That's exactly what I wanted. To not flash boot.img anymore. I'll try and let you know
Click to expand...
Click to collapse
FYi, Boot.img comes with every kernel. Open the zip on your pc look around and extract it.
JAM THAT THANKS BUTTON.
Happy to help.

Related

How to extract EU stock recovery?

Hi,
I'm still facing issues with CMW (all versions) regarding charging of my battery and no restart of the phone...
I would like to re-install stock EU recovery but how to extract the img file and from where?
Thanks!
Here you go, taken from the 1.35.401.1 RUU. It is NOT a flashable ZIP, it's just the recovery from the RUU
EddyOS said:
Here you go, taken from the 1.35.401.1 RUU. It is NOT a flashable ZIP, it's just the recovery from the RUU
Click to expand...
Click to collapse
Thanks!
For my knowledge, could you explain how you proceed?
If you don't know what you're doing don't even think about trying to flash it. You need to learn the fastboot commands as you need to use ADB to flash it
EddyOS said:
If you don't know what you're doing don't even think about trying to flash it. You need to learn the fastboot commands as you need to use ADB to flash it
Click to expand...
Click to collapse
I know how to flash it in command line, that's not the problem. I wanted just to know how you extract .img files from a RUU?

[GUIDE][NOOB PROOF]How to Flash Custom Roms with S-ON

Hello everyone! in this guide i'll show you how to flash custom roms which requires s-off when your device is not.
For example for the people who have unlocked the sensation through HTCdev.com, don't have s-off and want to flash custom roms :good:
ok so you will need at least:
Unlocked Bootloader
Rooted Device
PC with Android SDK Installed (ADB, Fastboot)
Custom Rom (to be installed)
Ok you if you have these things you're half way to flash a custom rom, Now what s-off devices can do is to flash the rom's boot.img
So this is really simple, we need to flash ourselves the boot.img, which our s-on devices can't do by itself
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Step 1.
First you need to extract the rom.zip and inside of it you'll find a folder named Kernel (most of the rom's boot.img are in that folder, if it is not there find it out in the other folders)
Step 2.
Now that you have your boot.img you need to copy that file into your Android-sdk/tools folder
Step 3.
Next we need to flash that file onto our Sensation so reboot your device in fastboot mode, open the cmd and type:
Code:
fastboot flash boot boot.img
at this point the cmd will proceed to flash the boot.img file and when it's done type:
Code:
fastboot reboot recovery
Step 4.
Ok, now that we have flashed the most important file we need simply to flash the rom through recovery
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reboot and it's done you have flashed the rom correctly :good::victory:
NOTE: YOU NEED TO FLASH THE BOOT.IMG FILE EVERY TIME YOU WANT TO FLASH A CUSTOM ROM, IF YOU DON'T YOUR DEVICE WON'T BOOT
sorry to butt in but ..this was already covered here
ganeshp said:
sorry to butt in but ..this was already covered here
Click to expand...
Click to collapse
yep, i've seen that after doing this, however this is an easier method and it is different....
matt95 said:
yep, i've seen that after doing this, however this is an easier method and it is different....
Click to expand...
Click to collapse
Thanks for the effort but as ganeshp already pointed out this has been covered in great detail already in the guide he linked. Also I do not see how this is easier, for one this method is covered in the guide, and two how can it be easier than enabling smart flash in 4EXT Recovery. When you do this you do not even have to connect your device to a computer via USB to flash the boot.img, it is all done on the device itself. No extracting the boot.img, which is not in a folder named kernel normally, only with Aroma do you have that. As I said thanks for your effort, your heart is in the right place, but this was just not needed.
T-Macgnolia said:
Thanks for the effort but as ganeshp already pointed out this has been covered in great detail already in the guide he linked. Also I do not see how this is easier, for one this method is covered in the guide, and two how can it be easier than enabling smart flash in 4EXT Recovery. When you do this you do not even have to connect your device to a computer via USB to flash the boot.img, it is all done on the device itself. No extracting the boot.img, which is not in a folder named kernel normally, only with Aroma do you have that. As I said thanks for your effort, your heart is in the right place, but this was just not needed.
Click to expand...
Click to collapse
yeah, maybe it is not easier than the other method but i did it cause my friend wasn't able to star the 4ext application and he couldn't flash the recovery properly, even in fastboot. So i decided to make this guide to help people who have such problems, more guides/different methods = more possibility to have success

[Q] Is flashing a kernel as easy as going to recovery and installing it?

Hi i'm new to the att htc one x, just rooted, and installed twrp... then flash cleanrom5. I also noticed clean has a kernel, i did not see an install guide, but i've installed kernels before on my captivate. So what i'm wondering if it's as easy as....
1. place kernel on phone storage
2. reboot into recovery
3. install kernel from recovery
4. reboot
If there anything i am missing or if i am completely off could someone please help me out with this?
Thank you :good:
If you are on the 1.14 hboot (rooted on 2.20 firmware) you can't flash kernels from recovery. You have to do it using fastboot.
redpoint73 said:
If you are on the 1.14 hboot (rooted on 2.20 firmware) you can't flash kernels from recovery. You have to do it using fastboot.
Click to expand...
Click to collapse
Would you mind walking me through that process?
Unless this makes any difference "CleanROM V is based on the latest Asian 2.29 RUU which is Android 4.0.4, Sense 4.1 and is ODEXED!"
not sure if that means i am on 2.29 rooted.
cannon19932006 said:
Would you mind walking me through that process?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1957193
http://forum.xda-developers.com/showpost.php?p=33493959&postcount=2
Sent from my HTC One XL
absolutelygrim said:
http://forum.xda-developers.com/showthread.php?t=1957193
http://forum.xda-developers.com/showpost.php?p=33493959&postcount=2
Sent from my HTC One XL
Click to expand...
Click to collapse
I don't see anything about flashing kernels in that thread.
cannon19932006 said:
I don't see anything about flashing kernels in that thread.
Click to expand...
Click to collapse
the boot.img has the kernel in it, it has to be flashed from fastboot.
heres the kernel. dl.dropbox.com/u/31360541/CleanKERNEL/CleanKERNEL 1.1 - HOX.zip
flash the boot.img from fastboot, then flash the zip from recovery. fastboot flash method http://forum.xda-developers.com/showpost.php?p=33493959&postcount=2
edit: btw, what exploit did you use to achieve root? Was it the x-factor exploit?
cannon19932006 said:
Unless this makes any difference "CleanROM V is based on the latest Asian 2.29 RUU which is Android 4.0.4, Sense 4.1 and is ODEXED!"
not sure if that means i am on 2.29 rooted.
Click to expand...
Click to collapse
Not the firmware you are on now. The firmware you originally achieved root on. More importantly, what version is your hboot (go to hboot, and the version number is listed)?
If your phone was purchased with 2.20 firmware, and you rooted using the new X-factor exploit method, you have the 1.14 hboot.
Hboot 1.14 plugged the hole by which flashing kernels from recovery was possible. So it can only be done by fastboot.
redpoint73 said:
Not the firmware you are on now. The firmware you originally achieved root on. More importantly, what version is your hboot (go to hboot, and the version number is listed)?
If your phone was purchased with 2.20 firmware, and you rooted using the new X-factor exploit method, you have the 1.14 hboot.
Hboot 1.14 plugged the hole by which flashing kernels from recovery was possible. So it can only be done by fastboot.
Click to expand...
Click to collapse
i used x-factor yes, and yes it's 1.14, thank you both for the help.
cannon19932006 said:
i used x-factor yes, and yes it's 1.14, thank you both for the help.
Click to expand...
Click to collapse
Ok, since you used x-factor, make sure to flash your boot.img before flashing the ROM
Same with a kernel. Flash boot.img then the kernel zip
absolutelygrim said:
Ok, since you used x-factor, make sure to flash your boot.img before flashing the ROM
Same with a kernel. Flash boot.img then the kernel zip
Click to expand...
Click to collapse
I already flashed the rom, just not the kernel, i don't remember flashing the boot.img, just following the instructions on the rom's page here
http://forum.xda-developers.com/showthread.php?t=1655011
"Must have twrp Recovery installed with unlocked bootloader! CWM Recovery will cause serious issues!!!
Copy ROM to storage
Reboot to Recovery
Wipe data / Factory Reset in Recovery!
Install ROM and Aroma installer will start.
Choose Options
Let install complete
Reboot to System"
That's how i flashed this rom anyway.
That's funny your in schertz, i live like 5 miles from there in Universal city lol.
cannon19932006 said:
I already flashed the rom, just not the kernel, i don't remember flashing the boot.img, just following the instructions on the rom's page here
http://forum.xda-developers.com/showthread.php?t=1655011
"Must have twrp Recovery installed with unlocked bootloader! CWM Recovery will cause serious issues!!!
Copy ROM to storage
Reboot to Recovery
Wipe data / Factory Reset in Recovery!
Install ROM and Aroma installer will start.
Choose Options
Let install complete
Reboot to System"
That's how i flashed this rom anyway.
That's funny your in schertz, i live like 5 miles from there in Universal city lol.
Click to expand...
Click to collapse
Well, If cleanROM is using the same Kernel as stock, then you got lucky. If they use the same kernel, no need to flash boot.img.
If they are different kernels and you dont flash boot.img, you are now in a bootloop
lol Universal City
not bad
Sorry for so many questions lol, just making sure i do this right.
okay so basically i want to download the kernel and the fastboot drivers posted in your post.
Extract the fastboot drivers, and then unzip the kernel, taking the boot.img from it and placing it into the fastboot directory that i just unzipped.
I then want to boot my phone into hboot and select fastboot
open the command prompt and take it to where the fastboot.exe is.
then type fastboot flash boot boot.img into the command prompt
After all this is done i want to go into recovery and flash the zip of the kernel?
Is that all right?
cannon19932006 said:
Sorry for so many questions lol, just making sure i do this right.
okay so basically i want to download the kernel and the fastboot drivers posted in your post.
Extract the fastboot drivers, and then unzip the kernel, taking the boot.img from it and placing it into the fastboot directory that i just unzipped.
I then want to boot my phone into hboot and select fastboot
open the command prompt and take it to where the fastboot.exe is.
then type fastboot flash boot boot.img into the command prompt
After all this is done i want to go into recovery and flash the zip of the kernel?
Is that all right?
Click to expand...
Click to collapse
Yeap. Don't "extract" the zip, just drag the boot.img out of the zip
absolutelygrim said:
Yeap. Don't "extract" the zip, just drag the boot.img out of the zip
Click to expand...
Click to collapse
Success, THANKS!
absolutelygrim said:
the boot.img has the kernel in it, it has to be flashed from fastboot.
heres the kernel. dl.dropbox.com/u/31360541/CleanKERNEL/CleanKERNEL 1.1 - HOX.zip
flash the boot.img from fastboot, then flash the zip from recovery.
Click to expand...
Click to collapse
Why do you say to flash the boot.img and then zip if boot.img has the kernel in it?
Thank you. R
cimenta said:
Why do you say to flash the boot.img and then zip if boot.img has the kernel in it?
Thank you. R
Click to expand...
Click to collapse
Because the new hboot makes it to where you cant flash kernels through recovery. only fasboot
So why the second flash if the boot.img was flashed via fastboot?
I am just lost in these. Could you recommend any reading except this forum for me to get more understanding? So I don't do anything to my phone?
cimenta said:
So why the second flash if the boot.img was flashed via fastboot?
I am just lost in these. Could you recommend any reading except this forum for me to get more understanding? So I don't do anything to my phone?
Click to expand...
Click to collapse
It wasn't.
boot.img can't be flashed from recovery, it skips it.
Thats why you flash boot.img from fastboot then the ROM from recovery
http://forum.xda-developers.com/showthread.php?t=1963896
absolutelygrim said:
It wasn't.
boot.img can't be flashed from recovery, it skips it.
Thats why you flash boot.img from fastboot then the ROM from recovery
http://forum.xda-developers.com/showthread.php?t=1963896
Click to expand...
Click to collapse
So although ROM zip file contains boot.img when flashing boot.img won't be flashed? That's why we need to flash is separately? Is it important to flash it before flashing ROM?
Thank you.R
I'm also, learning as I go. From reading and multiple failed attempts at flashing ROMs and kernels, I have found the correct way with 1.14 Hboot.
-dl the rom/kernel
-extract only the boot.img file
- save both .zip and boot to your desired folder.
-go into recovery and mount sd card to pc
-transfer .zip file to your phones sd card
-get back into fastboot on your phone
-transfer boot.img to fastboot folder
-from fastboot cmd prompt(if you have win7, open your folder with fastboot in it hold shift+right click and open cmd)
-type "fastboot boot boot.img" without quotes
-go back into recovery and clean cache/delvik
-then install .zip that you copied to the sd card
You should be good to go from there.
If I have left anything out, please feel free to correct.
Sent from my HTC One X using xda app-developers app

[Q] Updating CM10 - Flashing boot.img really necessary?

It is often stated that it is necessary to manually flash boot.img via fastboot AFTER installing a xxrom.zip in recovery.
Is this really necessary?
If you take a look in the file updater-script, which belongs to every xxrom.zip, you find that boot.img is flashed as last action in the update procedure (seen e.g. in the latest CM10-nightly). So I guess that it is not necessary to additionally flash it afterwards using fastboot.
Am I right?
1aladdin1 said:
It is often stated that it is necessary to manually flash boot.img via fastboot AFTER installing a xxrom.zip in recovery.
Is this really necessary?
If you take a look in the file updater-script, which belongs to every xxrom.zip, you find that boot.img is flashed as last action in the update procedure (seen e.g. in the latest CM10-nightly). So I guess that it is not necessary to additionally flash it afterwards using fastboot.
Am I right?
Click to expand...
Click to collapse
You are wrong and right lol. If your Hboot is 1.09 or lower TWRP can flash the boot.img but if you higher you have to fastboot or use Flash Image GUI app. And always a good idea to flash boot.img just in case it has changed but thats more for AOSP roms.
Darknites said:
You are wrong and right lol. If your Hboot is 1.09 or lower TWRP can flash the boot.img but if you higher you have to fastboot or use Flash Image GUI app. And always a good idea to flash boot.img just in case it has changed but thats more for AOSP roms.
Click to expand...
Click to collapse
I have Hboot 1.13 - so I need to "fastboot flash boot boot.img"
Unfortunately there is no error message showing that flashing the boot-partition during xxrom.zip-Installation in TWRP-recovery has failed.
I suppose that there is no particular order between installing the xxrom.zip and flashing boot-partition. Am I right?
1aladdin1 said:
I have Hboot 1.13 - so I need to "fastboot flash boot boot.img"
Unfortunately there is no error message showing that flashing the boot-partition during xxrom.zip-Installation in TWRP-recovery has failed.
I suppose that there is no particular order between installing the xxrom.zip and flashing boot-partition. Am I right?
Click to expand...
Click to collapse
I use to fastboot first then rom but now I just use Flash Image GUI. TWRP wont say its failed for some reason but it can if you remove the boot.img but thats nothing to worry about.
there is a method how to downgrade hboot:
http://forum.xda-developers.com/showthread.php?t=1990043&highlight=downgrade+unbrick
it's a little bit tricky and requires some linux knowledge, but it takes you down to hboot 1.06

[Q] boot.img

Hey guys!
I´m trying to get the hang of flashing on my HTC One S. From the beginning I just wanted to get a good deodexed ROM with Sense, but after trying 4.2.2 on a Galaxy S2 I would really like to have it on my One S.
Here´s my question...
I have found some great ROMs that I want to try. I have TWRP 2.3.3.0 and I´m S-on. I know that I have to fastboot the boot.img before flashing any ROM. But is the boot.img the one inside every specific custom ROM (the .zip) or what? Do I extract it from the specific ROM (the .zip) or do I go about it any other way?
I have asked this in one specific thread but no answer. This is really Everything I need to know Before I start flashing... I feel I´m rather comfortable with all other info I have...
Thanx in advance!
Well, if there is no mention of a seperate boot.img in the OP, flash the One inside zip file
If you're stuck in a bootloop, choose the appropriate kernels from kernel threads
So I was right? I extract the boot.img from the rom.zip if nothing else is mentioned in the OT? Then I flash it through fastboot?
HTC One S via Tapatalk 2
Manneman32 said:
So I was right? I extract the boot.img from the rom.zip if nothing else is mentioned in the OT? Then I flash it through fastboot?
HTC One S via Tapatalk 2
Click to expand...
Click to collapse
yes
but if your gettin bootloops try kernels from kernel thread
Manneman32 said:
Hey guys!
I´m trying to get the hang of flashing on my HTC One S. From the beginning I just wanted to get a good deodexed ROM with Sense, but after trying 4.2.2 on a Galaxy S2 I would really like to have it on my One S.
Here´s my question...
I have found some great ROMs that I want to try. I have TWRP 2.3.3.0 and I´m S-on. I know that I have to fastboot the boot.img before flashing any ROM. But is the boot.img the one inside every specific custom ROM (the .zip) or what? Do I extract it from the specific ROM (the .zip) or do I go about it any other way?
I have asked this in one specific thread but no answer. This is really Everything I need to know Before I start flashing... I feel I´m rather comfortable with all other info I have...
Thanx in advance!
Click to expand...
Click to collapse
Hi !
Just download from playmarket this app " flash Image gui" , with this app you can easy extract kernel, and modules from your preferred rom, and flash them. All this app does automatically, just choose your zip file.
But you can choose another kernel, and flash it over , I.e. bubba vn 4 on Liquid, or Holo black bean.
Just download kernel from dev. tread and flash with "flash image gui" all this is for a few minutes.
As long as I have a Nandroid backup I can use AllInOne tool to flash stock kernel, recovery and my backup, right?
The Kernel-thread you mention... I actually can´t find it. Or am I missing something.
Can I ask Another question? If I want to flash another Radio with S-on... can I do that while in TWRP recovery? I have seen this: http://forum.xda-developers.com/showthread.php?t=1684477&highlight=flash+radion
I already have openrecovery-twrp-2.3.3.0-ville.img flashed on my phone... so as I understand I can just flash the radion from TWRP-recovery?
Manneman32 said:
As long as I have a Nandroid backup I can use AllInOne tool to flash stock kernel, recovery and my backup, right?
The Kernel-thread you mention... I actually can´t find it. Or am I missing something.
Can I ask Another question? If I want to flash another Radio with S-on... can I do that while in TWRP recovery? I have seen this: http://forum.xda-developers.com/showthread.php?t=1684477&highlight=flash+radion
I already have openrecovery-twrp-2.3.3.0-ville.img flashed on my phone... so as I understand I can just flash the radion from TWRP-recovery?
Click to expand...
Click to collapse
http://xda-developers.com/showthread.php?t=2134535
Here is the tread from "RMBQ"
And, I think you can flash with all in one tool, but I have no experience with.
About S-OFF , please read tread in development section.
Thanx guys for all the help!
All went well and now I have 4.2.2 on my HTC One S... sweet!

Categories

Resources