CN113282323A - Upgrading method based on dual-system upgrading package sharing - Google Patents

Upgrading method based on dual-system upgrading package sharing Download PDF

Info

Publication number
CN113282323A
CN113282323A CN202110602985.5A CN202110602985A CN113282323A CN 113282323 A CN113282323 A CN 113282323A CN 202110602985 A CN202110602985 A CN 202110602985A CN 113282323 A CN113282323 A CN 113282323A
Authority
CN
China
Prior art keywords
upgrading
storage
upgrade
sharing
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110602985.5A
Other languages
Chinese (zh)
Inventor
陈建新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN202110602985.5A priority Critical patent/CN113282323A/en
Publication of CN113282323A publication Critical patent/CN113282323A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Abstract

The invention relates to the technical field of vehicle-mounted systems, and provides an upgrading method based on dual-system upgrading package sharing.A disk storage partition is divided in a storage device and used as a sharable preset storage partition, and the host side and the client side are used for mounting at the same time; before a new version is updated and detected, the preset storage partitions are sequentially mounted in an upgrading shared area and a target storage area of a host machine end, when the client machine end detects that the new version is pushed, the upgrading data package is automatically downloaded and stored in the target storage area, the upgrading data package does not need to be downloaded to the storage of the host machine end, the host machine end can directly read the upgrading data package from the upgrading shared area, the disk space of the host machine for storage is saved, and the upgrading efficiency of a dual system (such as a QNX operating system and an Android operating system) is improved.

Description

