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 22.214.171.124-g502e35e, 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?