CN105005482B - A kind of NOR FLASH recordable paper preparation methods - Google Patents

A kind of NOR FLASH recordable paper preparation methods Download PDF

Info

Publication number
CN105005482B
CN105005482B CN201510477095.0A CN201510477095A CN105005482B CN 105005482 B CN105005482 B CN 105005482B CN 201510477095 A CN201510477095 A CN 201510477095A CN 105005482 B CN105005482 B CN 105005482B
Authority
CN
China
Prior art keywords
partition
subregion
flash
data
flash recordable
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
CN201510477095.0A
Other languages
Chinese (zh)
Other versions
CN105005482A (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.)
Qingdao Zhongmao Electronic Co ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510477095.0A priority Critical patent/CN105005482B/en
Publication of CN105005482A publication Critical patent/CN105005482A/en
Application granted granted Critical
Publication of CN105005482B publication Critical patent/CN105005482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention provides a kind of NOR FLASH recordable paper preparation methods, when the preparation method includes software issue, NOR FLASH recordable papers are automatically generated based on software program data and initialization data, wherein, automatically generating for NOR FLASH recordable papers is completed by LINUX equipment, and LINUX equipment realizes automatically generating for NOR FLASH recordable papers by reading its partition profile prestored.Use the present invention, it is possible to increase the efficiency and reliability that NOR FLASH recordable papers make.

Description

A kind of NOR FLASH recordable paper preparation methods
Technical field
The present invention relates to NOR FLASH fields, espespecially a kind of NOR FLASH recordable paper preparation methods.
Background technology
In the prior art, the production program of two kinds of NOR FLASH recordable papers be present.
Scheme 1:Using programmable device retaking of a year or grade, comprise the following steps that:
Step 1:Using the upgrade command (being related to tftp transmission) of equipment, software program and initialization data are serviced from pc Device is loaded into equipment.And recovered part is arranged to factory-default, including delete redundancy or User Defined setting;
Step 2:Whole flash content is read by programmable device and saves as recordable paper;
Step 3:By programmable device recordable paper programming to flash.Then basic verification is carried out.If verifying OK, Production is used as in recordable paper issue.
Scheme 2:Retaking of a year or grade is carried out using device command, comprised the following steps that:
Step 1:Using the upgrade command (being related to tftp transmission) of equipment, software program and initialization data are serviced from pc Device is loaded into equipment.And recovered part is arranged to factory-default, including delete redundancy or User Defined setting;
Step 2:Using the backup command (being related to tftp transmission) of equipment, whole flash content backup is serviced to pc Device saves as recordable paper;
Step 3:Using the upgrade command of equipment, recordable paper is loaded into equipment.Then basic verification is carried out.If test OK is demonstrate,proved, then production is used as in recordable paper issue.
It is more operating procedure to be all present in above two production program, the problem of producing efficiency and poor reliability.Therefore, it is necessary to one The production program of kind NOR FLASH recordable papers simple for production, it can be reduced while accurate making recordable paper is ensured Making link, improve producing efficiency and reliability.
The content of the invention
The present invention carries to solve the problems, such as that above-mentioned fabrication techniques link excessively causes that error may be introduced in manufacturing process For a kind of NOR FLASH recordable paper preparation methods, NOR FLASH are proceeded by when software is issued using LINUX equipment The making of recordable paper, skip programmable device or network, it is only necessary to which basic verification can hair is carried out to NOR FLASH recordable papers Cloth is used as production, so as to improve the efficiency and reliability of making.
To achieve these goals, the invention provides a kind of NOR FLASH recordable paper preparation methods, the making side Method includes:When software is issued, NOR FLASH recordable papers are automatically generated based on software program data and initialization data, including Following steps:
Step 1:Initial NOR FLASH recordable papers are created, the initial NOR FLASH recordable papers are an empty file;
Step 2:Judge that partition profile whether there is untreated row, if it does not exist, then step 7 is jumped to, if In the presence of using the untreated row of front position as current untreated row, jumping to step 3;
Step 3:Whether the current untreated row for judging partition profile is explanatory notes row or blank line, if it is, Step 2 is jumped to, if it is not, jumping to step 4;
Step 4:The current untreated row of parsing jumps to step 5 to obtain partition size and subregion source file path;
Step 5:Subregion source file is added to recordable paper afterbody, jumps to step 6;
Step 6:With subregion source file size and the difference of partition size, make size of data and be difference and all filled out with 0xFF The filling file filled, filling file is added to the afterbody of recordable paper, jumps to step 2;
Step 7:Terminate;
Wherein, partition profile is divided one kind by pre-production, each hand-manipulating of needle of its non-explanatory notes row or blank line Area, it is made up of per a line partition size and subregion source file path.
Alternatively, in the preparation method:Divisional type includes BOOT boot partitions, environmental variance subregion, operating system Subregion and root file system subregion.
Alternatively, in the preparation method:In partition profile, with the behavior explanatory notes row of " # " beginning.
Alternatively, in the preparation method:The partition size of BOOT boot partitions is arranged to 1MB, environmental variance subregion Partition size is arranged to 128KB, and the partition size of operating system partition is arranged to 4MB, the partition size of root file system subregion It is arranged to 3MB.
Alternatively, in the preparation method:Software program data is by BOOT boot partitions data and operating system partition number According to composition, initialization data is made up of environmental variance partition data and root file system partition data.
Alternatively, in the preparation method:Partition profile is stored in advance in LINUX equipment.
Alternatively, in the preparation method:Automatically generating for NOR FLASH recordable papers is completed by LINUX equipment.This hair It is bright by adopting the above-described technical solution, so as to having advantages below:
1) operating procedure is few, avoid data recovery not exclusively (such as leakage recover etc.) the problem of;
2) avoid passing through tftp loading or backup recordable paper, will not because of the tftp softwares or network problem used and Cause operation failure.
Brief description of the drawings
The present invention is described in further detail with reference to the accompanying drawings and detailed description:
Fig. 1 is the first embodiment schematic diagram of the NOR FLASH recordable paper preparation methods of the present invention.
Embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, explanation and accompanying drawing are for the present invention below It is exemplary, and is understood not to the limitation present invention.Numerous details are following description described to facilitate to this hair Sensible solution.However, in some instances, well known or conventional details does not specify simultaneously, to meet the succinct requirement of specification.
In the prior art, there is also some NOR FLASH recordable paper preparation methods, but there is certain disadvantage in them End, is mainly shown as that operating procedure is more, it is easy to error is introduced in certain operations link, is not yet present in the prior art soft When part is issued, the technical scheme of NOR FLASH recordable papers is directly made.
In order to solve the above problems, the invention provides a kind of NOR FLASH recordable paper preparation methods, deposited using built-in The LINUX equipment of memory device, under LINUX operating systems, directly the software of issue is entered according to default partition profile The making of row NOR FLASH recordable papers, skips original multiple making links, successfully reduces fabrication error.
First, Fig. 1 is refer to, Fig. 1 is the first embodiment signal of the NOR FLASH recordable paper preparation methods of the present invention Figure, the preparation method include:When software is issued, NOR FLASH are automatically generated based on software program data and initialization data Recordable paper, specifically include:
Step 1:Initial NOR FLASH recordable papers are created, the initial NOR FLASH recordable papers are an empty file;
Step 2:Judge that partition profile whether there is untreated row, if it does not exist, then step 7 is jumped to, if In the presence of using the untreated row of front position as current untreated row, jumping to step 3;
Step 3:Whether the current untreated row for judging partition profile is explanatory notes row or blank line, if it is, Step 2 is jumped to, if it is not, jumping to step 4;
Step 4:The current untreated row of parsing jumps to step 5 to obtain partition size and subregion source file path;
Step 5:Subregion source file is added to recordable paper afterbody, jumps to step 6;
Step 6:With subregion source file size and the difference of partition size, make size of data and be difference and all filled out with 0xFF The filling file filled, filling file is added to the afterbody of recordable paper, jumps to step 2;
Step 7:Terminate;
Wherein, partition profile is divided one kind by pre-production, each hand-manipulating of needle of its non-explanatory notes row or blank line Area, it is made up of per a line partition size and subregion source file path.
Wherein, in the preparation method:Divisional type includes BOOT boot partitions, environmental variance subregion, operating system point Area and root file system subregion;In partition profile, with the behavior explanatory notes row of " # " beginning;Point of BOOT boot partitions Area is dimensioned to 1MB, and the partition size of environmental variance subregion is arranged to 128KB, and the partition size of operating system partition is set For 4MB, the partition size of root file system subregion is arranged to 3MB;Software program data is by BOOT boot partitions data and operation System partitioning data are formed, and initialization data is made up of environmental variance partition data and root file system partition data;Subregion is matched somebody with somebody Put file to be stored in advance in LINUX equipment, partition profile is performed for example with the memory device built in LINUX equipment Prestore.In preparation method:Automatically generating for NOR FLASH recordable papers is completed by LINUX equipment.
In addition, LINUX equipment can be based on LINUX operating systems under bash shell, and be applied in combination instrument cat, The instruments such as grep, sort, sed, truncate are carried out rationally creating (generation), expansion and closed to software program and initialization data And ultimately generate required recordable paper.
One skilled in the art would recognize that above-mentioned embodiment is exemplary, it is in order that ability Field technique personnel can be better understood from this patent content, should not be understood as the limitation to the scope of this patent, as long as Any equivalent change or modification that the spirit according to disclosed in this patent is made, each fall within the scope of this patent.

Claims (6)

1. a kind of NOR FLASH recordable paper preparation methods, when software is issued, based on software program data and initialization data from Dynamic generation NOR FLASH recordable papers, it is characterised in that described to be automatically generated based on software program data and initialization data The step of NOR FLASH recordable papers, includes:
Step 1:Initial NOR FLASH recordable papers are created, the initial NOR FLASH recordable papers are an empty file;
Step 2:Judge that partition profile whether there is untreated row, if it does not exist, then step 7 is jumped to, if it does, Using the untreated row of front position as current untreated row, step 3 is jumped to;
Step 3:Whether the current untreated row for judging partition profile is explanatory notes row or blank line, if it is, redirecting To step 2, if it is not, jumping to step 4;
Step 4:The current untreated row of parsing jumps to step 5 to obtain partition size and subregion source file path;
Step 5:Subregion source file is added to recordable paper afterbody, jumps to step 6;
Step 6:With subregion source file size and the difference of partition size, make size of data and be difference and all filled with 0xFF File is filled, filling file is added to the afterbody of recordable paper, jumps to step 2;
Step 7:Terminate;
Wherein, partition profile is by pre-production, and each hand-manipulating of needle of its non-explanatory notes row or blank line is to a kind of subregion, often A line is made up of partition size and subregion source file path;
Divisional type includes BOOT boot partitions, environmental variance subregion, operating system partition and root file system subregion.
2. NOR FLASH recordable paper preparation methods according to claim 1, it is characterised in that:
In partition profile, with the behavior explanatory notes row of " # " beginning.
3. NOR FLASH recordable paper preparation methods according to claim 1, it is characterised in that:
The partition size of BOOT boot partitions is arranged to 1MB, and the partition size of environmental variance subregion is arranged to 128KB, operation system The partition size of system subregion is arranged to 4MB, and the partition size of root file system subregion is arranged to 3MB.
4. NOR FLASH recordable paper preparation methods according to claim 1, it is characterised in that:
Software program data is made up of BOOT boot partitions data and operating system partition data, and initialization data is by environmental variance Partition data and root file system partition data composition.
5. NOR FLASH recordable paper preparation methods according to claim 1, it is characterised in that:
Partition profile is stored in advance in LINUX equipment.
6. NOR FLASH recordable paper preparation methods according to claim 1, it is characterised in that:
Automatically generating for NOR FLASH recordable papers is completed by LINUX equipment.
CN201510477095.0A 2015-08-06 2015-08-06 A kind of NOR FLASH recordable paper preparation methods Active CN105005482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510477095.0A CN105005482B (en) 2015-08-06 2015-08-06 A kind of NOR FLASH recordable paper preparation methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510477095.0A CN105005482B (en) 2015-08-06 2015-08-06 A kind of NOR FLASH recordable paper preparation methods

