LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2005, 11:59 PM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
kernal config...


hi,
i am using mandrake, with KDE

i have to know the custem kernal configuration and compilation...
where and how to start the kernal compile?
i have downloaded one new kernal for that...
for complete config howlong will it take?
i have 3 systems are in LAN....
so for kernal compilatiton can i use that system CPU?(i mean parallel processing)
so that the time will reduce....
 
Old 03-13-2005, 12:46 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
The traditional location is /usr/src but Linus recommends your home directory (i.e., wherever you want) and I compiled my last one that way - either works.

Compile time depends on your box - I forget - 10-20 minutes for a reasonably fast box? Hours on a slow one. Config time depends on you but even if you blazed through it, it can take longer than the compile.

Not sure about the multi-machine - but yeah, you can do that to speed things up. distcc or something, I think.
 
Old 03-13-2005, 01:59 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
what are command should i give to build the kernal....
for that should i consider older kernal settings...
 
Old 03-13-2005, 02:06 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
'make oldconfig', but you can also just run 'make menuconfig' and, on the 2.6.whoozits (don't remember it from before) you can select an old config directly - believe it's the last top-level menu option.
 
Old 03-13-2005, 02:42 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
sir after compleating the #make menuconfig
should i give any other command to complate?
and finally how to setup a new kernal?

shell i choose my home directory?
 
Old 03-13-2005, 03:14 AM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Hm. Well, there should be several tutorials around the net. Have you looked into those? Also, if you've got the kernel source, it's got quite a bit of documentation. Oh, and there's a couple of excellent 'newbie kernel compiling guides' or something like that here at LQ. It also depends on what you're doing but usually 'make' and (as root if you haven't been yet) 'make modules_install' (have to check me on the specific syntax) would cover the next and then there's various ways to get the rest, but simply copying the kernel (buried somewhere in there - arch/386 or so) and the config and System.map to /boot should do - then edit your lilo.conf and keep your old kernel around (and in lilo) in case things didn't work out. I like to use the 'extraversion' number to keep them straight. Not sure how that works now that the kernel developers have lost their marbles and are using that for the new version numbering scheme.
 
Old 03-13-2005, 03:43 AM   #7
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Look at these links:
http://www.linuxquestions.org/questi...threadid=73436
http://www.digitalhermit.com/linux/K...FIGURATION-2-6
But there is also the README file in the top level directory of your kernel source for more information.
*My* suggestion would be to compile it in a directory like /home/Kernels/linux-your_version_here. Feel free to compile it wherever you want.
Summarizing, the main steps would be:
-unpack the source ('tar -xvzf linux-version' or 'tar -xjvf linux-version' for gz and bz2 files respectively)
-'cd linux-version' (your newly created directory)
-depending on what libraries you have installed, 'make (menu)/(old)/(x)config'
-take a look at the README file
-'make bzImage'
-'make modules'
-'su'
-'make modules_install'
-'cp arch/i386/boot/bzImage /boot/vmlinuz-version'
-edit your bootloader's config file to point to the new kernel
You might also need to create an initrd image but that is explained in the links I gave you.
Quote:
i have to know the custem kernal configuration and compilation...
where and how to start the kernal compile?
i have downloaded one new kernal for that...
I'm tired of saying this, but it's kernel, not kernal.
Quote:
for complete config howlong will it take?
On my machine (Athlon XP/2800+, 512 MB RAM), after completing the configuration step (that may vary depending on how quick clicker you are) in which I strip my kernel to a bare minimum for my machine, the kernel building takes around 5-7 minutes and the module building around 3 minutes; the installation of modules takes less than 1/4 a minute.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernal make config vernman Linux - Software 5 08-04-2004 11:06 PM
How to run XFree86 config and kernal compile minm Linux - Software 4 07-23-2004 06:24 PM
Guide Kernal Config/Driver install for NF7-S Rev 2.0 in Slackware 9.1 jimdaworm Slackware 0 02-09-2004 12:40 PM
Config NetComm SM4200 Modem Linux chipset 2.0 Kernal dick Linux - Networking 0 10-29-2003 10:38 PM
Arg! Can't config. and install the kernal, help! sabaka Linux - Newbie 4 09-14-2003 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration