CN102543193B - A kind of flash recordable method, recording device and programming system - Google Patents

A kind of flash recordable method, recording device and programming system Download PDF

Info

Publication number
CN102543193B
CN102543193B CN201110457782.8A CN201110457782A CN102543193B CN 102543193 B CN102543193 B CN 102543193B CN 201110457782 A CN201110457782 A CN 201110457782A CN 102543193 B CN102543193 B CN 102543193B
Authority
CN
China
Prior art keywords
valid data
data
block
descriptor
information
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.)
Active
Application number
CN201110457782.8A
Other languages
Chinese (zh)
Other versions
CN102543193A (en
Inventor
廖青山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201110457782.8A priority Critical patent/CN102543193B/en
Publication of CN102543193A publication Critical patent/CN102543193A/en
Application granted granted Critical
Publication of CN102543193B publication Critical patent/CN102543193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of flash recordable method, comprise and the message file of download and at least one data file are synthesized the recordable paper that comprises block of information and data field, this data field comprises the valid data in data file, and block of information comprises the descriptor of corresponding valid data in message file; The block of information of reading recordable paper obtains the descriptor of each valid data; According to the descriptor of each valid data, read each valid data successively; When often reading valid data, then according to the descriptor of valid data, these valid data are burnt in flash memory, thus avoid causing descriptor file and the unmatched problem of valid data file because of maloperation, and do not comprise padding data in this recordable paper, thus skip padding data during burning, convenient during burning, safety; And only need download recordable paper, thus carry out burning according to this recordable paper, improve efficiency.Present invention also offers recording device and programming system.

Description

A kind of flash recordable method, recording device and programming system
Technical field
The present invention relates to flash memory, particularly relate to a kind of flash recordable method, recording device and programming system.
Background technology
At present, the method for burn-recording of flash memory has two kinds: one for master slice copy mode, after carrying flash, then plate is carried the flash that on flash, corresponding content write is empty by the copy content on the original flash of user to plate; Two is file mode, is placed in portable hard drive or programmable device built-in hard disk by specified file, then reads the content of this file and write flash according to the mode of specifying.
When adopting file mode burning, need two files: the actual data file wanting burning, see Fig. 1, is the form of data file; The descriptor file of data of description position in flash, see Fig. 2, is the form of descriptor file.Adopt file mode burning time, need to download this descriptor file and data file respectively, if but due to misoperation time, data file and descriptor file are not mated, thus cause the content false being burnt to flash; And during burning, be the content of order read data files, when data are discontinuous in flash, then have padding data, thus cause data file huge.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, provides a kind of flash recordable method, recording device and programming system, can avoid the matching problem between message file and data file, and burning is convenient, safety.
In order to solve the problems of the technologies described above, embodiments provide a kind of flash recordable method, comprising:
Message file described in the message file of download and at least one data file and described data file are synthesized the recordable paper that comprises data field and block of information, described data field comprises the valid data in data file described in each, and described block of information comprises the descriptor corresponding to described valid data in described message file;
Read the block of information of described recordable paper, obtain the descriptor of each valid data; Described descriptor comprises described valid data start address in a flash memory and size;
According to the descriptor of each valid data, read each valid data in described data field successively;
When often reading valid data, then according to the descriptor of these valid data, read valid data are burnt in described flash memory.
Wherein, the block of information of the described recordable paper of described reading, before obtaining the step of the descriptor of each valid data, also comprises:
Detect described flash memory, obtain the characteristic information of described flash memory;
Whole flash memory is wiped according to described characteristic information.
Wherein, the described descriptor according to each valid data, reads the step of each valid data in described data field successively, specifically comprises:
Before often reading valid data, according to the descriptor of these valid data, wipe the region corresponding to these valid data in described flash memory;
According to the descriptor of valid data, read the valid data in described data field.
Wherein, described when often reading valid data, then according to the descriptor of read valid data read valid data are burnt to the step in described flash memory, specifically comprise:
Whenever reading valid data, detect whether the current block that will write these valid data is bad block, if not, then these valid data are written in current block; If current block is bad block, then skip described current block, the described valid data read are written in the follow-up block not for bad block.
Wherein, the size of described block of information is predefined, or comprise in described block of information block of information terminate mark.
A kind of recording device, comprising:
Descriptor read module, synthesizing message file and at least one data file the block of information that comprises the recordable paper of block of information and data field for reading, obtaining the descriptor of valid data in each data file; Described data field comprises the valid data in each data file, and described block of information comprises and corresponds to the descriptor of described valid data in described message file, and described descriptor comprises the size of described valid data and its start address in a flash memory;
Valid data read module, for the descriptor according to each valid data, reads each valid data in described data field successively;
Burning module, for when often reading valid data, read described valid data are burnt in flash memory by the descriptor according to these valid data.
Wherein, described recording device also comprises:
Characteristic information acquisition module, for detecting described flash memory, obtains the characteristic information of described flash memory;
Flash memory erase module, for wiping whole flash memory according to described characteristic information.
Wherein, described recording device also comprises;
Region erasing module, before often reading valid data at described valid data read module, according to the descriptor of these valid data, wipes the region corresponding to described valid data in described flash memory;
Described burning module be used for when often reading valid data, according to the descriptor of these valid data, these valid data read are write described region erasing module wipe correspond to these valid data region in.
Wherein, described recording device also comprises:
Detection module, for when often reading valid data, detects whether the current block that will write these valid data in described flash memory is bad block;
Described burning module is used for often reading valid data, and when detecting that the current block that will write these valid data is not bad block, writes in described current block by these valid data read; Or
Often reading valid data, and when detecting that the current block that will write these valid data is bad block, skipping described current block, these valid data read are being written in the follow-up block not for bad block.
A kind of programming system, comprising:
Synthesis module, for synthesizing the message file of download and at least one data file the recordable paper that comprises data field and block of information; And recording device described above.
Implement the embodiment of the present invention, there is following beneficial effect:
The flash recordable method of the embodiment of the present invention, comprises number by message file and data file being synthesized
According to the recordable paper of district and block of information, wherein data field comprises multiple valid data, block of information comprises the descriptor of each valid data, namely namely valid data are included by data file and message file being synthesized, include again the recordable paper of the descriptor of valid data, avoid when the descriptor of valid data and valid data is placed in two files respectively, descriptor file and the unmatched problem of valid data file is caused due to maloperation, simultaneously owing to not comprising padding data in this recordable paper, this recordable paper is small and exquisite, thus during burning, skipped padding data, convenient during burning, safety, even and if there is bad block in flash memory, also only need to download once this recordable paper, thus carry out burning according to this recordable paper, improve efficiency, and not easily make mistakes.
The block of information of flash recordable method owing to pre-defining size in recordable paper of the embodiment of the present invention, thus when reading data, the fixed position that can be directly to this recordable paper starts to read data, and then makes the method simpler.
The flash recordable method of the embodiment of the present invention, by coming the starting position in identification data district according to the end mark be arranged in block of information, thus reads data, because the size of this block of information is variable, and then has stronger dirigibility.
The flash recordable method of the embodiment of the present invention, both valid data were comprised by downloading, include again the recordable paper of the descriptor of valid data, when burning valid data, even if run into bad block, also the descriptor of valid data and valid data directly can be read from this recordable paper downloaded, avoid needing the separately write of each valid data, be about to the data file comprising multiple valid data, cut into many parts, be put into multiple file, and when causing burning data, need to download, erasing, write situation repeatedly, thus improve burning efficiency, and be not easy to make mistakes.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the form schematic diagram of existing data file;
Fig. 2 is the form schematic diagram of existing descriptor file;
Fig. 3 is the process flow diagram of an embodiment of flash recordable method of the present invention;
Fig. 4 is the form schematic diagram of the recordable paper in an embodiment of flash recordable method of the present invention;
Fig. 5 is the process flow diagram of the another embodiment of flash recordable method of the present invention;
Fig. 6 is the process flow diagram of an embodiment again of flash recordable method of the present invention;
Fig. 7 is the functional block diagram of an embodiment of recording device of the present invention;
Fig. 8 is the functional block diagram of the another embodiment of recording device of the present invention;
Fig. 9 is the functional block diagram of an embodiment of programming system of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention is by synthesizing the recordable paper comprising block of information and data field by message file and data file, and the valid data of data field are read according to the descriptor of the valid data in this block of information, and the valid data of reading are burnt in flash memory, owing to not only having included valid data in this recordable paper but also having comprised the descriptor of valid data, avoid the unmatched problem between data file and description document, simultaneously owing to not comprising padding data in this recordable paper, this recordable paper is small and exquisite, thus during burning, skipped padding data, convenient during burning, safety, and improve burning efficiency.
See Fig. 3, it is the process flow diagram of an embodiment of the flash recordable method of the embodiment of the present invention.The flash recordable method of the present embodiment, specific implementation process is as follows:
S11, the message file of download and at least one data file are synthesized the recordable paper that comprises block of information and data field, this data field comprises the valid data in each data file, and block of information comprises the descriptor corresponding to valid data in this message file.During concrete enforcement, the message file first generated in download terminal and multiple data file; And then downloaded message file and multiple data file are synthesized the recordable paper that comprises block of information and data field, descriptor by the valid data in message file copies to the block of information of this recordable paper, and the valid data in each valid data file are copied to the data field of this recordable paper, thus synthesized a recordable paper not only having comprised valid data but also comprised effective data specifying-information, then recording device bootloader, make it enter standby condition, and comprise the recordable paper of block of information and data field after downloading this synthesis.In one embodiment, copy to block of information by the direct descriptor by all valid data in this message file, and then according to the descriptor of each valid data, the valid data in each data file are copied to data field.Because this descriptor includes each data file start address in a flash memory, size, and the Data Filename of correspondence, according to the valid data copied in each data file that put in order of the descriptor of each valid data in this message file, thus the synthesis of message file and data file can be completed; Or first descriptor corresponding for first valid data is copied to block of information, then the valid data in first of correspondence data file are copied to data field; And then the descriptor copying next valid data is to block of information, then the valid data in this next data file of correspondence are copied to data field.Can certainly adopt other modes that the descriptor in message file is copied to this block of information, each valid data are copied to this data field, see Fig. 4, be the form of recordable paper synthesized in the present embodiment.In one embodiment, need burning set-top box software in the nandflash of 128M size, this software content comprises: uboot, loader, kernel, application, userdata etc., and these data, need the ad-hoc location be burnt in flash, but these data do not take whole flash, the recordable paper generated in the present embodiment is as follows:
00000000000004000000010000008000
0000A000000028000000D0000000A000
0000000200002000
……
Uboot data (256K)
Loader data (8M)
Kernel data (2.5M)
Application data (10M)
Userdata data (2M).
Follow-uply continue to use the valid data in the present embodiment and descriptor thereof by continuing.
In the present embodiment, before synthesis recordable paper, the size of the block of information of this recordable paper can be pre-defined, thus when reading valid data, directly from this recordable paper, valid data can be read fixed position.Certainly the size of this block of information is not predefined yet, but arrange in this block of information a block of information terminate mark, thus be convenient to terminate mark distinguish block of information and data field according to this, this terminates to identify certain particular value that can be and be arranged on block of information end position, such as " 0 ", also can be a numerical value of the number of valid data that the expression data field that is arranged on the beginning of this block of information comprises.
S12, reads the block of information of recordable paper, obtains the descriptor of each valid data, and this descriptor comprises the size of valid data and its start address in a flash memory.In one embodiment, descriptor due to the block of information of the recordable paper of synthesis have employed the mode of height byte reversal, the descriptor of these 5 valid data uboot, loader, kernel, application, userdata that the block of information of then reading this recordable paper obtains is respectively: start address 0x0, size 0x40000; Start address 0x100000, size 0x800000; Start address 0xA00000, size 0x280000; Start address 0xD00000, size 0xA00000; Start address 0x2000000, size 0x200000.
S13, according to the descriptor of each valid data, reads each valid data in the data field of recordable paper successively.During concrete enforcement, before this step S13 of execution, also need to detect flash memory, obtain this flash memory and comprise how many blocks, and the characteristic information such as the size of each piece, and wipe whole flash memory according to this characteristic information, so that follow-up burning.In one embodiment, first detect flash chip by recording device, read flash chip characteristic information, and wipe whole flash according to this characteristic information.
According to the size of first valid data uboot; 0x40000, reads 256k data from starting position, data field order;
Size according to second valid data loader: 0x800000, the position that first valid data terminate from data field, order reads 8M data;
Size according to the 3rd valid data kernel: 0x280000, the position that upper valid data terminate from data field, order reads 2.5M data;
Size according to the 4th valid data application: size 0xA00000, from a valid data end position on data field, order reads 10M data;
Size according to the 5th valid data userdata: 0x200000, from data field, valid data connect end position, order reads 2M data.
These read valid data, when often reading valid data, then according to the descriptor of these valid data, are burnt in flash memory by S14.In one embodiment, according to descriptors such as the size of these valid data read in step S12 and the start addresses in flash, these valid data read are written in flash:
When reading first valid data uboot, according to the size of this first valid data uboot and the start address in flash: 0x0 thereof, immediately this first valid data uboot is write the 0x0 place of flash;
When reading the second valid data loader, according to the size of this second valid data loader and the start address in flash: 0x100000 thereof, immediately this second valid data loader is write the 0x100000 place of flash;
When reading the 3rd valid data kernel, according to the 3rd size of valid data kernel and the start address in flash: 0xA00000 thereof, immediately the 3rd valid data kernel is write the 0xA00000 place of flash;
When reading the 4th valid data application, according to the 4th size of valid data application and the start address in flash: 0xD00000 thereof, immediately the 4th valid data applicationl is write the 0xD00000 place of flash;
When reading the 5th valid data userdata, according to the 5th size of valid data userdata and the start address in flash: 0x2000000 thereof, immediately the 5th valid data userdata is write the 0x2000000 place of flash.
The present embodiment is by synthesizing message file and at least one data file the recordable paper that had both comprised block of information and data field, wherein this data field comprises the valid data in data file, block of information comprises the descriptor of each valid data corresponding in message file, read the block of information of this recordable paper again, obtain the descriptor of valid data, and according to the descriptor of valid data, read the valid data of the data field of this recordable paper, the valid data read are burnt in flash memory, namely by the descriptor of valid data and valid data itself are synthesized to a recordable paper, this recordable paper is made namely to include valid data, include again the descriptor of valid data, thus when avoiding the descriptor of valid data and valid data to be placed on respectively in two files, descriptor file and the unmatched problem of valid data file is caused due to maloperation, simultaneously owing to not comprising padding data in this recordable paper, this recordable paper is small and exquisite, and then during burning, skipped padding data, convenient during burning, safety, even and if there is bad block in flash memory, also only need to download once this recordable paper, thus carry out burning according to this recordable paper, improve efficiency, and not easily make mistakes.
Simultaneously, the flash recordable method of the present embodiment is also applicable to upgrade the data in flash memory, first by the data file of the needs of generation renewal, and the message file of correspondence synthesizes a recordable paper, namely the block of information of this recordable paper comprises the descriptor of the valid data that needs upgrade, data field includes the valid data needing to upgrade, read the block of information of this recordable paper again, obtain the descriptor needing each valid data upgraded, according to region corresponding in the descriptor erasing flash memory of each valid data or block, after often wiping a region or block, then according to descriptor, read corresponding valid data, and write in wiped region or block, avoid by need upgrade valid data and descriptor be placed on respectively in multiple file time, descriptor file and the unmatched problem of data file comprising more new data is caused due to maloperation, even and if there is bad block in flash memory, also only need to download once this recordable paper, thus carry out burning according to this recordable paper, improve the renewal efficiency of data, and not easily make mistakes.
But, due to the characteristic of flash memory, in erasing or ablation process, easily there is bad block.When there is bad block, data can be postponed during burning, namely writing next good block, thus cause burning the data in certain position, burn certain position thereafter.Such as, when bad block appears in the loader part of flash, the data of kernel, application, userdata part can be caused, all burn position not corresponding with start address behind, thus make mistakes when causing uboot to load kernel.And for avoiding the problems referred to above, at present, when writing in files is to when existing the flash of bad block, usually by the separately write of each valid data, be about to the data file comprising multiple valid data, cut into 5 parts, be put into 5 files, thus when causing burning data, need download, erasing, write, each 5 times, and then make the efficiency of burning not high, and easily make mistakes.But, adopt the flash recordable method of the embodiment of the present invention then can avoid this problem, thus improve the efficiency of burning, and be not easy to make mistakes.
See Fig. 5, it is the process flow diagram of the another embodiment of flash recordable method of the present invention.The present embodiment comprises the step S11 to S14 in above-described embodiment, unlike in the present embodiment, also comprise step before performing this step S13: S15, before often reading valid data, according to the descriptor of these valid data, to should a region of valid data in erasing flash memory.That is to say when often wiping a region in the present embodiment, and then read valid data, and the valid data of reading are write in the region of wiping.In one embodiment, if there has been the uboot that can run in flash, and by tftp download file, concrete burning implementation process is as follows:
Uboot wipes the 256K size area of flash from 0x0; Uboot jumps to the data field of recordable paper, and order reads 256K data, i.e. first valid data uboot; And this first valid data uboot is write in the region of wiping;
Uboot wipes the 8M size area of flash from 0x100000; Uboot jumps to the data field of recordable paper, and order reads 8M data, i.e. second valid data loader; And this second valid data uboot is write in the region of wiping;
Uboot wipes the 2.5M size area of flash from 0xA00000; Uboot jumps to the data field of recordable paper, and order reads 2.5M data, i.e. the 3rd valid data kernel; And the 3rd valid data uboot is write in the region of wiping;
Uboot wipes the 10M size area of flash from 0xD00000; Uboot jumps to the data field of recordable paper, and order reads 10M data valid data, i.e. the 4th application; And the 4th valid data uboot is write in the region of wiping;
Uboot wipes the 2M size area of flash from 0x2000000, and uboot jumps to the data field of recordable paper, and order reads 2M data, i.e. the 5th valid data userdata; And the 5th valid data uboot is write in the region of wiping.
See Fig. 6, it is the process flow diagram of an embodiment again of flash recordable method of the present invention.The present embodiment comprises the step S11 to S14 in above-described embodiment, unlike in the present embodiment, also comprise step before performing this step S14: S16, whenever reading valid data, detect whether the current block that will write these valid data is bad block.If testing result is not, then these valid data are burnt in current block, namely perform step S14; If testing result is yes, then perform step S17.During concrete enforcement, whether be the mode of bad block comprise: the bad block one, in flash memory has bad block identification if detecting current block, before write valid data, whether have bad block identification, if having if detecting this block, then detect next block and whether have bad block identification, if nothing, then these valid data are write in this block, if having, then continue to detect next block again, till finding a good block; Two, data write in this block, then come by the data reading of write, whether the data comparing reading are identical with the data of write, if identical, then this block is not bad block, otherwise this block is bad block, if bad block, then adopt and detect next block in a like fashion, till having found block.
S17, skips current block, is written in the follow-up block not for bad block by these valid data read.
Implement the flash recordable method of the embodiment of the present invention, valid data are comprised by message file and data file being synthesized, comprise again the recordable paper of the descriptor of valid data, and therefrom obtain valid data, and the descriptor of correspondence, according to this descriptor, valid data are write in flash memory again, and when running into bad block, each valid data are not needed to be divided into multiple file yet, namely download recordable paper is only needed, just descriptor and the valid data itself of each valid data can be got from this recordable paper, and according to this descriptor, valid data are write in flash memory, thus improve the efficiency of burning, also be not easy to make mistakes.
Based on above-mentioned flash recordable method, the embodiment of the present invention additionally provides a kind of recording device.Be described in detail below in conjunction with the recording device of Figure of description to the embodiment of the present invention.
See Fig. 7, it is the functional block diagram of an embodiment of recording device of the present invention.During concrete enforcement, the recording device of the embodiment of the present invention comprises:
Descriptor read module 11, synthesizing the message file of download and at least one data file the block of information that comprises the recordable paper of block of information and data field for reading, obtaining the descriptor of valid data in each data file; This data field comprises the valid data in each data file, and this block of information comprises the descriptor corresponding to each valid data in this message file; During concrete enforcement, the size of this block of information can be predefined, can certainly arrange and terminate mark in this block of information;
Valid data read module 12, for the descriptor according to each valid data, reads each valid data in data field successively; During concrete enforcement, if the size of this block of information is predefined, then the valid data of valid data read module 12 directly from this recordable paper fixed position in order reading data field; If or in this block of information, be provided with block of information terminate mark, then this valid data read module 12 directly terminates mark according to this block of information and reads valid data from data field;
These valid data, for when often reading valid data, according to the descriptor of these valid data, are burnt in flash memory by burning module 13.
Implement the recording device of the present embodiment, the descriptor of valid data is obtained by reading the block of information comprising the recordable paper of block of information and data field, valid data are read again according to descriptor, namely valid data are included by reading, include again recordable paper corresponding to the descriptor of valid data to carry out the burning of data, thus avoid when the descriptor of valid data and valid data is placed in multiple file (multiple data file and a descriptor file) respectively, descriptor file and the unmatched problem of valid data file is caused due to maloperation, simultaneously owing to not comprising padding data in this recordable paper, this recordable paper is small and exquisite, and then during burning, skipped padding data, convenient during burning, safety, even and if there is bad block in flash memory, also only need to download once this recordable paper, and then carry out burning according to this recordable paper, improve efficiency, and not easily make mistakes.
See Fig. 8, it is the functional block diagram of the another embodiment of recording device of the present invention.During concrete enforcement, the recording device of the present embodiment also comprises above-mentioned descriptor read module 11, valid data read module 12 and burning module 13, identical module adopts identical title and Reference numeral, and the recording device unlike the embodiment of the present invention also comprises:
Detection module 14, for when often reading valid data, detects whether the current block that will write these valid data in flash memory is block;
These valid data read for often reading valid data, and when detecting that the current block that will write these valid data is not bad block, write in this current block by the burning module 14 of the present embodiment; Or often reading valid data, and when detecting that the current block that will write these valid data is bad block, skipping current block, these valid data read are being written in the follow-up block not for bad block.
Follow-up not for the block of bad block refers to when detection module detects that current block is bad block in the present embodiment, whether then continue to detect Next piece is bad block, if then continue again to detect again whether next block is bad block, until detect that one is not the block of bad block, then this is for the block of bad block is the subsequent block of current block, and is not bad block.
The recording device of the present embodiment also can comprise:
Characteristic information acquisition module, for detecting flash memory, obtains the characteristic information of this flash memory, and such as this flash memory comprises how many blocks, the size etc. of each piece;
Flash memory erase module, for wiping whole flash memory according to obtaining characteristic information.
Recording device in the present embodiment had both comprised effective data specifying-information by reading, comprise again the recordable paper of valid data, and before descriptor read module reads the descriptor of each valid data corresponding in the block of information of this recordable paper, this Flash memory erase module is by whole for flash memory erasing, read descriptor again, and read valid data corresponding in data field by valid data read module according to the descriptor read, finally by burning module, these valid data are written in this flash memory, thus when running into bad block, do not need repeatedly download data files, improve burning efficiency, also be not easy to make mistakes.
In another specific embodiment, the recording device of the embodiment of the present invention also comprises above-mentioned descriptor read module 11, valid data read module 12 and burning module 13, identical module adopts identical title and Reference numeral, and the recording device unlike the present embodiment also comprises:
Region erasing module, for before often reading valid data, according to the descriptor of these valid data, to should the region of valid data in erasing flash memory.
Recording device in the present embodiment had both comprised effective data specifying-information by reading, comprise again the recordable paper of valid data, and when descriptor read module reads the descriptor of each valid data, this region erasing module is according to the descriptor of each valid data, when often wiping a region of corresponding valid data, these valid data corresponding in data field are read again by valid data read module, and by burning module, these valid data are written in this region, thus when running into bad block, do not need repeatedly download data files, improve burning efficiency, also be not easy to make mistakes.
See Fig. 9, the embodiment of the present invention additionally provides a kind of programming system, comprising:
Synthesis module 21, for the message file of download and at least one data file are synthesized the recordable paper comprising data field and block of information, wherein this data field comprises the valid data in each data file, and block of information comprises the descriptor corresponding to valid data; During concrete enforcement, a message file and corresponding multiple data files can first be downloaded or be imported to this synthesis module 21 in terminal (such as computer), and the block of information descriptor of the valid data in this message file copied in recordable paper, valid data in each data file are copied to the data field in this recordable paper, thus synthesize one and both comprised valid data, comprise again the recordable paper of descriptor, thus make recording device only need to read the burning that this recordable paper can perform data; In one embodiment, this synthesis module 21 realizes by a software;
This programming system also comprises the recording device 1 in above-described embodiment; During concrete enforcement, this recording device 1 directly can read the descriptor of the block of information in the recordable paper of synthesis, and the valid data of data field, and is written in flash memory by each valid data according to the descriptor read.
Above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. a flash recordable method, is characterized in that, comprising:
The message file of download and at least one data file are synthesized the recordable paper that comprises data field and block of information, described data field comprises the valid data in data file described in each, and described block of information comprises the descriptor corresponding to described valid data in described message file;
Read the block of information of described recordable paper, obtain the descriptor of each valid data; Described descriptor comprises described valid data start address in a flash memory and size;
According to the descriptor of each valid data, read each valid data in described data field successively;
When often reading valid data, then according to the descriptor of these valid data, read valid data are burnt in described flash memory;
Wherein, described the message file of download and at least one data file are synthesized the recordable paper that comprises data field and block of information, comprising:
The descriptor of the valid data in the message file of download is copied to the block of information of recordable paper;
According to the descriptor in described block of information, the valid data in each data file downloaded are copied to the data field of described recordable paper.
2. flash recordable method as claimed in claim 1, it is characterized in that, the block of information of the described recordable paper of described reading, before obtaining the step of the descriptor of each valid data, also comprises:
Detect described flash memory, obtain the characteristic information of described flash memory;
Whole flash memory is wiped according to described characteristic information.
3. flash recordable method as claimed in claim 1, is characterized in that the described descriptor according to each valid data reads the step of each valid data in described data field successively, specifically comprises:
Before often reading valid data, according to the descriptor of these valid data, wipe the region corresponding to these valid data in described flash memory;
According to the descriptor of valid data, read the valid data in described data field.
4. flash recordable method as claimed in claim 2 or claim 3, it is characterized in that, described when often reading valid data, then according to the descriptor of read valid data read valid data are burnt to the step in described flash memory, specifically comprise:
When often reading valid data, detect whether the current block that will write these valid data is bad block, if not, then these valid data are written in current block; If current block is bad block, then skip described current block, the described valid data read are written in the follow-up block not for bad block.
5. flash recordable method as claimed in claim 4, is characterized in that, the size of described block of information is that predefined or described block of information comprises block of information and terminates mark.
6. a recording device, is characterized in that, comprising:
Descriptor read module, for reading block of information message file and at least one data file being synthesized the recordable paper comprising block of information and data field, obtains the descriptor of valid data in each data file; Described data field comprises the valid data in each data file, and described block of information comprises the descriptor corresponding to described valid data in message file; Described descriptor comprises the size of described valid data and its start address in a flash memory, described descriptor is the information copied to by described recording device in described block of information, and each described valid data are the data being copied to described data field by described recording device according to descriptor corresponding with these valid data in described block of information;
Valid data read module, for the descriptor according to each valid data, reads each valid data in described data field successively;
Burning module, for when often reading valid data, read described valid data are burnt in flash memory by the descriptor according to these valid data.
7. recording device as claimed in claim 6, it is characterized in that, described recording device also comprises:
Characteristic information acquisition module, for detecting described flash memory, obtains the characteristic information of described flash memory;
Flash memory erase module, for wiping whole flash memory according to described characteristic information.
8. recording device as claimed in claim 6, it is characterized in that, described recording device also comprises;
Region erasing module, before often reading valid data at described valid data read module, according to the descriptor of these valid data, wipes the region corresponding to described valid data in described flash memory;
Described burning module be used for when often reading valid data, according to the descriptor of these valid data, these valid data read are write described region erasing module wipe correspond to these valid data region in.
9. as the recording device in claim 6 to 8 as described in any one, it is characterized in that, also comprise:
Detection module, for when often reading valid data, detects whether the current block that will write these valid data in described flash memory is bad block;
Described burning module is used for often reading valid data, and when detecting that the current block that will write these valid data is not bad block, writes in described current block by these valid data read; Or
Often reading valid data, and when detecting that the current block that will write these valid data is bad block, skipping described current block, these valid data read are being written in the follow-up block not for bad block.
10. a programming system, is characterized in that, comprising:
Synthesis module, for synthesizing the message file of download and at least one data file the recordable paper that comprises data field and block of information;
As the recording device in claim 6 to 9 as described in any one.
CN201110457782.8A 2011-12-31 2011-12-31 A kind of flash recordable method, recording device and programming system Active CN102543193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110457782.8A CN102543193B (en) 2011-12-31 2011-12-31 A kind of flash recordable method, recording device and programming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110457782.8A CN102543193B (en) 2011-12-31 2011-12-31 A kind of flash recordable method, recording device and programming system

Publications (2)

Publication Number Publication Date
CN102543193A CN102543193A (en) 2012-07-04
CN102543193B true CN102543193B (en) 2015-12-09

Family

ID=46349884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110457782.8A Active CN102543193B (en) 2011-12-31 2011-12-31 A kind of flash recordable method, recording device and programming system

Country Status (1)

Country Link
CN (1) CN102543193B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064710B (en) * 2012-12-26 2016-09-07 深圳市诺威达科技有限公司 A kind of flash method for burn-recording and device
CN103324503A (en) * 2013-05-29 2013-09-25 京东方科技集团股份有限公司 Data programming system and method
CN103593216B (en) * 2013-11-12 2017-12-05 上海斐讯数据通信技术有限公司 The system file of ubi forms is fabricated to factory's burning image file method
CN103605540B (en) * 2013-11-18 2017-05-03 四川长虹电器股份有限公司 Flash mirror fast writing method based on Android system
CN105005482B (en) * 2015-08-06 2018-04-06 上海斐讯数据通信技术有限公司 A kind of NOR FLASH recordable paper preparation methods
CN105306569B (en) * 2015-10-20 2018-07-17 红石阳光(北京)科技股份有限公司 One kind being based on the data download method of Flash (flash memory)
CN105843768B (en) * 2016-04-20 2019-01-25 芯海科技(深圳)股份有限公司 A kind of single line communication time-after-time programmable memory method for burn-recording and the burning device based on this method
CN109271174A (en) * 2018-08-01 2019-01-25 广州市星翼电子科技有限公司 A kind of multiple firmwares dispersion method for burn-recording of single-chip microcontroller
CN109614118B (en) * 2018-11-23 2022-05-06 信利光电股份有限公司 SPI Flash firmware burning method and device
CN112486506B (en) * 2019-09-12 2024-02-02 恒为科技(上海)股份有限公司 NAND Flash burning method and device
CN111625184A (en) * 2020-04-20 2020-09-04 珠海妙存科技有限公司 Flash memory data burning method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466060A (en) * 2002-06-10 2004-01-07 三星电子株式会社 Flash memory file system
CN101158922A (en) * 2006-10-02 2008-04-09 三星电子株式会社 Method for writing a file by different writing schemes according to file characteristics and electronic device using the method
CN102298534A (en) * 2011-09-22 2011-12-28 四川长虹电器股份有限公司 Method for writing software into set-top box

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI243303B (en) * 2003-11-14 2005-11-11 Hon Hai Prec Ind Co Ltd System and method for managing flash file stored in a flash memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466060A (en) * 2002-06-10 2004-01-07 三星电子株式会社 Flash memory file system
CN101158922A (en) * 2006-10-02 2008-04-09 三星电子株式会社 Method for writing a file by different writing schemes according to file characteristics and electronic device using the method
CN102298534A (en) * 2011-09-22 2011-12-28 四川长虹电器股份有限公司 Method for writing software into set-top box

Also Published As

Publication number Publication date
CN102543193A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102543193B (en) A kind of flash recordable method, recording device and programming system
CN103473067B (en) Built-in Linux subregion and data restoration method, system and system development method
CN104916327A (en) Method and system of simultaneously burning multiple television KEY codes on line
CN101694621B (en) A kind of method of update mobile terminal software and mobile terminal
CN102819442B (en) A kind of method and system of embedded device program burn writing
CN106951289A (en) A kind of online upgrading method, dsp controller and upgrade-system
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
CN101706822B (en) Method and device for improving speed of mounting journal file system
CN102360569A (en) Burning method, system and apparatus for nand flash chips
CN102841802A (en) Software upgrading method for mobile terminal
CN105159716A (en) Memory device initialization method and electronic equipment
CN102609290A (en) Software updating method for electronic product
CN103729418B (en) Vehicular platform media file managing method
KR20100101517A (en) System and method to respond to a data file deletion instruction
US20110004719A1 (en) Memory Element
CN109614118B (en) SPI Flash firmware burning method and device
CN103389941B (en) Storer formatting method, Memory Controller and memory storage apparatus
CN107678770B (en) Interface chip upgrading method and device, storage medium and processor
CN102005245B (en) Intelligent card erasing and writing protection method
CN105446856A (en) Electronic device interface detection method and apparatus
CN102117245B (en) Embedded device and method for loading and starting operation of cutting system executable file thereof
CN103440181A (en) Method and system for modifying files
CN116225332A (en) Storage management method, storage device and embedded chip
CN110543416A (en) Method, device, equipment and storage medium for automatically testing terminal program

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: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant after: Shenzhen Skyworth Digital Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A14, SKYWORTH

Applicant before: Shenzhen Skyworth Digital Technology Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant