Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken kernel
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
shadeheim
n00b
n00b


Joined: 03 Mar 2007
Posts: 56

PostPosted: Sun Mar 18, 2007 8:46 pm    Post subject: Broken kernel Reply with quote

Well, only took me a week to break my system. I stupidly disobeyed the warning not to edit the /usr/src/linux/.config file directly trying to get DMA on my drive working and thought hmm it doesn't matter I've got a config backed up. Then I realised I hadn't but that is a long and dumb story. Needless to say I rebooted and my fears were confirmed: a broken system. Anyway now I'm in a situation where I've been forced to revert back to a working kernel image in my bootloader. But since in my /usr/src/linux directory I still have the faulty .config file and no backups I need to know if there is a way to read in the values of the working kernel image file directly to get a working config file? Then I could just try and remember what changes I've made to the kernel in the past week. Otherwise I'm pretty much done for if I ever want to make a change to my kernel again; which obviously I do in order to get DMA working and stop the I/O freezes I've been getting when copying, compiling and hashing files.

Alternatively, since I'm fairly sure I only messed around with settings to do with DMA could someone copy and paste the default unchanged DMA settings. I've already tried by trial and error to guess what setting I changed and although I've probably missed one out I'm pretty sick of it. Would a Gentoo CD have the default .config on it?
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Sun Mar 18, 2007 8:53 pm    Post subject: Re: Broken kernel Reply with quote

shadeheim wrote:
Well, only took me a week to break my system. I stupidly disobeyed the warning not to edit the /usr/src/linux/.config file directly trying to get DMA on my drive working and thought hmm it doesn't matter I've got a config backed up. Then I realised I hadn't but that is a long and dumb story. Needless to say I rebooted and my fears were confirmed: a broken system. Anyway now I'm in a situation where I've been forced to revert back to a working kernel image in my bootloader. But since in my /usr/src/linux directory I still have the faulty .config file and no backups I need to know if there is a way to read in the values of the working kernel image file directly to get a working config file?
You can get the config file for the running kernel by
Code:
zcat /proc/config.gz >.config

_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
shadeheim
n00b
n00b


Joined: 03 Mar 2007
Posts: 56

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

Thanks very much and thank God for the diff command.
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