LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-07-2012, 06:18 PM   #1
Chinex
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
How to use git to get kernel 2.6.38.8


Last year i was able to get the kernel 2.6.38.8 like this:

# git clone git://git.eu.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.38.y.git

But now, i get a fatal: The remote end hung up unexpectedly

Instead of using git://git.eu.kernel.org... i tried git://git.kernel.org without success. I think i need to use git due to patches i have to apply.

The precise kernel version i formerly downloaded (what git describe told me) was: v2.6.38.8-3-g89a7f99. i know the patches i applied did work on it.
 
Old 05-07-2012, 07:08 PM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
I think Torvalds has the kernel up on github: http://www.github.com/
 
Old 05-08-2012, 06:54 AM   #3
Chinex
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
or
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Both do download a kernel. So i don't know what you mean with github.
 
Old 05-08-2012, 03:26 PM   #4
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
https://github.com/mirrors/linux

https://github.com/mirrors/linux.git

During last year's kernel.org security vulnerability I believe we were recommended:

https://github.com/torvalds/linux.git
 
Old 05-08-2012, 04:00 PM   #5
Chinex
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
# git tag

returns me a list of kernel versions beginning with v2.6.11 and ending with v3.4-rc1 as the last and most actual one. There is also the v2.6.38.8 listed, the one i am searching.
I found out, i should extract the desired version using git on the downloaded repository. But i don't know how.

Maybe using # git-archive ?
 
Old 05-29-2012, 10:07 AM   #6
chffelix
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Hi Chinex,

I had the exact same problem, which I got answered at StackOverflow (how-to-get-an-specific-kernel-version-to-the-extraversion-digit-from-git)

If you clone from Linus tree (git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git) you won't get the v2.6.38.8 tag, but if you clone from the stable tree (git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git) it will be there.

Then, after you have cloned the proper tree, you can check it out as a private branch to work on it with:
Quote:
git checkout -b your_branch_name v2.6.38.8
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kernel.org hacked, but Linux kernel safe thanks to git LXer Syndicated Linux News 0 09-02-2011 01:00 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration