Required knowledge for building and mod Samsung GT-i9000 kernel - Galaxy S I9000 Q&A, Help & Troubleshooting

Hi, I would like to know what I have to learn in order to mod the stock kernel of GT-i9000, which last version (linux version 2.6.35) was written for the use in Gingerbread 2.3.6. My intention is to make it work in ICS or Jelly Bean Custom Roms, and then start tweaking and experimenting, but I need the basics first
I'm talking about knowledge specific to the kernel since I know how to make C programs and the structure of the android stack (Watched this someone? It's great!). Where I have to go? Websites specialized in the matter, ebooks to read, docs... By the moment I have downloaded and installed the CodeSourcery toolkit Samsung tells to install in the README file.
I expect to not completely brick my only sgs phone, but anyway I would like to know how to do it
EDIT: I edited a bit my question since I though it wasn't clear enough what I already know.

No one can help me? I don't expect to have the whole story, just to know what I have to learn :/ May be I'm not in the right subforum for this question. Full noob here at XDA xD

16bitboy said:
No one can help me? I don't expect to have the whole story, just to know what I have to learn :/ May be I'm not in the right subforum for this question. Full noob here at XDA xD
Click to expand...
Click to collapse
http://www.semaphore.gr/
I do not know, but the kernel is here and probably the best I know?

misacek said:
http://www.semaphore.gr/
I do not know, but the kernel is here and probably the best I know?
Click to expand...
Click to collapse
Yup but is not because I though there was no kernel. I know there are a lot, Devil's, Semaphore... I just want to do it by myself

No,Good work.:banghead:
Sent from my GT-I9000 using xda app-developers app

If you want to create a kernel for ics/jb, you should start with the default kernel of CM9/CM10, as most kernels for ics/jb are based on it. Then you could compare it to Semaphore, devil, ..., to see what they do differently.

Related

Custom Kernel

Custom Kernel built using the stock .config and the Korean source. Appears to work great.
Fun!
P
[bimg]http://www.modaco.com/content/manual_uploads/p990mck.png[/bimg]
paulobrien said:
Custom Kernel built using the stock .config and the Korean source. Appears to work great.
Fun!
P
[bimg]http://www.modaco.com/content/manual_uploads/p990mck.png[/bimg]
Click to expand...
Click to collapse
Wicked! I take it this opens the door for custom kernels and overclocks etc?
n00b question i know
a great step towards creating more custom kernels and maybe overclockable kernels?
O.M.G.! me Like it very much... we are now 1 step closer to tapping the full potential of this phone.
too bad i can't program and develop^^
hi im korean user
very interested in your work and so happy
in korea there are so many people wait your rom so do i
im very sorry but could you build
some ver.korea rom?!
i mean it would work in su660
that released in korea like p990
i wait for your answer
...im really sorry
im not good at english but i hope you to understand what i mean
Sent from my LG-SU660 using XDA App
try cooking in notification on the buttons if possible

Thread Closed Please Delete Mods....

