Fusion method and device of vehicle-mounted operating system, equipment and storage medium

By using the virtual machine monitor in the vehicle operating system to deploy hardware resources and initialize the container environment on demand, it solves the problems of improper allocation of hardware resources and performance contradictions in the integration of vehicle operating systems, and achieves the satisfaction of diverse needs and the realization of software-defined cars. significance.

CN118656131AInactive Publication Date: 2024-09-17ECARX (HUBEI) TECHCO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411124606.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When integrating different operating systems, existing vehicle operating systems have problems such as improper allocation of hardware resources, conflicts between security and real-time performance, and high overhead of virtualization solutions, making it difficult to meet the diverse needs of cockpits and driving systems.

Method used

By running the virtual machine monitor hypervisor on the same system-on-chip SOC, system hardware resources are deployed on demand, different operating system images are loaded, the container environment is initialized, and containers are started to run middleware and services to achieve the integration of different operating systems to meet their respective needs. Performance requirements.

Benefits of technology

The integration of different vehicle operating systems on a single SOC reduces product costs, improves real-time performance and security, simplifies software complexity, and highlights the significance of software-defined cars.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656131A
    Figure CN118656131A
Patent Text Reader

Abstract

The invention provides a fusion method and device of a vehicle-mounted operating system, equipment and a storage medium, which are applied to the same SOC running a hypervisor, system hardware resources are deployed for a first system and a second system on the SOC through the hypervisor according to hardware configuration requirements, the system hardware resources belonging to the second system are stripped from the first system, and the system hardware resources belonging to the second system are separated from the first system. The mirror image of the second system is loaded to operate the second system, the first system is operated to initialize the container environment of the first system, and the first system and the second system are different vehicle-mounted operating systems to be fused. And starting and operating each container of the first system to operate the corresponding middleware and service in each container of the first system. And deploying the subsystem in the second system, so that the second system provides capability support for the operation of the subsystem. The first system and the second system are operated on the same SOC at the same time, performance requirements of different systems are met, and fusion of different vehicle-mounted operating systems on a single SOC is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of operating system technology, and in particular to a method, device, equipment and storage medium for integrating an in-vehicle operating system. Background Art

[0002] With the evolution of automotive electrical and electronic architecture (EEA) and software defined vehicle (SDV), vehicle operating systems are gradually developing from distributed to multi-domain and centralized. The current mainstream vehicle operating system is in the stage of multi-domain control, mainly divided into intelligent cockpit operating system, intelligent driving operating system and safe vehicle operating system. This division is mainly limited by many factors such as EEA and hardware computing power.

[0003] Based on this division method, the current mainstream operating system solutions mainly include virtual machine monitors (hypervisors), containers, and hardware segmentation. Hypervisors have high security but poor real-time performance or are closed source, containers have high performance but poor security, and hardware segmentation has high performance and security but poor flexibility. With the advancement of SOC (System-on-a-Chip) computing power and system architecture, smart cockpit systems and smart driving systems have a trend of integration. On the one hand, system integration can reduce product costs by reducing domain controllers, and on the other hand, it can reduce software complexity, highlighting the significance of software-defined cars.

[0004] However, in the current mainstream in-vehicle operating system solutions, the cockpit and intelligent driving system solutions usually run on different SOCs. In addition to being limited by hardware computing power, the main reason is that the cockpit and driving systems have very different safety level requirements. For example, if both the microkernel and the macrokernel run on virtualization, the existing virtualization solution will be required to provide real-time capabilities, which will generate more custom development work. Moreover, the virtualization itself will have a considerable overhead when it comes to getting in and out of scheduling, so its real-time performance will naturally be poor. It can be seen that it is urgent to provide a fusion solution for in-vehicle operating systems that can overcome existing needs. Summary of the invention

[0005] The present application provides a method, device, equipment and storage medium for integrating an in-vehicle operating system, which are used to simultaneously run different operating systems on the same SOC to achieve operating system integration to meet the needs of different operating systems.

[0006] In a first aspect, the present application provides a method for integrating an in-vehicle operating system, which is applied to the same system on a chip (SOC), and a virtual machine monitor (hypervisor) is running on the SOC. The method includes: Deploying system hardware resources for the first system and the second system on the SOC according to hardware configuration requirements through the hypervisor, and separating the system hardware resources belonging to the second system from the first system; Loading the image of the second system to run the second system; Running the first system to initialize a container environment of the first system, where the first system and the second system are different vehicle-mounted operating systems to be integrated; Starting and running each container of the first system to load corresponding middleware and services in each container of the first system; A subsystem is deployed in the second system so that the second system provides capability support for the operation of the subsystem.

[0007] In a possible design, initializing the container environment of the first system includes: Initialize and verify the operating parameters of the first system, and verify the container image of the first system.

[0008] In one possible design, the first system includes a Linux system, and the second system includes a real-time operating system.

[0009] In one possible design, the Linux system is used to deploy a cockpit operating system, and the real-time operating system is used to deploy a driving operating system.

[0010] In a possible design, starting and running each container of the first system to load and run corresponding middleware and services in each container of the first system includes: Starting a first container, and loading and running corresponding Linux middleware and services in the first container, so that the first system provides running capabilities for the Linux middleware and services; and / or Starting a second container, and loading and running corresponding Android middleware and services in the second container, so that the first system provides running capabilities for the Android middleware and services; and / or The third container is started, and windows middleware and services are loaded and run in the third container, so that the first system provides running capability for the windows middleware and services.

[0011] In a possible design, the Linux system interacts with the real-time operating system via a preset communication method.

[0012] In a possible design, the preset communication mode includes memory physical page sharing or cross-node communication.

[0013] In a second aspect, the present application provides a fusion device of an in-vehicle operating system, which is applied to the same system on a chip (SOC), and a virtual machine monitor (hypervisor) is running on the SOC, and the device includes: A first deployment module, configured to deploy system hardware resources for the first system and the second system on the SOC according to hardware configuration requirements through the hypervisor, and to strip the system hardware resources belonging to the second system from the first system; A loading module, used for loading the image of the second system to run the second system; A first running module, used to run the first system to initialize a container environment of the first system, wherein the first system and the second system are different vehicle-mounted operating systems to be integrated; A second running module is used to start and run each container of the first system to run the corresponding middleware and services in each container of the first system; The second deployment module is used to deploy the subsystem in the second system so that the second system provides capability support for the operation of the subsystem.

[0014] In a possible design, the first operation module is further used to: Initialize and verify the operating parameters of the first system, and verify the container image of the first system.

[0015] In one possible design, the first system includes a Linux system, and the second system includes a real-time operating system.

[0016] In one possible design, the Linux system is used to deploy a cockpit operating system, and the real-time operating system is used to deploy a driving operating system.

[0017] In a possible design, the second operation module is specifically used to: Starting a first container, and loading and running corresponding Linux middleware and services in the first container, so that the first system provides running capabilities for the Linux middleware and services; and / or Starting a second container, and loading and running corresponding Android middleware and services in the second container, so that the first system provides running capabilities for the Android middleware and services; and / or The third container is started, and windows middleware and services are loaded and run in the third container, so that the first system provides running capability for the windows middleware and services.

[0018] In a possible design, the Linux system interacts with the real-time operating system via a preset communication method.

[0019] In a possible design, the preset communication mode includes memory physical page sharing or cross-node communication.

[0020] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement any possible vehicle operating system integration method provided in the first aspect.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement any possible vehicle-mounted operating system fusion method provided in the first aspect.

[0022] In a fifth aspect, the present application provides a computer program product, comprising computer execution instructions, which, when executed by a processor, are used to implement any possible vehicle operating system integration method provided in the first aspect.

[0023] The present application provides a method, device, equipment and storage medium for integrating vehicle operating systems. The method for integrating vehicle operating systems is applied to the same system on chip (SOC), wherein a virtual machine monitor hypervisor is running on the SOC. First, the hypervisor deploys system hardware resources for the first system and the second system on the SOC according to the hardware configuration requirements, and the system hardware resources belonging to the second system are stripped from the first system. Then, the image of the second system is loaded to run the second system, and the first system is continued to run to initialize the container environment of the first system, wherein the first system and the second system are different vehicle operating systems to be integrated. Then, each container of the first system is started and run to run the corresponding middleware and services in each container of the first system, and then the subsystem is deployed in the second system, so that the second system provides capability support for the operation of the subsystem. The first system and the second system are run simultaneously on the same SOC to meet the different system performance requirements of the first system and the second system, and to realize the integration of different vehicle operating systems on a single SOC. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0025] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application; Figure 2 A schematic diagram of a flow chart of a method for integrating an in-vehicle operating system provided in an embodiment of the present application; Figure 3 A schematic diagram of the architecture of an in-vehicle operating system provided in an embodiment of the present application; Figure 4 A flowchart of another method for integrating an in-vehicle operating system provided in an embodiment of the present application; Figure 5 A fusion device of a vehicle-mounted operating system provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of methods and devices consistent with some aspects of the present application as detailed in the appended claims.

[0027] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Based on the current division of vehicle operating systems, the mainstream operating system solutions mainly include virtual machine monitors (hypervisors), containers, and hardware segmentation. Hypervisors have high security but poor real-time performance or are closed source, containers have high performance but poor security, and hardware segmentation has high performance and security but poor flexibility. Among them, hypervisors and containers both belong to the category of virtualization. Hypervisors belong to type 1 virtualization, which is a hardware-based virtualization that allows multiple virtual machines to run on physical hardware. These virtual machines are completely independent, and each virtual machine has its own operating system (Guest OS) running on virtual hardware. Hypervisors are responsible for dividing physical hardware resources into multiple virtual resources and ensuring that they are isolated from each other to prevent mutual interference. Containers belong to type 3 virtualization, which is different from type 2 virtualization similar to kvm. It is a lightweight virtualization based on process-level isolation. All virtual machines running in container classes share hardware and kernels. The advantages of containers over hypervisors are lightweight, good performance and portability, but because it is process-level isolation, the robustness and security of the entire system are much worse than hypervisors. Hardware segmentation, as the name implies, is to directly divide hardware resources and provide them to different operating systems. Compared with virtualization solutions, this solution has the advantages of performance and security, but it is not flexible. For example, there is often only one hardware controller, which can only configure specific devices to the corresponding system, and other systems share the device in other ways. Although hard segmentation seems to simplify all operations of the hypervisor, it actually increases the complexity of communication between systems. If multiple hardware controllers are configured to solve the above problems, the hardware cost of the product will increase.

[0029] With the advancement of SOC computing power and system architecture, the intelligent cockpit system and the intelligent driving system have a trend of integration. On the one hand, system integration can reduce product costs by reducing domain controllers, and on the other hand, it can reduce software complexity, highlighting the significance of software-defined cars. However, in the current mainstream in-vehicle operating system solutions, the cockpit and intelligent driving system solutions usually run on different SOCs. In addition to being limited by hardware computing power, the main reason is that the cockpit and driving systems have very different safety level requirements. For example, if both the microkernel and the macrokernel run on virtualization, the existing virtualization solution needs to provide real-time capabilities, which will generate more customized development work. Moreover, the trapping and exiting of virtualization during scheduling will itself have a considerable overhead, and its real-time performance will naturally be poor. It can be seen that it is urgent to provide a fusion solution for in-vehicle operating systems that can overcome existing needs.

[0030] In view of the above-mentioned problems existing in the prior art, the present application provides a method, device, equipment and storage medium for integrating vehicle operating systems. The method for integrating vehicle operating systems is applied to the same system on a chip (SOC), and a virtual machine monitor (hypervisor) is running on the SOC. The inventive concept of the method for integrating vehicle operating systems provided in the present application is to deploy system hardware resources for the vehicle operating system to be integrated on the SOC on demand, and then load the image of the second system to run the second system, and run the first system to initialize the container environment of the first system, and then start and run each container of the first system so that the corresponding middleware and services in each container of the first system can be run. Finally, the subsystems that the second system can provide capability support for its operation are deployed in the second system, and different vehicle operating systems can be run on the same SOC to achieve the integration of different vehicle operating systems.

[0031] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application, the vehicle operating system of the vehicle 100 is mainly divided into an intelligent cockpit operating system, an intelligent driving operating system and a safe vehicle operating system, wherein different vehicle operating systems have different requirements, for example, the intelligent cockpit operating system may have high security requirements, while the intelligent driving operating system has high real-time requirements. In addition, facing the integration of different vehicle operating systems, on the one hand, the product cost can be reduced by reducing the domain controller, and on the other hand, the software complexity can be reduced, highlighting the significance of software-defined cars, so the integration of vehicle operating systems is urgent. Based on the division of vehicle operating systems, the current mainstream operation schemes include hypervisor, container and hardware segmentation, but each has advantages and disadvantages. Based on this, the present application provides a method for integrating vehicle operating systems, which can be applied to the same SOC 200, and a hypervisor is running on the SOC 200. The system hardware resources are deployed according to the hardware configuration requirements, and different vehicle operating systems are deployed based on the requirements of different vehicle operating systems to be integrated according to the deployed system hardware resources. Different vehicle operating systems can be run on the same SOC to achieve the integration of different vehicle operating systems.

[0032] In some embodiments, the different vehicle operating systems to be integrated may include, for example, a first system and a second system, the first system may include a Linux system, and the second system may include a real-time operating system (RTOS). Specifically, the Linux system is used to deploy the intelligent cockpit operating system of the vehicle 100, i.e., the cockpit operating system, and the real-time operating system may be used to deploy the intelligent driving operating system and the driving operating system of the vehicle 100, to implement the microkernel + macrokernel method in the virtualized resource segmentation implementation method.

[0033] In some embodiments, the first system and the second system may also be other systems. For example, both the first system and the second system are Linux systems or RTOS systems, so that the macro kernel + macro kernel or micro kernel + micro kernel method in virtualized resource segmentation can be implemented. The specific implementation method can be selected according to the system business requirements in actual working conditions, and the embodiments of the present application are not limited to this.

[0034] It should be noted that the above application scenario diagrams are only for illustrative purposes. The fusion method, apparatus, device and storage medium of the vehicle operating system provided in the embodiments of the present application include but are not limited to the above application scenarios.

[0035] Figure 2 The present invention provides a flow chart of a method for integrating a vehicle operating system, which is applied to the same SOC, and a hypervisor is running on the SOC. Figure 2 As shown, the fusion method of the vehicle operating system provided in the embodiment of the present application includes: S101: deploying system hardware resources for a first system and a second system on a SOC according to hardware configuration requirements through a hypervisor, and separating system hardware resources belonging to the second system from the first system.

[0036] After being loaded, the Hypervisor can deploy system hardware resources for different vehicle operating systems to be integrated according to the vehicle's hardware configuration requirements, so as to divide the system hardware resources for different vehicle operating systems to be integrated.

[0037] like Figure 3 As shown, the system hardware resources can be divided into two parts (such as Figure 3 The system hardware resources can include hardware peripherals, such as Figure 3 Devices in the system, such as graphics processing units (GPUs) and embedded neural network processors (NPUs), can be divided and configured according to different functional requirements. System hardware resources can also include physical CPUs, which can be divided, for example, part of the physical CPU is used to run the first system and the other part is used to run the second system to achieve hardware isolation. System hardware resources can also include memory, which can use a virtualization solution to achieve secondary mapping of memory.

[0038] It should be noted that Figure 3 The first system and the second system in the description are respectively illustrated by taking the Linux system and RTOS as examples, but this is not intended to limit the first system and the second system.

[0039] The essence of deploying the system hardware resources is to divide the system hardware resources according to the respective configuration requirements of the first system and the second system, so that the first system and the second system respectively have their own system hardware resources.

[0040] After the deployment of the system hardware resources is completed, the system hardware resources belonging to the second system are separated from the first system, that is, the system hardware resources belonging to the second system are divided from the first system.

[0041] In a possible design, the first system can be started before loading the second system. For example, the first system is started first, and then the hypervisor is loaded after the first system is started. The hypervisor is a module like kvm.ko, and its principle can refer to the virtualization solution of jailhouse.

[0042] S102: Loading the image of the second system to run the second system.

[0043] After the first system divides the system hardware resources belonging to the second system, the system hardware resources belonging to the second system are separated from the first system. The Hypervisor can prepare the operating environment of the second system to start loading the image of the second system, so that the second system can be run, for example Figure 3 The memory part to the right of the middle dividing line is the operating environment of the second system.

[0044] S103: Run the first system to initialize the container environment of the first system.

[0045] After the system hardware resources of the second system are stripped, the first system continues to run, and the preparation work of the container operating environment of the first system begins, that is, the container environment of the first system is initialized, for example Figure 3 The memory part to the left of the middle dividing line is the container environment of the first system.

[0046] After initializing the container environment of the first system, the containers of the first system can share the kernel of the first system. Figure 3 Each container in the first system shares its Linux Kernel.

[0047] In a possible design, initializing the container environment of the first system may, for example, initialize and verify operating parameters of the first system, and verify the container image of the first system.

[0048] S104: Start and run each container of the first system to run corresponding middleware and services in each container of the first system.

[0049] After the preparation of the container environment is completed, each container of the first system is started and run, so that the corresponding middleware and services in each container of the first system can be run.

[0050] Each container, for example Figure 3 In the figure, there are Container 1, Container 2 and Container 3. It should be noted that the number of containers in the first system can be deployed according to actual conditions. Figure 3 The containers are shown schematically only.

[0051] S105: Deploy the subsystem in the second system so that the second system provides capability support for the operation of the subsystem.

[0052] Furthermore, each subsystem that the second system can provide capability support for is deployed in the second system. Specifically, each subsystem can be deployed according to the actual capability support of the second system in actual working conditions. For example, the second system is used to deploy the vehicle's driving operating system, and the subsystems can be such as Advanced Driving Assistant System (ADAS), Automotive Open System Architecture (AUTOSAR), etc., to provide real-time and safety guarantees to realize the auxiliary or automatic driving functions of the vehicle. The embodiments of this application do not limit the specific content of the subsystem.

[0053] In summary, the first system and the second system can be run on the same SOC, so that different vehicle operating systems can be integrated. In some embodiments, the first system may include a Linux system for deploying a cockpit operating system, and the second system may include a real-time operating system for deploying a driving operating system. The virtualization mainly implements the cutting of system hardware resources and physical resources on demand. On the one hand, it can be provided to real-time and authenticatable systems such as the second system. On the other hand, it uses the characteristics of containers to achieve rapid deployment of services and achieve good performance. While meeting the polymorphic business needs of the first system, it can also meet the real-time and safety requirements of autonomous driving, and realize the integration of cockpit systems on a single SOC.

[0054] An embodiment of the present application provides a method for fusing vehicle operating systems that can be applied to the same SOC. A hypervisor is running on the SOC. First, the system hardware resources are deployed for the first system and the second system on the SOC according to the hardware configuration requirements through the hypervisor, and the system hardware resources belonging to the second system are stripped from the first system. Then, the image of the second system is loaded to run the second system, and the first system is run to initialize the container environment of the first system, wherein the first system and the second system are different vehicle operating systems to be fused. Then, each container of the first system is started and run, so that the corresponding middleware and services in each container of the first system can run. In addition, a subsystem is deployed in the second system, so that the second system provides capability support for the operation of the subsystem. The operation of the first system and the second system is realized simultaneously on the same SOC, so that the different system performance requirements of the first system and the second system are met, and the fusion of different vehicle operating systems on a single SOC is realized.

[0055] exist Figure 3 On the basis of Figure 4 A flow chart of another method for integrating an in-vehicle operating system provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the fusion method of the vehicle operating system provided in the embodiment of the present application includes: S201: deploying system hardware resources for a first system and a second system on a SOC according to hardware configuration requirements through a hypervisor, and separating system hardware resources belonging to the second system from the first system.

[0056] After being loaded, the Hypervisor can divide the system hardware resources according to the hardware configuration requirements of the vehicle, so as to deploy the system hardware resources of the first system and the second system on the same SOC. The essence of dividing the system hardware resources is to deploy the system hardware resources according to the configuration requirements of the first system and the second system, so that the first system and the second system have their own system hardware resources.

[0057] After the deployment of the system hardware resources is completed, the system hardware resources belonging to the second system are separated from the first system, that is, the system hardware resources belonging to the second system are divided from the first system.

[0058] S202: Loading the image of the second system to run the second system.

[0059] After separating the system hardware resources belonging to the second system from the first system, the Hypervisor prepares the operating environment of the second system and starts loading the image of the second system to run the second system.

[0060] S203: Run the first system to initialize the container environment of the first system.

[0061] After the system hardware resources of the second system are stripped, the first system continues to run, and the preparation work of the container operating environment of the first system is started, that is, the container environment of the first system is initialized.

[0062] After the container environment of the first system is initialized, the containers of the first system can share the kernel of the first system.

[0063] In some embodiments, initializing the container environment of the first system may, for example, initialize and verify operating parameters of the first system, and verify the container image of the first system.

[0064] S204a: Start the first container, and load and run corresponding Linux middleware and services in the first container, so that the first system provides running capabilities for the Linux middleware and services.

[0065] After the container environment is prepared, each container of the first system is started and run.

[0066] For example, the first container is started, and the corresponding Linux middleware and services are loaded and run in the first container, so that the first system can provide the Linux middleware and services with running capabilities, and realize the normal operation of the Linux middleware and services in the first container. In some embodiments, the Linux middleware and services can be, for example, corresponding APPs, such as instrument human-machine interfaces (Human Machine Interface, HMI), etc.

[0067] And / or, S204b: starting the second container, and loading and running the corresponding Android middleware and services in the second container, so that the first system provides running capabilities for the Android middleware and services.

[0068] For example, the second container is started, and the corresponding Android middleware and services are loaded and run in the second container, so that the first system can provide running capabilities for the Android middleware and services, and realize the normal operation of the Android middleware and services in the first system. Figure 3 The second container shown in , starts, loads and runs its corresponding Android middleware and services to be compatible with the Android ecosystem. There are differences between the engines running Android and Linux middleware and services, which are determined by their respective operating conditions.

[0069] And / or, S204c: Start the third container, and load and run the Windows middleware and services in the third container, so that the first system provides the Windows middleware and services with running capabilities. If there are other business deployment requirements, such as Figure 3The third container shown in the figure, whose corresponding middleware and services can be, for example, windows middleware and services, then the third container is started, and the windows middleware and services are loaded and run in the third container, so that the first system can provide running capabilities for the windows middleware and services, and be compatible with the ecology of the corresponding middleware and services so that they meet the corresponding running requirements, such as providing a wide range of game support capabilities, etc.

[0070] Or if the container has a deployment requirement for an algorithm model, a corresponding Linux environment can also be provided. In actual working conditions, the specific deployment of the container can be planned according to hardware capabilities and product requirements, and this embodiment of the application is not limited to this.

[0071] Furthermore, after the startup and operation of each container in the first system are completed, step S205 is also performed.

[0072] S205: Deploy the subsystem in the second system so that the second system provides capability support for the operation of the subsystem.

[0073] Each subsystem in the second system can be deployed according to the actual needs of the second system in actual working conditions. For example, the second system is used to deploy the vehicle's driving operating system, and can deploy subsystems such as ADAS and AUTOSAR, so that the second system can provide real-time and safety guarantees for each subsystem and realize the auxiliary or automatic driving function of the vehicle. The embodiments of this application do not limit the specific content of the subsystem.

[0074] The fusion method of the vehicle operating system provided in the embodiment of the present application can run the first system and the second system on the same SOC at the same time, meet the different system performance requirements of the first system and the second system, and realize the fusion of different vehicle operating systems on a single SOC. For example, the real-time operating system and the Linux system are run on the same SOC at the same time to realize the implementation of the microkernel and the macrokernel. When the Linux system is used to deploy the cockpit operating system and the real-time operating system is used to deploy the driving operating system, it can meet the rich functional requirements of the cockpit system, such as cool 3D effects, ecological support, etc., and can meet the requirements of the intelligent driving system for real-time and safety, and achieve the purpose of cockpit fusion. In addition, it can be seen from the description of the above embodiments that the fusion method of the vehicle operating system provided in the embodiment of the present application can realize the rapid deployment of services and achieve performance consistent with bare metal, which can facilitate communication and sharing between containers more conveniently than virtualized shared memory; and the microkernel can be directly run on the physical CPU, which can meet the safety certification requirements of the intelligent driving system while achieving real-time.

[0075] In some embodiments, for example Figure 3The first system and the second system shown in the figure, such as the Linux system and the real-time operating system, can interact with each other through a preset communication method.

[0076] For example, the hypervisor can implement data transmission and signal synchronization between the RTOS and Linux systems through memory physical page sharing (SHM). In addition, the communication method between the two physically isolated systems is not limited to SHM. For example, cross-node communication such as Ethernet and / or mailbox can also be supported. In other words, the preset communication method can include memory physical page sharing or cross-node communication; Figure 5 The embodiment of the present application provides a vehicle operating system fusion device, which is applied to the same SOC, and a virtual machine monitor hypervisor is running on the SOC. Figure 5 As shown, the fusion device 400 of the vehicle operating system provided in the embodiment of the present application includes: The first deployment module 401 is used to deploy system hardware resources for the first system and the second system on the SOC according to hardware configuration requirements through the hypervisor, and to separate the system hardware resources belonging to the second system from the first system; A loading module 402, used to load the image of the second system to run the second system; A first running module 403 is used to run the first system to initialize the container environment of the first system, where the first system and the second system are different vehicle-mounted operating systems to be integrated; The second operation module 404 is used to start and run each container of the first system; The second deployment module 405 is used to deploy the subsystem in the second system so that the second system provides capability support for the operation of the subsystem.

[0077] In a possible design, the first operation module 403 is further used to: Initialize and verify the operating parameters of the first system, and verify the container image of the first system.

[0078] In a possible design, the first system includes a Linux system, and the second system includes a real-time operating system.

[0079] In one possible design, the Linux system is used to deploy the cockpit operating system and the real-time operating system is used to deploy the driving operating system.

[0080] In a possible design, the second operation module 404 is specifically configured to: Starting the first container, and loading and running the corresponding Linux middleware and services in the first container, so that the first system provides running capabilities for the Linux middleware and services; and / or Starting the second container, and loading and running the corresponding Android middleware and services in the second container, so that the first system provides running capabilities for the Android middleware and services; and / or The third container is started, and windows middleware and services are loaded and run in the third container, so that the first system provides running capability for the windows middleware and services.

[0081] In a possible design, the Linux system interacts with the real-time operating system through a preset communication method.

[0082] In a possible design, the preset communication method includes memory physical page sharing or cross-node communication.

[0083] In one possible design, inter-node communication includes Ethernet and / or mailbox.

[0084] The vehicle operating system fusion device provided in the embodiment of the present application can execute the corresponding steps of the vehicle operating system fusion method in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0085] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the electronic device 500 may include: a processor 501 , and a memory 502 communicatively connected to the processor 501 .

[0086] The memory 502 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer-executable instructions.

[0087] The memory 502 may include a high-speed RAM memory, and may also include a non-volatile memory (NoN-volatile memory), such as at least one disk memory.

[0088] The processor 501 is used to execute the computer-executable instructions stored in the memory 502 to implement the vehicle operating system integration method provided in the above embodiments.

[0089] The processor 501 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0090] Optionally, the memory 502 may be independent or integrated with the processor 501. When the memory 502 is a device independent of the processor 501, the electronic device 500 may further include: The bus 503 is used to connect the processor 501 and the memory 502. The bus can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0091] Optionally, in a specific implementation, if the memory 502 and the processor 501 are integrated on a chip, the memory 502 and the processor 501 can communicate through an internal interface.

[0092] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores computer execution instructions, and the computer execution instructions are used for each step of the method in the above embodiment.

[0093] The present application also provides a computer program product, including computer execution instructions, which implement the steps of the method in the above embodiment when executed by a processor.

[0094] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.

[0095] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for integrating an in-vehicle operating system, It is characterized in that Applied to a system on a chip (SOC), a virtual machine monitor (hypervisor) is running on the SOC, and the method comprises: Deploying system hardware resources for the first system and the second system on the SOC according to hardware configuration requirements through the hypervisor, and separating the system hardware resources belonging to the second system from the first system; Loading the image of the second system to run the second system; Running the first system to initialize a container environment of the first system, where the first system and the second system are different vehicle-mounted operating systems to be integrated; Starting and running each container of the first system to run corresponding middleware and services in each container of the first system; A subsystem is deployed in the second system so that the second system provides capability support for the operation of the subsystem.

2. The fusion method according to claim 1, It is characterized in that The initializing the container environment of the first system includes: Initialize and verify the operating parameters of the first system, and verify the container image of the first system.

3. The fusion method according to claim 1 or 2, It is characterized in that The first system includes a Linux system, and the second system includes a real-time operating system.

4. The fusion method according to claim 3, It is characterized in that The Linux system is used to deploy a cockpit operating system, and the real-time operating system is used to deploy a driving operating system.

5. The fusion method according to claim 3, It is characterized in that The starting and running each container of the first system to run corresponding middleware and services in each container of the first system includes: Starting a first container, and loading and running corresponding Linux middleware and services in the first container, so that the first system provides running capabilities for the Linux middleware and services; and / or Starting a second container, and loading and running corresponding Android middleware and services in the second container, so that the first system provides running capabilities for the Android middleware and services; and / or The third container is started, and windows middleware and services are loaded and run in the third container, so that the first system provides running capability for the windows middleware and services.

6. The fusion method according to claim 3, It is characterized in that The Linux system interacts with the real-time operating system through a preset communication method.

7. The fusion method according to claim 6, It is characterized in that The preset communication mode includes memory physical page sharing or cross-node communication.

8. A fusion device for an in-vehicle operating system, It is characterized in that Applied to a system on a chip (SOC), a virtual machine monitor (hypervisor) is running on the SOC, and the device comprises: A first deployment module, configured to deploy system hardware resources for the first system and the second system on the SOC according to hardware configuration requirements through the hypervisor, and to strip the system hardware resources belonging to the second system from the first system; A loading module, used for loading the image of the second system to run the second system; A first running module, used to run the first system to initialize a container environment of the first system, wherein the first system and the second system are different vehicle-mounted operating systems to be integrated; A second running module is used to start and run each container of the first system to run the corresponding middleware and services in each container of the first system; The second deployment module is used to deploy the subsystem in the second system so that the second system provides capability support for the operation of the subsystem.

9. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the fusion method of the vehicle-mounted operating system according to any one of claims 1-7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the vehicle operating system fusion method according to any one of claims 1 to 7.

11. A computer program product, comprising computer executable instructions, which are used to implement the vehicle operating system integration method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Vehicle-mounted integrated visualization method and device

    CN107783821A

  • Resource isolation method and system for microkernel operating system

    CN114861193A

  • T-Box software service operation method and device, equipment and medium

    CN115048185A

  • System on chip, construction method thereof and vehicle

    CN116560830A

  • Cabin control system, image processing method and device, vehicle and electronic equipment

    CN117075980A