The only distros I know which can be tweaked w/o much effort are the three I already told you and it's forks, such as Vidalinux or Magix which are gentoo.
Gentoo can easily use any kernel, just put it in a line in /boot/grub/grub.conf and Gentoo will start with any kernel you like. If you also mount the /lib/modules/2.6.12-2 into Gentoo's root tree you will even be able to recompile the glibc and the binutils for this particular kernel, and even GCC w/o any problems.
IMHO it's a good idea to start first with two distros. Say Debian and Gentoo, install first Debian and then as Gentoo is very flexible, just adapt Gentoo to use the Debian Kernel.
Even more: There is an easy way of 'debianizing' a vanilla kernel w/o much effort and in a semi-automated way: make-kpkg, this tool is very easy to use, so you can forget about all the steps of the compilation except configuring and install the kernel using DPKG.
The command is:
Code:
cd /usr/src/linux
make-kpkg buildpackage
You will get a linux-2.6.12-12-image.deb package and also headers and sources.
For the compilation in Gentoo, Gentoo will use the kernel which resides in /usr/src/linux (during compilation the important is the headers, not the kernel which is running).
So once you have the Debian kernel, telling Gentoo to use it is piece of cake: Only a line in Grub.conf is enough.
To get the modules to start:
Debian:
Code:
modconf - this is a console interface where you can select and enable modules -
update-modules
lsmod > modules_list
So you will have an idea of which modules are Debian using to run all the HW you need. Then in Gentoo edit the file /etc/mudules.autolad/kernel-2.6 and include the modules you need. Not every module in the list are needed as many are called by other modules or by the kernel itself, but calling them twice will be no problem.
Synopsis:
- Partition your hardisk so that you have:
/boot
/home
/lib/modules/2.6.12.2
/usr/src
- Install a basic Debian and boot it.
- Install the needed tools in Debian to be able to compile a kernel.
Code:
apt-get install make-kpkg
Will surely install all that you need to build binary kernels on the fly.
- Install Grub and configure it (refer to the Gentoo documentation which covers this subject) in case you didn't before.
- Compile a custom kernel
Code:
make-kpkg buildpackage
- Install the kernel using the deb package:
Code:
dpkg -i kernel-image-2.6.12.2.deb
- Begin the Gentoo install from the LiveCD
- mount the /boot you created to /mnt/gentoo/boot
- mount your /home to /mnt/gentoo/home
- Go through the rest of the process (stage tarball and portage snapshot)
- Mount the rest of the partitions:
/usr/src and /lib/modules/2.6.12.2 so that the kernel sources and the modules are shared.
- Edit /boot/grub/grub.conf to point at the kernel you have in /boot.
- Edit /etc/modules.autoload/kernel-2.6 to include the modules you need.
- To finish reboot into the running Gentoo and recompile the base system:
Code:
emerge -u glibc gcc binutils
Done.
There is even another interesting thing you will be able to do: you can build debian packages with the sources stored in Gentoo's portage/distfiles... There is even an app called "checkinstall" which would be able to build deb packages using gentoo's ebuild specs, so that you get the same binaries with the same optimizations on both distros. I don't know how this works but this is how packagers in KDE for example, build the packages for all distros on the fly.
If you focus on Gentoo and Debian, ask me just about anything.