Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The most current version is 2.6.23-r2 in the git repository, but I'm looking for a way to get (git?) the 2.6.22 release. I'm currently using cogito instead of the normal git commands, but I have no problem using git if it'll get me the kernel branch I need.
Does anyone have any git/cogito experience and know how to get the older kernel?
The reason I want it as a git repository is because I have some changes that use the git repository format and I want to apply those. Any ideas?
Last edited by TheDirtyScreech; 08-07-2007 at 10:26 AM.
just to be sure, i got the kernel and tested the command myself, you seem to have accidentally forgotten that git-clone checks out the current HEAD, but previous versions are still in there, you just have to do the checkout manually. Be prepared to wait a bit.... ok, maybe longer.
edit: oops, im kinda sleepy, i saw the -rc2 and thought you wanted 2.6.22-rc2, in anycase, just drop the -rc2.
Thanks! I'm starting a new cg-clone right now (I've been tinkering with this one a lot and would rather have a pristine base). If you don't hear a response, it most likely worked. Thanks a million! I didn't know that previous versions were still in the git repository!
Hmm....I'm still having a few errors. I run the following commands:
I get the following output:
cg-switch: branch v2.6.22 does not exist - you must pass -r if you want to create a new branch
So, naturally, I thought I'd switch to git instead of cogito since SciYro tested it with git. My two commands are as follows:
Which outputs the following:
Note: moving to "v2.6.22" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
git checkout -b <new_branch_name>
HEAD is now at 7dcca30... Linux 2.6.22
It looks like it sort of forced it to do what I wanted, though it doesn't think the 2.6.22 branch is local (I don't know if it's supposed to or not). Since I don't know 'git' but I at least have a basic knowledge of cogito, I figured I could switch to cogito here since it just uses git commands (as far as I know). So, I run the command:
One thing I've noticed while doing the cg-clone (but it isn't outputted in git-clone) is that during the "Fetching tags..." portion of the cg-clone, it reports "Missing tag <version>" for every kernel version where <version> is replaced by whatever kernel version it is (example: Missing tag v2.6.22). This seems important to me, but I could be wrong.
The git output is normal i think (im about to go to bed, so i may be wrong), i believe its saying its not local because its not a official branch, Linux uses tags to reference kernel versions, "v2.6.22" is not a branch, but a tag. In any event, it gives you the files from that version. Like the output said, if you want to make it a official branch, just issue the command.
edit: on second thought, cogito (i never used it, nor know how it works) might be having a problem with the current HEAD not being a official branch, so if you make it a branch, it might work.
Thanks for the help so far. I think I'll stick with the normal "git" commands, but I'll need some information on how add a branch to this repository clone. You may have noticed from my previous post that I'm trying to add the aic94xx kernel patches (git://git.kernel.org/pub/scm/linux/kernel/git/jejb/aic94xx-sas-2.6.git). With cogito, I'd do:
which seems to work. After I make my changes, is there anything I need to do to make sure when I copy this directory to another machine to actually build the kernel? I'm worried that it'll still build as 2.6.23-r2 if I just copy it over. Do I need to do anything to make my kernel selection the version used?
No, if you are just copying the kernel from the filesystem, then all files will be fine (they will be whatever was checked out). Just remember to exclude any ".git" directory, or else you will end up moving the entire repository (and it is rather big).
Hmm...I do the git-checkout to the 2.6.22 branch, and then I copy over the directory to the test machine. It's /usr/src/linux-2.6 and I have a symlink from /usr/src/linux to /usr/src/linux-2.6. When I run a "make menuconfig" to configure the kernel, the window has ".config - Linux Kernel v2.6.23-rc2 Configuration" at the very top. I must have done something incorrectly. Any ideas?
Also, I'm switching between bot "git" and "cogito" commands throughout the process. Since cogito is supposed to just be a nicer front-end to git, I don't anticipate this to be the issue. However, to isolate this whole thing, can you give me the commands to add that remote aic94xx branch, merge it, apply it, whatever I need to do to get it into the branch I'm using? That way we can be sure it's not my git/cogito command switching that's the issue.
here is the command sequence i used not sure how to test if the branch you wanted was successfully installed, but menuconfig still works, so ill just assume all is well. Assume you start from a already cloned repository.