Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
constant kernel recompilation tips
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
legit
Apprentice
Apprentice


Joined: 04 Jan 2006
Posts: 216
Location: Denver, CO

PostPosted: Mon Feb 26, 2007 10:34 pm    Post subject: constant kernel recompilation tips Reply with quote

Hey all,

I've realized that after setting up a gentoo system (or in my case a server) configuring everything else onto it generally requires updating the drivers installed into the kernel. I was wondering if it is ok to simply recompile the kernel and if it is how to do this easily from within the gentoo system already? thanks,
- legit
Back to top
View user's profile Send private message
macawgumbo
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 165

PostPosted: Mon Feb 26, 2007 11:22 pm    Post subject: Reply with quote

simply make sure your kernel sources are up to date:
Code:
# emerge -DuNa gentoo-sources


then follow this:
Code:
# cd /usr/src/linux
make menuconfig


Here you get your menu to configure all your options. I am assuming you are following server guides and realizing you need to compile in different options as you set things up so you know what to do here.

Code:
# make && make modules modules_install install
# mount /boot
# nano -w /boot/grub/grub.conf


Add an entry for the new kernel if the source was updated, if the source is the same as the running kernel, skip editing grub.

Reboot into the new kernel and enjoy!
Back to top
View user's profile Send private message
jseymour
Apprentice
Apprentice


Joined: 23 Jun 2006
Posts: 202
Location: Gainesville Florida

PostPosted: Tue Feb 27, 2007 2:33 am    Post subject: Reply with quote

Well if you have several kernels on the system, you can switch the symlink via eselect. For instance the following:

Code:
warpig jseymour # eselect kernel list
Available kernel symlink targets:
  [1]   linux-2.6.17-gentoo-r7 *
  [2]   linux-2.6.18-gentoo-r6
  [3]   linux-2.6.19-gentoo-r5


Now we just:

Code:
warpig jseymour # eselect kernel set 3
warpig jseymour #   


Now recheck:

Code:
warpig jseymour # eselect kernel list
Available kernel symlink targets:
  [1]   linux-2.6.17-gentoo-r7
  [2]   linux-2.6.18-gentoo-r6
  [3]   linux-2.6.19-gentoo-r5 *


Makes it very easy to configure and test kernels before committing it to default.
_________________
WebServerMasters
Gentoo Installation Flash Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum