[Q] How to build a personal Kernel ? - Fascinate Q&A, Help & Troubleshooting

Hi,
I want to know if a DEV or more can share some information about kernel creation,
I want to try to build one but i don't know really how to do
I want to know how build from official source
I want to know how modify existing kernel
that in order for example to modify some file in order to use the kernel i want and add the files i need or modify it in order to use it 100% with my device
if any one can help it will be very appreciated
Update: The question is about CM7 Kernels like if i want make a I9000CM7 kernel work on my fascinate, i already know the file to modify but need to know what i need to have to do this
Any link, experience, ect

Here, this covers htc but also has good general info and galaxy s phones, might not be exactly what your looking for but full of good info. http://forum.xda-developers.com/showthread.php?t=633246
Sent from my SCH-I500 using XDA Premium App

Thank you
i'm looking it right now

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

how to make a rom of mine?

Hallo, I am a flash addict, yes I admit
the problem is that every rom I "test" have pros and cons,
so I'm wandering, how can I make one of mine?
not from sources (just yet) but lets say take an original aosp or samsung
and add different apks and patches
I tried to delete / replace apks like email, callendar etc in a running rom
and most of the times I get FC and non working apps.
Any help of what to read and how to start would be much appreciated!
and who knows, maybe in some time you test my releases
Find a ROM which lets you cook your own version.
And learn to edit things like the build.prop and system files.
postfatal said:
Find a ROM which lets you cook your own version.
And learn to edit things like the build.prop and system files.
Click to expand...
Click to collapse
Yes, any suggestion of where to start readind?
Tutorials?
pika456 said:
Hallo, I am a flash addict, yes I admit
the problem is that every rom I "test" have pros and cons,
so I'm wandering, how can I make one of mine?
not from sources (just yet) but lets say take an original aosp or samsung
and add different apks and patches
I tried to delete / replace apks like email, callendar etc in a running rom
and most of the times I get FC and non working apps.
Any help of what to read and how to start would be much appreciated!
and who knows, maybe in some time you test my releases
Click to expand...
Click to collapse
I like your interest in developing your own ROM.
As a beginner, you will have to start with android kitchen, it makes ROM development a breeze.
Visit here to learn more: forum.xda-developers.com/showthread.php?t=1227549
Most of the Rom developers started with, some are even still using kitchen to cook their own Roms.
You will also find links to useful tutorials on that page.
Look at this place too forum.xda-developers.com/showthread.php?t=1132724
Good luck
Swyped from my Samsung Galaxy SII
thank you! :laugh:
pika456 said:
thank you! :laugh:
Click to expand...
Click to collapse
You are welcome
Swyped from my Samsung Galaxy SII
Try compiling from source. Using the ROM kitchen is not really development. Problem is it does everything for you so you won't learn everything.
Sent from my Galaxy Nexus using Tapatalk 2
CdTDroiD said:
Try compiling from source. Using the ROM kitchen is not really development. Problem is it does everything for you so you won't learn everything.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I disagree with you.
I started with ROM kitchen, then started modding, then theming and now I can compile from source.
Everybody has got to start from somewhere.
Moreso, if you read his post well, he clearly said, "how can I make one of mine? not from sources (just yet) but lets say take an original aosp or Samsung"
One step at a time bro, that's the way to proper development in life.
Swyped from my Samsung Galaxy SII
Jokesy said:
I disagree with you.
I started with ROM kitchen, then started modding, then theming and now I can compile from source.
Everybody has got to start from somewhere.
Moreso, if you read his post well, he clearly said, "how can I make one of mine? not from sources (just yet) but lets say take an original aosp or Samsung"
One step at a time bro, that's the way to proper development in life.
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
More like cooking than developing but yea you are right everyone must start from somewhere, nothing wrong with modding stock ROMs to make them better. That's the whole aim I guess. It is very easy to download the source and its much easier to understand the code before its compiled for someone who has no experience with Java or anything.
Maybe extract the system and boot from a stock Samsung ROM and go from there as above.
Sent from my Galaxy Nexus using Tapatalk 2

Q - A guide to basic ROM build

Can anyone point me in the right direction? I wanna build a simple ROM based on another (SuperNexus most likely). Lets say I want to add cLock, Silent Hours and swap the kernel out for siyah.
Is it as simple as unzipping the ROM => adding the apks => Zipping back up again?
I guess the kernel might be a bit more complex
I see this is a getting started thing, so please treat me like the idiot I am
seanel said:
Can anyone point me in the right direction? I wanna build a simple ROM based on another (SuperNexus most likely). Lets say I want to add cLock, Silent Hours and swap the kernel out for siyah.
Is it as simple as unzipping the ROM => adding the apks => Zipping back up again?
I guess the kernel might be a bit more complex
I see this is a getting started thing, so please treat me like the idiot I am
Click to expand...
Click to collapse
Check Google or xda-university
Sent from my GT-I9300 using xda app-developers app
XDA Forum Android .
http://www.infamousdevelopers.com/i...php?f=25&sid=62404d1832625ecc65d50a54414e9bb8
jje

