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've got a system with two different kernel tree sources installed. One kernel boots perfectly fine, the other kernel panics from not seeing the hdd / label.

How do I compare two different kernel builds and determine which kernel models one has, that the other does not?

So far I've tried diff against two scisi module listings. There's got to be an easier way!

share|improve this question

1 Answer 1

up vote 3 down vote accepted

The options are going to depend on your situation. Do you have two separate source trees as where the kernels were compiled? If so, the .config file in the top level directory of the source will reflect the configuration.

If I had to guess without enough details, I'd suggest that you may not have selected the appropriate drivers for the disk controllers.

On the kernel that boots, if the necessary options[1] are compiled, you can reference /proc/config.gz. Unfortunately, this will not help you much as one of the kernels will not boot. Nevertheless, it could help to compare what is compiled on the working kernel, however, and you could update the broken configuration accordingly.

Certain distributions include the config for the compiled kernel with the package and put it in /boot.

[1] These options:

CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y 
share|improve this answer
    
Excellent advice Warner, thank you. –  bobby Jun 20 '10 at 0:30

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.