View previous topic :: View next topic |
Author |
Message |
americanskin n00b
Joined: 05 Jun 2007 Posts: 18 Location: New Philadelphia, OH
|
Posted: Wed Nov 28, 2007 3:45 pm Post subject: Kernel Config problem |
|
|
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 |
|
|
neiljw Apprentice
Joined: 12 Nov 2007 Posts: 166 Location: Telford, UK
|
Posted: Wed Nov 28, 2007 4:29 pm Post subject: Re: Kernel Config problem |
|
|
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 |
|
|
americanskin n00b
Joined: 05 Jun 2007 Posts: 18 Location: New Philadelphia, OH
|
Posted: Wed Nov 28, 2007 4:59 pm Post subject: |
|
|
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 |
|
|
neiljw Apprentice
Joined: 12 Nov 2007 Posts: 166 Location: Telford, UK
|
Posted: Wed Nov 28, 2007 5:18 pm Post subject: |
|
|
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 |
|
|
americanskin n00b
Joined: 05 Jun 2007 Posts: 18 Location: New Philadelphia, OH
|
Posted: Wed Nov 28, 2007 6:15 pm Post subject: |
|
|
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 |
|
|
neiljw Apprentice
Joined: 12 Nov 2007 Posts: 166 Location: Telford, UK
|
Posted: Wed Nov 28, 2007 10:59 pm Post subject: |
|
|
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 |
|
|
americanskin n00b
Joined: 05 Jun 2007 Posts: 18 Location: New Philadelphia, OH
|
Posted: Thu Nov 29, 2007 4:14 pm Post subject: |
|
|
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 |
|
|
neiljw Apprentice
Joined: 12 Nov 2007 Posts: 166 Location: Telford, UK
|
Posted: Thu Nov 29, 2007 4:25 pm Post subject: |
|
|
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 |
|
|
IRQsRFun Apprentice
Joined: 02 May 2003 Posts: 195 Location: Somewhere between .3 and .7 Vdd
|
Posted: Fri Nov 30, 2007 12:17 pm Post subject: |
|
|
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
The top line will tell the kernel version you are running |
|
Back to top |
|
|
Mantaar Apprentice
Joined: 17 May 2007 Posts: 219
|
Posted: Fri Nov 30, 2007 2:01 pm Post subject: |
|
|
IRQsRFun wrote: |
You can also
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
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
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 |
|
|
|