CN105760200A - Terminal device and system updating method thereof - Google Patents

Terminal device and system updating method thereof Download PDF

Info

Publication number
CN105760200A
CN105760200A CN201610108277.5A CN201610108277A CN105760200A CN 105760200 A CN105760200 A CN 105760200A CN 201610108277 A CN201610108277 A CN 201610108277A CN 105760200 A CN105760200 A CN 105760200A
Authority
CN
China
Prior art keywords
system file
memory
terminal unit
subregion
memory subregion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610108277.5A
Other languages
Chinese (zh)
Inventor
徐兵辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Semiconductor Inc Taiwan
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 MStar Semiconductor Inc Taiwan filed Critical MStar Semiconductor Inc Taiwan
Priority to CN201610108277.5A priority Critical patent/CN105760200A/en
Publication of CN105760200A publication Critical patent/CN105760200A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a terminal device and a system updating method thereof.The terminal device comprises at least a first storage partition and a second storage partition which are divided in advance and used for storing system files.The method comprises the steps that when the terminal device works, a first system file is received, whether the storage partition occupied by a second system file is the first storage partition or the second storage partition is determined, the received first system file is stored to the first storage partition and the storage partition which is not occupied currently, when the terminal device is powered off and rebooted, if an updating instruction of a user is received, the first system file is run, and system updating is completed, wherein an event of receiving the first system file does not affect a current working state of the terminal device.In this way, when an updating file is downloaded, using of the user is not affected, required time for system updating is reduced, and the system stability is improved.

Description

Terminal unit and method for upgrading system thereof
Technical field
The present invention relates to embedded device, particularly relate to a kind of terminal unit and method for upgrading system thereof.
Background technology
At present, widely use embedded OS in a television set, provide the user more abundant function.In current intelligent television, the more new procedures of general operation system is provided by service side is unified, automatically can be pushed in terminal televisions by server when there is the operating system of redaction.Television set is when the redaction operating system of server push being detected, it will usually prompt the user whether to need renewal, upgrade-system.When user determines upgrade-system, television set now first can by locally downloading for the system file of redaction preservation from server, the upgrading of the system file completion system after downloading of then reruning.But, in system upgrade process as above, user now cannot watch TV, can only the download of waiting system file and installation.Further, at the process interrupt electricity of download system file, it is necessary to re-download when next time starts shooting.And at the process interrupt electricity of installation system file, system is likely damaged and caused cannot be started up using, user cannot settle a dispute by the parties concerned themselves problem, can only wait that maintainer processes.
Summary of the invention
The technical problem that present invention mainly solves is to provide a kind of terminal unit and method for upgrading system thereof, it is possible to does not affect the use of user when downloading upgrade file, to reduce system upgrade required time, and improves system stability.
For solving above-mentioned technical problem, the technical scheme that the present invention adopts is: provide the method for upgrading system of a kind of terminal unit, described terminal unit includes the first memory subregion and the second memory subregion that are at least divided in advance for preserving system file, and described method includes: receive, during the work of described terminal unit, the first system file that server sends;Wherein, the event receiving described the first system file does not affect the duty that described terminal unit is current;Determine that the currently running memory partition shared by second system file is described first memory subregion or described second memory subregion;Preserve current unappropriated memory partition in described the first system file extremely described first memory subregion, the second memory subregion received;And if receive the upgrade command of user during power-off restarting, then run described the first system file, completion system is upgraded.
For solving above-mentioned technical problem, another technical solution used in the present invention is: provide a kind of terminal unit, described equipment includes: a receptor, for receiving a first system file when described terminal unit works, wherein, the event receiving described the first system file does not affect the duty that described terminal unit is current;One memorizer, at least includes first memory subregion and second memory subregion, is respectively used to preserve a first system file and a second system file;One processor, can be used for performing following steps: determine that the currently running memory partition shared by second system file is described first memory subregion or described second memory subregion;Preserve current unappropriated memory partition in described the first system file extremely described first memory subregion, the second memory subregion received;And if receive the upgrade command of user during power-off restarting, then run described the first system file, completion system is upgraded.
The invention has the beneficial effects as follows: be different from the situation of prior art, a kind of terminal unit and method for upgrading system thereof are provided, in advance memorizer is divided into two subregions, operationally receive the first system file that server sends, and the first system file is saved in current unappropriated subregion, if receive the upgrade command of user when power-off restarting, then running described the first system file, completion system is upgraded.Utilize the present invention, when system upgrade, upgrade file is automatically write Free Partition without affect terminal unit normal operation (as, user normally watches TV), improve Consumer's Experience, and the two of memorizer independent partitions preserve system file, improve the safety of system.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method for upgrading system of the terminal unit in first embodiment of the invention;
Fig. 2 is the schematic flow sheet of the method for upgrading system of the terminal unit in second embodiment of the invention;
Fig. 3 is the schematic flow sheet of the method for upgrading system of the terminal unit in third embodiment of the invention;
Fig. 4 is the schematic flow sheet of the method for upgrading system of the terminal unit in four embodiment of the invention;
Fig. 5 is the structural representation of the memorizer in embodiment of the present invention;
Fig. 6 is the structural representation of the terminal unit in embodiment of the present invention.
Detailed description of the invention
By describing the technology contents of the present invention, structural feature in detail, being realized purpose and effect, below in conjunction with drawings and Examples, the present invention is described in detail.
Refer to Fig. 1, for the schematic flow sheet of the method for upgrading system of the terminal unit in first embodiment of the invention.Method for upgrading system shown in this embodiment comprises the steps:
Step S10, terminal unit operationally receives a first system file.Wherein, the event receiving this first system file does not affect the duty that this terminal unit is current.
The first system file is system upgrade file, the version model of the system file that version model is currently running higher than this terminal unit.In the present embodiment, this terminal unit is intelligent TV set.Internet television corporate server updates the system of client TV, it is provided that upgrade file, and by network, upgrade file is pushed to client.The process receiving the first system file during television set work carries out on backstage, it can't be play TV programme and impact.
Step S11, it is determined that the currently running memory partition shared by second system file is first memory subregion or second memory subregion.
Wherein, memorizer is first divided into first memory subregion and second memory subregion in advance, and two memory partitions are independent from, be independent of each other, and is all used for preserving system file.This memorizer is have certain memory space in terminal unit and the physical storage of data is not lost in power down, e.g., and hard disk, flash memory flash etc..
Further, this memorizer is divided into first memory subregion and second memory subregion in equal size, i.e. the memory space of two memory partitions is identical.Certainly, the dividing mode of first memory subregion and second memory subregion is not limited to that.
Step S12, preserves the first system file received to current unappropriated memory partition in first memory subregion, second memory subregion.
In step s 12, one of them subregion that the second system file run when terminal unit works is stored in two memory partitions, the first system file of download is then saved in another subregion (calls Free Partition in the following text).If this Free Partition had saved the system file that a version model is relatively low originally, then the first system file covers the system file that it is original.
Step S13, if receiving the upgrade command of user during power-off restarting, then runs this first system file, and completion system is upgraded.
When restarting after terminal unit power-off shutdown, receiving the upgrade command of the user of input, run this first system file, completion system is upgraded.
Alternatively, if being not received by the upgrade command of user during power-off restarting, then the described second system file run before running power-off.The method for upgrading system of the terminal unit in embodiment of the present invention, in advance memorizer is divided into first memory subregion and second memory subregion, the system file loaded during terminal unit work is saved in one of them memory partition, the system file of the upgrading of backstage reception simultaneously is saved in another memory partition, the two is independent of each other mutually, make the download of the system file simultaneously completing upgrading worked at terminal unit, but use without affecting user.And after upper once power-off is started shooting, can directly run the system file of this upgrading when receiving user and agreeing to the instruction upgraded, it is not necessary to user waits that it is downloaded, thus accelerating system upgrade process, promotes Consumer's Experience.Further, the system file of two memory partition preservation different editions, it is also possible to supported that terminal unit runs by another one system file when a system file damages wherein, thus improving the system stability of terminal unit.
Referring to Fig. 2, step S13, i.e. if receiving the upgrade command of user during power-off restarting, then run this first system file, completion system is upgraded, and realizes especially by following steps:
Step S13a, during power-off restarting and when receiving the upgrade command of user, the relatively version model of the system file that first memory subregion and second memory subregion preserve, in actual applications, during power-off restarting, system can ask the user whether upgrading, namely displays whether the dialog box of upgrading, user clicks agreement upgrading, and system just receives the upgrade command of user..
In step S13a, due to before power-off, terminal unit is complete the download of the first system file, when therefore receiving the upgrade command of user after power-off restarting, this terminal unit upgrade command should read the version model of system file preserved in first memory subregion and second memory subregion respectively, and select system file that version model is higher as guiding the system file loaded, directly guide loading this choosing system file then, it is achieved system upgrade.Wherein, the version model of system file is written into the chunkheader header file of place memory partition, and bootstrap loader can obtain the version model of the system file of preservation from the chunkheader header file of memory partition.
Step S13b, runs the system file (the first system file) that version model is higher, and completion system is upgraded.
Refer to Fig. 3, in step S12, i.e. after the first system file of reception preservation to current unappropriated memory partition in first memory subregion, second memory subregion, described method specifically includes:
Step S12a, is revised as the first state by state flag bit corresponding for the memory partition of this first system file of this preservation.Wherein, this first state is for identifying the system file that system file is up-to-date download preserved in memory partition.
Step S13, i.e. if receiving the upgrade command of user during power-off restarting, then run described the first system file, and completion system is upgraded, and realizes especially by following steps:
Step S130a, whether the state flag bit detecting described first memory subregion or described second memory subregion during power-off restarting is the first state.When the state flag bit described first memory subregion or described second memory subregion being detected is the first state, enter step S131a;When the state flag bit of first memory subregion and second memory subregion is all not the first state, enter step S14.
Such as, in step S130a, when power-off restarting, bootstrap loader needs the state value of the state flag bit of the corresponding first memory subregion of inspection and second memory subregion, if the state flag bit of one of them in two memory partitions is the first state, illustrate that the system file that this memory partition preserves is the system file of up-to-date download, i.e. for the system file of upgrading.At this time, it may be necessary to ask the user whether system is upgraded.If the state flag bit of two memory partitions is not the first state, illustrate that memorizer does not have newly downloaded system file.Now, acquiescence is run the system file of last time operation.Wherein, bootstrap loader is the second state by the Status Flag that recording medium subregion is corresponding, represents that system file the last time of its preservation was run, i.e. be currently running before power-off.Therefore, whether the state flag bit that bootstrap loader has only to judge in two memory partitions is the second state, and whether the system file to determine its preservation ran before power-off.
Step S131a, relatively the version model of the system file that described first memory subregion and described second memory subregion preserve.
Specifically, when the state flag bit of one of them detecting first memory subregion or second memory subregion is the first state, illustrates that terminal unit has been downloaded and be mounted with system upgrade file.Now, produce to prompt the user whether to be upgraded to the first system file by ejecting the mode of information dialog box, such as, this information dialog box includes " agreement " and " cancellation ", according to user to whether the operation judges of this information. dialog receives upgrade command.Such as, when detecting that user clicks or touch above-mentioned " agreement ", namely receive upgrade command, therefore perform the version model of the system file of more described first memory subregion and the preservation of described second memory subregion.
Step S132a, runs the system file that version model is higher, and completion system is upgraded.
Step S14, the system file (second system file) run before running power-off.
When power-off restarting, if be not received by upgrade command, the system file run before directly running power-off;And, when the state flag bit of first memory subregion and second memory subregion is all not the first state, the system file run before running power-off.
Refer to Fig. 4, step S131a, i.e. before comparing the version model of system file of first memory subregion and the preservation of second memory subregion, the method also includes:
Step S15, whether the first system file that verification is saved in first memory subregion or second memory subregion is legal.If so, step S131a is then entered.Otherwise, then step S14 is entered.
In step S15, the verification of system file was carried out before comparison system FileVersion model, judge that whether the system file preserved in first memory subregion and second memory subregion is correct, legal, it is to verify the version of newly downloaded system file (the first system file) if appropriate for terminal unit use, it is prevented that when being not suitable for terminal unit after loading, cause system crash.Therefore, by setting steps S15, terminal unit can be forced not to be upgraded to redaction when the first system file verification downloaded is defective, and be continuing with the system file of original, relatively low version.
Further, when terminal unit completion system is upgraded, also state flag bit corresponding for the memory partition preserving described the first system file is revised as the second state;Wherein, described second state was run for identifying the system file preserved in memory partition.
Further, if being not fully complete the download of the first system file during terminal unit power-off, then recording the memory partition shared by currently running system file is default partition, and the downloading process of record the first system file.When resume work state time (when restarting), run the system file preserved in default partition, and the downloading process according to record continue to download the first system file.
Below the operation principle of the system file in terminal device guides load store device is described in detail.
Please refer to Fig. 5, for the structural representation of the memorizer of embodiment of the present invention.Wherein, APBinCode district one is first memory subregion, and APBinCode district two is second memory subregion.As it has been described above, when preserving the first system file to Free Partition, the chunkheader header file of this Free Partition writes version model and check code, as mark.
Further, Bank1-PM district is for recording and preserve the situation of the memory partition that terminal unit uses before power-off restarting.Restarting situation (thermal starting) what non-power power-off occurred, the control circuit (not shown) of terminal unit can select from Bank1-PM the system file preserved in the memory partition used the last time of record to start terminal unit.
Bank0-Sboot district is used for preserving bootstrap loader, this bootstrap loader is for verifying the data preserved in the first memory subregion of memorizer and second memory subregion when terminal unit starts, load, so that it is determined that guide, the system file preserved in first memory subregion or second memory subregion, complete the startup of terminal unit.Specifically, the state flag bit of first memory subregion and second memory subregion is detected, verifies the upgrade command of the legitimacy of the system file of preservation, the version of comparison system file and detection user by this bootstrap loader, and finally determines the memory partition of selection in conjunction with the testing result of four above-mentioned conditions.It is possible to further arrange the detection priority to these four conditions, compound mode etc. so that one or more condition can be detected when each power-off restarting of terminal unit and judge by bootstrap loader, select the memory partition guided.
Further, the director data form of the bootstrap loader of memorizer is as follows:
abcdefgh
Wherein, the data that front two (ab) records are for representing selected memory partition, such as, the data of front two record are 01, the memory partition then representing selected is the first partition holding, the data of front two record are 10, then it represents that selected memory partition is second memory subregion.Further, it is also possible to utilize the memory partition that the data representation that first (a) records is selected, for instance, 10 represent that selected memory partition is the first partition holding, and 00 represents that selected memory partition is second memory subregion.
The data that middle three (cde) and last three (fgh) record are respectively used to the state of expression first memory subregion and second memory subregion (or second memory subregion and first memory subregion), and this state includes: whether the first state (upgrades successfully), the second state (whether running before power-off).Such as, when cde respectively 000 time, represent first memory subregion upgrade successfully, save the first system file;When fgh respectively 111 time, represent second memory subregion do not upgrade, and before power-off run.
Such as, before power-off, the first system file that terminal unit is downloaded in first memory subregion and preserved, therefore the system file that this first system file is up-to-date download, and what be currently running is the second system file preserved in second memory subregion.Then, bootstrap loader director data now is 10000111.After power-off restarting, bootstrap loader determines system upgrade by verification as above, and after the first system file completion system upgrading selecting to run in first memory subregion, then director data is revised as 01111111.Terminal unit does not download new system file after this starts, then the director data of bootstrap loader is constant.When power-off starts again, bootstrap loader directly runs the first system file in first memory subregion according to director data 01111111.
Refer to Fig. 6, for the structural representation of the terminal unit in embodiment of the present invention.Terminal unit in this embodiment can be television set, personal computer, panel computer, notebook computer, smart mobile phone etc..This terminal unit 20 includes receptor 21, processor 22, transmitter 23, memorizer 24 and bus 26.
This receptor 21 for receiving a first system file when described terminal unit works, and wherein, the event receiving described the first system file does not affect the duty that described terminal unit is current.
This processor 22 controls the operation of terminal unit 20, and this processor 22 can also become CPU (CentralProcessingUnit, CPU).This processor 22 is probably a kind of IC chip, has the disposal ability of signal.Processor 22 can also is that general processor, digital signal processor (DSP), special IC (ASIC), ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components.The processor etc. that general processor can be microprocessor or this processor can also be any routine.
This transmitter 23 is used for sending data.
Each assembly of terminal unit 20 is coupled by bus 26, and wherein, bus 26 is except including data/address bus, it is also possible to includes power bus, control bus and status signal bus in addition etc..But in order to know for the purpose of explanation, in the drawings various buses are all designated as bus 26.
Memorizer stores following element, executable module or data structure or their subset or their superset:
Operational order: include various operational order, is used for realizing various operation.
Operating system: include various system program, is used for realizing various basic business and processing hardware based task.
In embodiments of the present invention, this memorizer 24 at least includes first memory subregion and second memory subregion, is respectively used to preserve system file.Two memory partitions are independent from, be independent of each other, and are respectively used to preserve the first system file and second system file., for instance, first memory subregion is used for preserving the first system file, then second memory subregion is then used for preserving second system file;Or, first memory subregion is used for preserving second system file, then second memory subregion is then used for preserving the first system file.
Further, this memorizer is divided into first memory subregion and second memory subregion in equal size, i.e. the memory space of two memory partitions is identical.Certainly, the dividing mode of first memory subregion and second memory subregion is not limited to that.
Further, this processor 22, by calling the operational order (this operational order is storable in operating system) of memorizer storage, performs following operation:
Processor 22 is when receptor 21 receives described the first system file, determine that the currently running memory partition shared by second system file is first memory subregion or second memory subregion, the first system file received is preserved to current unappropriated memory partition in first memory subregion, second memory subregion;And if receive the upgrade command of user during power-off restarting, then run the first system file, completion system is upgraded.
Wherein, the event receiving the first system file does not affect the duty that terminal unit 20 is current.The first system file is system upgrade file, the version model of the system file that version model is currently running higher than this terminal unit.
Alternatively, this processor 22 is when power-off restarting and when receiving the upgrade command of user, the relatively version model of the system file that described first memory subregion and described second memory subregion preserve, and run the system file that version model is higher, completion system is upgraded.
Due to before power-off, terminal unit 20 is complete the download of the first system file, if therefore receive the upgrade command of user after power-off restarting, this processor 22 reads the version model of the system file preserved in first memory subregion and second memory subregion respectively, and select system file that version model is higher as guiding the system file loaded, directly guide and load this choosing system file then, it is achieved system upgrade.Wherein, the version model of system file is written into the chunkheader header file of place memory partition, and this processor 22 can obtain the version model of the system file of preservation from the chunkheader header file of memory partition.
Alternatively, state flag bit corresponding for described memory partition after current unappropriated memory partition, is revised as the first state by this processor 22 in preserving described the first system file extremely described first memory subregion, the second memory subregion received;Wherein, described first state is for identifying the system file that system file is up-to-date download preserved in memory partition.
Alternatively, this processor 22 detects when power-off restarting whether the state flag bit of first memory subregion or second memory subregion is the first state;When the state flag bit of one of them first memory subregion or second memory subregion being detected is the first state, perform the version model of the system file of above-mentioned comparison described first memory subregion and the preservation of described second memory subregion, and run the system file that version model is higher, the step of completion system upgrading.When the state flag bit of first memory subregion and second memory subregion is all not the first state, the system file (second system file) run before running power-off.
Specifically, when power-off restarting, need the state value of the state flag bit of the corresponding first memory subregion of inspection and second memory subregion, if the state flag bit of one of them in two memory partitions is the first state, illustrate that the system file that this memory partition preserves is newly downloaded system file, that is, the system file of up-to-date upgrading.At this time, it may be necessary to ask the user whether system is upgraded.If the state flag bit of two memory partitions is not the first state, illustrate that memorizer does not have newly downloaded system file.Now, acquiescence is run the system file of last time operation.Wherein, if Status Flag corresponding to memory partition is the second state, represent that system file the last time of its preservation was run, i.e. be currently running before power-off.Therefore, whether the state flag bit that bootstrap loader has only to judge in two memory partitions is the second state, and whether the system file to determine its preservation ran before power-off.
Alternatively, this processor 22 is when power-off restarting and is not received by the upgrading of user when referring to, the described second system file run before running power-off.
Alternatively, whether the first system file that the verification of this processor 22 is saved in first memory subregion or second memory subregion is legal.
When the first system file being saved in first memory subregion or second memory subregion is legal, this processor 22 compares the version model of the system file of first memory subregion and the preservation of second memory subregion, and this processor 22 runs the system file that version model is higher.When the first system file being saved in first memory subregion or second memory subregion is illegal, the system file (second system file) that this processor 22 runs before running power-off.
The verification of system file was carried out before comparison system FileVersion model, this processor 22 judges that whether the system file preserved in first memory subregion and second memory subregion is correct, legal, it is to verify the version of newly downloaded system file (the first system file) if appropriate for terminal unit use, it is prevented that when being not suitable for terminal unit after loading, cause system crash.Therefore, by legal verification, terminal unit can be forced not to be upgraded to redaction when the first system file verification downloaded is defective, and be continuing with the system file of original, relatively low version.
Alternatively, when terminal unit completion system is upgraded, the state flag bit preserving the memory partition of the first system file, also after completing upgrading, is revised as the second state by this processor 22.Wherein, this second state was run for identifying the system file preserved in memory partition.
Alternatively, if be not fully complete the download of the first system file during terminal unit power-off, it is default partition that this processor 22 also records the memory partition shared by currently running system file, and the downloading process of record the first system file.When resume work state time, run the system file preserved in default partition, and the downloading process according to record continue to download the first system file.
A kind of terminal unit provided by the invention and method for upgrading system thereof, in advance memorizer is divided into first memory subregion and second memory subregion, the system file loaded during terminal unit work is saved in one of them memory partition, the system file of the upgrading of backstage reception simultaneously is saved in another memory partition, the two is independent of each other mutually, make in the download of the system file simultaneously completing upgrading of terminal unit work and installation, but without affect user's use.And after upper once power-off is started shooting, can directly run the system file of this upgrading when receiving user and agreeing to the instruction upgraded, it is not necessary to user waits that it is downloaded and installs, thus accelerating system upgrade process, promotes Consumer's Experience.Further, the system file of two memory partition preservation different editions, it is also possible to supported that terminal unit runs by another one system file when a system file damages wherein, thus improving the system stability of terminal unit.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention.

Claims (14)

1. a method for upgrading system for terminal unit, described terminal unit includes the first memory subregion and the second memory subregion that are at least divided in advance for preserving system file, and described method includes:
A first system file is received during the work of described terminal unit;Wherein, the event receiving described the first system file does not affect the duty that described terminal unit is current;
Determine that the currently running memory partition shared by second system file is described first memory subregion or described second memory subregion;
Preserve current unappropriated memory partition in described the first system file extremely described first memory subregion, the second memory subregion received;And
If receiving the upgrade command of user during power-off restarting, then running described the first system file, completion system is upgraded.
2. the method for upgrading system of terminal unit according to claim 1, it is characterised in that if receiving the upgrade command of user during power-off restarting, then run described the first system file, and the step of completion system upgrading includes:
During power-off restarting and when receiving the upgrade command of user, the relatively version model of the system file that described first memory subregion and described second memory subregion preserve;And
Running the system file that version model is higher, completion system is upgraded.
3. the method for upgrading system of terminal unit according to claim 1, it is characterised in that also include:
If being not received by the upgrade command of user during power-off restarting, then the described second system file run before running power-off.
4. the method for upgrading system of terminal unit according to claim 1, it is characterised in that also include:
In preserving described the first system file extremely described first memory subregion, the second memory subregion received after current unappropriated memory partition, state flag bit corresponding for described memory partition is revised as the first state;Wherein, described first state is for identifying the system file that system file is up-to-date download preserved in memory partition.
5. the method for upgrading system of terminal unit according to claim 4, it is characterised in that if receiving the upgrade command of user during described power-off restarting, then run described the first system file, and the step of completion system upgrading includes:
Whether the state flag bit detecting described first memory subregion or described second memory subregion during power-off restarting is the first state;
When the state flag bit described first memory subregion or described second memory subregion being detected is the first state, the relatively version model of the system file that described first memory subregion and described second memory subregion preserve;And
Running the system file that version model is higher, completion system is upgraded.
6. the method for upgrading system of terminal unit according to claim 1, it is characterised in that if receive the upgrade command of user when described power-off restarting, then run described the first system file, also includes before the step of completion system upgrading:
Whether the described the first system file that verification is saved in described first memory subregion or second memory subregion is legal.
7. the method for upgrading system of terminal unit according to claim 1, it is characterised in that described method also includes:
After completing upgrading, state flag bit corresponding for the memory partition preserving described the first system file is revised as the second state;Wherein, described second state was run for identifying the system file preserved in memory partition.
8. the method for upgrading system of terminal unit according to claim 1, it is characterised in that after receiving the step of the first system file that server sends during terminal unit work, described method also includes:
During described terminal unit power-off, recording the memory partition shared by currently running system file is default partition, and records the downloading process of described the first system file;
Run the system file preserved in described default partition when restarting, and the downloading process according to record continues to download described the first system file.
9. a terminal unit, it is characterised in that described equipment includes:
One receptor, for receiving a first system file when described terminal unit works, wherein, the event receiving described the first system file does not affect the duty that described terminal unit is current;
One memorizer, at least includes first memory subregion and second memory subregion, is respectively used to preserve a first system file and a second system file;
One processor, can be used for performing following steps:
Determine that the currently running memory partition shared by second system file is described first memory subregion or described second memory subregion;
Preserve current unappropriated memory partition in described the first system file extremely described first memory subregion, the second memory subregion received;And
If receiving the upgrade command of user during power-off restarting, then running described the first system file, completion system is upgraded.
10. terminal unit according to claim 9, it is characterised in that described processor is additionally operable to:
During power-off restarting and when receiving the upgrade command of user, the relatively version model of the system file that described first memory subregion and described second memory subregion preserve, and run the system file that version model is higher, completion system is upgraded.
11. terminal unit according to claim 9, it is characterised in that described processor is additionally operable to:
If being not received by the upgrade command of user during power-off restarting, then the described second system file run before running power-off.
12. terminal unit according to claim 9, it is characterised in that described processor is additionally operable to:
In preserving described the first system file extremely described first memory subregion, the second memory subregion received after current unappropriated memory partition, state flag bit corresponding for described memory partition is revised as the first state;Wherein, described first state is for identifying the system file that system file is up-to-date download preserved in memory partition.
13. terminal unit according to claim 12, it is characterised in that described processor is additionally operable to:
Whether the state flag bit detecting described first memory subregion and described second memory subregion during power-off restarting is the first state;
When the state flag bit described first memory subregion or described second memory subregion being detected is the first state, the relatively version model of the system file that described first memory subregion and described second memory subregion preserve, and running the system file that version model is higher, completion system is upgraded.
14. terminal unit according to claim 9, it is characterised in that described terminal unit is television set.
CN201610108277.5A 2016-02-26 2016-02-26 Terminal device and system updating method thereof Pending CN105760200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610108277.5A CN105760200A (en) 2016-02-26 2016-02-26 Terminal device and system updating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610108277.5A CN105760200A (en) 2016-02-26 2016-02-26 Terminal device and system updating method thereof

Publications (1)

Publication Number Publication Date
CN105760200A true CN105760200A (en) 2016-07-13

Family

ID=56331376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610108277.5A Pending CN105760200A (en) 2016-02-26 2016-02-26 Terminal device and system updating method thereof

Country Status (1)

Country Link
CN (1) CN105760200A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
CN107566609A (en) * 2017-08-07 2018-01-09 宇龙计算机通信科技(深圳)有限公司 A kind of downloading task processing method, device, terminal and storage medium
CN108153540A (en) * 2018-01-15 2018-06-12 北京小米移动软件有限公司 Method, apparatus, terminal and the storage medium of system upgrade
CN108279916A (en) * 2017-12-28 2018-07-13 宁德时代新能源科技股份有限公司 Electronic control unit program updating method and device
CN109656594A (en) * 2018-12-10 2019-04-19 惠州Tcl移动通信有限公司 Update method, device and the storage medium of mobile terminal system file
CN109840095A (en) * 2017-11-28 2019-06-04 比亚迪股份有限公司 Starting method, energy storage device and the storage medium of energy-storage system
CN110580167A (en) * 2018-06-11 2019-12-17 海能达通信股份有限公司 system upgrading method, intelligent device and server
CN110619955A (en) * 2019-09-20 2019-12-27 江苏赛诺格兰医疗科技有限公司 Method for upgrading electronic equipment software in medical imaging equipment and electronic equipment
CN110737453A (en) * 2019-10-17 2020-01-31 北京智芯微电子科技有限公司 Security chip upgrading method and device and security chip
CN111143821A (en) * 2019-12-20 2020-05-12 上海爱信诺航芯电子科技有限公司 Processor and SBoot processing method of native MPU thereof
CN111158729A (en) * 2019-12-30 2020-05-15 深圳Tcl数字技术有限公司 System upgrading method, device, equipment and storage medium
CN111586484A (en) * 2020-04-30 2020-08-25 深圳Tcl数字技术有限公司 Method, device and equipment for upgrading auxiliary screen system of display equipment and storage medium
CN112616090A (en) * 2020-12-07 2021-04-06 青岛海信传媒网络技术有限公司 Display equipment system upgrading method and display equipment
CN112817625A (en) * 2021-01-29 2021-05-18 青岛海信移动通信技术股份有限公司 System upgrading method and device, electronic equipment and storage medium
CN113064608A (en) * 2020-01-02 2021-07-02 广东博智林机器人有限公司 OTA (over the air) upgrading method, device, equipment and medium
CN113138788A (en) * 2021-05-14 2021-07-20 四川虹美智能科技有限公司 Air conditioner program upgrading method and air conditioner system
CN113590150A (en) * 2021-06-30 2021-11-02 北京智芯微电子科技有限公司 Memory bank control method, program upgrading method and device
CN113905039A (en) * 2021-09-30 2022-01-07 苏州挚途科技有限公司 System upgrade file transmission method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214113A (en) * 2011-06-08 2011-10-12 Tcl集团股份有限公司 Method, device and terminal for upgrading operating system
CN103106092A (en) * 2013-02-18 2013-05-15 青岛海信宽带多媒体技术有限公司 System software updating method and device in terminal appliance
CN103634668A (en) * 2013-12-20 2014-03-12 乐视致新电子科技(天津)有限公司 System upgrading method and device in smart television

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214113A (en) * 2011-06-08 2011-10-12 Tcl集团股份有限公司 Method, device and terminal for upgrading operating system
CN103106092A (en) * 2013-02-18 2013-05-15 青岛海信宽带多媒体技术有限公司 System software updating method and device in terminal appliance
CN103634668A (en) * 2013-12-20 2014-03-12 乐视致新电子科技(天津)有限公司 System upgrading method and device in smart television

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
CN107566609A (en) * 2017-08-07 2018-01-09 宇龙计算机通信科技(深圳)有限公司 A kind of downloading task processing method, device, terminal and storage medium
CN109840095A (en) * 2017-11-28 2019-06-04 比亚迪股份有限公司 Starting method, energy storage device and the storage medium of energy-storage system
CN108279916A (en) * 2017-12-28 2018-07-13 宁德时代新能源科技股份有限公司 Electronic control unit program updating method and device
CN108153540B (en) * 2018-01-15 2021-07-23 北京小米移动软件有限公司 System upgrading method, device, terminal and storage medium
CN108153540A (en) * 2018-01-15 2018-06-12 北京小米移动软件有限公司 Method, apparatus, terminal and the storage medium of system upgrade
CN110580167A (en) * 2018-06-11 2019-12-17 海能达通信股份有限公司 system upgrading method, intelligent device and server
CN109656594A (en) * 2018-12-10 2019-04-19 惠州Tcl移动通信有限公司 Update method, device and the storage medium of mobile terminal system file
CN110619955A (en) * 2019-09-20 2019-12-27 江苏赛诺格兰医疗科技有限公司 Method for upgrading electronic equipment software in medical imaging equipment and electronic equipment
CN110737453A (en) * 2019-10-17 2020-01-31 北京智芯微电子科技有限公司 Security chip upgrading method and device and security chip
CN111143821A (en) * 2019-12-20 2020-05-12 上海爱信诺航芯电子科技有限公司 Processor and SBoot processing method of native MPU thereof
CN111143821B (en) * 2019-12-20 2023-04-11 上海航芯电子科技股份有限公司 Processor and SBoot processing method of native MPU thereof
CN111158729A (en) * 2019-12-30 2020-05-15 深圳Tcl数字技术有限公司 System upgrading method, device, equipment and storage medium
CN113064608A (en) * 2020-01-02 2021-07-02 广东博智林机器人有限公司 OTA (over the air) upgrading method, device, equipment and medium
CN111586484A (en) * 2020-04-30 2020-08-25 深圳Tcl数字技术有限公司 Method, device and equipment for upgrading auxiliary screen system of display equipment and storage medium
CN112616090A (en) * 2020-12-07 2021-04-06 青岛海信传媒网络技术有限公司 Display equipment system upgrading method and display equipment
CN112817625A (en) * 2021-01-29 2021-05-18 青岛海信移动通信技术股份有限公司 System upgrading method and device, electronic equipment and storage medium
CN112817625B (en) * 2021-01-29 2024-03-08 青岛海信移动通信技术有限公司 System upgrading method and device, electronic equipment and storage medium
CN113138788A (en) * 2021-05-14 2021-07-20 四川虹美智能科技有限公司 Air conditioner program upgrading method and air conditioner system
CN113590150A (en) * 2021-06-30 2021-11-02 北京智芯微电子科技有限公司 Memory bank control method, program upgrading method and device
CN113905039A (en) * 2021-09-30 2022-01-07 苏州挚途科技有限公司 System upgrade file transmission method, device and system

Similar Documents

Publication Publication Date Title
CN105760200A (en) Terminal device and system updating method thereof
US8719810B2 (en) Program upgrade system and method for over the air-capable mobile terminal
EP2641175B1 (en) Networked recovery system
CN105094927B (en) A kind of device firmware upgrade method and apparatus
CN103106092A (en) System software updating method and device in terminal appliance
US20160170735A1 (en) Operating system updating method by using a checklist
JPWO2009078285A1 (en) Wireless terminal, non-volatile memory of wireless terminal, and fail-safe storage method of diagnostic information
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN112416411B (en) Upgrading method and device, equipment end, server and computer readable medium
CN103634668A (en) System upgrading method and device in smart television
CN101505331A (en) Method and apparatus for updating system software of smart phone
CN105677409A (en) System upgrading method and device
CN113032183A (en) System management method, device, computer equipment and storage medium
CN103455750A (en) High-security verification method and high-security verification system for embedded devices
CN102226888A (en) Framework loading method and device
CN106933604B (en) System upgrading method and device
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
US8302182B2 (en) Embedded system with authentication, and associated authentication method
CN104636574A (en) Terminal device upgrade method and terminal device
CN100375026C (en) Quick storage equipment software installing/updating method
CN110659052B (en) Method and system for updating system software in network equipment and readable storage medium
CN113703801A (en) Vehicle-mounted terminal firmware upgrading method and electronic device
CN112667444A (en) System upgrading method, storage medium and terminal equipment
CN111190627A (en) System upgrading method and device
CN112565896B (en) System repairing method, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20191108