Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm trying to recompile a module for my Android device (I'm pretty new to both kernel level stuff and android stuff) I have an Epic 4G CM9 with a Kernel, pinky-ghost@cyyanogenmod#1 I've found out that to create a module I need the source code for the Kernel of my device.

Initially I went to kernel-epicmtd, but I discovered that this was the wrong place, since they are using kernel 3.x.x.

I am now going through the cm-kernel, but I noticed that for kernel 2.6.35 there are 3 different branches.

So my question is how do I go about finding the kernel source that I need? and if I pulled the config files from any phone with the same kernel version, would it work?

share|improve this question

closed as too localized by GAThrawn, Zuul, t0mm13b, ce4, Izzy Dec 13 '12 at 21:22

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I think you'll need a kernel specific to your device, it may be best to follow up with the CM folks. I'm not sure this is the best place for help since it's getting into the development side of things. –  Matthew Read Dec 11 '12 at 6:43
@MatthewRead kk thanks, I will try their forums –  GoldenStake Dec 11 '12 at 7:24