CN106648441A - Method and device for transferring equipment partition information - Google Patents

Method and device for transferring equipment partition information Download PDF

Info

Publication number
CN106648441A
CN106648441A CN201510715848.7A CN201510715848A CN106648441A CN 106648441 A CN106648441 A CN 106648441A CN 201510715848 A CN201510715848 A CN 201510715848A CN 106648441 A CN106648441 A CN 106648441A
Authority
CN
China
Prior art keywords
subregion
partition
upgrading
description information
information
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.)
Withdrawn
Application number
CN201510715848.7A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510715848.7A priority Critical patent/CN106648441A/en
Priority to PCT/CN2016/103787 priority patent/WO2017071646A1/en
Publication of CN106648441A publication Critical patent/CN106648441A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • 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
    • 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for transferring equipment partition information. The method includes the steps of: reading the description information of a partition to be upgraded inside a system from an assembly partition of the system, and obtaining the description information of an upgrade partition in an upgrade file; judging whether the description information of the upgrade partition in the upgrade file is consistent with the description information of the corresponding partition to be upgraded in the system; if not, updating the corresponding description information of the partition to be upgraded in the system; and updating the corresponding description information of the partition in the assembly partition according to the updated corresponding description information of the partition in the system. The invention also discloses a device for transferring equipment partition information. The invention solves the problems of low efficiency at the program development phase and inconvenient later maintenance of the program version caused by the adjustment complexity of the equipment partition information.

Description

Equipment partition information transmission method and device
Technical field
The present invention relates to computer realm, more particularly to a kind of equipment partition information transmission method and device.
Background technology
In embedded product development and application, often use in design Storage nand (flash memory device), The flash such as nor (flash memory device) (Flash Memory, flash storage) equipment, for convenience system Management to data storage, needs according to demand to carry out storage device division spatially.And realize dividing The division in area needs system that quantity, size and other auxiliary informations of subregion have been determined in advance, and how to obtain These information are obtained, a kind of generally simple method is that the structure number of a static state is safeguarded in program module Group, each structure element has corresponded to the related division information of a subregion, finally carrys out root by driver The partition information fixed according to these is creating each corresponding subregion.This static side for obtaining partition information Formula has certain limitation in complicated Embedded Application, particularly has multiple modules all to need in system In the case of using partition information, the adjustment of a partition information, it is necessary to go to change multiple passes manually The block code of connection, to ensure the uniformity of partition information, which results in the effect in the program development stage Rate is low and later stage program version safeguards not convenient.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is Prior art.
The content of the invention
Present invention is primarily targeted at provide a kind of equipment partition information transmission method and device, solve by In partition information adjustment complexity, caused program development stage inefficiency and later stage program version are safeguarded Not convenient problem.
For achieving the above object, the present invention provides a kind of equipment partition information transmission method, including:
The description information of subregion to be upgraded from reading system in the component partition of system, and obtain upgrading text The description information of the upgrading subregion in part;
Judge in the upgrade file upgrading subregion description information it is corresponding to be upgraded with the system Whether the description information of subregion is consistent;
If inconsistent, the description information of corresponding subregion to be upgraded in the system is updated;
The description information of corresponding subregion in the system after according to renewal, updates in the component partition The description information of corresponding subregion.
Preferably, the description information of subregion to be upgraded is stored in the component partition in the system, institute It is the data structure for setting form to state description information, and the data structure is made up of structure, the structure Body describes index, size and the position offset information of correspondence subregion:
The upgrade file is made up of file header with each upgrading subregion, the liter fraction in the upgrade file The description information in area is stored in the file header of the upgrade file, and file header describes the upgrading subregion Number, and position skew of each upgrading subregion in the upgrade file;Each the interior of subregion of upgrading Hold and add upgrading data to constitute by component head;Each upgrading subregion and application partition pair to be upgraded in the system Should.
Preferably, the step of description information of the upgrading subregion obtained in upgrade file includes:To rising The file header of level file is parsed, and obtains the upgrading partition data in the file header of upgrade file in upgrading Position skew in file;
Position of the upgrading partition data in the file header of the upgrade file in upgrade file is inclined Move, obtain the upgrading partition data in upgrade file;
According to the component head of the upgrading partition data, the description information of upgrading subregion is obtained.
Preferably, in the description information of the upgrading subregion judged in the upgrade file and the system After the whether consistent step of the description information of corresponding subregion to be upgraded, also include:
If the description of the description information subregion to be upgraded corresponding with system of the upgrading subregion in upgrade file Information is consistent, then according in the description information storage upgrade file of corresponding subregion to be upgraded in the system The upgrading data of upgrading subregion.
Preferably, it is described according to renewal after the system in corresponding each subregion description information, more After newly in the component partition the step of description information of corresponding each application partition, also include:
Data Matching and verification are carried out to the data in the component partition;
If verifying successfully, according to the renewal after the component partition in corresponding subregion description letter Breath is initialized to correspondence subregion in system;
If verification failure, using system default static partition table description information initializing the system Correspondence subregion in system, by the description information of the static partition table of the system default according in component partition The form of description information is stored in the system inner assembly subregion, is used for system operation.
Additionally, for achieving the above object, the present invention also provides a kind of partition information transfer device, described point Area's information transfer device includes:
Acquisition module, for the description information of subregion to be upgraded in the reading system from the component partition of system, And obtain in upgrade file upgrading subregion description information;
Judge module, for judging the upgrade file in upgrading subregion description information and the system Whether the description information of interior corresponding subregion to be upgraded is consistent;
First update module, for the description of the upgrading subregion in judging the upgrade file in judge module When the description information of information subregion to be upgraded corresponding with the system is inconsistent, update in the system The description information of corresponding subregion to be upgraded;
Second update module, for the description information of corresponding subregion in the system after according to renewal, Update the description information of corresponding subregion in the component partition.
Preferably, the description information of subregion to be upgraded is stored in the component partition in the system, institute It is the data structure for setting form to state description information, and the data structure is made up of structure, the structure Body describes index, size and the position offset information of correspondence subregion:
The upgrade file is made up of file header with each upgrading subregion, the liter fraction in the upgrade file The description information in area is stored in the file header of the upgrade file, and file header describes the upgrading subregion Number, and position skew of each upgrading subregion in the upgrade file;Each the interior of subregion of upgrading Hold and add upgrading data to constitute by component head;Each upgrading subregion and application partition pair to be upgraded in the system Should.
Preferably, the acquisition module includes:
First acquisition unit, for parsing to the file header of upgrade file, obtains the text of upgrade file Position skew of the upgrading partition data in part head in upgrade file;
Second acquisition unit, is rising for the upgrading partition data in the file header of the upgrade file Position skew in level file, obtains the upgrading partition data in upgrade file.
3rd acquiring unit, for according to the component head of the upgrading partition data, obtaining upgrading subregion Description information.
Preferably, the partition information transfer device also includes:
First upgraded module, if the description information for the upgrading subregion in upgrade file is corresponding with system Subregion to be upgraded description information it is consistent, then according to the description of corresponding subregion to be upgraded in the system The upgrading data of upgrading subregion in information storage upgrade file.
Preferably, the partition information transfer device, also includes:
Initialization module, for carrying out Data Matching and verification to the data in the component partition;If school Test successfully, then according to the renewal after the component partition in corresponding subregion description information to system Interior correspondence subregion is initialized;If verification failure, using the description of the static partition table of system default Information correspond in the system subregion to initialize, and the description of the static partition table of the system default is believed Cease and stored in the system inner assembly subregion, for system according to the form of the description information in component partition Operation is used.
The description letter that the embodiment of the present invention passes through subregion to be upgraded in the reading system from the component partition of system Breath, and obtain in upgrade file upgrading subregion description information;Judge the upgrading in the upgrade file Whether the description information of subregion is consistent with the description information of corresponding subregion to be upgraded in the system;If no Unanimously, then the description information of corresponding subregion to be upgraded in the system is updated;Described in after renewal The description information of corresponding subregion in system, updates the description information of corresponding subregion in the component partition. So as to solve caused program development stage inefficiency and later stage because partition information adjustment is complicated Program version safeguards not convenient problem.
Description of the drawings
Fig. 1 is the schematic flow sheet of present device partition information transmission method first embodiment;
Fig. 2 is the schematic flow sheet of present device partition information transmission method second embodiment;
Fig. 3 is the schematic flow sheet of present device partition information transmission method 3rd embodiment;
Fig. 4 is the schematic flow sheet of present device partition information transmission method fourth embodiment;
Fig. 5 is the high-level schematic functional block diagram of present device partition information transfer device first embodiment;
Fig. 6 is the high-level schematic functional block diagram of present device partition information transfer device second embodiment;
Fig. 7 is the high-level schematic functional block diagram of present device partition information transfer device 3rd embodiment;
Fig. 8 is the high-level schematic functional block diagram of present device partition information transfer device fourth embodiment;
The realization of the object of the invention, functional characteristics and advantage will be done referring to the drawings further in conjunction with the embodiments Explanation.
Specific embodiment
It should be appreciated that specific embodiment described herein is not used to limit only to explain the present invention The fixed present invention.
The primary solutions of the embodiment of the present invention are:Wait to rise from reading system in the component partition of system Level subregion description information, and obtain in upgrade file upgrading subregion description information;Judge the liter The description information of the description information subregion to be upgraded corresponding with the system of the upgrading subregion in level file It is whether consistent;If inconsistent, the description information of corresponding subregion to be upgraded in the system is updated;Press The description information of corresponding subregion in the system after according to renewal, updates corresponding in the component partition The description information of subregion.
Due in prior art in the Embedded Application of actual complex, using partition information in the case of, The adjustment of partition information successively, just must start the block code for changing multiple associations, to ensure that subregion is believed The uniformity of breath, result in inefficiency and later stage program version in the program development stage and safeguards not It is convenient.
The present invention provide a solution, can dividing system component partition, integrated system upgrade file The partition information of form, Unify legislation information and integrated system, solves because partition information adjustment is multiple Miscellaneous and caused program development stage inefficiency and later stage program version safeguard not convenient problem.
With reference to Fig. 1, first embodiment of the invention provides a kind of equipment partition information transmission method, including:
Step S10, the description information of subregion to be upgraded from reading system in the component partition of system, and obtain Take the description information of the upgrading subregion in upgrade file.
In this embodiment scheme, addition one component point on the basis of system application partition divides is being met Area, the subregion can be designed as suitable size according to system application demand, and believe for partition holding description Breath list.
The data structure that divisional description information design is specific format, each structure are described into correspondence point Other auxiliary informations such as the index in area, size and position skew.
By the combining form that device upgrade document design is file data head and each upgrading subregion, data head It is mainly used to illustrate the number of this upgrading subregion, and position of each subregion in this upgrade file Skew.
Each upgrading partition content is designed as into the form that component head adds upgrading data, component head is this The description information of subregion to be upgraded.
Wherein, according to system requirements, subregion division is carried out to system flash, each partitioned storage is specific Data, wherein the fixed position in flash reserves certain space as component partition, the subregion is used for depositing The description information of each subregion in storage system, each divisional description information has corresponded to a structured data, Carried out associated description to the attribute of subregion, including the skew of partition name, size, location and Other auxiliary informations.
Step S20, judge in the upgrade file upgrading subregion description information it is corresponding with the system Subregion to be upgraded description information it is whether consistent, if inconsistent, into step S30;
Wherein, in program version updating operation, first the upgrading number of partitions is found from upgrade file head data According to, divisional description information is extracted from the component head of data, and updated contents are deposited according to the information, Judge whether divisional description information there occurs change with currently used simultaneously.
Step S30, updates the description information of corresponding subregion to be upgraded in the system.
Wherein, the description information subregion to be upgraded corresponding with system of the upgrading subregion of upgrade file is retouched State that information is inconsistent, then the description information of corresponding subregion to be upgraded changes in proof system, need Description information according to the upgrading subregion in upgrade file is carried out to the description information of subregion to be upgraded in system Modification.
Wherein, more in new system after the description information of corresponding subregion to be upgraded, described in after renewal Description information is to the upgrading data in corresponding subregion storage upgrade file to be upgraded in the system.
It should be noted that description information record is index, size and the position skew for corresponding to subregion Information.
Step S40, according to renewal after the system in corresponding subregion description information, update described group The description information of corresponding subregion in part subregion.
After the renewal of the description information for completing each subregion, by updated divisional description information Store to being In component partition in system, the renewal of component partition is completed.
When being embodied as, by taking system upgrade process as an example, comprise the following steps that:
1, start edition upgrading operation.
2, edition upgrading file header is parsed, obtain the number of partitions and subregion to be upgraded of this upgrading Data position hereof.
3, the data of subregion to be upgraded are obtained successively, and divisional description information is extracted from data head.
4, judge whether the divisional description information same divisional description information currently used with system is consistent. If consistent, it is updated.
5, the divisional description information in internal memory is modified according to difference.
6, the storage in flash of the partition content is completed with updated description information, subregion of upgrading Sum subtracts certainly.
7, whether the number of partitions to be upgraded is judged more than 0, next subregion of if so, then upgrading.
8, after the completion for the treatment of all subregion upgradings, by the divisional description information Store in the internal memory after renewal to group In part subregion, that is, complete partition information and be delivered to system memory module from outside version file dynamic.
9, system reset begins to use new partition information deinitialization system.
In the present embodiment, by the description of subregion to be upgraded in the reading system from the component partition of system Information, and obtain in upgrade file upgrading subregion description information;Judge the liter in the upgrade file Whether the description information of level subregion is consistent with the description information of corresponding subregion to be upgraded in the system;If It is inconsistent, then update the description information of corresponding subregion to be upgraded in the system;According to the institute after renewal The description information of corresponding subregion in system is stated, the description letter of corresponding subregion in the component partition is updated Breath.Solve caused program development stage inefficiency and later stage because partition information adjustment is complicated Program version safeguards not convenient problem.
Further, with reference to Fig. 2, second embodiment of the invention provides a kind of equipment partition information transmission method, Based on the embodiment shown in above-mentioned Fig. 1, during execution step S10, including:
Step S11, the file header to upgrade file are parsed, and obtain the liter in the file header of upgrade file Position skew of the level partition data in upgrade file.
Wherein, during system upgrade, when reading upgrade file, first to the file header of upgrade file Parsed, the upgrading data of the upgrading subregion in the file header of acquisition upgrade file are in upgrade file Position offsets, then according to position of the upgrading data recorded in file header in upgrade file is offset to being System is upgraded.
Wherein, the upgrade file is made up of file header with each upgrading subregion, in the upgrade file File header describes the number of the upgrading subregion, and each position of upgrading subregion in the upgrade file Put skew;
Step S12, the upgrading partition data in the file header of the upgrade file are in upgrade file Position offsets, and obtains the upgrading partition data in upgrade file.
Wherein, the file header of upgrade file can carry out unified record and pipe to whole equipment upgrade file Reason, in device upgrade file, the data of the upgrading subregion of each upgrade file are separate, texts Part head can record the position of the upgrading data of the upgrading subregion of each upgrade file, and upgrade the total of subregion Number, when facilitating system upgrade to upgrade file upgrading subregion unified management with call.
Wherein, the upgrading data of each upgrading subregion are record in each upgrading subregion of upgrade file, when During device upgrade, the position of the upgrade file of each subregion to be upgraded is conveniently distinguished, can be to being The upgrading data of the subregion to be upgraded in system are quickly searched.
Step S13, according to it is described upgrading partition data component head, obtain upgrading subregion description information.
Wherein, the content of each upgrading subregion adds upgrading data to constitute by component head;Each upgrading subregion with Application partition correspondence to be upgraded in the system.
Wherein, each divisional description information has corresponded to a structured data, and the attribute of subregion is carried out Associated description, including the skew of partition name, size, location and other auxiliary informations.Will These data unification records, management can play the quick upgrading to subregion to be upgraded, while can be quick Find upgrading data in the position of subregion to be upgraded.
In the present embodiment, by the consolidation form to upgrade file, the unified management of divisional description information. Solve caused program development stage inefficiency and later stage because the adjustment of divisional description information is complicated Program version safeguards not convenient problem.
Further, with reference to Fig. 3, third embodiment of the invention provides a kind of equipment partition information transmission method, Based on the embodiment shown in above-mentioned Fig. 1, after above-mentioned steps S20, also include:
If the description information of the upgrading subregion in step S50, upgrade file is corresponding with system to be upgraded point The description information in area is consistent, then rise according to the description information storage of corresponding subregion to be upgraded in the system The upgrading data of upgrading subregion in level file.
Wherein, the description information subregion to be upgraded corresponding with system of the upgrading subregion of upgrade file is retouched State information consistent, then the description information of corresponding subregion to be upgraded does not change in proof system, only Need the storage that upgrading data are carried out according to the description information of subregion to be upgraded in system.
It should be noted that the description information record of subregion is index, size and the position for corresponding to subregion Put offset information.
In the present embodiment, by the description information of subregion to be upgraded in more new system, can be with integrated system The description information of interior each subregion, when upgrading to a subregion so as to reach, does not interfere with other subregions Description information accuracy effect.
Further, with reference to Fig. 4, fourth embodiment of the invention provides a kind of equipment partition information transmission method, Based on the embodiment shown in above-mentioned Fig. 1, after above-mentioned steps S40, also include:
Step S60, Data Matching and verification are carried out to the data in the component partition;If verifying successfully, Then according to the renewal after the component partition in corresponding subregion description information in system correspondence point Area is initialized;If verification failure, come just using the description information of the static partition table of system default Correspondence subregion in the beginningization system, by the description information of the static partition table of the system default according to group The form of the description information in part subregion is stored in the system inner assembly subregion, is used for system operation.
Wherein, it is to coordinate design of the invention, after system update, from component partition partition information row is read Table obtains failure initializing to equipment, such as, then it is assumed that be that first powering on for the system uses, Then carry out completion system initialization using the divisional description information given tacit consent in internal memory, to ensure the first time of equipment That what is run normally completes.
It should be noted that system is first powered on using being explanation, without it before system electrification use His usage record and other description informations, needs carry out completion system according to the divisional description information of system default Initialization.
When being embodied as, by taking system upgrade process as an example, comprise the following steps that:
1, system electrification.
2, system reads the content of partition information from component partition.
3, the legitimate verifications such as Data Matching and verification are carried out to component partition content,.
4, if checking is correct, according to the renewal after the component partition in corresponding subregion description Information is initialized to correspondence subregion in system.
5, if authentication failed, using the description information of the static partition table of system default initialization system is carried out.
6, default partition description information is generated into corresponding subregion according to the form of the description information of component partition Description information, and the description information is stored in component partition, use for system operation.
In the present embodiment, by initializing to system, system is made to adapt to the design of the present invention.Can To allow system first time normal operation to complete, solve caused by the renewal due to upgrade file that equipment cannot The problem for normally using.
With reference to Fig. 5, first embodiment of the invention provides a kind of equipment partition information transfer device, including:The One acquisition module 100, judge module 200, the first update module 300, the second update module, wherein:
Acquisition module 100, for the description letter of subregion to be upgraded in the reading system from the component partition of system Breath, and obtain in upgrade file upgrading subregion description information.
It should be noted that add a component partition meeting on the basis of system application partition divides, The subregion can be designed as suitable size according to system application demand, and for partition holding description information row Table.The data structure that divisional description information design is specific format, each structure are described into correspondence point Other auxiliary informations such as the index in area, size and position skew.It is file by device upgrade document design The combining form of data head and each upgrading subregion, data head is mainly used to illustrate the individual of this upgrading subregion Number, and position skew of each subregion in this upgrade file.Each upgrading partition content is set The form that component head adds upgrading data is calculated as, component head is the description information of this subregion to be upgraded.
Wherein, according to system requirements, subregion division is carried out to system flash, each partitioned storage is specific Data, wherein the fixed position in flash reserves certain space as component partition, the subregion is used for depositing The description information of each subregion in storage system, each divisional description information has corresponded to a structured data, Carried out associated description to the attribute of subregion, including the skew of partition name, size, location and Other auxiliary informations.
Judge module 200, for judging the upgrade file in upgrading subregion description information and the system Whether the description information of corresponding subregion to be upgraded is consistent in system.
Wherein, in program version updating operation, first the upgrading number of partitions is found from upgrade file head data According to, divisional description information is extracted from the component head of data, and updated contents are deposited according to the information, Judge whether divisional description information there occurs change with currently used simultaneously.
First update module 300, if for inconsistent, in judge module 200 upgrade file is judged In upgrading subregion description information subregion to be upgraded corresponding with the system description information it is inconsistent When, update the description information of corresponding subregion to be upgraded in the system.
Wherein, the description information subregion to be upgraded corresponding with system of the upgrading subregion of upgrade file is retouched State that information is inconsistent, then the description information of corresponding subregion to be upgraded changes in proof system, need Description information according to the upgrading subregion in upgrade file is carried out to the description information of subregion to be upgraded in system Modification.
Wherein, more in new system after the description information of corresponding subregion to be upgraded, described in after renewal Description information is to the upgrading data in corresponding subregion storage upgrade file to be upgraded in the system.
It should be noted that description information record is index, size and the position skew for corresponding to subregion Information.
Second update module 400, for the description letter of corresponding subregion in the system after according to renewal Breath, updates the description information of corresponding subregion in the component partition.
After the renewal of the description information for completing each subregion, by updated divisional description information Store to being In component partition in system, the renewal of component partition is completed.
When being embodied as, by taking system upgrade process as an example, comprise the following steps that:
1, start edition upgrading operation.
2, acquisition module 100 is parsed to edition upgrading file header, obtain this upgrading the number of partitions with And partition data to be upgraded position hereof.
3, acquisition module 100 obtains successively the data of subregion to be upgraded, and extraction subregion is retouched from data head State information.
4, judge module 200 judges the divisional description information same divisional description letter currently used with system Whether breath is consistent.If consistent, it is updated.
5, the first update module 400 is modified according to difference to the divisional description information in internal memory.
6, the storage in flash of the partition content is completed with updated description information, subregion of upgrading Sum subtracts certainly.
7, whether the number of partitions to be upgraded is judged more than 0, next subregion of if so, then upgrading.
8, after the completion for the treatment of the upgrading of all subregions, the second update module 300 is by the subregion in the internal memory after renewal Description information is stored in component partition, that is, complete partition information and be delivered to from outside version file dynamic System memory module.
9, system reset, initialization module 700 begins to use new partition information deinitialization system.
In the present embodiment, wait to rise from reading system in the component partition of system by acquisition module 100 Level subregion description information, and obtain in upgrade file upgrading subregion description information;Judge module 200 Judge the description information subregion to be upgraded corresponding with the system of the upgrading subregion in the upgrade file Description information it is whether consistent;If the first 300 pieces of mould of renewal is inconsistent, correspondence in the system is updated Subregion to be upgraded description information;Second update module 400 according to renewal after the system in correspondence Subregion description information, update the description information of corresponding subregion in the component partition.Solve by In partition information adjustment complexity, caused program development stage inefficiency and later stage program version are safeguarded Not convenient problem.
Further, with reference to Fig. 6, second embodiment of the invention provides a kind of equipment partition information transfer device, Based on the embodiment shown in above-mentioned Fig. 5, the acquisition module 100 includes:
First acquisition unit 110, for parsing to the file header of upgrade file, obtains upgrade file Position skew of the upgrading partition data in file header in upgrade file.
Wherein, during system upgrade, when reading upgrade file, first to the file header of upgrade file Parsed, the upgrading data of the upgrading subregion in the file header of acquisition upgrade file are in upgrade file Position offsets, then according to position of the upgrading data recorded in file header in upgrade file is offset to being System is upgraded.
Wherein, the upgrade file is made up of file header with each upgrading subregion, in the upgrade file File header describes the number of the upgrading subregion, and each position of upgrading subregion in the upgrade file Put skew;
Second acquisition unit 120, exists for the upgrading partition data in the file header of the upgrade file Position skew in upgrade file, obtains the upgrading partition data in upgrade file.
Wherein, the file header of upgrade file can carry out unified record and pipe to whole equipment upgrade file Reason, in device upgrade file, the data of the upgrading subregion of each upgrade file are separate, texts Part head can record the position of the upgrading data of the upgrading subregion of each upgrade file, and upgrade the total of subregion Number, when facilitating system upgrade to upgrade file upgrading subregion unified management with call.
Wherein, the upgrading data of each upgrading subregion are record in each upgrading subregion of upgrade file, when During device upgrade, the position of the upgrade file of each subregion to be upgraded is conveniently distinguished, can be to being The upgrading data of the subregion to be upgraded in system are quickly searched.
3rd acquiring unit 130, for according to the component head of the upgrading partition data, obtaining upgrading subregion Description information.
Wherein, the content of each upgrading subregion adds upgrading data to constitute by component head;Each upgrading subregion with Application partition correspondence to be upgraded in the system.
Wherein, each divisional description information has corresponded to a structured data, and the attribute of subregion is carried out Associated description, including the skew of partition name, size, location and other auxiliary informations.Will These data unification records, management can play the quick upgrading to subregion to be upgraded, while can be quick Find upgrading data in the position of subregion to be upgraded.
In the present embodiment, by the consolidation form to upgrade file, the unified management of divisional description information. Solve caused program development stage inefficiency and later stage because the adjustment of divisional description information is complicated Program version safeguards not convenient problem.
Further, with reference to Fig. 7, third embodiment of the invention provides a kind of equipment partition information transfer device, Based on the embodiment shown in above-mentioned Fig. 5, the partition information transfer device includes:
First upgraded module 500, if the description information for the upgrading subregion in upgrade file is right with system The description information of the subregion to be upgraded answered is consistent, then retouch according to corresponding subregion to be upgraded in the system State the upgrading data of subregion of upgrading in information storage upgrade file.
Wherein, the description information subregion to be upgraded corresponding with system of the upgrading subregion of upgrade file is retouched State information consistent, then the description information of corresponding subregion to be upgraded does not change in proof system, only Need the storage that upgrading data are carried out according to the description information of subregion to be upgraded in system.
It should be noted that the description information record of subregion is index, size and the position for corresponding to subregion Put offset information.
In the present embodiment, by the description information of subregion to be upgraded in more new system, can be with integrated system The description information of interior each subregion, when upgrading to a subregion so as to reach, does not interfere with other subregions Description information accuracy effect.
Further, with reference to Fig. 8, fourth embodiment of the invention provides a kind of equipment partition information transfer device, Based on the embodiment shown in above-mentioned Fig. 5, the partition information transfer device, including:
Initialization module 600, for carrying out Data Matching and verification to the data in the component partition;
If verifying successfully, according to the renewal after the component partition in corresponding subregion description letter Breath is initialized to correspondence subregion in system;
If verification failure, using system default static partition table description information initializing the system Correspondence subregion in system, by the description information of the static partition table of the system default according in component partition The form of description information is stored in the system inner assembly subregion, is used for system operation.
Wherein, it is to coordinate design of the invention, after system update, from component partition partition information row is read Table obtains failure initializing to equipment, such as, then it is assumed that be that first powering on for the system uses, Then carry out completion system initialization using the divisional description information given tacit consent in internal memory, to ensure the first time of equipment That what is run normally completes.
It should be noted that system is first powered on using being explanation, without it before system electrification use His usage record and other description informations, needs carry out completion system according to the divisional description information of system default Initialization.
When being embodied as, by taking system upgrade process as an example, comprise the following steps that:
1, system electrification.
2, system reads the content of partition information from component partition.
3, initialization module 600 carries out the legitimate verifications such as Data Matching and verification to component partition content,.
4, if checking is correct, according to the renewal after the component partition in corresponding subregion description Information is initialized to correspondence subregion in system.
5, if authentication failed, using the description information of the static partition table of system default initialization system is carried out.
6, initialization module 600 by default partition description information according to the description information of component partition form Corresponding divisional description information is generated, and the description information is stored in component partition, for system operation Use.
In the present embodiment, system is initialized by initialization module 600, makes system adapt to this The design of invention.System first time normal operation can be allowed to complete, solve the renewal due to upgrade file The problem that caused equipment cannot be used normally.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every The equivalent structure made using description of the invention and accompanying drawing content or equivalent flow conversion, or directly or Connect and be used in other related technical fields, be included within the scope of the present invention.

Claims (10)

1. a kind of equipment partition information transmission method, it is characterised in that include:
The description information of subregion to be upgraded from reading system in the component partition of system, and obtain upgrading text The description information of the upgrading subregion in part;
Judge in the upgrade file upgrading subregion description information it is corresponding to be upgraded with the system Whether the description information of subregion is consistent;
If inconsistent, the description information of corresponding subregion to be upgraded in the system is updated;
The description information of corresponding subregion in the system after according to renewal, updates in the component partition The description information of corresponding subregion.
2. equipment partition information transmission method as claimed in claim 1, it is characterised in that the system The description information of interior subregion to be upgraded is stored in the component partition, and the description information is setting form Data structure, the data structure is made up of structure, the index of the structure description correspondence subregion, Size and position offset information:
The upgrade file is made up of file header with each upgrading subregion, the liter fraction in the upgrade file The description information in area is stored in the file header of the upgrade file, and file header describes the upgrading subregion Number, and position skew of each upgrading subregion in the upgrade file;Each the interior of subregion of upgrading Hold and add upgrading data to constitute by component head;Each upgrading subregion and application partition pair to be upgraded in the system Should.
3. equipment partition information transmission method as claimed in claim 2, it is characterised in that the acquisition The step of description information of the upgrading subregion in upgrade file, includes:The file header of upgrade file is solved Analysis, obtains position skew of the upgrading partition data in the file header of upgrade file in upgrade file;
Position of the upgrading partition data in the file header of the upgrade file in upgrade file is inclined Move, obtain the upgrading partition data in upgrade file;
According to the component head of the upgrading partition data, the description information of upgrading subregion is obtained.
4. equipment partition information transmission method as claimed in claim 1, it is characterised in that the judgement The description information of the upgrading subregion in the upgrade file is retouched with corresponding subregion to be upgraded in the system After stating the whether consistent step of information, also include:
If the description of the description information subregion to be upgraded corresponding with system of the upgrading subregion in upgrade file Information is consistent, then according in the description information storage upgrade file of corresponding subregion to be upgraded in the system The upgrading data of upgrading subregion.
5. the equipment partition information transmission method as described in any one of claim 1-4, it is characterised in that It is described according to renewal after the system in corresponding each subregion description information, update the component point In area the step of the description information of corresponding each application partition after, also include:
Data Matching and verification are carried out to the data in the component partition;
If verifying successfully, according to the renewal after the component partition in corresponding subregion description letter Breath is initialized to correspondence subregion in system;
If verification failure, using system default static partition table description information initializing the system Correspondence subregion in system, by the description information of the static partition table of the system default according in component partition The form of description information is stored in the system inner assembly subregion, is used for system operation.
6. a kind of equipment partition information transfer device, it is characterised in that include:
Acquisition module, for the description information of subregion to be upgraded in the reading system from the component partition of system, And obtain in upgrade file upgrading subregion description information;
Judge module, for judging the upgrade file in upgrading subregion description information and the system Whether the description information of interior corresponding subregion to be upgraded is consistent;
First update module, for the description of the upgrading subregion in judging the upgrade file in judge module When the description information of information subregion to be upgraded corresponding with the system is inconsistent, update in the system The description information of corresponding subregion to be upgraded;
Second update module, for the description information of corresponding subregion in the system after according to renewal, Update the description information of corresponding subregion in the component partition.
7. equipment partition information transmission method as claimed in claim 6, it is characterised in that the system The description information of interior subregion to be upgraded is stored in the component partition, and the description information is setting form Data structure, the data structure is made up of structure, the index of the structure description correspondence subregion, Size and position offset information:
The upgrade file is made up of file header with each upgrading subregion, the liter fraction in the upgrade file The description information in area is stored in the file header of the upgrade file, and file header describes the upgrading subregion Number, and position skew of each upgrading subregion in the upgrade file;Each the interior of subregion of upgrading Hold and add upgrading data to constitute by component head;Each upgrading subregion and application partition pair to be upgraded in the system Should.
8. equipment partition information transfer device as claimed in claim 6, it is characterised in that the acquisition Module includes:
First acquisition unit, for parsing to the file header of upgrade file, obtains the text of upgrade file Position skew of the upgrading partition data in part head in upgrade file;
Second acquisition unit, is rising for the upgrading partition data in the file header of the upgrade file Position skew in level file, obtains the upgrading partition data in upgrade file.
3rd acquiring unit, for according to the component head of the upgrading partition data, obtaining upgrading subregion Description information.
9. equipment partition information transfer device as claimed in claim 6, it is characterised in that the subregion Information transfer device also includes:
First upgraded module, if the description information for the upgrading subregion in upgrade file is corresponding with system Subregion to be upgraded description information it is consistent, then according to the description of corresponding subregion to be upgraded in the system The upgrading data of upgrading subregion in information storage upgrade file.
10. the equipment partition information transfer device as described in any one of claim 6-9, it is characterised in that The partition information transfer device also includes:
Initialization module, for carrying out Data Matching and verification to the data in the component partition;If school Test successfully, then according to the renewal after the component partition in corresponding subregion description information to system Interior correspondence subregion is initialized;If verification failure, using the description of the static partition table of system default Information correspond in the system subregion to initialize, and the description of the static partition table of the system default is believed Cease and stored in the system inner assembly subregion, for system according to the form of the description information in component partition Operation is used.
CN201510715848.7A 2015-10-28 2015-10-28 Method and device for transferring equipment partition information Withdrawn CN106648441A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510715848.7A CN106648441A (en) 2015-10-28 2015-10-28 Method and device for transferring equipment partition information
PCT/CN2016/103787 WO2017071646A1 (en) 2015-10-28 2016-10-28 Method and apparatus for delivering device partition information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510715848.7A CN106648441A (en) 2015-10-28 2015-10-28 Method and device for transferring equipment partition information

Publications (1)

Publication Number Publication Date
CN106648441A true CN106648441A (en) 2017-05-10

Family

ID=58631329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510715848.7A Withdrawn CN106648441A (en) 2015-10-28 2015-10-28 Method and device for transferring equipment partition information

Country Status (2)

Country Link
CN (1) CN106648441A (en)
WO (1) WO2017071646A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960523A (en) * 2017-12-22 2019-07-02 浙江宇视科技有限公司 A kind of firmware upgrade method and device of embedded device
CN112052031A (en) * 2020-08-26 2020-12-08 烽火通信科技股份有限公司 Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card
CN112752154A (en) * 2019-10-29 2021-05-04 青岛海尔多媒体有限公司 Software upgrading method and device and smart television

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7017004B1 (en) * 2002-03-29 2006-03-21 Microsoft Corporation System and method for updating contents of a flash ROM
CN101520734A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 Method for upgrading data in flash memory, network TV and interactive set-top box thereof
CN102945179B (en) * 2012-11-28 2016-06-29 青岛海信宽带多媒体技术有限公司 Method for upgrading software and device based on MTD subregion

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960523A (en) * 2017-12-22 2019-07-02 浙江宇视科技有限公司 A kind of firmware upgrade method and device of embedded device
CN112752154A (en) * 2019-10-29 2021-05-04 青岛海尔多媒体有限公司 Software upgrading method and device and smart television
CN112052031A (en) * 2020-08-26 2020-12-08 烽火通信科技股份有限公司 Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card
CN112052031B (en) * 2020-08-26 2023-03-14 烽火通信科技股份有限公司 Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card

Also Published As

Publication number Publication date
WO2017071646A1 (en) 2017-05-04

Similar Documents

Publication Publication Date Title
CN107506219A (en) A kind of general version upgrade method based on android system
CN103559065B (en) Method and system for OTA (Over-the-Air Technology) upgrade
US7797696B1 (en) Dynamically updating a computer system and firmware image utilizing an option read only memory (OPROM) data structure
CN104133699B (en) Device system software upgrade method and system
CN106775723A (en) The method and Android device of the system firmware customization based on Android platform
CN108037916A (en) A kind of graphical service modeling method based on web
CN104679532B (en) kernel module loading method and device
CN107220060A (en) It is a kind of while supporting the method and system of multiple OTA AKUs upgrading
US9507680B2 (en) Verification system and method for automated verification of register information for an electronic system
CN110275861A (en) Date storage method and device, storage medium, electronic device
CN107301070A (en) A kind of upgrade method and terminal
CN101739266A (en) Firmware updating method
CN107368513B (en) Method and device for updating client database
CN106648441A (en) Method and device for transferring equipment partition information
CN106027644A (en) Service checking method and system
CN106255962A (en) For improving the system and method for data structure storage
CN106873970A (en) The installation method and device of a kind of operating system
CN102999349A (en) Software upgrading method
CN110209420A (en) A kind of method and device updating bootstrap loader
CN106445584A (en) Software module management method and system
CN105700917A (en) Method and apparatus for synchronizing DLL and database
CN105988943A (en) Method and device for driving wireless adapter
CN111831301B (en) Blockchain runtime environment system and method supporting bifurcation-free upgrade
TW201721434A (en) Computer program product applicable to automatic generation of software testing data and method thereof capable of making sure each functional module can access accurate testing data for testing
CN106325921B (en) Associated plug-in release method and device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170510