Debugging method and device of early serial port printing in Linux

An information transmission and space technology, applied in multi-programming installation, software testing/debugging, program startup/switching, etc., can solve the problems of inconvenient use, limited displayed information, lack of intuitive and efficient debugging information output methods, etc. The effect of rich debugging methods

Active Publication Date: 2015-04-01
ZTE CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It is very difficult to do early debugging in Linux. Before the Printk function is enabled (including early_printk added after version 2.6.22), there is no intuitive and efficient way to output debugging information.
Many technical developers use the method of lighting the indicator light on the device to obtain the working status of the current Linux system. This method is not only inconvenient to use, but also the information that can be displayed is quite limited

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Debugging method and device of early serial port printing in Linux
  • Debugging method and device of early serial port printing in Linux
  • Debugging method and device of early serial port printing in Linux

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In the present invention, Bootloader (bootloader) is a small program that runs before the operation of the operating system kernel. Through the Bootloader, hardware devices can be initialized and memory space mapping can be established, so as to bring the system's software and hardware environment to a suitable state, so as to prepare the correct environment for the final call of the operating system kernel.

[0030] Uart (Universal Asynchronous Receiver / Transmitter), commonly known as serial port, is a universal serial data bus for asynchronous communication. The bus bidirectional communication, can realize full-duplex transmission and reception. In embedded designs, UARTs are used to communicate with PCs, including monitoring debuggers and other devices such as EEPROMs.

[0031] refer to figure 1 As shown, it is a schematic flow chart of an embodiment of an early serial port printing debugging method in Linux of the present invention, and the method includes:

[00...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention claims debugging method and device of early serial port printing in Linux. The method comprises the following steps of: reserving an information delivery space in a CPU address space of an embedded single board; realizing serial port drive and printing functions in the phase of Bootloader, and saving addresses of the printing functions to the reserved information delivery space; sending the address of the reserved information delivery space used as a starting parameter to Linux; and acquiring the addresses of the printing functions realized in Bootloader from the information delivery space. The invention can realize instant printing of the real debugging information in the earliest period of starting Linux, thereby the development of Linux and the efficiency of transplantation are improved.

Description

technical field [0001] The invention relates to an early printing debugging method of an embedded device, in particular to an early printing debugging method of an embedded device using a Linux operating system. Background technique [0002] At present, the application range of the Linux operating system is very wide, and there are more and more embedded devices using Linux. On new devices, the transplantation and development of the Linux kernel has become the first technical difficulty in using Linux. [0003] For the transplantation and development of the Linux kernel, the first thing that needs to be solved is the problem of the debugging method. It is very difficult to do early debugging in Linux. Before the Printk function is enabled (including early_printk added after version 2.6.22), there is no intuitive and efficient way to output debugging information. Many technical developers use the method of lighting the indicator light on the device to obtain the working sta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36G06F9/48
Inventor 石东佳
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products