Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

constant kernel recompilation tips

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
legit
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Wed Jan 04, 2006 4:16 am
Location: Denver, CO
Contact:
Contact legit
Website

constant kernel recompilation tips

  • Quote

Post by legit » Mon Feb 26, 2007 10:34 pm

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
Top
macawgumbo
Apprentice
Apprentice
Posts: 165
Joined: Fri May 28, 2004 1:12 am

  • Quote

Post by macawgumbo » Mon Feb 26, 2007 11:22 pm

simply make sure your kernel sources are up to date:

Code: Select all

# emerge -DuNa gentoo-sources
then follow this:

Code: Select all

# 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: Select all

# 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!
**The man with one ball uses Linux, the man with both uses Gentoo. Who do you think performs better?**
Top
jseymour
Apprentice
Apprentice
User avatar
Posts: 202
Joined: Fri Jun 23, 2006 4:07 am
Location: Gainesville Florida
Contact:
Contact jseymour
Website

  • Quote

Post by jseymour » Tue Feb 27, 2007 2:33 am

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

Code: Select all

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: Select all

warpig jseymour # eselect kernel set 3
warpig jseymour #   
Now recheck:

Code: Select all

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
Top
Post Reply

3 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic