CN103049298A - Nandflash burning writing method - Google Patents

Nandflash burning writing method Download PDF

Info

Publication number
CN103049298A
CN103049298A CN2013100176339A CN201310017633A CN103049298A CN 103049298 A CN103049298 A CN 103049298A CN 2013100176339 A CN2013100176339 A CN 2013100176339A CN 201310017633 A CN201310017633 A CN 201310017633A CN 103049298 A CN103049298 A CN 103049298A
Authority
CN
China
Prior art keywords
nandflash
programming
burning
size
upgrading
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.)
Pending
Application number
CN2013100176339A
Other languages
Chinese (zh)
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.)
Sichuansheng Safety Science and Technology Research Institute
Original Assignee
SICHUANSHENG SAFETY SCIENCE AND TECHNOLOGY RESEARCH INSTITUTE
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 SICHUANSHENG SAFETY SCIENCE AND TECHNOLOGY RESEARCH INSTITUTE filed Critical SICHUANSHENG SAFETY SCIENCE AND TECHNOLOGY RESEARCH INSTITUTE
Priority to CN2013100176339A priority Critical patent/CN103049298A/en
Publication of CN103049298A publication Critical patent/CN103049298A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a nandflash burning writing method which particularly comprises starting a mother blank to upgrade a bootstrap program and a starting program to nandflash; starting a system and completing upgrading of a file system after the system is started; calculating size of each zone after upgrading and respectively extracting mapping files of each zone according to accumulated size of each zone; and using a burning writer to complete nandflash burning writing. The nandflash burning writing method adopts a pure software method, is convenient to use, is not limited by a bad block processing mechanism, has high efficiency and high reliability, solves limitation of the nandflash direct burning writing mapping files on the bad block processing mechanism, uses shortcomings of a hardware method, and simultaneously can conveniently achieve generation of the mapping files and nandflash burning writing.

Description

A kind of Nandflash programming method
Technical field
The invention belongs to computer memory technical field, be specifically related to the production programming method of a kind of Nandflash.
Background technology
The Nandflash storage is a kind of of flash storage, and it provides cheap effective solution for the realization of solid-state large-capacity storage.The Nandflash storer has the advantages such as capacity is larger, and rewriting speed is fast, is applicable to the storage of mass data, thereby has obtained using more and more widely at a lot of electronic products.Although there is the situation that produces bad piece in dispatch from the factory bad piece and the use in Nandflash, along with the introducing that bad piece is replaced and bad piece is skipped mechanism, and the yaffs file system is for the Nandflash design in serviceable life, so that these do not become problem.
In the prior art, the programming of Nandflash is mainly undertaken by following two kinds of methods, the first is to adopt first the software that provides in advance that the data that need programming are generated image file, re-use fever writes the image file programming in Nandflash, thereby finish the programming of production, if adopt this mode, for file system a plurality of subregions are arranged, and just can only make when all bad piece being arranged in each subregion and damage the piece mechanism of replacing, damage piece and skip mechanism and can not make, service efficiency is had certain impact.The second is after adopting the software approach upgrading, to take off Nandflash with hardware means, obtains data wherein, and this method is poor efficiency not only, and can not guarantee successfully.
Summary of the invention
Method of the present invention is the problems referred to above that exist in order to solve prior art, has proposed a kind of Nandflash programming method.
Technical scheme of the present invention is: a kind of Nandflash programming method specifically comprises the steps:
S1. start motherboard, boot and start-up routine are upgraded to Nandflash;
S2. start-up system, and after start-up system, finish the upgrading of file system;
S3. calculate the size of each subregion after the upgrading, according to each partition size that calculates, extract respectively each partition image file;
S4. use fever writes, finish the programming of Nandflash.
Further, the described fever writes of step S4 is supported subregion programming image file.
Further, the described fever writes of step S4 finds to point out when there is bad piece the boot section Nandflash chip unavailable in the programming process.
Further, the described fever writes of step S4 finds to point out when there is bad piece in the bad block table district Nandflash chip unavailable in the programming process.
The invention has the beneficial effects as follows: method of the present invention adopts Software-only method, easy to use, be not subjected to the restriction of Bad Block Management mechanism, have high-level efficiency and high reliability, solve the direct programming image file of Nandflash to the restriction of Bad Block Management mechanism and the drawback that adopts hardware means to exist, can realize easily the generation of image file and the programming of Nandflash simultaneously.
Description of drawings
Fig. 1 is the rough schematic of the inventive method.
Fig. 2 is the operating process synoptic diagram of the inventive method.
Fig. 3 is the system partitioning synoptic diagram of commonly using.
Embodiment
The present invention is described further below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, in the method for the present invention, need to use the fever writes of main frame, motherboard and customization, main frame is connected Serial Port Line and connects with netting twine with motherboard, the boot on the main frame, start-up routine and file system are upgraded on the motherboard, finish the upgrading to motherboard; Then the data on the motherboard are extracted into image file, with fever writes Nandflash are carried out programming.
Specific implementation process comprises the steps: as shown in Figure 2
A. start motherboard, boot and start-up routine are upgraded to Nandflash; Here can use the device start motherboards such as SD card.
B. start-up system, and after start-up system, finish the upgrading of file system; Here can use SD card start-up system, or pass through the mode start-up system of nfs carry.
C. calculate the size of each subregion after the upgrading, according to each partition size that calculates, extract respectively each partition image file;
D. use fever writes, finish the programming of Nandflash.
In Fig. 2, after motherboard and main frame connect, by device start motherboards such as SD cards, by network boot and start-up routine are passed on the motherboard from main frame, finish the upgrading of boot and start-up routine; Start-up system on the partitions of file carry of motherboard, passes to file system on the motherboard by network, finishes the upgrading of file system; Check the partition information after the upgrading, calculate each partition size, according to the partition size of calculating, extract the image file of each subregion.During extraction, if judge have bad piece to exist, the size of extracting is increased the shared storage size of bad piece number, re-start extraction; The image file that extraction is finished is that available fever writes is carried out programming to Nandflash.
Wherein, the customization of fever writes requires: support subregion programming image file; Can identify bad piece of boot section, in the programming process, find to point out when there is bad piece the boot section Nandflash chip unavailable; Can identify bad piece of bad block table district, in the programming process, find bad block table district (last 4 pieces of chip) when bad piece is arranged, prompting Nandflash chip is unavailable.
In Fig. 3, this is the partition scheme of commonly using, and can increase subregion according to the design needs.Because the boot section is used for system's rear Bootstrap Commissioning Program that powers on, so this subregion must exist, and the position fixes, but section post take up space needn't be too large.The bad block table district is used for the bad piece of register system, so this subregion must exist, and the position fixes, and its size is generally 4 pieces.
System partitioning commonly used has comprised the boot district, start-up routine district, file system area, bad block table district.The boot district only need distribute the space of a piece to meet the demands; Start-up routine district take up space is decided according to start-up routine size, will be for it keep certain redundancy when subregion, in case the usefulness when in the subregion bad piece being arranged, redundancy is made as about 20% of start-up routine size; File system area is maximum in all subregions, and it wants files all in the saved system, and reserves enough spaces for system's operation, and therefore, this subregion is got larger as much as possible; The bad block table district is used for recording the bad piece of whole Nandflash chip, the space of using 2 pieces just can, reserve 2 pieces more and be used alternatingly to increase reliability.
From above-mentioned analysis and description, method of the present invention adopts Software-only method, easy to use, be not subjected to the restriction of Bad Block Management mechanism, have high-level efficiency and high reliability, solve the direct programming image file of Nandflash to the restriction of Bad Block Management mechanism and the drawback that adopts hardware means to exist, can realize easily the generation of image file and the programming of Nandflash simultaneously.
Those of ordinary skill in the art will appreciate that embodiment described here is in order to help reader understanding's principle of the present invention, should to be understood to that protection scope of the present invention is not limited to such special statement and embodiment.Those of ordinary skill in the art can make various other various concrete distortion and combinations that do not break away from essence of the present invention according to these technology enlightenments disclosed by the invention, and these distortion and combination are still in protection scope of the present invention.

Claims (6)

1. a Nandflash programming method specifically comprises the steps:
S1. start motherboard, boot and start-up routine are upgraded to Nandflash;
S2. start-up system, and after start-up system, finish the upgrading of file system;
S3. calculate the size of each subregion after the upgrading, according to each partition size that calculates, extract respectively each partition image file;
S4. use fever writes, finish the programming of Nandflash.
2. Nandflash programming method according to claim 1 is characterized in that, the described fever writes of step S4 is supported subregion programming image file.
3. Nandflash programming method according to claim 1 is characterized in that, the described fever writes of step S4 finds to point out when there is bad piece the boot section Nandflash chip unavailable in the programming process.
4. Nandflash programming method according to claim 1 is characterized in that, the described fever writes of step S4 finds to point out when there is bad piece in the bad block table district Nandflash chip unavailable in the programming process.
5. Nandfash programming method according to claim 4 is characterized in that, specifically there are 4 pieces in the bad block table district.
6. Nandflash programming method according to claim 1 is characterized in that, when extracting each partition image file among the step S3, if judge have bad piece to exist, the size of extracting is added the shared storage size of bad piece number, re-starts extraction.
CN2013100176339A 2013-01-17 2013-01-17 Nandflash burning writing method Pending CN103049298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100176339A CN103049298A (en) 2013-01-17 2013-01-17 Nandflash burning writing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100176339A CN103049298A (en) 2013-01-17 2013-01-17 Nandflash burning writing method

Publications (1)

Publication Number Publication Date
CN103049298A true CN103049298A (en) 2013-04-17

Family

ID=48061950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100176339A Pending CN103049298A (en) 2013-01-17 2013-01-17 Nandflash burning writing method

Country Status (1)

Country Link
CN (1) CN103049298A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473067A (en) * 2013-09-23 2013-12-25 福建三元达软件有限公司 Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method
WO2015070521A1 (en) * 2013-11-12 2015-05-21 上海斐讯数据通信技术有限公司 Method for making ubi format system file into factory burnt image file
CN106339246A (en) * 2016-08-31 2017-01-18 福建联迪商用设备有限公司 Programming method and programming system used in production phase of NANDFLASH
CN103744694B (en) * 2013-12-24 2017-08-11 武汉烽火众智数字技术有限责任公司 Dynamic partition searcher and its method based on Nand flash memories
CN111158710A (en) * 2019-12-30 2020-05-15 杭州迪普科技股份有限公司 Program programming method and device and network equipment
CN112486506A (en) * 2019-09-12 2021-03-12 恒为科技(上海)股份有限公司 NAND Flash burning method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100275073A1 (en) * 2009-04-23 2010-10-28 Sandisk Il Ltd. Method and device for bad-block testing
CN102253867A (en) * 2010-05-18 2011-11-23 乐金电子(中国)研究开发中心有限公司 Method and device for generating flash memory image file
CN102629206A (en) * 2012-02-29 2012-08-08 深圳市赛格导航科技股份有限公司 Embedded system software upgrading method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100275073A1 (en) * 2009-04-23 2010-10-28 Sandisk Il Ltd. Method and device for bad-block testing
CN102253867A (en) * 2010-05-18 2011-11-23 乐金电子(中国)研究开发中心有限公司 Method and device for generating flash memory image file
CN102629206A (en) * 2012-02-29 2012-08-08 深圳市赛格导航科技股份有限公司 Embedded system software upgrading method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
竺乐庆: "《嵌入式系统实验指导》", 31 August 2012, 浙江工商大学出版社 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473067A (en) * 2013-09-23 2013-12-25 福建三元达软件有限公司 Embedded Linux partitioning and data recovery method, embedded Linux partitioning and data recovery system and system development method
CN103473067B (en) * 2013-09-23 2016-08-31 恒鸿达科技有限公司 Built-in Linux subregion and data restoration method, system and system development method
WO2015070521A1 (en) * 2013-11-12 2015-05-21 上海斐讯数据通信技术有限公司 Method for making ubi format system file into factory burnt image file
CN103744694B (en) * 2013-12-24 2017-08-11 武汉烽火众智数字技术有限责任公司 Dynamic partition searcher and its method based on Nand flash memories
CN106339246A (en) * 2016-08-31 2017-01-18 福建联迪商用设备有限公司 Programming method and programming system used in production phase of NANDFLASH
WO2018040924A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Write method and write system utilized in nand flash production
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
CN111158710A (en) * 2019-12-30 2020-05-15 杭州迪普科技股份有限公司 Program programming method and device and network equipment
CN111158710B (en) * 2019-12-30 2023-08-25 杭州迪普科技股份有限公司 Program programming method, device and network equipment

Similar Documents

Publication Publication Date Title
CN103049298A (en) Nandflash burning writing method
WO2016165597A1 (en) Processing method and device for data storage
CN102722394B (en) Start upgrading method of embedded equipment
CN102135927B (en) Method and device for system booting based on NAND FLASH
KR101910759B1 (en) Transaction processing method, apparatus and computer system
WO2014127684A1 (en) Memory recycling method and device
CN103970557A (en) Storage device and system starting method thereof
CN102637461B (en) Start method supporting bad block flash memory scanning
CN101794261B (en) Mapping table data recovery method and device
CN103198122A (en) Method and device for restarting in-memory database
CN103279406A (en) Method and device for isolating internal memories
CN104461773A (en) Backup deduplication method of virtual machine
CN102622281A (en) Intelligent terminal and method of data backup and restore thereof
CN104216796A (en) Data backup and recovery method and electronic device
CN102541750A (en) Implementation method and device for data snapshot
KR20170013319A (en) Data management method, node and system for database cluster
CN102279757A (en) Method and device for starting system program
CN105447168A (en) Method for restoring and recombining fragmented files in MP4 format
CN104461770B (en) A kind of power-off protection method of Flash chip
US20100153622A1 (en) Data Access Controller and Data Accessing Method
CN103092955B (en) Checkpointed method, Apparatus and system
CN105095101A (en) Method and device for writing data in memorizer and intelligent card
CN102486757B (en) The method of memorizer memory devices and Memory Controller thereof and response host command
KR20150072963A (en) Multisystem, and method of booting the same
CN100458696C (en) System and method for realizing multiple CPU loading

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SICHUAN ANXIN KECHUANG TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SICHUANSHENG SAFETY SCIENCE AND TECHNOLOGY RESEARCH INSTITUTE

Effective date: 20150818

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150818

Address after: 401, building 6, building A, No. nine Hing Road, Chengdu hi tech Zone, Sichuan, 610041

Applicant after: Sichuansheng Safety Science and Technology Research Institute

Address before: 610012, Sichuan Province, Jinjiang District, Chengdu Province, Yongxing No. 15, 17 provincial government office building

Applicant before: Sichuansheng Safety Science and Technology Research Institute

RJ01 Rejection of invention patent application after publication

Application publication date: 20130417

RJ01 Rejection of invention patent application after publication