Resource allocation isolation system and method of heterogeneous operating system, and storage medium
Through the resource allocation isolation system and methods of heterogeneous operating systems, the automation and standardization of resource configuration of heterogeneous operating systems is realized, the error problems caused by manual configuration are solved, and the stability and management efficiency of the system are improved.
Patent Information
- Application Number
- CN202510515572.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2045-04-23
AI Technical Summary
The existing heterogeneous operating system resource configuration process relies on manual operations, which leads to cumbersome and prone to errors, affecting system stability and reliability.
Provide a resource allocation isolation system and method for heterogeneous operating systems. Through the resource configuration generation module, it verifies the legitimacy of resource configuration isolation files, and generates configuration firmware containing non-real-time and real-time system resource allocation information. It uses non-real-time and real-time system resource configuration modules to automatically analyze configuration files to realize resource standardization and mutually exclusive verification.
It solves the problem of cumbersome manual configuration and easy to make mistakes, improves the resource management efficiency and operation stability of heterogeneous systems, avoids system startup failures and crashes, and provides efficient and reliable resource management support.
Smart Images

Figure CN120429110A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of integrated circuit design technology and computer system technology, and specifically relates to a resource allocation isolation system and method and a storage medium for heterogeneous operating systems. Background Art
[0002] In the field of integrated circuit design and computer systems, multi-core homogeneous SoCs (System on Chips) are widely used in embedded systems, storage control, and other fields because they integrate multiple processor cores with the same architecture, share system resources (such as memory and buses), and support parallel processing. Their core features include architectural consistency, development convenience, and scalability.
[0003] All processor cores use the same instruction set and microarchitecture (such as ARM Cortex-A73 and RISC-VC910). Data consistency is achieved through shared cache or unified memory access (UMA), simplifying task scheduling and resource allocation. The Hematite C910MP can be used to achieve multi-core collaboration through a superscalar architecture and shared bus. This shared architecture reduces software adaptation complexity, allowing for unified compilation and debugging tools. Computing power can be linearly increased by increasing the number of cores, leveraging the Hematite C910's multi-issue, multi-channel prefetching technology.
[0004] Multi-core homogeneous SoCs often run multiple operating systems to form an AMP (asymmetric multi-processing) heterogeneous system. For example, in the JFMQL100TAI900 chip, Cores 0 through 2 run the non-real-time Linux operating system, while Core 3 runs a real-time operating system, forming a typical heterogeneous system architecture.
[0005] Existing heterogeneous operating system resource isolation methods mainly include the isolation of CPU cores, memory, interrupts, and various peripheral controllers. This is achieved through the following steps:
[0006] (1) Non-real-time system resource configuration: disable and reserve resources required by the real-time operating system through the Linux device tree, and the Linux device tree parsing system obtains resource information and initializes it;
[0007] (2) Real-time system configuration generation: Manually enable the control macros of the corresponding resources in the real-time operating system configuration file, and generate the real-time operating system image after compilation.
[0008] Existing technologies rely on manual configuration, requiring resources to be configured independently in the Linux device tree and real-time system configuration files. This is cumbersome and prone to errors due to parameter conflicts or omissions. Furthermore, fault tolerance is poor, and configuration errors can cause the real-time operating system to fail to start or crash during runtime, impacting the stability and reliability of heterogeneous systems.
[0009] In view of this, the present invention is proposed. Summary of the Invention
[0010] In order to solve the above-mentioned technical problems existing in the prior art, the present invention provides a resource allocation isolation system and method, and a storage medium for a heterogeneous operating system, which can more conveniently perform resource configuration isolation, produce a complete resource configuration, solve the problem of abnormal real-time operating system caused by manual configuration errors, and make the entire heterogeneous operating system run more stably.
[0011] To achieve the above object, the technical solution of the present invention is as follows:
[0012] In a first aspect, a resource allocation isolation system for heterogeneous operating systems includes:
[0013] Resource configuration generation module: used to receive the resource configuration isolation file, verify the legitimacy of the resource configuration isolation file, and generate configuration firmware containing resource allocation information of non-real-time system and real-time system from the verified legal resource configuration isolation file;
[0014] The non-real-time system resource configuration module is used to read the configuration firmware of the resource configuration generation module, parse the configuration firmware into configuration fields, and parse the configuration fields to generate startup resources for the non-real-time system;
[0015] Real-time system resource configuration module: used to read the configuration firmware of the resource configuration generation module, extract the real-time system resource configuration in the configuration firmware and generate a configuration file compiled by the real-time operating system.
[0016] Furthermore, the resource configuration generation module includes:
[0017] Resource configuration verification module: used to verify the legitimacy of resources allocated to non-real-time systems and real-time systems in the received resource configuration isolation file;
[0018] Configuration firmware generation module: used to encapsulate the resource configuration isolation file verified by the resource configuration verification module into configuration firmware, and create an independent resource configuration partition on the Flash device where the non-real-time system firmware is stored, and burn the configuration firmware to the resource configuration partition through U-Boot.
[0019] Furthermore, the non-real-time system resource configuration module includes:
[0020] Configuration firmware acquisition module: used for reading the configuration firmware from the resource configuration generation module and loading it into the memory;
[0021] Parsing configuration module: used to convert resource information allocated to the non-real-time system in the configuration firmware into configuration fields through a preset parsing function;
[0022] Resource configuration module: used to input the configuration fields of the parsing configuration module into the device tree parsing system of the non-real-time system, and the resource data configuration output by the device tree parsing system is used for starting the non-real-time system.
[0023] Furthermore, the preset analysis function in the analysis configuration module is linux_res_analysis().
[0024] Furthermore, the configuration firmware acquisition module includes: an interface function and a firmware reading function for initializing the Flash storage device;
[0025] The firmware reading function loads the configuration firmware into the memory space of the non-real-time system for calling by the non-real-time system resource configuration module.
[0026] Furthermore, the real-time system resource configuration module includes:
[0027] Configuration firmware acquisition module: used for reading the configuration firmware from the resource configuration generation module and loading it into the memory;
[0028] Configuration parsing module: used to read the configuration firmware from the file system of the development host and identify the resource information allocated to the real-time system through the preset parsing function;
[0029] The resource configuration module is used to convert the identified resource information into the control macro field of the real-time operating system configuration file, and generate the configuration file required for the real-time operating system compilation through automatic generation function.
[0030] Furthermore, the preset analysis function in the analysis configuration module adopts rtos_res_analysis().
[0031] On the other hand, the present invention also provides a resource allocation isolation method for heterogeneous operating systems, which specifically includes the following steps:
[0032] Receive a resource configuration isolation file and verify the legitimacy of the resource configuration isolation file;
[0033] Generate configuration firmware containing resource allocation information of non-real-time system and real-time system from the verified legal resource configuration isolation file;
[0034] Reading the configuration firmware, parsing the configuration firmware into configuration fields, and parsing the configuration fields to generate startup resources for a non-real-time system;
[0035] The configuration firmware is read, the configuration firmware of the resource configuration generation module is read, the real-time system resource configuration in the configuration firmware is extracted, and a configuration file for real-time operating system compilation is generated.
[0036] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements the above-mentioned resource allocation isolation method for a heterogeneous operating system.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The resource allocation isolation system, method, and storage medium for a heterogeneous operating system provided by the present invention unify the resource configuration isolation file, generate firmware containing non-real-time and real-time system resource configurations through an automatic generator, and configure the two system resources separately after parsing by the corresponding modules, thereby solving the problem that traditional manual configuration is tedious and error-prone, realizing the standardization, automation, and mutual exclusion verification of resource allocation, avoiding system startup failures or crashes caused by configuration errors, improving the resource management efficiency and operation stability of heterogeneous systems, and providing efficient and reliable support for the operation of heterogeneous operating systems on multi-core processors. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of the architecture of a resource allocation isolation system for heterogeneous operating systems provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The technical solution of the present invention will be clearly described below in conjunction with the accompanying drawings. Obviously, the described embodiments are not all embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0041] It should be noted that, unless otherwise specifically stated, the relative arrangements of components and steps, and numerical expressions set forth in these embodiments should not be construed as limiting the scope of the present invention.
[0042] The following description of exemplary embodiments is merely illustrative and is not intended to limit the present invention, its application, or use in any sense. Technologies, methods, and apparatus known to those skilled in the art may not be discussed in detail herein, but to the extent applicable, such technologies, methods, and apparatuses should be considered part of this specification.
[0043] See Figure 1 , which is an architectural diagram of a resource allocation isolation system for a heterogeneous operating system proposed in the present invention. The system is an SoC resource configuration isolation system applied to a multi-core homogeneous SoC system. The core feature of the multi-core homogeneous SoC system is that all processor cores use the same instruction set and microarchitecture design, share system resources, and improve overall performance through parallel processing.
[0044] The resource allocation isolation system of the present invention specifically includes: a resource configuration generation module, a non-real-time system resource configuration module and a real-time system resource configuration module; specifically includes:
[0045] A1. Resource configuration generation module
[0046] This module is used to achieve unified management of heterogeneous system resource allocation, verify the legitimacy of the resource configuration isolation file, and generate configuration firmware containing resource allocation information for non-real-time and real-time systems from the verified legal resource configuration isolation file. Specifically, it includes:
[0047] A11. Resource Configuration Verification Module: This module is used to input and verify the validity of resource configuration. It receives the user-written SoC resource isolation configuration file UserResAllocaIsola.config through a unified interface. In this file, users can clearly specify the allocation of SoC resources such as CPU cores, memory, number of peripheral controllers, and type of peripheral controllers to non-real-time systems or real-time systems. The built-in resource configuration verification module checks the validity of the configuration based on preset rules, including:
[0048] Mutually exclusive allocation check: Ensures that the same resource is not allocated to both the non-real-time system and the real-time system at the same time to avoid resource conflicts. This is determined based on the corresponding SoC peripheral resource situation and the sum of the real-time and non-real-time resource allocations. Real-time and non-real-time resources cannot be duplicated. If this is illegal, the check fails, the configuration firmware cannot be generated, and the user is prompted to reconfigure.
[0049] Format compliance check: Verify that the configuration fields comply with the target SoC hardware specifications to avoid configuration file format logic errors.
[0050] A12. Configuration firmware generation module: This module is used to generate and store configuration firmware. The verified legal configuration file is encapsulated into the SoC resource configuration firmware UserResAllocaIsola.bin through the configuration firmware generation module. This SoC resource configuration firmware integrates complete information on dual-system resource allocation. Specific implementation steps include:
[0051] A new independent SoC resource configuration partition is added to the Flash device where the non-real-time system firmware is stored. UserResAllocaIsola.bin is burned to this partition through the U-Boot tool for the driver module of the non-real-time system (Linux) to read and call. At the same time, the firmware interface is opened to the development host (Ubuntu) to provide the real-time system configuration generator with homologous configuration data, ensuring the consistency and integrity of the resource allocation information of the two systems.
[0052] A2. Non-real-time system resource configuration module
[0053] As a driver module for the Linux system, this module reads the SoC resource configuration firmware burned into the Flash, identifies the non-real-time system resource configuration, and provides it for use in the non-real-time system configuration. Specifically, it includes:
[0054] A21. Configuration firmware acquisition module: used to read the configuration firmware from the resource configuration generation module and load it into the memory; the configuration firmware acquisition module includes: initializing Flash, implementing the function res_config_firmware() that reads the SoC resource configuration firmware UserResAllocaIsola.bin from Flash, and reading UserResAllocaIsola.bin into the memory through the resconfig_firmware() function for use by the next functional module of the non-real-time system SoC resource configurator.
[0055] A22. Configuration parsing module: used to convert resource information allocated to the non-real-time system in the configuration firmware into configuration fields through a preset parsing function; the preset parsing function in the configuration parsing module is linux_res_analysis(), which parses the SoC resources allocated by the user to the non-real-time system into configuration fields.
[0056] A23. Resource configuration module: The system resource configuration module of the non-real-time system SoC resource configurator connects the SoC resource information configuration field to the operating system device tree parsing system, allowing the non-real-time device tree parsing system to parse the SoC resources, and the non-real-time system is started with these resources.
[0057] A3. Real-time system resource configuration module
[0058] This module runs on the development host (Ubuntu), reads the SoC resource configuration firmware, identifies the real-time system resource configuration, and generates the configuration file RTOS.config required for real-time operating system compilation. It provides it for real-time system compilation. Specifically, it includes:
[0059] A31. Configuration firmware acquisition module: used to read the configuration firmware from the resource configuration generation module and load it into memory; the configuration firmware acquisition module directly uses the read() function to read the SoC resource configuration firmware UserResAllocaIsola.bin from the Ubuntu directory, reads the configuration firmware into memory, and provides it to the parsing configuration module for use.
[0060] A32. Configuration parsing module: used to read the configuration firmware from the file system of the development host and identify the resource information allocated to the real-time system through the preset parsing function; implement the rtos_res_analysis() function through the configuration parsing module to identify the SoC resources allocated to the real-time system by the user, and parse them into the fields of the real-time operating system configuration file for use by the real-time operating system configuration file generation module.
[0061] A33. Resource configuration module: Generates the real-time operating system .config configuration file through the real-time operating system _config() function to configure the SoC resource information field, which is used when compiling the real-time operating system.
[0062] In a second aspect, the present invention provides a resource allocation isolation method for a heterogeneous operating system, the method comprising:
[0063] Receive a resource configuration isolation file and verify the legitimacy of the resource configuration isolation file;
[0064] Generate configuration firmware containing resource allocation information of non-real-time system and real-time system from the verified legal resource configuration isolation file;
[0065] Reading the configuration firmware, parsing the configuration firmware into configuration fields, and parsing the configuration fields to generate startup resources for a non-real-time system;
[0066] The configuration firmware is read, the configuration firmware of the resource configuration generation module is read, the real-time system resource configuration in the configuration firmware is extracted, and a configuration file for real-time operating system compilation is generated.
[0067] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements the above-mentioned resource allocation isolation method for a heterogeneous operating system.
[0068] In summary, the present invention has the following advantages:
[0069] 1. Through the unified resource configuration isolation file, the automatic generator generates firmware containing non-real-time and real-time system resource configurations. After parsing by the corresponding modules, the two system resources are configured separately, solving the problem of tedious and error-prone traditional manual configuration;
[0070] 2. Through the standardization, automation and mutual exclusion verification of resource allocation, system startup failures or crashes caused by configuration errors can be avoided, and the resource management efficiency and operational stability of heterogeneous systems can be improved.
[0071] The above specific embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to examples, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the scope of the technical solutions of the present invention, and all of these should be included in the scope of the claims of the present invention.
Claims
1. A resource allocation isolation system for heterogeneous operating systems, characterized in that: include: Resource configuration generation module: used to receive the resource configuration isolation file, verify the legitimacy of the resource configuration isolation file, and generate configuration firmware containing resource allocation information of non-real-time system and real-time system from the verified legal resource configuration isolation file; The non-real-time system resource configuration module is used to read the configuration firmware of the resource configuration generation module, parse the configuration firmware into configuration fields, and parse the configuration fields to generate startup resources for the non-real-time system; Real-time system resource configuration module: used to read the configuration firmware of the resource configuration generation module, extract the real-time system resource configuration in the configuration firmware and generate a configuration file compiled by the real-time operating system.
2. The resource allocation isolation system for heterogeneous operating systems according to claim 1, characterized in that: The resource configuration generation module includes: Resource configuration verification module: used to verify the legitimacy of resources allocated to non-real-time systems and real-time systems in the received resource configuration isolation file; Configuration firmware generation module: used to encapsulate the resource configuration isolation file verified by the resource configuration verification module into configuration firmware, and create an independent resource configuration partition on the Flash device where the non-real-time system firmware is stored, and burn the configuration firmware to the resource configuration partition through U-Boot.
3. The resource allocation isolation system for heterogeneous operating systems according to claim 1, characterized in that: The non-real-time system resource configuration module includes: Configuration firmware acquisition module: used for reading the configuration firmware from the resource configuration generation module and loading it into the memory; Parsing configuration module: used to convert resource information allocated to the non-real-time system in the configuration firmware into configuration fields through a preset parsing function; Resource configuration module: used to input the configuration fields of the parsing configuration module into the device tree parsing system of the non-real-time system, and the resource data configuration output by the device tree parsing system is used for starting the non-real-time system.
4. The resource allocation isolation system for heterogeneous operating systems according to claim 3, characterized in that: The preset analysis function in the analysis configuration module is linux_res_analysis().
5. The resource allocation isolation system for heterogeneous operating systems according to claim 3, characterized in that: The configuration firmware acquisition module includes: an interface function for initializing the Flash storage device and a firmware reading function; The firmware reading function loads the configuration firmware into the memory space of the non-real-time system for calling by the non-real-time system resource configuration module.
6. The resource allocation isolation system for heterogeneous operating systems according to claim 1, characterized in that: The real-time system resource configuration module includes: Configuration firmware acquisition module: used for reading the configuration firmware from the resource configuration generation module and loading it into the memory; Configuration parsing module: used to read the configuration firmware from the file system of the development host and identify the resource information allocated to the real-time system through the preset parsing function; The resource configuration module is used to convert the identified resource information into the control macro field of the real-time operating system configuration file, and generate the configuration file required for the real-time operating system compilation through automatic generation function.
7. The resource allocation isolation system for heterogeneous operating systems according to claim 6, characterized in that: The preset analysis function in the analysis configuration module adopts rtos_res_analysis().
8. A resource allocation isolation method for heterogeneous operating systems, characterized in that: The specific steps include: Receive a resource configuration isolation file and verify the legitimacy of the resource configuration isolation file; Generate configuration firmware containing resource allocation information of non-real-time system and real-time system from the verified legal resource configuration isolation file; Reading the configuration firmware, parsing the configuration firmware into configuration fields, and parsing the configuration fields to generate startup resources for a non-real-time system; The configuration firmware is read, the configuration firmware of the resource configuration generation module is read, the real-time system resource configuration in the configuration firmware is extracted, and a configuration file for real-time operating system compilation is generated.
9. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which, when executed by a processor, implements a resource allocation isolation method for a heterogeneous operating system according to claim 8.
Citation Information
Patent Citations
System resource management method and device
CN115934351A
File system deployment method and device and computer program product
CN118939273A
Performance tuning configuration method and device for disk array card, equipment and medium
CN119225655A
Methods and apparatus for authenticating a firmware settings input file
EP3608821A1
Method and apparatus for distributing computer platform firmware across a network
US20020194313A1