Embedded operating system component configuration management system, method, equipment and medium

Through component management protocol design and algorithm optimization module, UI management module and internal support plug-in management module, the problems of poor flexibility of component management mechanism and lack of hardware adaptation standardization in embedded systems are solved, efficient operating system configuration management is achieved, and development efficiency and software reuse are improved.

CN120540648APending Publication Date: 2025-08-26XIAN MICROELECTRONICS TECH INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510633188.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

In modern embedded system development, there are problems such as poor flexibility of component management mechanism and lack of standardization of hardware adaptation, resulting in low software reuse and low development efficiency.

Method used

The component management protocol design and algorithm optimization module, the UI management module and the internal support plug-in management module are adopted to define component properties through protocol definition, provide graphical interface and data support, realize component selection management, parameter editing and intelligent retrieval, and simplify the operating system configuration process.

Benefits of technology

It improves the decoupling degree between components and hardware, improves the efficiency of cross-processor architecture transplantation, reduces the threshold for operating system development, simplifies the system development process, reduces duplicate work, and improves software reuse and development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120540648A_ABST
    Figure CN120540648A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of electronic information technology application, and relates to an embedded operating system component configuration management system, method and device and a medium. According to the method, different components are distinguished, component attributes are defined through protocol, protocol processing is carried out on the operating system components based on a processor architecture and the defined component attributes, and the processing sequence of a protocol is managed according to the components. A graphical interface is provided, the graphical interface comprises a component tree-shaped selection area, a parameter list editing area and a retrieval area, checking management, parameter editing and intelligent retrieval of the components are achieved, the component dependency relationship can be visually presented, and manual mistaken deletion of key components is avoided. And configuring and managing internal support plug-ins and processing component configuration data, including operating system resource processing, input and output file processing and operating system component relationship processing. According to the method, the system development process can be simplified, repeated work is reduced, the software reusability is improved, the development efficiency of the embedded operating system is improved, and the error rate is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electronic information technology applications and relates to an embedded operating system component configuration management system, method, equipment and medium. Background Art

[0002] A key requirement of modern embedded operating systems is to support flexible configuration, customization, and management of system functions. Decoupling operating system functional modules enables flexible addition and removal of functional modules within the system. A component is a set of functions, configuration files, and parameters that implement this system module decoupling.

[0003] The current operating system component functions can already meet basic requirements, but the flexibility of component relationship processing is still limited; component dependency processing cannot meet the requirements of more complex layered components; component configuration cannot intelligently match the required component type; the operation of component options is relatively complicated and not user-friendly enough.

[0004] Furthermore, with the rapid development of embedded systems, hardware architecture and software control are becoming increasingly complex. Today, most embedded system software runs on embedded operating systems. However, there are no unified specifications or standards for hardware selection in current embedded systems. This makes it impossible to directly use an embedded operating system on a specific target board. It requires a complex and lengthy modification process tailored to the target board's hardware characteristics. Furthermore, manually modifying the relevant code is prone to errors. Subsequent changes to the target board's hardware resources require corresponding changes to the operating system source code, significantly increasing the difficulty of developing embedded systems and consuming significant time and human resources.

[0005] In summary, modern embedded system development faces problems such as poor flexibility of component management mechanisms and lack of standardization of hardware adaptation, which leads to low software reuse and low efficiency of embedded operating system development. Summary of the Invention

[0006] The purpose of the present invention is to provide an embedded operating system component configuration management system, method, device and medium to solve the technical problems of poor flexibility of component management mechanism and lack of standardization of hardware adaptation in modern embedded system development.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, the present invention provides an embedded operating system component configuration management system, comprising: The component management protocol design and algorithm optimization module is used to distinguish different components, define component attributes through protocol, and perform protocol processing on operating system components based on the processor architecture and the defined component attributes, in accordance with the processing order of the component management protocol; The UI management module is used to provide a graphical interface. The graphical interface includes a component tree selection area, a parameter list editing area, and a search area, which implements component check management, parameter editing, and intelligent search; The internal support plug-in management module is used to configure and manage internal support plug-ins and process component configuration data, including operating system resource processing, input and output file processing, and operating system component relationship processing, providing data support for the UI management module.

[0008] Furthermore, the different components are distinguished by using the component keyword. The component attributes include: initialization function, header file, configuration reference file, function symbol, label, dependent components, and mutually exclusive components.

[0009] Furthermore, the component management protocol design and algorithm optimization module also includes: The component management protocol is optimized. The processing order of the optimized component management protocol is: _include_when, dependent component processing and mutually exclusive component processing, and only the upper-level component dependency of the current component is processed during user operation.

[0010] Furthermore, the UI management module includes: a component tree selection module, a component relationship synchronization module, a parameter list editing module and a component or parameter retrieval module; The component tree selection module is used to divide the component tree selection area into mandatory items and optional items. The mandatory items include the operating system kernel and basic drivers, and the optional items include peripheral drivers and dependent libraries. The component relationship synchronization module is used to synchronize component dependencies and mutual exclusion relationships in real time. When a component is checked, the dependencies are automatically added. When the component is unchecked, other components that only depend on this component are automatically removed. Parameter list editing module, which is used to provide parameter classification display, preset value drop-down selection and real-time verification of input range through the parameter list editing area; The component or parameter search module is used to search in the search area by keyword or parameter value, and display the search results in a highlighted manner in the component tree selection area and parameter list editing area.

[0011] Furthermore, the internal support plug-in management module also includes: The operating system resource processing module is used to classify, initialize, and serialize all operating system configuration elements and establish data structures corresponding to components and parameters; The input and output file processing module is used to parse the input CDF file, config.h file and makefile file to generate the image project intermediate file and the final operating system image file; The component relationship processing module is used to recursively parse the dependency and mutual exclusion relationships in XML and update the component check status in real time in the graphical interface.

[0012] Furthermore, the input and output file processing module is as follows: Get the operating system resource file of a given project, extract the parameter information and component information and save them in two lists, and rewrite the operating system resource file based on the parameter information and component information; Add the operation processing of the logical expression after segmentation, add the components after segmentation and the parameter truth judgment algorithm; After the configuration is completed, the tool chain supported by the target architecture is called to compile the operating system and generate the final operating system image file.

[0013] In a second aspect, the present invention provides a method for managing configuration of embedded operating system components, comprising the following steps: Differentiate between different components, define component attributes through protocolization, and perform protocolization on operating system components based on the processor architecture and the defined component attributes; Provides a graphical interface, which includes a component tree selection area, a parameter list editing area, and a search area. The graphical interface is used to implement component selection management, parameter editing, and intelligent search. Configuration management internally supports plug-ins and processes component configuration data, including operating system resource processing, input and output file processing, and operating system component relationship processing, providing data support for the UI management module.

[0014] In a third aspect, the present invention provides a method for using an embedded operating system component configuration management system, based on the embedded operating system component configuration management system, comprising the following steps: Get the target board parameters, and configure the hardware parameters based on the UI management module and the target board parameters; The embedded operating system component configuration management system generates configuration files based on hardware parameters and automatically compiles the source code to generate executable code. Generate target board source code based on the executable code and refer to the template file.

[0015] In a fourth aspect, the present invention provides an electronic device comprising: a processor; a memory for storing computer program instructions; and steps for implementing a method for configuring and managing components of an embedded operating system when executing the computer program.

[0016] In a fifth aspect, the present invention provides a storage medium storing computer program instructions. When the computer program instructions are loaded and executed by a processor, the processor executes the embedded operating system component configuration management method.

[0017] Compared with the prior art, the present invention has the following beneficial effects: The present invention distinguishes different components and defines component properties through protocolization, which is conducive to decoupling components from hardware, improving the efficiency of cross-processor architecture transplantation, and performing protocolized processing on operating system components based on the processor architecture and the defined component properties, and managing the processing order according to the component management protocol. A graphical interface is provided, which includes a component tree selection area, a parameter list editing area and a search area, to realize component check management, parameter editing and intelligent retrieval, which is conducive to users configuring the operating system according to their own usage needs when they are not familiar with the internal relationships of the operating system. The threshold for operating system development is lowered. The configuration management internal support plug-in and processing component configuration data, including operating system resource processing, input and output file processing and operating system component relationship processing, provide data support for the UI management module. The present invention can simplify the system development process, reduce duplication of work, improve software reuse, improve the efficiency of embedded operating system development, and reduce the error rate.

[0018] The method for using the embedded operating system component configuration management system of the present invention obtains target board parameters and configures hardware parameters based on a UI management module combined with the target board parameters, thereby improving hardware adaptation rate. The embedded operating system component configuration management system generates a configuration file based on the hardware parameters and simultaneously calls source code to automatically compile and generate executable code. Based on the executable code, target board source code is generated while referencing a template file, thereby improving embedded operating system development efficiency.

[0019] The electronic device and storage medium of the present invention can also simplify the system development process, reduce duplication of work, improve software reuse, enhance the efficiency of embedded operating system development, and reduce error rates. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is an overall block diagram of the operating system component configuration management method according to an embodiment of the present invention; Figure 2 This is an example diagram of a component management protocol according to an embodiment of the present invention; Figure 3 An example diagram is provided for optimizing a complex layered component portion of an embodiment of the present invention; Figure 4 This is a diagram of the configuration structure of embedded operating system component management according to an embodiment of the present invention; Figure 5 This is a flowchart of the embedded operating system component configuration management software according to an embodiment of the present invention; Figure 6 A schematic diagram of embedded operating system resource processing according to an embodiment of the present invention; Figure 7 A schematic diagram illustrating component mutual exclusion and dependency processing in an embodiment of the present invention; Figure 8 This is a rendering of an embodiment of the present invention; Figure 9 This is a flowchart of a new operating system project according to an embodiment of the present invention; Figure 10 An operating system configuration management diagram according to an embodiment of the present invention; Figure 11 Generate an operating system diagram for compiling an embodiment of the present invention; Figure 12 A system module connection diagram of an embodiment of the present invention; Figure 13 This is a module connection diagram of the UI management module according to an embodiment of the present invention; Figure 14 A module connection diagram of an internal support plug-in management module according to an embodiment of the present invention; Figure 15 This is a flow chart of the embedded operating system component configuration management method according to an embodiment of the present invention; Figure 16 This is a flow chart of a method for using the embedded operating system component configuration management system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0022] It should be noted that the terms "first," "second," and the like in the description of the present invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.

[0023] The present invention is described in further detail below with reference to the accompanying drawings: See also Figure 12 , the present invention discloses an embedded operating system component configuration management system, including: a component management protocol design and algorithm optimization module, a UI management module and an internal support plug-in management module; The component management protocol design and algorithm optimization module is used to distinguish different components and define component properties through protocol, which is conducive to decoupling components from hardware and improving the efficiency of cross-processor architecture migration. The operating system components are processed according to the protocol based on the processor architecture and the defined component properties, and the processing order is based on the component management protocol. In the embodiment of the present invention, the different components are distinguished by using the component keyword; The component attributes include: initialization function, header file, configuration reference file, function symbol, label, dependent components, and mutually exclusive components.

[0024] In an embodiment of the present invention, the component management protocol design and algorithm optimization module further includes: Optimize the component management protocol. The processing order of the optimized component management protocol is: _include_when, dependent component (require) processing, and mutually exclusive component (mutex) processing. During user operation, only the upper-level component dependency of the current component is processed; Modify the processing of _include_when="AB" to: when creating a project (input XML and config.h), set the condition for _include_when to be true to (A&&B); The xml description contains multiple _include_when attributes, so that (A||B) can be achieved.

[0025] The UI management module is used to provide a graphical interface. The graphical interface includes a component tree selection area, a parameter list editing area, and a search area. It implements component check management, parameter editing, and intelligent search. It helps users configure the operating system according to their own needs even if they are not familiar with the internal relationships of the operating system. See also Figure 13 ,In the embodiment of the present invention, the UI management module includes: a component tree selection module, a component relationship synchronization module, a parameter list editing module, and a component or parameter retrieval module; The component tree selection module is used to divide the component tree selection area into mandatory items and optional items. The mandatory items include the operating system kernel and basic drivers, and the optional items include peripheral drivers and dependent libraries. The component relationship synchronization module is used to synchronize component dependencies and mutual exclusion relationships in real time. When a component is checked, the dependencies are automatically added. When the component is unchecked, other components that only depend on this component are automatically removed. Parameter list editing module, which is used to provide parameter classification display, preset value drop-down selection and real-time verification of input range through the parameter list editing area; The component or parameter search module is used to search in the search area by keyword or parameter value, and display the search results in a highlighted manner in the component tree selection area and parameter list editing area.

[0026] The internal support plug-in management module is used to configure and manage internal support plug-ins and process component configuration data, including operating system resource processing, input and output file processing, and operating system component relationship processing, providing data support for the UI management module.

[0027] See also Figure 14 ,In the embodiment of the present invention, the internal support plug-in management module further includes: an operating system resource processing module, an input and output file processing module, and a component relationship processing module; The operating system resource processing module is used to classify, initialize, and serialize all operating system configuration elements and establish data structures corresponding to components and parameters; The input and output file processing module is used to parse the input CDF file, config.h file and makefile file to generate the image project intermediate file and the final operating system image file. The details are as follows: Get the operating system resource file of a given project, extract the parameter information and component information and save them in two lists, and rewrite the operating system resource file based on the parameter information and component information; Add the operation processing of the logical expression after segmentation, add the components after segmentation and the parameter truth judgment algorithm; After the configuration is completed, the tool chain supported by the target architecture is called to compile the operating system and generate the final operating system image file.

[0028] The component relationship processing module is used to recursively parse the dependency and mutual exclusion relationships in XML and update the component check status in real time in the graphical interface.

[0029] See also Figure 15 Based on the above system, the present invention also discloses a configuration management method for embedded operating system components, comprising the following steps: S1, distinguish different components, define component properties through protocolization, and perform protocol processing on operating system components based on processor architecture and defined component properties; In the embodiment of the present invention, the component attributes include: initialization function, header file, configuration reference file, function symbol, label, dependent components, and mutually exclusive components.

[0030] In an embodiment of the present invention, the following steps are further included: Optimize the component management protocol. The processing order of the optimized component management protocol is: _include_when, dependent component (require) processing, and mutually exclusive component (mutex) processing. During user operation, only the upper-level component dependency of the current component is processed; Modify the processing of _include_when="AB" to: when creating a project (input XML and config.h), set the condition for _include_when to be true to (A&&B); The xml description contains multiple _include_when attributes, so that (A||B) can be achieved.

[0031] S2 provides a graphical interface, which includes a component tree selection area, a parameter list editing area, and a search area. The graphical interface is used to implement component selection management, parameter editing, and intelligent search, as follows: The component tree selection area is divided into mandatory and optional items. The mandatory items include the operating system kernel and basic drivers, and the optional items include peripheral drivers and dependent libraries. Real-time synchronization of component dependencies and mutual exclusion relationships. When a component is checked, dependencies are automatically added. When unchecked, other components that only depend on this component are automatically removed. The parameter list editing area provides parameter classification display, preset value drop-down selection and real-time verification of input range; Search in the search area using keywords or parameter values, and display the search results in a highlighted manner in the component tree selection area and parameter list editing area.

[0032] S3, configuration management internal support plug-ins and processing component configuration data, including operating system resource processing, input and output file processing and operating system component relationship processing, provides data support for the UI management module.

[0033] In an embodiment of the present invention, the following steps are further included: Classify, initialize, and serialize all operating system configuration elements and establish data structures corresponding to components and parameters; Parse the input CDF file, config.h file and makefile file to generate the image project intermediate file and the final operating system image file; Recursively parse the dependencies and mutual exclusion relationships in XML, and update the component check status in real time in the graphical interface.

[0034] The present invention can simplify the system development process, reduce duplication of work, improve software reuse, enhance the efficiency of embedded operating system development, and reduce the error rate.

[0035] See also Figure 16 Based on the embedded operating system component configuration management system, the present invention also discloses a method for using the embedded operating system component configuration management system, including the following steps: S1, obtain the target board parameters, and configure the hardware parameters according to the UI management module and the target board parameters, which is conducive to improving the hardware adaptation rate; S2, the embedded operating system component configuration management system generates a configuration file based on the hardware parameters, and at the same time calls the source code to automatically compile and generate executable code.

[0036] S3, generates target board source code based on executable code and refers to template files at the same time, which is beneficial to improving the efficiency of embedded operating system development.

[0037] Example 2: Based on the Lishan embedded operating system integrated development environment, this paper proposes an efficient, reliable, and easy-to-use operating system configuration management method and develops a set of visualization tool plug-ins for embedded operating system component configuration management. Based on the configurable and customizable features of the embedded operating system, this paper provides users with a graphical interface for configuring and managing operating system-related functions. The operating system configuration management software accesses the operating system's configurable content through the target system's configuration framework and provides functions such as system optimization and configuration customization in a visual format.

[0038] The main contents of this invention are divided into three parts: component management protocol design and algorithm optimization, UI management module plug-in and operating system component configuration management internal support plug-in. Figure 1 As shown, the three parts work together to complete the entire method and function and provide users with the required services.

[0039] S1, component management protocol design and algorithm optimization; like Figure 2 The following figure shows the basic protocol definition for component management. Components are distinguished by the component keyword, and each component includes protocol details such as initialization functions, header files, configuration reference files, function symbols, labels, dependent components, and mutually exclusive components. We've standardized these protocols for all common operating system components based on processor architectures, allowing users to further expand upon them as needed.

[0040] like Figure 3 As shown, under the existing technology, the _include_when attribute usually adds all the components it contains to the require items of the specified component, which is not conducive to fine-grained tailoring by users. The present invention is optimized based on the current component processing ideas, and the processing of _include_when="AB" is modified to: when creating a project (input xml and config.h), the condition for _include_when to be established is set to (A&&B); the xml description contains multiple _include_when attributes, so that (A||B) can be achieved; when the user checks or cancels the operation in the interface, only the upper-level components of the component are processed. The progressive order of processing items is optimized to: _include_when-->require-->mutex, that is, first process _include_when, then process require, then process mutex, and then process the dependent relationship components.

[0041] S2, UI management module plug-in; This module inherits the overall design style of the Lishan embedded operating system integrated development environment and creates a new operating system resource configuration editor. It is divided into three parts: component tree selection area, parameter list editing area, and component or parameter retrieval area. The structure of the three parts is as follows: Figure 4 shown.

[0042] S21, operating system component tree selection area; The operating system component tree selection area is used to select all components supported by the operating system. Users can select or deselect components by clicking the checkboxes in the operating system component tree selection area. Components are divided into mandatory and optional sections based on the operation. Required sections include the embedded operating system kernel and component drivers necessary for user secondary development; optional sections include peripheral drivers and associated dependent libraries.

[0043] This section also provides synchronization of operating system component dependencies and mutual exclusions. When a user selects a component, its associated components are automatically selected; when a user unchecks a component, all other components that depend on it are automatically unchecked. The system also synchronizes and corrects operating system component relationships through real-time event processing and operating system generation to ensure the correct configuration of operating system components.

[0044] S22, parameter list editing area; The parameter list editing area is mainly used to display and input all parameter information contained in the currently selected operating system component.

[0045] This section categorizes and displays all parameter information, verifying in real time whether the user's input parameter values ​​are within the correct range. The parameter input section has been optimized to provide preset values ​​for each parameter in a drop-down list, which the user can select or enter directly. If an input error occurs, a pop-up error message dialog box will be displayed to alert the user.

[0046] S23, component or parameter retrieval area; The component or parameter search area provides an intelligent search function to facilitate user operation of operating system components. In this area, users can search by keyword or directly by parameter value. Search results are highlighted in the tree selection area and parameter list area.

[0047] S3, internal support plug-in for operating system component configuration management This part implements the configuration management data processing function of all operating system components and provides data and related functional support for the UI management module.

[0048] The operating system component configuration management internal support plug-in is the core content of the present invention and is divided into three parts: operating system resource processing, input and output file processing, and operating system component relationship processing.

[0049] The main process of the present invention is as follows Figure 5 As shown in the figure, users use a graphical interface to configure hardware parameters based on the development board they are using. The embedded operating system configuration management software then generates a configuration file and automatically compiles the source code to generate executable code. The automatic source code generation program uses the configuration file generated by the graphical configuration interface and template files to generate the target board source code. The automatically generated target source code can be directly added to the corresponding project, allowing upper-level application developers to perform secondary development within this framework.

[0050] The use process of the present invention mainly consists of the following three stages: Phase 1: Create an image project and configure all XML files for system components (reading the common part, architecture (arch) part, and type (smp / up) part of the components in turn according to the project information). Determine the initial state of each component based on its description; (input, graphics) Phase 2: Reading user-defined components or parameters. This process involves reading preprocessor statements in the file, which functions like a simple preprocessor. First, it is analyzed by C preprocessor, and then the final defined components are analyzed and processed in sequence; (configuration, source code, and final file) Phase 3: After generating the component configuration list, read the corresponding components based on the user's operation (check or cancel), and analyze and process the dependencies or dependencies, mutual exclusion, and parameter relationships of the components.

[0051] In summary, the present invention has the following beneficial effects: 1) Operating system resource processing; Operating system resource processing refers to the classification, initialization, establishment of data structures corresponding to components and parameters, and serialization of all operating system configuration elements. Figure 6 As shown, the present invention classifies all operating system resources and forms corresponding CLASSes, each of which contains data definitions and methods of the corresponding class.

[0052] 2) Input and output file processing; The input and output of this invention are both files. Before configuring the operating system components, you need to input the component and parameter relationship file CDF, the macro definition file config.h under the BSP, and the operating system compilation guide file makefile. After processing through this invention, the output is the image engineering intermediate file and the final executable operating system image file.

[0053] This section primarily parses the input file and, based on the parsed model, establishes a corresponding data structure to facilitate subsequent data reading. The following are the main processing algorithms: obtaining the operating system resource file for a given project, processing the config.h file under a given BSP, saving the resulting parameter and component information in two lists, and rewriting the operating system resource file; adding the operation processing of the split logical expression, adding the split components and parameter truth check algorithm; and using the XML file-based parsing algorithm.

[0054] After the configuration is completed, the tool chain supported by the target architecture is called to compile the operating system and generate the final operating system image file.

[0055] 3) Operating system component relationship processing; Operating system component relationship processing mainly manages the mutual exclusion and dependency relationships between components and parameters, and displays them in real time in the graphical interface according to user operations.

[0056] This invention integrates methods for handling mutually exclusive and dependent relationships into the XML file processing class. During file parsing, these two relationships are recursively processed, marked in the corresponding data structures, and displayed in a tree-like interface by ticking them. This allows users to intuitively understand the relationships between components while operating.

[0057] like Figure 7 As shown in the figure, the cache support component is used as an example to introduce the mutual exclusion and dependency processing process of operating system components.

[0058] The present invention realizes all functions of operating system component configuration management through the above three parts. It provides users with a convenient, fast and reliable method for configuring the operating system, and can adjust the initial structure of the operating system through the input file CDF according to the target architecture, and can quickly build a new operating system image, providing strong support for embedded project development. The use of the present invention can greatly reduce the difficulty of developing embedded systems, reduce the repetitive work of developers, and shorten the R&D cycle of embedded products. The effects of the invention are as follows: Figure 8 shown.

[0059] Example 3: This invention is developed based on the Lishan embedded operating system integrated development environment, has completed the required functions, and has been applied and verified in multiple models and projects. The results of use are as follows: By using the present invention, only three steps are required to configure and generate an operating system image.

[0060] first step: like Figure 9 As shown, create a new operating system project.

[0061] Step 2: like Figure 10 Configure the operating system components as shown.

[0062] Step 3: like Figure 11 As shown, generate an operating system image.

[0063] An electronic device comprises: a processor; a memory for storing computer program instructions; and a method for implementing a configuration management method for components of an embedded operating system when executing the computer program.

[0064] A storage medium stores computer program instructions. When the computer program instructions are loaded and run by a processor, the processor executes a method for managing configuration of embedded operating system components.

[0065] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0066] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0067] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0068] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0069] The above content is only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the present invention.

Claims

1. An embedded operating system component configuration management system, characterized in that: include: The component management protocol design and algorithm optimization module is used to distinguish different components, define component attributes through protocol, and perform protocol processing on operating system components based on the processor architecture and the defined component attributes, in accordance with the processing order of the component management protocol; The UI management module is used to provide a graphical interface. The graphical interface includes a component tree selection area, a parameter list editing area, and a search area, which implements component check management, parameter editing, and intelligent search; The internal support plug-in management module is used to configure and manage internal support plug-ins and process component configuration data, including operating system resource processing, input and output file processing, and operating system component relationship processing, providing data support for the UI management module.

2. The embedded operating system component configuration management system according to claim 1, characterized in that: The different components are distinguished by using the component keyword. The component attributes include: initialization function, header file, configuration reference file, function symbol, label, dependent components, and mutually exclusive components.

3. The embedded operating system component configuration management system according to claim 1, characterized in that: The component management protocol design and algorithm optimization module also includes: The component management protocol is optimized. The processing order of the optimized component management protocol is: _include_when, dependent component processing and mutually exclusive component processing, and only the upper-level component dependency of the current component is processed during user operation.

4. The embedded operating system component configuration management system according to claim 1, characterized in that: The UI management module includes: a component tree selection module, a component relationship synchronization module, a parameter list editing module and a component or parameter retrieval module; The component tree selection module is used to divide the component tree selection area into mandatory items and optional items. The mandatory items include the operating system kernel and basic drivers, and the optional items include peripheral drivers and dependent libraries. The component relationship synchronization module is used to synchronize component dependencies and mutual exclusion relationships in real time. When a component is checked, the dependencies are automatically added. When the component is unchecked, other components that only depend on this component are automatically removed. Parameter list editing module, which is used to provide parameter classification display, preset value drop-down selection and real-time verification of input range through the parameter list editing area; The component or parameter search module is used to search in the search area by keyword or parameter value, and display the search results in a highlighted manner in the component tree selection area and parameter list editing area.

5. The embedded operating system component configuration management system according to claim 1, characterized in that: The internal support plug-in management module also includes: The operating system resource processing module is used to classify, initialize, and serialize all operating system configuration elements and establish data structures corresponding to components and parameters; The input and output file processing module is used to parse the input CDF file, config.h file and makefile file to generate the image project intermediate file and the final operating system image file; The component relationship processing module is used to recursively parse the dependency and mutual exclusion relationships in XML and update the component check status in real time in the graphical interface.

6. The embedded operating system component configuration management system according to claim 5, characterized in that: The input and output file processing module is as follows: Get the operating system resource file of a given project, extract the parameter information and component information and save them in two lists, and rewrite the operating system resource file based on the parameter information and component information; Add the operation processing of the logical expression after segmentation, add the components after segmentation and the parameter truth judgment algorithm; After the configuration is completed, the tool chain supported by the target architecture is called to compile the operating system and generate the final operating system image file.

7. A method for managing configuration of components of an embedded operating system, characterized in that: The following steps are involved: Differentiate between different components, define component attributes through protocolization, and perform protocolization on operating system components based on the processor architecture and the defined component attributes; Provides a graphical interface, which includes a component tree selection area, a parameter list editing area, and a search area. The graphical interface is used to implement component selection management, parameter editing, and intelligent search. Configuration management internally supports plug-ins and processes component configuration data, including operating system resource processing, input and output file processing, and operating system component relationship processing, providing data support for the UI management module.

8. A method for using an embedded operating system component configuration management system, based on the embedded operating system component configuration management system according to any one of claims 1 to 6, characterized in that: The following steps are involved: Get the target board parameters, and configure the hardware parameters based on the UI management module and the target board parameters; The embedded operating system component configuration management system generates configuration files based on hardware parameters and automatically compiles the source code to generate executable code. Generate target board source code based on the executable code and refer to the template file.

9. An electronic device comprising: Processor; memory, electronic device for storing computer program instructions; characterized in that it is used to implement the steps of the embedded operating system component configuration management method as claimed in claim 7 when executing the computer program.

10. A storage medium storing computer program instructions, characterized in that: When the computer program instructions are loaded and executed by a processor, the processor executes the embedded operating system component configuration management method according to claim 7.