[Q] Question on ROM Kernels. - Verizon HTC One (M7)

I installed a GPE Rom with ART, and it's great. Then I installed the Lunar Kernel on top of that, and the performance isn't quite as good with that kernel.
My question is, what's the best way to get install the kernel from the GPE Rom? I didn't make a NAND backup, so restoring is out of the question.
I'm thinking that I could just reinstall the Rom without wiping and that'll restore the kernel. Is there a better way? perhaps extracting the kernel from the ROM zip file?
Thanks!

ZombiJambi said:
I installed a GPE Rom with ART, and it's great. Then I installed the Lunar Kernel on top of that, and the performance isn't quite as good with that kernel.
My question is, what's the best way to get install the kernel from the GPE Rom? I didn't make a NAND backup, so restoring is out of the question.
I'm thinking that I could just reinstall the Rom without wiping and that'll restore the kernel. Is there a better way? perhaps extracting the kernel from the ROM zip file?
Thanks!
Click to expand...
Click to collapse
AFAIK lunar kernel hasnt been updated for GPE 4.4.4.
NVM the dev said 4.4.3 kernel will work on 4.4.4
if you want to get back to the kernel that was provided you can flash the rom over what you have but i think the dev's script wipes /system so you may loose and settings you have saved right now. maybe ask the dev to package the kernel by its self so you can flash without having to dirty flash the full rom.

synisterwolf said:
AFAIK lunar kernel hasnt been updated for GPE 4.4.4.
if you want to get back to the kernel that was provided you can flash the rom over what you have but i think the dev's script wipes /system so you may loose and settings you have saved right now. maybe ask the dev to package the kernel by its self so you can flash without having to dirty flash the full rom.
Click to expand...
Click to collapse
Awesome man, thanks. There's no easy way to extract the kernel from the rom?

ZombiJambi said:
I installed a GPE Rom with ART, and it's great. Then I installed the Lunar Kernel on top of that, and the performance isn't quite as good with that kernel.
My question is, what's the best way to get install the kernel from the GPE Rom? I didn't make a NAND backup, so restoring is out of the question.
I'm thinking that I could just reinstall the Rom without wiping and that'll restore the kernel. Is there a better way? perhaps extracting the kernel from the ROM zip file?
Thanks!
Click to expand...
Click to collapse
which lunar kernel did you install?

ZombiJambi said:
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
Click to expand...
Click to collapse
im sure there is a way, but i dont know for sure. A kernel dev will have to chime in and let you how.

