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.
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.
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.
A mirror:// URL means that you can fetch it from one of the sites listed in /usr/portage/profiles/thirdpartymirrors.
So, you could replace mirror://kernel with http://www.kernel.org/pub and mirror://gentoo with http://mirrors.kernel.org/gentoo/distfiles to get URLs that you can download (or you could pick different mirrors).
That particular kernel seems to have been removed from portage. But generally you can use the -f flag to emerge to just fetch a file.
This command:
emerge -f =sys-kernel/gentoo-sources-2.6.36-r8
Gets the next closest one. You might want to go ahead and install that. Or a newer one if you can.