I want to fix a bug in a driver (loadable module), compiling it on my Funtoo machine.
Upgrading the target machine's kernel is not an option.
Both machines are x86-32.
The target machine:
# uname -r 22.214.171.124
My Funtoo machine:
# uname -r 2.6.31-gentoo-r6
I read that it is generally easiest if you are actually running
the target kernel when you build your modules.
How do I downgrade my Funtoo machine so the kernel source tree is 126.96.36.199?
(Preferably without deleting the current kernel in the Funtoo system,
although I could live with keeping this machine for just this purpose)
Thanks in advance
your kernel looks quite old. Oldest version I can find in current tree is 3.0.82 for sys-kernel/gentoo-sources and 3.0.84 for sys-kernel/vanilla-sources .
But happily, Funtoo don't use any special techniques for building a kernel out of the box. Download your desired sources from Github and compile it a usual. You find hints for doing this in the plain Funtoo installation guide.