CN107229501B - Set top box partition change upgrading method and system - Google Patents

Set top box partition change upgrading method and system Download PDF

Info

Publication number
CN107229501B
CN107229501B CN201710521658.0A CN201710521658A CN107229501B CN 107229501 B CN107229501 B CN 107229501B CN 201710521658 A CN201710521658 A CN 201710521658A CN 107229501 B CN107229501 B CN 107229501B
Authority
CN
China
Prior art keywords
partition
data
mirror image
top box
image
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.)
Expired - Fee Related
Application number
CN201710521658.0A
Other languages
Chinese (zh)
Other versions
CN107229501A (en
Inventor
陈建辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance Co Ltd
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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201710521658.0A priority Critical patent/CN107229501B/en
Publication of CN107229501A publication Critical patent/CN107229501A/en
Priority to PCT/CN2018/087499 priority patent/WO2019001165A1/en
Application granted granted Critical
Publication of CN107229501B publication Critical patent/CN107229501B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/66Updates of program code stored in read-only memory [ROM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to a method and a system for updating partition change of a set top box, which firstly determine whether a partition is changed when updating is carried out, if not, the partition is directly replaced to complete the updating, if so, the changed partition is obtained and the data in the changed partition is stored in a set top box memory or an external storage device, so that the important data in the changed partition is ensured not to be replaced by covering, and the serious loss caused by the loss of the important data is avoided.

Description

Set top box partition change upgrading method and system
Technical Field
The invention relates to the field of digital televisions, in particular to a method and a system for changing and upgrading partitions of a set top box.
Background
As with other digital devices, the set-top box system and all data is stored in a flash. According to different purposes, the set-top box divides the flash into different areas, namely partitions, and data corresponding to the different partitions are written in a mirror image mode.
Loader upgrade mainly falls into two categories: USB upgrade and OTA upgrade. The USB upgrading is to pack the upgrading mirror image into a compression upgrading packet, put the compression upgrading packet under a certain specified directory of the USB flash disk and carry out upgrading through manual operation. The OTA upgrading is to convert the produced upgrading packet into upgrading stream and carry out remote upgrading through a signal line or a network cable. In the upgrading process, a new system is generally completely replaced with an old system, that is, the data of the corresponding partition in the flash is replaced with the image data in the upgrade package or the upgrade stream according to the information in the partition table.
The partition division in the flash is generally determined in the early development stage, and once the partition is determined, the partition division is difficult to change. Since changing partitions affects the storage of other partition data, system problems are easily caused. Especially for the delivered set-top box, the partition change requires that the partition information of the set-top box and all the affected partition data need to be updated again, which may cause some important data such as device information or authorization information to be lost, thereby causing serious loss.
The partitions that have already been partitioned are generally not repartitioned, especially for already mass-produced partitions. However, in practice, some set-top boxes already in mass production must be subdivided into partitions. For example, the total size of the originally divided partitions exceeds the capacity of a new flash due to the replacement of flash models or manufacturers, so that the exceeding partitions cannot be mirrored, and system problems occur; if the size of the system backup partition is 400M, the designed upgrade package size is 150M, and a general system backup partition needs to store at least one backup upgrade package and a temporary upgrade package in the OTA upgrade process, the 400M partition can meet the original design requirement. However, as the customer demand is more and more, after a plurality of version updates, the upgrade package is changed from 150M to 200M, which results in that the system backup partition of 400M cannot meet the demand. Therefore, the partitioned partitions must be re-partitioned and changed, which may cause other partition data to be affected, and may cause some important data such as device information or authorization information to be lost, resulting in serious loss.
Disclosure of Invention
In view of this, it is necessary to provide a method and a system for changing and upgrading partitions of a set top box, aiming at the problem that important data is lost and serious loss is caused when the set top box flash is partitioned again.
The invention provides a method for changing and upgrading the subareas of a set top box, which comprises the following steps:
s10: when the set-top box is upgraded, judging whether the partition of the flash of the set-top box is changed;
s20: if the partition is not changed, upgrading by adopting a direct mirror image replacement mode, and directly replacing the mirror image data in the corresponding original partition with the upgraded data mirror image;
s30: if the partition is changed, judging whether the upgrade data mirror image is the mirror image of the last partition, if so, directly writing the upgrade data mirror image into the flash;
s40: if the updated data mirror image is not the mirror image of the last partition, acquiring the partition name, the partition first address and the partition size of the partition corresponding to the updated data mirror image, calculating the address range covered by the partition corresponding to the updated data mirror image in the original partition, and calculating the number and the total size of all the mirror images involved in the covered address range;
s50: obtaining the size of the residual space of the memory of the set top box, and if the total size of all related images is smaller than the residual space of the memory of the set top box, storing all related images into the memory space of the set top box; if the image is larger than the left space of the memory of the set-top box, all the image parts are stored in the external storage device.
In one embodiment, the step S10 specifically includes: setting a partition change mark in the upgrading data in advance, if the partition change mark is 0, the partition of the flash is not changed, if the partition change mark is 1, the partition of the flash is changed, and judging by detecting the partition change mark in the upgrading data.
In one embodiment, the step S50 specifically includes: when the data is stored by means of the external storage device, the data is stored from the last mirror image according to the sequence of the mirror image data until the total size of the remaining mirror image data is smaller than the remaining space of the memory of the set-top box, and the remaining mirror image data is stored in the memory of the set-top box.
In one embodiment, the step S50 specifically includes: the important mirror image data is preferentially stored in the memory of the set top box, and when the mirror image data is stored by means of the external storage equipment, if a plurality of external storage equipment exist, the external storage equipment with large storage space is preferentially selected for storage.
In one embodiment thereof, the method further comprises: obtaining the next upgrading data mirror image for upgrading; searching an upgrade data mirror image from an upgrade package or an upgrade stream, if the upgrade data mirror image does not exist, searching the upgrade data mirror image from a set top box memory, and if the upgrade data mirror image does not exist in the set top box memory, searching the upgrade data mirror image from an external storage device; and if the next upgrading data mirror image exists in the upgrading stream and also exists in the set top box memory or the external storage device, deleting the mirror image in the set top box memory or the external storage device.
The invention provides a set-top box partition changing and upgrading system, which comprises:
the partition change judging unit is used for judging whether the partition of the set top box flash is changed or not when the set top box is upgraded;
the upgrading unit is directly replaced, if the partition is not changed, upgrading is carried out in a direct mirror image replacing mode, and the mirror image data in the corresponding original partition is directly replaced by the upgraded data mirror image;
the image storage upgrading unit judges whether the upgraded data image is the image of the last partition or not if the partitions are changed, and directly writes the upgraded data image into the flash if the upgraded data image is the image of the last partition;
if the updated data mirror image is not the mirror image of the last partition, the mirror image storage and updating unit acquires the partition name, the partition head address and the partition size of the partition corresponding to the updated data mirror image, calculates the address range covered by the partition corresponding to the updated data mirror image in the original partition, and calculates the number and the total size of all the mirror images involved in the covered address range;
the mirror image storage upgrading unit obtains the size of the residual space of the set top box memory, and if the total size of all the related mirror images is smaller than the residual space of the set top box memory, all the related mirror images are stored in the set top box memory space; if the image is larger than the left space of the memory of the set-top box, all the image parts are stored in the external storage device.
In one embodiment, a partition change flag is set in the upgrade data in advance, if the partition change flag is 0, the partition of the flash is not changed, and if the partition change flag is 1, the partition of the flash is changed, and the partition change determination unit determines by detecting the partition change flag in the upgrade data.
In one embodiment, when the storage is performed by using an external storage device, the image storage upgrading unit starts to store the last image according to the order of the image data until the total size of the remaining image data is smaller than the remaining space of the memory of the set-top box, and stores the remaining image data into the memory of the set-top box.
In one embodiment, the image saving and upgrading unit preferentially stores important image data in a memory of the set top box, and preferentially selects an external storage device with a large storage space for storage if a plurality of external storage devices exist when the important image data is stored by the external storage device.
In one embodiment, the system further includes a mirror image searching unit, which obtains a next upgrade data mirror image for upgrading;
the image searching unit preferentially searches the upgrade data image from the upgrade package or the upgrade stream, searches the upgrade data image from the set-top box memory if the upgrade data image does not exist, and searches the upgrade data image from the external storage device if the upgrade data image does not exist; and if the next upgrading data mirror image exists in the upgrading stream and also exists in the set top box memory or the external storage device, deleting the mirror image in the set top box memory or the external storage device.
The method and the system for updating the partition change of the set top box firstly determine whether the partition is changed or not when the update is carried out, if not, the update is directly completed by replacing, if so, the changed partition is obtained and the data in the changed partition is stored in the memory of the set top box or an external storage device, so that the important data in the changed partition is ensured not to be replaced by covering, and the serious loss caused by the loss of the important data is avoided.
Drawings
FIG. 1 is a flow diagram of a set top box partition change upgrade method in one embodiment;
FIG. 2 is a block diagram of a set-top box partition change upgrade system in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a flowchart of a method for updating partition change of a set-top box in an embodiment, as shown in fig. 1, the method includes the following steps:
step S10: and when the set-top box is upgraded, judging whether the partition of the flash of the set-top box is changed.
When the set-top box is subjected to Loader upgrading, the flash partition of the set-top box may be changed, so that whether the flash partition of the set-top box is changed or not is judged before each upgrading. The method comprises the steps of setting a partition change mark in advance in the upgrade data, if the partition change mark is 0, the partition of the flash is not changed, if the partition change mark is 1, the partition of the flash is changed, and judging through detecting the partition change mark in the upgrade data.
Step S20: if the partition is not changed, upgrading is carried out by adopting a direct mirror image replacement mode, and the mirror image data in the corresponding original partition is directly replaced by the upgraded data mirror image.
If the partition change flag in the upgrade data is 0, the partition of the flash is not changed, and the partition is not changed, only the mirror image data in the corresponding partition needs to be directly upgraded, so that the upgrade can be completed by directly replacing the mirror image data in the corresponding original partition with the upgrade data mirror image in a direct mirror image replacement mode.
Step S30: if the partition is changed, judging whether the upgrade data mirror image is the mirror image of the last partition, and if so, directly writing the upgrade data mirror image into the flash.
If the partition change flag in the upgrade data is 1, the partition of the flash is changed, and at this time, if the upgrade data mirror image is not the mirror image of the last partition, if the upgrade is performed by adopting a direct replacement mode, the data of other partitions, especially important data, will be covered, which will cause a significant problem in the upgrade, so the upgrade cannot be performed by adopting a direct replacement mode. Therefore, the step is firstly judged, and if the last partition is judged, the upgraded data mirror image is directly written, so that the previous partition is not influenced.
Step S40: if the updated data mirror image is not the mirror image of the last partition, the partition name, the partition first address and the partition size of the partition corresponding to the updated data mirror image are obtained, the address range covered by the partition corresponding to the updated data mirror image in the original partition is calculated, and the number and the total size of all the mirror images involved in the covered address range are calculated.
If the upgrade data mirror image is not the mirror image of the last partition, it is necessary to acquire the partition corresponding to the upgrade data mirror image to change which partitions in the original partition, and the original mirror image data in the changed partition needs to be stored to avoid loss caused by covering important data after being changed.
Step S50: obtaining the size of the residual space of the memory of the set top box, and if the total size of all related images is smaller than the residual space of the memory of the set top box, storing all related images into the memory space of the set top box; if the image is larger than the left space of the memory of the set-top box, all the image parts are stored in the external storage device.
If the upgrade data mirror image is not the mirror image of the last partition, the partition corresponding to the upgrade data mirror image needs to be acquired to change which partitions in the original partition, the original mirror image data in the changed partition needs to be stored, the mirror image data is stored, firstly, the mirror image data is selected to be stored in a memory of the set top box, but the mirror image data is often overlarge, the memory space of the set top box is insufficient, the size of the residual space of the memory of the set top box needs to be calculated firstly, then, the mirror image data is compared with the mirror image data, and if the total size of the mirror image is smaller than the residual space of the memory of the set top box, the mirror; if the space is larger than the space left in the set-top box memory, the storage is carried out by means of an external storage device.
In order to preferentially use the residual space of the memory of the set-top box, when the storage is carried out by means of an external storage device, the storage is started from the mirror image with the first last mirror image according to the sequence of the mirror image data until the total size of the residual mirror image data is smaller than the residual space of the memory of the set-top box, and the residual mirror image data is stored in the memory of the set-top box.
In order to protect important data so as to be used quickly, important mirror image data is preferentially stored in a memory of the set top box. When the storage is performed by the external storage device, if a plurality of external storage devices exist, the external storage device with a large storage space is preferentially selected for storage.
After the last upgrading data mirror image is written into the partition, the method obtains the next upgrading data mirror image for upgrading. In the process of acquiring the next upgrade data image, the next upgrade data image may exist in an upgrade package or an upgrade stream, or may have been stored in a memory or an external storage device. The step preferably searches the upgrade data mirror image from the upgrade package or the upgrade stream, and then searches the upgrade data mirror image from the set-top box memory if the upgrade data mirror image does not exist, and then searches the upgrade data mirror image from the external storage device if the upgrade data mirror image does not exist. And if the next upgrading data mirror image exists in the upgrading stream and also exists in the set top box memory or the external storage device, deleting the mirror image in the set top box memory or the external storage device.
The method for updating the partition change of the set top box firstly determines whether the partition is changed or not when the partition is updated, if not, the partition is directly replaced to finish the update, if so, the changed partition is obtained and the data in the changed partition is stored in the memory of the set top box or an external storage device, so that the important data in the changed partition is ensured not to be replaced by covering, and the serious loss caused by the loss of the important data is avoided.
The present invention also provides a system for changing and upgrading partitions of a set-top box, as shown in fig. 2, the system includes:
the partition change determining unit 100 determines whether the partition of the flash of the set-top box is changed when the set-top box is upgraded.
When the set-top box performs Loader upgrade, there may be a situation that the flash partition of the set-top box is changed, so the partition change determining unit 100 first determines whether the flash partition of the set-top box is changed before each upgrade. A partition change flag is set in advance in the upgrade data, the partition of the flash is not changed if the partition change flag is 0, the partition of the flash is changed if the partition change flag is 1, and the partition change determination unit 100 determines by detecting the partition change flag in the upgrade data.
And directly replacing the upgrading unit 200, if the partition is not changed, upgrading by adopting a direct mirror image replacing mode, and directly replacing the mirror image data in the corresponding original partition with the upgraded data mirror image.
If the partition change flag in the upgrade data is 0, the partition of the flash is not changed, and the partition is not changed, only the mirror image data in the corresponding partition needs to be directly upgraded, so that the direct replacement upgrade unit 200 directly replaces the upgrade data mirror image with the mirror image data in the corresponding original partition in a direct mirror image replacement manner, and thus the upgrade can be completed.
And the image saving upgrading unit 300 judges whether the upgraded data image is the image of the last partition if the partition is changed, and directly writes the upgraded data image into the flash if the upgraded data image is the image of the last partition. If the updated data image is not the image of the last partition, the image storage and upgrade unit 300 obtains the partition name, the partition first address and the partition size of the partition corresponding to the updated data image, calculates the address range covered by the partition corresponding to the updated data image in the original partition, and calculates the number and the total size of all images involved in the covered address range. The mirror image storing and upgrading unit 300 obtains the size of the residual space of the set-top box memory, and if the total size of all the related mirror images is smaller than the residual space of the set-top box memory, all the related mirror images are stored in the set-top box memory space; if the image is larger than the left space of the memory of the set-top box, all the image parts are stored in the external storage device.
If the partition change flag in the upgrade data is 1, the partition of the flash is changed, and at this time, if the upgrade data mirror image is not the mirror image of the last partition, if the upgrade is performed by adopting a direct replacement mode, the data of other partitions, especially important data, will be covered, which will cause a significant problem in the upgrade, so the upgrade cannot be performed by adopting a direct replacement mode. Therefore, the image saving and upgrading unit 300 firstly determines whether the image is to be written into the upgraded data image directly if the image is to be written into the last partition, and the previous partition is not affected.
If the upgrade data mirror image is not the mirror image of the last partition, the mirror image saving and upgrading unit 300 needs to acquire the partition corresponding to the upgrade data mirror image to change which partition in the original partition, and the original mirror image data in the changed partition needs to be saved to avoid loss caused by the fact that important data is covered and lost after the data is changed.
If the upgrade data mirror image is not the mirror image of the last partition, at this time, the mirror image storage and upgrade unit 300 needs to acquire the partition corresponding to the upgrade data mirror image to change which partition in the original partition, the original mirror image data in the changed partition needs to be stored, the mirror image data is stored and is firstly selected to be stored in the memory of the set top box, but the mirror image data is often overlarge, the memory space of the set top box is insufficient, the mirror image storage and upgrade unit 300 needs to calculate the size of the residual space of the memory of the set top box firstly and then compares the size with the mirror image data, and if the total size of the mirror image is smaller than the residual space of the memory of the set top box, the mirror image; if the space is larger than the space left in the set-top box memory, the storage is carried out by means of an external storage device.
In order to preferentially use the remaining space of the memory of the set-top box, when the storage is performed by using the external storage device, the image storage and upgrade unit 300 starts to store the image data from the last image according to the sequence of the image data until the total size of the remaining image data is smaller than the remaining space of the memory of the set-top box, and stores the remaining image data in the memory of the set-top box.
To protect important data for fast usage, the image saving upgrade unit 300 preferentially stores the important image data in the memory of the set-top box.
And after the last upgrading data mirror image is written into the partition, the system acquires the next upgrading data mirror image for upgrading. In the process of acquiring the next upgrade data image, the next upgrade data image may exist in an upgrade package or an upgrade stream, or may have been stored in a memory or an external storage device. The system also comprises a mirror image searching unit which preferentially searches a mirror image from the upgrade package or the upgrade stream, searches the upgrade data mirror image from the memory of the set-top box if the upgrade data mirror image does not exist, and searches the upgrade data mirror image from the external storage device if the upgrade data mirror image does not exist. And if the next upgrading data mirror image exists in the upgrading stream and also exists in the set top box memory or the external storage device, deleting the mirror image in the set top box memory or the external storage device.
The set top box partition change upgrading system firstly determines whether a partition is changed or not when upgrading is carried out, if not, the partition is directly replaced to complete upgrading, if so, the changed partition is obtained, data in the changed partition is stored in a set top box memory or an external storage device, important data in the changed partition are guaranteed not to be replaced by covering, and therefore serious loss caused by important data loss is avoided.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for changing and upgrading partition of a set top box is characterized by comprising the following steps:
s10: when the set-top box is upgraded, judging whether the partition of the flash of the set-top box is changed;
s20: if the partition is not changed, upgrading by adopting a direct mirror image replacement mode, and directly replacing the mirror image data in the corresponding original partition with the upgraded data mirror image;
s30: if the partition is changed, judging whether the upgrade data mirror image is the mirror image of the last partition, if so, directly writing the upgrade data mirror image into the flash;
s40: if the updated data mirror image is not the mirror image of the last partition, acquiring the partition name, the partition first address and the partition size of the partition corresponding to the updated data mirror image, calculating the address range covered by the partition corresponding to the updated data mirror image in the original partition, and calculating the number and the total size of all the mirror images involved in the covered address range;
s50: obtaining the size of the residual space of the memory of the set top box, and if the total size of all related images is smaller than the residual space of the memory of the set top box, storing all related images into the memory space of the set top box; and if the total size of the mirror image data is larger than the residual space of the memory of the set top box, storing all the related mirror image parts to an external storage device, wherein when the external storage device is used for storing, the mirror image data is stored from the last mirror image in the sequence of the mirror image data until the total size of the residual mirror image data is smaller than the residual space of the memory of the set top box, and storing the residual mirror image data to the memory of the set top box.
2. The method for partition change and upgrade of set top box according to claim 1, wherein the step S10 specifically comprises: setting a partition change mark in the upgrading data in advance, if the partition change mark is 0, the partition of the flash is not changed, if the partition change mark is 1, the partition of the flash is changed, and judging by detecting the partition change mark in the upgrading data.
3. The method for partition change and upgrade of set top box according to claim 1, wherein the step S50 specifically comprises: the important mirror image data is preferentially stored in the memory of the set top box, and when the mirror image data is stored by means of the external storage equipment, if a plurality of external storage equipment exist, the external storage equipment with large storage space is preferentially selected for storage.
4. The method for set-top box partition change upgrade according to claim 3, further comprising: obtaining the next upgrading data mirror image for upgrading; searching an upgrade data mirror image from an upgrade package or an upgrade stream, if the upgrade data mirror image does not exist, searching the upgrade data mirror image from a set top box memory, and if the upgrade data mirror image does not exist in the set top box memory, searching the upgrade data mirror image from an external storage device; and if the next upgrading data mirror image exists in the upgrading stream and also exists in the set top box memory or the external storage device, deleting the mirror image in the set top box memory or the external storage device.
5. A set top box partition change upgrading system is characterized by comprising:
the partition change judging unit is used for judging whether the partition of the set top box flash is changed or not when the set top box is upgraded;
the upgrading unit is directly replaced, if the partition is not changed, upgrading is carried out in a direct mirror image replacing mode, and the mirror image data in the corresponding original partition is directly replaced by the upgraded data mirror image;
the image storage upgrading unit judges whether the upgraded data image is the image of the last partition or not if the partitions are changed, and directly writes the upgraded data image into the flash if the upgraded data image is the image of the last partition;
if the updated data mirror image is not the mirror image of the last partition, the mirror image storage and updating unit acquires the partition name, the partition head address and the partition size of the partition corresponding to the updated data mirror image, calculates the address range covered by the partition corresponding to the updated data mirror image in the original partition, and calculates the number and the total size of all the mirror images involved in the covered address range;
the mirror image storage upgrading unit obtains the size of the residual space of the set top box memory, and if the total size of all the related mirror images is smaller than the residual space of the set top box memory, all the related mirror images are stored in the set top box memory space; and if the total size of the image data is larger than the residual space of the memory of the set top box, storing all related image parts to an external storage device, wherein when the external storage device is used for storing, the image storage upgrading unit starts to store the image data from the last image according to the sequence of the image data until the total size of the residual image data is smaller than the residual space of the memory of the set top box, and storing the residual image data to the memory of the set top box.
6. The system for set-top box partition change upgrade according to claim 5, wherein a partition change flag is set in the upgrade data in advance, the partition of the flash is not changed if the partition change flag is 0, the partition of the flash is changed if the partition change flag is 1, and the partition change determination unit determines by detecting the partition change flag in the upgrade data.
7. The partition change upgrading system for set top boxes according to claim 5, wherein the image saving and upgrading unit preferentially stores important image data in a memory of the set top box, and preferentially selects an external storage device with a large storage space for storage if there are a plurality of external storage devices when the important image data is stored by the external storage device.
8. The partition-based change upgrading system for set-top boxes according to claim 5, further comprising a mirror image searching unit for obtaining a next upgrading data mirror image for upgrading;
the image searching unit preferentially searches the upgrade data image from the upgrade package or the upgrade stream, searches the upgrade data image from the set-top box memory if the upgrade data image does not exist, and searches the upgrade data image from the external storage device if the upgrade data image does not exist; and if the next upgrading data mirror image exists in the upgrading stream and also exists in the set top box memory or the external storage device, deleting the mirror image in the set top box memory or the external storage device.
CN201710521658.0A 2017-06-30 2017-06-30 Set top box partition change upgrading method and system Expired - Fee Related CN107229501B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710521658.0A CN107229501B (en) 2017-06-30 2017-06-30 Set top box partition change upgrading method and system
PCT/CN2018/087499 WO2019001165A1 (en) 2017-06-30 2018-05-18 Set-top box partition change and upgrading method and system, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710521658.0A CN107229501B (en) 2017-06-30 2017-06-30 Set top box partition change upgrading method and system

Publications (2)

Publication Number Publication Date
CN107229501A CN107229501A (en) 2017-10-03
CN107229501B true CN107229501B (en) 2020-04-03

Family

ID=59936252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710521658.0A Expired - Fee Related CN107229501B (en) 2017-06-30 2017-06-30 Set top box partition change upgrading method and system

Country Status (2)

Country Link
CN (1) CN107229501B (en)
WO (1) WO2019001165A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229501B (en) * 2017-06-30 2020-04-03 深圳市九洲电器有限公司 Set top box partition change upgrading method and system
CN107957878B (en) * 2017-12-06 2020-07-07 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Embedded equipment software online upgrading method based on storage resource redistribution
CN108984196A (en) * 2018-06-29 2018-12-11 深圳市九洲电器有限公司 A kind of method for upgrading system and Android TV system set-top box of Android TV system set-top box
CN109032649B (en) * 2018-07-23 2022-03-29 青岛海信移动通信技术股份有限公司 OTA (over the air) upgrading method, device, equipment and storage medium
CN113791811B (en) * 2021-08-02 2024-06-21 瑞芯微电子股份有限公司 Firmware upgrading method and storage device
CN114915854B (en) * 2022-05-18 2023-07-04 中山亿联智能科技有限公司 Method for constructing IPTV service based on external set top box equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419713A (en) * 2011-12-31 2012-04-18 四川长虹电器股份有限公司 Method for upgrading software of nandflash-based set-top box
CN102622250A (en) * 2012-03-07 2012-08-01 四川长虹电器股份有限公司 Software upgrading method for set top box supporting multi-flash equipment
CN104133709A (en) * 2014-08-06 2014-11-05 曙光信息产业(北京)有限公司 Upgrading method and device for embedded system
CN105224419A (en) * 2015-09-24 2016-01-06 青岛海信移动通信技术股份有限公司 User data mirror image loading method, device and terminal in a kind of Android system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090149200A1 (en) * 2007-12-10 2009-06-11 Symbol Technologies, Inc. System and method for device or system location optimization
CN102360298B (en) * 2011-09-27 2014-04-16 青岛海信电器股份有限公司 Software upgrading method of terminal equipment
CN107229501B (en) * 2017-06-30 2020-04-03 深圳市九洲电器有限公司 Set top box partition change upgrading method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419713A (en) * 2011-12-31 2012-04-18 四川长虹电器股份有限公司 Method for upgrading software of nandflash-based set-top box
CN102622250A (en) * 2012-03-07 2012-08-01 四川长虹电器股份有限公司 Software upgrading method for set top box supporting multi-flash equipment
CN102622250B (en) * 2012-03-07 2015-01-21 四川长虹电器股份有限公司 Software upgrading method for set top box supporting multi-flash equipment
CN104133709A (en) * 2014-08-06 2014-11-05 曙光信息产业(北京)有限公司 Upgrading method and device for embedded system
CN105224419A (en) * 2015-09-24 2016-01-06 青岛海信移动通信技术股份有限公司 User data mirror image loading method, device and terminal in a kind of Android system

Also Published As

Publication number Publication date
WO2019001165A1 (en) 2019-01-03
CN107229501A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN107229501B (en) Set top box partition change upgrading method and system
KR100844058B1 (en) File delete method, file open method, storge medium storing file delete program, and storage medium storing file open program
EP2998861B1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
CN109343790B (en) Data storage method based on NAND FLASH, terminal equipment and storage medium
JP4777426B2 (en) Apparatus, system and method for accessing persistent files in NON-EXECUTE-IN-PLACE flash memory
US20100077135A1 (en) Memory wear leveling method, system and device
US20070226400A1 (en) Information processing apparatus and method of using otp memory
CN102622250B (en) Software upgrading method for set top box supporting multi-flash equipment
CN101520734A (en) Method for upgrading data in flash memory, network TV and interactive set-top box thereof
US7071999B2 (en) Method for controlling memory in digital system
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
US20150089178A1 (en) Management Of A Memory
CN111221682B (en) Method for mirroring storage system
JP5821744B2 (en) Data presence / absence determination apparatus, data presence / absence determination method, and data presence / absence determination program
CN105930184A (en) System upgrade method and device
KR101150654B1 (en) Method of managing data on a non-volatile memory
CN112306368B (en) Method and device for expanding user data partition by EMMC (enhanced multi-media card)
CN114610341A (en) Production line flashing method and device, electronic equipment, chip and storage medium
CN114443081A (en) Terminal upgrading method and terminal
EP4100833A1 (en) Systems and methods for booting from nand flash using squashfs to maximize memory
CN107423095B (en) Data processing method and device adaptive to hardware, storage medium and computer equipment
JP5751121B2 (en) Information processing apparatus, information processing method, and program
US20140304285A1 (en) Terminal and method for managing files associated with an application
KR102392474B1 (en) Internet-of-things module
US20080091902A1 (en) Memory card and method of updating memory card program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200403

Termination date: 20200630