CN104679507A - Generation method and device for NAND Flash programmer burn image file - Google Patents
Generation method and device for NAND Flash programmer burn image file Download PDFInfo
- Publication number
- CN104679507A CN104679507A CN201510061225.2A CN201510061225A CN104679507A CN 104679507 A CN104679507 A CN 104679507A CN 201510061225 A CN201510061225 A CN 201510061225A CN 104679507 A CN104679507 A CN 104679507A
- Authority
- CN
- China
- Prior art keywords
- file
- software module
- bin
- spare
- data
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000013500 data storage Methods 0.000 abstract description 2
- 230000008929 regeneration Effects 0.000 abstract 1
- 238000011069 regeneration method Methods 0.000 abstract 1
- 230000001172 regenerating effect Effects 0.000 description 3
- 230000010076 replication Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Abstract
The invention relates to the field of computer data storage, and provides a generation method and a generation device for an NAND Flash programmer burn image file in order to solve the problem of low universality of the conventional NAND burning tool. The device mainly comprises a Spare area data additional module, a data large-and-small-end inversion module and a combining module. The device in the technical scheme provided by the invention is high in universality, and regeneration and replacement of all software module burn image files can be conveniently realized.
Description
Technical field
The present invention relates to computer data field of storage, particularly a kind of generation method of NAND Flash programmable device burning image file and device.
Background technology
At present, because the embedded application software of IT system becomes increasingly complex, software document is increasing, therefore more and more higher as the capacity requirement of IT system to peripheral memory, therefore Large Copacity nand memory is widely used, in built-in field, Large Copacity nand memory has almost become the standard configuration of high-end embedded software IT product.When comprising the product volume production of nand memory, for improving formation efficiency, needing burning image file Bin file being made NAND form, then writing nand memory with programmable device.Providing a kind of NAND programmable device burning image file Core Generator in existing embedded software developing instrument, when using this burning image file Core Generator, needing special installation procedure instrument is installed on computers, therefore this instrument poor universality.
Summary of the invention
[technical matters that will solve]
The object of this invention is to provide a kind of generation method of NAND Flash programmable device burning image file, to solve the problem of current NAND replication tool poor universality.
[technical scheme]
The present invention is achieved by the following technical solutions.
First the present invention relates to a kind of generation method of NAND Flash programmable device burning image file, and the method comprises:
Steps A: additional Spare area data obtain the Bin_spare_area file of each software module on the original binary data basis of each software module respectively, and described Spare area packet is containing ECC check code;
Step B: carry out internal memory registration process to the original binary data in the Bin_spare_area file of each software module respectively, obtains the Bin_swapping file of each software module;
Step C: the Bin_swapping Piece file mergence of each software module is obtained burning image file.
As one preferred embodiment, described step B specifically comprises: the original binary data in the Bin_spare_area file of each software module divided into groups respectively; Mode of operation according to the CPU of NAND Flash programmable device is carried out small end alignment to the often group data after grouping or holds registration process greatly, is often organized align data corresponding to original binary data respectively; The align data of original binary data in Bin_spare_area file by its correspondence is replaced, obtains the Bin_swapping file of each software module.
As another preferred embodiment, be one group according to every 4 bytes in described step B, the original binary data in the Bin_spare_area file of each software module is divided into groups.
The invention still further relates to a kind of generating apparatus of NAND Flash programmable device burning image file, this device comprises Spare area data add-on module, size of data end inversion module and merges module,
Described Spare area data add-on module for adding the Bin_spare_area file that Spare area data obtain each software module respectively on the original binary data basis of each software module, and described Spare area packet is containing ECC check code;
Described size of data end inversion module is used for carrying out internal memory registration process to the original binary data in the Bin_spare_area file of each software module respectively, obtains the Bin_swapping file of each software module;
Described merging module is used for the Bin_swapping Piece file mergence of each software module to obtain burning image file.
[beneficial effect]
The technical scheme that the present invention proposes has following beneficial effect:
(1) according to method disclosed by the invention, for each independent software module, utilize simple text processor to generate corresponding NAND Flash programmable device burning image file, do not need additionally replication tool to be installed, there is stronger versatility;
(2) for the engineering software with multiple software module, the inventive method conveniently can realize regenerating and changing of each software module burning image file.
Accompanying drawing explanation
The process flow diagram of the generation method of the NAND Flash programmable device burning image file that Fig. 1 provides for embodiments of the invention one.
The structural representation of the generating apparatus of the NAND Flash programmable device burning image file that Fig. 2 provides for embodiments of the invention two.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, clear, complete description is carried out to the specific embodiment of the present invention, obviously, described embodiment is a part of embodiment of the present invention, instead of whole embodiment, neither limitation of the present invention.Based on embodiments of the invention, those of ordinary skill in the art, not paying the every other embodiment obtained under creative work prerequisite, belong to protection scope of the present invention.
The process flow diagram of the generation method of the NAND Flash programmable device burning image file that Fig. 1 provides for the embodiment of the present invention one.As shown in Figure 1, the method comprising the steps of S1, to step S3, is described in detail to step S3 to step S1 below respectively.
The present embodiment is used for generating NAND Flash programmable device burning image file to three software modules (the first software module, the second software module and the 3rd software module), wherein the storage organization of NAND Flash programmable device is: block capacity is 128KB, page capacity is 2KB, sector capacity is 512B, and its CPU mode of operation is small end alignment pattern.
Step S1: additional Spare area data obtain the Bin_spare_area file of each software module on the original binary data basis of each software module respectively.
Be described for the first software module particularly:
Be one group according to every 512 bytes to divide into groups to the original binary data of the first software module;
Generate the ECC check code often organizing data respectively, wherein ECC check code is the data of 16 bytes;
The ECC check code combination often organizing data is obtained Spare area data;
Original binary data and Spare area data assemblies are obtained the Bin_spare_area file of the first software module.
Adopt identical method can obtain the Bin_spare_area file of the second software module and the Bin_spare_area file of the 3rd software module.
Step S2: carry out internal memory registration process to the original binary data in the Bin_spare_area file of each software module respectively, obtains the Bin_swapping file of each software module.
Large end pattern and little endian mode is had in data storage method, large end pattern, refer to that the high byte of data is kept in the low address of internal memory, and the low byte of data is kept in the high address of internal memory, such memory module is a bit similar to is used as data as character string sequential processes: address is by little to large increase, and data are put from high-order toward low level; Little endian mode, refer to that the high byte of data is kept in the high address of internal memory, and the low byte of data is kept in the low address of internal memory, the height of address and data bit power combine by this memory module effectively, high address part weights are high, low address part weights are low, consistent with our logical method.Because in the present embodiment, the structure of NAND programming cd-rom recorder is little endian mode, therefore need to carry out small end registration process to original binary data.The Bin_spare_area file of the first software module is that example is described particularly: first the original binary data in the Bin_spare_area file of the first software module is one group according to every 4 bytes and divides into groups; Carry out small end registration process by often organizing data, the high byte by data is kept in the high address of internal memory, the low byte of data is kept at the low address of internal memory, obtains the align data that original binary data is corresponding; The align data of original binary data in Bin_spare_area file by its correspondence is replaced, obtains the Bin_swapping file of the first software module.Adopt identical method can obtain the Bin_swapping file of the second software module and the Bin_swapping file of the 3rd software module respectively.Because the embodiment of the present invention is the Bin_swapping file generating each software module respectively, therefore regenerating and changing of each software module burning image file conveniently can be realized.
Step S3: the Bin_swapping Piece file mergence of each software module is obtained burning image file.
Particularly, Bin_swapping file corresponding to each software module is obtained respectively through step S2, adopt the Piece file mergence instrument that NAND programmable device provides, according to the allocation table of system external space, the Bin_swapping file of the Bin_swapping file of the Bin_swapping file of the first software module, the second software module, the 3rd software module is carried out merging and can obtain NAND burning image file
The structural representation of the generating apparatus of the NAND Flash programmable device burning image file that Fig. 2 provides for the embodiment of the present invention two.As shown in Figure 2, this device comprises Spare area data add-on module 11, size of data end inversion module 12 and merges module 13.
Spare area data add-on module 11 for adding the Bin_spare_area file that Spare area data obtain each software module respectively on the original binary data basis of each software module, and wherein Spare area packet is containing ECC check code;
Size of data end inversion module 12, for carrying out internal memory registration process to the original binary data in the Bin_spare_area file of each software module respectively, obtains the Bin_swapping file of each software module;
Merge module 13 for the Bin_swapping Piece file mergence of each software module is obtained burning image file.
As can be seen from the above embodiments, according to flow process disclosed in the embodiment of the present invention, for each independent software module, simple text processor is utilized to generate corresponding NAND Flash programmable device burning image file, do not need additionally replication tool to be installed, there is stronger versatility; For the engineering software with multiple software module, the inventive method conveniently can realize regenerating and changing of each software module burning image file.
Claims (4)
1. a generation method for NAND Flash programmable device burning image file, is characterized in that comprising:
Steps A: additional Spare area data obtain the Bin_spare_area file of each software module on the original binary data basis of each software module respectively, and described Spare area packet is containing ECC check code;
Step B: carry out internal memory registration process to the original binary data in the Bin_spare_area file of each software module respectively, obtains the Bin_swapping file of each software module;
Step C: the Bin_swapping Piece file mergence of each software module is obtained burning image file.
2. the generation method of NAND Flash programmable device burning image file according to claim 1, is characterized in that described step B specifically comprises: the original binary data in the Bin_spare_area file of each software module divided into groups respectively; Mode of operation according to the CPU of NAND Flash programmable device is carried out small end alignment to the often group data after grouping or holds registration process greatly, is often organized align data corresponding to original binary data respectively; The align data of original binary data in Bin_spare_area file by its correspondence is replaced, obtains the Bin_swapping file of each software module.
3. the generation method of NAND Flash programmable device burning image file according to claim 2, to it is characterized in that in described step B according to every 4 bytes being one group, the original binary data in the Bin_spare_area file of each software module is divided into groups.
4. a generating apparatus for NAND Flash programmable device burning image file, is characterized in that comprising Spare area data add-on module, size of data end inversion module and merging module,
Described Spare area data add-on module for adding the Bin_spare_area file that Spare area data obtain each software module respectively on the original binary data basis of each software module, and described Spare area packet is containing ECC check code;
Described size of data end inversion module is used for carrying out internal memory registration process to the original binary data in the Bin_spare_area file of each software module respectively, obtains the Bin_swapping file of each software module;
Described merging module is used for the Bin_swapping Piece file mergence of each software module to obtain burning image file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510061225.2A CN104679507B (en) | 2015-02-05 | 2015-02-05 | The generation method and device of NAND Flash programmable device burning image files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510061225.2A CN104679507B (en) | 2015-02-05 | 2015-02-05 | The generation method and device of NAND Flash programmable device burning image files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104679507A true CN104679507A (en) | 2015-06-03 |
CN104679507B CN104679507B (en) | 2017-10-03 |
Family
ID=53314622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510061225.2A Active CN104679507B (en) | 2015-02-05 | 2015-02-05 | The generation method and device of NAND Flash programmable device burning image files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104679507B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402751A (en) * | 2017-05-23 | 2017-11-28 | 博为科技有限公司 | One kind is based on linux system NAND FLASH master slice burning mirror image implementing methods |
CN109992274A (en) * | 2019-04-01 | 2019-07-09 | 深圳市鼎阳科技有限公司 | Recording device, the method for burning program and readable storage medium storing program for executing |
CN112764379A (en) * | 2021-01-18 | 2021-05-07 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
CN113010186A (en) * | 2021-02-05 | 2021-06-22 | 武汉联特科技股份有限公司 | Firmware and application data integration method and system applied to optical module |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007310430A (en) * | 2006-05-16 | 2007-11-29 | Hitachi Ltd | Memory module |
CN102136296A (en) * | 2011-02-21 | 2011-07-27 | 北京理工大学 | Method for identifying metadata format of NANDFlash memory chip |
CN102722516A (en) * | 2012-01-17 | 2012-10-10 | 晨星软件研发(深圳)有限公司 | NAND Flash writing file-orientated generating method and corresponding device |
CN103593216A (en) * | 2013-11-12 | 2014-02-19 | 上海斐讯数据通信技术有限公司 | Method for making system files of ubi format into factory burn image files |
CN104317622A (en) * | 2014-10-30 | 2015-01-28 | 深圳市捷顺科技实业股份有限公司 | Embedded device program burn processing method and system |
-
2015
- 2015-02-05 CN CN201510061225.2A patent/CN104679507B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007310430A (en) * | 2006-05-16 | 2007-11-29 | Hitachi Ltd | Memory module |
CN102136296A (en) * | 2011-02-21 | 2011-07-27 | 北京理工大学 | Method for identifying metadata format of NANDFlash memory chip |
CN102722516A (en) * | 2012-01-17 | 2012-10-10 | 晨星软件研发(深圳)有限公司 | NAND Flash writing file-orientated generating method and corresponding device |
CN103593216A (en) * | 2013-11-12 | 2014-02-19 | 上海斐讯数据通信技术有限公司 | Method for making system files of ubi format into factory burn image files |
CN104317622A (en) * | 2014-10-30 | 2015-01-28 | 深圳市捷顺科技实业股份有限公司 | Embedded device program burn processing method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402751A (en) * | 2017-05-23 | 2017-11-28 | 博为科技有限公司 | One kind is based on linux system NAND FLASH master slice burning mirror image implementing methods |
CN109992274A (en) * | 2019-04-01 | 2019-07-09 | 深圳市鼎阳科技有限公司 | Recording device, the method for burning program and readable storage medium storing program for executing |
CN112764379A (en) * | 2021-01-18 | 2021-05-07 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
CN112764379B (en) * | 2021-01-18 | 2022-05-03 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
CN113010186A (en) * | 2021-02-05 | 2021-06-22 | 武汉联特科技股份有限公司 | Firmware and application data integration method and system applied to optical module |
Also Published As
Publication number | Publication date |
---|---|
CN104679507B (en) | 2017-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104679507A (en) | Generation method and device for NAND Flash programmer burn image file | |
CN101889267B (en) | Correction of errors in a memory array | |
CN108089817A (en) | The method of storage system and its operating method and operating data processing system | |
CN101901248A (en) | Method and device for creating and updating Bloom filter and searching elements | |
US20130185484A1 (en) | File programming method and associated device for nand flash | |
CN105302739A (en) | Memory management method and device | |
CN104714788A (en) | Method and device for automatically generating software installation package | |
CN104731569A (en) | Data processing method and relevant equipment | |
CN103745746A (en) | Data processing method, scrambler and storage controller | |
CN104301442A (en) | Method for achieving client of access object storage cluster based on fuse | |
CN102866954A (en) | Method and device for allocating internal memory | |
CN103914483A (en) | File storage method and device and file reading method and device | |
CN104572781A (en) | Method and device for generating transaction log | |
CN103677674A (en) | Data processing method and device | |
US9519541B2 (en) | Data storage device and data checking and correction for volatile memory | |
CN104714910B (en) | The method and system of adaptive configuration PCIE bus interface | |
CN105359122A (en) | Enhanced data transfer in multi-CPU systems | |
CN104598409A (en) | Method and device for processing input and output requests | |
CN111163060B (en) | Application group-based forwarding method, device and system | |
CN104077176A (en) | Method and device for increasing virtual processor identifiers | |
CN203204492U (en) | Industrial motherboard | |
CN102521157A (en) | System and method for realizing onboard storage resource management on FPGA (Field Programmable Gate Array) | |
CN102902629B (en) | memory space mapping method and device | |
CN105354107A (en) | Data transmission method and system for NOR Flash | |
CN103019895B (en) | File storage 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20150603 Assignee: Sichuan Changhong Xinwang Technology Co.,Ltd. Assignor: SICHUAN CHANGHONG ELECTRIC Co.,Ltd. Contract record no.: X2023980043949 Denomination of invention: Method and Device for Generating Image Files for NAND Flash Programmer Burning Granted publication date: 20171003 License type: Common License Record date: 20231030 |