LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 06-16-2009, 12:54 PM   #16
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40

Lionhard,

genkernel can do as much or as little of the kernel configuration and build process as your like.
However, its totally brain dead. I does not detect anything. Left to its own devices, it makes a generic totally modular kernel with most of the modules in the kernel tree compiled.

By defualt, it leaves out agpgart, DRM and sound support, which means manual intervention is required for any sound and some graphics cards.

Even on a system thats three or four years old, you can do a manual kernel configure and build faster than genkernel will build you a kernel.
 
Old 06-17-2009, 09:15 AM   #17
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
In fact, Genkernel will try to build every drivers that the kernel has, so instead of compiling your lan card driver, it will build maybe 25 drivers just to be sure that it will find your lan card on the reboot.

Genkernel is not optimised at all when we talk about kernel optimization (I mean the number of drivers that Genkernel needs to compile).
 
Old 06-18-2009, 07:02 AM   #18
mkborg
LQ Newbie
 
Registered: Apr 2008
Location: Russia, Moscow
Distribution: Gentoo
Posts: 6

Rep: Reputation: 1
Cool kernel build/install procedure

The following steps are necessary to change kernel:
- get kernel source
- get initial kernel config "/usr/src/linux/.config" file
- modify kernel config
- compile and install kernel
- compile and install kernel modules
- optionally create and install initial ram disk image
- reboot

The "genkernel" automates most of the steps. ;-)

Last edited by mkborg; 06-18-2009 at 07:12 AM. Reason: misprint
 
Old 06-18-2009, 09:07 AM   #19
PlatinumX
Member
 
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178

Original Poster
Rep: Reputation: 15
Quote:
I think that you are talking about the grsecurity stuff that you can configure in menuconfig (or xconfig or whatever you choose) before compiling your kernel. This stuff is just like the rest of the kernel configuration options: when you enable some option that can influence in the rest of the config in the sense that disabling a given option will also disable others that depend on this one not being set to be available.
Right, I mixed with this.

The conclusion I have from the dicussion is that maintaining a large amount of Gentoo Server configured on a special way (hardened in my case) can generate a lot of work compared to a binary distribution.
 
Old 06-18-2009, 09:41 AM   #20
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
It depends. If you have to compile your own kernel for some reason, all the distros are equally hard to maintain in this regard.

If you can live with the stock precompiled kernel then it will be easier (at least 99% of the time), no doubt.
 
Old 06-19-2009, 01:21 AM   #21
mkborg
LQ Newbie
 
Registered: Apr 2008
Location: Russia, Moscow
Distribution: Gentoo
Posts: 6

Rep: Reputation: 1
Smile maintenance burden

After computer (or "server" or "workstation") is installed and configured, the maintenance consist of the only two tasks:
- perform regular backups (to recover in case of hardware malfunction)
- apply security updates (to prevent use of newest exploits)
And there is no big difference between binary and source-based distributions.
 
Old 06-19-2009, 04:08 AM   #22
PlatinumX
Member
 
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178

Original Poster
Rep: Reputation: 15
Quote:
And there is no big difference between binary and source-based distributions.
I was not precised enough.
When i say binary distro, i mean pre-configured and binary kernel, instead of keeping my "tuning of the kernel" at every kernel released; where I have to re-qualify my kernel every time a kerlen is released.
 
Old 06-20-2009, 09:39 AM   #23
milomak
Member
 
Registered: May 2009
Posts: 90

Rep: Reputation: 17
if I am moving from 2.6.29 to 2.6.30, will copying the .config and then running make oldconfig work?
 
Old 06-20-2009, 10:51 AM   #24
milomak
Member
 
Registered: May 2009
Posts: 90

Rep: Reputation: 17
Quote:
Originally Posted by mkborg View Post
And there is no big difference between binary and source-based distributions.
except the time differences in installing as opposed to compiling packages. a gentoo update can take an hour or more on my laptop, yet maybe 15 minutes or less in debian on the same laptop. I would suggest that is a big difference.

EDIT: Though I compile my own kernels in Gentoo and Debian and they take roughly the same time. So from a kernel point of view yes there is no big difference.

Last edited by milomak; 06-20-2009 at 10:52 AM.
 
Old 06-20-2009, 01:34 PM   #25
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 40
milomak,

It worked for me. I didn't see any major reorganisations of the menu structure.
 
Old 06-21-2009, 03:06 AM   #26
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
Quote:
Originally Posted by milomak View Post
if I am moving from 2.6.29 to 2.6.30, will copying the .config and then running make oldconfig work?
"make oldconfig" always works as long as you answer the questions in the right way
 
Old 06-21-2009, 08:33 AM   #27
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
In fact, always double check your kernel with make menuconfig if you think that something is new or you are not sure about something.

When there something that change that refer to some hardware part, I always double check just to see if it still good.

For example, the intel wireless section changed a couple of months ago.
 
Old 06-24-2009, 02:21 PM   #28
milomak
Member
 
Registered: May 2009
Posts: 90

Rep: Reputation: 17
yeah i normally run make menuconfig after running make oldconfig. But I swear I read somewhere that it was advised not to do oldconfig, hence my question. but glad to see it is not going to cause issue (though it previously hasn't tbh).
 
Old 06-24-2009, 03:22 PM   #29
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
oldconfig is not good or bad per sé, you are the responsible for looking over each setting and making sure that the kernel you compile is suitable for your machine. It's good to get an overview of the things that are different between the two versions of the kernel, but oldconfig is not there for automation purposes, and it's not a substitute for the human factor nor for {menu,x}config.
 
  


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
Recompilation of the kernel? Nalec Linux - Newbie 1 12-19-2007 07:46 PM
kernel recompilation shrishailnk Linux - Networking 2 04-30-2006 10:05 PM
kernel recompilation shrishailnk Linux - General 4 04-11-2006 11:54 PM
Get agpgart as a loadalbe kernel module, without kernel recompilation? TruongAn Linux - Software 3 03-28-2006 10:44 AM
Kernel Recompilation Thomas_Delrue Linux - General 1 08-30-2001 04:11 PM


All times are GMT -5. The time now is 09:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration