2.4 Kernel on Redhat 9

Submitted by ireneeb
on December 29, 2004 - 8:30am

Hi,

I am working with a Redhat 9 PC and I am trying to have a "straight" 2.4 kernel. I do it to be able to execute some special patches that doesn't work on customised Redhat 2.4 kernels.

I have currently a 2.4.20-8 kernel and I do not succed in compiling any vanilla 2.4 kernel from www.kernel.org.

To compile a 2.4.20-8, I go in /usr/src/linux-2.4 an I simply execute :
make mrproper
make olconfig
make xconfig
make dep clean bzImage
make modules
make modules install
then I install properly the kernel and everything is allright

To compile the 2.4.20 kernel, I do exactly the same thing. Every thing looks good untill make modules. At make modules, I only have "nothing to do" messages and modules are not compliled ! I tryed with 2.4.22 and 2.4.28 kernels and the same problem happens. I also try to execute commands from a symbolic link /usr/src/linux with linux->linuw-2.4.20, but it didn't change anything.

What is wrong in what I do ?
Is there any trick to compile a vanilla 2.4 kernel on redhat 9 ?
Should I use another distribution to have a 2.4 vanilla kernel on my PC ?

imported your config?

strcmp
on
December 29, 2004 - 8:41am

Silly question: Maybe the 'nothing to do' means, what it says: modules are not enabled and therefore there is nothing to do? Are you sure you imported the config (usually in (/usr/src/linux/).config, or saved by you with 'Save an Alternate Configuration File') before doing make oldconfig or via the 'Load an Alternate Configuration File' option in menuconfig/xconfig?

At least I never encountered another reason for this message than the obvious no-modules-enabled.

you're right ! It was surely a config issue !

ireneeb
on
December 30, 2004 - 1:40am

I stupidly made the make oldconfig with the new kernel sources !

I made a copy of an old .config a few days ago with my ancient kernel. Now I put the new sources, I make mrproper, copy thre old .conf in /usr/src/linux and goes on the kernel compilation. Everything looks to be allright - at this time, my redhat PC is compiling the modules !!!

I will tell you the final result

cheers

Successful kernel recompilation

ireneeb
on
December 30, 2004 - 4:01am

Thanks, I didn't import the config correctly.

Now, I booted on my vanilla kernel and everyting is allright.

Happy new year to you and to everybody !

Congratulation

Gfroid (not verified)
on
March 16, 2005 - 7:24am

Congratulation Ireneeb !
Your are my linux-menthor !
Jef

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.