A resource allocation isolation system and method for heterogeneous operating systems, storage medium
By using a unified resource configuration isolation file and an automated generator to generate firmware, the problem of error-prone manual configuration of heterogeneous operating systems is solved, and the standardization and automation of resource allocation are achieved, thereby improving system stability and management efficiency.
Patent Information
- Application Number
- CN202510515572.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2045-04-23
AI Technical Summary
Existing methods for isolating resources in heterogeneous operating systems rely on manual operations, which makes the configuration process cumbersome and error-prone, affecting system stability and reliability.
This paper provides a resource allocation isolation system and method for heterogeneous operating systems. By using a unified resource configuration isolation file, an automated generator is used to generate firmware containing resource configurations for both non-real-time and real-time systems. The system then configures the resources of the two systems separately through module parsing, thereby achieving standardization and automation of resource allocation.
It solves the problem of error-prone manual configuration, avoids system startup failures or crashes, and improves the resource management efficiency and operational stability of heterogeneous systems.
Smart Images

Figure CN120429110B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of integrated circuit design and computer system, and particularly relates to a resource allocation isolation system and method of a heterogeneous operating system, and a storage medium. BACKGROUND
[0002] In the field of integrated circuit design and computer system, multi-core homogeneous SoC (System on Chip) is widely used in embedded systems, storage control and other fields due to its integration of multiple same-architecture processor cores, sharing of system resources (such as memory, bus, etc.) and support for parallel processing. Its core features include: architecture consistency and development convenience and scalability.
[0003] All processor cores use the same instruction set and microarchitecture (such as ARM Cortex-A73, RISC-V C910), and data consistency is achieved through shared cache (Cache) or unified memory access (UMA), which simplifies task scheduling and resource allocation. Iron C910MP can be used to achieve multi-core collaboration through superscalar architecture and shared bus. The same architecture reduces software adaptation complexity, and the compilation and debugging tools can be uniformly applied; by increasing the number of cores, the computing power can be linearly improved, and the multi-shot and multi-channel prefetching technology of Iron C910 can be used.
[0004] Multi-core homogeneous SoC often runs multiple operating systems to form an AMP (Asymmetric Multiprocessing) heterogeneous system. For example, in the JFMQL100TAI900 chip, Core0~Core2 run the non-real-time system Linux, and Core3 runs the real-time operating system, forming a typical heterogeneous system architecture.
[0005] The existing resource isolation method of heterogeneous operating systems mainly includes the isolation of CPU cores, memory, interrupts and various peripheral controllers, which is achieved through the following steps:
[0006] (1) Non-real-time system resource configuration: disable and reserve the resources required by the real-time operating system through the Linux device tree, and obtain resource information and initialize the system through the Linux device tree parsing system;
[0007] (2) Real-time system configuration generation: manually enable the control macro of the corresponding resource in the real-time operating system configuration file, and generate the real-time operating system image after compilation.
[0008] The existing technology has the problems that the configuration process relies on manual operation, and resources need to be configured independently in the Linux device tree and the real-time system configuration file, which is tedious and prone to errors due to parameter conflicts or omissions. Moreover, the fault tolerance is poor, and configuration errors may cause the real-time operating system to fail to start or crash during operation, affecting the stability and reliability of the heterogeneous system.
[0009] In view of this, the present application is proposed. SUMMARY
[0010] In order to solve the above technical problems in the prior art, the present application provides a resource allocation isolation system and method for a heterogeneous operating system, a storage medium, which can more conveniently perform resource configuration isolation, generate perfect resource configuration, solve the situation that a real-time operating system is not normal due to manual configuration errors, and enable the entire heterogeneous operating system to operate more stably.
[0011] To achieve the above object, the technical scheme of the present application is as follows.
[0012] In a first aspect, a resource allocation isolation system for a heterogeneous operating system comprises:
[0013] A resource configuration generation module is configured to receive a resource configuration isolation file, verify the legality of the resource configuration isolation file, and generate a configuration firmware containing non-real-time system and real-time system resource allocation information from the verified resource configuration isolation file.
[0014] A non-real-time system resource configuration module is configured to read the configuration firmware of the resource configuration generation module, parse the configuration firmware into configuration fields, and generate a startup resource for a non-real-time system from the configuration fields.
[0015] A real-time system resource configuration module is configured to read the configuration firmware of the resource configuration generation module, extract real-time system resource configuration from the configuration firmware, and generate a configuration file for compiling a real-time operating system.
[0016] Further, the resource configuration generation module comprises:
[0017] A resource configuration verification module is configured to verify the legality of resources allocated to a non-real-time system and a real-time system in a received resource configuration isolation file.
[0018] A configuration firmware generation module is configured to encapsulate the resource configuration isolation file verified by the resource configuration verification module into a configuration firmware, create an independent resource configuration partition on a Flash device storing a non-real-time system firmware, and burn the configuration firmware into the resource configuration partition through U-Boot.
[0019] Further, the non-real-time system resource configuration module comprises:
[0020] A configuration firmware acquisition module is configured to read the configuration firmware from the resource configuration generation module and load it into a memory.
[0021] An analysis configuration module is configured to convert resource information allocated to a non-real-time system in the configuration firmware into configuration fields through a preset analysis function.
[0022] a resource configuration module, configured to input the configuration field of the parsing configuration module into a device tree parsing system of the non-real-time system, and the resource data output by the device tree parsing system is used to start the non-real-time system.
[0023] Further, the preset parsing function in the parsing configuration module is linux_res_analysis().
[0024] Further, the configuration firmware obtaining module comprises 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, so as to be called by the resource configuration module of the non-real-time system.
[0026] Further, the real-time system resource configuration module comprises:
[0027] a configuration firmware obtaining module, configured to read the configuration firmware from the resource configuration generation module and load the configuration firmware into the memory;
[0028] a parsing configuration module, configured to read the configuration firmware from the file system of the development host, and identify the resource information allocated to the real-time system by using a preset parsing function;
[0029] a resource configuration module, configured to convert the identified resource information into a control macro field of a real-time operating system configuration file, and generate the configuration file required for compiling the real-time operating system by using an automatic generation function.
[0030] Further, the preset parsing function in the parsing configuration module is rtos_res_analysis().
[0031] In another aspect, the present application further provides a resource allocation isolation method for a heterogeneous operating system, and the specific steps comprise:
[0032] receiving a resource configuration isolation file and verifying the legality of the resource configuration isolation file;
[0033] generating a configuration firmware containing the resource allocation information of the non-real-time system and the real-time system from the verified resource configuration isolation file;
[0034] reading the configuration firmware, parsing the configuration firmware into configuration fields, and generating the starting resource of the non-real-time system by parsing the configuration fields;
[0035] reading the configuration firmware, reading the configuration firmware of the resource configuration generation module, extracting the real-time system resource configuration in the configuration firmware, and generating a configuration file for compiling the real-time operating system.
[0036] In a third aspect, the present application further provides a computer readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the resource allocation isolation method of the heterogeneous operating system.
[0037] Compared with the prior art, the present application has the following beneficial effects:
[0038] The resource allocation isolation system and method of the heterogeneous operating system, and the storage medium provided by the present application solve the problems of complicated and error-prone manual configuration, realize the standardization, automation and mutual exclusion verification of resource allocation, avoid system startup failure or crash caused by configuration errors, improve the resource management efficiency and running stability of the heterogeneous system, and provide efficient and reliable support for the running of the heterogeneous operating system on the multi-core processor. BRIEF DESCRIPTION OF DRAWINGS
[0039] Figure 1 The present application provides a heterogeneous operating system resource allocation isolation system architecture diagram. DETAILED DESCRIPTION
[0040] The technical solutions of the present application will be described clearly below with reference to the accompanying drawings. Obviously, the described embodiments are not all the embodiments of the present application, and all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.
[0041] It should be noted that, unless otherwise specified, the relative arrangement and numerical expression of the components and steps described in these embodiments should not be understood as limiting the scope of the present application.
[0042] The following description of exemplary embodiments is merely illustrative in nature and is in no way intended to limit the present application and its application or use in any way. Techniques, methods and devices known to those skilled in the relevant art may not be discussed in detail herein, but should be considered as part of the present specification when applicable.
[0043] Reference Figure 1 The present application provides a heterogeneous operating system resource allocation isolation system architecture diagram. The system is a 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 micro-architecture design, share system resources, and improve overall performance through parallel processing.
[0044] The resource allocation isolation system of the application specifically comprises a resource configuration generation module, a non-real-time system resource configuration module and a real-time system resource configuration module, and specifically comprises:
[0045] A1, the resource configuration generation module
[0046] The module is used for realizing unified management of heterogeneous system resource allocation, verifying the legality of the resource configuration isolation file, and generating a configuration firmware containing non-real-time system and real-time system resource allocation information from the verified legal resource configuration isolation file. Specifically, the module comprises:
[0047] A11, the resource configuration verification module: used for resource configuration input and legality verification, receiving a SoC resource isolation configuration file UserResAllocaIsola.config written by a user through a unified interface, and the user can specify CPU core, memory, peripheral controller quantity, peripheral controller category and other SoC resource allocation to the non-real-time system or the real-time system in the file. A built-in resource configuration verification module checks the configuration legality based on preset rules, and specifically comprises:
[0048] Mutual allocation verification: ensuring that the same resource is not allocated to the non-real-time system and the real-time system at the same time, avoiding resource conflicts, judging according to the corresponding SoC peripheral resource situation and the sum of real-time and non-real-time resource allocation, and the real-time and non-real-time resources cannot be repeated. If it is illegal, the verification fails, the configuration firmware cannot be generated, and the user is prompted to reconfigure;
[0049] Format compliance verification: verifying whether the configuration field conforms to the target SoC hardware specification to avoid configuration file format logical errors.
[0050] A12, the configuration firmware generation module: used for configuration firmware generation and storage, the verified legal configuration file is packaged into a SoC resource configuration firmware UserResAllocaIsola.bin through the configuration firmware generation module, and the SoC resource configuration firmware integrates complete information of dual-system resource allocation. The specific implementation steps comprise:
[0051] A new independent SoC resource configuration partition is added in a Flash device for storing non-real-time system firmware, UserResAllocaIsola.bin is burned into the partition through a U-Boot tool, and the driving module of the non-real-time system (Linux) is read and called; meanwhile, a firmware interface is opened to a development host (Ubuntu) to provide homologous configuration data for the real-time system configuration generator, ensuring consistency and integrity of dual-system resource allocation information.
[0052] A2, the non-real-time system resource configuration module
[0053] The module is a driver module of the Linux system, non-real-time system resource configuration is identified by reading the SoC resource configuration firmware burned on the Flash, and is provided for non-real-time system configuration; specifically including:
[0054] A21, a configuration firmware acquisition module: for reading the configuration firmware from the resource configuration generation module and loading to the memory; the configuration firmware acquisition module includes: initializing the Flash, realizing the function res_config_firmware() for reading the SoC resource configuration firmware UserResAllocaIsola.bin from the Flash, reading UserResAllocaIsola.bin to the memory through the res_config_firmware() function, and providing the next function module of the non-real-time system SoC resource configurator for use.
[0055] A22, an analysis configuration module: for converting the resource information allocated to the non-real-time system in the configuration firmware into a configuration field through a preset analysis function; the preset analysis function in the analysis configuration module is linux_res_analysis(), and the SoC resource allocated to the non-real-time system by the user is analyzed into a configuration field.
[0056] A23, a 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 analysis system, so that the non-real-time device tree analysis system analyzes the SoC resource, and the non-real-time system starts with the resource.
[0057] A3, a real-time system resource configuration module
[0058] The module runs on a development host (Ubuntu), reads the SoC resource configuration firmware, identifies the real-time system resource configuration, and generates a configuration file real-time operating system.config required for real-time operating system compilation, and provides the real-time system compilation for use; specifically including:
[0059] A31, a configuration firmware acquisition module: for reading the configuration firmware from the resource configuration generation module and loading to the memory; the configuration firmware acquisition module directly reads the SoC resource configuration firmware UserResAllocaIsola.bin from the directory of Ubuntu using the read() function, reads the configuration firmware into the memory, and provides the analysis configuration module for use.
[0060] A32, analysis configuration module: used for reading configuration firmware from the file system of the development host, and identifying resource information allocated to the real-time system through a preset analysis function; the rtos_res_analysis() function is realized through the analysis configuration module, the SoC resource allocated to the real-time system by the user is identified, and each field of the real-time operating system configuration file is parsed to provide the real-time operating system configuration file generation module for use.
[0061] A33, resource configuration module: the SoC resource information configuration field is generated into a real-time operating system.config configuration file through the real-time operating system_config() function, and is provided for use during real-time operating system compilation.
[0062] In a second aspect, the present application provides a resource allocation isolation method of a heterogeneous operating system, and the method comprises the following steps:
[0063] receiving a resource configuration isolation file and verifying the legality of the resource configuration isolation file;
[0064] generating a configuration firmware containing non-real-time system and real-time system resource allocation information from the verified legal resource configuration isolation file;
[0065] reading the configuration firmware, parsing the configuration firmware into configuration fields, and generating startup resources of the non-real-time system by parsing the configuration fields;
[0066] reading the configuration firmware, reading the configuration firmware of the resource configuration generation module, extracting real-time system resource configuration in the configuration firmware, and generating a configuration file for real-time operating system compilation.
[0067] In a third aspect, the present application provides a computer readable storage medium, and the storage medium stores a computer program, which is executed by a processor to realize the resource allocation isolation method of the heterogeneous operating system.
[0068] In summary, the present application has the following advantages:
[0069] 1. The unified resource configuration isolation file is generated by an automatic generator to generate firmware containing non-real-time and real-time system resource configurations, and the resources of the two systems are configured respectively after being parsed by corresponding modules, thereby solving the problems of complicated and error-prone manual configuration in the prior art;
[0070] 2. Through standardization, automation and mutual exclusion verification of resource allocation, system startup failure or crash caused by configuration errors is avoided, and the resource management efficiency and running stability of the heterogeneous system are improved.
[0071] The above detailed description merely illustrates the technical solutions of the present application and is not limiting, and although the present application has been described in detail with reference to the examples, it should be understood by those skilled in the art that the technical solutions of the present application can be modified or equivalently replaced without departing from the scope of the technical solutions of the present application, and all should be covered in the scope of the claims of the present application.
Claims
1. A resource allocation isolation system for heterogeneous operating systems, comprising: The application relates to a resource configuration generation method and device. The resource configuration generation module comprises: The resource configuration verification module is used for verifying the legality of the resources allocated to the non-real-time system and the real-time system in the received resource configuration isolation file; The configuration firmware generation module is used for encapsulating the resource configuration isolation file verified by the resource configuration verification module into configuration firmware, creating an independent resource configuration partition on a Flash device storing a non-real-time system firmware, and burning the configuration firmware into the resource configuration partition through U-Boot; The non-real-time system resource configuration module is used for reading the configuration firmware of the resource configuration generation module, parsing the configuration firmware into configuration fields, and generating starting resources of the non-real-time system through the configuration fields; The real-time system resource configuration module is used for reading the configuration firmware of the resource configuration generation module, extracting real-time system resource configurations in the configuration firmware, and generating a configuration file for compiling a real-time operating system; The preset analysis function in the parsing configuration module is linux_res_analysis (). The configuration firmware acquisition module comprises an interface function for initializing a Flash storage device and a firmware reading function; The firmware reading function loads the configuration firmware into a memory space of the non-real-time system, and the non-real-time system resource configuration module calls the firmware reading function. The preset analysis function in the parsing configuration module is rtos_res_analysis (). The specific steps comprise: receiving a resource configuration isolation file and verifying the legality of the resource configuration isolation file; generating configuration firmware containing resource allocation information of a non-real-time system and a real-time system from the resource configuration isolation file verified as legal; 2. The resource allocation isolation system for heterogeneous operating systems of claim 1, wherein, reading the configuration firmware, parsing the configuration firmware into configuration fields, and generating starting resources of the non-real-time system through the configuration fields; 3. The resource allocation isolation system for heterogeneous operating systems of claim 1, wherein, 4. The resource allocation isolation system for heterogeneous operating systems of claim 1, wherein, 5. A method for resource allocation isolation of heterogeneous operating systems, characterized in that, Reading the configuration firmware, reading the configuration firmware of the resource configuration generation module, extracting the real-time system resource configuration in the configuration firmware and generating a configuration file compiled by a real-time operating system.
6. A computer readable storage medium, characterized in that, The storage medium has a computer program stored thereon, and the computer program is executed by the processor to implement the resource allocation isolation method of the heterogeneous operating system of claim 5.
Citation Information
Patent Citations
System resource management method and device
CN115934351A
Performance tuning configuration method and device for disk array card, equipment and medium
CN119225655A