Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile kernel and make yourself notes
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
Alan Turing
n00b
n00b


Joined: 10 Sep 2003
Posts: 53
Location: Freiburg, Baden (Germany)

PostPosted: Sun Aug 29, 2010 12:41 pm    Post subject: Compile kernel and make yourself notes Reply with quote

Meanwhile, I am configuring the kernel of my linux machines by myself for serveral years. But I seems to me that I am doing the same mistakes several times. At least I am searching the same information over and over again.

Therefore I started to make myself some notes about options that were necessary for a device to work or that caused problems.
Unfortunately this is teadious and ended in a mess.

One option would be to write my notes consequently in the .config file. But these comments might get lost while doing
make oldconfig and I prefer make menuconfig over editing the .config file with a texteditor.

Is there some tool like make menuconfig that allows to write own comments to configuration options?
How do you solve the problem of remembering the effect of every single configuration option to your computer?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Aug 29, 2010 12:57 pm    Post subject: Reply with quote

Alan Turing,

You must never edit the .config with a text editor. Many options in make menuconfig flip as many as four flags in the .config file.
If you don't get them all, correct, you will end up with a broken very hard to diagnose kernel.

I rarely configure a kernel from scratch, unless its a new system. Copying the .config to the new kernel, then running make oldconfig works. make menuconfig can be used for a last check.
_________________
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
XQYZ
Apprentice
Apprentice


Joined: 19 Jul 2009
Posts: 231
Location: Europe

PostPosted: Sun Aug 29, 2010 2:13 pm    Post subject: Reply with quote

NeddySeagoon wrote:
I rarely configure a kernel from scratch, unless its a new system. Copying the .config to the new kernel, then running make oldconfig works. make menuconfig can be used for a last check.


this mostly. I just make oldconfig and look over what's changed (usually nothing that concerns me).
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Aug 29, 2010 3:51 pm    Post subject: Reply with quote

Yeah I use that method too.
Back to top
View user's profile Send private message
Alan Turing
n00b
n00b


Joined: 10 Sep 2003
Posts: 53
Location: Freiburg, Baden (Germany)

PostPosted: Sun Aug 29, 2010 4:13 pm    Post subject: Reply with quote

I thought about it for a while and got an idea of a tool that solves my problem.

Screenshot of the tool I would like to have.

The tool should be like menuconfig but the 'Help page' of every option should provide the following additional information:

  • blue information
    List of decisions made in other configurations.
    Therefore the input of this tool has to be also a list of kernel configurations.
  • green information
    Comments added by myself about this options.
    Since they are not related to a specific kernel version or machine, this information has to be stored on a central server.


Now the question is: Does this tool, or something similar already exist?
Back to top
View user's profile Send private message
XQYZ
Apprentice
Apprentice


Joined: 19 Jul 2009
Posts: 231
Location: Europe

PostPosted: Sun Aug 29, 2010 4:56 pm    Post subject: Reply with quote

Alan Turing wrote:
The tool should be like menuconfig but the 'Help page' of every option should provide the following additional information


So you would comment all the thousand of config options like this and opening the help menu for each option each time you configure the kernel? I can't imagine anybody ever wanted to do it, but it might not be impossible to do.
Back to top
View user's profile Send private message
Alan Turing
n00b
n00b


Joined: 10 Sep 2003
Posts: 53
Location: Freiburg, Baden (Germany)

PostPosted: Sun Aug 29, 2010 5:49 pm    Post subject: Reply with quote

No, of corse not all. :wink:

The green information, should be only comments for myself about options that I had chosen wrong once. Maybe also options that took me several minutes of investigation before I made my decision.

The blue information should be generated automatically (given some .config files, e.g. configuration of a Live-CD)
Back to top
View user's profile Send private message
bear24rw
n00b
n00b


Joined: 17 Aug 2010
Posts: 28

PostPosted: Sun Aug 29, 2010 6:39 pm    Post subject: Reply with quote

I feel like it would be easier to just keep all your notes in a text file... how are you going to find them again out of the hundreds of menu options?

Something like:

Quote:
Device Drivers -> [*] I2C support -> <*> I2C device interface

Make sure this is selected for blah blah blah


I feel would be much easier and organized, when configuring a new kernel you can run down your notes really quick
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sun Aug 29, 2010 7:57 pm    Post subject: Re: Compile kernel and make yourself notes Reply with quote

Alan Turing wrote:
But I seems to me that I am doing the same mistakes several times. At least I am searching the same information over and over again.

:lol: :lol: :lol: I thought I was the only one like this... :oops:
Alan Turing wrote:
Therefore I started to make myself some notes about options that were necessary for a device to work or that caused problems.
Unfortunately this is teadious and ended in a mess.

:lol: :lol: :lol: Well, the only difference being that with me, it does not end in a mess...
It ends I do not know where because I loose my notes...
I nevertheless suspect my wife putting these in the dustbin... :roll:
Alan Turing wrote:
One option would be to write my notes consequently in the .config file.

++1 !! INDEED !!
That is exactly the way I do for my FreeBSD kernel configuration file. (And everybody actually does that way)
That is how I started doing with gentoo ! (Before knowing the number of options 8O 8O and learning that these comments were lost :evil: :evil:

I do second your request heartedly !
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