LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Mandrake 10 custom kernel howto? (https://www.linuxquestions.org/questions/mandriva-30/mandrake-10-custom-kernel-howto-189486/)

red_over_blue 06-03-2004 08:46 PM

Mandrake 10 custom kernel howto?
 
Hello everyone,


First, I must say that I am not new to compiling my own kernel. However, trying to compile a kernel on Mandrake 10 has left me feeling like a complete n00b.

Here are the steps I followed:

1. Installed the source for the current kernel with "urpmi kernel-source"
2. cd /usr/src/linux
3. make menuconfig
4. selected preemptible kernel to be built into the kernel
5. exited and saved the new config
6. make
7. make modules modules_install
8. make install
9. lilo
10. reboot, selecting the new custom kernel.


However, upon reboot, the system seems to think that half my hardware has been removed (mouse, cd-drive, etc) and most of the modules throw out errors as they are loaded.

What step(s) have I missed that is specific to compiling a kernel with Mandrake? I'm assuming that the .config that comes with the kernel-source package is the same one that was used to compile the kernel that is provided by the kernel package, so I doubt it is an issue with the actual kernel configuration.

Any help is greatly appreciated. Thanks in advance.

heema 06-03-2004 09:11 PM

here is how i did mine and its working fine

# cd /usr/src/linux

backup the .config by copying to any other location

# make mrproper

restore the .config

# make menuconfig

then save

# make

# make bzImage

# make modules

# make modules_install

# make install

Ph0enix2003 06-03-2004 10:43 PM

It sounds like you didn't select correct modules when creating the config.

red_over_blue 06-04-2004 10:41 AM

heema - With a 2.6 kernel, you "shouldn't" have to do a "make bzImage" anymore. However, I will give it a go later tonight when I try again. Also, a quick "make mrproper" before I start also might not be a bad idea.

Ph0enix2003 - I don't think that is the problem. The .config was provided with the rpm of the kernel source, and should be the same .config that was used to compile the kernel that I am actually running. All I simply did was add preemtible kernel, everything else was left as per the .config provided with the rpm.


Thanks for the suggestions so far, much appreciated.

SpaceTux 07-20-2004 02:08 AM

mrproper
 
It is exactly 'make mrproper' what made the difference over here!

It's even mentioned in the kernel-source "README.Mandrake" file!

It has to do with the fact that Mandrake allows you to compile new modules without re-compiling the whole kernel.

Backing up the ".config" file is a good idea, when you want to compile at least the same modules as in the binary kernel packages.


All times are GMT -5. The time now is 01:23 AM.