[Q] Create a new rom for Galaxy s3

Hello to all!
What I ask today is really a really great thing.
Given that there are so many ROMs around and it is difficult to choose the best, I would ask: what are the tools (all all) that we must have in order to create a new ROM or a maximum change it?
I await your help, advice ​
Just google or youtube how to create a rom and u will know it. Its easy to create a rom. But hard to debug and maintain it.
Sent from my GT-I9300 using xda app-developers app

[Q] If no roms support my phone, what can I do?

I have the ZTE Avail 2 (aka Z992) (and it sucks, considering it's a $70 phone, buying a new one isn't an option because I just built a computer). It hasn't had an update since 4.1.1 and it's very slow, (usually have only ~50mb of ram free when just sitting at launcher) even with all of the tricks to speed it up (greenfiy, cleaner, etc) and on top of that, it's loaded with features that ZTE put in that suck. So after searching and searching for a custom ROM with support for my phone, I can confirm there is zero. I looked at the rom dev tutorial - http://forum.xda-developers.com/showthread.php?t=1272270 and the kitchen program doesn't support my phone either. Does that mean I'm screwed? If there's a way to make a rom compatible other than the android kitchen or straight up learning to program, please tell me. I'm willing to learn anything that isn't hugely time consuming. Thanks for any replies.
FourZer0 said:
Does that mean I'm screwed? If there's a way to make a rom compatible other than the android kitchen or straight up learning to program, please tell me. I'm willing to learn anything that isn't hugely time consuming. Thanks for any replies.
Click to expand...
Click to collapse
No, you are not. You can try many other porting tutorials around the web. I found a list of phones similar to yours, might come in handy.
In fact, since your are trying to "port" ROMs, just think about the fact that "where did those ROMs come from?" Those ROMs were built from source code. The Android project is open source and if you are feeling adventurous, you can just grab the source code and compile it yourself for your device. It might be very easy or very tough, depending on your device. I would advise you to try to build Cyanogenmod 10.1 from source code. Check here and here.
And make sure to check this (must).
Cheers man! Trust me, trying to build Cyanogenmod from source will be a lot of fun!
Thank you! So I found CM for the xperia tipo, which was on the list of similar devices. I should use that one and change whatever needs to be changed, right?
Also, is it possible to do that for 4.4 stock? That may be a better idea if CM consumes too much ram
tuxboy said:
No, you are not. You can try many other porting tutorials around the web. I found a list of phones similar to yours, might come in handy.
In fact, since your are trying to "port" ROMs, just think about the fact that "where did those ROMs come from?" Those ROMs were built from source code. The Android project is open source and if you are feeling adventurous, you can just grab the source code and compile it yourself for your device. It might be very easy or very tough, depending on your device. I would advise you to try to build Cyanogenmod 10.1 from source code. Check here and here.
And make sure to check this (must).
Cheers man! Trust me, trying to build Cyanogenmod from source will be a lot of fun!
Click to expand...
Click to collapse
Okay, ignore my last replies, I've been reading a lot and kind of know what I'm doing now.
Only problem is, I can't find a stock rom of my phone! The closest thing I found was a custom ROM for a phone similar to mine, which is confirmed working to the one I actually have. So would that do okay? androidforums . com/prelude-all-things-root/795640-azazel-rom-z993-aio.html is the one. Thanks again for any help.
FourZer0 said:
Okay, ignore my last replies, I've been reading a lot and kind of know what I'm doing now.
Only problem is, I can't find a stock rom of my phone! The closest thing I found was a custom ROM for a phone similar to mine, which is confirmed working to the one I actually have. So would that do okay? androidforums . com/prelude-all-things-root/795640-azazel-rom-z993-aio.html is the one. Thanks again for any help.
Click to expand...
Click to collapse
You can easily take a backup of your current ROM. Try booting into recovery and making your own custom recovery (ClockWordMod).
tuxboy said:
You can easily take a backup of your current ROM. Try booting into recovery and making your own custom recovery (ClockWordMod).
Click to expand...
Click to collapse
Oh, I didn't know that would work, thanks again! I have my rom modded like crazy though, tons of xposed modules and build.prop edits, also I uninstalled a lot of stock apps - I'm sure I could get the build.prop somewhere, but what about the other things? Do they matter at all?
Edit: after the backup I now have a ton of tars, a recovery.img, and a boot.img. I extracted all of the tars, now do I just put all of the folders from the tars in a folder with the imgs and that's my base rom?
tuxboy said:
You can easily take a backup of your current ROM. Try booting into recovery and making your own custom recovery (ClockWordMod).
Click to expand...
Click to collapse
Okay, I've come pretty far and I've made several flashable zips and fixed many errors, but there's one thing I can't figure out - the updater script doesn't work, and I realized it's because I was using the one from the original port, and I need the one for my phone, which I can't get from the cwm recovery. I really need the whole META-INF folder. Where can I get that?
I tried for 1 week and i didnt find any official and stable rom for my samsung galaxy note 4 Sm 910h. I used resurrection remix unofficial and camara didnt worked there . Please any solution there help me

Categories

Resources