[go: up one dir, main page]

CN102543193A - Flash memory recording method as well as recording equipment and system - Google Patents

Flash memory recording method as well as recording equipment and system Download PDF

Info

Publication number
CN102543193A
CN102543193A CN2011104577828A CN201110457782A CN102543193A CN 102543193 A CN102543193 A CN 102543193A CN 2011104577828 A CN2011104577828 A CN 2011104577828A CN 201110457782 A CN201110457782 A CN 201110457782A CN 102543193 A CN102543193 A CN 102543193A
Authority
CN
China
Prior art keywords
valid data
data
descriptor
read
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.)
Granted
Application number
CN2011104577828A
Other languages
Chinese (zh)
Other versions
CN102543193B (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

Images

Landscapes

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

Abstract

The invention discloses a flash memory recording method comprising the following steps of: synthesizing a downloaded information file and at least one data file into a recording file comprising an information area and a data area, wherein the data area comprises valid data in the data file, and the information area comprises description information corresponding to the valid data in the information file; reading the information area of the recording file to obtain the description information of all the valid data; sequentially reading all the valid data according to the description information of all the valid data; and when each valid datum is read, recording the valid datum into a flash memory according to the description information of the valid datum, so that the problem that a description information file is not matched with a valid data file due to disoperation is avoided. The recording file contains no filling data, thus, the filling data are skipped and more convenience and safety are achieved during recording; in addition, the recording file is only needed to be downloaded once, and recording is carried out according to the recording file, thus, the efficiency is increased. The invention also provides recording equipment and a recording system.

Description

A kind of flash recordable method, burning equipment and programming system
Technical field
The present invention relates to flash memory, relate in particular to a kind of flash recordable method, burning equipment and programming system.
Background technology
At present, the method for burn-recording of flash memory has two kinds: one for the master slice copy mode, after being about to content on the original flash of user and copying plate to and carry flash, again plate is carried flash and goes up content corresponding and write empty flash; Two is file mode, is about to specified file and places portable hard drive or programmable device built-in hard disk, reads the content of this document again and writes flash according to the mode of appointment.
When adopting the file mode burning, need two files: the actual data file of wanting burning referring to Fig. 1, is the form of data file; The descriptor file of data of description position in flash referring to Fig. 2, is the form of descriptor file.When adopting the file mode burning, need download this descriptor file and data file respectively, if but because during misoperation, data file and descriptor file do not match, thereby cause being burnt to the content false of flash; And during burning, be the content of order read data files, when data are discontinuous in flash, then have padding data, thereby cause data file huge.
Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of flash recordable method, burning equipment and programming system are provided, and can avoid the matching problem between message file and the data file, and burning is convenient, safety.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of flash recordable method, comprising:
The message file of downloading and said message file of at least one data file and said data file are synthesized a recordable paper that comprises data field and block of information; Said data field comprises the valid data in each said data file, and said block of information comprises in the said message file descriptor corresponding to said valid data;
Read the block of information of said recordable paper, obtain the descriptor of each valid data; Said descriptor comprises start address and the size of said valid data in flash memory;
According to the descriptor of each valid data, read each valid data in the said data field successively;
When whenever reading valid data, then the descriptor according to these valid data is burnt to the valid data that read in the said flash memory.
Wherein, said block of information of reading said recordable paper obtains also comprising before the step of descriptor of each valid data:
Detect said flash memory, obtain the characteristic information of said flash memory;
Wipe whole flash memory according to said characteristic information.
Wherein, said descriptor according to each valid data reads the step of each valid data in the said data field successively, specifically comprises:
Whenever read before the valid data,, wipe in the said flash memory zone corresponding to these valid data according to the descriptor of these valid data;
According to the descriptor of valid data, read the valid data in the said data field.
Wherein, said when whenever reading valid data, then the descriptor according to the valid data that read is burnt to the step in the said flash memory with the valid data that read, and specifically comprises:
When reading valid data, whether the current block that detection will write these valid data is bad piece, if not, then these valid data are written in the current block; If current block is bad piece, then skip said current block, the said valid data that read are written to follow-up not in the piece of bad piece.
Wherein, the size of said block of information is predefined, comprises end sign in block of information in the perhaps said block of information.
A kind of burning equipment comprises:
The descriptor read module is used to read message file and at least one data file is synthesized a block of information that comprises the recordable paper of block of information and data field, obtains the descriptor of valid data in each data files; Said data field comprises the valid data in each data files, and said block of information comprises the descriptor corresponding to said valid data in the said message file, the size that said descriptor comprises said valid data with and start address in flash memory;
The valid data read module is used for the descriptor according to each valid data, reads each valid data in the said data field successively;
Burning module is used for when whenever reading valid data, according to the descriptor of these valid data the said valid data that read is burnt in the flash memory.
Wherein, said burning equipment also comprises:
The characteristic information acquisition module is used to detect said flash memory, obtains the characteristic information of said flash memory;
Flash memory is wiped module, is used for wiping whole flash memory according to said characteristic information.
Wherein, said burning equipment also comprises;
Module is wiped in the zone, is used for before said valid data read module whenever reads valid data, according to the descriptor of these valid data, wipes in the said flash memory zone corresponding to said valid data;
Said burning module is used for when whenever reading valid data, according to the descriptor of these valid data, these valid data that read is write said zone wipe in the zone corresponding to these valid data that module wipes.
Wherein, said burning equipment also comprises:
Detection module is used for when whenever reading valid data, detects whether the current block that will write these valid data in the said flash memory is bad piece;
Said burning module is used for reading whenever valid data, and detects the current block during for bad piece that will write these valid data, and these valid data that read are write in the said current block; Perhaps
Read valid data whenever, and when to detect the current block that will write these valid data be bad piece, skip said current block, these valid data that read are written to follow-up not in the piece of bad piece.
A kind of programming system comprises:
Synthesis module is used for the message file of downloading and at least one data file are synthesized a recordable paper that comprises data field and block of information; And as above-mentioned burning equipment.
Embodiment of the present invention embodiment has following beneficial effect:
The flash recordable method of the embodiment of the invention comprises number through message file and data file are synthesized
According to the recordable paper of district and block of information, wherein the data field comprises a plurality of valid data, and the block of information comprises the descriptor of each valid data; Promptly, data file and message file promptly comprised valid data through being synthesized; The recordable paper that has comprised the descriptor of valid data again is when having avoided descriptor with valid data and valid data to be placed in two files respectively, owing to maloperation causes descriptor file and the unmatched problem of valid data file; Simultaneously owing to do not comprise padding data in this recordable paper; This recordable paper is small and exquisite, thereby has skipped padding data, convenient during burning, safety during burning; Even and if have bad piece in the flash memory, and also only need to download once this recordable paper, thereby carry out burning according to this recordable paper, improved efficient, and be difficult for makeing mistakes.
The flash recordable method of the embodiment of the invention is owing to defined big or small block of information in the recordable paper in advance, thereby during reading of data, the fixed position that can be directly to this recordable paper begins reading of data, and then makes that this method is simpler.
The flash recordable method of the embodiment of the invention, through according to being arranged on the starting position that end in the block of information identifies the recognition data district, thus reading of data, because the variable size of this block of information, and then have stronger dirigibility.
The flash recordable method of the embodiment of the invention had both comprised valid data through downloading, and had comprised the recordable paper of the descriptor of valid data again; When the burning valid data,, also can directly from this recordable paper of having downloaded, read the descriptor of valid data and valid data even if run into bad piece; Avoid and need each valid data separately be write, be about to comprise the data file of a plurality of valid data, cut into many parts; Be put into a plurality of files, and when causing burning data, need to download, wipe, write situation repeatedly; Thereby improve burning efficient, and be not easy to make mistakes.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the form synoptic diagram of existing data file;
Fig. 2 is the form synoptic 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 synoptic diagram of the recordable paper among the 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 burning equipment of the present invention;
Fig. 8 is the functional block diagram of the another embodiment of burning equipment of the present invention;
Fig. 9 is the functional block diagram of an embodiment of programming system of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention is through synthesizing the recordable paper that comprises block of information and data field with message file and data file; And come the valid data in reading of data district according to the descriptor of the valid data in this block of information, and the valid data that read are burnt in the flash memory, owing to not only comprised valid data in this recordable paper but also comprised the descriptor of valid data; Avoided the unmatched problem between data file and the description document; Simultaneously owing to do not comprise padding data in this recordable paper, this recordable paper is small and exquisite, thereby has skipped padding data during burning; Convenient during burning, safety, and improved burning efficient.
Referring to Fig. 3, be the process flow diagram of an embodiment of the flash recordable method of the embodiment of the invention.The flash recordable method of present embodiment, the practical implementation process is following:
S11; The message file of downloading and at least one data file are synthesized a recordable paper that comprises block of information and data field; This data field comprises the valid data in each data files, and the block of information comprises in this message file the descriptor corresponding to valid data.During practical implementation, the message file that at first generates in the download terminal and a plurality of data file; And then the message file of being downloaded and a plurality of data file synthesized a recordable paper that comprises block of information and data field; The descriptor that is about to the valid data in the 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; Thereby synthesized a recordable paper that had not only comprised valid data but also comprised effective data description information; The initialization of burning device power-on then makes it get into SBR, and downloads the recordable paper that comprises block of information and data field after this synthesizes.In one embodiment, can be through directly the descriptor of all valid data in this message file being copied to the block of information, and then the valid data in each data files are copied to the data field according to the descriptor of each valid data.Because this descriptor has comprised the start address of each data files in flash memory; Size; And corresponding Data Filename; Can duplicate the valid data in each data files according to the putting in order of descriptor of each valid data in this message file, thereby accomplish the synthetic of message file and data file; Perhaps earlier that first valid data are corresponding descriptor copies to the block of information, again the valid data in first data file of correspondence is copied to the data field; And then the descriptor of duplicating next valid data copies to the data field with the valid data in this next one data file of correspondence again to the block of information.Can certainly adopt other modes that the descriptor in the message file is copied to this block of information, each valid data are copied to this data field,, be the form of recordable paper synthetic in the present embodiment referring to Fig. 4.In one embodiment; Need set-top box software of burning in the nand flash of 128M size; This software content comprises: uboot, loader, kernel, application, userdata etc., and these data need be burnt to the ad-hoc location among the flash; But these data do not take whole flash, and the recordable paper that generates in the present embodiment is as follows:
00000000?00000400?00000100?00008000
0000A000?00002800?0000D000?0000A000
00000002?00002000
……
Uboot data (256K)
Loader data (8M)
Kernel data (2.5M)
Application data (10M)
Userdata data (2M).
Follow-up with the valid data and the descriptor thereof that continue to continue to use in the present embodiment.
In the present embodiment, before synthetic recordable paper, can define the size of the block of information of this recordable paper in advance, thus when reading valid data, can be directly from this recordable paper the fixed position begin to read valid data and get final product.Certainly the size of this block of information is not predefined yet; But being set, a block of information finishes sign in this block of information; Thereby be convenient to distinguish block of information and data field according to this end sign; This end sign can be certain particular value that is arranged on the block of information end position, and for example " 0 " also can be a numerical value of the number of the valid data that the expression data field that is arranged on this block of information beginning comprises.
S12, the block of information of reading recordable paper obtains the descriptor of each valid data, the size that this descriptor comprises valid data with and start address in flash memory.In one embodiment; Because the descriptor of the block of information of synthetic recordable paper has adopted the mode of height byte reversal; The descriptor that then reads these 5 valid data uboot that the block of information of this recordable paper obtains, loader, kernel, application, userdata is respectively: start address 0x0, big or small 0x40000; Start address 0x100000, big or small 0x800000; Start address 0xA00000, big or small 0x280000; Start address 0xD00000, big or small 0xA00000; Start address 0x2000000, big or small 0x200000.
S13 according to the descriptor of each valid data, reads each valid data in the data field of recordable paper successively.During practical implementation, before carrying out this step S13, also need detect flash memory, obtain this flash memory and comprise what pieces, and the characteristic informations such as size of each piece, and wipe whole flash memory, so that follow-up burning according to this characteristic information.In one embodiment, at first, read flash chip features information, and wipe whole flash according to this characteristic information by burning Equipment Inspection flash chip.
Size according to first valid data uboot; 0x40000 reads the 256k data in proper order from the starting position, data field;
Size according to second valid data loader: 0x800000, the position that first valid data finish from the data field begins order and reads the 8M data;
Size according to the 3rd valid data kernel: 0x280000, the position that last valid data finish from the data field begins order and reads the 2.5M data;
Size according to the 4th valid data application: big or small 0xA00000, a valid data end position begins order and reads the 10M data from the data field;
Size according to the 5th valid data userdata: 0x200000, a valid data access node bundle position begins order and reads the 2M data from the data field.
S14 when whenever reading valid data, then according to the descriptor of these valid data, is burnt to these valid data that read in the flash memory.In one embodiment, according to the size of these valid data that read among the step S12 and the descriptors such as start address in flash, these valid data that read are written among the flash:
When reading first valid data uboot,, immediately these first valid data uboot is write the 0x0 place of flash according to size and the start address in flash: the 0x0 thereof of these first valid data uboot;
When reading the second valid data loader,, immediately this second valid data loader write the 0x100000 place of flash according to size and the start address in flash: the 0x100000 thereof of this second valid data loader;
When reading the 3rd valid data kernel,, immediately the 3rd valid data kernel write the 0xA00000 place of flash according to size and the start address in flash: the 0xA00000 thereof of the 3rd valid data kernel;
When reading the 4th valid data application; According to size and the start address in flash: the 0xD00000 thereof of the 4th valid data application, immediately the 4th valid data applicationl write the 0xD00000 place of flash;
When reading the 5th valid data userdata,, immediately the 5th valid data userdata write the 0x2000000 place of flash according to size and the start address in flash: the 0x2000000 thereof of the 5th valid data userdata.
Present embodiment is through synthesizing a recordable paper that had both comprised block of information and data field with message file and at least one data file, and wherein this data field comprises the valid data in the data file, and the block of information comprises the descriptor of corresponding each valid data in the message file; Read the block of information of this recordable paper again; Obtain the descriptor of valid data, and, read the valid data of the data field of this recordable paper according to the descriptor of valid data; The valid data that read are burnt in the flash memory; Promptly be synthesized to a recordable paper, make this recordable paper promptly comprise valid data, comprised the descriptor of valid data again through descriptor and valid data itself with valid data; Thereby when avoiding descriptor with valid data and valid data to be placed in two files respectively; Owing to maloperation causes descriptor file and the unmatched problem of valid data file, owing to do not comprise padding data in this recordable paper, this recordable paper is small and exquisite simultaneously; And then skipped padding data, convenient during burning, safety during burning; Even and if have bad piece in the flash memory, and also only need to download once this recordable paper, thereby carry out burning according to this recordable paper, improved efficient, and be difficult for makeing mistakes.
Simultaneously, the flash recordable method of present embodiment also is applicable to be upgraded the data in the flash memory, and what at first will generate needs the data updated file; And corresponding message file synthesizes a recordable paper, and promptly the block of information of this recordable paper comprises the descriptor of the valid data that needs upgrade, and the data field has comprised the valid data of needs renewals; Read the block of information of this recordable paper again, the descriptor of each valid data that obtain need upgrading is according to zone or piece corresponding in the descriptor erasing flash memory of each valid data; After whenever wiping a zone or piece,, read corresponding valid data then according to descriptor; And with its write wiped the zone or piece in; When valid data of having avoided upgrading and descriptor thereof are placed in a plurality of files respectively, owing to maloperation causes descriptor file and comprises the unmatched problem of the data file that Updates Information, even and if have bad piece in the flash memory; Also only need to download once this recordable paper; Thereby carry out burning according to this recordable paper, improved updating data efficient, and be difficult for makeing mistakes.
Yet, because the characteristic of flash memory, wipe or ablation process in, bad piece appears easily.When bad piece occurring, can postpone data during burning, promptly write next good piece, thereby cause burning data in certain position, burn in certain position thereafter.For example, when the loader of flash partly bad piece occurs, can cause kernel, application, userdata partial data, all burn not corresponding with start address behind position, thereby make mistakes when causing uboot to load kernel.And for avoiding the problems referred to above, at present, when writing file when having the flash of bad piece; Usually each valid data are separately write, be about to comprise the data file of a plurality of valid data, cut into 5 parts; Be put into 5 files, thereby when causing burning data, need to download, wipe, write; Each 5 times, and then make that the efficient of burning is not high, and easy error.Yet, adopt the flash recordable method of the embodiment of the invention can avoid this problem, thereby improve the efficient of burning, and be not easy to make mistakes.
Referring to Fig. 5, be the process flow diagram of the another embodiment of flash recordable method of the present invention.Comprise the step S11 to S14 in the foregoing description in the present embodiment; Different is in the present embodiment, carries out this step S13 and also comprises step: S15 before, whenever reads before the valid data; According to the descriptor of these valid data, in the erasing flash memory to a zone that should valid data.That is to say in the present embodiment and ought whenever wipe a zone, and then read valid data, and the valid data that read are write in the zone of being wiped.In one embodiment, if among the flash uboot that can move has been arranged, and can pass through the tftp file in download, concrete burning implementation process is following:
Uboot wipes the 256K size area that flash begins from 0x0; Uboot jumps to the data field of recordable paper, and order reads 256K data, i.e. first valid data uboot; And these first valid data uboot write in the zone of being wiped;
Uboot wipes the 8M size area that flash begins 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 write in the zone of being wiped;
Uboot wipes the 2.5M size area that flash begins 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 write in the zone of being wiped;
Uboot wipes the 10M size area that flash begins 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 write in the zone of being wiped;
Uboot wipes the 2M size area that flash begins 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 write in the zone of being wiped.
Referring to Fig. 6, be the process flow diagram of an embodiment again of flash recordable method of the present invention.Comprise the step S11 to S14 in the foregoing description in the present embodiment; Different is in the present embodiment; Also comprise step: S16 before carrying out this step S14, when reading valid data, whether the current block that detection will write these valid data is bad piece.If testing result for not being, then is burnt to these valid data in the current block, i.e. execution in step S14; If testing result is for being, execution in step S17 then.During practical implementation, the mode that detects current block and whether be bad piece comprises: one, the bad piece in the flash memory has bad block identification, before writing valid data; Whether have bad block identification, whether if having, then detecting next piece has bad block identification if detecting this piece; If do not have, then these valid data are write in this piece, if having; Then continue to detect next again piece, till finding a good piece; Two, data are write in this piece, the data read that writes is come out again, whether the data that relatively read are identical with the data that write; If identical, then this piece is not a bad piece, otherwise this piece is a bad piece; If bad piece is then adopted and is detected next piece in a like fashion, till having found piece.
S17 skips current block, these valid data that read is written to follow-up not in the piece of bad piece.
The flash recordable method of embodiment of the present invention embodiment comprises valid data through message file and data file are synthesized, and comprises the recordable paper of the descriptor of valid data again; And therefrom obtain valid data, and corresponding descriptor, according to this descriptor valid data are write in the flash memory again; And when running into bad piece, need each valid data be divided into a plurality of files yet, promptly only need to download a recordable paper; Just can from this recordable paper, get access to the descriptor and the valid data itself of each valid data; And according to this descriptor valid data are write in the flash memory, thereby improved the efficient of burning, also be not easy to make mistakes.
Based on above-mentioned flash recordable method, the embodiment of the invention also provides a kind of burning equipment.To combine Figure of description that the burning equipment of the embodiment of the invention is carried out detailed explanation below.
Referring to Fig. 7, be the functional block diagram of an embodiment of burning equipment of the present invention.During practical implementation, the burning equipment of the embodiment of the invention comprises:
Descriptor read module 11, the message file that is used to read download synthesizes a block of information that comprises the recordable paper of block of information and data field with at least one data file, obtains the descriptor of valid data in each data files; This data field comprises the valid data in each data files, and this block of information comprises in this message file the descriptor corresponding to each valid data; During practical implementation, the size of this block of information can be predefined, can certainly in this block of information, be provided with to finish sign;
Valid data read module 12 is used for the descriptor according to each valid data, successively each valid data in the reading of data district; During practical implementation, if this block of information big or small predefined, then valid data read module 12 directly begins the sequential read interior valid data in district that fetch data from this recordable paper fixed position; Perhaps finish sign if in this block of information, be provided with the block of information, then this valid data read module 12 directly reads valid data according to this block of information end sign from the data field;
Burning module 13 is used for when whenever reading valid data, according to the descriptor of these valid data, these valid data being burnt in the flash memory.
Implement the burning equipment of present embodiment; Obtain the descriptor of valid data through the block of information of reading the recordable paper that comprises block of information and data field; Read valid data according to descriptor again, promptly comprised valid data, comprised that again the recordable paper corresponding to the descriptor of valid data carries out the burning of data through reading; Thereby when having avoided descriptor with valid data and valid data to be placed in a plurality of files (a plurality of data files and a descriptor file) respectively; Owing to maloperation causes descriptor file and the unmatched problem of valid data file, owing to do not comprise padding data in this recordable paper, this recordable paper is small and exquisite simultaneously; And then skipped padding data, convenient during burning, safety during burning; Even and if have bad piece in the flash memory, and also only need to download once this recordable paper, and then carry out burning according to this recordable paper, improved efficient, and be difficult for makeing mistakes.
Referring to Fig. 8, be the functional block diagram of the another embodiment of burning equipment of the present invention.During practical implementation; The burning equipment of 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 burning equipment of the embodiment of the invention that different is also comprises:
Detection module 14 is used for when whenever reading valid data, detects whether the current block that will write these valid data in the flash memory is piece;
The burning module 14 of present embodiment is used for reading whenever valid data, and detects the current block during for bad piece that will write these valid data, and these valid data that read are write in this current block; Perhaps read valid data, and when to detect the current block that will write these valid data be bad piece, skip current block, these valid data that read are written to follow-up not in the piece of bad piece whenever.
Follow-up in the present embodiment is not meant when detection module detects current block and is bad piece for the piece of bad piece; Whether then continue to detect Next is bad piece; Detect whether next again piece is bad piece if then continue again; Be not the piece of bad piece until detecting one, then this is not the subsequent block of current block for the piece of bad piece, and is not bad piece.
The burning equipment of present embodiment also can comprise:
The characteristic information acquisition module is used to detect flash memory, obtains the characteristic information of this flash memory, and for example what pieces this flash memory comprises, the size of each piece etc.;
Flash memory is wiped module, is used for wiping whole flash memory according to obtaining characteristic information.
Burning equipment in the present embodiment both comprises effective data description information through reading, and comprises the recordable paper of valid data again, and reads before the descriptor of corresponding each valid data in the block of information of this recordable paper when the descriptor read module; This flash memory is wiped module and is wiped flash memory is whole; Read descriptor again, and, by burning module these valid data are written in this flash memory at last by the valid data of valid data read module according to correspondence in the descriptor reading of data district that reads; Thereby when running into bad piece; Do not need repeatedly download data files, improved burning efficient, be not easy to make mistakes yet.
In another specific embodiment; The burning equipment of the embodiment of the 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 burning equipment of different is present embodiment also comprises:
Module is wiped in the zone, be used for before whenever reading valid data, according to the descriptor of these valid data, in the erasing flash memory to zone that should valid data.
Burning equipment in the present embodiment both comprises effective data description information through reading, and comprises the recordable paper of valid data again, and reads the descriptor of each valid data when the descriptor read module; The descriptor of module according to each valid data wiped in this zone; Whenever wipe of corresponding valid data when regional, these valid data are written in this zone again by these corresponding in valid data read module reading of data district valid data, and by burning module; Thereby when running into bad piece; Do not need repeatedly download data files, improved burning efficient, be not easy to make mistakes yet.
Referring to Fig. 9, the embodiment of the invention also provides a kind of programming system, comprising:
Synthesis module 21; Be used for the message file of downloading and at least one data file are synthesized the recordable paper that comprises data field and block of information; Wherein this data field comprises the valid data in each data files, and the block of information comprises the descriptor corresponding to valid data; During practical implementation; A message file and corresponding a plurality of data files can downloaded or import to this synthesis module 21 earlier in terminal (for example computer); And the descriptor of the valid data in this message file copied to the block of information in the recordable paper; Valid data in each data files are copied to the data field in this recordable paper; Both comprise valid data thereby synthesize one, comprised the recordable paper of descriptor again, thereby made the burning device just will read the burning that this recordable paper can be carried out data; In one embodiment, this synthesis module 21 can be realized through a software;
This programming system also comprises the burning equipment 1 in the foregoing description; During practical implementation, this burning equipment 1 can directly read the descriptor of the block of information in the synthetic recordable paper and the valid data of data field, and according to the descriptor that reads each valid data is written in the flash memory.
Above disclosedly be merely preferred embodiment of the present invention; Certainly can not limit the present invention's interest field with this; One of ordinary skill in the art will appreciate that all or part of flow process that realizes the foregoing description; And, still belong to the scope that invention is contained according to the equivalent variations that claim of the present invention is done.

Claims (10)

1. a flash recordable method is characterized in that, comprising:
The message file of downloading and at least one data file are synthesized one comprise the data field
With the recordable paper of block of information, said data field comprises the valid data in each said data file, and said block of information comprises the descriptor corresponding to said valid data in the said message file;
Read the block of information of said recordable paper, obtain the descriptor of each valid data; Said descriptor comprises start address and the size of said valid data in flash memory;
According to the descriptor of each valid data, read each valid data in the said data field successively;
When whenever reading valid data, then according to the descriptor of these valid data with being read
Valid data are burnt in the said flash memory.
2. flash recordable method as claimed in claim 1 is characterized in that, said block of information of reading said recordable paper obtains also comprising before the step of descriptor of each valid data:
Detect said flash memory, obtain the characteristic information of said flash memory;
Wipe whole flash memory according to said characteristic information.
3. flash recordable method as claimed in claim 1 is characterized in that, and is said according to each significant figure
The descriptor of certificate reads the step of each valid data in the said data field successively, specifically comprises:
Whenever read before the valid data,, wipe in the said flash memory zone corresponding to these valid data according to the descriptor of these valid data;
According to the descriptor of valid data, read the valid data in the said data field.
4. like claim 2 or 3 described flash recordable methods; It is characterized in that; Said when whenever reading valid data, then the descriptor according to the valid data that read is burnt to the step in the said flash memory with the valid data that read, and specifically comprises:
When whenever reading valid data, whether the current block that detection will write these valid data is bad piece, if not, then these valid data are written in the current block; If current block is bad piece, then skip said current block, the said valid data that read are written to follow-up not in the piece of bad piece.
5. flash recordable method as claimed in claim 4 is characterized in that, the size of said block of information is that predefined or said block of information comprises block of information end sign.
6. a burning equipment is characterized in that, comprising:
The descriptor read module is used to read the block of information that message file and at least one data file is synthesized the recordable paper that comprises block of information and data field, obtains the descriptor of valid data in each data files; Said data field comprises the valid data in each data files, and said block of information comprises the descriptor corresponding to said valid data in the message file; The size that said descriptor comprises said valid data with and start address in flash memory;
The valid data read module is used for the descriptor according to each valid data, reads each valid data in the said data field successively;
Burning module is used for when whenever reading valid data, according to the descriptor of these valid data the said valid data that read is burnt in the flash memory.
7. burning equipment as claimed in claim 6 is characterized in that, said burning equipment also comprises:
The characteristic information acquisition module is used to detect said flash memory, obtains the characteristic information of said flash memory;
Flash memory is wiped module, is used for wiping whole flash memory according to said characteristic information.
8. burning equipment as claimed in claim 6 is characterized in that, said burning equipment also comprises;
Module is wiped in the zone, is used for before said valid data read module whenever reads valid data, according to the descriptor of these valid data, wipes in the said flash memory zone corresponding to said valid data;
Said burning module is used for when whenever reading valid data, according to the descriptor of these valid data, these valid data that read is write said zone wipe in the zone corresponding to these valid data that module wipes.
9. like any described burning equipment in the claim 6 to 8, it is characterized in that, also comprise:
Detection module is used for when whenever reading valid data, detects whether the current block that will write these valid data in the said flash memory is bad piece;
Said burning module is used for reading whenever valid data, and detects the current block during for bad piece that will write these valid data, and these valid data that read are write in the said current block; Perhaps
Read valid data whenever, and when to detect the current block that will write these valid data be bad piece, skip said current block, these valid data that read are written to follow-up not in the piece of bad piece.
10. a programming system is characterized in that, comprising:
Synthesis module is used for the message file of downloading and at least one data file are synthesized a recordable paper that comprises data field and block of information;
Like any described burning equipment in the claim 6 to 9.
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 true CN102543193A (en) 2012-07-04
CN102543193B 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)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064710A (en) * 2012-12-26 2013-04-24 深圳市诺威达科技有限公司 Flash programming method and device
CN103324503A (en) * 2013-05-29 2013-09-25 京东方科技集团股份有限公司 Data programming system and method
CN103593216A (en) * 2013-11-12 2014-02-19 上海斐讯数据通信技术有限公司 Method for making system files of ubi format into factory burn image files
CN103605540A (en) * 2013-11-18 2014-02-26 四川长虹电器股份有限公司 Flash mirror fast writing method based on Android system
CN105005482A (en) * 2015-08-06 2015-10-28 上海斐讯数据通信技术有限公司 NOR FLASH burnt file production method
CN105306569A (en) * 2015-10-20 2016-02-03 红石阳光(北京)科技有限公司 Data downloading method based on Flash (flash)
CN105843768A (en) * 2016-04-20 2016-08-10 芯海科技(深圳)股份有限公司 Single-wire communication MTP (multiple-time programmable) burn protocol and burn device based on same
CN109271174A (en) * 2018-08-01 2019-01-25 广州市星翼电子科技有限公司 A kind of multiple firmwares dispersion method for burn-recording of single-chip microcontroller
CN109614118A (en) * 2018-11-23 2019-04-12 信利光电股份有限公司 A kind of SPI Flash firmware burning method and device
CN111625184A (en) * 2020-04-20 2020-09-04 珠海妙存科技有限公司 Flash memory data burning method and system
CN112486506A (en) * 2019-09-12 2021-03-12 恒为科技(上海)股份有限公司 NAND Flash burning method and device
CN113721935A (en) * 2021-07-21 2021-11-30 深圳市奋达智能技术有限公司 Method for copying mirror image of file system, storage medium, burning board and flash chip
CN115857976A (en) * 2022-12-28 2023-03-28 龙芯中科(太原)技术有限公司 Chip programming method, device, equipment and storage medium

