[VA][TX1] How to Synchronize Linux 3.10 source code through git storage

precondition:
NULL

Operating:

  1. access the URL through web git.
    http://nv-tegra.nvidia.com/gitweb/?p=linux-3.10.git;a=summary

or

2.run the script in the BSP

$ ./source_sync.sh -k

Problem:
The source code Linux 3.10 we want , Actually, it is Linux 2.6 kernel.

try :
./source_sync.sh -k tegra-l4t-r24.2.1

OR

if you have already download the kernel :
cd /PATH/TO/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source
git tag tegra-l4t-r24.2.1

hi Cill:

I will try, later. but it should be not.
The tegra-l4t-r24.2.1 is just a git tag.
this git store Master is Linux 2.6.

thanks.

Please check this.

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*

External MediaHi

hi ShaneCCC:

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
Do you enter the tegra-l4t-r24.2.1 when prompted enter a ‘tag’ name after source_sync.sh?

hi ShaneCCC:

No, I havent.

  1. The document said using -k, without tag info.
    •Get the kernel source by running the source_sync.sh script:
$ sudo ./source_sync.sh -k
  1. I think I had taken the all store. So I can checkout the tag offline.
$sudo git checkout -b tegra-l4t-r24.2.1

I am trying:

$ sudo ./source_sync.sh -k tegra-l4t-r24.2.1

Thanks.

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.

hi Cill && ShaneCCC:

It’s working.

$sudo ./source_sync.sh -k tegra-l4t-r24.2.1

Thanks.