System partition upgrading method and device, equipment, medium and vehicle

CN119938082APending Publication Date: 2025-05-06BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311444945.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-01
Publication Date
2025-05-06

Smart Images

  • Figure CN119938082A_ABST
    Figure CN119938082A_ABST
Patent Text Reader

Abstract

The invention relates to a system partition upgrading method and device, equipment, a medium and a vehicle. The system partition upgrading method comprises the following steps: receiving a first target partition which is mapped by a physical machine and needs to be upgraded; according to a configured upgrading compiling file, partition mirror image data of the first target partition is packaged and upgraded, a packaged file obtained after upgrading of the partition mirror image data is completed is written into a second target partition, and the partition mirror image data is obtained by conducting data mirroring on the first target partition; and a partition switching request is sent to the physical machine, so that the physical machine is switched from the first target partition to the second target partition according to the partition switching request, and the partition switching request comprises the partition identifier. According to the embodiment of the invention, the partition corresponding to the virtual machine and the partition corresponding to the physical machine can be synchronously upgraded, and the mirror image consistency of the HU system is kept.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a system partition upgrade method, device, equipment, medium and vehicle. Background Art

[0002] At present, some car models use in-vehicle infotainment (IVI, also known as HU system) to meet the needs of intelligence. Most existing in-vehicle infotainment systems are combined systems, that is, a combination of physical machine and virtual machine. However, in practice, different system programs may be run in the physical machine and the virtual machine, such as running the QNX system in the physical machine and the Android system in the virtual machine. This results in that when upgrading using the traditional OTA (Over-the-Air Technology) method, only the partition used by the virtual machine (Android system) can be upgraded, while the corresponding partition in the physical machine (QNX system) has not completed the corresponding upgrade, which in turn causes the upgrade to fail, resulting in the partition of the entire in-vehicle entertainment system being in an inconsistent state. Therefore, how to upgrade the combined system has become an urgent problem to be solved. Summary of the invention

[0003] In order to solve the above technical problems, the present disclosure provides a system partition upgrade method, device, equipment, medium and vehicle.

[0004] In a first aspect, the present disclosure provides a system partition upgrade method, which is applied to a virtual machine, comprising:

[0005] Receive a first target partition that needs to be upgraded from a physical machine mapping;

[0006] According to the configured upgrade compilation file, the partition image data of the first target partition is packaged and upgraded, and the packaged file after the partition image data is upgraded is written into the second target partition, wherein the partition image data is obtained by performing data mirroring on the first target partition;

[0007] A partition switching request is sent to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request, wherein the partition switching request includes a partition identifier.

[0008] In a second aspect, the present disclosure provides a system partition upgrade method, which is applied to a physical machine, comprising:

[0009] Mapping a first target partition that needs to be upgraded to the virtual machine;

[0010] The partition switching request sent by the virtual machine is received by monitoring the request service, and the first target partition is switched to the second target partition, wherein the partition switching request includes a partition identifier.

[0011] In a third aspect, the present disclosure provides a system partition upgrade device, comprising:

[0012] A first receiving module is used to receive a first target partition that needs to be upgraded and is mapped to a physical machine;

[0013] A packaging and upgrading module, used for packaging and upgrading the partition image data of the first target partition according to the configured upgrading compilation file, and writing the packaged file after the partition image data is upgraded into the second target partition, wherein the partition image data is obtained by performing data mirroring on the first target partition;

[0014] The first sending module is used to send a partition switching request to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request, and the partition switching request includes a partition identifier.

[0015] In a fourth aspect, the present disclosure provides a system partition upgrade device, comprising:

[0016] A second sending module is used to map a first target partition that needs to be upgraded to the virtual machine;

[0017] The second receiving module is used to receive a partition switching request sent by the virtual machine through a monitoring request service, and switch from the first target partition to the second target partition, wherein the partition switching request includes a partition identifier.

[0018] In a fifth aspect, the present disclosure provides a system partition upgrade device, including:

[0019] processor;

[0020] A memory for storing executable instructions;

