Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to install Linux kernel version 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, 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
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 ? 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


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.