LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-19-2012, 05:18 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Compiling the kernel with default configurations


Assumptions:
  • The platform:
    Code:
    anisha@linux-dopx:~/> uname -a
    Linux linux-dopx 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux
  • The kernel downloaded is the latest stable one from kernel.org.
  • We let the defaults remain (make no changes) in the options of make menuconfig.
  • Simply type make, make install, grub-update, and reboot.
Now, following these assumptions, are we still required to make some additional changes to files or compile some extra drivers to ensure a error free reboot?

If yes, then on what things do those changes depend on?

Last edited by TheIndependentAquarius; 01-19-2012 at 05:19 AM.
 
Old 01-19-2012, 05:33 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,703
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
We let the defaults remain (make no changes) in the options of make menuconfig.
...hoping you did save the (unchanged) options, of course. I have compiled a kernel or two in my life, and I always assumed there to be no config info in the downloaded package (that would be totally useless, anyway). I always run menuconfig and save the config, even if no changes were made...so, in brief:

Quote:
Simply type make, make install, grub-update, and reboot.
...will not do...I guess...

But, that's just my feather of thought...

But, in answer of the question: no, I never make any extra changes other than running menuconfig to get an educationally guessed config to compile with...

And, again...my two cents...

Thor

Last edited by ButterflyMelissa; 01-19-2012 at 05:36 AM.
 
Old 01-19-2012, 05:39 AM   #3
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Thor_2.0 View Post
...hoping you did save the (unchanged) options, of course.
yeah, when we press the exit, it saves the changes? You are frightening me now~! ;-)

Quote:
Originally Posted by Thor_2.0 View Post
...will not do...I guess...
What? You guess is that it will fail or not?

also, this site is old now, but still does it hold totally true? http://www.cyberciti.biz/tips/compil...kernel-26.html
 
Old 01-19-2012, 05:53 AM   #4
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,406

Rep: Reputation: 246Reputation: 246Reputation: 246
Quote:
Originally Posted by Anisha Kaul View Post
[*]The kernel downloaded is the latest stable one from kernel.org.[*]We let the defaults remain (make no changes) in the options of make menuconfig.
If you wish to continue with your old (and working) configuration, use your old .config file:
cp /boot/config-old-version-number ./.config (after unpacking it)
and run: make oldconfig (or whatever you prefer/need, just make sure it's using your already existing .config).

Last edited by jens; 01-19-2012 at 05:56 AM.
 
1 members found this post helpful.
Old 01-19-2012, 06:00 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Writing mkinitrd -o initrd.img-2.6.25 2.6.25 is same as mkinitrd -o initrdXyz ? I didn't understand the trail of numbers at the end.

Last edited by TheIndependentAquarius; 01-19-2012 at 06:18 AM.
 
Old 01-19-2012, 06:00 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,703
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
yeah, when we press the exit, it saves the changes? You are frightening me now~! ;-)
Hehe, no, it does'nt automatically save anything, you'll have to tell it to save the config...and, sorry to have scared you...

Quote:
What? You guess is that it will fail or not?
If there's no config at hand, it will, unless you use jens' approach and use what the system already has.
 
Old 01-19-2012, 06:18 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by Anisha Kaul View Post
Writing mkinitrd -o initrd.img-2.6.25 2.6.25 is same as mkinitrd -o initrdXyz ? I didn't understand the trail of numbers at the end.
This explains it: http://oss.sgi.com/LDP/HOWTO/Kernel-...te_initrd.html
 
Old 01-19-2012, 07:24 AM   #8
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
you should find this helpful
http://muaythaimaster74.blogspot.com...re-kernel.html

http://alien.slackbook.org/dokuwiki/...kernelbuilding
 
  


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
Reset Yum and Synaptic to their default configurations JRR883 Linux - Software 3 10-19-2005 03:14 PM
about the configurations of fedora kernel wangjinyi Fedora 1 09-23-2005 07:56 AM
compiling default kernel suse 9.3 fireedo SUSE / openSUSE 6 08-11-2005 07:12 AM
kernel configurations jcombs_31 Slackware 2 01-04-2005 08:22 PM
can I change the default penguin logo, while compiling a new kernel? dyte100 Arch 3 10-29-2004 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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