Method and system for carrying out linux log management through virtual serial port
A virtual serial port and log technology, which is applied in the computer field, can solve the problems that cannot be used at the same time, the serial port resources of embedded devices are limited, and information cannot be checked back, so as to achieve the effect of complete and thorough acquisition, simple operation and strong versatility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0026] The present invention will be further described in conjunction with the accompanying drawings and specific embodiments.
[0027] As a specific example, such as figure 1 Shown, a kind of method of carrying out liunx log management by virtual serial port of the present invention comprises the following steps:
[0028] Step 1: Configure the system kernel startup parameters, close the occupation of the physical serial port by the system log output, the specific system configuration method is as follows, setenv bootargs mem=128M root= / dev / mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot), 3M (kernel), 13M (rootfs),
[0029] Step 2: Create a virtual serial port unit in the system kernel space, the virtual serial port unit has common serial port characteristics externally, and has a ring buffer inside the virtual serial port unit,
[0030] Step 3: Set up a log information acquisition unit, the log information acquisition unit is connected to the virtual serial port unit, o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 