LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2011, 11:06 PM   #1
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 239

Rep: Reputation: 14
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 . Can any one tell me where i can find it?
any help would be appreciated.

Thanks & Regards,
NM04
 
Old 02-22-2011, 11:08 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Linux has no one, singular configuration file. When you say "modules", are you referring to kernel modules?
 
Old 02-22-2011, 11:13 PM   #3
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 239

Original Poster
Rep: Reputation: 14
yes I am referring to kernel modules.
 
Old 02-22-2011, 11:34 PM   #4
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
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.
 
Old 02-22-2011, 11:53 PM   #5
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 239

Original Poster
Rep: Reputation: 14
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.
 
Old 02-23-2011, 12:19 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
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

Last edited by GlennsPref; 02-23-2011 at 12:26 AM.
 
Old 02-23-2011, 12:31 AM   #7
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 239

Original Poster
Rep: Reputation: 14
glenn,
I already checked there,in "/boot" it contains the "bzImage" of the kernel and the grub folder.
 
Old 02-23-2011, 12:46 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Are you trying to compare modules that are installed?
If, so, you should have an installation report.
 
Old 02-23-2011, 12:53 AM   #9
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 239

Original Poster
Rep: Reputation: 14
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.
 
Old 02-23-2011, 01:25 AM   #10
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
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.
 
Old 02-23-2011, 01:34 AM   #11
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 239

Original Poster
Rep: Reputation: 14
glenn,
thanks for your response. There is no entry in the 'lsmod'. Does this mean there is no module installed ?

Regards.
 
Old 02-23-2011, 07:04 PM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
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

Last edited by GlennsPref; 02-23-2011 at 07:10 PM. Reason: ref
 
Old 03-09-2011, 01:19 AM   #13
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 239

Original Poster
Rep: Reputation: 14
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.
 
Old 03-14-2011, 04:31 AM   #14
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
I'm happy for you.

The same kind of thing has happened to me too.

Cheers, Glenn

ps. Please mark your thread as "SOLVED"
 
Old 03-14-2011, 05:04 AM   #15
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
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

Last edited by GlennsPref; 03-14-2011 at 05:05 AM. Reason: spelling
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to find out my linux kernal version and kernal configuration file location kamalmin Linux - Newbie 2 08-25-2010 02:35 AM
[SOLVED] Can not find kdm configuration file in 2009.1??? damgar Mandriva 6 11-03-2009 09:35 PM
Help! installing linux on Toshiba Laptop- couldn't find live image configuration file ieatthecookie Linux - Newbie 2 07-27-2009 10:44 PM
Where to find the GRUB configuration script file? piggysmile Red Hat 2 10-09-2004 04:15 PM
where can i find the configuration file for display settings in Redhat 9.0 joeyBig Red Hat 2 09-21-2004 12:44 PM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration