CN104391727A - Data writing method and system, writing equipment and target equipment - Google Patents

Data writing method and system, writing equipment and target equipment Download PDF

Info

Publication number
CN104391727A
CN104391727A CN201410770425.0A CN201410770425A CN104391727A CN 104391727 A CN104391727 A CN 104391727A CN 201410770425 A CN201410770425 A CN 201410770425A CN 104391727 A CN104391727 A CN 104391727A
Authority
CN
China
Prior art keywords
programming
data
check information
segmentation
comparison
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410770425.0A
Other languages
Chinese (zh)
Other versions
CN104391727B (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201410770425.0A priority Critical patent/CN104391727B/en
Publication of CN104391727A publication Critical patent/CN104391727A/en
Application granted granted Critical
Publication of CN104391727B publication Critical patent/CN104391727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Read Only Memory (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a data writing method, a data writing system, writing equipment and target equipment. The method comprises the following steps: the writing equipment generates piecewise calibration data of data to be written, writes the piecewise calibration data to the target equipment and judges whether the piecewise calibration data are correctly written, wherein the piecewise calibration data comprise first calibration information corresponding to the data to be written of all sections according to the number of the sections of the data to be written, an initial LBA (logic block address) and the size of a data block; the writing equipment writes the data to be written to the target equipment; the target equipment generates target written data corresponding to the data to be written and generates second calibration information corresponding to the target written data according to the piecewise calibration data, wherein the second calibration information is calibration information corresponding to the target written data of all the sections according to the number of the sections; the target equipment compares the first calibration information with the second calibration information, determines a comparison result, and sends the comparison result to the writing equipment.

Description

Data programming method, system, burn writing equipment and target device
Technical field
The present invention relates to computer technology, particularly relate to a kind of data programming method, system, burn writing equipment and target device.
Background technology
In the production run of current embedded mobile device, the mode of programming firmware adopts the flashburn tools on PC main frame by USB interface download firmware usually to treating in burn writing equipment main memory.In order to ensure the integrality of data programming, need to carry out firmware verification after programming is complete.Current method have be flashburn tools retaking of a year or grade on PC main frame by firmware data all in burn writing equipment main memory, be kept on PC main frame by programming firmware one by one byte compare; Or the flashburn tools on PC main frame calculates by the CRC check value of programming firmware before programming firmware, to read by the firmware data in programming machine main memory to calculate CRC check value after programming completes, compare two CRC and whether unanimously judge whether programming success.If programming failure, then need programming firmware again.But in most cases, may with regard to the situation of certain a bit of corrupt data in firmware, above-mentioned programming mode is adopted then to need to re-start programming completely, inefficiency, and the possibility of again makeing mistakes may be increased, especially, when system firmware data grows is huge, the limitation of this mode is more outstanding.
Summary of the invention
For this reason, the embodiment of the present invention provides a kind of data programming method, system, burn writing equipment and target device, in order to reduce the error rate of data programming, improves programming efficiency.
The embodiment of the present invention adopts following technical scheme:
First aspect, provides a kind of data programming method, comprising:
Burn writing equipment generates treats the segmentation checking data of programming data, to target device, the programming of described segmentation checking data is judged that described segmentation checking data is by correct programming; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
By described, described burn writing equipment treats that the programming of programming data is to described target device;
Described target device generates and treats the target programming data that programming data are corresponding, generates the second check information corresponding to described target programming data according to described segmentation checking data; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding;
Described in described target device comparison, the first check information, the second check information, determine comparison result, and described comparison result is sent to described burn writing equipment.Wherein, described comparison result for represent each segmentation that the first check information is corresponding treat programming data whether by correct programming to target device.
In the first possible implementation of first aspect, whether the first check information described in described target device comparison, the second check information be consistent, determines comparison result, and described comparison result is sent to described burn writing equipment comprises:
First check information, the second check information described in described target device comparison, determine the segmentation checking data of comparison failure, and the segmentation checking data of described comparison failure is sent to described burn writing equipment.
In conjunction with the implementation that the first is possible, in the implementation that the second is possible, first check information, the second check information described in described target device comparison, determine that the segmentation checking data of comparison failure also comprises: described target device deletes the successful segmentation checking data of comparison.
In conjunction with first aspect, in the implementation that the third is possible, described burn writing equipment is also according to the segmentation checking data of described comparison result determination comparison failure.
In conjunction with in second to the 4th kind of arbitrary possible implementation, described data programming method also comprises:
According to the segmentation checking data of described comparison failure, described burn writing equipment determines that programming data are treated in corresponding failed segmentation, and described failed segmentation is treated the programming of programming data is to described target device;
Described target device generates described failed segmentation and treats the target segment programming data that programming data are corresponding and the 3rd check information corresponding to described target segment programming data;
Described in described target device comparison, the first check information, the 3rd check information, determine comparison result, and described comparison result be sent to described burn writing equipment;
Repeat the determination of the segmentation checking data of comparison failure described above, the comparison of programming that programming data are treated in described failed segmentation and the first check information and the 3rd check information, until described first check information, the 3rd check information comparison success.
In conjunction with first aspect, in the 5th kind of possible implementation, described burn writing equipment generates and treats that the segmentation checking data of programming data comprises:
Treat that programming data carry out staging treating according to described segments to described, generate at least one segmentation and treat programming data, and obtain described at least one segmentation and treat the initial LBA address that programming data are corresponding and data block size;
Described at least one segmentation is treated that programming data carry out verify calculation, generates described first check information;
Treat that the first check information corresponding to programming data, initial LBA address and data block size treat the segmentation checking data of programming data described in generating based on described at least one segmentation.
In conjunction with first aspect, in the 6th kind of possible implementation, to described target device, the described boot programming treating programming data is judged that described boot is by correct programming by described burn writing equipment.
In conjunction with the 6th kind of possible implementation, in the 7th kind of possible implementation, to described target device, the described boot programming treating programming data is judged that described boot is comprised by correct programming by described burn writing equipment:
According to the boot treating programming data described in reading, determine the 4th corresponding check information;
By described boot programming to described target device;
Read the boot of described target device and generate the 5th check information according to the boot of described target device, and the 4th check information described in comparison and the 5th check information;
If described 4th check information is consistent with the 5th check information, then judge that described boot is by correct programming; If described 4th check information and the 5th check information inconsistent, then repeat the comparison of the above-mentioned determination of the 4th check information, the programming of described boot and the 4th check information and the 5th check information, until described boot is determined correct programming.
Second aspect, provides a kind of burn writing equipment, comprising:
To target device, first programming module, for generating the segmentation checking data treating programming data, judges that described segmentation checking data is by correct programming by the programming of described segmentation checking data; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
By described, second programming module, for treating that the programming of programming data is to described target device;
Receiver module, for receiving the comparison result of described target device feedback, wherein, the comparison of described comparison result the second check information that to be described target device generate according to target device and the first check information is determined.
In the first possible implementation of second aspect, also comprise: determination module, for the segmentation checking data according to described comparison result determination comparison failure.
In conjunction with the implementation that the first is possible, in the implementation that the second is possible, also comprise:
3rd programming module, for determining that according to the segmentation checking data of described comparison failure programming data are treated in corresponding failed segmentation, described failed segmentation is treated the programming of programming data is to described target device, and be triggered when described determination module determines the segmentation checking data of comparison failure again.
In conjunction with second aspect, in the implementation that the third is possible, described first programming module comprises:
Segmenting unit, for treating that programming data carry out staging treating according to described segments to described, generating at least one segmentation and treating programming data, and obtains described at least one segmentation and treat the initial LBA address that programming data are corresponding and data block size;
First generation unit, for treating that programming data carry out verify calculation to described at least one segmentation, generates described first check information;
Second generation unit, for treating that based on described at least one segmentation the first check information corresponding to programming data, initial LBA address and data block size treat the segmentation checking data of programming data described in generating.
In conjunction with second aspect, in the 4th kind of possible implementation, described burn writing equipment also comprises: the 4th programming module, for described target device, the described boot programming treating programming data is judged that described boot is by correct programming.
In conjunction with the 4th kind of possible implementation, in the 5th kind of possible implementation, described 4th programming module comprises:
Determining unit, treats the boot of programming data, determine the 4th corresponding check information for basis described in reading;
Programming unit, for by described boot programming to described target device;
Comparing unit, for reading the boot of described target device and generating the 5th check information according to the boot of described target device, and the 4th check information described in comparison and the 5th check information;
If described 4th check information is consistent with the 5th check information, then judge that described boot is by correct programming; If described 4th check information and the 5th check information inconsistent, then control described determining unit, programming unit, comparing unit perform the above-mentioned determination of the 4th check information respectively, the comparison of the programming of described boot and the 4th check information and the 5th check information, until described boot is determined correct programming.
The third aspect, provides a kind of target device, comprising:
Memory module, for storing the segmentation checking data treating programming data, wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
Generation module, for generating the target programming data treating that programming data are corresponding, generates the second check information corresponding to described target programming data according to described segmentation checking data; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding;
Comparing module, for the first check information, the second check information described in comparison, determines comparison result, and described comparison result is sent to described burn writing equipment.
In the first possible implementation of the third aspect, described comparing module comprises: the first determining unit, for the first check information, the second check information described in comparison, determine the segmentation checking data of comparison failure, and the segmentation checking data of described comparison failure is sent to described burn writing equipment.
In conjunction with the implementation that the first is possible, in the implementation that the second is possible, described comparing module, also for deleting the successful segmentation checking data of comparison.
In conjunction with first or the possible implementation of the second, in the implementation that the third is possible, described comparing module comprises:
3rd generation unit, treats the target segment programming data that programming data are corresponding and the 3rd check information corresponding to described target segment programming data for generating described failed segmentation;
First comparing unit, for the first check information, the 3rd check information described in comparison, determines comparison result, and described comparison result is sent to described burn writing equipment;
And, control the comparison of described first determining unit, the 3rd generation unit, the first comparing unit performs the determination of the segmentation checking data of comparison failure described above respectively, programming data are treated in described failed segmentation programming and the first check information and the 3rd check information, until described first check information, the 3rd check information comparison success.
Fourth aspect, provides a kind of data programming system, the target device comprising burn writing equipment and communicate to connect with described burn writing equipment,
To target device, described burn writing equipment, for generating the segmentation checking data treating programming data, judges that described segmentation checking data is by correct programming by the programming of described segmentation checking data, and treat that the programming of programming data is to described target device by described; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
Described target device, for generating the target programming data treating that programming data are corresponding, the second check information corresponding to described target programming data is generated according to described segmentation checking data, and the first check information, the second check information described in comparison, determine comparison result, and described comparison result is sent to described burn writing equipment; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding.
The embodiment of the present invention is by second check information more corresponding than each segmented objects programming data of each segmentation treating programming data target programming data after the first check information corresponding to programming data and programming, treat described in determining programming data whether by correctly programming to target device, and comparison result is sent to burn writing equipment.The first check information due to embodiment of the present invention comparison is that programming data are treated in corresponding each segmentation, namely what then comparison result was corresponding is that each segmentation treats that whether programming data are all by correct programming, according to comparison result, burn writing equipment just can judge which segmentation treats programming data not by correct programming.
Accompanying drawing explanation
The data programming system architecture diagram that Fig. 1 is suitable for by certain embodiments of the invention;
Data programming method one schematic flow sheet that Fig. 2 is suitable for by certain embodiments of the invention;
Another schematic flow sheet of data programming method that Fig. 3 is suitable for by certain embodiments of the invention;
Fig. 4 be certain embodiments of the invention the data programming method schematic flow sheet again that is suitable for.
Embodiment
By describe in detail technical scheme technology contents, structural attitude, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Refer to Fig. 1 and Fig. 2, Fig. 1 shows the data programming system that the embodiment of the present invention provides, the target device that described data programming system comprises burn writing equipment and is connected with described burn writing equipment, can data communication between described burn writing equipment and target device, burn writing equipment can will treat that programming data or firmware programming are in target device.In concrete enforcement, burn writing equipment can for having firmware or data programming to the embedded device in other equipment or PC equipment or data flashburn tools/device of being installed in equipment, and described target device can be mobile terminal, embedded device, PC equipment and the mainboard with memory module and central processing unit.
Refer to Fig. 2, Fig. 2 shows the data programming method of the embodiment of the present invention based on data programming system, comprising:
S202, burn writing equipment generate treats the segmentation checking data of programming data, to target device, the programming of described segmentation checking data is judged that described segmentation checking data is by correct programming; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
By described, S204, described burn writing equipment treat that the programming of programming data is to described target device;
S206, described target device generate and treat the target programming data that programming data are corresponding, generate the second check information corresponding to described target programming data according to described segmentation checking data; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding;
First check information, the second check information described in S208, described target device comparison, determine comparison result, and described comparison result be sent to described burn writing equipment.
Here, one skilled in the art will appreciate that the first check information comprises multiple check information, corresponding segments treats programming data respectively; Second check information comprises multiple check information equally, respectively corresponding each segmented objects programming data.Concrete, whether the first check information described in comparison, the second check information be consistent.If consistent, then described comparison result is successfully; If inconsistent, then comparative result is unsuccessfully.Wherein, described comparison result for represent each segmentation that the first check information is corresponding treat programming data whether by correct programming to target device.At specific embodiment, if comparison result is successfully, then show to treat programming data by correct programming to target device; If comparison result is unsuccessfully, then the segmentation that the check information that in the first/the second check information, comparison is inconsistent is corresponding treat programming data not by correct programming to target device.
The embodiment of the present invention is by second check information more corresponding than each segmented objects programming data of each segmentation treating programming data target programming data after the first check information corresponding to programming data and programming, treat described in determining programming data whether by correctly programming to target device, and comparison result is sent to burn writing equipment.The first check information due to embodiment of the present invention comparison is that programming data are treated in corresponding each segmentation, namely what then comparison result was corresponding is that each segmentation treats that whether programming data are all by correct programming, according to comparison result, burn writing equipment just can judge which segmentation treats programming data not by correct programming.In order to more clearly explain above-mentioned principle, for example bright below.Suppose to treat that programming data are a data firmware with 1GB data volume, after systematic analysis, set this data firmware be divided into 4 sections, namely segments is 4.
The setting of this segments can set according to the factor such as size, the efficiency of system process, the time of programming DATA POPULATION of data firmware automatically for burn writing equipment; Also can be burn writing equipment receive outside input and establish, it is 4 that such as user inputs this segments by burn writing equipment; Also can according to the processor quantity set of target device, such as target device is four nuclear equipments, then this segments can be 4.
S202, generally, burn writing equipment to treat that according to segments 4 blocks such as programming data divide, and obtains multiple segmentation and treat programming data.Certainly, burn writing equipment also can not will treat that the blocks such as programming data divide, as long as treat programming data by treating that programming Data Placement becomes with multiple segmentations of segments equal number.After dividing, burn writing equipment can get initial LBA address and the data block size that programming data are treated in each segmentation, and treats that programming data carry out verify calculation to each segmentation, obtains the first corresponding check information.Concrete, can treat that programming data carry out CRC algorithm calculating to each segmentation, obtain a CRC numerical value.After above-mentioned, burn writing equipment can obtain the segmentation checking data treating programming data, as shown in table 1 below.At specific embodiment, the form of expression of this segmentation checking data can be data layout as shown in table 1.For convenience of description, following form is to treat that programming data are waited block to divide, and address offset amount is that segmentation treats that programming size of data (i.e. 256MB) is example.
Table 1
After described segmentation checking data generates, burn writing equipment by the programming of described segmentation checking data to target device.In order to just as explanation, that suppose the original generation of burn writing equipment is segmentation checking data A, target device by programming for segmentation checking data B, burn writing equipment obtains described segmentation checking data B to target device, and compares one by one with the segmentation checking data A of original generation.If B is completely the same for segmentation checking data A, segmentation checking data, then show segmentation checking data A by correct programming to target device.If segmentation checking data A and segmentation checking data B is also not quite identical, then show that segmentation checking data A does not have by correct programming to target device.Now, burn writing equipment can again by the programming of segmentation checking data to target device, and carry out contrast judgement, until treat segmentation checking data by correct programming to target device.
S204, segmentation checking data are by after correct programming to target device, by described, burn writing equipment treats that the programming of programming data is to target device.
S206, target device, by after programming data, obtain corresponding target programming data.The second check information corresponding to target programming data is generated according to segmentation checking data.Concrete, according to the data of each segmentation in the acquisition of information target programming data such as the LBA start address enumerated in segmentation checking data, data block size, i.e. each segmented objects programming data.Target device carries out verify calculation by checking algorithm to each segmented objects programming data again, such as, carry out verify calculation by CRC algorithm to each segmented objects programming data, generates the 2nd CRC numerical value that each segmented objects programming data are corresponding, i.e. the second check information.The second check information obtained can be as shown in table 2 below.
Table 2
Target device is a CRC1-4, the 2nd CRC1-4 described in corresponding comparison respectively, generates comparison result.Described comparison result can be as shown in table 3 below.
Table 3
Described comparison result is sent to burn writing equipment by S208, target device.
Can know clearly after burn writing equipment receives this comparison result which blocks of data treating programming data is not by correct programming.Burn writing equipment treats the total data of programming data without the need to programming again, and only programming, not by the data of correct programming (as programming data 3,4 are treated in the segmentation in foregoing description), improves data programming efficiency, saved cost again.Concrete, burn writing equipment can determine after receiving comparison result that programming data are treated in the segmentation of failure, thus determines that programming data are treated in corresponding failed segmentation, and the segmentation for failure treats that programming data re-start above-mentioned programming process.
In order to programming data are treated in the segmentation that burn writing equipment can be made to look for programming failure quickly, in the further improvement of the embodiment of the present invention, target device also can delete the successful segmentation checking data of comparison, the segmentation checking data of comparison failure is preserved, and only the segmentation checking data of comparison failure is sent to burn writing equipment.Burn writing equipment can find corresponding failed segmentation to treat programming data according to the segmentation checking data of comparison failure rapidly.Based on illustrating above, the segmentation checking data of comparison failure is as shown in table 4 below.
Table 4
Source segment data sequence number First check information Initial LBA address Data block size
Programming data 3 are treated in segmentation One CRC3 One LBA address+512MB 256MB
Programming data 4 are treated in segmentation One CRC4 One LBA address+768MB 256MB
Refer to Fig. 1 and Fig. 3, the present embodiment provides a kind of data programming method, the method be applied to comprise as shown in Figure 1 burn writing equipment, target device data programming system, described in data programming system shown in Fig. 1 describes and can refer to above, do not repeat them here.In the present embodiment, described in treat that programming data are the system image of a firmware, it has boot.Fig. 3 illustrates the sequential process flow diagram of data programming method, and concrete scheme is as follows.
(1) burn writing equipment first reads the boot treated in the firmware of programming, calculates the CRC numerical value (i.e. the 4th check information) of boot, starts this boot of programming in the main memory of target device.Boot in retaking of a year or grade main memory the CRC numerical value (the 5th check information) calculating the boot that retaking of a year or grade is returned compare, if consistent, show boot programming success.
(2) burn writing equipment reads the system image (namely treating programming data) treating programming, and receive the segments of the system image of producers' input, staging treating is carried out to described system image, obtains multiple segmented system mirror image (namely programming data are treated in segmentation).Burn writing equipment calculates the CRC numerical value (i.e. the first check information) of each segmented system mirror image of this system image respectively, be recorded as list data (i.e. segmentation checking data), the form of list data is the initial LBA address of this segmented system mirror image and the data block size of this segmented system mirror image, and the CRC numerical value of correspondence.Concrete form can consult table 1 above.
(3) burn writing equipment is by this list data programming in the main memory of target device, and this form of retaking of a year or grade, this list data preserved with burn writing equipment this locality compares, and guarantees that list data programming is correct.Concrete, that suppose that burn writing equipment retaking of a year or grade returns is list data B, and the original list data of the local storage of burn writing equipment is list data A.If list data A and list data B is completely the same, then show list data A by correctly programming to target device.Otherwise, need again programming list data A to target device, and again multilevel iudge list data A whether by correct programming to target device.
(4) burn writing equipment is by the programming of whole system mirror image as in the main memory of target device, and target device generates corresponding goal systems mirror image (i.e. target programming data).
(5) burn writing equipment sends reset command to target device.Target device restarts also load operating boot, and (step (1) programming verifies, can guarantee correct), boot is according to the field (form described in step (2)) enumerated in list data (step (2) produces), the each segmented objects system image (namely segmented objects treats programming data) reading target device this locality successively calculates CRC numerical value (i.e. the second check information), and the real CRC numerical value of this segmented objects system image (i.e. the first check information) compares in list data.If comparative result difference, show this segmented system mirror image programming mistake; If comparative result is identical, show that this segmented system mirror image programming is correct, concrete, table 3 above can be consulted.Further, target device also can by list data, and the segment information of verification succeeds is deleted, and only retains the failed segment information (i.e. the segmentation checking data of comparison failure) of verification.If each segmented system mirror image verification all successes, then the list data in target device main memory is all deleted complete.
(6) suppose that having some segment data to verify finds that programming have failed more afterwards, the information that then this segment data is corresponding can be remained (as described in step (5) by target device in described list data, the corresponding informance of the segmented system mirror image of success programming all can be deleted, the corresponding informance having the segmented system mirror image of programming failure only can be retained), and send to burn writing equipment.
(7) burn writing equipment receives the list data of target device passback, according to the residual term (information of the segmented system mirror image of programming failure described namely, comprise the LBA address of this segmented system mirror image, size, CRC check value), this segmented system mirror image of independent programming, need not the whole system mirror data of programming again.
(8) before, failed segment data is by after programming again, target device also can according to the list data information (part charge of the corresponding last programming failure of residual list data information residual before, the namely part charge of this programming more corresponding, the i.e. segmentation checking data of comparison failure), calculate the CRC numerical value (the 3rd check information) of the segmented system mirror image of this programming, compare.According to described mode before, write as merit if reburned, then delete to reburn in residual list data information and write successful segmented system Mirror Info, if failure, continue to retain this information, finally send to burn writing equipment again.
The like, circulate from step (7), until all segmented system mirror images are by entirely true programming success.
Refer to Fig. 4, the present embodiment still provides a kind of data programming method, and here, burn writing equipment is the PC end being provided with flashburn tools, is called for short PC and holds flashburn tools; Target device be receive and store treat programming data treat burn writing equipment, comprise main memory and central processing element, wherein, PC holds flashburn tools toward treating that the data of burn writing equipment programming are all stored in main memory, treats that programming data are a system image.The specific works principle of the present embodiment is as follows.
1. 2. PC holds flashburn tools by boot programming in the main memory treating burn writing equipment, and retaking of a year or grade boot, verify, guarantee that boot programming is correct.
3. PC holds flashburn tools to receive the system image segments of outside input, PC holds flashburn tools according to segments, diced system mirror image, and calculate CRC piecemeal, and by the LBA address of programming position needed for this section and the size one_to_one corresponding of this section of system image, composition form, this form of programming is in the main memory treating burn writing equipment.
4. PC hold flashburn tools retaking of a year or grade to treat the form data of the 3. institute's programming of step in burn writing equipment verifies, guarantee that its programming is correct.
5. PC holds flashburn tools by complete system image programming in the main memory treating burn writing equipment.
6. treat the full system image that 5. central processing element of burn writing equipment is obtained by step, and the segmented mode in the form 3. obtained according to step calculates the CRC of each facet mirror picture one by one and compares with the CRC in step 3. form.Relatively this successful segmentation mirror image data in the table are then deleted in success, if relatively more failed, then retain this failed facet mirror picture data in the table.
7. treat that information remaining in the form of its this locality sends to PC to hold flashburn tools by burn writing equipment, PC can inquire about after holding flashburn tools to obtain and learn which segment data is by programming failure.
8. PC holds flashburn tools from complete system image, extract the segmentation mirror image data of a front programming failure, then this carries out programming.
9. successively step 5.-8. circulate, until system image is by whole programming success.
The embodiment of the present invention also provides a kind of burn writing equipment, comprising:
To target device, first programming module, for generating the segmentation checking data treating programming data, judges that described segmentation checking data is by correct programming by the programming of described segmentation checking data; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
By described, second programming module, for treating that the programming of programming data is to described target device;
Receiver module, for receiving the comparison result of described target device feedback, wherein, the comparison of described comparison result the second check information that to be described target device generate according to target device and the first check information is determined.
The embodiment of the present invention also provides a kind of target device, comprising:
Memory module, for storing the segmentation checking data treating programming data, wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
Generation module, for generating the target programming data treating that programming data are corresponding, generates the second check information corresponding to described target programming data according to described segmentation checking data; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding;
Comparing module, for the first check information, the second check information described in comparison, determines comparison result, and described comparison result is sent to described burn writing equipment.
Principle of work and the corresponding beneficial effect of apparatus embodiments of the present invention are consistent with preceding method embodiment theory, specifically can consult aforesaid content, not repeat them here.
The embodiment of the present invention also provides a kind of burn writing equipment, comprising:
Storer;
One or more processor; And,
One or more module, described one or more module is stored in which memory and is configured to be performed by described one or more processor, and described one or more module is for performing the instruction of following steps:
Generate and treat the segmentation checking data of programming data, to target device, the programming of described segmentation checking data is judged that described segmentation checking data is by correct programming; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
Treat that the programming of programming data is to described target device by described;
Receive the comparison result of described target device feedback, wherein, the comparison of described comparison result the second check information that to be described target device generate according to target device and the first check information is determined.
The embodiment of the present invention also provides a kind of target device, comprising:
Storer;
One or more processor; And,
One or more module, described one or more module is stored in which memory and is configured to be performed by described one or more processor, and described one or more module is for performing the instruction of following steps:
Store and treat the segmentation checking data of programming data, wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
Generate and treat the target programming data that programming data are corresponding, generate the second check information corresponding to described target programming data according to described segmentation checking data; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding;
Comparison first check information, the second check information, determine comparison result, and described comparison result is sent to described burn writing equipment.
Described processor also can be configured to perform the step that can realize preceding method embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, multi-purpose computer, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the process flow diagram of method, equipment (system) and computer program according to embodiment and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.

Claims (19)

1. a data programming method, is characterized in that, comprising:
Burn writing equipment generates treats the segmentation checking data of programming data, to target device, the programming of described segmentation checking data is judged that described segmentation checking data is by correct programming; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
By described, described burn writing equipment treats that the programming of programming data is to described target device;
Described target device generates and treats the target programming data that programming data are corresponding, generates the second check information corresponding to described target programming data according to described segmentation checking data; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding;
Described in described target device comparison, the first check information, the second check information, determine comparison result, and described comparison result is sent to described burn writing equipment.
2. method according to claim 1, is characterized in that, described in described target device comparison, the first check information, the second check information, determine comparison result, and described comparison result is sent to described burn writing equipment comprises:
First check information, the second check information described in described target device comparison, determine the segmentation checking data of comparison failure, and the segmentation checking data of described comparison failure is sent to described burn writing equipment.
3. method according to claim 2, is characterized in that, the first check information, the second check information described in described target device comparison, determines that the segmentation checking data of comparison failure also comprises: described target device deletes the successful segmentation checking data of comparison.
4. method according to claim 1, is characterized in that, also comprises: described burn writing equipment is according to the segmentation checking data of described comparison result determination comparison failure.
5. the method according to any one of claim 2 to 4, is characterized in that, also comprises:
According to the segmentation checking data of described comparison failure, described burn writing equipment determines that programming data are treated in corresponding failed segmentation, and described failed segmentation is treated the programming of programming data is to described target device;
Described target device generates described failed segmentation and treats the target segment programming data that programming data are corresponding and the 3rd check information corresponding to described target segment programming data;
Described in described target device comparison, the first check information, the 3rd check information, determine comparison result, and described comparison result be sent to described burn writing equipment;
Repeat the determination of the segmentation checking data of comparison failure described above, the comparison of programming that programming data are treated in described failed segmentation and the first check information and the 3rd check information, until described first check information, the 3rd check information comparison success.
6. method according to claim 1, is characterized in that, described burn writing equipment generates and treats that the segmentation checking data of programming data comprises:
Treat that programming data carry out staging treating according to described segments to described, generate at least one segmentation and treat programming data, and obtain described at least one segmentation and treat the initial LBA address that programming data are corresponding and data block size;
Described at least one segmentation is treated that programming data carry out verify calculation, generates described first check information;
Treat that the first check information corresponding to programming data, initial LBA address and data block size treat the segmentation checking data of programming data described in generating based on described at least one segmentation.
7. method according to claim 1, is characterized in that, also comprises: to described target device, the described boot programming treating programming data is judged that described boot is by correct programming by described burn writing equipment.
8. method according to claim 7, is characterized in that, to described target device, the described boot programming treating programming data is judged that described boot is comprised by correct programming by described burn writing equipment:
According to the boot treating programming data described in reading, determine the 4th corresponding check information;
By described boot programming to described target device;
Read the boot of described target device and generate the 5th check information according to the boot of described target device, and the 4th check information described in comparison and the 5th check information;
If described 4th check information is consistent with the 5th check information, then judge that described boot is by correct programming; If described 4th check information and the 5th check information inconsistent, then repeat the comparison of the above-mentioned determination of the 4th check information, the programming of described boot and the 4th check information and the 5th check information, until described boot is determined correct programming.
9. a burn writing equipment, is characterized in that, comprising:
To target device, first programming module, for generating the segmentation checking data treating programming data, judges that described segmentation checking data is by correct programming by the programming of described segmentation checking data; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
By described, second programming module, for treating that the programming of programming data is to described target device;
Receiver module, for receiving the comparison result of described target device feedback, wherein, the comparison of described comparison result the second check information that to be described target device generate according to target device and the first check information is determined.
10. burn writing equipment according to claim 9, is characterized in that, also comprises: determination module, for the segmentation checking data according to described comparison result determination comparison failure.
11. burn writing equipments according to claim 10, is characterized in that, also comprise:
3rd programming module, for determining that according to the segmentation checking data of described comparison failure programming data are treated in corresponding failed segmentation, described failed segmentation is treated the programming of programming data is to described target device, and be triggered when described determination module determines the segmentation checking data of comparison failure again.
12. burn writing equipments according to claim 9, is characterized in that, described first programming module comprises:
Segmenting unit, for treating that programming data carry out staging treating according to described segments to described, generating at least one segmentation and treating programming data, and obtains described at least one segmentation and treat the initial LBA address that programming data are corresponding and data block size;
First generation unit, for treating that programming data carry out verify calculation to described at least one segmentation, generates described first check information;
Second generation unit, for treating that based on described at least one segmentation the first check information corresponding to programming data, initial LBA address and data block size treat the segmentation checking data of programming data described in generating.
13. burn writing equipments according to claim 9, is characterized in that, also comprise: the 4th programming module, for described target device, the described boot programming treating programming data is judged that described boot is by correct programming.
14. burn writing equipments according to claim 13, is characterized in that, described 4th programming module comprises:
Determining unit, treats the boot of programming data, determine the 4th corresponding check information for basis described in reading;
Programming unit, for by described boot programming to described target device;
Comparing unit, for reading the boot of described target device and generating the 5th check information according to the boot of described target device, and the 4th check information described in comparison and the 5th check information;
If described 4th check information is consistent with the 5th check information, then judge that described boot is by correct programming; If described 4th check information and the 5th check information inconsistent, then control described determining unit, programming unit, comparing unit perform the above-mentioned determination of the 4th check information respectively, the comparison of the programming of described boot and the 4th check information and the 5th check information, until described boot is determined correct programming.
15. 1 kinds of target devices, is characterized in that, comprising:
Memory module, for storing the segmentation checking data treating programming data, wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
Generation module, for generating the target programming data treating that programming data are corresponding, generates the second check information corresponding to described target programming data according to described segmentation checking data; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding;
Comparing module, for the first check information, the second check information described in comparison, determines comparison result, and described comparison result is sent to described burn writing equipment.
16. target devices according to claim 15, it is characterized in that, described comparing module comprises: the first determining unit, for the first check information, the second check information described in comparison, determine the segmentation checking data of comparison failure, and the segmentation checking data of described comparison failure is sent to described burn writing equipment.
17. target devices according to claim 16, is characterized in that, described comparing module, also for deleting the successful segmentation checking data of comparison.
18. target devices according to claim 16 or 17, it is characterized in that, described comparing module comprises:
3rd generation unit, treats the target segment programming data that programming data are corresponding and the 3rd check information corresponding to described target segment programming data for generating described failed segmentation;
First comparing unit, for the first check information, the 3rd check information described in comparison, determines comparison result, and described comparison result is sent to described burn writing equipment;
And, control the comparison of described first determining unit, the 3rd generation unit, the first comparing unit performs the determination of the segmentation checking data of comparison failure described above respectively, programming data are treated in described failed segmentation programming and the first check information and the 3rd check information, until described first check information, the 3rd check information comparison success.
19. 1 kinds of data programming systems, is characterized in that, the target device comprising burn writing equipment and communicate to connect with described burn writing equipment,
To target device, described burn writing equipment, for generating the segmentation checking data treating programming data, judges that described segmentation checking data is by correct programming by the programming of described segmentation checking data, and treat that the programming of programming data is to described target device by described; Wherein, described segmentation checking data comprise according to described in treats the segments that programming data are divided, the first check information corresponding to programming data, initial LBA address and data block size are treated in each segmentation;
Described target device, for generating the target programming data treating that programming data are corresponding, the second check information corresponding to described target programming data is generated according to described segmentation checking data, and the first check information, the second check information described in comparison, determine comparison result, and described comparison result is sent to described burn writing equipment; Wherein, described second check information is according to described segments, the check information that each segmented objects programming data are corresponding.
CN201410770425.0A 2014-12-15 2014-12-15 Data programming method, system, burn writing equipment and target device Active CN104391727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410770425.0A CN104391727B (en) 2014-12-15 2014-12-15 Data programming method, system, burn writing equipment and target device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410770425.0A CN104391727B (en) 2014-12-15 2014-12-15 Data programming method, system, burn writing equipment and target device

Publications (2)

Publication Number Publication Date
CN104391727A true CN104391727A (en) 2015-03-04
CN104391727B CN104391727B (en) 2017-11-21

Family

ID=52609635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410770425.0A Active CN104391727B (en) 2014-12-15 2014-12-15 Data programming method, system, burn writing equipment and target device

Country Status (1)

Country Link
CN (1) CN104391727B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978253A (en) * 2015-06-24 2015-10-14 合肥格易集成电路有限公司 Target file checking method and apparatus
CN108363579A (en) * 2018-02-08 2018-08-03 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN109460239A (en) * 2017-09-06 2019-03-12 深圳市中兴微电子技术有限公司 A kind of method, system and the replication tool of more veneer burnings
CN109828764A (en) * 2018-12-29 2019-05-31 惠州市蓝微电子有限公司 Generation, method for burn-recording and its equipment of recordable paper
CN111258631A (en) * 2020-01-13 2020-06-09 广芯微电子(广州)股份有限公司 Automatic mass production system and method for terminal equipment parameters
CN111274311A (en) * 2018-12-05 2020-06-12 聚好看科技股份有限公司 Data synchronization method and device for cross-machine-room database
CN111309361A (en) * 2020-02-13 2020-06-19 北京集创北方科技股份有限公司 Data reading and writing method and device, electronic equipment and storage medium
CN112073556A (en) * 2020-09-15 2020-12-11 成都申威科技有限责任公司 MAC address programming method for batch network cards, storage medium and terminal
WO2021097704A1 (en) * 2019-11-20 2021-05-27 深圳市欢太科技有限公司 Data transmission method, data downloading method and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916876A (en) * 2005-08-19 2007-02-21 鸿富锦精密工业(深圳)有限公司 Method for burning chip
CN101464876A (en) * 2007-12-19 2009-06-24 金宝电子(上海)有限公司 Data updating method for electronic dictionary machine
CN102508732A (en) * 2011-10-25 2012-06-20 深圳芯邦科技股份有限公司 Method and device for improving one-time programmable memory use performance
CN103997683A (en) * 2014-05-06 2014-08-20 四川长虹电器股份有限公司 System for using set-top-box platform to realize customizable Flash CD-ROM recorder and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916876A (en) * 2005-08-19 2007-02-21 鸿富锦精密工业(深圳)有限公司 Method for burning chip
CN101464876A (en) * 2007-12-19 2009-06-24 金宝电子(上海)有限公司 Data updating method for electronic dictionary machine
CN102508732A (en) * 2011-10-25 2012-06-20 深圳芯邦科技股份有限公司 Method and device for improving one-time programmable memory use performance
CN103997683A (en) * 2014-05-06 2014-08-20 四川长虹电器股份有限公司 System for using set-top-box platform to realize customizable Flash CD-ROM recorder and method thereof

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978253A (en) * 2015-06-24 2015-10-14 合肥格易集成电路有限公司 Target file checking method and apparatus
CN104978253B (en) * 2015-06-24 2018-02-09 合肥格易集成电路有限公司 A kind of method and apparatus of file destination verification
CN109460239A (en) * 2017-09-06 2019-03-12 深圳市中兴微电子技术有限公司 A kind of method, system and the replication tool of more veneer burnings
CN108363579A (en) * 2018-02-08 2018-08-03 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN108363579B (en) * 2018-02-08 2021-06-29 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN111274311A (en) * 2018-12-05 2020-06-12 聚好看科技股份有限公司 Data synchronization method and device for cross-machine-room database
CN109828764A (en) * 2018-12-29 2019-05-31 惠州市蓝微电子有限公司 Generation, method for burn-recording and its equipment of recordable paper
CN109828764B (en) * 2018-12-29 2022-06-24 惠州市蓝微电子有限公司 Method and device for generating and burning file
WO2021097704A1 (en) * 2019-11-20 2021-05-27 深圳市欢太科技有限公司 Data transmission method, data downloading method and terminal
CN111258631A (en) * 2020-01-13 2020-06-09 广芯微电子(广州)股份有限公司 Automatic mass production system and method for terminal equipment parameters
CN111309361A (en) * 2020-02-13 2020-06-19 北京集创北方科技股份有限公司 Data reading and writing method and device, electronic equipment and storage medium
CN112073556A (en) * 2020-09-15 2020-12-11 成都申威科技有限责任公司 MAC address programming method for batch network cards, storage medium and terminal

Also Published As

Publication number Publication date
CN104391727B (en) 2017-11-21

Similar Documents

Publication Publication Date Title
CN104391727A (en) Data writing method and system, writing equipment and target equipment
CN104461641A (en) Data burning and writing method, system and equipment and target equipment
US10649769B2 (en) Vehicle-mounted control device, program writing device, program generating device and program
CN108563532B (en) Data processing method and related device
CN106558332B (en) Data processing device and method of operating the same
CN107870727B (en) Method and apparatus for storing data
CN109582653A (en) Compression, decompression method and the equipment of file
CN103959256A (en) Fingerprint-based data deduplication
CN104765693A (en) Data storage method, device and system
CN109388582B (en) Data storage device and data erasing method thereof
CN105808151A (en) Solid-state disk storage device and data access method of solid-state disk storage device
US8347052B2 (en) Initializing of a memory area
US9081658B2 (en) Storage device and data management method thereof
TW201445313A (en) Memory storage apparatus and method for restoring thereof, memory controller
CN105308575A (en) Method and device for error correcting code (ECC) error handling
CN103617260A (en) Index generation method and device for repeated data deletion
CN104951342A (en) Method and device for adjusting starting sequence
CN104205780A (en) Data storage method and device
US9875046B2 (en) Tape backup and restore in a disk storage environment with intelligent data placement
CN104484132A (en) Data reduction method and device
CN104408126B (en) A kind of persistence wiring method of database, device and system
CN107153510A (en) Memory Controller and the method for managing memory
CN106658034A (en) File storage and reading method and device
CN105138528B (en) Method and device for storing and reading multi-value data and access system thereof
CN105718215A (en) Memory System And The Operation Method Thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.

CP01 Change in the name or title of a patent holder