dmesg
Command Function
This command is used to control the dmesg buffer of the kernel.
Syntax
dmesg
dmesg [-c/-C/-D/-E/-L/-U]
dmesg -s [size]
dmesg -l [level]
dmesg > [fileA]
Parameters
Table 1 Parameter description
Usage
-
This command depends on LOSCFG_SHELL_DMESG. Before using this command, select Enable Shell dmesg on menuconfig.
Debug ---> Enable a Debug Version ---> Enable Shell ---> Enable Shell dmesg
-
If the parameters are not specified, all content in the buffer is printed.
-
The parameters followed by hyphens (-) are mutually exclusive.
- Before writing content to a file, ensure that the file system has been mounted.
- Disabling the serial port printing will adversely affect the shell. You are advised to set up a connection using Telnet before disabling the serial port.
Example
Example:
Run dmesg > /usr/dmesg.log.