Citations (4)

* 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
US20050108301A1 (en) * 2003-11-14 2005-05-19 Changjian Lou Method for balancing wear when writing data in a flash memory
CN101158922A (en) * 2006-10-02 2008-04-09 三星电子株式会社 Method and device for writing files through different writing schemes according to file characteristics
CN102298534A (en) * 2011-09-22 2011-12-28 四川长虹电器股份有限公司 Method for writing software into set-top box

Patent Citations (4)

* 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
US20050108301A1 (en) * 2003-11-14 2005-05-19 Changjian Lou Method for balancing wear when writing data in a flash memory
CN101158922A (en) * 2006-10-02 2008-04-09 三星电子株式会社 Method and device for writing files through different writing schemes according to file characteristics
CN102298534A (en) * 2011-09-22 2011-12-28 四川长虹电器股份有限公司 Method for writing software into set-top box

Cited By (22)

* 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
CN103064710A (en) * 2012-12-26 2013-04-24 深圳市诺威达科技有限公司 Flash programming method and device
CN103324503A (en) * 2013-05-29 2013-09-25 京东方科技集团股份有限公司 Data programming system and method
WO2014190601A1 (en) * 2013-05-29 2014-12-04 京东方科技集团股份有限公司 Data programming system and method
CN103593216A (en) * 2013-11-12 2014-02-19 上海斐讯数据通信技术有限公司 Method for making system files of ubi format into factory burn image files
CN103593216B (en) * 2013-11-12 2017-12-05 上海斐讯数据通信技术有限公司 The system file of ubi forms is fabricated to factory's burning image file method
CN103605540A (en) * 2013-11-18 2014-02-26 四川长虹电器股份有限公司 Flash mirror fast writing method based on Android system
CN103605540B (en) * 2013-11-18 2017-05-03 四川长虹电器股份有限公司 Flash mirror fast writing method based on Android system
CN105005482A (en) * 2015-08-06 2015-10-28 上海斐讯数据通信技术有限公司 NOR FLASH burnt file production method
CN105005482B (en) * 2015-08-06 2018-04-06 上海斐讯数据通信技术有限公司 A kind of NOR FLASH recordable paper preparation methods
CN105306569A (en) * 2015-10-20 2016-02-03 红石阳光(北京)科技有限公司 Data downloading method based on Flash (flash)
CN105306569B (en) * 2015-10-20 2018-07-17 红石阳光(北京)科技股份有限公司 One kind being based on the data download method of Flash (flash memory)
CN105843768A (en) * 2016-04-20 2016-08-10 芯海科技(深圳)股份有限公司 Single-wire communication MTP (multiple-time programmable) burn protocol and burn device based on same
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
CN109614118A (en) * 2018-11-23 2019-04-12 信利光电股份有限公司 A kind of SPI Flash firmware burning method and device
CN109614118B (en) * 2018-11-23 2022-05-06 信利光电股份有限公司 SPI Flash firmware burning method and device
CN112486506A (en) * 2019-09-12 2021-03-12 恒为科技(上海)股份有限公司 NAND Flash 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
CN113721935A (en) * 2021-07-21 2021-11-30 深圳市奋达智能技术有限公司 Method for copying mirror image of file system, storage medium, burning board and flash chip
CN115857976A (en) * 2022-12-28 2023-03-28 龙芯中科(太原)技术有限公司 Chip programming method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN102543193B (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN102543193A (en) Flash memory recording method as well as recording equipment and system
US9710256B2 (en) Software upgrade method and system for mobile terminal
CN101520734A (en) Method for upgrading data in flash memory, network TV and interactive set-top box thereof
CN102360569B (en) Burning method, system and apparatus for nand flash chips
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
US20060282653A1 (en) Method for updating frimware of memory card
US10108501B2 (en) Terminal backup and recovery method
CN110543318A (en) control device program updating method and device, storage medium and control device
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN101512486A (en) Method and device for upgrading software in a consumer product
CN104349192A (en) Factory and user data automatic programming method and system for intelligent television
CN104008060A (en) Method for detecting compatibility of plug-in and host, and detection server
CN102141921A (en) Method for upgrading system of terminal equipment and terminal equipment
CN104007992A (en) Methods and devices for program updating and starting
CN100458736C (en) NAND flash information extraction method and NAND flash automatic identification method
CN102609290B (en) The method for upgrading software of electronic product
CN107678770B (en) Interface chip upgrading method and device, storage medium and processor
CN107783724A (en) A kind of generation method and device of full image file
CN109445691B (en) Method and device for improving FTL algorithm development and verification efficiency
CN101872306A (en) Embedded system for realizing software updating and software backup and implementation method thereof
CN102520981A (en) Production method of INAND/NAND-based multi-partition storage device
CN101430685B (en) Downloading method and system
CN107977222A (en) Suitable for the conversion of the upgrade file of eMMC, generation method and device
CN102298534B (en) Method for writing software into set-top box
CN109582225B (en) SSD multi-particle compatible starting and upgrading method and device

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