How can I get (i.e. what command to use) sources for kernel-2.6.36-r4 (
uname -a says that it is version 2.6.36-gentoo-r4), or where from I can download it?
I want to compile the userside 'perf' tools, and I'd rather they match kernel version.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Well, if you look in
/var/db/pkg/sys-kernel/gentoo-sources-2.6.36-r4/SRC_URI, you'll see what it downloaded. First, I'd look in
/usr/portage/distfiles/ and see if the files are still there. (Actually, first you should look at
/usr/src/linux and see if the kernel sources are still installed. You could just copy them to a directory you can write to.)
I don't have that kernel installed, but it'll probably look something like this (this is from 2.6.36-gentoo-r5):
mirror://kernel/linux/kernel/v2.6/linux-2.6.36.tar.bz2 deblob? ( http://www.fsfla.org/svnwiki/selibre/linux-libre//download/releases/LATEST-2.6.36.N/deblob-2.6.36 http://www.fsfla.org/svnwiki/selibre/linux-libre//download/releases/LATEST-2.6.36.N/deblob-check -> deblob-check-2.6.36 ) mirror://gentoo/genpatches-2.6.36-7.base.tar.bz2 mirror://gentoo/genpatches-2.6.36-7.extras.tar.bz2
You can probably ignore the
deblob part, as that's for GPL fanatics. The main things you need are the base kernel and the genpatches.
mirror:// URL means that you can fetch it from one of the sites listed in
So, you could replace
http://mirrors.kernel.org/gentoo/distfiles to get URLs that you can download (or you could pick different mirrors).