Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have to install Linux kernel version 2.5.25.14 on a RHEL 5.4 server because of drive compatibility issues. I follow the RedHat "Building a Custom Kernel" instructions running the following:

$ make mrproper
$ make xconfig
$ make clean
$ make bzImage
$ make modules
$ make modules_install
$ make install

But I get a bunch of warnings like this:

WARNING: No module ehci-hcd found for kernel 2.6.25.24, continuing anyway

When I try to boot this kernel it is unable to mount the hard drive, and kernel panics on startup. As far as I can tell I'm using a standard configuration (I just accept the defaults and save a .config file). Is there something I'm missing? Thanks.

share|improve this question
    
Which issues? It might be work trying to backport the relevant modules if possible. –  Ignacio Vazquez-Abrams Apr 22 '10 at 19:25

1 Answer 1

up vote 4 down vote accepted

When you say you just accept the defaults and save a .config file, you mean the defaults of the vanilla kernel from kernel.org ? In that case, I would suggest to copy the Red Hat customized config file from /boot, e.g. /boot/config-2.6.18-194.el5PAE to /usr/src/linux right after running make mrproper. Run make oldconfig afterwards and pay attention to the choices, read the help for the options and only if you are unsure, accept the default.

make oldconfig will create a new .config file for you, based on a .config from an older kernel, that is compatible with the tree that you are building. It drops options that don't exist in the new kernel, accepts choices for options that exist and are present in the old file, and asks for your choice for options that appeared after the old kernel.

share|improve this answer
    
That was the ticket, thanks! –  aaron Apr 22 '10 at 20:15
    
I'm glad I could be of service ;) –  Prof. Moriarty Apr 22 '10 at 20:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.