Re: compiling a new kernel
Quote:
Originally Posted by tbogue
I am having great difficulty trying to get a recompiled kernel working for knoppix. It fails to mount the cloop image. I suspect this is because of incompatible kernel modules. Notably, the cloop mount fails with a message about cloop.ko being an invalid module file. As a test bed, I've been compiling using the config file found in /KNOPPIX/boot
What I would like to know is: after recompiling the kernel, should it be necessary to replace old modules with the newly compiled modules? If so, where do they go? Especially, do they go to odd places like (CD)/KNOPPIX/modules, or (minirt)/modules? Also, how does one recompile the cloop driver from a chrooted environment? It seems to need the kernel being run to be the kernel its compiling for, but I may be WAY off. The manual file included with cloop seems largely like gibberish to me.
Is it necessary to use the same kernel version that knoppix uses? I tried both ways to no avail.
I've read the how-to, but other than for laughs, I found it of little use as it seemed really out of date, as well as skipping the actual steps in the procedure.
You're right the cloop and aufs module must be recompiled with the new kernel.
Then you have to replace the old mudules in:
/lib/modules/
minirt.g
cd_path/KNOPPIX/modules/
I made a small partition with the same system as the cd and now recompiling is very easy.
When I need a new module I just chroot to the new partition a recompile.
I have also an usb pendrive with all the recompiling stuff: gcc, libs, kernel source, .. in this way I can recompile everywhere;-)
Max