Compiling old kernels

Asked by Hunter_bt

How to compile an older version of the kernel? I'm aware of "git tags" but I don't know how to use tags.
Besides I can't find the 2.6.26-1-rt kernel in the list. How was it compiled?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

hello download the kernel source first

then cd into the source directory

then untar the source

tar xvjf <linux-source*>

cd <linux-source>
cp /boot/config-2.6.26-1-rt .config
sudo make menuconfig

cofigure the heck out of your kernel

sudo make-kpkg --revision-1 --append-to-version=mykerne1 kernel_image kernel_headers

cd ..
sudo dpkg -i linux-image-2.6.26-1-rt*.deb

Regards

Revision history for this message
Hunter_bt (hunterggl) said :
#2

Thanks for the answer but unfortunately but I have to use
the repository(via git) to obtain the source code.
I'll give more details so it will be clear what and why I need.

I'm having a kernel related bug and it appears that I'm the only one who
has it so it looks I have to find it myself.
I'm going to compile several different version of kernel in order to
figure out the exact revision when and where the bug was introduced.

I still have some questions:
1. How to update the source code to a specified version with revision
numbers and tags? I have some experience with SVN but git is different
and I'm not familial with it. Besides I don't know Ubuntu conventions
regarding the repository.
2. I'm going to start from the latest kernel which is known to work
well: 2.6.26-1-rt. The problem is I don't know which version of source
code it was based on.

Revision history for this message
Anders Kaseorg (andersk) said :
#3

Does this page answer your question?

https://wiki.ubuntu.com/KernelGitGuide

Can you help with this problem?

Provide an answer of your own, or ask Hunter_bt for more information if necessary.

To post a message you must log in.