Uname command is used to print the current information system (the kernel version number, hardware architecture, the host name and the type of operating system, etc.),
Uname (option)
- a or - all: display all of the information;
- m or - machine: display computer type;
- n or - nodename: display on the network host name;
-r or - release: display issue number of the operating system;
-s or - sysname: display name of the operating system;
- v: displays the version of the operating system;
-p or - processor: output processor type or "unknown";
-i or - hardware - platform: output hardware platforms, or "unknown".
- or - operating system: o output operating system name;
-- help: show help;
Version - version: display information,
2. The lsmod command
Lsmod command is used to display has been loaded into the kernel module of state information, after lsmod command will list all recorded in the system module, the core of the Linux operating system has the characteristics of modular, should this during the compilation of the core, don't put all the functions in the core, you can use these functions are compiled into individual modules, to need to load respectively,
Command: # lsmod
3. The rmmod command
Rmmod command is used to remove from the currently running kernel specified kernel modules, perform the rmmod command, can remove unwanted module, the core of the Linux operating system has the characteristics of modular, should this during the compilation of the core, must put all the functions such as the core, you can use these functions are compiled into individual modules, respectively load them again when necessary,
Rmmod (option) (parameters)
Options:
- v: according to the instruction execution details;
- f: forcibly removed module, use this option more dangerous;
- w: waiting, until the module can be except when in removing the module;
The -s: send error messages to the system log (syslog),
Parameters: the module name (to remove the module name)
Command: # lsmod | grep XXX
# rmmod XXX
4. The insmod command
Insmod command is used to a given module is loaded into the kernel, Linux has many function modules, by, when you need to load the kernel, so can make the kernel is relatively compact, and improve efficiency, and maintain larger elastic, such loadable module, is usually a device driver,
Insmod (option) (parameters)
Options:
- f: do not check the kernel version and the version of the kernel module compile time are consistent, forced to load module;
K: sets the module to automatic unloading;
- m: output module load information;
- o
- p: test module can correctly into the kernel;
-s: all information will be recorded in system log files;
- v: execution according to detailed information; - x: don't export module external symbol; All the external symbol - X: export module, this is preset,
Parameter: a kernel module (to load the kernel module specified file)
Command: # insmod/lib/modules/stk3311 ko
5. The dmesg command
The dmesg command is used to check and control the kernel ring buffer, the kernel boot information will be stored in the ring buffer, if you are too late to check the information when the phone is switched on, can use the dmesg to view, boot information stored in the/var/log/dmesg file,
Dmesg (option)
Options:
- c: display information, clear ring the contents of the buffer;
- s
- n: set record information hierarchy,
Command: # dmesg | head
6. Get_module command
Get_module command is used to get the detailed information of the Linux kernel module
Grammar: get_module module name
Example: use the lsmod command to view the kernel module
# lsmod | head - 5
Use get_module command view the module details:
//# get_module XXX XXX is the module name
7. Check the development board has been using the break
# cat/proc/interrupts