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

Root How to integrate OC kernel into custom ROM?

DemizE

Well-Known Member
Apr 10, 2011
113
14
Detroit
So I am constructing my own first ROM this week and I got everything going good but I would like to flash the OC kernel or should I say add it INTO my ROM so when flashed its already there. Anyone know how I would go amongst doing this? Also how do I add my OWN apps into the ROM? I see a folder filled with the pre-installed .apk's but not sure if thats where I would place my apps. Thanks guys.
 
So I am constructing my own first ROM this week and I got everything going good but I would like to flash the OC kernel or should I say add it INTO my ROM so when flashed its already there. Anyone know how I would go amongst doing this? Also how do I add my OWN apps into the ROM? I see a folder filled with the pre-installed .apk's but not sure if thats where I would place my apps. Thanks guys.


/system/app is where u add apps and to add an oc kernel, make sure the kernel u want to use is installed on the phone, perform a nanbackup, browse to where the back up was created with your computer, take the boot.img and put that in the root directory of the zipped rom.
 
  • Like
Reactions: DemizE
Upvote 0
So I am constructing my own first ROM this week and I got everything going good but I would like to flash the OC kernel or should I say add it INTO my ROM so when flashed its already there. Anyone know how I would go amongst doing this? Also how do I add my OWN apps into the ROM? I see a folder filled with the pre-installed .apk's but not sure if thats where I would place my apps. Thanks guys.

Just open the ROM .zip with a zip manager like winRAR or 7zip and take the file named boot.img and replace it with the boot.img from another ROM/OC flashable zip and flash. Also, where you saw the pre-installed apps (/system/app) is where you would put your apps. Just put them in, and when you flash your apps will show up. :D
 
Upvote 0
Just open the ROM .zip with a zip manager like winRAR or 7zip and take the file named boot.img and replace it with the boot.img from another ROM/OC flashable zip and flash. Also, where you saw the pre-installed apps (/system/app) is where you would put your apps. Just put them in, and when you flash your apps will show up. :D


U forgot where to take the boot.img from primed :D
 
  • Like
Reactions: DemizE
Upvote 0
Thanks alot guys for clearing that up! I am new into the ROM creating scene but am learning at a rapid pace. Just in the past 48 hours I have managed to fully create a ROM but like I said I wanted to add the 2.2.1 OC kernel to my 2.2.2 ROM to finish it off. I will launch the new ROM tomorrow when I get some spare time. Tonight is for fixing little things and working out the kinks. So far it flies! Also another question while I got you here :p Say I wanted to make a rom identical with my phone setup (my rom on it with everything I have setup such as setCPU and other tweaks for battery usage already configured), would I have to make a nandroid backup and flash that on any phone in order to have EXACTLY the same setup as my phone? Like if I set my SetCPU to 750 MHz would it retain those settings as well?
 
Upvote 0
Thanks alot guys for clearing that up! I am new into the ROM creating scene but am learning at a rapid pace. Just in the past 48 hours I have managed to fully create a ROM but like I said I wanted to add the 2.2.1 OC kernel to my 2.2.2 ROM to finish it off. I will launch the new ROM tomorrow when I get some spare time. Tonight is for fixing little things and working out the kinks. So far it flies! Also another question while I got you here :p Say I wanted to make a rom identical with my phone setup (my rom on it with everything I have setup such as setCPU and other tweaks for battery usage already configured), would I have to make a nandroid backup and flash that on any phone in order to have EXACTLY the same setup as my phone? Like if I set my SetCPU to 750 MHz would it retain those settings as well?


I would think that would work, try it, the worst thing that will hapeen is that it wont work :p
 
Upvote 0
Very true lol. I'll be around asking questions for the coming days. Also would you or anyone else know the location of the metropcs splash image?


Its in the kernel, (boot.img) not easy to take out unless uk how to edit a kernel, I'm still trying to figure out any possible way to add oc to the 2.2.2 kernel..... I can't get it to build correctly after getting cpufrequency scaling to show up in the menuconfig -_- if anyone knows exactly which config lines to add to the pulled config from the stock 2.2.2 that would be great .......and I added the /drivers/cpufreq folder from the rOCKKernel source already.
 
Upvote 0
Its in the kernel, (boot.img) not easy to take out unless uk how to edit a kernel, I'm still trying to figure out any possible way to add oc to the 2.2.2 kernel..... I can't get it to build correctly after getting cpufrequency scaling to show up in the menuconfig -_- if anyone knows exactly which config lines to add to the pulled config from the stock 2.2.2 that would be great .......and I added the /drivers/cpufreq folder from the rOCKKernel source already.

I'm learning quickly. Where would that config from stock be located? Maybe I can find it and help you out. I would love to have a 2.2.2 OC then the 2.2.1 on a 2.2.2 system. Just makes more sense having the 2.2.2 to go along with it. lol
 
Upvote 0
I'm learning quickly. Where would that config from stock be located? Maybe I can find it and help you out. I would love to have a 2.2.2 OC then the 2.2.1 on a 2.2.2 system. Just makes more sense having the 2.2.2 to go along with it. lol


U have to pull it from the phone with adb, pm primed, he knows more on how to set up to build kernel, me and him have been trying what feels like forever trying to figure this out
 
Upvote 0
Well, you might be able to extract the images from a nandroid backup and put it into a flashable zip and flash that way.. you'd have to figure out how to extract it first, though.. And as far as the stock config goes, we already have everything we need, we just need some help figuring out how to get the cpu frequency settings we set to stick. :p But if you ever need any help, let us know, we'd be glad to help. :)
 
Upvote 0
Well three heads are better than two right? :cool: PM sent to you.


True, you should get rOCKKernel source and then get 2.2.2 source so that ur ready to compile and find differences in the config files.....u need to pull each config file, one while rockkernel is installed and one while 2.2.2 kernel is installed

U can't use all of the differences either, it gets confusing after a while....
 
Upvote 0
No, I just port optimus v/s/c roms to the M becuz the phones are similar, samsung's filesystem in the flashable zip is probably completely different, also I only port gingerbread roms becuz gingerbread, ICS, and Froyo all have different file systems for the optimus m/v/s/c. same goes for other phones
 
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