[0021] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the system partition upgrade method of the first aspect and the second aspect.

[0022] In a sixth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the system partition upgrade method of the first aspect and the second aspect.

[0023] In a seventh aspect, the present disclosure provides a vehicle, comprising the system partition upgrade device as described above.

[0024] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0025] The system partition upgrade method, device, equipment, medium and vehicle of the disclosed embodiments can receive a first target partition that needs to be upgraded mapped by a physical machine; then, according to a configured upgrade compilation file, the partition image data of the first target partition is packaged and upgraded, and the packaged file after the partition image data is upgraded is written into a second target partition, and the partition image data is obtained by data mirroring of the first target partition; finally, a partition switching request is sent to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request, and the partition switching request includes a partition identifier, thereby, the first target partitions that need to be upgraded can be uniformly packaged and upgraded through the virtual machine, and then the partition switching is performed by the physical machine according to the partition switching request, so that the partitions corresponding to the virtual machine and the physical machine can be synchronously upgraded to maintain the consistency of the HU system image. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0027] Figure 1 A flowchart of a system partition upgrade method provided by an embodiment of the present disclosure;

[0028] Figure 2 A flowchart of another system partition upgrade method provided by an embodiment of the present disclosure;

[0029] Figure 3 A flowchart of another system partition upgrade method provided by an embodiment of the present disclosure;

[0030] Figure 4 A schematic diagram of the structure of a system partition upgrade device provided by an embodiment of the present disclosure;

[0031] Figure 5 A schematic diagram of the structure of another system partition upgrade device provided by an embodiment of the present disclosure;

[0032] Figure 6 A schematic diagram of the structure of a system partition upgrade device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0033] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0034] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0035] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0037] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0038] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0039] The present disclosure provides a system partition upgrade method, device, equipment, medium and vehicle. Figures 1 to 3 The system partition upgrade method provided by the embodiment of the present disclosure is described in detail.

[0040] Figure 1 A schematic flow chart of a system partition upgrade method provided by an embodiment of the present disclosure is shown.

[0041] In the embodiment of the present disclosure, the system partition upgrade method can be executed by a virtual machine. The virtual machine can be a virtual machine in the HU system of the vehicle controller of the vehicle. Specifically, the virtual machine can be an Android system.

[0042] like Figure 1 As shown, the system partition upgrade method may include the following steps.

[0043] S110: Receive a first target partition that needs to be upgraded and is mapped from a physical machine.

[0044] In the embodiment of the present disclosure, the virtual machine may receive the first target partition that needs to be upgraded and is mapped from the physical machine.

[0045] Optionally, the physical machine may be a physical machine in a vehicle HU system. For example, the physical machine may be a QNX system.

[0046] Optionally, the first target partition may be all partitions that need to be upgraded. The first target partition may include a partition corresponding to a virtual machine and a partition corresponding to a physical machine.

[0047] Specifically, the physical machine may configure all partitions to be upgraded to obtain a first target partition, and then map the first target partition to the virtual machine. The virtual machine may receive the first target partition to be upgraded mapped by the physical machine.

[0048] S120. According to the configured upgrade compilation file, the partition image data of the first target partition is packaged and upgraded, and the packaged file after the partition image data is upgraded is written into the second target partition, where the partition image data is obtained by performing data mirroring on the first target partition.

[0049] In the disclosed embodiment, after receiving the first target partition, the virtual machine can package and upgrade the partition image data of the first target partition according to the configured upgrade compilation file, and write the packaged file after the partition image data is upgraded into the second target partition.

[0050] Optionally, the upgrade compiled file is a compiled file that can be upgraded via OTA.

[0051] Optionally, the partition mirror data may be mirror data corresponding to the first target partition.

[0052] Optionally, the partition mirror data may be obtained by performing data mirroring on the first target partition. For example, after receiving the first target partition, the virtual machine may perform data mirroring on the data of the first target partition, thereby obtaining the partition mirror data corresponding to the first target partition.

[0053] Optionally, the package upgrade may be to package and upgrade all data to be upgraded.

[0054] Optionally, the second target partition may be a partition after the upgrade is successful.

[0055] Specifically, after receiving the first target partition, the virtual machine can configure the upgrade compilation file for OTA upgrade, and perform data mirroring on the data of the first target partition to obtain partition mirror data, and then package and upgrade the partition mirror data of the first target partition according to the configured upgrade compilation file, and finally write the packaged file obtained after the partition mirror data is upgraded to the second target partition.

[0056] S130. Send a partition switching request to a physical machine, so that the physical machine switches from a first target partition to a second target partition according to the partition switching request, wherein the partition switching request includes a partition identifier.

[0057] In the embodiment of the present disclosure, after the upgrade, the virtual machine may send a partition switching request to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request.

[0058] Optionally, the partition switching request may be a request for requesting a physical machine to perform partition switching.

[0059] Optionally, the partition switching request may include a partition identifier, wherein the partition identifier may be an identifier used to distinguish different partitions.

[0060] Specifically, after partition upgrade, since the virtual machine cannot perform partition switching, the virtual machine needs to send a partition switching request including a partition identifier to the physical machine, and the physical machine can switch from the first target partition to the second target partition according to the partition identifier in the partition switching request.

[0061] For example, the first target partition may be the x_a partition, and the second target partition may be the x_b partition. The virtual machine may perform an OTA upgrade on the x_a partition. After the upgrade is successful, the virtual machine may send a partition switching request to the physical machine, such as sending a partition switching request through HAB. HAB may be a communication method between the Android system and the QNX system. The physical machine may perform slot switching according to the partition identifier included in the partition switching request, and switch the x_a partition to the x_b partition, that is, switch slot_a to slot_b. x_a belongs to slot_a, and x_b belongs to slot_b.

[0062] Therefore, in the disclosed embodiment, the first target partition that needs to be upgraded and mapped by the physical machine can be received; then, according to the configured upgrade compilation file, the partition image data of the first target partition is packaged and upgraded, and the packaged file after the partition image data is upgraded is written into the second target partition, and the partition image data is obtained by data mirroring of the first target partition; finally, a partition switching request is sent to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request, and the partition switching request includes a partition identifier, thereby, the first target partitions that need to be upgraded can be uniformly packaged and upgraded through the virtual machine, and then the partition switching is performed by the physical machine according to the partition switching request, so that the partitions corresponding to the virtual machine and the physical machine can be upgraded synchronously to maintain the consistency of the HU system image.

[0063] Optionally, after S110, the system partition upgrade method may further include: renaming and configuring the first target partition; configuring the renamed and configured first target partition under a preset path, and creating a corresponding device node soft link.

[0064] In the embodiment of the present disclosure, the virtual machine may rename the first target partition.

[0065] Optionally, the rename configuration can be used to rename the partition.

[0066] Specifically, the virtual machine may perform a renaming configuration on the first target partition, such as performing a rename configuration on the first target partition.

[0067] Furthermore, the virtual machine may configure the renamed first target partition under a preset path and create a corresponding device node soft link.

[0068] Optionally, the preset path may be a pre-set path.

[0069] Optionally, the device node soft link may be a node for performing partition write upgrade.

[0070] Specifically, the virtual machine can configure the first target partition after the renaming configuration under a preset path and create a corresponding device node soft link. For example, the virtual machine can configure the first target partition after the renaming configuration under / dev / block / by-name and create a corresponding device node soft link.

[0071] Thus, the virtual machine can perform partition upgrade paths and device node soft links, thereby realizing OTA upgrades of all first target partitions and synchronously upgrading the partitions corresponding to the virtual machine and the physical machine.

[0072] Optionally, after S130, the system partition upgrade method may further include: receiving a partition switching result fed back by the physical machine, the partition switching result being used to indicate whether the second target partition is upgraded successfully; if the second target partition is not upgraded successfully, repackaging and upgrading the partition image data of the first target partition.

[0073] In the embodiment of the present disclosure, the virtual machine may receive the partition switching result fed back by the physical machine.

[0074] Optionally, the partition switching result may be used to indicate whether the second target partition is upgraded successfully.

[0075] Specifically, after sending the partition switching request to the physical machine, the virtual machine may receive a partition switching result fed back by the physical machine, and the partition switching result may be used to indicate whether the second target partition is successfully upgraded.

[0076] Furthermore, if the partition switching result indicates that the second target partition is not successfully upgraded, the virtual machine may repackage and upgrade the partition image data of the first target partition.

[0077] Optionally, the system partition upgrade method may further include: feeding back a corresponding partition upgrade result to a user according to the partition switching result, wherein the partition upgrade result includes at least one of a partition upgrade success and a partition upgrade failure.

[0078] In the disclosed embodiment, the virtual machine may feed back corresponding partition upgrade results to the user according to the partition switching result.

[0079] Optionally, the partition upgrade result may include at least one of a partition upgrade success and a partition upgrade failure.

[0080] Specifically, the virtual machine can feedback the corresponding partition upgrade result to the user according to the partition switching result. For example, if the partition switching result indicates that the second target partition is not upgraded successfully, the virtual machine can feedback the partition upgrade result to the user as partition upgrade failure; similarly, if the partition switching result indicates that the second target partition is upgraded successfully, the virtual machine can feedback the partition upgrade result to the user as partition upgrade success.

[0081] Figure 2 A flow chart of another system partition upgrade method provided by an embodiment of the present disclosure is shown.

[0082] In the disclosed embodiment, the system partition upgrade method may be executed by a physical machine. The physical machine may be a physical machine in a HU system of a vehicle controller of a vehicle. Specifically, the virtual machine may be a QNX system.

[0083] like Figure 2As shown, the system partition upgrade method may include the following steps.

[0084] S210: Map a first target partition that needs to be upgraded to the virtual machine.

[0085] In the embodiment of the present disclosure, the physical machine may map the first target partition that needs to be upgraded to the virtual machine.

[0086] Specifically, the physical machine may configure all partitions to be upgraded to obtain a first target partition, and then map the first target partition to the virtual machine so that the virtual machine packages and upgrades the first target partition.

[0087] S220: Receive a partition switching request sent by the virtual machine through a monitoring request service, and switch from the first target partition to the second target partition.

[0088] In the embodiment of the present disclosure, the physical machine may receive the partition switching request sent by the virtual machine through the monitoring request service, and switch from the first target partition to the second target partition.

[0089] Optionally, the monitoring request service may be a service for monitoring requests sent by a virtual machine. For example, the monitoring request service may be a service for monitoring Android HAB requests.

[0090] Specifically, the physical machine can receive the partition switching request sent by the virtual machine through the monitoring request service, and switch the first target partition to the second target partition according to the partition switching request. For example, the physical machine can perform slot switching according to the partition switching request, switching the x_a partition to the x_b partition, that is, switching slot_a to slot_b, x_a belongs to slot_a, and x_b belongs to slot_b.

[0091] Optionally, after receiving the partition switching request sent by the virtual machine through the monitoring request service, the system partition upgrade method may further include: configuring partition configuration information in the partition table, where the partition configuration information includes a partition identifier.

[0092] In an embodiment of the present disclosure, after the partition upgrade is successful, the physical machine may configure the partition configuration information in the partition table, where the partition configuration information includes a partition identifier.

[0093] Optionally, the partition table may be a table storing information of each partition.

[0094] Optionally, the partition configuration information may be configuration information of each partition.

[0095] Optionally, the partition identifier may be an identifier used to indicate that the partition upgrade is successful.

[0096] Specifically, after the partition upgrade is successful, the physical machine may configure the partition configuration information in the partition table, such as including the partition identifier.

[0097] Further, in response to the partition switching request, the first target partition is switched to the second target partition according to the partition identifier.

[0098] In the embodiment of the present disclosure, the physical machine may respond to the partition switching request and switch from the first target partition to the second target partition according to the partition identifier.

[0099] Specifically, the physical machine can respond to the partition switching request and determine the corresponding partition according to the partition identifier in the partition table, thereby switching the first target partition to the second target partition. For example, after the partition upgrade is successful, the second target partition will have a corresponding partition identifier. The physical machine can call the swdl_util tool according to the partition identifier to switch the first target partition to the second target partition, that is, perform slot switching.

[0100] Therefore, the physical machine performs partition switching according to the partition identifier, so that the partitions corresponding to the virtual machine and the physical machine are upgraded synchronously to maintain the consistency of the HU system image.

[0101] Optionally, after S220, the system partition upgrade method may further include: feeding back a partition switching result to the virtual machine, where the partition switching result is used to indicate whether the second target partition is successfully upgraded.

[0102] In an embodiment of the present disclosure, the physical machine can switch from the first target partition to the second target partition after receiving a partition switching request. If the switching from the first target partition to the second target partition fails, it means that the upgrade of the second target partition has failed. If the switching from the first target partition to the second target partition succeeds, it means that the upgrade of the second target partition has been successful. The corresponding partition switching result is then fed back to the virtual machine, and the partition switching result can be used to indicate whether the upgrade of the second target partition has been successful.

[0103] Figure 3 A flow chart of another system partition upgrade method provided by an embodiment of the present disclosure is shown.

[0104] like Figure 3As shown, an OTA APP can be installed on the virtual machine (Android system). When the OTA APP detects that a USB flash drive is inserted, that is, detects that an OTA upgrade is required, the OTA APP performs an OTA upgrade on the first target partition that needs to be upgraded mapped by the physical machine, for example, through the Update_engine service, and then performs startup control (boot_control) for all partitions, and sends a partition switching request to the physical machine (QNX system) through HAB to switch the physical machine from the first target partition to the second target partition, that is, switching slot_a to slot_b, and then the physical machine feeds back the corresponding conversion result. The OTA APP can determine whether the upgrade is successful based on the corresponding conversion result fed back by the physical machine. If the upgrade is successful, the vehicle microcontroller unit (MCU) is notified to restart the system, otherwise the user is notified that the upgrade fails, so as to re-upgrade or cancel the upgrade.

[0105] Figure 4 A schematic structural diagram of a system partition upgrade device provided by an embodiment of the present disclosure is shown.

[0106] In some embodiments of the present disclosure, Figure 4 The system partition upgrade device shown can be set in the vehicle controller of the vehicle and controlled by a virtual machine.

[0107] like Figure 4 As shown, the system partition upgrade device 400 may include a first receiving module 410 , a package upgrade module 420 and a first sending module 430 .

[0108] The first receiving module 410 may be configured to receive a first target partition that needs to be upgraded and is mapped to a physical machine.

[0109] The package upgrade module 420 can be used to package and upgrade the partition image data of the first target partition according to the configured upgrade compilation file, and write the packaged file after the partition image data is upgraded to the second target partition. The partition image data is obtained by data mirroring of the first target partition.

[0110] The first sending module 430 may be configured to send a partition switching request to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request, wherein the partition switching request includes a partition identifier.

[0111] In the disclosed embodiment, a first target partition that needs to be upgraded and mapped by a physical machine can be received; then, according to a configured upgrade compilation file, the partition image data of the first target partition is packaged and upgraded, and the packaged file after the partition image data is upgraded is written into a second target partition, and the partition image data is obtained by data mirroring of the first target partition; finally, a partition switching request is sent to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request, and the partition switching request includes a partition identifier, thereby, the first target partitions that need to be upgraded can be uniformly packaged and upgraded through the virtual machine, and then the partition switching is performed through the physical machine according to the partition switching request, so that the partitions corresponding to the virtual machine and the physical machine can be upgraded synchronously to maintain the consistency of the HU system image.

[0112] In some embodiments of the present disclosure, the first target partition may include a partition corresponding to the physical machine and a partition corresponding to the virtual machine.

[0113] In some embodiments of the present disclosure, the system partition upgrade apparatus 400 may further include a first processing module and a second processing module.

[0114] The first processing module may be configured to receive a partition switching result fed back by the physical machine after the physical machine sends a partition switching request, wherein the partition switching result is used to indicate whether the second target partition is successfully upgraded.

[0115] The second processing module may be used to repackage and upgrade the partition image data of the first target partition if the second target partition is not successfully upgraded.

[0116] In some embodiments of the present disclosure, the system partition upgrading apparatus 400 may further include a third processing module.

[0117] The third processing module may be used to feed back a corresponding partition upgrade result to the user according to the partition switching result, where the partition upgrade result includes at least one of a partition upgrade success and a partition upgrade failure.

[0118] In some embodiments of the present disclosure, the system partition upgrade apparatus 400 may further include a first configuration module and a second configuration module.

[0119] The first configuration module may be configured to rename the first target partition after receiving the first target partition that needs to be upgraded in the physical machine mapping.

[0120] The second configuration module can be used to configure the renamed first target partition under a preset path and create a corresponding device node soft link.

[0121] It should be noted that Figure 4 The system partition upgrade device 400 shown can execute Figure 1 The various steps in the method embodiment shown in the figure are implemented Figure 1 The various processes and effects in the method embodiment shown are not described in detail here.

[0122] Figure 5 A schematic diagram of the structure of another system partition upgrade device provided by an embodiment of the present disclosure is shown.

[0123] In some embodiments of the present disclosure, Figure 5 The system partition upgrade device shown can be set in the vehicle controller of the vehicle and controlled by a physical machine.

[0124] like Figure 5 As shown, the system partition upgrade device 500 may include a second sending module 510 and a second receiving module 520 .

[0125] The second sending module 510 may map the first target partition that needs to be upgraded to the virtual machine.

[0126] The second receiving module 520 can receive the partition switching request sent by the virtual machine through the monitoring request service, and switch from the first target partition to the second target partition.

[0127] In the disclosed embodiment, it is possible to achieve synchronous upgrade of partitions corresponding to the virtual machine and the physical machine, and maintain the consistency of the HU system image.

[0128] In some embodiments of the present disclosure, the system partition upgrading apparatus 500 may further include a fourth processing module.

[0129] The fourth processing module can be used to feedback the partition switching result to the virtual machine after receiving the partition switching request sent by the virtual machine through the listening request service and switching the first target partition to the second target partition. The partition switching result is used to indicate whether the second target partition is upgraded successfully.

[0130] In some embodiments of the present disclosure, the system partition upgrading apparatus 500 may further include a third configuration module.

[0131] The third configuration module may be used to configure the partition configuration information in the partition table after receiving the partition switching request sent by the virtual machine through the monitoring request service, where the partition configuration information includes the partition identifier.

[0132] In some embodiments of the present disclosure, the second receiving module may be specifically configured to respond to a partition switching request and switch from the first target partition to the second target partition according to a partition identifier.

[0133] It should be noted that Figure 5 The system partition upgrade device 500 shown can execute Figure 2 The various steps in the method embodiment shown in the figure are implemented Figure 2 The various processes and effects in the method embodiment shown are not described in detail here.

[0134] Figure 6 A schematic diagram of the structure of a system partition upgrade device provided by an embodiment of the present disclosure is shown.

[0135] In some embodiments of the present disclosure, Figure 6 The system partition upgrade device shown may be an intelligent voice device that the user wants to upgrade the system partition. The intelligent voice device may be an electronic device with a system partition upgrade function or a voice interaction function. Specifically, the electronic device may include but is not limited to mobile terminals such as mobile phones, vehicle-mounted devices, vehicle controllers, tablet computers, wearable devices, smart home devices, etc.

[0136] like Figure 6 As shown, the system partition upgrade device may include a processor 601 and a memory 602 storing computer program instructions.

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

[0138] The memory 602 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 602 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 602 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 602 is a non-volatile solid-state memory. In a particular embodiment, the memory 602 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.

[0139] The processor 601 reads and executes the computer program instructions stored in the memory 602 to perform the steps of the system partition upgrade method provided in the embodiment of the present disclosure.

[0140] In one example, the system partition upgrade device may further include a transceiver 603 and a bus 604. Figure 6 As shown, the processor 601, the memory 602 and the transceiver 603 are connected via a bus 604 and communicate with each other.

[0141] The bus 604 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 604 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0142] The embodiment of the present disclosure further provides a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the system partition upgrade method provided by the embodiment of the present disclosure.

[0143] The above-mentioned storage medium may, for example, include a memory 602 of computer program instructions, and the above-mentioned instructions may be executed by the processor 601 of the system partition upgrade device to complete the system partition upgrade method provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0144] The embodiment of the present disclosure also provides a vehicle, which includes the above-mentioned system partition upgrade device. It is understandable that the vehicle may also include: a processor, a memory, and a computer program. The computer program is stored in the memory and is configured to be executed by the processor to implement the system partition upgrade method provided by the embodiment of the present disclosure. The processor and the memory are already in Figure 6 The parts described in the illustrated embodiment are not repeated here.

[0145] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0146] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A system partition upgrade method, characterized in that: Applicable to virtual machines, including: Receive a first target partition that needs to be upgraded and is mapped to a physical machine; the first target partition includes a partition corresponding to the physical machine and a partition corresponding to the virtual machine; According to the configured upgrade compilation file, the partition image data of the first target partition is packaged and upgraded, and the packaged file after the partition image data is upgraded is written into the second target partition, and the partition image data is obtained by data mirroring of the first target partition; a partition switching request is sent to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request; wherein the partition switching request carries a first identifier of the first target partition to be switched and a second identifier of the second target partition after switching.

2. The method according to claim 1, characterized in that After the physical machine sends the partition switching request, the method further includes: receiving a partition switching result fed back by the physical machine, where the partition switching result is used to indicate whether the second target partition is successfully upgraded; If the second target partition is not successfully upgraded, the partition image data of the first target partition is repackaged and upgraded.

3. The method according to claim 2, characterized in that The method further comprises: According to the partition switching result, a corresponding partition upgrade result is fed back to the user, where the partition upgrade result includes at least one of a partition upgrade success and a partition upgrade failure.

4. A system partition upgrade method, characterized in that: Applicable to physical machines, including: Mapping a first target partition that needs to be upgraded to the virtual machine; The partition switching request sent by the virtual machine is received by the listening request service, and the first target partition is switched to the second target partition, wherein the partition switching request carries the first identifier of the first target partition to be switched and the second identifier of the second target partition after switching.

5. The method according to claim 4, characterized in that After receiving the partition switching request sent by the virtual machine through the monitoring request service and switching from the first target partition to the second target partition, the method further includes: Feedback a partition switching result to the virtual machine, where the partition switching result is used to indicate whether the second target partition is successfully upgraded.

6. A system partition upgrade device, characterized in that: Applicable to virtual machines, including: A first receiving module is used to receive a first target partition that needs to be upgraded and is mapped to a physical machine; A packaging and upgrading module, used for packaging and upgrading the partition image data of the first target partition according to the configured upgrade compilation file, and writing the packaged file after the partition image data is upgraded into the second target partition, wherein the partition image data is obtained by performing data mirroring on the first target partition; The first sending module is used to send a partition switching request to the physical machine, so that the physical machine switches from the first target partition to the second target partition according to the partition switching request, and the partition switching request includes a partition identifier.

7. A system partition upgrade device, characterized in that: Applicable to physical machines, including: A second sending module is used to map a first target partition that needs to be upgraded to the virtual machine; The second receiving module is used to receive a partition switching request sent by the virtual machine through a monitoring request service, and switch from the first target partition to the second target partition, wherein the partition switching request includes a partition identifier.

8. A system partition upgrade device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the system partition upgrade method described in any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the system partition upgrade method described in any one of claims 1 to 5.

10. A vehicle, characterized in that: It comprises the system partition upgrading device as described in claims 6-7.