How to integrate OC kernel into custom ROM?


  1. DemizE

    DemizE Well-Known Member

    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.

    Advertisement
  2. sammyz

    sammyz LG Whiz Kid Guide


    /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.
    DemizE likes this.
  3. Primed

    Primed Well-Known Member

    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
  4. sammyz

    sammyz LG Whiz Kid Guide


    U forgot where to take the boot.img from primed :D
    DemizE likes this.
  5. Primed

    Primed Well-Known Member

    No, I told him to take the boot.img from another phone.. it's easier and involves less steps. lol Unless you're using like reppards OC flashable zip, because the boot.img isn't in there. :D
  6. DemizE

    DemizE Well-Known Member

    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?
  7. sammyz

    sammyz LG Whiz Kid Guide


    I would think that would work, try it, the worst thing that will hapeen is that it wont work :p
  8. sammyz

    sammyz LG Whiz Kid Guide


    Another rom......not another phone, u take it from another phone if u want to brick or go into fastboot, lol
  9. DemizE

    DemizE Well-Known Member

    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?
  10. sammyz

    sammyz LG Whiz Kid Guide


    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.
  11. DemizE

    DemizE Well-Known Member

    If that were the case I could just flash the kernel and flash my rom all together and then simply make a backup nandroid and distribute that? Not sure but it might work. I love hearing more ideas :cool:
  12. DemizE

    DemizE Well-Known Member

    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
  13. sammyz

    sammyz LG Whiz Kid Guide


    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
  14. DemizE

    DemizE Well-Known Member

    Well three heads are better than two right? :cool: PM sent to you.
  15. Primed

    Primed Well-Known Member

    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. :)
  16. sammyz

    sammyz LG Whiz Kid Guide


    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....
  17. DemizE

    DemizE Well-Known Member

    Do you guys know where the standard "MetroPCS" wallpaper is located so I can scrap that garbage and put one in place?
  18. sammyz

    sammyz LG Whiz Kid Guide


    Nope, haven't messed with building roms from source, just porting them and making kernels

    Also using a custom launcher besides the stock one would be nice
  19. DemizE

    DemizE Well-Known Member

    Could you port my ROM to the Samsung Admire?
  20. sammyz

    sammyz LG Whiz Kid Guide

    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
  21. DemizE

    DemizE Well-Known Member

    I just got my ROM up and runnig. Rooted, De-Bloated, OC Kernel and a very nice GUI :) Going smoothly so far.

Share This Page