CN107957878A - A kind of embedded device on-line software updating method reallocated based on storage resource - Google Patents

A kind of embedded device on-line software updating method reallocated based on storage resource Download PDF

Info

Publication number
CN107957878A
CN107957878A CN201711277814.XA CN201711277814A CN107957878A CN 107957878 A CN107957878 A CN 107957878A CN 201711277814 A CN201711277814 A CN 201711277814A CN 107957878 A CN107957878 A CN 107957878A
Authority
CN
China
Prior art keywords
embedded device
mirror image
storage resource
subregion
transition
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.)
Granted
Application number
CN201711277814.XA
Other languages
Chinese (zh)
Other versions
CN107957878B (en
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.)
Wuhan Institute Of Ship Communication (china Shipbuilding Industry Corp No 722 Institute)
Original Assignee
Wuhan Institute Of Ship Communication (china Shipbuilding Industry Corp No 722 Institute)
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 Wuhan Institute Of Ship Communication (china Shipbuilding Industry Corp No 722 Institute) filed Critical Wuhan Institute Of Ship Communication (china Shipbuilding Industry Corp No 722 Institute)
Priority to CN201711277814.XA priority Critical patent/CN107957878B/en
Publication of CN107957878A publication Critical patent/CN107957878A/en
Application granted granted Critical
Publication of CN107957878B publication Critical patent/CN107957878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of embedded device on-line software updating method reallocated based on storage resource.The method of the present invention obtains embedded device storage resource present case first, makes transition mirror image, the partition information of the transition mirror image is consistent with embedded device storage resource current bay information, also comprising an extra virtual partition;Transition image upgrade into embedded device and is restarted embedded device and enters new system afterwards;Make final mirror image followed by, the size and embedded device storage resource of the final mirror image are in the same size, and the partition information after the partition information of final mirror image is redistributed with embedded device storage resource is consistent;In the new system of final image upgrade to embedded device and it will finally restart, the upgrade method is specially by final the mirror image integrally erasable virtual partition to embedded device new system.This online upgrading method can redistribute storage resource, extend the cycle that embedded device updates, and reduce customer using cost.

Description

A kind of embedded device on-line software updating method reallocated based on storage resource
Technical field
The invention belongs to embedded development technical field, more particularly, to a kind of based on the embedding of storage resource reallocation Enter formula device software online upgrading method.
Background technology
With the fast-developing of science and technology and progress, embedded device is increasingly popularized, and software upgrading is also getting faster.At present Software upgrading has two class methods, and one kind is online upgrading, and one kind is upgraded in offline.Upgraded in offline method generally manually operates Realize, be only used for research and development test or small lot embedded device software upgrading.Online upgrading method is generally by being automatically brought into operation Realize, high-volume software upgrading can be carried out to online embedded device by server.Storage where the software updated every time Regional location is different, storage resource will be caused to use uneven;It is continuous that the continuous renewal of software also leads to software size itself Become larger, the space occupied increase.The above problem causes following situation at a time occur at last:Part partition holding storage money Source not enough uses, other partition holdings also have a large amount of idle storage resources.Current online upgrading method can not be to embedded device Storage resource redistributed, once there is the above situation, the replacement can only be just updated to embedded device, cost is huge Greatly.
The content of the invention
For the disadvantages described above or Improvement requirement of the prior art, reallocated the present invention provides a kind of based on storage resource Embedded device on-line software updating method, during its object is to by image upgrade twice, thus solve online upgrading, it is necessary to The technical problem of partitioned storage insufficient space where the software of upgrading.
To achieve the above object, there is provided a kind of embedded device on-line software updating side to be reallocated based on storage resource Method, the described method includes:
(1) embedded device storage resource present case is obtained, makes transition mirror image, the partition information of the transition mirror image It is consistent with the current bay information of embedded device storage resource, also comprising an extra virtual partition;
(2) transition image upgrade into embedded device and is restarted embedded device and enters new system;The upgrading side Method is specially to take out the subregion mirror image of transition mirror image from transition mirror image erasable to correspond to subregion to embedded device;
(3) final mirror image is made, the size and embedded device storage resource of the final mirror image are in the same size, subregion letter Partition information after breath is redistributed with embedded device storage resource is consistent;
(4) by final image upgrade to operation new system embedded device in and restart, the upgrade method is specially By in final the mirror image integrally virtual partition of the erasable embedded device to operation new system.
Further, each subregion mirror image of transition mirror image is correspondingly embedded in a subregion of formula equipment in the step (1).
Further, in the step (1) virtual partition first address be directed toward embedded device storage resource first address, It is directed toward the last address of embedded device storage resource in the last address of virtual partition.
Further, the initial address of each subregion mirror image of final mirror image is directed toward storage resource weight in the step (3) Subregion initial address, 0 value of subregion mirror image redundant space filling are corresponded to after new distribution.
The method of the present invention is by mirror image online upgrading embedded device software twice, compared with current online upgrading method, Storage resource can be redistributed so that storage resource is utilized effectively, and extends the cycle that embedded device updates, drop Low customer using cost.
Brief description of the drawings
Fig. 1 is the implementing procedure figure of the method for the present invention;
Fig. 2 is that transition mirror image and final mirror image are made in the method for the present invention embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.As long as in addition, technical characteristic involved in each embodiment of invention described below that Not forming conflict between this can be mutually combined.
As shown in Figure 1, a kind of embedded device on-line software updating method based on storage resource reallocation is including following Step:
(1) embedded device storage resource present case is obtained, makes transition mirror image, the partition information of the transition mirror image It is consistent with embedded device storage resource current bay information, also comprising an extra virtual partition;The first ground of virtual partition The first address of embedded device storage resource is directed toward in location, and the end ground of embedded device storage resource is directed toward in the last address of virtual partition Location;Each subregion mirror image of transition mirror image is correspondingly embedded in a subregion of formula equipment;
As shown in Fig. 2, (B) is embedded device storage resource current bay situation, (C) is to be in bootstrap and operation After increasing a virtual partition E in system code, embedded device storage resource partitioning scenario;The first address of virtual partition E is directed toward The last address of embedded device storage resource is directed toward in the first address of embedded device storage resource, the last address of virtual partition E;
(2) transition image upgrade into embedded device and is restarted embedded device and enters new system;As shown in Fig. 2, (A) it is transition mirror image, the schematic process of (A) and (B) is the upgrade method, specially by each subregion mirror image from transition mirror Taking-up is directly erasable as in corresponds to subregion to embedded device, subregion A is arrived as subregion mirror image ImagePart1 is erasable, with such Push away, the partitioning scenario of new system is such as shown in (C);
(3) final mirror image is made, the size and embedded device storage resource of the final mirror image are in the same size, final mirror Partition information after the partition information of picture is redistributed with storage resource is consistent;As shown in Fig. 2, (E) is illustrated as the storage money Source redistribute after partitioning scenario, (D) is illustrated as the final mirror image, and each of which subregion mirror image initial address is directed toward storage money The initial address of (E) corresponding subregion after source is redistributed, 0 value of subregion mirror image redundant space filling;
(4) in the new system of final image upgrade to embedded device and will restart, the upgrade method is specially will most Whole mirror image is integrally in the virtual partition of the erasable embedded device to operation new system;As shown in Fig. 2, (D) be illustrated as it is described most Whole mirror image, (C) are illustrated as the partitioning scenario of new system, by final the mirror image integrally erasable virtual partition E to new system;Restart The storage resource that equipment completes equipment is reallocated, and the new partitioning scenario of equipment is such as shown in (E).
Above content as it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, It is not intended to limit the invention, all any modification, equivalent and improvement made within the spirit and principles of the invention etc., It should all be included in the protection scope of the present invention.

Claims (4)

  1. A kind of 1. embedded device on-line software updating method reallocated based on storage resource, it is characterised in that the method Including:
    (1) embedded device storage resource present case is obtained, makes transition mirror image, the partition information of the transition mirror image and embedding It is consistent to enter the current bay information of formula equipment storage resource, also comprising an extra virtual partition;
    (2) transition image upgrade into embedded device and is restarted embedded device and enters new system;The upgrade method tool Body is to take out the subregion mirror image of transition mirror image from transition mirror image erasable to correspond to subregion to embedded device;
    (3) make final mirror image, the size and embedded device storage resource of the final mirror image are in the same size, partition information and Partition information after embedded device storage resource is redistributed is consistent;
    (4) by final image upgrade to operation new system embedded device in and restart, the upgrade method be specially will most Whole mirror image is integrally in the virtual partition of the erasable embedded device to operation new system.
  2. 2. online upgrading method according to claim 1, it is characterised in that transition mirror image is each in the step (1) Subregion mirror image is correspondingly embedded in a subregion of formula equipment.
  3. 3. online upgrading method according to claim 1, it is characterised in that the first ground of virtual partition in the step (1) The first address of embedded device storage resource is directed toward in location, and the end ground of embedded device storage resource is directed toward in the last address of virtual partition Location.
  4. 4. online upgrading method according to claim 1, it is characterised in that final mirror image is each in the step (3) The initial address of subregion mirror image, which is directed toward after storage resource is redistributed, corresponds to subregion initial address, the filling of subregion mirror image redundant space 0 value.
CN201711277814.XA 2017-12-06 2017-12-06 Embedded equipment software online upgrading method based on storage resource redistribution Active CN107957878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711277814.XA CN107957878B (en) 2017-12-06 2017-12-06 Embedded equipment software online upgrading method based on storage resource redistribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711277814.XA CN107957878B (en) 2017-12-06 2017-12-06 Embedded equipment software online upgrading method based on storage resource redistribution

Publications (2)

Publication Number Publication Date
CN107957878A true CN107957878A (en) 2018-04-24
CN107957878B CN107957878B (en) 2020-07-07

Family

ID=61958106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711277814.XA Active CN107957878B (en) 2017-12-06 2017-12-06 Embedded equipment software online upgrading method based on storage resource redistribution

Country Status (1)

Country Link
CN (1) CN107957878B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467941A (en) * 2021-06-25 2021-10-01 北京汇钧科技有限公司 Method and device for sharing information
CN113791811A (en) * 2021-08-02 2021-12-14 瑞芯微电子股份有限公司 Firmware upgrading method and storage device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921328B1 (en) * 2008-04-18 2011-04-05 Network Appliance, Inc. Checkpoint consolidation for multiple data streams
CN107229501A (en) * 2017-06-30 2017-10-03 深圳市九洲电器有限公司 Set top box subregion changes upgrade method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921328B1 (en) * 2008-04-18 2011-04-05 Network Appliance, Inc. Checkpoint consolidation for multiple data streams
CN107229501A (en) * 2017-06-30 2017-10-03 深圳市九洲电器有限公司 Set top box subregion changes upgrade method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MLADEN KOVACEV等: "Implementation of Disaster Recovery Agent within Android based set-top box", 《2013 IEEE THIRD INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS BERLIN (ICCE-BERLIN)》 *
詹圣益: "嵌入式软件在线升级的设计及实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467941A (en) * 2021-06-25 2021-10-01 北京汇钧科技有限公司 Method and device for sharing information
CN113791811A (en) * 2021-08-02 2021-12-14 瑞芯微电子股份有限公司 Firmware upgrading method and storage device

Also Published As

Publication number Publication date
CN107957878B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN103559054B (en) Realization, delet method and the device of intelligent terminal multi-operation system
US7743242B2 (en) Method and system for automatic generation of operating system boot images
CN107589994B (en) Method, device, system and storage medium for managing application process priority
CN104918114B (en) A kind of operating system update method and device
CN103703445A (en) Systems and methods for automatic hardware provisioning based on application characteristics
CN105052111A (en) Service migration across cluster boundaries
CN107368353B (en) Method and device for realizing hot addition of virtual machine memory
US11762651B2 (en) Software and firmware updates in a combined single pane of glass interface
CN107643898A (en) Terminal staging method and device
CN106155745A (en) The upgrade method of basic input output system, device and system
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN105930184A (en) System upgrade method and device
CN103716416A (en) IP configuration method and apparatus under cloud computing platform
CN107957878A (en) A kind of embedded device on-line software updating method reallocated based on storage resource
CN105872842A (en) Multi-desktop independent upgrade method and device
US11650804B2 (en) Validation of desired software state image for hardware incompatibilities
CN106512397A (en) Data loading method for game server and game server
CN104572255B (en) A kind of multilayer application trustship method, apparatus and system
US20230342181A1 (en) Validation of combined software/firmware updates
CN106254516B (en) Load balancing method and device
US20160299768A1 (en) Automatic identification of returned merchandise in a data center
CN106445601A (en) Device and method for plugin upgrading
CN109729182B (en) Network address allocation method and system of virtual network function and VNFM
US20170090820A1 (en) Method and device for operating a many-core system
JP7102783B2 (en) System management equipment, system management methods, and programs

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
GR01 Patent grant
GR01 Patent grant