View previous topic :: View next topic |
Author |
Message |
legit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/173205023243c05d1560c8f.gif)
Joined: 04 Jan 2006 Posts: 216 Location: Denver, CO
|
Posted: Mon Feb 26, 2007 10:34 pm Post subject: constant kernel recompilation tips |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
macawgumbo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 28 May 2004 Posts: 165
|
Posted: Mon Feb 26, 2007 11:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jseymour Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/131886942145f1b271caa96.jpg)
Joined: 23 Jun 2006 Posts: 202 Location: Gainesville Florida
|
Posted: Tue Feb 27, 2007 2:33 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|