LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Where to install 2.6.20 from? (https://www.linuxquestions.org/questions/linux-kernel-70/where-to-install-2-6-20-from-577815/)

kushalkoolwal 08-17-2007 11:28 AM

Where to install 2.6.20 from?
 
Hi guys,

I am using Debian (etch) system with kernel 2.6.18. I would like to upgrade to kernel 2.6.20. The problem is that I cannot find Debian Kernel source file (.deb file) for 2.6.20. All I can find is 2.6.21 and onwards right now at packages.debian.org.

I know I can use the plain vanilla kernel but I would prefer to use the Kernel with debian patches. Any ideas from where I can get the source file?

HappyTux 08-17-2007 02:32 PM

Quote:

Originally Posted by kushalkoolwal (Post 2862134)
Hi guys,

I am using Debian (etch) system with kernel 2.6.18. I would like to upgrade to kernel 2.6.20. The problem is that I cannot find Debian Kernel source file (.deb file) for 2.6.20. All I can find is 2.6.21 and onwards right now at packages.debian.org.

I know I can use the plain vanilla kernel but I would prefer to use the Kernel with debian patches. Any ideas from where I can get the source file?

That is the newest version of the kernel that you will get for etch from official Debian sources. If you want a kernel that will install properly on your Etch system then try seeing what they have at http://www.backports.org they have newer packages that are built for Etch.

kushalkoolwal 08-17-2007 02:45 PM

Quote:

Originally Posted by HappyTux (Post 2862333)
That is the newest version of the kernel that you will get for etch from official Debian sources. If you want a kernel that will install properly on your Etch system then try seeing what they have at http://www.backports.org they have newer packages that are built for Etch.


THanks Happy Tux. I checked the backports and this is what I found for 2.6.20:

Code:

linux-2.6_2.6.20-3~bpo.1.diff.gz  27-Apr-2007 06:32  3.4M
linux-2.6_2.6.20-3~bpo.1.dsc      27-Apr-2007 06:32  4.7K
linux-2.6_2.6.20.orig.tar.gz            12-Apr-2007 08:17  53M

How do I proceed from here? I know the kernel compilation steps. What I need is how to incorporate the changes made by debian kernel people into the linux-2.6_2.6.20.orig.tar.gz.

Thanks a lot for your reply.

kushalkoolwal 08-17-2007 06:54 PM

Quote:

Originally Posted by kushalkoolwal (Post 2862345)
THanks Happy Tux. I checked the backports and this is what I found for 2.6.20:

Code:

linux-2.6_2.6.20-3~bpo.1.diff.gz  27-Apr-2007 06:32  3.4M
linux-2.6_2.6.20-3~bpo.1.dsc      27-Apr-2007 06:32  4.7K
linux-2.6_2.6.20.orig.tar.gz            12-Apr-2007 08:17  53M

How do I proceed from here? I know the kernel compilation steps. What I need is how to incorporate the changes made by debian kernel people into the linux-2.6_2.6.20.orig.tar.gz.

Thanks a lot for your reply.

anyone????

HappyTux 08-17-2007 07:18 PM

Quote:

Originally Posted by kushalkoolwal (Post 2862345)
THanks Happy Tux. I checked the backports and this is what I found for 2.6.20:

Code:

linux-2.6_2.6.20-3~bpo.1.diff.gz  27-Apr-2007 06:32  3.4M
linux-2.6_2.6.20-3~bpo.1.dsc      27-Apr-2007 06:32  4.7K
linux-2.6_2.6.20.orig.tar.gz            12-Apr-2007 08:17  53M

How do I proceed from here? I know the kernel compilation steps. What I need is how to incorporate the changes made by debian kernel people into the linux-2.6_2.6.20.orig.tar.gz.

Thanks a lot for your reply.

Those are the file you would get if you used the apt-get source linux-2.6_2.6.20 command to build the kernel .deb you need to put a line in your sources.list like below then apt-get update and install the linux-image file that matches it.

Code:

## Etch backports
deb http://www.backports.org/debian etch-backports main contrib non-free


kushalkoolwal 08-17-2007 07:24 PM

Quote:

Originally Posted by HappyTux (Post 2862569)
Those are the file you would get if you used the apt-get source linux-2.6_2.6.20 command to build the kernel .deb you need to put a line in your sources.list like below then apt-get update and install the linux-image file that matches it.

Code:

## Etch backports
deb http://www.backports.org/debian etch-backports main contrib non-free


I already have the sources in my sources.lst file. I am just wondering what command to give to download the patched kernel sources.

So for example, if I do:
Code:

apt-get source -t etch-backports linux-2.6_2.6.20
Will it give me a .deb package (or a tar ball) of patched 2.6.20 Kernel sources?

Thanks a lot for all your help HappyTux. I think I am almost there. just waiting for your next reply..:)

HappyTux 08-17-2007 07:40 PM

Quote:

Originally Posted by kushalkoolwal (Post 2862575)
I already have the sources in my sources.lst file. I am just wondering what command to give to download the patched kernel sources.

So for example, if I do:
Code:

apt-get source -t etch-backports linux-2.6_2.6.20
Will it give me a .deb package (or a tar ball) of patched 2.6.20 Kernel sources?

Thanks a lot for all your help HappyTux. I think I am almost there. just waiting for your next reply..:)


Using the apt-get source command will download those three files into the current directory then unpack it to its own directory and apply the patches to that source directory it created. You would then need to change into the directory that was created then build the linux-image-???.deb file with a command like fakeroot debian/rules binary or dpkg-buildpackage -rfakeroot -us -uc your probably just better off using apt-get install linux-image-2.6_2.6.20 or whatever it is called from there. In order to be able to use the apt-get source command your line you have in the sources.list must start with deb-src instead of the deb line I posted above.

kushalkoolwal 08-18-2007 06:41 AM

Quote:

Originally Posted by HappyTux (Post 2862591)
Using the apt-get source command will download those three files into the current directory then unpack it to its own directory and apply the patches to that source directory it created. You would then need to change into the directory that was created then build the linux-image-???.deb file with a command like fakeroot debian/rules binary or dpkg-buildpackage -rfakeroot -us -uc your probably just better off using apt-get install linux-image-2.6_2.6.20 or whatever it is called from there. In order to be able to use the apt-get source command your line you have in the sources.list must start with deb-src instead of the deb line I posted above.

Hmmm..I tried the following command after adding etch backports to my sources.lst file:

Code:

bian:/usr/src# apt-get -t etch-backports source linux-2.6_2.6.20
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to find a source package for linux-2.6_2.6.20
debian:/usr/src#

Why it is not able to get the package. I tried quite a few combinations like:
Code:

linux-2.6_2.6.20-3
linux-2.6_2.6.20*
linux-2.6_2.6.20-3~bpo.1

Any ideas?


All times are GMT -5. The time now is 10:29 AM.