Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel .config screw-up
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
mikecrowe
n00b
n00b


Joined: 07 Feb 2005
Posts: 28

PostPosted: Fri Nov 18, 2005 9:48 pm    Post subject: Kernel .config screw-up Reply with quote

OK, I know better than this, so no disparagin comments.... :oops:

I was playing with Jack, and decided to add pre-emption and security to my kernel. Added those two (2.6.11-r4 version), compiled, installed, and kernel starts to panic when it gets an ethernet packet.

I tried to go back and remove those options, but now it panics with what I thought was my original .config.

So, I wanted to start again, but I can't see what a good, clean .config should look like. If I do a "make allnoconfig" (or something like that), I can get a bare-bones config. But I really want the config file for a good, general system.

Is that available somewhere?

TIA
Mike
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Fri Nov 18, 2005 9:49 pm    Post subject: Reply with quote

Delete your .config and run 'make menuconfig'?
Back to top
View user's profile Send private message
mikecrowe
n00b
n00b


Joined: 07 Feb 2005
Posts: 28

PostPosted: Fri Nov 18, 2005 9:52 pm    Post subject: Reply with quote

But that doesn't help in this respect. Something in the current .config is messed up.

Further, deleting .config actually doesn't clear it. You have to do the "make mrproper" or something like that.

The problem is, with everything reset, there are tons of config options with no defaults. I was trying to find something reasonably close to a standard system.
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Fri Nov 18, 2005 9:54 pm    Post subject: Reply with quote

I think a fresh menuconfig'd .config file is pretty close to a "standard system".
Back to top
View user's profile Send private message
mikecrowe
n00b
n00b


Joined: 07 Feb 2005
Posts: 28

PostPosted: Fri Nov 18, 2005 9:56 pm    Post subject: Reply with quote

I'll give it a shot. The time before, it didn't look very close.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Fri Nov 18, 2005 9:57 pm    Post subject: Reply with quote

mikecrowe,

Deleteing the .config and doing a make clean is adequate.
It won't fix your problem with knowing what you need to undo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mikecrowe
n00b
n00b


Joined: 07 Feb 2005
Posts: 28

PostPosted: Sat Nov 19, 2005 12:59 am    Post subject: Reply with quote

OK, just went through the process, new kernel (.11 - .14). Switched from compiling by hand to compiling by genkernel (completely built scratch -- new .config and everything).

Same error. I took a picture with my digital camera. The traceback looks like: http://mikecrowe.blogspot.com/

The error/panic code I'm getting is in the 8139too ethernet driver, but it has to be a setting I'm doing in the .config.

Any help?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Sat Nov 19, 2005 1:24 am    Post subject: Reply with quote

mikecrowe,

Well, 8139too needs Media Independant Interface support in the kernel. Try making 8139too as a loadable module and modprobing it by hand.

You may have made the kernel for the wrong CPU.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Sat Nov 19, 2005 2:04 am    Post subject: Reply with quote

I would have thought getting at an old config was pretty straightforward.
As per the handbook, I always copy over the .config to /boot with a release specific name. So even if you creamed the one for your current kernel, you should have a prior one there. Just use that and "make oldconfig" - gets you most of the way there. Or go fetch it from the old src tree - presuming you aren't an aggressive pruner.
Or try your luck with config.gz if you turn that on.

Hell, you'd have to think there'd be a usable copy laying around somewhere on your system.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Sat Nov 19, 2005 9:51 am    Post subject: Reply with quote

syg00,

I reccomend always having at least two kernels installed, making a mess of a config and not booting is fairly common.
Being able to choose a fallback from the menu is easier the recovering from the liveCD.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Sat Nov 19, 2005 11:21 am    Post subject: Reply with quote

Yep - I like the "at least" bit. I have a minimum of 3 - been up to 9 when I was experimenting heavily.
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