Upgrading method based on dual-system upgrading package sharing
Technical Field
The invention relates to the technical field of virtual machines, in particular to an upgrading method based on dual-system upgrading package sharing.
Background
Based on a QNX Hypervisor (QNX virtual machine) scheme, a single soc chip is integrated to realize an intelligent cabin of an IVI (in-vehicle infotainment system), a CLUSTER (CLUSTER), a HUD (head-up display) and an HAVC (air conditioning system), and the intelligent cabin becomes the trend of the development of the next generation of products of the in-vehicle audio-visual entertainment system.
The existing QNX virtual machine upgrading process is as follows:
and starting an Android operating system at the client side, and transmitting the upgrade packet data required by the QNX system to the host side generally through communication between the two systems after the Android system downloads the OTA upgrade packet or reads the upgrade packet through a U disk. However, in the case of a relatively large upgrade package, there will be two problems: firstly, the transmission efficiency is low; and (II) a partition needs to be added under the QNX operating system at the host end for receiving and storing, which causes the waste of the disk storage space of the whole system.
Therefore, the prior art is in need of further improvement.
Disclosure of Invention
The invention provides an upgrading method based on dual-system upgrading package sharing, and solves the technical problems that an existing dual-system upgrading scheme of a QNX virtual machine is unreasonable, upgrading efficiency is low, and a disk storage space is wasted.
In order to solve the above technical problems, the present invention provides an upgrade method based on dual system upgrade package sharing, comprising the steps of:
s1, dividing the storage equipment to obtain preset storage partitions and configuring;
s2, mounting the preset storage partition into an upgrading shared area of a host machine end;
s3, the client side shares the upgrade sharing area according to a preset mechanism and mounts the preset storage partition to a target storage area;
s4, when the client side detects the push of a new version, storing the obtained upgrade data packet into the target storage area, and sending a sharing instruction to the host side;
and S5, the host machine end acquires the upgrade data packet from the upgrade shared area according to the sharing instruction and executes corresponding operation.
In the basic scheme, a disk storage partition is divided from a storage device to serve as a sharable preset storage partition, and the host side and the client side are mounted at the same time; before a new version is updated and detected, the preset storage partitions are sequentially mounted in an upgrading shared area and a target storage area of a host machine end, when the client machine end detects that the new version is pushed, the upgrading data package is automatically downloaded and stored in the target storage area, the upgrading data package does not need to be downloaded to the storage of the host machine end, the host machine end can directly read the upgrading data package from the upgrading shared area, the disk space of the host machine for storage is saved, and the upgrading efficiency of a dual system (such as a QNX operating system and an Android operating system) is improved.
In further embodiments, the step S1 includes:
s11, dividing a storage area in the storage module as a preset storage partition;
and S12, formatting the preset storage partition into a file system format supported by the target upgrading system.
According to the scheme, a storage area is divided in a storage module to serve as a preset storage partition, and the storage area is only used for storing the upgrading data packet, so that the system is convenient to manage; the preset storage partition is formatted into a file system format (such as EXT2) supported by both a host side (such as a QNX system) and a client side (such as an Android system), and can support direct reading of the host side (such as the QNX system) and the client side (such as the Android system).
In further embodiments, the step S3 includes:
s31, starting the client-side operating system;
and S32, the client side adopts a preset mechanism to share disk block data, share the upgrading shared area, and mount the preset storage partition to a target storage area in the client side operating system.
In further embodiments, the step S5 includes:
s51, the host side obtains the sharing instruction and accesses the target storage area through the upgrading sharing area;
and S52, reading the upgrade data packet from the target storage area, and executing corresponding operation.
In a further embodiment, the preset mechanism is a VIRTIO-BLK mechanism;
according to the scheme, a VIRTIO-BLK mechanism is adopted to share the disk block data, so that an operating system at a client side can mount and access a disk partition at a host side, and dual-system disk data sharing is achieved.
The target storage area is an upgrade patch storage area in the client-side operating system.
In a further embodiment, in the step S1, when the memory module is an eMMC memory chip inside a vehicle, the step S11 specifically includes: and dividing the storage module into a plurality of storage partitions by adopting GPT partitions, and selecting one storage partition as a preset storage partition.
In further embodiments, in said step S11: when the storage module is an external storage device, taking an internal storage area of the external storage device as a preset storage partition;
the external storage equipment comprises a TF card, a U disk and a mobile hard disk.
According to the scheme, a corresponding preset storage partition acquisition mechanism is set according to different storage settings, when a storage module is an eMMC storage chip in a vehicle, the preset storage partition acquired by a GPT partition is only used for storing an upgrade data packet, and the system management is facilitated; and when the storage module is an external storage device, the storage of the upgrade data packet can be directly carried out without carrying out partition operation based on the unicity of the use scene of the storage module.
In a further embodiment, the upgrade data package is an OTA upgrade package, including a host end system upgrade package or/and a client end system upgrade package.
In a further embodiment, the host system is a QNX operating system, and the client system is an Android operating system.
In a further embodiment, the file system format is EXT 2.
Drawings
Fig. 1 is a flowchart of an upgrade method based on dual system upgrade package sharing according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in detail below with reference to the accompanying drawings, which are given solely for the purpose of illustration and are not to be construed as limitations of the invention, including the drawings which are incorporated herein by reference and for illustration only and are not to be construed as limitations of the invention, since many variations thereof are possible without departing from the spirit and scope of the invention.
As shown in fig. 1, an upgrade method based on dual system upgrade package sharing according to an embodiment of the present invention includes the steps of:
s1, dividing the storage device to obtain the preset storage partition and configuring, including:
s11, dividing a storage area in the storage module as a preset storage partition, specifically:
when the storage module is an eMMC storage chip inside the vehicle, GPT partition is adopted, the storage module is divided into a plurality of storage partitions, and one storage partition is selected as a preset storage partition.
The emmc (embedded multimedia Media card) is an abbreviation of an embedded multimedia controller, and refers to a packaging structure composed of a flash memory and a flash memory controller integrated on the same silicon chip; after the GPT partition is adopted, the storage module further comprises a DOS partition for storing the QNX kernel, a BASE partition for storing the QNX application and a partition for storing an Android system.
When the storage module is an external storage device, taking an internal storage area of the external storage device as a preset storage partition;
in the embodiment, the external storage device includes, but is not limited to, a TF card, a usb disk, and a removable hard disk.
According to different storage settings, a corresponding preset storage partition acquisition mechanism is set, when a storage module is an eMMC storage chip in a vehicle, the preset storage partition acquired by a GPT partition is only used for storing an upgrade data packet, and the system management is facilitated; and when the storage module is an external storage device, the storage of the upgrade data packet can be directly carried out without carrying out partition operation based on the unicity of the use scene of the storage module.
And S12, formatting the preset storage partition into a file system format supported by the target upgrading system.
In the present embodiment, the file system format is preferably EXT 2.
According to the invention, a storage area is divided in the storage module to serve as a preset storage partition, and is only used for storing the upgrading data packet, so that the system is convenient to manage; the preset storage partition is formatted into an EXT2 file system format corresponding to the format in a host side (such as a QNX system) or a client side (such as an Android system), and the direct reading of the host side system and the client side system can be supported.
It should be understood that the host system is not necessarily QNX, and the client system is not necessarily Android, and may be set according to actual situations.
And S2, mounting the preset storage partition into an upgrading shared area of a HOST end (HOST end).
S3, the client side (GUEST client) shares the upgrading shared area according to the preset mechanism, and mounts the preset storage partition to the target storage area, including:
s31, controlling a QNX operating system at a host end to start an Android operating system at a client end;
and S32, sharing the data of the disk block by the client side through a preset mechanism, sharing an upgrading shared area, and mounting the preset storage partition to a target storage area in the Android operating system.
In this embodiment, the default mechanism is a VIRTIO-BLK mechanism;
the invention adopts the VIRTIO-BLK mechanism to share the disk block data, so that the operating system at the client end can mount and access the disk partition at the host end, thereby achieving the dual-system disk data sharing.
In this embodiment, the target storage area is an upgrade package storage area in an Android operating system.
S4, when the client end detects the push of the new version, the obtained upgrade data packet is stored in the target storage area, and a sharing instruction is sent to the host end;
in this embodiment, the upgrade data package OTA upgrade package includes a QNX system upgrade package or/and an Android system upgrade package.
S5, the host side obtains the upgrade data package from the upgrade sharing area according to the sharing instruction, and executes corresponding operations, including:
s51, the host side obtains the sharing instruction and accesses the target storage area through upgrading the sharing area;
and S52, reading the upgrade data packet from the target storage area and executing corresponding operation.
And the corresponding operation comprises directly reading the upgrade data packet to upgrade the system, or ignoring the upgrade when detecting that the version of the upgrade packet is upgraded.
In this embodiment, taking a host end system as a QNX operating system and a client end system as an Android operating system as an example, the dual system upgrading process is as follows: after the QNX operating system at the host machine end is started, mounting processing is carried out on the storage module, and the preset storage partition in the storage module is mounted in the upgrading shared area at the host machine end.
Subsequently, the QNX operating system starts the Android operating system on the client side through the QVM virtual machine of QNX Hypervisor.
And the client side carries out mounting processing on the storage module and mounts the preset storage partition in the storage module into a target storage area of the Android operating system.
At the moment, when the client side detects that the new version is pushed, the upgrading data package is stored in the target storage area, then the sharing instruction is sent to the host side, and if the Android operating system needs to be upgraded, the Android system upgrading package is directly read from the upgrading data package for upgrading.
When the host machine end receives the sharing instruction, the upgrading data packet can be synchronously accessed through the upgrading sharing area path of the QNX operating system, and the QNX system upgrading packet can be upgraded after being read.
In the embodiment of the invention, a disk storage partition is divided in a storage device and is used as a sharable preset storage partition, and the host machine end and the client machine end are used for mounting simultaneously; before a new version is updated and detected, the preset storage partitions are sequentially mounted in an upgrading shared area and a target storage area of a host machine end, when the client machine end detects that the new version is pushed, the upgrading data package is automatically downloaded and stored in the target storage area, the upgrading data package does not need to be downloaded to the storage of the host machine end, the host machine end can directly read the upgrading data package from the upgrading shared area, the disk space of the host machine for storage is saved, and the upgrading efficiency of a dual system (such as a QNX operating system and an Android operating system) is improved.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.

Claims (10)

1. An upgrading method based on dual-system upgrading package sharing is characterized by comprising the following steps:
s1, dividing the storage equipment to obtain preset storage partitions and configuring;
s2, mounting the preset storage partition into an upgrading shared area of a host machine end;
s3, the client side shares the upgrade sharing area according to a preset mechanism and mounts the preset storage partition to a target storage area;
s4, when the client side detects the push of a new version, storing the obtained upgrade data packet into the target storage area, and sending a sharing instruction to the host side;
and S5, the host machine end acquires the upgrade data packet from the upgrade shared area according to the sharing instruction and executes corresponding operation.
2. The upgrading method based on dual system upgrade package sharing according to claim 1, wherein the step S1 includes:
s11, dividing a storage area in the storage module as a preset storage partition;
and S12, formatting the preset storage partition into a file system format supported by the target upgrading system.
3. The upgrading method based on dual system upgrade package sharing according to claim 1, wherein the step S3 includes:
s31, starting the client-side operating system;
and S32, the client side adopts a preset mechanism to share disk block data, share the upgrading shared area, and mount the preset storage partition to a target storage area in the client side operating system.
4. The upgrading method based on dual system upgrade package sharing according to claim 1, wherein the step S5 includes:
s51, the host side obtains the sharing instruction and accesses the target storage area through the upgrading sharing area;
and S52, reading the upgrade data packet from the target storage area, and executing corresponding operation.
5. The dual system upgrade package sharing based upgrade method according to claim 4, wherein the preset mechanism is a VIRTIO-BLK mechanism; the target storage area is an upgrade patch storage area in the client-side operating system.
6. The upgrading method based on dual system upgrade package sharing of claim 2, wherein in the step S1, when the storage module is an eMMC storage chip inside a vehicle, the step S11 specifically includes: and dividing the storage module into a plurality of storage partitions by adopting GPT partitions, and selecting one storage partition as a preset storage partition.
7. The upgrade method based on dual system upgrade package sharing according to claim 2, wherein in said step S11: when the storage module is an external storage device, taking an internal storage area of the external storage device as a preset storage partition; the external storage equipment comprises a TF card, a U disk and a mobile hard disk.
8. The upgrading method based on dual system upgrading packet sharing of any one of claims 1 to 7, wherein the upgrading data packet is an OTA upgrading packet, and comprises a host end system upgrading packet or/and a client end system upgrading packet.
9. The upgrading method based on dual system upgrade package sharing of claim 8, wherein the host system is a QNX operating system, and the client system is an Android operating system.
10. The dual system upgrade package sharing based upgrade method according to claim 9, wherein said file system format is EXT 2.
CN202110602985.5A 2021-05-31 2021-05-31 Upgrading method based on dual-system upgrading package sharing Pending CN113282323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110602985.5A CN113282323A (en) 2021-05-31 2021-05-31 Upgrading method based on dual-system upgrading package sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110602985.5A CN113282323A (en) 2021-05-31 2021-05-31 Upgrading method based on dual-system upgrading package sharing

Publications (1)

Publication Number Publication Date
CN113282323A true CN113282323A (en) 2021-08-20

Family

ID=77282832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110602985.5A Pending CN113282323A (en) 2021-05-31 2021-05-31 Upgrading method based on dual-system upgrading package sharing

Country Status (1)

Country Link
CN (1) CN113282323A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791810A (en) * 2021-11-15 2021-12-14 北京国科天迅科技有限公司 ZYNQ platform-based remote upgrading method, device and system
CN116450184A (en) * 2023-06-09 2023-07-18 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544031A (en) * 2013-08-27 2014-01-29 Tcl集团股份有限公司 Android system updating method and system of multi-partition external storage equipment
WO2017097114A1 (en) * 2015-12-09 2017-06-15 华为技术有限公司 Shared file access method, system and related device
CN106878976A (en) * 2016-01-27 2017-06-20 努比亚技术有限公司 The data sharing method of mobile terminal and dual system
CN108369604A (en) * 2017-12-28 2018-08-03 深圳前海达闼云端智能科技有限公司 A kind of method, apparatus and electronic equipment of multiple operating system shared-file system
CN111124536A (en) * 2019-12-12 2020-05-08 诚迈科技(南京)股份有限公司 Data isolation-based dual-system data sharing method and device and terminal equipment
CN111367549A (en) * 2020-02-29 2020-07-03 惠州华阳通用电子有限公司 Dual system and upgrading method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544031A (en) * 2013-08-27 2014-01-29 Tcl集团股份有限公司 Android system updating method and system of multi-partition external storage equipment
WO2017097114A1 (en) * 2015-12-09 2017-06-15 华为技术有限公司 Shared file access method, system and related device
CN106878976A (en) * 2016-01-27 2017-06-20 努比亚技术有限公司 The data sharing method of mobile terminal and dual system
CN108369604A (en) * 2017-12-28 2018-08-03 深圳前海达闼云端智能科技有限公司 A kind of method, apparatus and electronic equipment of multiple operating system shared-file system
CN111124536A (en) * 2019-12-12 2020-05-08 诚迈科技(南京)股份有限公司 Data isolation-based dual-system data sharing method and device and terminal equipment
CN111367549A (en) * 2020-02-29 2020-07-03 惠州华阳通用电子有限公司 Dual system and upgrading method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791810A (en) * 2021-11-15 2021-12-14 北京国科天迅科技有限公司 ZYNQ platform-based remote upgrading method, device and system
CN116450184A (en) * 2023-06-09 2023-07-18 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium
CN116450184B (en) * 2023-06-09 2023-10-13 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113282323A (en) Upgrading method based on dual-system upgrading package sharing
CN102799464B (en) Virtual machine creation method and system, virtual machine reloading method and system
CN105446772B (en) A kind of method and apparatus of system upgrade
EP3885903A1 (en) Cloud desktop upgrade method, device, cloud server, and storage medium
US8832289B2 (en) Wireless network connection system and method
US20220100490A1 (en) Firmware updating method, and electronic apparatus and storage media for same
CN102521016A (en) Method and system for operating multiple virtual machines
CN114265616B (en) Upgrading method of operating system, electronic equipment and storage medium
US20160185221A1 (en) Upgradable vehicle
US20200174781A1 (en) Method and Device for Updating Software
CN115543368A (en) Operating system upgrading method and electronic equipment
EP2499572A2 (en) Flash memory file system
US20130111465A1 (en) Method and system for installing [[a]] terminal equipment
US20160378553A1 (en) Resource Management Method and Device for Terminal System
CN115357295B (en) System rollback method, device and storage medium
CN114780120B (en) Upgrade method, device and storage medium
US20170255461A1 (en) In-vehicle apparatus
EP3992783A1 (en) Patch releasing method, server and terminal device
CN102135896A (en) Method and system for realizing software upgrading based on embedded system
EP2613254A2 (en) Apparatus and method for partitioning memory area for application preloading in a wireless terminal
CN105163365A (en) Mobile terminal network access control method and device
CN115495119A (en) Method, system and application for supporting aircraft firmware upgrading through serial port double-baud rate switching
CN115659355A (en) Method, system, equipment and storage medium for upgrading security chip of vehicle end
CN116582526A (en) Silence upgrading method, system, terminal and readable medium
CN114047873A (en) Data partitioning method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210820

RJ01 Rejection of invention patent application after publication