TWI575459B - Terminal device and system upgrading method thereof - Google Patents

Terminal device and system upgrading method thereof Download PDF

Info

Publication number
TWI575459B
TWI575459B TW105107797A TW105107797A TWI575459B TW I575459 B TWI575459 B TW I575459B TW 105107797 A TW105107797 A TW 105107797A TW 105107797 A TW105107797 A TW 105107797A TW I575459 B TWI575459 B TW I575459B
Authority
TW
Taiwan
Prior art keywords
file
memory partition
upgrade
terminal
memory
Prior art date
Application number
TW105107797A
Other languages
Chinese (zh)
Other versions
TW201732585A (en
Inventor
徐兵輝
Original Assignee
晨星半導體股份有限公司
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 晨星半導體股份有限公司 filed Critical 晨星半導體股份有限公司
Priority to TW105107797A priority Critical patent/TWI575459B/en
Application granted granted Critical
Publication of TWI575459B publication Critical patent/TWI575459B/en
Publication of TW201732585A publication Critical patent/TW201732585A/en

Links

Description

Terminal device and system upgrade method thereof
The present invention relates to an embedded device, and more particularly to a terminal device and a system upgrade method thereof.
At present, the embedded operating system is widely used in television sets to provide users with more abundant functions. In the current smart TV, the update program of the general operating system is uniformly provided by the service party, and is automatically pushed by the server to the terminal television when a new version of the operating system appears. When the TV detects a new version of the operating system pushed by the server, it usually prompts the user whether to update or upgrade the system. When the user determines to upgrade the system, the TV will first download the new version of the system file from the server to the local save, and then run the downloaded system file to complete the system upgrade. However, during the system upgrade process described above, the user cannot watch the TV at this time, and can only wait for the download and installation of the system file. Also, the process of downloading the system file is interrupted, and it needs to be re-downloaded the next time it is turned on. However, in the process of installing the system file, the system may be damaged, and the system may be unable to be powered on. The user cannot solve the problem by himself, and can only wait for the maintenance personnel to handle it.
The technical problem to be solved by the present invention is to provide a terminal device and a system upgrade method thereof, which can not affect the user's use when downloading the upgrade file, thereby reducing the time required for system upgrade and improving system stability.
In order to solve the above technical problem, a technical solution adopted by the present invention is to provide a system upgrade method for a terminal device, where the terminal device includes a first memory partition and a second memory partition that are at least divided into at least two parts for saving a system file. The method includes: receiving, by the terminal device, a first system file sent by the server; wherein, receiving the event of the first system file does not affect a current working state of the terminal device; determining a current running Whether the memory partition occupied by the second system file is the first memory partition or the second memory partition; storing the received first system file to the first memory partition and the second memory partition The currently unoccupied memory partition; and if the user's upgrade command is received during the power-off restart, the first system file is run to complete the system upgrade.
In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a terminal device, where the terminal device includes: a receiver, configured to receive a first system file when the terminal device operates, wherein receiving The event of the first system file does not affect the current working state of the terminal device; a memory body includes at least a first memory partition and a second memory partition, respectively, for storing a first system file and a second a system file, wherein the processor is configured to: determine whether the memory partition occupied by the currently running second system file is the first memory partition or the second memory partition; a system file to the first memory partition, the second memory partition currently unoccupied memory Partition; and if the user's upgrade command is received during the power-off restart, the first system file is run to complete the system upgrade.
The utility model has the beneficial effects that: different from the prior art, a terminal device and a system upgrade method thereof are provided, the memory is divided into two partitions in advance, and the first system file sent by the server is received during operation, and the first The system file is saved in the currently unoccupied partition, and if the user's upgrade command is received during the power-off restart, the first system file is run to complete the system upgrade. By using the invention, when the system is upgraded, the upgrade file is automatically written into the free partition without affecting the normal operation of the terminal device (for example, the user normally watches the TV), the user experience is improved, and two independent partitions of the memory are saved. The system file improves the security of the system.
In order to better understand the above and other aspects of the present invention, the preferred embodiments are described below, and in conjunction with the drawings, the detailed description is as follows:
20‧‧‧ Terminal equipment
21‧‧‧ Receiver
22‧‧‧ Processor
23‧‧‧Transmitter
24‧‧‧ memory
26‧‧‧ Busbar
S10, S11, S12, S12a, S13, S13a, S13b, S130a, S131a, S132a, S14, S15‧‧‧ process steps
FIG. 1 is a flow chart showing a system upgrade method of a terminal device in the first embodiment of the present invention.
2 is a flow chart showing a system upgrade method of a terminal device in a second embodiment of the present invention.
FIG. 3 is a flow chart showing a system upgrade method of a terminal device in a third embodiment of the present invention.
4 is a flow chart showing a system upgrade method of a terminal device in a fourth embodiment of the present invention.
Fig. 5 is a view showing the structure of a memory in the embodiment of the present invention.
FIG. 6 is a schematic structural diagram of a terminal device in an embodiment of the present invention.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Referring to FIG. 1 , it is a schematic flowchart of a method for upgrading a system of a terminal device according to a first embodiment of the present invention. The system upgrade method shown in this embodiment includes the following steps:
In step S10, the terminal device receives a first system file during operation. The event of receiving the first system file does not affect the current working state of the terminal device.
The first system file is a system upgrade file, and the version model is higher than the version model of the system file currently running by the terminal device. In this embodiment, the terminal device is a smart TV. The Internet TV company server updates the system of the client TV, provides an upgrade file, and pushes the upgrade file to the client through the network. The process of receiving the first system file while the TV is working is in the background and does not affect the broadcast of the TV program.
Step S11, determining whether the memory partition occupied by the currently running second system file is the first memory partition or the second memory partition.
The memory is pre-divided into a first memory partition and a second memory partition. The two memory partitions are independent of each other and are not affected by each other, and are used to save system files. The memory has a certain storage space in the terminal device, and the power is not powered off. Physical memory of lost data, such as hard disk, flash memory flash, etc.
Further, the memory is equally divided into a first memory partition and a second memory partition, that is, the storage spaces of the two memory partitions are the same. Of course, the manner in which the first memory partition and the second memory partition are divided is not limited to this.
Step S12: Save the received first system file to a memory partition that is not currently occupied in the first memory partition and the second memory partition.
In step S12, the second system file that is running when the terminal device is working is saved in one of the two memory partitions, and the downloaded first system file is saved in another partition (hereinafter referred to as a free partition). . If the free partition has originally saved a system file with a lower version of the model, the first system file overwrites its original system file.
In step S13, if the user's upgrade command is received during the power-off restart, the first system file is run to complete the system upgrade.
When the terminal device is powered off and then restarted, the input user's upgrade instruction is received, and the first system file is run to complete the system upgrade.
Optionally, if the upgrade instruction of the user is not received when the power is turned off and restarted, the second system file that is operated before the power failure is run. In the system upgrade method of the terminal device in the embodiment of the present invention, the memory is divided into the first memory partition and the second memory partition in advance, and the system file loaded when the terminal device works is saved in one of the memory partitions, and the background is The system file that receives the upgrade is saved in another memory partition, and the two do not affect each other, so that the download of the upgraded system file is completed while the terminal device is working, but the user's use is not affected. And the next power off After the machine is received, the upgraded system file can be directly run when receiving the instruction that the user agrees to upgrade, and the user is not required to wait for the download, thereby speeding up the system upgrade process and improving the user experience. Further, the two memory partitions save different versions of the system files, and may also be supported by the other system file when one of the system files is damaged, thereby improving the system stability of the terminal device.
Please refer to FIG. 2, step S13, that is, if the user's upgrade instruction is received during the power-off restart, the first system file is run to complete the system upgrade, which is implemented by the following steps:
Step S13a, when the power is turned off and restarted, and when the user's upgrade instruction is received, the version number of the system file saved in the first memory partition and the second memory partition is compared. In actual application, when the power is restarted, the system will Ask the user whether to upgrade, that is, whether to upgrade the dialog box, the user clicks to agree to upgrade, the system receives the user's upgrade instructions.
In step S13a, since the terminal device has completed the download of the first system file before the power is turned off, when the user's upgrade command is received after the power failure restart, the terminal device should read the first memory by the upgrade command. The version number of the system file saved in the body partition and the second memory partition, and the system file with the higher version model is selected as the system file for boot loading, and the system file loaded into the selection is directly guided to implement the system upgrade. The version model of the system file is written to the chunk header header file of the memory partition, and the boot loader can obtain the version model of the saved system file from the chunk header header file of the memory partition.
Step S13b, running a system file with a higher version (first system) File), complete the system upgrade.
Referring to FIG. 3, after the first system file is saved to the first memory partition and the memory partition that is not occupied in the second memory partition, the method specifically includes:
Step S12a, modifying the status flag bit corresponding to the memory partition in which the first system file is saved to the first state. The first state is used to identify the system file saved in the memory partition as the latest downloaded system file.
Step S13, that is, if the user upgrade command is received during the power-off restart, the first system file is executed to complete the system upgrade, which is specifically implemented by the following steps:
Step S130a: detecting, when the power is turned off, whether the status flag bit of the first memory partition or the second memory partition is in the first state. When it is detected that the status flag bit of the first memory partition or the second memory partition is in the first state, the process proceeds to step S131a; when the first memory partition and the second memory partition are in the status flag bit If it is not the first state, the process proceeds to step S14.
For example, in step S130a, when the power is turned off, the boot loader needs to check the status value of the status flag bit corresponding to the first memory partition and the second memory partition, if one of the two memory partitions When the status flag bit of the first state is the first state, it indicates that the system file saved by the memory partition is the latest downloaded system file, that is, the system file for upgrading. At this point, you need to ask the user whether to upgrade the system. If the status flag bits of the two memory partitions are not in the first state, there is no newly downloaded system file in the memory. At this point, the preset will run the previous one. System file that runs once. The boot loader is in the second state by recording the status flag corresponding to the memory partition, indicating that the saved system file has been run last time, that is, before the power is cut off. Therefore, the bootloader only needs to determine if the status flag bit in the two memory partitions is in the second state to determine if its saved system file has been run before powering down.
Step S131a, comparing the version models of the system files saved by the first memory partition and the second memory partition.
Specifically, when the status flag bit of one of the first memory partition or the second memory partition is detected as the first state, it indicates that the terminal device has downloaded and installed the system upgrade file. At this time, by prompting the prompt information dialog box to generate a prompt to prompt the user to upgrade to the first system file, for example, the prompt information dialog box includes "agree" and "cancel", according to the user's operation on the information dialog box. Whether to receive the upgrade instruction. For example, when it is detected that the user clicks or touches the above "agree", that is, receives the upgrade command, the version model of the system file saved by comparing the first memory partition and the second memory partition is executed.
Step S132a, running a system file with a higher version of the version to complete the system upgrade.
In step S14, the system file (second system file) that is operated before the power failure is operated.
When the power is restarted, if the upgrade command is not received, the system file running before the power failure is directly operated; and when the status flag bits of the first memory partition and the second memory partition are not the first state, Run the system file that was run before the power failure.
Referring to FIG. 4, step S131a, that is, before comparing the version models of the system files saved by the first memory partition and the second memory partition, the method further includes:
In step S15, it is verified whether the first system file stored in the first memory partition or the second memory partition is legal. If yes, the process proceeds to step S131a. Otherwise, it proceeds to step S14.
In step S15, the system file is checked before comparing the system file version models, and it is determined whether the system file saved in the first memory partition and the second memory partition is correct and legal, in order to verify the newly downloaded system file. Whether the version of the (first system file) is suitable for the terminal device to prevent the system from crashing after loading and not suitable for the terminal device. Therefore, by setting step S15, the terminal device can be forced to not upgrade to the new version when the downloaded first system file fails, and the original, lower version of the system file can be used.
Further, when the terminal device completes the system upgrade, the state flag bit corresponding to the memory partition of the first system file is also modified to a second state; wherein the second state is used to identify the memory partition. The saved system file has been run.
Further, if the downloading of the first system file is not completed when the terminal device is powered off, the memory partition occupied by the currently running system file is recorded as a preset partition, and the download process of the first system file is recorded. When the working state is restored (when restarting), the system file saved in the preset partition is run, and the first system file is continuously downloaded according to the recorded downloading process.
The following describes the working principle of the system file in the terminal device loading memory.
Please refer to FIG. 5 at the same time, which is a schematic structural diagram of a memory according to an embodiment of the present invention. The AP Bin Code area is the first memory partition, and the AP Bin Code area 2 is the second memory partition. As described above, when the first system file is saved to the free partition, the chunk header header file of the free partition is written with the version number and the check code as the identifier.
Further, the Bank1-PM area is used to record and save the memory partition used by the terminal device before the power-off restart. In the case of a non-power-off restart (warm-on), the control circuitry (not shown) of the terminal device selects to start the terminal device from the system file saved in the last used memory partition recorded in Bank1-PM.
The Bank0-Sboot area is used to save the boot loader. The boot loader is used to verify the data stored in the first memory partition and the second memory partition of the memory when the terminal device is booted. Loading the system file saved in the first memory partition or the second memory partition to complete the startup of the terminal device. Specifically, the boot loader detects the status flag bits of the first memory partition and the second memory partition, verifies the legality of the saved system file, compares the version of the system file, and detects the user's upgrade instruction. And combined with the detection results of the above four conditions, the selected memory partition is finally determined. Further, the detection priority order, the combination manner, and the like of the four conditions may be set, so that the boot loader may perform one or more conditions on the terminal device each time the power is turned off and restarted. Detect and judge, select the boot memory partition.
Further, the instruction file format of the memory boot loader is as follows: ab cde fgh
The data recorded by the first two digits (ab) is used to indicate the selected memory partition. For example, if the data of the first two meta-records is 01, the selected memory partition is the first storage partition, and the first two digits. If the recorded data is 10, the selected memory partition is the second memory partition. Further, the data recorded by the first bit (a) may also be used to represent the selected memory partition. For example, 10 indicates that the selected memory partition is the first storage partition, and 00 indicates that the selected memory partition is the second memory partition. .
The data recorded by the middle three bits (cde) and the last three bits (fgh) are respectively used to indicate the states of the first memory partition and the second memory partition (or the second memory partition and the first memory partition), The status includes: the first status (whether the upgrade is successful), and the second status (whether it is running before power off). For example, when cde is 000 respectively, it indicates that the first memory partition is upgraded successfully, and the first system file is saved; when fgh is 111 respectively, it indicates that the second memory partition is not upgraded, and runs before power off.
For example, before the power is cut off, the terminal device downloads and saves the first system file in the first memory partition, so the first system file is the latest downloaded system file, and the second memory partition is saved in the running. The second system file. Then, the bootloader command data at this time is 10 000 111. Boot load after power off and restart After the program determines the system upgrade by the verification as described above, and selects to run the first system file in the first memory partition to complete the system upgrade, the instruction data is modified to 01 111 111. After the terminal device does not download the new system file after this startup, the command data of the boot loader remains unchanged. When the power is turned off again, the boot loader directly runs the first system file in the first memory partition according to the instruction data 01 111 111.
Please refer to FIG. 6 , which is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device in this embodiment may be a television, a personal computer, a tablet computer, a notebook computer, a smart phone, or the like. The terminal device 20 includes a receiver 21, a processor 22, a transmitter 23, a memory 24, and a bus bar 26.
The receiver 21 is configured to receive a first system file when the terminal device is in operation, wherein the event of receiving the first system file does not affect the current working state of the terminal device.
The processor 22 controls the operation of the terminal device 20, and the processor 22 can also be a CPU (Central Processing Unit). The processor 22 may be an integrated circuit chip with signal processing capabilities. The processor 22 can also be a general purpose processor, a digital signal processor (DSP), an application integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic device, a discrete gate, or a transistor logic device. , separate hardware components. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
The transmitter 23 is for transmitting data.
The various components of the terminal device 20 are coupled by a busbar 26 The bus bar 26 may include a power bus, a control bus, and a status signal bus, in addition to the data bus. However, for the sake of clarity, various bus bars are labeled as bus bars 26 in the figure.
The memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set: Operational instructions: including various operational instructions for implementing various operations.
Operating System: Includes a variety of system programs for implementing a variety of basic services and handling hardware-based tasks.
In the embodiment of the present invention, the memory 24 includes at least a first memory partition and a second memory partition for respectively saving a system file. The two memory partitions are independent of each other and are not affected by each other, and are respectively used to save the first system file or the second system file.
Further, the memory is equally divided into a first memory partition and a second memory partition, that is, the storage spaces of the two memory partitions are the same. Of course, the manner in which the first memory partition and the second memory partition are divided is not limited to this.
Further, the processor 22 performs an operation by calling an operation instruction stored in the memory (which can be stored in the operating system): the processor 22 determines the current when the receiver 21 receives the first system file. Whether the memory partition occupied by the running second system file is the first memory partition or the second memory partition, and the received first system file is saved to the first memory partition, and the second memory partition is currently not occupied. The memory partition; and if the user receives the upgrade command when the power is turned off, the first system file is run, and the completion is completed. System Upgrade.
The event of receiving the first system file does not affect the current working state of the terminal device 20. The first system file is a system upgrade file, and the version model is higher than the version model of the system file currently running by the terminal device.
Optionally, the processor 22 compares the version model of the system file saved by the first memory partition and the second memory partition when the power is restarted and when receiving the upgrade instruction of the user, and runs The system file with a higher version number completes the system upgrade.
Since the terminal device 20 has completed the downloading of the first system file before the power is turned off, the processor 22 reads the first memory partition and the second memory respectively when receiving the user's upgrade command after the power-off restart. The version number of the system file saved in the volume partition, and select the system file with the higher version model as the boot load system file, directly boot the system file loaded into the selection to realize the system upgrade. The version model of the system file is written to the chunk header header file of the memory partition, and the processor 22 can obtain the version model of the saved system file from the chunk header header file of the memory partition.
Optionally, the processor 22 saves the memory partition after storing the received first system file to a memory partition that is not currently occupied in the first memory partition and the second memory partition. The status flag bit is modified to the first state; wherein the first state is used to identify the system file saved in the memory partition as the latest downloaded system file.
Optionally, the processor 22 detects the first memory when the power is turned off and restarted. Whether the status flag bit of the partition or the second memory partition is the first state; when detecting that the status flag bit of one of the first memory partition or the second memory partition is the first state, performing the above comparison The version of the system file saved by the first memory partition and the second memory partition, and running a system file with a higher version, completing the system upgrade step. When the status flag bit of the first memory partition and the second memory partition are not the first state, the system file (second system file) running before the power failure is run.
Specifically, when the power is restarted, the status value of the status flag bit corresponding to the first memory partition and the second memory partition needs to be checked, if the status flag bit of one of the two memory partitions is the first In a state, the system file saved by the memory partition is a newly downloaded system file, that is, the newly upgraded system file. At this point, you need to ask the user whether to upgrade the system. If the status flag bits of the two memory partitions are not in the first state, there is no newly downloaded system file in the memory. At this point, the system file that was last run will be preset. Wherein, if the status flag corresponding to the memory partition is the second state, it indicates that the saved system file has been run last time, that is, it is running before the power is cut off. Therefore, the bootloader only needs to determine if the status flag bit in the two memory partitions is in the second state to determine if its saved system file has been run before powering down.
Optionally, the processor 22 runs the second system file that is operated before the power failure when the power failure is restarted and the user's upgrade finger is not received.
Optionally, the processor 22 verifies whether the first system file saved in the first memory partition or the second memory partition is legal.
When the first system file saved in the first memory partition or the second memory partition is legal, the processor 22 compares the version models of the system files saved by the first memory partition and the second memory partition, the processor 22 running version of the higher model system file. When the first system file stored in the first memory partition or the second memory partition is invalid, the processor 22 runs a system file (second system file) that was operated before the power-off.
Performing verification of the system file before comparing the system file version models, the processor 22 determines whether the system file saved in the first memory partition and the second memory partition is correct and legal, in order to verify the newly downloaded system file ( Whether the version of the first system file is suitable for the terminal device to prevent the system from crashing after loading and not suitable for the terminal device. Therefore, by legal verification, the terminal device can be forced to not upgrade to the new version when the downloaded first system file fails, and the original, lower version of the system file is continued to be used.
Optionally, when the terminal device completes the system upgrade, the processor 22 further modifies the status flag bit of the memory partition of the first system file to the second state after completing the upgrade. The second state is used to identify that the system file saved in the memory partition has been run.
Optionally, if the downloading of the first system file is not completed when the terminal device is powered off, the processor 22 also records the memory partition occupied by the currently running system file as a preset partition, and records the download of the first system file. process. When the working state is restored, the system file saved in the preset partition is run, and the first system file is continuously downloaded according to the recorded downloading process.
The terminal device and the system upgrade method thereof are provided, and the memory is divided into a first memory partition and a second memory partition in advance, and the system file loaded when the terminal device works is stored in one of the memory partitions, and the background is The system file that receives the upgrade is saved in another memory partition, and the two do not affect each other, so that the download and installation of the upgraded system file is completed while the terminal device is working, but the user is not affected. After the next power-off, after the user receives the instruction to agree to the upgrade, the upgraded system file can be directly run, and the user is not required to wait for the download and installation, thereby speeding up the system upgrade process and improving the user experience. Further, the two memory partitions save different versions of the system files, and may also be supported by the other system file when one of the system files is damaged, thereby improving the system stability of the terminal device.
In conclusion, the present invention has been disclosed in the above preferred embodiments, and is not intended to limit the present invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.
S10, S11, S12, S13‧‧‧ process steps

Claims (14)

  1. A system upgrade method for a terminal device, the terminal device comprising a first memory partition and a second memory partition that are at least divided into a system file for saving, the method comprising: receiving a first a system file; wherein the event of receiving the first system file does not affect the current working state of the terminal device; determining whether the memory partition occupied by the currently running second system file is the first memory partition or the a second memory partition; storing the received first system file to the first memory partition, the memory partition currently unoccupied in the second memory partition; and receiving the user when the power is restarted The upgrade command runs the first system file to complete the system upgrade.
  2. The system upgrade method of the terminal device according to the first aspect of the invention, wherein, if the user upgrade command is received during the power-off restart, the first system file is run, and the step of completing the system upgrade includes: powering off Rebooting and when receiving the user's upgrade command, comparing the version number of the system file saved by the first memory partition and the second memory partition; and running a system file with a higher version of the version to complete the system upgrade .
  3. The system upgrade method of the terminal device according to the first aspect of the invention, further comprising: if the upgrade instruction of the user is not received when the power is turned off and restarted, before the power failure The second system file that is running.
  4. The system upgrade method of the terminal device of claim 1, further comprising: saving the received first system file to the first memory partition and the second memory partition After the occupied memory partition, the status flag bit corresponding to the memory partition is modified to the first state; wherein the first state is used to identify the system file saved in the memory partition as the latest downloaded system file.
  5. The system upgrade method of the terminal device according to the fourth aspect of the invention, wherein, if the user upgrade command is received during the power-off restart, the first system file is executed, and the step of completing the system upgrade includes: Detecting whether the status flag bit of the first memory partition or the second memory partition is in a first state when the power is turned off; when detecting the first memory partition or the second memory partition When the status flag bit is in the first state, the version model of the system file saved by the first memory partition and the second memory partition is compared; and the system file with the higher running version model is completed, and the system upgrade is completed.
  6. The system upgrade method of the terminal device according to claim 1, wherein, if the upgrade instruction of the user is received during the power failure restart, the first system file is run to complete the system upgrade step. The method further includes: verifying whether the first system file saved in the first memory partition or the second memory partition is legal.
  7. The system upgrade party of the terminal device as described in claim 1 of the patent application scope The method further includes: after completing the upgrading, modifying a status flag bit corresponding to the memory partition storing the first system file to a second state; wherein the second state is used to identify the memory The system file saved in the volume partition has been run.
  8. The system upgrade method of the terminal device according to the first aspect of the invention, wherein, after the step of receiving the first system file sent by the server, the method further comprises: when the terminal device is powered off, Recording the memory partition occupied by the currently running system file as a preset partition, and recording the download process of the first system file; running the system file saved in the preset partition when restarting, and continuing according to the recorded download process Download the first system file.
  9. A terminal device, wherein the terminal device includes: a receiver, configured to receive a first system file when the terminal device is in operation, wherein receiving the event of the first system file does not affect the current terminal device a working state; a memory comprising at least a first memory partition and a second memory partition, respectively for storing a first system file or a second system file; a processor for performing the following steps: determining Whether the memory partition occupied by the currently running second system file is the first memory partition or the second memory partition; storing the received first system file to the first memory partition and the second a memory partition that is currently unoccupied in the memory partition; If the user's upgrade command is received during the power-off restart, the first system file is run to complete the system upgrade.
  10. The terminal device of claim 9, wherein the processor is further configured to compare the first memory partition and the first when the power is restarted and when an upgrade instruction of the user is received The version number of the system file saved in the second memory partition, and the system file with the higher version of the version is run to complete the system upgrade.
  11. The terminal device of claim 9, wherein the processor is further configured to: if the upgrade instruction of the user is not received when the power is turned off and restarted, run the second system file that is operated before the power failure .
  12. The terminal device of claim 9, wherein the processor is further configured to: save the received first system file to the first memory partition and the second memory partition After the occupied memory is partitioned, the status flag bit corresponding to the memory partition is modified to the first state; wherein the first state is used to identify the system file saved in the memory partition as the latest downloaded system file .
  13. The terminal device of claim 12, wherein the processor is further configured to: detect, when the power is turned off, whether the status flag bit of the first memory partition and the second memory partition is a first state; when the first memory partition or the second memory partition is detected When the state flag bit is in the first state, the version model of the system file saved by the first memory partition and the second memory partition is compared, and a system file with a higher version model is run to complete the system upgrade.
  14. The terminal device of claim 9, wherein the terminal device is a television.
TW105107797A 2016-03-14 2016-03-14 Terminal device and system upgrading method thereof TWI575459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105107797A TWI575459B (en) 2016-03-14 2016-03-14 Terminal device and system upgrading method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105107797A TWI575459B (en) 2016-03-14 2016-03-14 Terminal device and system upgrading method thereof

Publications (2)

Publication Number Publication Date
TWI575459B true TWI575459B (en) 2017-03-21
TW201732585A TW201732585A (en) 2017-09-16

Family

ID=58766383

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105107797A TWI575459B (en) 2016-03-14 2016-03-14 Terminal device and system upgrading method thereof

Country Status (1)

Country Link
TW (1) TWI575459B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6308265B1 (en) * 1998-09-30 2001-10-23 Phoenix Technologies Ltd. Protection of boot block code while allowing write accesses to the boot block
TWI220962B (en) * 2003-01-20 2004-09-11 Mediatek Inc Firmware updating method and related apparatus for checking content of replacing firmware before firmware updating
TWI460657B (en) * 2008-09-05 2014-11-11 Asustek Comp Inc Method for updating basic input/output system and method for repairing thereof
TWI489390B (en) * 2008-09-10 2015-06-21 Inventec Appliances Corp Electronic apparatus and system updating method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6308265B1 (en) * 1998-09-30 2001-10-23 Phoenix Technologies Ltd. Protection of boot block code while allowing write accesses to the boot block
TWI220962B (en) * 2003-01-20 2004-09-11 Mediatek Inc Firmware updating method and related apparatus for checking content of replacing firmware before firmware updating
TWI460657B (en) * 2008-09-05 2014-11-11 Asustek Comp Inc Method for updating basic input/output system and method for repairing thereof
TWI489390B (en) * 2008-09-10 2015-06-21 Inventec Appliances Corp Electronic apparatus and system updating method thereof

Also Published As

Publication number Publication date
TW201732585A (en) 2017-09-16

Similar Documents

Publication Publication Date Title
US9292277B2 (en) Methods and devices for updating firmware of a component using a firmware update application
US7275153B2 (en) Booting and boot code update system using boot strapper code to select between a loader and a duplicate backup loader
EP2831722B1 (en) Method and system for verifying proper operation of a computing device after a system change
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
US8136108B2 (en) Updating firmware with multiple processors
US20110283274A1 (en) Firmware image update and management
US20140310698A1 (en) Apparatus and method for upgrading firmware of mobile terminal
US20110320794A1 (en) Flash System And Method For Updating The Flash System
TWI533216B (en) Operating system updating method
EP2076834A1 (en) Program upgrade system and method for ota-capable mobile terminal
CN103106092A (en) System software updating method and device in terminal appliance
CN105760200A (en) Terminal device and system updating method thereof
WO2018024198A1 (en) Application upgrade method and system for set-top box, and set-top box
US10437580B2 (en) Software updating methods and systems
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN101807152A (en) Basic output and input system for self verification of selection read only memory and verification method thereof
JP2009169524A (en) Network system for home appliance
TWI575459B (en) Terminal device and system upgrading method thereof
KR100832269B1 (en) Program update method and system for wireless communication terminal
KR20120030573A (en) A method, apparatus and computer program for loading files during a boot-up process
KR100588199B1 (en) Method for recovering download mode in program download fail state of portable terminal, and portable terminal employing it
JP5849449B2 (en) Information processing apparatus, control method therefor, and program
KR20120062536A (en) Update method for multimedia system in a vehicle and system thereof
TW202030602A (en) The method and system of bios recovery and update
CN113064608A (en) OTA (over the air) upgrading method, device, equipment and medium

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees