View previous topic :: View next topic |
Author |
Message |
mikecrowe n00b
Joined: 07 Feb 2005 Posts: 28
|
Posted: Fri Nov 18, 2005 9:48 pm Post subject: Kernel .config screw-up |
|
|
OK, I know better than this, so no disparagin comments....
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 |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Fri Nov 18, 2005 9:49 pm Post subject: |
|
|
Delete your .config and run 'make menuconfig'? |
|
Back to top |
|
|
mikecrowe n00b
Joined: 07 Feb 2005 Posts: 28
|
Posted: Fri Nov 18, 2005 9:52 pm Post subject: |
|
|
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 |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Fri Nov 18, 2005 9:54 pm Post subject: |
|
|
I think a fresh menuconfig'd .config file is pretty close to a "standard system". |
|
Back to top |
|
|
mikecrowe n00b
Joined: 07 Feb 2005 Posts: 28
|
Posted: Fri Nov 18, 2005 9:56 pm Post subject: |
|
|
I'll give it a shot. The time before, it didn't look very close. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Fri Nov 18, 2005 9:57 pm Post subject: |
|
|
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 |
|
|
mikecrowe n00b
Joined: 07 Feb 2005 Posts: 28
|
Posted: Sat Nov 19, 2005 12:59 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Sat Nov 19, 2005 1:24 am Post subject: |
|
|
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 |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Sat Nov 19, 2005 2:04 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Sat Nov 19, 2005 9:51 am Post subject: |
|
|
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 |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Sat Nov 19, 2005 11:21 am Post subject: |
|
|
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 |
|
|
|