• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root How to revert to stock kernel ?

thornev

Android Enthusiast
Nov 20, 2011
309
98
Hudson Valley, NY
If I play with some overclocking kernels and I want to go back to stock (my ROM is stock ICS Global), is it a simple matter of extracting the boot_signed.img file from the stock ROM and using Fastboot as in:

fastboot flash boot boot_signed.img

? I am S-Off. I probably should also wipe boot, cache and Dalvik-cache before flashing.
 
If I play with some overclocking kernels and I want to go back to stock (my ROM is stock ICS Global), is it a simple matter of extracting the boot_signed.img file from the stock ROM and using Fastboot as in:

fastboot flash boot boot_signed.img

? I am S-Off. I probably should also wipe boot, cache and Dalvik-cache before flashing.

yup. that should work just fine :)
 
  • Like
Reactions: thornev
Upvote 0
Yup, that worked (replacing boot.img in zip file). One just has to be smarter than me the 1st time I tried. I had simply copied the stock .img file into the zip file using Windows explorer. No no no ! One must UNZIP the 2 zip files, THEN copy the stock .img file, and then reZIP the file containing the stock .img file. =:)

(for some reason, WiFi won't turn on. Gets stuck "Turning on WiFi...")
 
Upvote 0
I'm nervous about installing my homemade stock kernel because these files in the overclocking kernel are not in the stock kernel. Does anyone recognize them and can anyone comment on if it's OK to omit them in a stock kernel I install? I'm wondering if not being able to turn on WiFi has to do with having these files in what is supposed to be a stock kernel.

/system/lib/modules:

kineto_gan.ko
librasdioif.ko
msm-buspm-dev.ko
spidev.ko
 
Upvote 0
Ahhh you have a kernel/ module missmatch. You may need to find stock modules to reflash the the stock kernel.

Do you have a backup you can restore?

You can prolly flash one of your custom kernels to make WiFi work. Or you can "dirty flash" a stock rom overtop of your current setup.
 
Upvote 0
Crap, I think I bricked my phone. I flashed a homemade kernel and now VOL DN + POWER on gets stuck on the white htc screen. Same thing happens when I "adb reboot bootloader." Anyone got any ideas? Maybe an "adb push boot"?

Thanks goodness ! "adb reboot recovery" worked !

What?!?! I wiped cache, dalvik-cache and boot, and installed a working kernel and still I'm stuck on the htc white screen. Time for a Nand restore.

OK, I can get into recovery, fastboot and hboot. Is there any way I can rename a zip file on my SD card so I can make it installable (as a PH98IMG.ZIP file)? Yes there is ! AmonRa has an option to mount the SD card as a hard drive which I did and renamed my ICS ROM as PH98IMG.zip. Then I got into HBOOT which processed the PH98IMG file. Phew.
 
Upvote 0
That's weird, you're right. I got into HBOOT and whereas the radio was 2.22.10.0801r before, now it's 2.22.10.0001r. I'm perplexed as to from where that came.

yeah that does not make sense... a zip in recovery should not be able to change any part of the baseband. sorry your stock kernel install snowballed into having to run an ruu :(

did you try reflashing a custom kernel to make the wifi work?

we maybe could pull wifi modules out of a stock rom to create the stock kernel zip.
 
  • Like
Reactions: thornev
Upvote 0
yeah that does not make sense... a zip in recovery should not be able to change any part of the baseband. sorry your stock kernel install snowballed into having to run an ruu :(

did you try reflashing a custom kernel to make the wifi work?

we maybe could pull wifi modules out of a stock rom to create the stock kernel zip.
Yes, I tried reflashing the custom kernel a few times. Didn't work. After I flashed my homemade kernel, things just went awry, couldn't boot the phone to a working state.

Thanks for the offer to pull wifi modules. I'm running now with the stock configuration, no custom kernel. And I think I found a stock ICS Global ROM with the kernel. Forget from where I got it and can't find it online anywhere anymore, but it's named 4.03.605.2_ROM_signed.zip. Contains boot.img and then all the /system files. Wish I had thought to try flashing it before I wiped my phone. Live and learn !

Thanks again for your help, Scotty.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones