Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a way to search the help text generated within the menuconfig help system?
I am aware of the slash command provided by menuconfig, however this only searches the the symbols used in .config. I am interested in searching the help file. This is because, some time ago I was trying to figure out what was causing sd_mod to be compiled as a module. I eventually found it with an Internet search. The module sd_mod was related to the symbol BLK_DEV_SD. The reason I could not find it with the built in search was that the symbol had little resemblance to the module name.
The help text for BLK_DEV_SD was as follows
Code:
To compile this driver as a module, choose M here and read
<file:Documentation/scsi/scsi.txt>.
The module will be called sd_mod.
Do not compile this driver as a module if your root file system
(the one containing the directory /) is located on a SCSI disk.
In this case, do not compile the driver for your SCSI host adapter
(below) as a module either.
Perhaps there is a way to dump all the help text to a single file that can be searched with traditional Unix search tools. Does anyone one know how I could have searched the help text to figure out how the module sd_mod was related to the symbol BLK_DEV_SD?
I have used this forever. Has a search box at the top, but isn't specific to the tool, so you have to filter out the results. I rarely (never) use the search, but may be what you want.
As pointed of above; search for "FRAME_POINTER" after make menuconfig by pressing '/' key. It'll display all the config option having this string. Press the number against the desired option. It'll take you to that specific Hardware configuration. Change configuration with a "space" key. Don't forget to save before exiting.
On my system, I got below output listed first
Symbol: FRAME_POINTER [=y]
Type : boolean
Prompt: Compile the kernel with frame pointers
Location:
-> Kernel hacking (1) -> Compile-time checks and compiler options
Last edited by minakshisondule; 11-14-2018 at 04:05 AM.
Cat and grep what? I am wanting to search the help info that is displayed inside the ncurses based menuconfig.
The information in the menuconfig helpfile comes from somewhere in /urc/src/linux and should be searchable.. Anyways, searching where that info is contained I came over something else that might be more helpful and do what it is you're trying to do:
I have used this forever. Has a search box at the top, but isn't specific to the tool, so you have to filter out the results. I rarely (never) use the search, but may be what you want.
I've used that too, it's pretty useful, but it doesn't contain all the info you need in all cases..
Congratulations to zeebra for linking me to the post on stackexchange.com. The quick and dirty solution is to grep all the files under the Linux source tree called Kconfig. then once I find a single file open the file in Emacs/Vim/etc and searching for the text in question. Here is an example based on a search for sd_mod. Replace sd_mod for the term your searching for.
I thought about creating a python script perform the search, but I'm not sure how often such a thing would come in handy.
ps. to minakshisondule, I see you have done the thing that I have done by mistake due to unbridled enthusiasm. I've been so eager to help someone else. I wish to help someone else because I don't want to be that person that request help but never helps someone else. I've seen the headline and though "OH OH OH I know the answer, I can solve this one.". Then in a hurry, I quickly read through the posts and missed the all important part where the OP has tried the thing I know how to do. It just did not work because of subtle problem the the OP explained in the first post. But it is good to keep trying instead of clamming up and not wanting to help.
Last edited by TheLexx; 11-14-2018 at 12:00 PM.
Reason: spelling
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.