CN106874029A - image file loading method and device - Google Patents
image file loading method and device Download PDFInfo
- Publication number
- CN106874029A CN106874029A CN201611260134.2A CN201611260134A CN106874029A CN 106874029 A CN106874029 A CN 106874029A CN 201611260134 A CN201611260134 A CN 201611260134A CN 106874029 A CN106874029 A CN 106874029A
- Authority
- CN
- China
- Prior art keywords
- image file
- verification
- read
- version
- instruction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Facsimiles In General (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to a kind of image file loading method and device, methods described includes:After boot startups, rotating mirror is read as the instruction of FileVersion;It is determined that the partition holding of the image file corresponding with the version that the instruction is indicated that be stored with;Read the image file in the partition holding for determining;Verify the image file for reading;When the image file that verification is read is verified successfully, then loading verifies the successfully image file.Above-mentioned image file loading method and device, the partition holding of the image file of respective version can be determined as the instruction of FileVersion according to rotating mirror, so as to load the image file in respective stored subregion, need not wipe and download the image file of respective version to former partition holding after the image file stored in former partition holding again, it is simple to operate only by the automatic rotating mirror for reading as the instruction of FileVersion is to be capable of achieving.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of image file loading method and device.
Background technology
Image file form is a disk image format based on file.So-called image file in fact with ZIP compressed packages
Similar, a series of specific files are fabricated to single file by it according to certain form, to facilitate user to download and use.
At present, equipment upon actuation, understands then load images file, with the function of realizing specifying.
But in conventional art, when user needs to start the image file of different editions, it is typically required by outside
Equipment Erasable Programmable Logic Device wipes the image file stored in former partition holding, then is stored in former partition holding
The image file of version is changed, finally restarting systems again, completion can be changed, and used if user needs to use again
During the version of the image file crossed, then still need to repeat said process, this kind of process operation complexity.
The content of the invention
Based on this, it is necessary to for the problem of the above-mentioned complex operation when the image file of different editions is started, carry
For a kind of image file loading method and device.
A kind of image file loading method, methods described includes:
After boot startups, rotating mirror is read as the instruction of FileVersion;
It is determined that the partition holding of the image file corresponding with the version that the instruction is indicated that be stored with;
Read the image file in the partition holding for determining;
Verify the image file for reading;
When the image file that verification is read is verified successfully, then loading verifies the successfully image file.
Wherein in one embodiment, it is described loading verification successfully the image file the step of after, also include:
Obtaining boot next time needs the image file version of loading after starting;
Generation indicates the instruction of the image file version for obtaining;
Store the instruction of generation.
Wherein in one embodiment, methods described also includes:
When the image file of verification reading verifies failure, continue to determine to be stored with and instruct the version for indicating relative with described
Next partition holding of the image file answered;And
The execution image file read in the partition holding for determining, and the verification reading is described
The step of image file, until the image file that verification is read is verified successfully.
Wherein in one embodiment, methods described also includes:
When exist verification failure image file when, then it is described until verification read mirror image verify successfully after, high-ranking officers
The image file for testing failure replaces with the successful image file of verification.
Wherein in one embodiment, methods described also includes:
When image file read in the local each partition holding of verification and corresponding with the version that the instruction is indicated is equal
During failure, then
It is determined that the partition holding of the image files different from the version that the instruction is indicated that are stored with;And
The execution image file read in the partition holding for determining, and the verification reading is described
The step of image file, until the image file that verification is read is verified successfully.
Wherein in one embodiment, the image file is used for network service;Methods described also includes:
When verification read from it is described instruction indicate version it is different image file success, and be stored with server with
During the corresponding image file of version that the instruction is indicated, then
Download the image file stored on the server;
In the partition holding where verification failure and the image file corresponding with the version that the instruction is indicated, will
The image file for verifying failure replaces with the image file downloaded from the server.
A kind of image file loading device, described device includes:
Instruction read module, for after boot starts, reading rotating mirror as the instruction of FileVersion;
Partition holding determining module, for determining the image file corresponding with the version that the instruction is indicated that be stored with
Partition holding;
Image file read module, for reading the image file in the partition holding for determining;
Correction verification module, for verifying the image file for reading;
Load-on module, when the image file for being read in verification is verified successfully, then loading verifies the successfully mirror image
File.
Wherein in one embodiment, described device also includes:
Instruction acquisition module, for successfully after the image file, being obtained in loading verification after boot starts next time
The image file version that need to be loaded;
Directive generation module, the instruction for generating the image file version for indicating to obtain;
Memory module, the instruction for storing generation.
Wherein in one embodiment, the partition holding determining module is additionally operable to the image file verification read in verification
During failure, next partition holding of the corresponding image file of version indicated with the instruction that continues to determine to be stored with;
The image file read module is additionally operable to read the image file in the partition holding for determining;
The correction verification module is additionally operable to the image file that verification is read, until the image file that verification is read is verified into
Work(.
Wherein in one embodiment, described device also includes:
Replacement module, for when there is the image file of verification failure, then in the mirror image school read up to verification
After testing successfully, the image file for verifying failure is replaced with into the successful image file of verification.
Above-mentioned image file loading method and device, according to rotating mirror as the instruction of FileVersion can determine respective version
Image file partition holding, so as to load the image file in respective stored subregion, it is not necessary in the former partition holding of erasing
The image file of respective version is downloaded after the image file of storage again to former partition holding, only by the automatic rotating mirror picture for reading
The instruction of FileVersion is to be capable of achieving, simple to operate.
Brief description of the drawings
Fig. 1 is the flow chart of image file loading method in an embodiment;
Fig. 2 is the flow chart of the more new command step of an embodiment;
Fig. 3 is the schematic diagram of the prompting frame in an embodiment;
Fig. 4 is the schematic diagram of partition holding in embodiment illustrated in fig. 1;
Fig. 5 is the schematic diagram of image file loading device in an embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and
It is not used in the restriction present invention.
Describe in detail embodiments in accordance with the present invention before, it should be noted that, described embodiment essentially consist in
The combination of the image file loading method step related to device and system component.Therefore, said system component and method and step
Showed in position by ordinary symbol in the accompanying drawings, and merely illustrate and understand implementation of the invention
The relevant details of example, in order to avoid because of obvious those details for having benefited from those of ordinary skill in the art of the invention
The disclosure is obscured.
Herein, such as left and right, upper and lower, front and rear, and first and second etc relational terms are used merely to area
Divide an entity or action and another entity or action, and it is any between not necessarily requiring or implying this entity or act
Actual this relation or order.Term " including ", "comprising" or any other variant be intended to including for nonexcludability, by
This causes to include process, method, article or the equipment of a series of key elements not only comprising these key elements, but also comprising not bright
Other key elements really listed, or be this process, method, article or the intrinsic key element of equipment.
Refer to shown in Fig. 1, Fig. 1 is the flow chart of image file loading method in an embodiment, in this embodiment, should
Method may comprise steps of:
S102:After boot startups, rotating mirror is read as the instruction of FileVersion.
Specifically, boot guides the guiding file of central processing unit loading application programs version, the mirror in the present embodiment
As file refers to the image file of the modules that loading is needed after boot startups, such as communication module etc..
Instruction refers to the instruction of the version for identifying image file, and such as image file there may be multiple versions, V1.0,
V2.0, V3.0, V4.0 etc., different instructs it to represent a version for image file.Wherein instruction can be by flag bit
To realize, it is assumed for example that only four versions, then flag bit can be two, wherein 00 represents version V1.0,01 represents version
V2.0,10 represent version V3.0, and 11 represent version V4.0 etc..The quantity of version is different, and the digit of flag bit can correspondingly be entered
Row adjustment.
S104:It is determined that the partition holding of the image file corresponding with the version that instruction is indicated that be stored with.
Specifically, partition holding refers to the different partition holding divided in flash (flash memory), such as at one piece
In flash, its size may be 100,000,000, wherein every 25,000,000 are divided into a partition holding, be stored with one in each partition holding
The image file of individual version.
When there is multiple partition holdings, can be stored with an image file for version in each partition holding, and often
The version of the image file in individual partition holding can be with difference, it is also possible to identical, or the image file in the partition holding of part
Version it is identical, the version of the image file in remaining partition holding is differed.
After instruction of the rotating mirror as FileVersion is read, the version of image file is got, further according to the image file
Version determine corresponding partition holding, can for example be previously stored with a form, in the form record image file version
The relation of this and partition holding, the so version according to image file can just find corresponding partition holding, such that it is able into
Work(reads the image file consistent with the version of instruction instruction.
S106:Read the image file in the partition holding for determining.
Specifically, the image file in the partition holding for determining is read, the consistent mirror of version that will be indicated with instruction
As file is read into internal memory.Specifically, because the version of instruction and image file is one-to-one relationship, and each storage point
Only be stored with an image file in area, the corresponding relation of version and partition holding according to image file, you can read just
The image file of true version.
S108:Verify the image file for reading.
Specifically, verification is carried out to image file can be carried out using CRC redundancy checks, for example, can first obtain and be read
The CRC crc value of the image file for taking, that is, pass through the crc value that read image file calculates image file;
The crc value and the image file for being read that judge to obtain again crc value (i.e. generation read image file when it is corresponding each
A kind of parameter in item parameter) it is whether consistent, in the case where judged result is consistent, that is, think read image file verification
Success.When judged result is inconsistent, then it is assumed that the image file for being read is not verified successfully.
S110:When the image file that verification is read is verified successfully, then loading verifies successful image file.
Specifically, if the image file for being read is verified successfully, the successful image file of the verification can be loaded, from
And corresponding module is initialized, such as communication module etc..
Above-mentioned image file loading method, the mirror image of respective version can be determined according to rotating mirror as the instruction of FileVersion
The partition holding of file, so as to load the image file in respective stored subregion, it is not necessary to stored in the former partition holding of erasing
The image file of respective version is downloaded after image file again to former partition holding, only by the automatic instruction image file version for reading
This instruction is to be capable of achieving, simple to operate.
Wherein in one embodiment, refer to shown in Fig. 2, Fig. 2 is the flow chart of the more new command step of an embodiment,
After the step of loading verifies successful image file, i.e. can also include more new command step after step S110, this is more
New command step can include:
S202:Obtaining boot next time needs the image file version of loading after starting.
Specifically, the version of the image file to be loaded next time can be prompted the user with after each boot startups,
User can select corresponding version as needed.For example, corresponding prompting frame can be shown in display interface, as shown in figure 3,
Fig. 3 is the schematic diagram of the prompting frame in an embodiment, and the image file of storage in flash is shown in the prompting frame in Fig. 3
Version, and in order to user selects convenient, select button is increased before each version, user is i.e. optional by clicking on the select button
The image file of respective version is selected, the mirror image of loading is needed after boot starts next time such that it is able to be got according to the selection of user
FileVersion.
S204:Generation indicates the instruction of the image file version for obtaining.
Specifically, in the present embodiment, the image file of loading is needed after starting according to the selected boot next time of user
Such as version generates the instruction of corresponding image file version, mentioned hereinbefore when instruction is for flag bit, then can be with root
The image file version of loading is needed correspondingly to change flag bit after starting according to the selected boot next time of user, such as this loading
The version of image file be V1.0, its corresponding flag bit is 00, it is assumed that boot needs the mirror image text of loading next time after starting
Part version is V3.0, then selection that can be directly according to user gets the image file version that boot next time needs to load after starting
Flag bit is revised as 10 by this.
S206:Store the instruction of generation.
Specifically, after generation is instructed, because the needs of boot startups next time change instruction, therefore the instruction is correspondingly entered
Row storage, that is, store above-mentioned amended flag bit.
In the above-described embodiments, after the completion of this loading, the version of the image file to be loaded next time is preset, from
And allow that user loads the image file of different versions as needed, such as when user needs the version of loading different
When, then only need to correspondingly change the instruction, it is no longer necessary to wiped by external equipment Erasable Programmable Logic Device
Except the image file stored in former partition holding, then in former partition holding memory change version image file so that operation
It is more simple.
Wherein in one embodiment, image file loading method can also include:
First, when the image file that verification is read verifies failure, continue to determine the version phase indicated with instruction that is stored with
Next partition holding of corresponding image file.
Specifically, due to the interference of the uncertain factors such as electrostatic and external environment be easily caused flash occur bad block or
Data corruption, at this moment corresponding image file then cannot normal load, so as to cause the module cannot normal work.In the present embodiment
Version in the presence of the image file stored in multiple partition holdings, and part partition holding is identical, refers to shown in Fig. 4, and Fig. 4 is
The schematic diagram of partition holding in embodiment illustrated in fig. 1, wherein comprising 8 partition holdings, and the first partition holding, the 4th storage point
The version of the image file of area and the storage of the 7th partition holding is V1.0, the version of the image file stored in the 3rd partition holding
It is V2.0, the version of the image file stored in the second partition holding, the 5th partition holding and the 8th partition holding is V3.0, the
The version of the image file stored in six partition holdings is V4.0.
Assuming that this read rotating mirror as FileVersion instruction indicate be V1.0, it is assumed that in the first partition holding store
Image file verification it is failed, then can continue to determine to be stored with the image file corresponding with the version that instruction is indicated
One partition holding, i.e. the 4th partition holding.
Second perform read determine partition holding in image file, and verification read image file the step of,
Until the image file that verification is read is verified successfully.
Specifically, after corresponding partition holding determines, the image file in identified partition holding can be read, and
The read image file of verification, such as in Fig. 4, after the image file for reading the 4th partition holding, verify, such as to it
Fruit verifies successfully, then load the image file, if verification is unsuccessful, continues to determine the version phase indicated with instruction that is stored with
Next partition holding of corresponding image file, such as the 7th partition holding in Fig. 4, and reading the mirror of the 7th partition holding
As after file, being verified to it, until the image file existed in a certain partition holding is verified successfully.
In above-described embodiment, when the image file of the same version that is stored with there are multiple partition holdings, then when wherein
When image file verification in one partition holding is unsuccessful, the image file that can read the next same version that is stored with is deposited
The image file accessed in storage subregion, such that it is able to improve the successful of loading, is effectively improved loading efficiency.
Wherein in one embodiment, image file loading method can also include:When the mirror image text that there is verification failure
During part, then after until the mirror image that verification is read is verified successfully, the image file for verifying failure is replaced with into the successful mirror of verification
As file.
Specifically, incorporated by reference to shown in Fig. 4, it is assumed that the image file stored in the first partition holding and the 4th partition holding is equal
Verification is unsuccessful, and the image file in the 7th partition holding is verified successfully, then directly by the image file in the 7th partition holding
Store into the first partition holding and the 4th partition holding, failed image file is verified with what replacement was wherein stored.
In above-described embodiment, when the image file of same version has verification successfully, then can be successful with the verification
Image file is replaced and is not verified successful image file, so that reading this next time does not verify depositing for successful image file
The efficiency that can successfully effectively improve loading can be verified when storing up the image file in subregion.
Wherein in one embodiment, image file loading method can also include:
First, when image file read in the local each partition holding of verification and corresponding with the version that instruction is indicated
When failing, it is determined that the partition holding of the image files different from the version that instruction is indicated that are stored with.
Specifically, incorporated by reference to shown in Fig. 4, the image file in the partition holding of the image file of the version V1.0 that is stored with
When verification fails, i.e. image file in the first partition holding, the 4th partition holding and the 7th partition holding verifies failure,
Then represent that the image file of current version V1.0 has problem, therefore in order to system can be used normally, then first to taking other versions
This image file, such as V2.0, V3.0, V4.0 etc., therefore it is different from the version that instruction is indicated to first have to first to determine to be stored with
Image file partition holding, such as the second partition holding, the 3rd partition holding, the 5th partition holding, shown in Fig. 4
Six partition holdings and the 8th partition holding.
Secondly, the step of image file that the image file in the partition holding of execution reading determination, and verification reads,
Until the image file that verification is read is verified successfully.
Specifically, when the image file of other versions is read, the sequencing that can be stored according to image file, for example
The image file stored in the second partition holding is first read, when the image file stored in the second partition holding verifies failure,
Then continue to read the image file stored in the 3rd partition holding, until the image file for reading is verified successfully;Can also be first
The image file stored in the 8th partition holding is read, when the image file stored in the 8th partition holding verifies failure, then
Continue to read the image file stored in the 6th partition holding, until the image file for reading is verified successfully.Furthermore it is also possible to press
Version according to image file is read out, such as the mirror image in the partition holding of the image file for first reading the version V2.0 that is stored with
File, incorporated by reference to Fig. 4, that is, reads the image file in the 3rd partition holding, when the image file verification in the 3rd partition holding
During failure, then the image file in the partition holding of the image file for continuing to read the version V3.0 that is stored with continues to read the
Image file in two partition holdings, if the image file verification failure in the second partition holding, continues reading the 5th and deposit
The image file stored in storage subregion, until in the presence of successful image file is verified, can also be and first read the version that is stored with
Image file in the partition holding of the image file of V4.0, incorporated by reference to Fig. 4, that is, reads the mirror image text in the 6th partition holding
Part, when the image file in the 6th partition holding verifies failure, then continues to read the image file of the version V3.0 that is stored with
Image file in partition holding, that is, continue to read the image file in the second partition holding, if in the second partition holding
Image file verifies failure, then continue to read the image file stored in the 5th partition holding, until in the presence of the successful mirror of verification
As file.
In above-described embodiment, when the image file of the version of user preset is damaged, in order to system can normal work,
The image file of other versions is then first read, to ensure the normal work of system, its operation is relatively simple.
Wherein in one embodiment, when image file is used for network service, image file loading method can also be wrapped
Include:
First, when the image file success different from the version that instruction is indicated that verification is read, and it is stored with server
During the corresponding image file of version indicated with instruction, then the image file for being stored in download server.
Specifically, incorporated by reference to shown in Fig. 4, when version verifies unsuccessful for the image file of V1.0, if next time is also
It is the image file for needing to use the version, does not then occur the unsuccessful phenomenon of verification yet, that is, is loaded with the mirror image of other versions
File, so that Consumer's Experience is deteriorated, therefore in the present embodiment after image file is loaded successfully, can automatically from server
The upper image file for downloading the unsuccessful version of verification, so that can succeed when loading the image file of the version next time.
In addition, after the download is complete, can point out user, the process file of the version is downloaded and completed, can normally use,
Window etc. for example can be correspondingly ejected on display interface.
Secondly, in the partition holding where verification failure and the image file corresponding with the version that instruction is indicated, will
The image file for verifying failure replaces with the image file for downloading from a server.
Specifically, incorporated by reference to shown in Fig. 4, when the image file of version V1.0 and version V2.0 verifies unsuccessful, then
The image file of the two kinds of version can be downloaded from a server, and replaces the image file in corresponding partition holding, for example
In Fig. 4, the first partition holding, the 4th partition holding and the 7th are replaced with the image file of the V1.0 versions for downloading from a server
Image file in partition holding, with image file second partition holding of replacement of the V2.0 versions for downloading from a server
Image file.
Refer to shown in Fig. 5, Fig. 5 is the schematic diagram of image file loading device in an embodiment, in this embodiment, should
Device can include:
Instruction read module 100, for after boot starts, reading rotating mirror as the instruction of FileVersion;
Partition holding determining module 200, for determining the image file corresponding with the version that instruction is indicated that be stored with
Partition holding;
Image file read module 300, for reading the image file in the partition holding for determining;
Correction verification module 400, for verifying the image file for reading;
Load-on module 500, when the image file for being read in verification is verified successfully, then the successful mirror image of loading verification is literary
Part.
Wherein in one embodiment, the device can also include:
Instruction acquisition module, for after the loading successful image file of verification, obtain boot next time to need to add after starting
The image file version of load;
Directive generation module, the instruction for generating the image file version for indicating to obtain;
Memory module, the instruction for storing generation.
Wherein in one embodiment, partition holding determining module 200 is additionally operable to the image file verification read in verification
During failure, next partition holding of the corresponding image file of version indicated with instruction that continues to determine to be stored with;
Image file read module 300 is additionally operable to read the image file in the partition holding for determining;
Correction verification module 400 is additionally operable to the image file that verification is read, until the image file that verification is read is verified successfully.
Wherein in one embodiment, the device can also include:
Replacement module, for when there is the image file of verification failure, then until the mirror image that verification is read is verified into
After work(, the image file for verifying failure is replaced with into the successful image file of verification.
Wherein in one embodiment, partition holding determining module 200 is additionally operable to read in the local each partition holding of verification
When image file taking and corresponding with the version that instruction is indicated fails, it is determined that be stored with the version indicated with instruction
The partition holding of different image files;
Image file read module 300 is additionally operable to read the image file in the partition holding for determining;
Correction verification module 400 is additionally operable to the image file that verification is read, until the image file that verification is read is verified successfully.
Wherein in one embodiment, the device can also include:
Replacement module, for the image file success different from the version that instruction is indicated read in verification, and server
On be stored with the version corresponding image file indicated with instruction when, then the image file for being stored in download server;In school
In partition holding where testing failure and the image file corresponding with the version that instruction is indicated, the mirror image text of failure will be verified
Part replaces with the image file for downloading from a server.
The above-mentioned specific restriction on device can be referred to above to the restriction of method, be will not be repeated here.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of image file loading method, it is characterised in that methods described includes:
After boot startups, rotating mirror is read as the instruction of FileVersion;
It is determined that the partition holding of the image file corresponding with the version that the instruction is indicated that be stored with;
Read the image file in the partition holding for determining;
Verify the image file for reading;
When the image file that verification is read is verified successfully, then loading verifies the successfully image file.
2. method according to claim 1, it is characterised in that the loading verification successfully the image file the step of
Afterwards, also include:
Obtaining boot next time needs the image file version of loading after starting;
Generation indicates the instruction of the image file version for obtaining;
Store the instruction of generation.
3. method according to claim 1, it is characterised in that methods described also includes:
When the image file of verification reading verifies failure, continue to determine to be stored with and instruct the version for indicating corresponding with described
Next partition holding of image file;And
Perform the image file in the partition holding for reading and determining, and the mirror image that the verification is read
The step of file, until the image file that verification is read is verified successfully.
4. method according to claim 3, it is characterised in that methods described also includes:
When exist verification failure image file when, then it is described until verification read mirror image verify successfully after, will verify mistake
The image file for losing replaces with the successful image file of verification.
5. method according to any one of claim 1 to 4, it is characterised in that methods described also includes:
When read in the local each partition holding of the verification and image file corresponding with the version that the instruction is indicated fails
When, then
It is determined that the partition holding of the image files different from the version that the instruction is indicated that are stored with;And
Perform the image file in the partition holding for reading and determining, and the mirror image that the verification is read
The step of file, until the image file that verification is read is verified successfully.
6. method according to claim 5, it is characterised in that the image file is used for network service;Methods described is also
Including:
When verification read from it is described instruction indicate version it is different image file success, and be stored with server with it is described
During the image file for instructing the version for indicating corresponding, then
Download the image file stored on the server;
In the partition holding where verification failure and the image file corresponding with the version that the instruction is indicated, will verify
The image file of failure replaces with the image file downloaded from the server.
7. a kind of image file loading device, it is characterised in that described device includes:
Instruction read module, for after boot starts, reading rotating mirror as the instruction of FileVersion;
Partition holding determining module, the storage of the image file corresponding with the version of the instruction instruction that be stored with for determination
Subregion;
Image file read module, for reading the image file in the partition holding for determining;
Correction verification module, for verifying the image file for reading;
Load-on module, when the image file for being read in verification is verified successfully, then loading verifies the successfully image file.
8. device according to claim 7, it is characterised in that described device also includes:
Instruction acquisition module, for after the successful image file of verification is loaded, obtain boot next time to need to add after starting
The image file version of load;
Directive generation module, the instruction for generating the image file version for indicating to obtain;
Memory module, the instruction for storing generation.
9. device according to claim 8, it is characterised in that the partition holding determining module is additionally operable to be read in verification
Image file verification failure when, the corresponding image file of version that is indicated with the instruction of continuing to determine to be stored with it is next
Partition holding;
The image file read module is additionally operable to read the image file in the partition holding for determining;
The correction verification module is additionally operable to the image file that verification is read, until the image file that verification is read is verified successfully.
10. device according to claim 8, it is characterised in that described device also includes:
Replacement module, for when there is the image file of verification failure, then described until the mirror image that verification is read is verified into
After work(, the image file for verifying failure is replaced with into the successful image file of verification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611260134.2A CN106874029B (en) | 2016-12-30 | 2016-12-30 | Mirror image file loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611260134.2A CN106874029B (en) | 2016-12-30 | 2016-12-30 | Mirror image file loading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106874029A true CN106874029A (en) | 2017-06-20 |
CN106874029B CN106874029B (en) | 2021-02-02 |
Family
ID=59165409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611260134.2A Active CN106874029B (en) | 2016-12-30 | 2016-12-30 | Mirror image file loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874029B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739769A (en) * | 2019-01-02 | 2019-05-10 | 深圳忆联信息系统有限公司 | BOOTROM loads method for automatically testing functions and device |
WO2019196157A1 (en) * | 2018-04-10 | 2019-10-17 | 网宿科技股份有限公司 | File reading method and application entity |
CN111538566A (en) * | 2020-04-24 | 2020-08-14 | 咪咕文化科技有限公司 | Mirror image file processing method, device and system, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104133709A (en) * | 2014-08-06 | 2014-11-05 | 曙光信息产业(北京)有限公司 | Upgrading method and device for embedded system |
CN104636171A (en) * | 2015-03-04 | 2015-05-20 | 深圳市欧珀通信软件有限公司 | Upgrading method and device and mobile device |
CN105320558A (en) * | 2014-06-30 | 2016-02-10 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and start method thereof |
CN105516300A (en) * | 2015-12-04 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Equipment version upgrading method and system |
-
2016
- 2016-12-30 CN CN201611260134.2A patent/CN106874029B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105320558A (en) * | 2014-06-30 | 2016-02-10 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and start method thereof |
CN104133709A (en) * | 2014-08-06 | 2014-11-05 | 曙光信息产业(北京)有限公司 | Upgrading method and device for embedded system |
CN104636171A (en) * | 2015-03-04 | 2015-05-20 | 深圳市欧珀通信软件有限公司 | Upgrading method and device and mobile device |
CN105516300A (en) * | 2015-12-04 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Equipment version upgrading method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019196157A1 (en) * | 2018-04-10 | 2019-10-17 | 网宿科技股份有限公司 | File reading method and application entity |
CN109739769A (en) * | 2019-01-02 | 2019-05-10 | 深圳忆联信息系统有限公司 | BOOTROM loads method for automatically testing functions and device |
CN111538566A (en) * | 2020-04-24 | 2020-08-14 | 咪咕文化科技有限公司 | Mirror image file processing method, device and system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106874029B (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102520987B (en) | Online experience and installation method, device, server and management system of application program | |
CN110019081A (en) | Data persistence processing method, device, system and readable storage medium storing program for executing | |
CN106874029A (en) | image file loading method and device | |
CN105224419B (en) | User data mirror image loading method, device and terminal in a kind of Android system | |
CN107066377B (en) | Page element obtaining method based on Android system and terminal equipment | |
CN103544031B (en) | The android system upgrade method and system of multi partition peripheral storage device | |
CN102082833A (en) | Automatic upgrading method and device of communication equipment | |
CN103079108B (en) | The method of starter motor top box and Set Top Box | |
CN103220192A (en) | Testing method of switch configuration | |
CN104461667A (en) | Root method and device for intelligent terminal | |
CN107729072A (en) | Control property read method, device, terminal and readable storage medium storing program for executing | |
CN103019789B (en) | A kind of sign software upgrade method, device and mobile terminal | |
CN105095009B (en) | A kind of method for deleting and device of memory | |
CN109766140A (en) | A kind of localization method and device that set-top box starting is abnormal | |
CN108228215A (en) | The method for pushing and device of the OTA upgrade package of terminal device | |
CN105072044B (en) | Utilize the system and method for router guiding system remote restoration route device | |
CN105094776A (en) | List processing method and device | |
CN110069277A (en) | Using loading method, using online equipment, storage medium and device | |
CN104484211B (en) | The method and device of shared image file | |
CN103150223A (en) | Method for preventing epon terminal equipment from being damaged and epon terminal equipment | |
CN105095053A (en) | Method and device for acquiring software information for software management | |
CN108874429A (en) | A kind of android system integration automatic packaging method | |
CN104461590A (en) | Information processing method and electronic equipment | |
CN108549539A (en) | A kind of method and device carrying out equipment remote upgrade | |
US20210067957A1 (en) | Apparatus and method for automatically removing data of mobile devices |
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 |