Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,768,721 Members 52,338 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to check if the kernel is flashed

Tip us?
 
Forage81
Old
#1  
Junior Member - OP
Thanks Meter 4
Posts: 17
Join Date: May 2012
Default [Q] How to check if the kernel is flashed

Hi,

Since CM is now stable enough to use on a HTC One S I'd like to start using it finally. I'd like to keep things as clean and simple as possible, so it's HTCdev unlock for me. There is, however, one issue not clear to me and I'd like to be prepared on that one first.

The CM HTC One S instructions, as well as other guides, mention that at least pre-2013 One S devices will need the kernel to be flashed manually. My device might just fall into that category as well.

How does one check, either beforehand or after flashing CM, if the kernel still needs to be flashed manually?
The only way I found was to actually boot into CM, which might not even happen when it failed to flash it automatically. Yes I could just flash it manually either way, just to be on the safe side, but it would be interesting to learn if it's really needed in the first place. This would eliminate the step in subsequent CM updates.

My device with all stock updates installed:
HBOOT-2.13.0000
RADIO-1.15.50.05.29
 
tivofool
Old
#2  
tivofool's Avatar
Senior Member
Thanks Meter 168
Posts: 534
Join Date: Jun 2012
Unless you s off your phone you will need to fastboot flash boot.img

(unless there is a new way I haven't learned)

Sent from my HTC One S using Tapatalk
 
Forage81
Old
#3  
Junior Member - OP
Thanks Meter 4
Posts: 17
Join Date: May 2012
Quote:
Originally Posted by tivofool View Post
Unless you s off your phone you will need to fastboot flash boot.img
Doesn't HTCdev unlock imply s off? Guides like the one on the CM wiki still talk about a manual boot.img flash despite s off.

I went ahead with installing CM on my phone and performed the manual flash just in case. I guess the only way to find out of it's required or not is to not perform the manual flash at the next milestone update and see if it boots and check it in CM if it does.
 
808phone
Old
#4  
Senior Member
Thanks Meter 49
Posts: 429
Join Date: Jan 2014
Quote:
Originally Posted by Forage81 View Post
Doesn't HTCdev unlock imply s off? Guides like the one on the CM wiki still talk about a manual boot.img flash despite s off.

I went ahead with installing CM on my phone and performed the manual flash just in case. I guess the only way to find out of it's required or not is to not perform the manual flash at the next milestone update and see if it boots and check it in CM if it does.
HTCDev unlock is not S-OFF. You will need to run something like moonshine to get S-OFF. Until then, you need to manually flash boot.img. HTCDev unlock simply unlocks the boot loader.
 
Forage81
Old
#5  
Junior Member - OP
Thanks Meter 4
Posts: 17
Join Date: May 2012
Quote:
Originally Posted by 808phone View Post
HTCDev unlock is not S-OFF. You will need to run something like moonshine to get S-OFF. Until then, you need to manually flash boot.img. HTCDev unlock simply unlocks the boot loader.
You're right, HTCDev unlock is not S-OFF, my bad.

Since the CM wiki does imply you don't need S-OFF to have boot.img flashed automatically in all cases I'll see what happens when I update again. Would be interesting to learn if it works or not. I'll just boot the phone and see what happens, checking the kernel version in CM when it boots at all.

I do think it would still be handy to have a way to determine what the actual kernel is without having to boot into Android but I guess that's not possible then?
 
808phone
Old
(Last edited by 808phone; 17th June 2014 at 07:45 PM.)
#6  
Senior Member
Thanks Meter 49
Posts: 429
Join Date: Jan 2014
> Since the CM wiki does imply you don't need S-OFF to have boot.img flashed automatically in all cases

If you are not S-OFF you will have to flash boot.img manually or else you will probably get the dreaded boot loop. AFAIK it's never flashed automatically with S-ON.

I see what you are looking at. I don't know why they don't make this crucial part of installation really hilighted since it will render your phone useless. Read below.

This device, if unlocked with HTCDev Unlock, must have its kernel flashed via fastboot. Extract boot.img from the CyanogenMod .zip package and flash it from the bootloader with: fastboot flash boot boot.img

This part is so important and if you don't do this with S-ON you will probably get a boot loop!!!!!
 
Forage81
Old
#7  
Junior Member - OP
Thanks Meter 4
Posts: 17
Join Date: May 2012
Confirmation: Trying to update CM using the build in CM updater will not flash the kernel when still being on S-ON. Couldn't resist trying it for myself

A manual flash and reflashing gapps was required to get a functioning phone again.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes