LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2003, 04:49 PM   #1
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
How do I recompile my own kernel for Mandrake?


under mandrake 9.1, i'm using kernel 2.4.21-0.25 but it is running for i565 when it should be i686...

how can i optimize the kernel for my i686? if i recompile my own kernel will it be compatible with mandrake's stuff? or can i get sources from mandrake's ftp's and recompile those?
 
Old 08-02-2003, 06:14 PM   #2
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
hiya,

no problem what so ever, i did just this a few weeks ago

what you need to do/ what i did:

1) decied where your going to get your kernel sources from:
either direct from the source: kernel.org or get them from mandrake.


2) get your self a howto; goto tldp ( The Linux Documentation Project ) and get the kernel howto. give it a read through make sure you understand the steps envolved and method of compiling a new kernel

3) either install your rpm, or move and unpack your kernel source to /usr/src and make sure you have your linux symbolic link setup

4) cd in to the linux directory, if your running Xwindows ( the linux gui ( kde, gnome, openbox or whatever you use ) )
then i would recommend running: make xconfig

this will bring up a nice gui for you to configure your kernel, make sure you compile in support for modules, ext3 and if you wish experimental stuff. if i am unsure i compile it as a module and then if i need it later then i dont have to make a new kernel when i need a feature.

5) follow your kernel build instructions through to the letter, i recommend you donot deviate from the path that has been put before you, from experience i can tell you, i have screwed up several times and its not a good feeling when the kernel panics and you cannot get back into the system which is my next point.

6) Back up, back up, back up
by default your mandrake install comes with ( or should do ) a failsafe option on your boot menu you must keep that there, i cannot tell you how many times that option has saved my skin. also, if you are updating a server thats mission critical and have a limited time to install the new kernel, i recommend keeping you old kernel installed and availible as an option on your menu


the above is not intended to put you off compiling your kernel, it just a caution of what could go wrong.
note: if you change your processor specification in the kernel and its higher than what you have in you computer the kernel will not run ( i beleve )

have a play
 
Old 08-02-2003, 06:40 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
wow, thx for the info and advice

i'll have to see when i can sit down peacefully and take a jab at this
 
Old 08-02-2003, 06:49 PM   #4
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
no problem

remember, any problems just ask, your problem could help some one else fix theirs.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 recompile Prism Slackware 8 08-30-2004 12:53 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Mandrake 9.2: Kernel Recompile / Update muzicman82 Mandriva 8 11-16-2003 12:31 AM
recompile mandrake kernel to let e100. know nourou6 Linux - Networking 1 01-06-2002 11:13 AM
recompile mandrake kernel to let e100. nourou6 Linux - Networking 0 01-06-2002 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 AM.

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