[Q] How do I switch kernels in a ROM? - Android

Hey! I just today cooked a LG Optimus 2X ROM based on the Doc's LG Romkitchen v1.6.
Now, this ROM has the MoDaCo r4/5 kernel in it.
But I want to use a different kernel: the EternityProject v1.3 kernel.
How do I switch those two kernels in Windows?
I know I have to switch kernel and ramdisk in the boot.img files, but is there a possibility to do this in Windows? I know it can be done in Linux but I don't have Linux..
Please help me out, it's my first step into the wide world of ROM-cooking!
My ROM thread, containing my ROM.zip and the kernel.zip file is here.

Never mind, I found a program that makes it possible to run .pl files in Windows! Problem solved!

Hi, what‘s program name ? Thanks
Sent from my LG-P990 using XDA App

ActivePerl!
Google ActiveState, go to it's site >> products >> ActivePerl >> free download!

Thanks
Sent from my LG-P990 using XDA App

Related

[Q] How to port a rom?

Could anyone teach me how to port a rom, or could someone do it for me, I am trying to port Tweaky Rom from Galaxy S I9000 2.3.3?
Thanks
The question is like asking "how do you write music" A bit complex....
You can use some of the apps and tool out there to help you extract the rom and or other information you want, kitchen and rom oven are a couple that come to mind.
You need some understanding of Linux and ADB
Here is a basic explanation of sorts but this not complete:
Take a base ROM from another phone. First thing, delete the boot.img. That boot.img contains the kernel, which usually will not be compatible for your phone.
Next,
Add the boot.img from your phone to this rom (use commom sense, if you are porting a vanilla rom, use an AOSP kernel, if porting sense, use HTC kernels, if you are porting other UI’s like blur, use an AOSP kernel.)
Then>
Go into the /system folder. In here, we want to first delete the usr folder. The usr folder has hard button and keypad drivers. Replace the usr folder with the one from your phone.
Then>
Go into the etc folder. delete the vold.fstab andapns-conf.xml and replace with the one from your phone. Next, we want to go into the lib folder. Here, we will want to replace the lights.(device name here) (and the sensors.name if it is an AOSP port) and replace with files from your phone.
-There much more to it but this is a basic overview-
Every phone is slightly different I have never ported on a Vibrant but this was my memory of how I did it on my HTC.......... hope that clarifies for you......
If your porting w i9k rom, replace the kernel and modem with the ones from our phone. Since its gingerbread, you will need a special modified gb kernel. Simply honey 2.3.3 uses chainfires modded kernel. See if you could use it. Or register at the edt site. We have custom gb kernels on our site. Then you will have to modify the two files in system/usr/keylayout; malfes_touchkey.kl to get the home button to work, and aries-keypad.kl to fix the volume buttons. Next you need to decompile the android-policy.jar and edit the phone window manager to make the haptic feed back work on the home key. Hope this helps.
Sent from my GT-I9000 using XDA Premium App
Dan_Brutal said:
If your porting w i9k rom, replace the kernel and modem with the ones from our phone. Since its gingerbread, you will need a special modified gb kernel. Simply honey 2.3.3 uses chainfires modded kernel. See if you could use it. Or register at the edt site. We have custom gb kernels on our site. Then you will have to modify the two files in system/usr/keylayout; malfes_touchkey.kl to get the home button to work, and aries-keypad.kl to fix the volume buttons. Next you need to decompile the android-policy.jar and edit the phone window manager to make the haptic feed back work on the home key. Hope this helps.
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
There you have it from the porting legend
Thanks, both your responses were really helpful, I really appreciate it.
One more question, would it be possible to use the custom gb kernels with jvh which is what I plan on porting?
Sent from my GT-I9000 using XDA Premium App
That's what I'm using. All the vibrant gb kernels, with the exception of the cm7/miui kernels, will work with 2.3.3.
Sent from my GT-I9000 using XDA Premium App

[ROM][only developing]Šedemka ROM – GB or ICS?

