Sync with git
Prerequisites
•You have installed Git. Install Git with the following command:
$ sudo apt-get install git-core
•Your system has the default Git port 9418 open for outbound connections.
To sync the kernel sources
•Get the kernel source by running the source_sync.sh script:
$ sudo ./source_sync.sh -k
When prompted enter a ‘tag’ name, as provided in the release notes.
You can sync to any Linux tag you like. However, the tag provided in the release notes syncs the sources to the same source revision the release binary was built from. To see a list of the available release tags, use:
$ git tag -l tegra-l4t*
zuoqiang@P16531750503:~/WorkSpace/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source$ git tag -l tegra-l4t*
tegra-l4t-r19-er-2014-05-20
tegra-l4t-r19.1
tegra-l4t-r19.2
tegra-l4t-r19.3
tegra-l4t-r21-21.2
tegra-l4t-r21-er-2015-02-02
tegra-l4t-r21.1
tegra-l4t-r21.3
tegra-l4t-r21.4
tegra-l4t-r21.5
tegra-l4t-r23.1
tegra-l4t-r23.2
tegra-l4t-r23.2.update-01
tegra-l4t-r24.1
tegra-l4t-r24.2
tegra-l4t-r24.2.1
zuoqiang@P16531750503:~/WorkSpace/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source$ sudo git checkout -b tegra-l4t-r24.2.1
[sudo] password for zuoqiang:
Switched to a new branch 'tegra-l4t-r24.2.1'
zuoqiang@P16531750503:~/WorkSpace/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source$ git branch
master
* tegra-l4t-r24.2.1
zuoqiang@P16531750503:~/WorkSpace/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source$ git log
commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Author: Linus Torvalds <torvalds@ppc970.osdl.org>
Date: Sat Apr 16 15:20:36 2005 -0700
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
zuoqiang@P16531750503:~/WorkSpace/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source$
zuoqiang@P16531750503:~/WorkSpace/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source$ vi Makefile
VRSION = 2
PATCHLEVEL = 6
SUBLEVEL = 12
EXTRAVERSION =-rc2
NAME=Woozy Numbat
Hi
The DOC say “When prompted enter a ‘tag’ name, as provided in the release notes.”
You can run the ./source_sync.sh -k again and enter the tegra-l4t-r24.2.1 when it prompt “Please enter a tag to sync…” to get the 24.2.1 kernel source.