Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,556 Members 42,747 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Question on ROM Kernels.

Tip us?
 
ZombiJambi
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Oct 2012
Question [Q] Question on ROM Kernels.

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!
 
synisterwolf
Old
(Last edited by synisterwolf; 9th July 2014 at 07:26 PM.)
#2  
synisterwolf's Avatar
Recognized Contributor
Thanks Meter 2,196
Posts: 6,422
Join Date: Sep 2010
Quote:
Originally Posted by ZombiJambi View Post
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!
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.
Quote:
Originally Posted by The Internet
You learn something new everyday. Unless you have a brain injury, then it's all pretty much yelling and coloring.
Congratulations on being the kind of person who corrects the grammar of others, unsolicited. You're the Microsoft Word Paperclip.
 
ZombiJambi
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Oct 2012
Quote:
Originally Posted by synisterwolf View Post
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.
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
 
buckmarble
Old
#4  
Senior Member
Thanks Meter 965
Posts: 1,210
Join Date: Sep 2010
Quote:
Originally Posted by ZombiJambi View Post
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!
which lunar kernel did you install?
Current device:
Verizon HTC One M7vzw, m7wlv
Verizon HTC One M8 VZW

Developer of Elite Lunar kernels

M8 Kernel Thread: http://bit.ly/1sXB6O7
M8 TWRP Recovery Thread: http://bit.ly/1pige0H
M7 Kernel Thread: http://bit.ly/1rLcagM
 
synisterwolf
Old
#5  
synisterwolf's Avatar
Recognized Contributor
Thanks Meter 2,196
Posts: 6,422
Join Date: Sep 2010
Quote:
Originally Posted by ZombiJambi View Post
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
im sure there is a way, but i dont know for sure. A kernel dev will have to chime in and let you how.
Quote:
Originally Posted by The Internet
You learn something new everyday. Unless you have a brain injury, then it's all pretty much yelling and coloring.
Congratulations on being the kind of person who corrects the grammar of others, unsolicited. You're the Microsoft Word Paperclip.
 
disconnecktie
Old
#6  
disconnecktie's Avatar
Senior Member
Thanks Meter 1,168
Posts: 4,994
Join Date: Oct 2011
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.
 
brymaster5000
Old
#7  
brymaster5000's Avatar
Recognized Contributor
Thanks Meter 1,466
Posts: 1,816
Join Date: Jan 2012
Location: New Hampshire

 
DONATE TO ME
Quote:
Originally Posted by ZombiJambi View Post
Awesome man, thanks. There's no easy way to extract the kernel from the rom?
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes