Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel versus kernel build
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
davimint
n00b
n00b


Joined: 14 Mar 2007
Posts: 23

PostPosted: Sat Mar 17, 2007 3:55 am    Post subject: genkernel versus kernel build Reply with quote

This is my first post as a Gentoo user so it's more than possible that I'll be asking something foolish but here it goes anyway. I've got Gentoo installed and yes I've got only about one year with other distro's in the experiance level. I read a little and I must say I'm impressed with the documentaion on my first two problems ( setting up cups and alsa ). But i'm stumped on the kerenel issue. It looks like Gentoo users have this wonderfull tool called genkernel to build hardware specific kernels but as I read it looks like the livecd install will not do the genkernel-all option and you must do that after your install or either build your own kernel. I've been building kernels since day one with Slackware so I don't have any problems with that so this is a two part question.

The reason for my question is that I need to install the nvidia driver unless theres a better option. I don't seem to have the source installed on my system after the install ( no /usr/src/linux )

I did not want to do anything stupid by building a kernel and installing it the same old way ( by the kernel docs ) and mess up whats been done so far.

I started the process in the kernel guide for Gentoo but when It went to emerge the gentoo source it got to a point and stoped. To explain better it was downloading from the mirror and then the mirror seemed not to have the source it was requesting.

Opps, I've alread did something stupid, I just tried to use the genkernel function again to make sure I had done everything correct the first time and NOW there is a problem. ( this is after I have installed cups and alsa )
Code:

localhost ~ # emerge -Dup world

These are the packages that would be merged, in order:

Calculating world dependencies \
emerge: there are no ebuilds to satisfy "sys-kernel/livecd-kernel".
(dependency required by "media-libs/alsa-lib-1.0.11" [ebuild])



!!! Problem resolving dependencies for media-sound/alsa-utils
!!! Depgraph creation failed.
localhost ~ #


Now I really need some help.
Back to top
View user's profile Send private message
jseymour
Apprentice
Apprentice


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

PostPosted: Sat Mar 17, 2007 4:03 am    Post subject: Reply with quote

Genkernel will make a general module that supports a lot of different hardware types, like the kernel on the live cd. The drawback is that the kernel is larger and bloated with unneeded modules. It is by far better, and once you do it once or twice easier, to manually configure the kernel for your hardware.

To use genkernel, you must emerge it. Instructions are in the installation guide for both.

Alternately see my Gentoo Linux: Configuring the kernel with Genkernel

or

Gentoo Linux: Manual Kernel Configuration Flash Tutorials.
_________________
WebServerMasters
Gentoo Installation Flash Tutorials
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Sat Mar 17, 2007 9:20 pm    Post subject: Reply with quote

I second jseymour: it should be better to just create your own kernel. The process does not really differ from other distros: emerge the kernel sources, configure, compile, install modules and then copy the image to /boot/ and configure your bootloader accordingly... If I am correct, you won't be needing the external ALSA sources; unless your hardware needs really bleeding-edge drivers, you should be fine with the in-kernel ALSA.

--edit--
I just noticed that your error is caused by alsa-lib; this is weird, the version you have installed is rather ancient - the current stable version is 1.0.14_rc1 . I would recommend to rip it (and any possible installation of alsa-driver) out, emerge and build a new kernel and then reemerge alsa-lib and set up ALSA again.
Back to top
View user's profile Send private message
davimint
n00b
n00b


Joined: 14 Mar 2007
Posts: 23

PostPosted: Sun Mar 18, 2007 8:20 pm    Post subject: Reply with quote

Thanks for the help,
Yes, it was old due to the fact I didn't understand that I needed to emerge --sync before I should do anything on a new install... Newbie mistake. I did try the genkernel out and it's not to bad but I'm going to build a custom kernel anyway.

davimint
Back to top
View user's profile Send private message
arpunk
n00b
n00b


Joined: 13 Jun 2006
Posts: 61
Location: Colombia

PostPosted: Sun Mar 18, 2007 9:04 pm    Post subject: Reply with quote

jseymour wrote:
The drawback is that the kernel is larger and bloated with unneeded modules.

Not entirely true. You can select which modules you want to load at boot time (and you can disable then for compilation with --menuconfig). Genkernel automates the process of building the kernel, but stills gives you the power of disable the stuff you don't need and tweak the options as you like.
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