LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where can i find configuration file of linux ?? (https://www.linuxquestions.org/questions/linux-newbie-8/where-can-i-find-configuration-file-of-linux-864421/)

NM04 02-22-2011 10:06 PM

where can i find configuration file of linux ??
 
hello experts,

I want to see what is the configuration of my Wind River Linux (actually I want to see what modules are installed in it when it was built). I can't find the configuration file :scratch:. Can any one tell me where i can find it?
any help would be appreciated.

Thanks & Regards,
NM04

indienick 02-22-2011 10:08 PM

Linux has no one, singular configuration file. When you say "modules", are you referring to kernel modules?

NM04 02-22-2011 10:13 PM

yes I am referring to kernel modules.

indienick 02-22-2011 10:34 PM

If the kernel source is provided by the distribution, then it should be kept in /usr/src/linux. In there, you will be able to find everything. The configuration file, I believe, is at /usr/src/linux/.config.

NM04 02-22-2011 10:53 PM

I also thought the same, but there is no such directory "linux" in the "/usr/src", instead it has "rpm". Thanks for your response, do you have any other suggestion ?

Regards.

GlennsPref 02-22-2011 11:19 PM

Hi, that just means you either do not (have)access to or the source files have not been installed.

You should be able to find a copy in /boot

NM04 02-22-2011 11:31 PM

glenn,
I already checked there,in "/boot" it contains the "bzImage" of the kernel and the grub folder.

EDDY1 02-22-2011 11:46 PM

Are you trying to compare modules that are installed?
If, so, you should have an installation report.

NM04 02-22-2011 11:53 PM

i am not trying to compare the modules, i want to check for a Ethernet module for my NIC's. because when i built the kernel i included modules for E100 and E10 family of intel(as i remember), and right now the kernel is not detecting the NIC, that is why i want to check whether i included the module for 1GB family of intel NIC's or not. Also i want some other information about the current configuration.

GlennsPref 02-23-2011 12:25 AM

If you have a standard kernel for/from your distribution, you may have to install the kernel headers. devel packages

Try
Code:

lsmod
to see you modules that are in use.

Code:

lspci
may give you more info.

Try it with -v for verbose.

NM04 02-23-2011 12:34 AM

glenn,
thanks for your response. There is no entry in the 'lsmod'. Does this mean there is no module installed ?

Regards.

GlennsPref 02-23-2011 06:04 PM

Quote:

Does this mean there is no module installed ?
No, it just means it's not loaded (lsmod), if it exists.

I suggest you shoot WindRiver an email.

It's based on the 2.6.34 kernel, which is stable and recent (not too old).

I could show you a kernel config, but it's a custom/Mandriva build and may not correlate.

Being an embedded system, I'm not sure how you would update or customise it.

This page seems to indicate that changes may be made, see "defconfig"
ref. https://wiki.pokylinux.org/wiki/Wind_River_Kernel

Regards Glenn

NM04 03-09-2011 12:19 AM

Glenn,

thanks for your response, and I apologize for being late. I guess I solved it, actually when I was building the kernel I did not included the module required for the intel 1000 family. I included it now, let see it works or not.

Regards.

GlennsPref 03-14-2011 03:31 AM

I'm happy for you. ;)

The same kind of thing has happened to me too.

Cheers, Glenn

ps. Please mark your thread as "SOLVED"

GlennsPref 03-14-2011 04:04 AM

the config file is a plain text file and you may see it,.

/usr/src/2.6.37-tmb-0.rc5.1mdv/.config

change the "/2.6.37-tmb-0.rc5.1mdv/" to suit your system.

You may require the sources (not just the dev-headers) to be installed.

BTW, did your rebuild of the kernel fix your problem?

Cheers Glenn


All times are GMT -5. The time now is 08:04 AM.