1828385 Members
3305 Online
109977 Solutions
New Discussion

Kernel Configurations

 
Ragni Singh
Super Advisor

Kernel Configurations

Hello Linux gurus,

I'm trying to install something on our advance server 2.1 running kernel 2.4.9 It is telling me to check if the following features are enabled. Where do I look for these features. Any help is greatly appreciated.

CONFIG_NET
CONFIG_BINFMT_ELF
CONFIG_INET
CONFIG_NETDEVICES.

Any help is greatly appreciated and points will be assigned.
4 REPLIES 4
Kelli Ward
Trusted Contributor

Re: Kernel Configurations

Hi,
On my Suse 8.1 system, those entries can be found in:

/boot/vmlinux.config
/boot/vmlinux.autoconf.h

HTH,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!
U.SivaKumar_2
Honored Contributor

Re: Kernel Configurations

Hi,

kernel features are defined in .config file

First install Kernel source RPM
Then
#cd /usr/src/linux-2.4.9
#vi .config

regards,
U.SivaKumar


Innovations are made when conventions are broken
Stuart Browne
Honored Contributor

Re: Kernel Configurations

As you are using RHAS, Kelli's example won't be much help unfortunately (as far as I'm aware, RH don't keep the config settings anywhere with an RPM install of just the kernel).

If you've compiled your own kernel, U.SivaKumar's response will be right on the money.

With a little reading (/usr/share/doc/kernel-doc/Configure.help), and some nutting out we can duduce the following things.

The existance of /proc/sys/net says that CONFIG_NET is enabled, just as /proc/sys/net/ipv4/ says that CONFIG_INET is enabled.

If you have a working network card in the system, CONFIG_NETDEVICES is enabled.

As for CONFIG_BINFMT_ELF, well this requires a little more exploration. Type:

file `which file`

It should return a string similar to:

/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

The fact that you could run this, and ELF binary, means that this config setting is set to either Y or M. Issuing:

lsmod | grep binfmt_elf

will show whether it's a module (M, it will show a line) or compiled into the kernel (Y, the above won't return anything).

Hope this helps.

One long-haired git at your service...
Kelli Ward
Trusted Contributor

Re: Kernel Configurations

Thanks for the info Stuart.
Although I have used a few versions of RH (quickly dropped in favor of Mandrake and Suse)
I have never had the opportunity to use Advanced Server.
Good to know, thanks again,
Kel
The more I learn, the more I realize how much more I have to learn. Isn't it GREAT!