You have to split the boot.img. One way would be to find the Perl script for doing this and Google the commands (I don't remember them off the top of my head) or use the android kitchen and load the boot in there and use it for splitting the boot and inserting whatever zimage you wanted. Be advised not all ramdisks are the same and not all ramdisks will work with every kernel.

ZombiJambi said:
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
Click to expand...
Click to collapse
Just take the boot.img from the ROM zip, place it in your adb folder. Boot into fastboot. Type: fastboot flash boot boot.img
Once you reboot, take the modules from the ROM zip located in system/lib/modules and place them into that same directory on your phone. Replace all modules with the same name. Make sure they have the same permission as before. Reboot.
That is it.
Or if you are feeling spry, take the boot.img and the modules and place them into a flashable zip. To do so, you will need the updater binary and updater script located in the ROM zip. These are located in the META-INF/com/google/android folder.
Change the updater-script to say this:
Code:
ui_print("Mount /System Folder...");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Extracting System Files...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
ui_print("Extracting Kernel files...");
package_extract_file("boot.img", "/dev/block/mmcblk0p33");
ui_print("* Kernel Installation Completed! *");
show_progress(0.100000, 0);
Place the modules into a system/lib/modules folder.
Zip those two folders up and flash in recovery.

Related

[Q] Odin EB13 SPH-D700.zImage.stock.tar

I am trying to flash my Kernel back to factory, i do not want to wipe the whole thing just remove a Kernel Mod and restore the factory kernel. Where can I find the SPH-D700.zImage.stock.tar file that I keep reading about that I need to achieve this? I can not seem to find this file any place.
Creine59 said:
I am trying to flash my Kernel back to factory, i do not want to wipe the whole thing just remove a Kernel Mod and restore the factory kernel. Where can I find the SPH-D700.zImage.stock.tar file that I keep reading about that I need to achieve this? I can not seem to find this file any place.
Click to expand...
Click to collapse
You could go to the wiki http://forum.xda-developers.com/wiki/index.php?title=Samsung_Galaxy_S/SPH-D700
Download EB13 Stock
Pullout the zImage file.
Download a flashable Kernel zip
and put the zImage from the stock tar, into the zip. That would give you a zip you could use to put the stock kernel back on.
You can use 7-zip to open the tar file and pull out the zImage file and subsequently use 7 zip to open the zip for the kernel you download (like twilight, vision or genocide)
hope that helps. as always backup first.
Creine59 said:
I am trying to flash my Kernel back to factory, i do not want to wipe the whole thing just remove a Kernel Mod and restore the factory kernel. Where can I find the SPH-D700.zImage.stock.tar file that I keep reading about that I need to achieve this? I can not seem to find this file any place.
Click to expand...
Click to collapse
Really man? You couldn't read the sticky at the top that says what to do with Q's?
Moved to Q&A.

SOLVED

SOLVED
i was being dumb
Plancy said:
I've tried but couldn't find a step by step guide on how to flash -viperboy- undervolt scripts, can anyone explain to me how to do this. I have CM7 7.0.2.1 and g0dm0de v6 kernel.
Click to expand...
Click to collapse
You just flash it like any other .zip file, if you don't know how to do that, check out this thread on the CM forum.
http://forum.cyanogenmod.com/topic/22440-step-by-step-guide-to-flashing-a-rom-kernel-gapps/
if you reflash the kernel, you will need to flash the script after the kernel
Muellersirch said:
You just flash it like any other .zip file, if you don't know how to do that, check out this thread on the CM forum.
http://forum.cyanogenmod.com/topic/22440-step-by-step-guide-to-flashing-a-rom-kernel-gapps/
if you reflash the kernel, you will need to flash the script after the kernel
Click to expand...
Click to collapse
I boot into clockwork and installed zip from sdcard, easy peasy. I'll keep the kernel thing in mind, thanks!

[Q] S: Stock Kernel Desire Gingerbread

Hi.
Since I (idiot that I am^^) installed another kernel to my "supernova" Rom on my Desire, I can't overclock it anymore with SetCPU.
So I'd like to reinstall the stock kernel but I can't find a zip anywhere.. Anyone can help?
Try the kernels from the downloads section of the homepage of the rom...
Sorry, seems that I cannot yet post full urls...
supernova.
droidzone.in
/?page_id=24
the problem is, that there are only "non Overclocked" Kernels on this page. No matter which of them I install, i can't choose an overclocked setting in setcpu (i could do so after installing the rom)
EDIT: THats the one that is in the rom itself: Kernel: O2.6.35.10-g3f43272 based [v06-snq-is-still-#01]- snq kernel based on [email protected] #1
I really dont know what of this line is the "type" of kernel i'm looking for ^^
Maybe you could flash the ROM again to get the original kernel, shouldn't delete anything on the phone.
Like this i would screw up the "clean" install I have^^. I think I'm going to install ALL new after a wipe .)
Just download the Rom zip file again. It contains a boot.img which you can just flash using fastboot if you are s-off or using recovery if you know how to make the zip file.
You could also just flash the Rom, if you haven't made changes to the system, it should not change anything else than the kernel
I wiped everything and flashed the rom again.
But in case i need to do it again^^:
Do I need to make a "special" Zip File? Does it need to contain anything but the boot.img?
I know how to zip files / folders with windows, just want to know if there is anything special?

Switch Kernels in Roms

In flashing roms, I notice that devs are including kernels in the .zip. It appears each dev has their favorites. Without debating which kernel is the "best", my question is can I switch a Zimage (which I assume is the kernel) with another of my liking? Or, if I'm running a particular kernel of my liking, can I flash the Rom without the included Zimage?
.....
Vegasden said:
In flashing roms, I notice that devs are including kernels in the .zip. It appears each dev has their favorites. Without debating which kernel is the "best", my question is can I switch a Zimage (which I assume is the kernel) with another of my liking? Or, if I'm running a particular kernel of my liking, can I flash the Rom without the included Zimage?
.....
Click to expand...
Click to collapse
You should be able to flash a kernel, either through CWM or ODIN without problem.
sk63 said:
You should be able to flash a kernel, either through CWM or ODIN without problem.
Click to expand...
Click to collapse
I realize that. My question was in reference to flashing a rom (which all have a kernel included). Can you switch the Zimage inside the rom .zip prior to flashing...or can I just delete the Zimage inside the rom and flash it without one? I'm trying to avoid the two steps of flashing a rom, then flashing a kernel I prefer.
Ah, I've always just flashed the ROM, then flashed the kernel then rebooted out of CWM. Be nice if there was a utility where you give it kernel and rom and tell it to go, might be a nice feature for ROM Manager to add.

[Q] Kernel related question

I have never flashed any kernels, just custom roms. From what I have read it goes down the same way, just flash the zip from SD in recovery and wipe cache. Correct?
Also, if I want to go back to stock kernel can I flash back to a JOP40C ( this one http://forum.xda-developers.com/showthread.php?t=1992483 ) even though my build is JOP40D ?
Robert00001 said:
I have never flashed any kernels, just custom roms. From what I have read it goes down the same way, just flash the zip from SD in recovery and wipe cache. Correct?
Also, if I want to go back to stock kernel can I flash back to a JOP40C ( this one http://forum.xda-developers.com/showthread.php?t=1992483 ) even though my build is JOP40D ?
Click to expand...
Click to collapse
just flash it in your recovery(if its a flashable zip). dont wipe a single thing, dalvik and cache have nothing to do with kernels. worst case scenario, it doesnt boot. then just reflash your rom in your recovery to fix it.
simms22 said:
just flash it in your recovery(if its a flashable zip). dont wipe a single thing, dalvik and cache have nothing to do with kernels. worst case scenario, it doesnt boot. then just reflash your rom in your recovery to fix it.
Click to expand...
Click to collapse
Ok thanks. Yes its a flashable zip, im going for the franco kernel.
Robert00001 said:
Ok thanks. Yes its a flashable zip, im going for the franco kernel.
Click to expand...
Click to collapse
franco is a good kernel. but most his kernels are in a img form, need fastboot for that. if its a zip, then flash it in your recovery, dont wipe a thing.
simms22 said:
franco is a good kernel. but most his kernels are in a img form, need fastboot for that. if its a zip, then flash it in your recovery, dont wipe a thing.
Click to expand...
Click to collapse
Yes I am sure this is a flashable zip. I found the img files and the zip files on the franco thread.
What about going back to stock? I just want to know if something goes wrong. Does flashing my rom get me the stock kernel back?
Robert00001 said:
Yes I am sure this is a flashable zip. I found the img files and the zip files on the franco thread.
What about going back to stock? I just want to know if something goes wrong. Does flashing my rom get me the stock kernel back?
Click to expand...
Click to collapse
It gets you whatever kernel was originally in the ROM.
063_XOBX said:
It gets you whatever kernel was originally in the ROM.
Click to expand...
Click to collapse
Okay thanks for the replies.
Robert00001 said:
Ok thanks. Yes its a flashable zip, im going for the franco kernel.
Click to expand...
Click to collapse
Even the .IMG files are easy enough to handle, OK so perhaps it might cost you a little money but within the Franco app (I don't know about others as not tried them) but you can simply just choose to restore a .IMG kernel file be it stock (which I have a copy of if you wanted it?) So you can swap and change as you wanted and the plus side of flashing this way is that you avoid the long reboot time dues to catch building again due to ram disk changes. I really think this is the best way of flashing kernels and certainly the easiest way if you wanted to carry on back to the OTA update route from Google.
For instance, I'm running stock takju rom 4.2.1 rom with Franco kernel and I have the stock boot loader and baseband and recovery and to install an OTA I just need to delete just one file and restore back to stock kernel that OTA update will install without troubles
Sent from my Galaxy Nexus

Categories

Resources