Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Config problem
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
americanskin
n00b
n00b


Joined: 05 Jun 2007
Posts: 18
Location: New Philadelphia, OH

PostPosted: Wed Nov 28, 2007 3:45 pm    Post subject: Kernel Config problem Reply with quote

Here's my problem.

I installed gentoo using the sources from the live cd (I686 2007.0) because if I tried to do the Network installation where it goes out and emerges the sources from the web it would fail.

After this installation it had me use the Genkernel configuration. This works great except I need to enable the CIFS and SMB modules. I looked in my /usr/src/linux directory and it was empty so I emerged gentoo's sources and recompiled the kernel to use these file systems as built in "*".

After booting i get all kinds of errors. My guess is that the Genkernel configuration did not carry over when I tried to configure this new kernel.

My question is:

Is there a way to edit the Genkernel to support CIFS and SMB or is there a way to carry over the Genkernel config to my new emerged kernel sources?
_________________
"This is not Nam; This is bowling; There are rules" -Walter Socheck
Back to top
View user's profile Send private message
neiljw
Apprentice
Apprentice


Joined: 12 Nov 2007
Posts: 166
Location: Telford, UK

PostPosted: Wed Nov 28, 2007 4:29 pm    Post subject: Re: Kernel Config problem Reply with quote

americanskin wrote:
is there a way to carry over the Genkernel config to my new emerged kernel sources?


I don't know anything about genkernel but "make oldconfig" should do it, I would have thought.
_________________
Be lucky,

Neil
Back to top
View user's profile Send private message
americanskin
n00b
n00b


Joined: 05 Jun 2007
Posts: 18
Location: New Philadelphia, OH

PostPosted: Wed Nov 28, 2007 4:59 pm    Post subject: Reply with quote

wehn running make oldconfig it loaded up the configuration of the kernel I built that had the errors. Before emerging the new sources the /usr/src/linux directory was completely blank so the only thing it can load is the new kernel
_________________
"This is not Nam; This is bowling; There are rules" -Walter Socheck
Back to top
View user's profile Send private message
neiljw
Apprentice
Apprentice


Joined: 12 Nov 2007
Posts: 166
Location: Telford, UK

PostPosted: Wed Nov 28, 2007 5:18 pm    Post subject: Reply with quote

You need to delete the .config in the kernel directory first and the copy in /boot if there is one. Did genkernel put a copy of it's config in boot? Or maybe it keeps a copy in one of it's own directories. Worth looking. I find mc very handy at these times. ;)
_________________
Be lucky,

Neil
Back to top
View user's profile Send private message
americanskin
n00b
n00b


Joined: 05 Jun 2007
Posts: 18
Location: New Philadelphia, OH

PostPosted: Wed Nov 28, 2007 6:15 pm    Post subject: Reply with quote

where is the kernel dirctory by default? all i can see is the new sources i emerged
_________________
"This is not Nam; This is bowling; There are rules" -Walter Socheck
Back to top
View user's profile Send private message
neiljw
Apprentice
Apprentice


Joined: 12 Nov 2007
Posts: 166
Location: Telford, UK

PostPosted: Wed Nov 28, 2007 10:59 pm    Post subject: Reply with quote

americanskin wrote:
where is the kernel dirctory by default? all i can see is the new sources i emerged


/usr/src/linux. The binary then gets installed in /boot.
_________________
Be lucky,

Neil
Back to top
View user's profile Send private message
americanskin
n00b
n00b


Joined: 05 Jun 2007
Posts: 18
Location: New Philadelphia, OH

PostPosted: Thu Nov 29, 2007 4:14 pm    Post subject: Reply with quote

i know. but all of that is from the new kernel i downloaded. it was empty before that. so it isnt reading the genkernel config
_________________
"This is not Nam; This is bowling; There are rules" -Walter Socheck
Back to top
View user's profile Send private message
neiljw
Apprentice
Apprentice


Joined: 12 Nov 2007
Posts: 166
Location: Telford, UK

PostPosted: Thu Nov 29, 2007 4:25 pm    Post subject: Reply with quote

americanskin wrote:
i know. but all of that is from the new kernel i downloaded. it was empty before that. so it isnt reading the genkernel config


Yes, that's why I suggested deleting the .config you have created there. ;)

If it comes to the worst, creating a fresh .config using make menuconfig isn't exactly hard as long as you know your hardware. As long as you get the hard disk and nic working, you can always do the rest bit by bit. ;)
_________________
Be lucky,

Neil
Back to top
View user's profile Send private message
IRQsRFun
Apprentice
Apprentice


Joined: 02 May 2003
Posts: 195
Location: Somewhere between .3 and .7 Vdd

PostPosted: Fri Nov 30, 2007 12:17 pm    Post subject: Reply with quote

Try looking in /proc for a file config.gz. If the kernel was configured for this, this file will have the configuration of the running kernel. If it exists, I would extract this and copy it into /usr/src/linux, then "make old config" then make and install the kernel.

You can also
Code:

dmesg|less


The top line will tell the kernel version you are running
Back to top
View user's profile Send private message
Mantaar
Apprentice
Apprentice


Joined: 17 May 2007
Posts: 219

PostPosted: Fri Nov 30, 2007 2:01 pm    Post subject: Reply with quote

IRQsRFun wrote:

You can also
Code:

dmesg|less


The top line will tell the kernel version you are running

Err... if you want the top lines of some file or stream you usually would use head(1). So
Code:

dmesg|head

tail(1) does the same thing the other way round.

And if the only thing you want to do is find out which kernel you're running, how about
Code:

uname -r

:?:

My dmesg's gotten to be so long it won't show the top lines anymore because it already 'forgot' them ;-)
_________________
Error compiling committee.c: too many arguments to function.
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