LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-03-2004, 08:46 PM   #1
red_over_blue
LQ Newbie
 
Registered: Feb 2003
Location: MB, Canada
Posts: 26

Rep: Reputation: 15
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.
 
Old 06-03-2004, 09:11 PM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
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
 
Old 06-03-2004, 10:43 PM   #3
Ph0enix2003
Member
 
Registered: Jun 2004
Posts: 101

Rep: Reputation: 15
It sounds like you didn't select correct modules when creating the config.
 
Old 06-04-2004, 10:41 AM   #4
red_over_blue
LQ Newbie
 
Registered: Feb 2003
Location: MB, Canada
Posts: 26

Original Poster
Rep: Reputation: 15
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.
 
Old 07-20-2004, 02:08 AM   #5
SpaceTux
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
upgrade mandrake 9.2 kernel howto dred Mandriva 4 12-21-2004 03:23 AM
Mandrake 10.0 custom kernel problem pestie Mandriva 2 09-19-2004 12:09 AM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
standard or custom mandrake kernel? apberzerk Mandriva 3 10-26-2003 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration