WO2012106897A1 - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
WO2012106897A1
WO2012106897A1 PCT/CN2011/077258 CN2011077258W WO2012106897A1 WO 2012106897 A1 WO2012106897 A1 WO 2012106897A1 CN 2011077258 W CN2011077258 W CN 2011077258W WO 2012106897 A1 WO2012106897 A1 WO 2012106897A1
Authority
WO
WIPO (PCT)
Prior art keywords
image data
data
correction code
error check
storage medium
Prior art date
Application number
PCT/CN2011/077258
Other languages
French (fr)
Chinese (zh)
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 CN2011800010563A priority Critical patent/CN102317920A/en
Priority to PCT/CN2011/077258 priority patent/WO2012106897A1/en
Publication of WO2012106897A1 publication Critical patent/WO2012106897A1/en

Links

Classifications

    • 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/1417Boot up procedures
    • 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/1446Point-in-time backing up or restoration of persistent data

Abstract

Provided in the embodiments of the present invention are a data processing method and device. The data processing method comprises: detecting whether a first image data stored in a storage medium is correct and complete, the first image data comprising the image data of all pages; loading, according to the detection result, the first image data stored in the storage medium or a second image data so as to execute the first image data or the second image data, the second image data being a backup data for the first image data stored in the storage medium. The technical solution of the embodiments in the invention may reduce the probability of terminal failure due to the first image data having an error or being invalid, and effectively improves the reliability of terminals.

Description

数据处理方法及设备  Data processing method and device
技术领域 Technical field
本发明实施例涉及数据存储技术领域, 尤其涉及一种数据处理方法及 设备。 背景技术  The embodiments of the present invention relate to the field of data storage technologies, and in particular, to a data processing method and device. Background technique
NAND 闪存 (Flash ) 作为低成本、 大容量的数据存储介质, 被广泛 使用在手机、 数字相机、 数字音乐播放机、 可携式媒体播放机、 机顶盒等 终端产品中。  As a low-cost, high-capacity data storage medium, NAND flash memory (Flash) is widely used in mobile phones, digital cameras, digital music players, portable media players, set-top boxes and other end products.
终端产品中的 NAND Flash中存储有引导程序和映像数据。 当终端上 电时, 终端产品中的引导程序会将 NAND Flash中存储的映像数据搬运到 内存中, 然后运行主程序, 根据映像数据访问存储数据。  Bootloader and image data are stored in the NAND Flash in the terminal product. When the terminal is powered on, the boot program in the terminal product transfers the image data stored in the NAND Flash to the memory, and then runs the main program to access the stored data according to the image data.
在实现本发明过程中, 发明人发现现有技术中至少存在如下问题: 现 有技术的 NAND Flash存储介质的终端产品在上电之后, 引导程序不对映 像数据做任何检测, 直接将映像数据搬运到内存中, 当映像数据错误或者 不完整将导致终端产品的系统无法使用, 终端产品出现故障。 发明内容  In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: After the terminal product of the NAND Flash storage medium of the prior art is powered on, the boot program does not perform any detection on the image data, and directly transfers the image data to In the memory, when the image data is incorrect or incomplete, the system of the terminal product cannot be used, and the terminal product fails. Summary of the invention
本发明实施例提供一种数据处理方法及设备, 用以解决现有技术中 The embodiment of the invention provides a data processing method and device, which are used to solve the prior art.
NAND Flash存储介质的终端产品, 当映像数据错误或者不完整导致终端 产品出现故障的缺陷。 本发明实施例提供一种数据处理方法, 包括: The terminal product of NAND Flash storage media, which is a defect that the terminal product fails when the image data is incorrect or incomplete. The embodiment of the invention provides a data processing method, including:
检测存储介质中的第一映像数据是否正确且完整; 所述第一映像数据 为存储在所述存储介质的映像区中的映像数据, 所述第一映像数据包括所 有页的映像数据; 根据检测结果加载所述存储介质中的所述第一映像数据或者第二映 像数据以运行所述第一映像数据或者所述第二映像数据, 所述第二映像数 据为存储在所述存储介质中的所述第一映像数据的备份数据。 Detecting whether the first image data in the storage medium is correct and complete; the first image data is image data stored in an image area of the storage medium, and the first image data includes image data of all pages; Loading the first image data or the second image data in the storage medium according to the detection result to run the first image data or the second image data, where the second image data is stored in the storage medium Backup data of the first image data in the middle.
本发明实施例提供一种数据处理设备, 包括:  The embodiment of the invention provides a data processing device, including:
检测模块, 用于检测存储介质中的第一映像数据是否正确且完整; 所 述第一映像数据为存储在所述存储介质的映像区中的映像数据, 所述第一 映像数据包括所有页的映像数据;  a detecting module, configured to detect whether the first image data in the storage medium is correct and complete; the first image data is image data stored in an image area of the storage medium, and the first image data includes all pages Image data
处理模块, 用于根据检测结果加载所述存储介质中的所述第一映像数 据或者第二映像数据以运行所述第一映像数据或者所述第二映像数据, 所 述第二映像数据为存储在所述存储介质中的所述第一映像数据的备份数 据。  a processing module, configured to load the first image data or the second image data in the storage medium according to the detection result to run the first image data or the second image data, where the second image data is a storage Backup data of the first image data in the storage medium.
本发明实施例的种数据处理方法及设备, 通过检测存储介质中的第一 映像数据是否正确且完整; 该第一映像数据为存储在所述存储介质的映像 区中的映像数据, 该第一映像数据包括所有页的映像数据; 根据检测结果 加载存储介质中的第一映像数据或者第二映像数据以运行第一映像数据 或者第二映像数据, 该第二映像数据为第一映像数据的备份数据。 采用本 发明实施例的技术方案, 能够在终端产品上电之后, 先对终端产品中的存 储介质中的第一映像数据的正确性和完整性进行检测, 然后再根据检测结 果运行第一映像数据或者第一映像数据的备份数据即第二映像数据, 能够 减少由于第一映像数据出错或者失效导致终端产品故障的概率, 有效地提 高终端产品的可靠性。 附图说明  The data processing method and device of the embodiment of the present invention detect whether the first image data in the storage medium is correct and complete; the first image data is image data stored in an image area of the storage medium, the first The image data includes image data of all pages; loading the first image data or the second image data in the storage medium according to the detection result to run the first image data or the second image data, the second image data being a backup of the first image data data. According to the technical solution of the embodiment of the present invention, after the terminal product is powered on, the correctness and integrity of the first image data in the storage medium in the terminal product are detected, and then the first image data is run according to the detection result. Or the backup data of the first image data, that is, the second image data, can reduce the probability of the terminal product failure due to the error or failure of the first image data, and effectively improve the reliability of the terminal product. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below, obviously, The drawings in the above description are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明一种实施例提供的数据处理方法的流程图。  FIG. 1 is a flowchart of a data processing method according to an embodiment of the present invention.
图 2为本发明另一实施例提供的数据处理方法的流程图。  FIG. 2 is a flowchart of a data processing method according to another embodiment of the present invention.
图 3为本发明再一实施例提供的数据处理方法的流程图。  FIG. 3 is a flowchart of a data processing method according to still another embodiment of the present invention.
图 4为本发明一实施例提供的数据处理设备的结构示意图。  FIG. 4 is a schematic structural diagram of a data processing device according to an embodiment of the present invention.
图 5为本发明另一实施例提供的数据处理设备的结构示意图。 具体实施方式  FIG. 5 is a schematic structural diagram of a data processing device according to another embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。 图 1为本发明一种实施例提供的数据处理方法的流程图。如图 1所示, 体可以位于存储介质中。 本实施例的数据处理方法, 具体可以包括如下: 100、 数据处理设备检测存储介质中的第一映像数据是否正确且完整。 其中第一映像数据为存储在存储介质的映像区中的映像数据, 该存储 介质中的映像数据以页 (page ) 为单元进行存储。 因此, 该第一映像数据 包括所有页的映像数据。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. FIG. 1 is a flowchart of a data processing method according to an embodiment of the present invention. As shown in Figure 1, the body can be located in a storage medium. The data processing method of this embodiment may specifically include the following: 100. The data processing device detects whether the first image data in the storage medium is correct and complete. The first image data is image data stored in an image area of the storage medium, and the image data in the storage medium is stored in units of pages. Therefore, the first image data includes image data of all pages.
本实施例中的存储介质可以为 NAND Flash0 The storage medium in this embodiment may be NAND Flash 0.
101、 数据处理设备根据检测结果加载存储介质中的第一映像数据或 者第二映像数据以运行第一映像数据或者第二映像数据。  101. The data processing device loads the first image data or the second image data in the storage medium according to the detection result to run the first image data or the second image data.
其中该第二映像数据为存储在存储介质中的第一映像数据的备份数 据, 具体地可以在第二映像数据可以为烧写第一映像数据时对第一映像数 据进行备份得到的备份数据。 该第二映像数据可以存储在存储介质的备份 区中。 电之后, 正常工作之前, 以实现终端产品的正常运行。 The second image data is backup data of the first image data stored in the storage medium, and specifically, the second image data may be the first image number when the first image data is programmed. According to the backup data obtained by the backup. The second image data can be stored in a backup area of the storage medium. After the electricity, before normal work, to achieve the normal operation of the terminal products.
本实施例的种数据处理方法, 通过检测存储介质中的第一映像数据是 否正确且完整; 根据检测结果加载存储介质中的第一映像数据或者第二映 像数据以运行第一映像数据或者第二映像数据。 采用本实施例的技术方 案, 能够在终端产品上电之后, 先对终端产品中的存储介质中的第一映像 数据的正确性和完整性进行检测, 然后再根据检测结果加载第一映像数据 或者第一映像数据的备份数据即第二映像数据以运行第一映像数据或者 第二映像数据, 能够减少由于第一映像数据出错或者失效导致终端产品故 障的概率, 有效地提高终端产品的可靠性。  The data processing method of the embodiment detects whether the first image data in the storage medium is correct and complete; and loads the first image data or the second image data in the storage medium according to the detection result to run the first image data or the second Image data. With the technical solution of the embodiment, after the terminal product is powered on, the correctness and integrity of the first image data in the storage medium in the terminal product can be detected, and then the first image data is loaded according to the detection result or The backup data of the first image data, that is, the second image data to run the first image data or the second image data, can reduce the probability of the terminal product failure due to the error or failure of the first image data, and effectively improve the reliability of the terminal product.
可选地, 上述实施例中的第二映像数据为烧写第一映像数据时对第一 映像数据进行备份得到的备份数据, 且当对终端产品进行升级时, 当升级 完第一映像数据之后, 同时需要对更新后的第一映像数据进行备份得到第 二映像数据, 也就是说要始终保持在每一次烧写 (包括更新)后保证第一 映像数据和第二映像数据的数据一致性。 可选地, 为了有效地节省存储介 质中的空间, 该第二映像数据可以压缩格式存储在备份区中, 这样不仅可 以保证存储介质的空间有限可控, 还不会带来存储介质成本的增加。  Optionally, the second image data in the foregoing embodiment is backup data obtained by backing up the first image data when the first image data is written, and when the terminal product is upgraded, after upgrading the first image data, At the same time, the updated first image data needs to be backed up to obtain the second image data, that is, the data consistency of the first image data and the second image data is always maintained after each programming (including the update). Optionally, in order to effectively save space in the storage medium, the second image data may be stored in the backup area in a compressed format, so that not only the space of the storage medium is limited, but also the cost of the storage medium is not increased. .
图 2为本发明另一实施例提供的数据处理方法的流程图。如图 2所示, 本实施例的数据处理方法, 具体可以包括如下:  FIG. 2 is a flowchart of a data processing method according to another embodiment of the present invention. As shown in FIG. 2, the data processing method in this embodiment may specifically include the following:
200、 数据处理设备检测第一映像数据中的每一页的映像数据是否正 确; 当检测到第一映像数据中的某一页的映像数据不正确时, 执行 201 ; 当第一映像数据中的所有页的映像数据都正确时, 执行 202;  200, the data processing device detects whether the image data of each page in the first image data is correct; when detecting that the image data of a certain page in the first image data is incorrect, performing 201; when in the first image data When the image data of all the pages is correct, execute 202;
例如: 数据处理设备检测第一映像数据中的每一页的映像数据是否正 确具体可以通过如下方式: ( 1 )对于第一映像数据中的每一页的映像数据, 数据处理设备触发 控制器读取当前页的映像数据, 并根据当前页的映像数据获取当前页的第 一错误检查和纠正码 ( Error Checking and Correcting; 以下简称 ECC ) ;For example: The data processing device detects whether the image data of each page in the first image data is correct or not by the following method: (1) For the image data of each page in the first image data, the data processing device triggers the controller to read the image data of the current page, and acquires the first error check and the correction code of the current page according to the image data of the current page ( Error Checking and Correcting; hereinafter referred to as ECC);
( 2 )数据处理设备触发控制器判断当前页的第一 ECC与预存储的当 前页对应的第二 ECC是否相等, 当相等时, 则判定第一映像数据中当前 页的映像数据是正确的; 否则, 当不相等时, 则判定第一映像数据中当前 页的映像数据是不正确的; 第二 ECC是在烧写当前页的映像数据时根据 当前页的映像数据获取的。 (2) the data processing device triggers the controller to determine whether the first ECC of the current page is equal to the second ECC corresponding to the pre-stored current page, and when equal, determines that the image data of the current page in the first image data is correct; Otherwise, when it is not equal, it is determined that the image data of the current page in the first image data is incorrect; the second ECC is obtained according to the image data of the current page when the image data of the current page is programmed.
其中根据当前页的映像数据获取当前页的第一 ECC的算法与烧写当 前页的映像数据时根据当前页的映像数据获取第二 ECC的算法相同, 具 体算法可以参考现有技术。  The algorithm for obtaining the first ECC of the current page according to the image data of the current page is the same as the algorithm for acquiring the second ECC according to the image data of the current page when the image data of the current page is written. The specific algorithm can refer to the prior art.
201、 数据处理设备确定检测结果为第一映像数据不正确; 执行 205; 201, the data processing device determines that the detection result is incorrect for the first image data; performing 205;
202、 数据处理设备检测第一映像数据中的所有页的映像数据是否完 整; 当检测第一映像数据中的某一页的映像数据不完整时, 执行 203; 当 检测第一映像数据中的所有页的映像数据都完整时, 执行 204; 202, the data processing device detects whether the image data of all the pages in the first image data is complete; when detecting that the image data of a certain page in the first image data is incomplete, performing 203; when detecting all of the first image data When the image data of the page is complete, execute 204;
例如: 数据处理设备检测第一映像数据中的所有页的映像数据是否完 整具体可以通过一下方式执行:  For example: The data processing device detects whether the image data of all pages in the first image data is complete or not, and can be executed in the following manner:
( a )数据处理设备获取第一映像数据中的每一页对应的第一 ECC; ( b )数据处理设备根据所有页对应的第一 ECC获取第三 ECC;  (a) the data processing device acquires the first ECC corresponding to each page in the first image data; (b) the data processing device acquires the third ECC according to the first ECC corresponding to all the pages;
( c )数据处理设备判断第三 ECC与预存储的第一映像数据对应的第 四 ECC是否相等, 当相等时, 则判定第一映像数据是完整的; 否则, 当 不相等时, 则判定第一映像数据不完整; 第四 ECC是在烧写第一映像数 据时根据每一页对应的第二 ECC获取的。  (c) the data processing device determines whether the fourth ECC corresponding to the pre-stored first image data is equal, and when equal, determines that the first image data is complete; otherwise, when not equal, determines The image data is incomplete; the fourth ECC is obtained according to the second ECC corresponding to each page when the first image data is programmed.
其中根据所有页对应的第一 ECC获取第三 ECC的算法与烧写第一映 像数据时根据所有页中对应的第二 ECC获取第四 ECC的算法相同, 具体 算法可以参考现有技术。 203、 数据处理设备确定检测结果为第一映像数据不完整; 执行 205 ;The algorithm for obtaining the third ECC according to the first ECC corresponding to all the pages is the same as the algorithm for obtaining the fourth ECC according to the corresponding second ECC in all the pages when the first image data is written. The specific algorithm may refer to the prior art. 203, the data processing device determines that the detection result is that the first image data is incomplete;
204、 数据处理设备确定检测结果为第一映像数据正确且完整, 执行204. The data processing device determines that the detection result is correct and complete for the first image data, and performs
206; 206;
205、 数据处理设备从存储介质的备份区中获取第二映像数据; 执行 207;  205, the data processing device obtains the second image data from the backup area of the storage medium;
206、 数据处理设备加载第一映像数据以运行第一映像数据, 结束。 具体地, 数据处理设备将第一映像数据加载至内存, 以供内存运行该 第一映像数据。  206. The data processing device loads the first image data to run the first image data, and ends. Specifically, the data processing device loads the first image data into the memory for the memory to run the first image data.
207、 数据处理设备加载第二映像数据以运行第二映像数据, 结束。 具体地, 数据处理设备将第二映像数据加载至内存, 以供内存运行该 第二映像数据。  207. The data processing device loads the second image data to run the second image data, and ends. Specifically, the data processing device loads the second image data into the memory for the memory to run the second image data.
可选地, 在 205与 207之间还可以包括: 利用第二映像数据恢复第一 映像数据。 这样可以在下一次启动时, 数据处理设备直接检测映射区中的 第一映像数据, 当第一映射数据正确且完整时直接加载以供内存运行第二 映像数据, 而不用再去备份区中获取第二映射数据, 加快运行前的准备工 作。 此时 207中, 数据处理设备可以加载被第二映像数据恢复之后的第一 映像数据以供内存运行该被第二映像数据恢复之后的第一映像数据。  Optionally, between 205 and 207, the method further includes: recovering the first image data by using the second image data. In this way, the data processing device can directly detect the first image data in the mapping area at the next startup, and directly load the second image data for the memory when the first mapping data is correct and complete, without going to the backup area to obtain the first Second, map the data to speed up the preparation before the run. At this time 207, the data processing device can load the first image data after being restored by the second image data for the memory to run the first image data after the second image data is restored.
本实施例中的数据处理设备中具体可以集成有软件, 例如可以集成有 终端产品中的引导程序。 数据处理设备通过集成的软件可以实现上述相关 方法步骤。  The data processing device in this embodiment may be integrated with software, for example, a boot program in the terminal product may be integrated. The data processing device can implement the above related method steps through integrated software.
本实施例的种数据处理方法, 能够在终端产品上电之后, 先对终端产 品中的存储介质中的第一映像数据的正确性和完整性进行检测, 然后再根 据检测结果加载第一映像数据或者第一映像数据的备份数据即第二映像 数据以供运行, 能够减少由于第一映像数据出错或者失效导致终端产品故 障的概率, 有效地提高终端产品的可靠性。  The data processing method of the embodiment can detect the correctness and integrity of the first image data in the storage medium in the terminal product after the terminal product is powered on, and then load the first image data according to the detection result. Or the backup data of the first image data, that is, the second image data, for running, can reduce the probability of failure of the terminal product due to error or failure of the first image data, and effectively improve the reliability of the terminal product.
图 3为本发明再一实施例提供的数据处理方法的流程图。如图 3所示, 本实施例的数据处理方法中以存储介质为 NAND Flash的终端产品为例, 详细介绍本发明实施例的技术方案。 FIG. 3 is a flowchart of a data processing method according to still another embodiment of the present invention. As shown in Figure 3, In the data processing method of the present embodiment, the technical solution of the embodiment of the present invention is described in detail by taking a terminal product of the NAND Flash as an example.
300、 终端产品的单板上电;  300. The board of the terminal product is powered on;
301、 终端产品中的引导程序运行;  301. The boot program in the terminal product runs;
302、 引导程序触发 NAND Flash控制器检测 NAND Flash中的第一映 像数据是否正确和完整; 当检测得到 NAND Flash中的第一映像数据是正 确和完整, 执行 303; 否则当检测得到 NAND Flash中的第一映像数据是 不正确或者不完整的, 执行 305;  302, the boot program triggers the NAND flash controller to detect whether the first image data in the NAND flash is correct and complete; when detecting that the first image data in the NAND flash is correct and complete, performing 303; otherwise, when detecting the NAND Flash The first image data is incorrect or incomplete, and execution 305;
引导程序检测 NAND Flash中的第一映像数据是否正确和完整的过程 可以称为对 NAND Flash中的第一映像数据进行正确性和完整性的检测过 程。 详细可以参考上述实施例中数据处理设备检测第一映像数据是否正确 和完整的步骤, 在此不再赘述。  The process by which the boot program detects the correctness and integrity of the first image data in NAND Flash can be referred to as the process of verifying the correctness and integrity of the first image data in NAND Flash. For details, refer to the steps of the data processing device in the foregoing embodiment for detecting whether the first image data is correct and complete, and details are not described herein again.
303、 引导程序将第一映像数据加载到内存中; 执行 304;  303, the boot program loads the first image data into the memory; executing 304;
304、 内存运行第一映像数据, 终端产品正常工作。 结束。  304. The first image data is run in the memory, and the terminal product works normally. End.
305、 引导程序从 NAND Flash的备份区中获取第二映像数据; 执行 305. The boot program obtains second image data from a backup area of the NAND flash;
306; 306;
306、 引导程序利用第二映像数据恢复第一映像数据, 使得第一映像 数据正确且完整; 执行 307;  306. The boot program restores the first image data by using the second image data, so that the first image data is correct and complete; and executing 307;
307、 引导程序将被第二映像数据恢复后的第一映像数据加载到内存 中; 执行 308;  307, the boot program is loaded into the memory by the first image data after the second image data is restored; executing 308;
308、 内存运行被第二映像数据恢复后的第一映像数据, 终端产品正 常工作。 结束。  308. The first image data after the memory is restored by the second image data, and the terminal product works normally. End.
本实施例的数据处理方法, 能够在终端产品上电之后, 先对终端产品 中的存储介质中的第一映像数据的正确性和完整性进行检测, 然后再根据 检测结果加载第一映像数据或者第一映像数据的备份数据即第二映像数 据并运行该第一映像数据或者第二映像数据, 能够减少由于第一映像数据 出错或者失效导致终端产品故障的概率, 有效地提高终端产品的可靠性。 本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程 序代码的介质。 The data processing method of the embodiment can detect the correctness and integrity of the first image data in the storage medium in the terminal product after the terminal product is powered on, and then load the first image data according to the detection result or The backup data of the first image data, that is, the second image data and the first image data or the second image data, can be reduced due to the first image data The probability of failure or failure leading to the failure of the terminal product, effectively improving the reliability of the terminal product. A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
图 4为本发明一实施例提供的数据处理设备的结构示意图。 如图 4所 示, 本实施例的数据处理设备, 具体可以包括: 检测模块 10和处理模块 1 1。  FIG. 4 is a schematic structural diagram of a data processing device according to an embodiment of the present invention. As shown in FIG. 4, the data processing device of this embodiment may specifically include: a detection module 10 and a processing module 11.
检测模块 10用于检测存储介质中的第一映像数据是否正确且完整; 该第一映像数据为存储在存储介质的映像区中的映像数据, 该第一映像数 据包括所有页的映像数据。 处理模块 11与检测模块 10连接, 处理模块 11 用于根据检测模块 10的检测结果加载存储介质中的第一映像数据或者第 二映像数据以运行第一映像数据或者第二映像数据, 该第二映像数据存储 在存储介质中的第一映像数据的备份数据, 例如该第二映像数据可以为烧 写第一映像数据时对第一映像数据进行备份得到的备份数据, 该第二映像 数据可以存储在存储介质的备份区中。  The detecting module 10 is configured to detect whether the first image data in the storage medium is correct and complete; the first image data is image data stored in an image area of the storage medium, and the first image data includes image data of all pages. The processing module 11 is connected to the detection module 10, and the processing module 11 is configured to load the first image data or the second image data in the storage medium according to the detection result of the detection module 10 to run the first image data or the second image data, the second The backup data of the first image data stored in the storage medium, for example, the second image data may be backup data obtained by backing up the first image data when the first image data is written, and the second image data may be stored. In the backup area of the storage medium.
本实施例的数据处理设备, 通过采用上述模块实现数据处理过程与上 述相关方法实施例的实现过程相同, 详细可以参考上述相关方法实施例的 描述, 在此不再赘述。  The data processing device of the present embodiment is the same as the implementation process of the foregoing related method embodiment by using the foregoing module. For details, refer to the description of the foregoing related method embodiments, and details are not described herein again.
本实施例的数据处理设备, 通过采用上述模块实现检测存储介质中的 第一映像数据是否正确且完整; 根据检测结果加载存储介质中的第一映像 数据或者第二映像数据以运行第一映像数据或者第二映像数据。 采用本实 施例的技术方案, 能够在终端产品上电之后, 先对终端产品中的存储介质 中的第一映像数据的正确性和完整性进行检测, 然后再根据检测结果加载 第一映像数据或者第一映像数据的备份数据即第二映像数据以运行第一 映像数据或者第二映像数据, 能够减少由于第一映像数据出错或者失效导 致终端产品故障的概率, 有效地提高终端产品的可靠性。 The data processing device of the embodiment is configured to detect whether the first image data in the storage medium is correct and complete by using the foregoing module; and loading the first image data or the second image data in the storage medium according to the detection result to run the first image data. Or second image data. With the technical solution of the embodiment, after the terminal product is powered on, the correctness and integrity of the first image data in the storage medium in the terminal product can be detected, and then the first image data is loaded according to the detection result or The backup data of the first image data is the second image data to run the first The image data or the second image data can reduce the probability of failure of the terminal product due to an error or failure of the first image data, and effectively improve the reliability of the terminal product.
图 5为本发明另一实施例提供的数据处理设备的结构示意图。 如图 5 所示, 本实施例的数据处理设备在上述图 4所示实施例的基础上, 其中检 测模块 10, 包括: 第一检测单元 101和第二检测单元 102。  FIG. 5 is a schematic structural diagram of a data processing device according to another embodiment of the present invention. As shown in FIG. 5, the data processing device of the present embodiment is based on the embodiment shown in FIG. 4, wherein the detecting module 10 includes: a first detecting unit 101 and a second detecting unit 102.
其中第一检测单元 101用于检测第一映像数据中的每一页的映像数据 是否正确; 当检测到第一映像数据中的某一页的映像数据不正确时, 检测 结果为第一映像数据不正确。第二检测单元 102与第一检测单元 101连接; 第二检测单元 102用于当第一检测单元 101检测确定第一映像数据中的所 有页的映像数据都正确时, 检测第一映像数据中的所有页的映像数据是否 完整; 当检测第一映像数据中的某一页的映像数据不完整时, 检测结果为 第一映像数据不完整; 当检测第一映像数据中的所有页的映像数据都完整 时, 检测结果为第一映像数据正确且完整。  The first detecting unit 101 is configured to detect whether the image data of each page in the first image data is correct; when detecting that the image data of a certain page in the first image data is incorrect, the detection result is the first image data. Incorrect. The second detecting unit 102 is connected to the first detecting unit 101. The second detecting unit 102 is configured to detect, in the first image data, when the first detecting unit 101 detects that the image data of all the pages in the first image data is correct. Whether the image data of all the pages is complete; when detecting that the image data of a certain page in the first image data is incomplete, the detection result is that the first image data is incomplete; when detecting the image data of all the pages in the first image data When complete, the test results are correct and complete for the first image data.
其中可选地, 本实施例中的第一检测单元 101包括: 第一处理子单元 和第二处理子单元。  Optionally, the first detecting unit 101 in this embodiment includes: a first processing subunit and a second processing subunit.
对于第一映像数据中的每一页的映像数据, 第一处理子单元用于触发 控制器读取当前页的映像数据, 并根据当前页的映像数据获取当前页的第 一 ECC。 第二处理子单元与第一处理子单元连接, 第二处理子单元用于触 发控制器判断第一处理子单元获取的当前页的第一 ECC与预存储的当前 页对应的第二 ECC是否相等, 当相等时, 则判定第一映像数据中当前页 的映像数据是正确的; 否则, 当不相等时, 则判定第一映像数据中当前页 的映像数据是不正确的; 第二 ECC是在烧写当前页的映像数据时根据当 前页的映像数据获取的。  For the image data of each page in the first image data, the first processing sub-unit is configured to trigger the controller to read the image data of the current page, and acquire the first ECC of the current page according to the image data of the current page. The second processing subunit is connected to the first processing subunit, and the second processing subunit is configured to trigger the controller to determine whether the first ECC of the current page acquired by the first processing subunit is equal to the second ECC corresponding to the pre-stored current page. When it is equal, it is determined that the image data of the current page in the first image data is correct; otherwise, when it is not equal, it is determined that the image data of the current page in the first image data is incorrect; the second ECC is When the image data of the current page is programmed, it is obtained based on the image data of the current page.
其中可选地, 本实施例中的第二检测单元 102, 包括: 第三处理子单 元、 第四处理子单元和第五处理子单元。  Optionally, the second detecting unit 102 in this embodiment includes: a third processing subunit, a fourth processing subunit, and a fifth processing subunit.
其中第三处理子单元与第二处理子单元连接, 第三处理子单元用于当 经过第一处理子单元和第二处理子单元检测确定第一映像数据中的所有 页的映像数据都正确时, 受第二处理子单元的触发获取第一映像数据中的 每一页对应的第一 ECC。 第四处理子单元与第三处理子单元连接, 第四处 理子单元用于根据第三处理子单元获取的所有页对应的第一 ECC获取第 三 ECC。 第五处理子单元与第四处理子单元连接, 第五处理子单元用于判 断第四处理子单元连接获取的第三 ECC与预存储的第一映像数据对应的 第四 ECC是否相等, 当相等时, 则判定第一映像数据是完整的; 否则, 当不相等时, 则判定第一映像数据不完整; 第四 ECC是在烧写第一映像 数据时根据每一页对应的第二 ECC获取的。 Wherein the third processing subunit is connected to the second processing subunit, and the third processing subunit is used when After the first processing sub-unit and the second processing sub-unit detect that the image data of all the pages in the first image data is correct, the first processing sub-unit triggers to acquire the corresponding page of each page in the first image data. An ECC. The fourth processing subunit is connected to the third processing subunit, and the fourth processing subunit is configured to acquire the third ECC according to the first ECC corresponding to all the pages acquired by the third processing subunit. The fifth processing sub-unit is connected to the fourth processing sub-unit, and the fifth processing sub-unit is configured to determine whether the third ECC obtained by the fourth processing sub-unit connection is equal to the fourth ECC corresponding to the pre-stored first image data, when equal When it is determined, the first image data is complete; otherwise, when not equal, it is determined that the first image data is incomplete; the fourth ECC is obtained according to the second ECC corresponding to each page when the first image data is programmed. of.
可选地, 本实施例中的处理模块 1 1可以包括获取单元 1 11和加载单 元 112。  Optionally, the processing module 11 in this embodiment may include an obtaining unit 1 11 and a loading unit 112.
其中获取单元 11 1可以分别与第一检测单元 101或第二检测单元 102 连接, 获取单元 111用于当第一检测单元 101检测结果为第一映像数据不 正确或第二检测单元 102的检测结果为第一映像数据不完整时, 从存储介 质的备份区中获取第二映像数据。 加载单元 112与获取单元 11 1连接, 加 载单元 112用于加载获取单元 111获取的第二映像数据以运行第二映像数 据。  The obtaining unit 11 1 may be respectively connected to the first detecting unit 101 or the second detecting unit 102, and the obtaining unit 111 is configured to detect, when the first detecting unit 101 is that the first image data is incorrect or the detection result of the second detecting unit 102. When the first image data is incomplete, the second image data is obtained from the backup area of the storage medium. The loading unit 112 is connected to the obtaining unit 11 1 for loading the second image data acquired by the acquiring unit 111 to run the second image data.
可选地, 本实施例的数据处理设备中的处理模块 11还可以包括恢复 单元 113 , 恢复单元 113分别与获取单元 11 1和加载单元 112连接。  Optionally, the processing module 11 in the data processing device of this embodiment may further include a recovery unit 113, and the recovery unit 113 is connected to the obtaining unit 11 1 and the loading unit 112, respectively.
恢复单元 113用于当检测结果为第一映像数据不正确或第一映像数据 不完整时, 利用获取单元 1 11获取的第二映像数据恢复第一映像数据。 加 载单元 112具体用于加载恢复单元 113处理后被第二映像数据恢复后的第 一映像数据以运行被第二映像数据恢复后的第一映像数据。  The recovery unit 113 is configured to restore the first image data by using the second image data acquired by the obtaining unit 1 11 when the detection result is that the first image data is incorrect or the first image data is incomplete. The loading unit 112 is specifically configured to load the first image data restored by the second image data after the processing by the recovery unit 113 to run the first image data restored by the second image data.
需要说明的是, 本实施例中的处理模块 11具体还可以用于当检测结 果为第一映像数据中的所有页的映像数据都正确且完整时, 加载第一映像 数据以运行第一映像数据。 本实施例的数据处理设备, 通过采用上述模块实现数据处理过程与上 述相关方法实施例的实现过程相同, 详细可以参考上述相关方法实施例的 描述, 在此不再赘述。 It should be noted that the processing module 11 in this embodiment may be further configured to load the first image data to run the first image data when the detection result is that the image data of all the pages in the first image data is correct and complete. . The data processing device of the present embodiment is the same as the implementation process of the foregoing related method embodiment by using the foregoing module. For details, refer to the description of the foregoing related method embodiments, and details are not described herein again.
本实施例的数据处理设备, 通过采用上述模块实现能够在终端产品上 电之后, 先对终端产品中的存储介质中的第一映像数据的正确性和完整性 进行检测, 然后再根据检测结果加载第一映像数据或者第一映像数据的备 份数据即第二映像数据以供运行, 能够减少由于第一映像数据出错或者失 效导致终端产品故障的概率, 有效地提高终端产品的可靠性。  The data processing device of this embodiment can detect the correctness and integrity of the first image data in the storage medium in the terminal product after the terminal product is powered on by using the above module, and then load according to the detection result. The first image data or the backup data of the first image data, that is, the second image data, is for operation, and the probability of failure of the terminal product due to an error or failure of the first image data can be reduced, thereby effectively improving the reliability of the terminal product.
以上所描述的装置实施例仅仅是示意性的, 其中作为分离部件说明的 单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或 者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到至少两 个网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来实现 本实施例方案的目的。 本领域普通技术人员在不付出创造性的劳动的情况 下, 即可以理解并实施。  The device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located in one place. , or it can be distributed to at least two network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限 制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相 应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1、 一种数据处理方法, 其特征在于, 包括:  A data processing method, comprising:
检测存储介质中的第一映像数据是否正确且完整; 所述第一映像数据 为存储在所述存储介质的映像区中的映像数据, 所述第一映像数据包括所 有页的映像数据;  Detecting whether the first image data in the storage medium is correct and complete; the first image data is image data stored in an image area of the storage medium, and the first image data includes image data of all pages;
根据检测结果加载所述存储介质中的所述第一映像数据或者第二映 像数据以运行所述第一映像数据或者所述第二映像数据, 所述第二映像数 据为存储在所述存储介质中的所述第一映像数据的备份数据。  Loading the first image data or the second image data in the storage medium according to the detection result to run the first image data or the second image data, where the second image data is stored in the storage medium Backup data of the first image data in the middle.
2、 根据权利要求 1所述的方法, 其特征在于, 检测存储介质中的第 一映像数据是否正确且完整, 包括:  2. The method according to claim 1, wherein detecting whether the first image data in the storage medium is correct and complete comprises:
检测所述第一映像数据中的每一页的映像数据是否正确; 当检测到所 述第一映像数据中的某一页的映像数据不正确时, 检测结果为所述第一映 像数据不正确;  Detecting whether the image data of each page in the first image data is correct; when detecting that the image data of a certain page in the first image data is incorrect, the detection result is that the first image data is incorrect ;
当所述第一映像数据中的所有页的映像数据都正确时, 检测所述第一 映像数据中的所有页的映像数据是否完整; 当检测所述第一映像数据中的 某一页的映像数据不完整时, 检测结果为所述第一映像数据不完整; 当检 测所述第一映像数据中的所有页的映像数据都完整时, 检测结果为所述第 一映像数据正确且完整。  Detecting whether image data of all pages in the first image data is complete when image data of all pages in the first image data is correct; detecting an image of a certain page in the first image data When the data is incomplete, the detection result is that the first image data is incomplete; when detecting that the image data of all the pages in the first image data is complete, the detection result is that the first image data is correct and complete.
3、 根据权利要求 2所述的方法, 其特征在于, 检测所述第一映像数 据中的每一页的映像数据是否正确, 具体包括:  The method according to claim 2, wherein detecting whether the image data of each page in the first image data is correct comprises:
对于所述第一映像数据中的每一页的映像数据, 触发控制器读取当前 页的映像数据, 并根据所述当前页的映像数据获取所述当前页的第一错误 检查和纠正码;  For the image data of each page in the first image data, the trigger controller reads the image data of the current page, and acquires the first error check and correction code of the current page according to the image data of the current page;
触发所述控制器判断所述当前页的所述第一错误检查和纠正码与预 存储的所述当前页对应的第二错误检查和纠正码是否相等, 当相等时, 则 判定所述第一映像数据中所述当前页的映像数据是正确的; 否则, 当不相 等时, 则判定所述第一映像数据中所述当前页的映像数据是不正确的; 所 述第二错误检查和纠正码是在烧写所述当前页的映像数据时根据当前页 的映像数据获取的。 Trimming the controller to determine whether the first error check and correction code of the current page is equal to a second error check and a correction code corresponding to the pre-stored current page, and when equal, determining the first The image data of the current page in the image data is correct; otherwise, when it is not Equivalently, determining that the image data of the current page in the first image data is incorrect; the second error check and correction code is an image according to the current page when the image data of the current page is programmed Data acquisition.
4、 根据权利要求 3所述的方法, 其特征在于, 当所述第一映像数据 中的所有页的映像数据都正确时, 检测所述第一映像数据中的所有页的映 像数据是否完整, 具体包括:  The method according to claim 3, wherein when the image data of all the pages in the first image data is correct, detecting whether the image data of all the pages in the first image data is complete, Specifically include:
获取所述第一映像数据中的每一页对应的第一错误检查和纠正码; 根据所有页对应的第一错误检查和纠正码获取第三错误检查和纠正 码;  Obtaining a first error check and correction code corresponding to each page in the first image data; acquiring a third error check and correction code according to the first error check and correction code corresponding to all the pages;
判断所述第三错误检查和纠正码与预存储的所述第一映像数据对应 的第四错误检查和纠正码是否相等, 当相等时, 则判定所述第一映像数据 是完整的; 否则, 当不相等时, 则判定所述第一映像数据不完整; 所述第 四错误检查和纠正码是在烧写所述第一映像数据时根据每一页对应的第 二错误检查和纠正码获取的。  Determining whether the fourth error check and the correction code are equal to the fourth error check and the correction code corresponding to the pre-stored first image data, and when they are equal, determining that the first image data is complete; otherwise, Determining that the first image data is incomplete when the data is not equal; the fourth error check and correction code is obtained according to the second error check and the correction code corresponding to each page when the first image data is programmed. of.
5、 根据权利要求 2所述的方法, 其特征在于, 根据检测结果加载所 述存储介质中的所述第一映像数据或者第二映像数据以运行所述第一映 像数据或者所述第二映像数据, 具体包括:  The method according to claim 2, wherein the first image data or the second image data in the storage medium is loaded according to the detection result to run the first image data or the second image The data specifically includes:
当所述检测结果为所述第一映像数据不正确或所述第一映像数据不 完整时, 从所述存储介质的备份区中获取所述第二映像数据;  When the detection result is that the first image data is incorrect or the first image data is incomplete, the second image data is acquired from a backup area of the storage medium;
加载所述第二映像数据以运行所述第二映像数据。  The second image data is loaded to run the second image data.
6、 根据权利要求 5所述的方法, 其特征在于, 还包括: 当所述检测 结果为所述第一映像数据不正确或所述第一映像数据不完整时, 利用所述 第二映像数据恢复所述第一映像数据。  The method according to claim 5, further comprising: using the second image data when the detection result is that the first image data is incorrect or the first image data is incomplete Restoring the first image data.
7、 根据权利要求 6所述的方法, 其特征在于, 加载所述第二映像数 据以运行所述第二映像数据, 具体包括: 加载被所述第二映像数据恢复后 的第一映像数据以运行所述被所述第二映像数据恢复后的第一映像数据。 The method of claim 6, wherein loading the second image data to run the second image data comprises: loading the first image data recovered by the second image data to Running the first image data recovered by the second image data.
8、 根据权利要求 2所述的方法, 其特征在于, 根据检测结果加载所 述存储介质中的所述第一映像数据或者第二映像数据以运行所述第一映 像数据或者所述第二映像数据, 具体包括: The method according to claim 2, wherein the first image data or the second image data in the storage medium is loaded according to the detection result to run the first image data or the second image The data specifically includes:
当所述检测结果为所述第一映像数据中的所有页的映像数据都正确 且完整时, 加载所述第一映像数据以运行所述第一映像数据。  When the detection result is that the image data of all the pages in the first image data is correct and complete, the first image data is loaded to run the first image data.
9、 根据权利要求 1-8任一所述的方法, 其特征在于, 所述第二映像数 据以压缩格式存储。  9. The method of any of claims 1-8, wherein the second image data is stored in a compressed format.
10、 一种数据处理设备, 其特征在于, 包括:  10. A data processing device, comprising:
检测模块, 用于检测存储介质中的第一映像数据是否正确且完整; 所 述第一映像数据为存储在所述存储介质的映像区中的映像数据, 所述第一 映像数据包括所有页的映像数据;  a detecting module, configured to detect whether the first image data in the storage medium is correct and complete; the first image data is image data stored in an image area of the storage medium, and the first image data includes all pages Image data
处理模块, 用于根据检测结果加载所述存储介质中的所述第一映像数 据或者第二映像数据以运行所述第一映像数据或者所述第二映像数据, 所 述第二映像数据为存储在所述存储介质中的所述第一映像数据的备份数 据。  a processing module, configured to load the first image data or the second image data in the storage medium according to the detection result to run the first image data or the second image data, where the second image data is a storage Backup data of the first image data in the storage medium.
11、 根据权利要求 10所述的设备, 其特征在于, 所述检测模块, 包 括:  The device according to claim 10, wherein the detecting module comprises:
第一检测单元, 用于检测所述第一映像数据中的每一页的映像数据是 否正确; 当检测到所述第一映像数据中的某一页的映像数据不正确时, 检 测结果为所述第一映像数据不正确;  a first detecting unit, configured to detect whether the image data of each page in the first image data is correct; when detecting that the image data of a certain page in the first image data is incorrect, the detection result is The first image data is incorrect;
第二检测单元, 用于当所述第一映像数据中的所有页的映像数据都正 确时, 检测所述第一映像数据中的所有页的映像数据是否完整; 当检测所 述第一映像数据中的某一页的映像数据不完整时, 检测结果为所述第一映 像数据不完整; 当检测所述第一映像数据中的所有页的映像数据都完整 时, 检测结果为所述第一映像数据正确且完整。  a second detecting unit, configured to detect, when the image data of all pages in the first image data is correct, whether image data of all pages in the first image data is complete; when detecting the first image data When the image data of one of the pages is incomplete, the detection result is that the first image data is incomplete; when detecting that the image data of all the pages in the first image data is complete, the detection result is the first The image data is correct and complete.
12、 根据权利要求 11所述的设备, 其特征在于, 所述第一检测单元, 包括: 12. The device according to claim 11, wherein: the first detecting unit, include:
第一处理子单元, 用于对于所述第一映像数据中的每一页的映像数 据, 触发控制器读取当前页的映像数据, 并根据所述当前页的映像数据获 取所述当前页的第一错误检查和纠正码;  a first processing subunit, configured to: for the image data of each page in the first image data, trigger the controller to read the image data of the current page, and acquire the current page according to the image data of the current page First error check and correction code;
第二处理子单元, 用于触发所述控制器判断所述当前页的所述第一错 误检查和纠正码与预存储的所述当前页对应的第二错误检查和纠正码是 否相等, 当相等时, 则判定所述第一映像数据中所述当前页的映像数据是 正确的; 否则, 当不相等时, 则判定所述第一映像数据中所述当前页的映 像数据是不正确的; 所述第二错误检查和纠正码是在烧写所述当前页的映 像数据时根据当前页的映像数据获取的。  a second processing subunit, configured to trigger the controller to determine whether the first error check and the correction code of the current page are equal to the second error check and the correction code corresponding to the pre-stored current page, when equal And determining, in the first image data, the image data of the current page is correct; otherwise, when not equal, determining that the image data of the current page in the first image data is incorrect; The second error check and correction code is acquired according to the image data of the current page when the image data of the current page is programmed.
13、 根据权利要求 12所述的设备, 其特征在于, 所述第二检测单元, 包括:  The device according to claim 12, wherein the second detecting unit comprises:
第三处理子单元, 用于获取所述第一映像数据中的每一页对应的第一 错误检查和纠正码;  a third processing subunit, configured to acquire a first error check and correction code corresponding to each page in the first image data;
第四处理子单元, 用于根据所有页对应的第一错误检查和纠正码获取 第三错误检查和纠正码;  a fourth processing subunit, configured to acquire a third error check and a correction code according to the first error check and the correction code corresponding to all the pages;
第五处理子单元, 用于判断所述第三错误检查和纠正码与预存储的所 述第一映像数据对应的第四错误检查和纠正码是否相等, 当相等时, 则判 定所述第一映像数据是完整的; 否则, 当不相等时, 则判定所述第一映像 数据不完整; 所述第四错误检查和纠正码是在烧写所述第一映像数据时根 据每一页对应的第二错误检查和纠正码获取的。  a fifth processing subunit, configured to determine whether the third error check and the correction code correspond to the pre-stored first image data and whether the fourth error check and the correction code are equal, and when they are equal, determine the first The image data is complete; otherwise, when not equal, it is determined that the first image data is incomplete; the fourth error check and correction code is corresponding to each page when the first image data is programmed The second error check and correction code are obtained.
14、 根据权利要求 11所述的设备, 其特征在于, 所述处理模块包括: 获取单元, 用于当所述检测结果为所述第一映像数据不正确或所述第 一映像数据不完整时, 从所述存储介质的备份区中获取所述第二映像数 据;  The device according to claim 11, wherein the processing module comprises: an acquiring unit, configured to: when the detection result is that the first image data is incorrect or the first image data is incomplete Obtaining the second image data from a backup area of the storage medium;
加载单元, 用于加载所述第二映像数据以运行所述第二映像数据。 a loading unit, configured to load the second image data to run the second image data.
15、 根据权利要求 14所述的设备, 其特征在于, 所述处理模块还包 括: The device according to claim 14, wherein the processing module further comprises:
恢复单元, 用于当所述检测结果为所述第一映像数据不正确或所述第 一映像数据不完整时, 利用所述第二映像数据恢复所述第一映像数据。  And a recovery unit, configured to recover the first image data by using the second image data when the detection result is that the first image data is incorrect or the first image data is incomplete.
16、 根据权利要求 15所述的设备, 其特征在于, 所述加载单元, 具 体用于加载被所述第二映像数据恢复后的第一映像数据以运行所述被所 述第二映像数据恢复后的第一映像数据。  The device according to claim 15, wherein the loading unit is specifically configured to load first image data restored by the second image data to run the second image data recovery After the first image data.
17、 根据权利要求 11 所述的设备, 其特征在于, 所述处理模块, 具 体用于当所述检测结果为所述第一映像数据中的所有页的映像数据都正 确且完整时, 加载所述第一映像数据以运行所述第一映像数据。  The device according to claim 11, wherein the processing module is specifically configured to: when the detection result is that the image data of all pages in the first image data is correct and complete, The first image data is described to run the first image data.
PCT/CN2011/077258 2011-07-18 2011-07-18 Data processing method and device WO2012106897A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011800010563A CN102317920A (en) 2011-07-18 2011-07-18 Data processing method and equipment
PCT/CN2011/077258 WO2012106897A1 (en) 2011-07-18 2011-07-18 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/077258 WO2012106897A1 (en) 2011-07-18 2011-07-18 Data processing method and device

Publications (1)

Publication Number Publication Date
WO2012106897A1 true WO2012106897A1 (en) 2012-08-16

Family

ID=45429416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/077258 WO2012106897A1 (en) 2011-07-18 2011-07-18 Data processing method and device

Country Status (2)

Country Link
CN (1) CN102317920A (en)
WO (1) WO2012106897A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778356A (en) * 2016-11-17 2017-05-31 深圳市视维科技有限公司 Set-top box device prevents the method for losing core data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902583A (en) * 2003-12-31 2007-01-24 桑迪士克股份有限公司 Flash memory system startup operation
CN1908909A (en) * 2006-08-24 2007-02-07 无敌科技(西安)有限公司 Supported system of startup program and method thereof
CN1914598A (en) * 2004-01-28 2007-02-14 索尼株式会社 Semiconductor device and method for activating the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4060114B2 (en) * 2002-04-23 2008-03-12 株式会社日立製作所 Program, information processing method, information processing device, and storage device
JP4235177B2 (en) * 2002-12-11 2009-03-11 富士通株式会社 BACKUP SYSTEM, BACKUP CONTROL DEVICE, BACKUP DATA MANAGEMENT METHOD, BACKUP CONTROL PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902583A (en) * 2003-12-31 2007-01-24 桑迪士克股份有限公司 Flash memory system startup operation
CN1914598A (en) * 2004-01-28 2007-02-14 索尼株式会社 Semiconductor device and method for activating the same
CN1908909A (en) * 2006-08-24 2007-02-07 无敌科技(西安)有限公司 Supported system of startup program and method thereof

Also Published As

Publication number Publication date
CN102317920A (en) 2012-01-11

Similar Documents

Publication Publication Date Title
US8423991B2 (en) Embedded network device and firmware upgrading method
US20140365823A1 (en) Information processing device, information processing method, and computer program
CN106775610B (en) Electronic equipment starting method and electronic equipment
US9823972B2 (en) Mobile flash storage boot partition and/or logical unit shadowing
US20110320794A1 (en) Flash System And Method For Updating The Flash System
TWI490876B (en) Method and apparatus of system boot and pilot process
CN105260215A (en) Method of updating vehicle-mounted automobile data recorder terminal by USB flash disk
CN102708021B (en) Error detection in a mirrored data storage system
CN103761112A (en) Vehicle-mounted multimedia device and control method thereof
WO2016206514A1 (en) Startup processing method and device
CN102117234A (en) Method for recovering original software by mobile terminal in software upgrading failure
CN106897166B (en) Mobile terminal and repairing method thereof
US9183091B2 (en) Configuration information backup in memory systems
US20150154091A1 (en) Bios maintenance method
CN104077167A (en) Boot loading method and device based on NAND FLASH
US20140140135A1 (en) Storage device, recovery method, and recording medium for recovery program
WO2012119432A1 (en) Method for improving stability of computer system, and computer system
WO2012149774A1 (en) Method and apparatus for activating processor
CN111813753A (en) File saving method, file restoring method, device and terminal equipment
CN111552592A (en) Double-backup starting method and system
WO2015184732A1 (en) Bootstrap storage method, bootstrap fault recovery method and device, and computer storage medium
CN114385418A (en) Protection method, device, equipment and storage medium for communication equipment
CN105549985A (en) Method and system for enhancing reliability of Linux application system
CN109002317B (en) PCBA firmware upgrading method and system and PCBA
WO2012106897A1 (en) Data processing method and device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180001056.3

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11858233

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11858233

Country of ref document: EP

Kind code of ref document: A1