This is an old revision of the document!


Home tmade.de

Home Wiki

Kernel

Check loaded moduls:

lsmod 
cat /proc/modules 

Load manually a module:

modprobe modulename      #Loads module + dependencies
insmod modulename        #Loads just the module

Moduls are stored in:

cat /proc/moduls

Modprobe configuration:

/etc/modprobe.conf

Remove a loaded module:

rmmod modulename

Compile a Linux Kernel:

cd /usr/src/linux
make dep
make mrprop
make clean
make menuconfig
make
make CONFIG_DEBUG_SECTION_MISMATCH=y
make modules 
make modules_install
make install

Note:

Regular (vanilla) Kernelsources just know the command

make oldconfig

and reads in the content of the “.config” file (inside “/usr/src/linux/.config”)

The command

make cloneconfig 

reads the configuration of the running kernel (/proc/config.gz) and saves it as

.config

Kernel moduls are files stored in:

/lib/modules/kernel-version/

Kernel Commands

uname -r                #Show Kernel version
uname -a                #Show OS info 
cat /etc/issue          #Show OS info
cat /etc/SuSE-release   #Show OS info
cat /proc/cpuinfo 
cat /proc/meminfo 
cat /proc/mounts        #Is more reliable in conflicts/problems than /etc/mtab !!
cat /proc/filesystems 
cat /proc/partitions 
linux/kernel.1357135362.txt.gz · Last modified: 2017/12/09 01:10 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki