Use git and commit tag
This tip shows how to use git, the standard kernel source control package, to get source for a specific Hardkernel kernel release.
Prerequisites
Steps
For this example, we assume you want to get specifically the Hardkernel 3.0.63 source so you can change some configuration and re-build it.
Carve out a convenient place to work, something like this:
cd $HOME mkdir odroidu2 cd odroidu2
If you plan to do a native kernel build, be aware that git database will take probably 2GB or so. You could do the git work on your host and then copy the source over to the odroid. If you have never tried it, you might like to cross-compile the kernel on your host. Here is a link to a tutorial: http://odroid.us/mediawiki/index.php?title=Step-by-step_Cross-compiling_a_Kernel
Clone the database to your machine. This can take awhile, it is a lot of data.
git clone git://github.com/hardkernel/linux.git -b odroid-3.0.y
Move to the top of the source tree
cd $HOME/odroidu2/linux
Put the git log to a file to make it easy to read
cd $HOME/odroidu2/linux git log > git.log
Open git.log with an editor and look for the merge tag 'v3.0.62'. It looks like this:
commit be1529c40ea70bc16e751e38d5dadde1887d62f8 Merge: a6d395e e1c63f9f Author: Hakjoo Kim <ruppi.kim@hardkernel.com> Date: Tue Feb 5 10:51:43 2013 +0900 Merge tag 'v3.0.62' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroid-3.0.y This is the 3.0.62 stable release
Make a note of the commit tag. For this release it is be1529c40ea70bc16e751e38d5dadde1887d62f8
Use the commit tag to set your source tree content to exactly match that instant in time, when the commit was done:
cd $HOME/odroidu2/linux git checkout b9d73f776e87f89e1a6c251bff0d7d4a6c46de63
At this point, you are sure to have the released source. You can create a local branch, even if you don't plan to do edits. As long as you don't 'push' the results, the content will stay local to your machine. Here is what I did:
git checkout -b odroid-3.0.y.osterluk
The next step would be to configure the kernel. For example:
make odroidu2_ubuntu_defconfig