Closed Thread Due To New Thread.... Please Delete Mods
Awesome!
Will try!
Downloading.
Thanks
Edit: oops
Btw, can we expect better battery than the other gb roms?
Tell Me What You Think? Hit The Thanks Button
does it got that rainbow bug???????
Some What You Just Have To Try, Your Experiance Will Be Diffrent Than Mine...
It Should Be Its The Newest Modem...
neobuddy89 said:
does it got that rainbow bug???????
Click to expand...
Click to collapse
Yeah 2 Sec...
hayn_pryde46 said:
Yeah 2 Sec...
Click to expand...
Click to collapse
I dont want to sound discouraging, but why does CM7 and MIUI Gingerbread ROM dont have any rainbow? cant we use CM7 Kernel(Kang's version)
coz Kernel is reason to rainbow I think.
Thank you VERY MUCH for your Efforts..
keep it up!!
neobuddy89 said:
I dont want to sound discouraging, but why does CM7 and MIUI Gingerbread ROM dont have any rainbow? cant we use CM7 Kernel(Kang's version)
coz Kernel is reason to rainbow I think.
Thank you VERY MUCH for your Efforts..
keep it up!!
Click to expand...
Click to collapse
Its Based On Edts Rainbow Roms, No Bootloader... Thats Why Its Not The Kernel
So what's the deal with this Toggle Headset thing?
neobuddy89 said:
I dont want to sound discouraging, but why does CM7 and MIUI Gingerbread ROM dont have any rainbow? cant we use CM7 Kernel(Kang's version)
coz Kernel is reason to rainbow I think.
Thank you VERY MUCH for your Efforts..
keep it up!!
Click to expand...
Click to collapse
1.It's because we don't have Gingerbread bootloaders.
2. CM7 kernels don't work
I'm confused why people are reposting the EDT ROM with basically nothing changed. Users can uninstall and install app themselves. Same goes for Kernels and Modems. None of the original bugs are solved really so I'm confused why this is the second such ROM out today.
I understand it's a great learning experience but from a user standpoint it does not contribute much. I would love when the dev uses the things he/she learned from this to make something.
PS: hayn_pryde46, this is not directed at you nor is this negative. I am very glad you decided to get into the dev game and hope you will become good at it. I'm just unsure your learning experience should be posted as a complete ROM.
why did you port this if it has like NO difference between mine? i mean seriously dude not cool.
Thank you for the previous two posts. I recently got a thread closed because I stated that the dev section is getting polluted with too many roms, which are all the same with minor changes. Im glad im not the only one
Sent from my SGH-T959 using XDA App
ALL he did was download my rom, and re-upload it with some more apps and a different modem/kernel. NOTHING MORE.
Yeah sorry most 98% files are new from xwjvb I just used the rom as base deleted all the files but their init.d tweaks added new build.prop and modem and kernel got mtp sync to work and maybe debugging and original music player remember reboot problems with whitehawks rom, in which he changed it to miui apk
Sent from my GT-I9000 using XDA App
Delete
Sent from my GT-I9000 using XDA App
}{Alienz}{ said:
I'm confused why people are reposting the EDT ROM with basically nothing changed. Users can uninstall and install app themselves. Same goes for Kernels and Modems. None of the original bugs are solved really so I'm confused why this is the second such ROM out today.
I understand it's a great learning experience but from a user standpoint it does not contribute much. I would love when the dev uses the things he/she learned from this to make something.
PS: hayn_pryde46, this is not directed at you nor is this negative. I am very glad you decided to get into the dev game and hope you will become good at it. I'm just unsure your learning experience should be posted as a complete ROM.
Click to expand...
Click to collapse
Literally just came to post the exact thing. It seems to be a trend lately, to the point that it's getting ridiculous. The bugs that exist are pretty big, so how about we either work on those, or sit back and wait for other, more advanced devs to fix them before we start "porting" and call it our work.
I assume you don't have the ability to fix the existing bugs, so that alone should stop you when you go to open a thread for a new ROM that you know you don't have the ability to improve yourself.
I mean, then what? Someone is going to work really hard and eventually fix something, you're going to copy/paste it and call it an update? Just relax on these "ports" for now, they're not needed at this stage of 2.3.3 for the Vibrant.
so you DIDN'T tweak it as it says in your post. You give me NO credit even though you downloaded my rom (which has at least some BIG differences to whitehawks) and just replaced the files that determine the build number added a different kernel/modem and pass it off as your COMPLETE own work. Mine at least fixes some bugs his old rom had (battery drainage, made 3D gaming less sucky). Like cmon dude.
Delete
Sent from my GT-I9000 using XDA App

[Q] Porting ROMS

Can someone teach me how to port roms starting from the very basic ? I tried porting miui from nexus s using cm7 as base and using http://forum.xda-developers.com/showthread.php?t=1598713 but failed . Can anyone out there who knows how to port roms teach me ?
None of the tutorial will help u in porting roms but you'll only get some idea about handling libs and modules.
You have to use your brain to port roms...
But i'm no developer , i dont know a single thing about development. How do i use my brain then, omr911
?
Sent from my LG-P970 using xda premium
I dont know
zyfkurmom said:
But i'm no developer , i dont know a single thing about development. How do i use my brain then, omr911
?
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
Adb logcat helps a lot
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
I know C#, can it help for porting roms or only knowledge of Java can help?
omr911 said:
I dont know
Click to expand...
Click to collapse
you're a great developer , you and your team ported ics to our ob . can you teach me things you know ?
Jonny said:
Adb logcat helps a lot
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
Click to expand...
Click to collapse
the problem is , i know nothing , i dont even know what the logcat is used for
zyfkurmom said:
the problem is , i know nothing , i dont even know what the logcat is used for
Click to expand...
Click to collapse
Logcat is used to detect errors in your rom. For example: you compiled a rom but it wont boot, you use logcat and find the bug and solve the problem hope ive helped
Guyzzzz i need help in removing errors or bugs.
i know porting and i had already ported roms..
Dey r partially wrking...
So can u help me in debugging/?
I would like to help you but im kinda noob in developement, however i cn help with simple things feel free to ask anythin` ill help with all i cn
Bro i just want ntwrk working remaining i will do...
plzz help me in Fixing ntwrk.
i m getting unknown imei and unknown baseband.
Sent from my Micromax A60 using XDA
I don't know either but I'm in a similar situation as you. I can share my thoughts and the answer I gave myself to this question.
My current objective is to help LG optimus black ICS porting. What I've done so far is:
a) download and compile ice cream sandwich.
b) download cm7, I'm willing to compile and try it on my device. Starting on something that works will surely help learning.
at this point I'm going to study a little bit the CM7 code in order to get familiar with the files needed to port a rom. I'll try to apply my edits and attempt to solve bugs for cm7. After gaining confidence with the process I'll move to the porting ICS rom.
I want to give you some advice, you need to get familiar with the set of tools and the terminology that developers use:
1) learn to use Ubuntu Linux, it will greatly simplify development. Plus there is a lot of similarities with android, you will find that there are similar configuration files that you can edit in both systems
2) learn to code in some language (at least the basics). In this context (rom porting) I believe that the most useful language is C. But Java would be necessary.
3) learn to use version control (the git program) because it's what most developers use to share code in an easy manner. Remember, a developer(hacker) reads A LOT of code.
That said, it's a big investment in time, but I believe it will help you in life to know this stuff.
Ok if means its not easy as i thought..
And if u r also starting from beginning means with installing Linux dan tell me.
We can both wrk together on different phones and share what. We have got..
If its ok den pm me wour gtalk, facebook id..
Sent from my Micromax A60 using XDA
gabriele.lanaro said:
I don't know either but I'm in a similar situation as you. I can share my thoughts and the answer I gave myself to this question.
My current objective is to help LG optimus black ICS porting. What I've done so far is:
a) download and compile ice cream sandwich.
b) download cm7, I'm willing to compile and try it on my device. Starting on something that works will surely help learning.
at this point I'm going to study a little bit the CM7 code in order to get familiar with the files needed to port a rom. I'll try to apply my edits and attempt to solve bugs for cm7. After gaining confidence with the process I'll move to the porting ICS rom.
I want to give you some advice, you need to get familiar with the set of tools and the terminology that developers use:
1) learn to use Ubuntu Linux, it will greatly simplify development. Plus there is a lot of similarities with android, you will find that there are similar configuration files that you can edit in both systems
2) learn to code in some language (at least the basics). In this context (rom porting) I believe that the most useful language is C. But Java would be necessary.
3) learn to use version control (the git program) because it's what most developers use to share code in an easy manner. Remember, a developer(hacker) reads A LOT of code.
That said, it's a big investment in time, but I believe it will help you in life to know this stuff.
Click to expand...
Click to collapse
We already have ics
Sent from my LG-P970 using xda premium
kaassaus said:
We already have ics
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
Without:
Audio
WiFi
Camera
Can't mount SD on PC
GSM/SMS is working in some countries only + no voice
---------- Post added 4th May 2012 at 12:09 AM ---------- Previous post was 3rd May 2012 at 11:44 PM ----------
Eklovya said:
Ok if means its not easy as i thought..
And if u r also starting from beginning means with installing Linux dan tell me.
We can both wrk together on different phones and share what. We have got..
If its ok den pm me wour gtalk, facebook id..
Sent from my Micromax A60 using XDA
Click to expand...
Click to collapse
I'm a long time linux user I just told you what I employed in order to build android from source (and read some code in the way).
I wanted to inform you in some degree what you need (probably) to work with rom porting. What I've seen is that the entry-level for helping is quite high, plus there aren't many resources to study on, so you may need to start without rushing.
http://www.youtube.com/watch?v=H_ReU-0w4IE
This video is about compiling and covers many steps (in a superficial way, though):
installing ubuntu linux, downloading the source code (with a version control tool) and building the source.
Try hacking your way!
Anyone tried to fix bugs on ics ??
Working as a team is better...just saying
But we don't have any source code...
But we need a custom oc/ov kernel.
For cm7.
Is der any way we can get kernel
Sent from my Micromax A60 using XDA
Eklovya said:
But we don't have any source code...
But we need a custom oc/ov kernel.
For cm7.
Is der any way we can get kernel
Sent from my Micromax A60 using XDA
Click to expand...
Click to collapse
You could ask devs that are compiling kernels.
Bro i don't have any access to such dev..
Do u know any1???
Sent from my Micromax A60 using XDA

[REQUEST] GB kernel

I'll try to do what I suggested at this post -> http://forum.xda-developers.com/showthread.php?t=2142591 .
But I need to know where I need to start. (Ok, I know where, but don't know HOW). Here it goes what I think, but I need help.
I have ideas, but don't know how to do all of them. So I need help, I need somebody there can help me. Give me some light. C_C
As I said, I wanna "split" gb kernel + cm9. Simple. But, how?
I need the droid 3 gb kernel, and I need a cm9 rom without the kexec kernel.
OR, (and I would very much appreciate) if some of our brilliant minds could expend just about 30 mins to explain to me how could I do it by myself.
ie:
Where I can extract, get, download the kernel. Or how I remove it from other place;
If the cm9 than i've downloaded came with kexec kernel, and how I remove it;
What I should do when I complete these steps;
*if there is a file (look how i'm losted! I even know if is a file, or a folder, .. buh ): ..).
pls. ):
giovannipaquier said:
I'll try to do what I suggested at this post -> http://forum.xda-developers.com/showthread.php?t=2142591 .
But I need to know where I need to start. (Ok, I know where, but don't know HOW). Here it goes what I think, but I need help.
I have ideas, but don't know how to do all of them. So I need help, I need somebody there can help me. Give me some light. C_C
As I said, I wanna "split" gb kernel + cm9. Simple. But, how?
I need the droid 3 gb kernel, and I need a cm9 rom without the kexec kernel.
OR, (and I would very much appreciate) if some of our brilliant minds could expend just about 30 mins to explain to me how could I do it by myself.
ie:
Where I can extract, get, download the kernel. Or how I remove it from other place;
If the cm9 than i've downloaded came with kexec kernel, and how I remove it;
What I should do when I complete these steps;
*if there is a file (look how i'm losted! I even know if is a file, or a folder, .. buh ): ..).
pls. ):
Click to expand...
Click to collapse
Im kinda lost at what your trying to do, you dont need a kernel to compile just cm9 really.
but if u want to try booting cm9 without the new kexec kernel3 just delete /system/etc/kexec folder and it will boot into 'stock' gb kexec kernel2 as long as you have safestrap installed
If you need the source for complete stock kernel hashcode has it hosted
https://github.com/Hashcode/solana_kernel
if you need the compiled kexec GB kernel im sure its in safestrap somewhere
You would probly need to make edits to cm9 though to make it work with gb stock kernel, it would be easier to use cm7 probly.
I wonder if Hash's old work on it is around?
jarveson said:
Im kinda lost at what your trying to do, you dont need a kernel to compile just cm9 really.
but if u want to try booting cm9 without the new kexec kernel3 just delete /system/etc/kexec folder and it will boot into 'stock' gb kexec kernel2 as long as you have safestrap installed
If you need the source for complete stock kernel hashcode has it hosted
https://github.com/Hashcode/solana_kernel
if you need the compiled kexec GB kernel im sure its in safestrap somewhere
You would probly need to make edits to cm9 though to make it work with gb stock kernel, it would be easier to use cm7 probly.
Click to expand...
Click to collapse
exaplaining, i wanna try to use cm9 without kexec kernel, 'cause still with bugs. i saw this post, and after read it all, i thinked if it's not possible do it again. at this post, was posted a cm9 rom, working fine, without bugs. BECAUSE it wasn't with kexec kernel, but with gb kernel.
but the links is off, and ill try to do it by myself. and looking your simple explanation, i'll try and post results, being good or not. but i still have some questions.
1 - as you said, i need to make what kind of edits?
2 - at cm7, what & how i suppose to act?
giovannipaquier said:
exaplaining, i wanna try to use cm9 without kexec kernel, 'cause still with bugs. i saw this post, and after read it all, i thinked if it's not possible do it again. at this post, was posted a cm9 rom, working fine, without bugs. BECAUSE it wasn't with kexec kernel, but with gb kernel.
but the links is off, and ill try to do it by myself. and looking your simple explanation, i'll try and post results, being good or not. but i still have some questions.
1 - as you said, i need to make what kind of edits?
2 - at cm7, what & how i suppose to act?
Click to expand...
Click to collapse
I hate to break it to you, but that cm9 is not fully functional and without bugs. Just off the top of my head I know it has no camcorder, and no HW codecs and while the photo camera works, it's a hack and takes forever to open and can't be used for secondary functions like scanning QR codes. Also I'm pretty sure battery life is ****. And I believe it has the mediaserver battery drain bug, where if you listen to music it will drain your phones in 2-3 hours, tops
And this is just what I can think of, it's been quite some time since I've ran it. If you're determined, I can check to see if I have it kicking around in my Linux files later, but i wouldn't hold your breath.
I don't want to discourage you from trying to learn more about android hacking and dev, but based on your posts I don't think you have the knowledge to fix cm9, I know I don't.
I know it would be great to have a fully functional better than gingerbread rom, but I'm afraid it's GB or beta.
Sent from my DROID3 using xda premium
---------- Post added at 03:36 PM ---------- Previous post was at 03:31 PM ----------
Cm7 was mostly functional, and I'm pretty sure I have that, but it never worked for the xt860 properly, mobile connection issues. Personally I think it's the libmoto_ril.so, or something in the build.prop, or both. Look into what other moto devices use the same radio as the xt860 and if they have cm7
Sent from my DROID3 using xda premium
Endoroid said:
I don't want to discourage you from trying to learn more about android hacking and dev, but based on your posts I don't think you have the knowledge to fix cm9, I know I don't.
I know it would be great to have a fully functional better than gingerbread rom, but I'm afraid it's GB or beta.
Sent from my DROID3 using xda premium
Click to expand...
Click to collapse
wait, .. how? lol
i know i can't FIX cm9, wtf, who I am to say something so stupid?
i didn't mean this. sorry if i looks like yes.
based on your posts I don't think you have the knowledge to fix cm9
Click to expand...
Click to collapse
i know i don't have it. at ALL my posts, i think i never forgot to say something to confirm it. and like i always says, i know i'm dumb, i ALWAYS assume it, being sayin' it exactly or at other words.
but, it's not to look like something crazy, like somebody who needs atention and bla bla bla. just the true.
and another true is there i wanna try, i wanna learn, i need to try, i need to learn. i think something really nice is about to come.
Sent from my XT860 using xda app-developers app
here is a cm9 that i'm fairly sure is non kexec
https://www.dropbox.com/s/72jk7id8hnkl9c7/cm9-droid3-20120130-1730.zip
and here is cm7
http://d-h.st/lzD
Endoroid said:
here is a cm9 that i'm fairly sure is non kexec
https://www.dropbox.com/s/72jk7id8hnkl9c7/cm9-droid3-20120130-1730.zip
and here is cm7
http://d-h.st/lzD
Click to expand...
Click to collapse
Anyone try this?
Sent from my DROID3 using xda app-developers app
i'll try it.
Neither of these will work on an xt860 out of the box. (i mens they will, if you don't want any cellular servicd) I'm only posting Because giovannipaquier has asked for these.
Sent from my DROID3 using xda premium
at cm9, camera doesn't works.
safestrap 3.05 with cm7 just give me black screen. tried with milestone3bootstrap and bricked. ):
unbricked right now.
Endoroid said:
Neither of these will work on an xt860 out of the box. (i mens they will, if you don't want any cellular servicd) I'm only posting Because giovannipaquier has asked for these.
Sent from my DROID3 using xda premium
Click to expand...
Click to collapse
what you mean is there it works, but i'll not have gsm?
i've got fc's on phone app at startup.

Some questions before burn again my phone XD

Well,
Rigth now i have android 4.0 in my captivate, but it has a lot of bugs, with the audio, music, and sometimes just close the app just because!!
I decided to change the rom for another newer, but i don't know a lot of this world, and i have some questions that somebody experiment can easily answer.
When i dont know a lot of what the kernel do for the phone, but do i really need change the kernel?? Because the last time i tried with semaphore but i briked my phone.
If i need to change the kernel, could some body tell me te more stable for android 4.1 or 4.2
Second question.
I want another ROM which one is the more stable and with better performance, i dont want any spectacular, but with a good performance and all working its enougth for me.
And the last one.
How can i save my apps to reinstall all again, i mean i'm working bad piggies and where is may water, and i dont want to lose my levels jaja.
Thanks again for your time its really a lot of help for me.
Sent from my SGH-I897 using xda app-developers app
No need to change kernel.
CM10.0 stable rom. It is 4.1.2 os.
You can read other threads on how to use Titanium backup or other tools to preserve your user data and user apps. Don't try to restore system apps to a new rom, though. if you have given google permission to backup your data, it may already be restored when you reinstall the app from google play.
You will still want to do a full factory wipe, followed by flashing the correct gapps package. you can find all the instructions and links in the CM10.0 thread in the captivate development forum.
If you want to go to 4.2, I've found the CM10.1 nightlies to be very stable. There's a separate thread for it with links, etc.
Thanks for your answer, and thanks for the extra of read my post because my english is too bad jaja.
Another question, why the developers create new kernels if we can work with the same for a lot of roms, i mean what things make better some kernel from another??
Sent from my SGH-I897 using xda app-developers app
diabolelx said:
Thanks for your answer, and thanks for the extra of read my post because my english is too bad jaja.
Another question, why the developers create new kernels if we can work with the same for a lot of roms, i mean what things make better some kernel from another??
Sent from my SGH-I897 using xda app-developers app
Click to expand...
Click to collapse
Each kernel has its different characterstic, like on can help you overclock your device while some help to give good battery backup and they make our phones more stable
n205des said:
Each kernel has its different characterstic, like on can help you overclock your device while some help to give good battery backup and they make our phones more stable
Click to expand...
Click to collapse
or less stable . .
driving new features or higher performance is often, but not always, accompanied by a loss of stability, at least for a few revs.
imho, the base kernel in cm is excellent for someone whose chief concern is simplicity and stability, without a burning desire to be at the bleeding edge.
that said, the semaphore and others do have some added tweaks that can do just what you said.
---------- Post added at 09:41 AM ---------- Previous post was at 09:24 AM ----------
diabolelx said:
Thanks for your answer, and thanks for the extra of read my post because my english is too bad jaja.
Another question, why the developers create new kernels if we can work with the same for a lot of roms, i mean what things make better some kernel from another??
Sent from my SGH-I897 using xda app-developers app
Click to expand...
Click to collapse
I think I should have been more clear in my first response.
When you flash cm10, you will be flashing a new rom that includes a new kernel that is different than the one you have now.
I thought you were asking about flashing a kernel as a standalone, such as semaphore kernel, rather than a complete rom.
When I said you do not need to change the kernel, I meant that once you flash a complete cm10 rom, you do not need to change the kernel.
For a ROM, I highly reccomend sephhi's captivating (4.2.2 with xperia theming and very much aimed at performance and battery life) http://forum.xda-developers.com/showthread.php?t=2057574
This is the answer!!!
Excelent, i really appreciate your help, and i think that now i will flash with CM 10, maybe i will return for more help if i needed, but now nothing can scared me like the first time that i try this
Sent from my SGH-I897 using xda app-developers app

Categories

Resources