Hello, XDA members!
I'm going to develop a custom ROM/Linux distro based on Android for my and yours G5.
I'm still not decided – do I need stable GB, working 100% or fresh ICS, which contains lots of bugs.
The ROM/distro will be instalable via recovery (only working custom recovery is CWM).
You will be able to choose baseband of your region (try the latest).
And I hope, it will have Apps2SD included.
Can u post screenshot?
I decided to reboot this project – it won't have TouchWiz, nor name „MAD“.
I want to create more Android-based Linux distro than the simple custom Android ROM.
i defoo would like to get involed in this project, how could i help?
twaha said:
i defoo would like to get involed in this project, how could i help?
Click to expand...
Click to collapse
At this time not. But later I will need it.
Sent from my GT-I5500 using Tapatalk

Custom kernel included in rom?

I want to include a custom kernel in my next rom update, not to sure the best way to go about it? My roms currently just have stock kernel, I've found a great custom kernel I would like to include, I did Google didn't find too much help.
Sent from my HTC EVO 3D X515a using xda premium
markdexter said:
I want to include a custom kernel in my next rom update, not to sure the best way to go about it? My roms currently just have stock kernel, I've found a great custom kernel I would like to include, I did Google didn't find too much help.
Sent from my HTC EVO 3D X515a using xda premium
Click to expand...
Click to collapse
You can use dsixda's amazing android kitchen to bake it in. What you need to do is take your ROM and set up the kitchen with it. Once that is done you go into the advanced option of the kitchen and select unpack boot. Then in the boot-extracted folder you replace the zImage with the zImage of your new kernel you want. Once copied you repack the boot.img and then copy the modules from the new kernel into the ROM.
私のEVO 3Dから送信される。
Great answer, Thanks buddy!!
markdexter said:
I want to include a custom kernel in my next rom update, not to sure the best way to go about it? My roms currently just have stock kernel, I've found a great custom kernel I would like to include, I did Google didn't find too much help.
Sent from my HTC EVO 3D X515a using xda premium
Click to expand...
Click to collapse
If you're interested in learning how to integrate the kernel yourself instead of using a kitchen, the process is fairly simple.
There are two main areas you'll need to add into the ROM
1) The actual kernel, generally a boot.img file.
2) The associated kernel modules, usually stored in /system/lib/modules.
The best way to add in these two sets of files.
1) The kernel boot.img can be added into the root of the update.zip file. The associated code needs to be added to the updater-script file which will essentially write the boot.img into the boot partition memory. Great example can be found in my ROM . The updater-script code should be the same for CDMA and GSM, as the function is fairly generic.
2) Associated kernel modules can be easily copied into the system/lib/modules directory of the update.zip file and will be copied over along with the rest of the ROM by the current package extract command in the updater-script.
Hope that helps add some technical detail and best of luck!

Question ROM

Gentlemen,
A quick question about ROM.
Can I create a ROM using ICS (from from Google source) + Files for my phone (from opensource.samsung.com]) ?
I just merge these files, compile, and that create a new rom (which is basicaly a stock rom).
Is that possible to do ? Will it work ?
Thanks
dalf said:
Gentlemen,
A quick question about ROM.
Can I create a ROM using ICS (from from Google source) + Files for my phone (from opensource.samsung.com]) ?
I just merge these files, compile, and that create a new rom (which is basicaly a stock rom).
Is that possible to do ? Will it work ?
Thanks
Click to expand...
Click to collapse
Sure you can compile your own rom. There are loads of guides around(Google is your friend). Just make sure you know what you're doing. If you want to inject your own apps into the rom, download a rom you like and use a compiler to put the apks you want in.
Sent from my GT-I9300 using xda app-developers app

[Q]Compile AOSP Gingerbread to ''specific" Device.

Hello !
In Tutorial about compile AOSP GB i see one think. When I write in terminal lunch i have list devices which i can compile. So I am in trouble becouse i don't know how can i add My device. I Download Source GB to my device but I have external folder, bionic and probably hardware (and kernel) So My Question is - How can I Add My phone to compile list, to compile flashable zip work?:fingers-crossed:
cheqolada said:
Hello !
In Tutorial about compile AOSP GB i see one think. When I write in terminal lunch i have list devices which i can compile. So I am in trouble becouse i don't know how can i add My device. I Download Source GB to my device but I have external folder, bionic and probably hardware (and kernel) So My Question is - How can I Add My phone to compile list, to compile flashable zip work?:fingers-crossed:
Click to expand...
Click to collapse
What is your device?
Sent from my GT-I9100 using xda app-developers app
xSkArx said:
What is your device?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Alcatel Ot - 908 / T-Mobile Move.

Categories

Resources