Research and Transplantation of MiniGUI in Embedded Linux-Linux general technology-Linux programming and kernel information. The following is a detailed description.
Introduction
1. Overview of GUI in Embedded Linux
1.1 position of GUI in Embedded Systems
With the extensive application of embedded systems, PDAs, set-top boxes, DVD/VCD players, and WAP mobile phones have become increasingly popular. The popularity of graphical user interfaces (GUI) is one of the major achievements of today's computer technology. It greatly facilitates the use of non-professional users, so real-time embedded systems are increasingly demanding GUI, and all of this requires a high-performance, high-reliability GUI support.
Because embedded systems have high real-time requirements and higher GUI requirements. These systems generally do not want to be built on a huge and cumbersome operating system or GUI that consumes a lot of system resources, such as Windows or X Windows, which is too large and bloated. In this way, these systems have more prominent requirements for light GUI. In addition, embedded systems are often customized devices with different GUI requirements. Some systems only require some graphical functions, while some systems require complete GUI support. Therefore, the GUI must also be customizable. The basic requirements of the embedded system for GUI include light, low resource occupation, high performance, high reliability and configurable [1].
1.2 GUI implementation in Embedded Systems
Although real-time embedded systems require more and more GUI, the current GUI implementation methods are different [1]:
① Some large manufacturers have the ability to develop their own GUI systems to meet their own needs.
② Some vendors have not separated the GUI from the application as a software layer, and the GUI support logic is the responsibility of the application itself. ③ Use some mature GUI systems, such as Mini GUI, MicroWindows or other GUI systems.
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // tech.ccidnet.com/pub/attachment/2006/9/848359.gif'); ">
Common GUI systems include the following: Compact X Window System, MiniGUI, MicroWindows, OpenGUI, and QT/Embedded. The following describes these systems.
(1) MiniGUI
MiniGUI [2] developed by Mr. Wei Yongming, a former Tsinghua University Instructor, is a graphical user interface Support System for embedded systems or real-time systems. It runs mainly on the Linux console and can actually run on any POSIX compatible system with POSIX thread support. MiniGUI is also one of the first free software projects in China. It will be described in detail later.
(2) MicroWindows
MicroWindows [3] is a well-known Open Source Embedded GUI software. MicroWindows provides some features of the modern graphic window system. MicroWindows API interfaces support Win32 APIs, which are intended to be fully compatible with Win32. It also implements some Win32 user module functions. MicroWindows uses a hierarchical design method, so that different layers can be rewritten as needed, basically implemented in C language. MicroWindows supports Intel 16-bit and 32-bit CPUs, MIPS R4000, and ARM chips. However, as a window system, the window processing function provided by this project needs to be further improved, for example, the implementation of controls or components is not complete, and the keyboard and mouse drivers are not complete.
(3) OpenGUI
OpenGUI [4] has existed on Linux for a long time. This library is written in C ++ and only provides C ++ interfaces. OpenGUI provides a high-level C/C ++ graphics/window interface based on an x86 graphics kernel implemented by assembly. OpenGUI provides two-dimensional drawing primitives, message-driven APIs, and BMP file format support. OpenGUI is powerful and easy to use. OpenGUI supports mouse and keyboard events. In Linux, drawing is implemented based on Frame buffer or SVGALib. Because of its Assembly-Based Kernel and MMX command optimization, OpenGUI runs very fast. Because its kernel is implemented in assembly, portability is affected. Generally, at the driver level, performance and portability are in conflict and a compromise must be found.