Publications (2)

Publication Number Publication Date
CN105005482A CN105005482A (en) 2015-10-28
CN105005482B true CN105005482B (en) 2018-04-06

Family

ID=54378163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510477095.0A Active CN105005482B (en) 2015-08-06 2015-08-06 A kind of NOR FLASH recordable paper preparation methods

Country Status (1)

Country Link
CN (1) CN105005482B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102543193A (en) * 2011-12-31 2012-07-04 深圳创维数字技术股份有限公司 Flash memory recording method as well as recording equipment and system
CN102722516A (en) * 2012-01-17 2012-10-10 晨星软件研发(深圳)有限公司 NAND Flash writing file-orientated generating method and corresponding device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7093161B1 (en) * 2002-08-16 2006-08-15 Onspec Electronic, Inc. Software recovery method for flash media with defective formatting

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102543193A (en) * 2011-12-31 2012-07-04 深圳创维数字技术股份有限公司 Flash memory recording method as well as recording equipment and system
CN102722516A (en) * 2012-01-17 2012-10-10 晨星软件研发(深圳)有限公司 NAND Flash writing file-orientated generating method and corresponding device

Also Published As

Publication number Publication date
CN105005482A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN104025047B (en) Information processor, information processing method and computer program
US9754059B2 (en) Graphical design verification environment generator
CN105511911B (en) The generation method and device of system firmware upgrade package
JP5295269B2 (en) Method for generating component model-based virtual software platform, method for verifying software platform architecture using the same, and apparatus therefor
US20070226400A1 (en) Information processing apparatus and method of using otp memory
US10761816B2 (en) Method and system for determining interface compatibility based on component model
CN110096300B (en) FPGA program file backup management system, operation method and upgrading method
ITTO980722A1 (en) PROCEDURE FOR INSTALLING AND / OR VERIFYING THE SOFTWARE FOR A COMPUTER SYSTEM MADE TO ORDER, AND COMPUTER SYSTEM FOR
CN102279789A (en) Debugging system and debugging method for embedded system of production phase
CN104252408A (en) Method and device for providing test case
CN101960448A (en) Identification of elements of currently-executing component script
US8321837B2 (en) Techniques for minimum permissions detection and verification
CN104156314A (en) Code reuse method applied to test system
CN110083360A (en) A kind of Compilation Method of application code, device, equipment and storage medium
CN106909362A (en) The method and apparatus that the method and apparatus of BMC firmwares generation, BMC systems start
CN110659197B (en) Application test case generation method and device and software test system
US20080196009A1 (en) Apparatus and method for componentizing legacy system
CN105005482B (en) A kind of NOR FLASH recordable paper preparation methods
CN108255503A (en) The firmware upgrade method and device of measuring instrument
CN107885523B (en) Rapid and stable serial port software upgrading method
CN100359485C (en) Testing device and method for flush-bonding system
CN112052031B (en) Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card
CN101470666A (en) Data memory method
CN106293708A (en) Information processing method and storage device
US8141039B2 (en) Method and system for consolidating machine readable code

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
TR01 Transfer of patent right

Effective date of registration: 20201125

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201208

Address after: 5 / F, block C, outsourcing service building, 301 Hanzhongmen street, Gulou District, Nanjing, Jiangsu Province 210000

Patentee after: Nanjing Pusi Environmental Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210302

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 5 / F, block C, outsourcing service building, 301 Hanzhongmen street, Gulou District, Nanjing, Jiangsu Province 210000

Patentee before: Nanjing Pusi Environmental Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221021

Address after: 266100 1403-268, Block B, Phase I, Innovation Park, No. 1, Keyuan Weiyi Road, Laoshan District, Qingdao, Shandong

Patentee after: Qingdao Zhongmao Electronic Co.,Ltd.

Address before: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee before: Huzhou YingLie Intellectual Property Operation Co.,Ltd.