Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Basic gentoo questions

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
belrpr
Guru
Guru
Posts: 440
Joined: Mon May 22, 2006 11:09 am

Basic gentoo questions

  • Quote

Post by belrpr » Sun Nov 19, 2006 11:22 pm

Hi,

I am quite good gentoo user but I still don't understand some basic gentoo options.

Does genkernel use the use flags too?
Anyone has a good guide to compile your kernel manual without over doing stuff. Like a basic config which every system needs and then I could add my hardware options to it?

What is the pro for genkernel and the downsides of it?

Thanks in advance.
Top
DocReedSolomon
Guru
Guru
User avatar
Posts: 419
Joined: Mon Aug 28, 2006 11:42 am

  • Quote

Post by DocReedSolomon » Sun Nov 19, 2006 11:39 pm

in general:
genkernel puts a lot of stuff in, to make most of the users happy.

in general it does not hurt, because most of the stuff is compiled as modules, and those are not loaded anyway if they are not needed.

finetuning your kernel depends on your hardware and needs,
do this "step by step" by running "make menuconfig" in /usr/src/linux.
not much different from SuSE or any other distro.

HTH

PS: USEflags have nothing to do with kernel compiling at all.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Mon Nov 20, 2006 1:26 am

Modules are a pain because you still need something which loads the modules - otherwise, they are unavailable. Thankfully, programs are getting better at doing this automatically, e.g. xorg will (shock horror) load the nvidia module if it finds that it needs the nvidia module, rather than dying in a heap.

This is why it is better to compile your own kernel, with the options compiled in that you know you want, and everything else excluded so that they can't mess up or bloat your system.
Top
jeanfrancis
Veteran
Veteran
User avatar
Posts: 1482
Joined: Sat Dec 17, 2005 3:22 pm
Location: Québec, Canada

  • Quote

Post by jeanfrancis » Mon Nov 20, 2006 1:56 am

PaulBredbury wrote:This is why it is better to compile your own kernel, with the options compiled in that you know you want, and everything else excluded so that they can't mess up or bloat your system.
Got a question... is there any advantage of using any option as a module, when I know that I will want it all the time? Some persons say to use as modules when it is possible... I wonder why.
Top
eltech
Guru
Guru
User avatar
Posts: 582
Joined: Tue Nov 05, 2002 11:21 pm
Location: New York

  • Quote

Post by eltech » Mon Nov 20, 2006 2:02 am

jeanfrancis wrote:
PaulBredbury wrote:This is why it is better to compile your own kernel, with the options compiled in that you know you want, and everything else excluded so that they can't mess up or bloat your system.
Got a question... is there any advantage of using any option as a module, when I know that I will want it all the time? Some persons say to use as modules when it is possible... I wonder why.
I would say that most suggest including myself to compile into the kernel if you need it all the time. make it static ..
Top
jmbsvicetto
Bodhisattva
Bodhisattva
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Mon Nov 20, 2006 2:02 am

Hi.
jeanfrancis wrote:Got a question... is there any advantage of using any option as a module, when I know that I will want it all the time? Some persons say to use as modules when it is possible... I wonder why.
In my opinion, the best examples of when/why one should use a driver as a module, instead of compiling it in the kernel, are with the network drivers and the sound card drivers. Most network drivers seem to work only as modules or to only allow to set some options if run as modules. ALSA seems to run better if the drivers are built as modules instead of in the kernel. Moreover, if you want to restart the alsa system, you should have the driver built as a module.
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Mon Nov 20, 2006 2:07 am

jmbsvicetto wrote:Most network drivers seem to work only as modules
Sounds like voodoo. I've not heard that.
to only allow to set some options if run as modules
Set the options in /boot/grub/menu.lst, e.g.:

Code: Select all

kernel /boot/kernel root=/dev/sda1 panic=30 vga=775 usbhid.mousepoll=2
That sets the mousepoll option for the usbhid "module" (compiled-in).
Top
jmbsvicetto
Bodhisattva
Bodhisattva
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Mon Nov 20, 2006 2:51 am

PaulBredbury,

you won't need to search for long before you find a post on these forums where the solution to someone's problem with the network was to compile the network drivers as a module instead of compliing it in the kernel. About the options I meant options for the network modules. The following was extracted from /usr/src/linux/Documentation/networking/bonding.txt
It is recommended that you configure the
driver as module since it is currently the only way to pass parameters
to the driver or configure more than one bonding device.
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
onlinepancakes
Apprentice
Apprentice
User avatar
Posts: 274
Joined: Tue Sep 05, 2006 2:02 am
Location: Surprise - AZ

  • Quote

Post by onlinepancakes » Mon Nov 20, 2006 4:04 am

Iv used Genkernel on my last two kernels (2.6.17-R7 and 2.6.18-R2) and it worked excellent with them. None of them had any issues at all. I also like the module way better. Havn't had any issues with them at all. Same goes with having Alsa built into the kernel rather than installing it myself. If you want to use Genkernel then I recommend it. Works like a charm.
Onlinepancakes --
Top
belrpr
Guru
Guru
Posts: 440
Joined: Mon May 22, 2006 11:09 am

  • Quote

Post by belrpr » Mon Nov 20, 2006 8:33 am

Does genkernel still optimize program using the flags?
Top
96140
Retired Dev
Retired Dev
Posts: 1324
Joined: Sun Jan 23, 2005 9:18 pm

  • Quote

Post by 96140 » Mon Nov 20, 2006 10:11 am

Here are some official documents to get you started:

Genkernel Guide

Gentoo Kernel Configuration Guide
Top
Crooksey
Apprentice
Apprentice
User avatar
Posts: 239
Joined: Wed Apr 26, 2006 12:56 pm
Location: Vatican City

  • Quote

Post by Crooksey » Mon Nov 20, 2006 12:44 pm

The Pro's of genkernel is that it compiles everything you need, sometimes more.

Downside, can install a module that may not work, like a framebuffer, then it isnt easy to remove it.

Genkernel also copys your new kernel and initramfs files to /boot, so you only need to change the numbering in grub.conf.
Top
welp
Retired Dev
Retired Dev
User avatar
Posts: 103
Joined: Sat Sep 24, 2005 7:07 pm
Location: Ipswich, UK
Contact:
Contact welp
Website

  • Quote

Post by welp » Tue Nov 21, 2006 1:12 pm

If you're building your own kernel, you'd generally want to build everything in. There are, as jmbsvicetto said, notable exceptions, such as the ALSA drivers and NIC drivers (although I always build mine in :))

I'd suggest you take a nice look at the links nightmorph posted, as well as the Gentoo ALSA Guide for configuration of your sound card.
Gentoo/BSD, Gentoo/Alt AT and Bugday lead
AMD64, Xfce, Sunrise, www-servers, net-irc, lang-misc, Artwork
If you find a bug, submit it! Bugzilla
Top
Post Reply

13 posts • Page 1 of 1

Return to “Installing Gentoo”

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