CN101794248A - Method for constructing multi-boot storage structure and back-up - Google Patents

Method for constructing multi-boot storage structure and back-up Download PDF

Info

Publication number
CN101794248A
CN101794248A CN 201010138573 CN201010138573A CN101794248A CN 101794248 A CN101794248 A CN 101794248A CN 201010138573 CN201010138573 CN 201010138573 CN 201010138573 A CN201010138573 A CN 201010138573A CN 101794248 A CN101794248 A CN 101794248A
Authority
CN
China
Prior art keywords
program
boot
level
copy
backup
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
CN 201010138573
Other languages
Chinese (zh)
Other versions
CN101794248B (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.)
The Fujian sub-Information technology of song avionics Co., Ltd
Original Assignee
Fuzhou Smart Digital Science & 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 Fuzhou Smart Digital Science & Technology Co Ltd filed Critical Fuzhou Smart Digital Science & Technology Co Ltd
Priority to CN 201010138573 priority Critical patent/CN101794248B/en
Publication of CN101794248A publication Critical patent/CN101794248A/en
Application granted granted Critical
Publication of CN101794248B publication Critical patent/CN101794248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention relates to a method for constructing a system multi-boot storage structure and back-up. The method is characterized in that the system is divided into a first-level bootstrap program, a second-level bootstrap program and a system program, wherein the first-level bootstrap program is directly called after being started up by the system and is stored in the start position of the first block of NANDflash in a monolayer storage mode; the second-level bootstrap program comprises a second-level bootstrap master program and a second-level bootstrap copy program, and the system program comprises a system master program and a system copy program; and when the upper-level bootstrap program detects an error of the lower-level program, the bootstrap program calls copy data to repair the master program. The invention can realize the self-repairing capability of the system and ensure the stability of the system, is especially suitable for vehicle-mounted computer systems, and has high use value.

Description

Make up the method for multiple boot storage organization and backup
Technical field
The present invention relates to a kind of multiple boot storage organization and backup of the method that makes up multisystem reboot storage organization and backup, particularly vehicle-mounted computer system.
Background technology
Along with the widespread use of embedded technology in various vehicle electronics products, data storage in the embedded system and safety have become an important research project.MLC(MultiLevelCell, the multiple field storage) NANDFlash is with high density, high capacity, high data storage speed, and characteristics such as more erasing times, become the main flow that the embedded memory device of high capacity is used gradually, be mainly used in storage system program and data.But its intrinsic memory mechanism and have this deadly defect of bad piece becomes its major obstacle in application, and all flash devices all are subjected to the puzzlement of position exchange phenomenon, and MLCNAND is especially serious.This problem is not fatal for MLCNAND storage multimedia messages the time.But; if when coming storage operating system, configuration file or other sensitive informations with local memory device; this slight hitch may cause system-down; though can use the ECC system to guarantee reliability; but the error correcting capability of ECC is limited, so can not guarantee the stability of system.In addition, the structure of system all is only to be divided into two parts (boot and system) now, after system powered on, CPU can remove to read boot, and the size of boot is generally about 1M, but CPU only is responsible for reading, no matter whether accurate the data of reading are, well-known, the flash device all is subjected to the puzzlement of position exchange phenomenon, in case data are made mistakes like this, system has just collapsed.Vehicle-mounted computer system particularly, this equipment is different from other digital products, and maintenance is inconvenient.Think the stability that guarantees vehicle-mounted computer system, we have proposed the multiple boot structure of system, and how to store and back up this invention.
Summary of the invention
The method that the purpose of this invention is to provide a kind of constructing system multiple boot storage organization and backup, this automatic repair ability of method energy realization system, the stability of assurance system is specially adapted to vehicle-mounted computer system.
The present invention realizes by the following technical solutions: the method for a kind of constructing system multiple boot storage organization and backup, it is characterized in that: system is divided into: one-level boot, secondary boot and system program, described one-level boot is directly called after by system start-up, adopts the storage mode of individual layer to be stored in the starting position of first piece of NANDFlash; Described secondary boot comprises secondary guiding master routine and secondary guiding copy program, and described system program comprises system's master routine and system's copy program; When the upper level boot found that the next stage program is made mistakes, boot was called copy data, repaired master routine.
The present invention utilizes boot by setting up the copy program, when system's master routine is made mistakes, calls the copy program and repairs, and can effectively guarantee the stability of system, is skillfully constructed, and has use value preferably.
Description of drawings
Fig. 1 is a system architecture synoptic diagram of the present invention.
Embodiment
The present invention will be further described below in conjunction with drawings and Examples.
As shown in Figure 1, the invention provides the method for a kind of constructing system multiple boot storage organization and backup, it is characterized in that: system is divided into: one-level boot, secondary boot and system program, described one-level boot is directly called after by system start-up, (annotate: the storage unit of MLCnandflash is divided into two-layer the storage mode of employing individual layer, equal MLCNAND is stored in as SLCNAND (SingleLevelCell is the single-layer type storage, and the stability of SLCNAND is higher than MLCNAND) starting position of first piece of NANDFlash like this; Described secondary boot comprises secondary guiding master routine and secondary guiding copy program, and described system program comprises system's master routine and system's copy program; When the upper level boot found that the next stage program is made mistakes, boot was called copy data, repaired master routine.
In preferred embodiment of the present invention, described one-level boot size is no more than 4KB, and like this, the program that CPU only need read less than 4KB just can start, and greatly reduces risk.
Copy program of the present invention can be entered with master routine burning together in production programming program process, mark a zone specially and be used to store described secondary guiding copy program and system's copy program in NANDFlash, this zone is not influenced by later stage robot system upgrading.So, the data stability in this copy zone just obtains guaranteeing.
What deserves to be mentioned is that in present embodiment, when the upper level boot found that the next stage program is made mistakes, at first the Page that makes mistakes by ECC verification locking read corresponding Page then and duplicates over from the copy program.
The present invention is specially adapted to vehicle-mounted computer system.The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.

Claims (5)

1. the method for constructing system multiple boot storage organization and backup, it is characterized in that: system is divided into: one-level boot, secondary boot and system program, described one-level boot is directly called after by system start-up, adopts the storage mode of individual layer to be stored in the starting position of first piece of NANDFlash; Described secondary boot comprises secondary guiding master routine and secondary guiding copy program, and described system program comprises system's master routine and system's copy program; When the upper level boot found that the next stage program is made mistakes, boot was called copy data, repaired master routine.
2. the method for constructing system multiple boot storage organization according to claim 1 and backup is characterized in that: described one-level boot size is no more than 4KB.
3. the method for constructing system multiple boot storage organization according to claim 1 and backup is characterized in that: described secondary guiding copy program and system's copy program are stored in the zone that not influenced by later stage robot system upgrading respectively.
4. the method for constructing system multiple boot storage organization according to claim 1 and backup, it is characterized in that: described boot is called copy data, the mode of repairing master routine is: at first lock the Page that makes mistakes by the ECC verification, read corresponding Page then and duplicate over from the copy program.
5. according to the method for each described constructing system multiple boot storage organization of claim 1 to 4 and backup, it is characterized in that: described system is a vehicle-mounted computer system.
CN 201010138573 2010-04-02 2010-04-02 Method for constructing multi-boot storage structure and back-up Active CN101794248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010138573 CN101794248B (en) 2010-04-02 2010-04-02 Method for constructing multi-boot storage structure and back-up

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010138573 CN101794248B (en) 2010-04-02 2010-04-02 Method for constructing multi-boot storage structure and back-up

Publications (2)

Publication Number Publication Date
CN101794248A true CN101794248A (en) 2010-08-04
CN101794248B CN101794248B (en) 2013-10-23

Family

ID=42586958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010138573 Active CN101794248B (en) 2010-04-02 2010-04-02 Method for constructing multi-boot storage structure and back-up

Country Status (1)

Country Link
CN (1) CN101794248B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980157A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Mobile terminal starting method and mobile terminal
CN102662715A (en) * 2012-04-23 2012-09-12 深圳市掌讯通讯设备有限公司 Startup method for embedded operation system
CN102693139A (en) * 2011-03-25 2012-09-26 比亚迪股份有限公司 Method and system for wirelessly upgrading mobile phone software
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment
CN107967193A (en) * 2017-12-25 2018-04-27 北京四达时代软件技术股份有限公司 Boot starts method and embedded device
CN108255511A (en) * 2017-12-20 2018-07-06 北京华航无线电测量研究所 A kind of Photoelectric pod system Zynq chip sorters are packaged fast updating method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231607A (en) * 2008-02-22 2008-07-30 浪潮电子信息产业股份有限公司 Method for maintenance of main system through custom-built embedded small system
CN101251813A (en) * 2008-03-31 2008-08-27 宇龙计算机通信科技(深圳)有限公司 Device and method for mobile telephone system recovery

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231607A (en) * 2008-02-22 2008-07-30 浪潮电子信息产业股份有限公司 Method for maintenance of main system through custom-built embedded small system
CN101251813A (en) * 2008-03-31 2008-08-27 宇龙计算机通信科技(深圳)有限公司 Device and method for mobile telephone system recovery

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980157A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Mobile terminal starting method and mobile terminal
CN101980157B (en) * 2010-10-13 2014-09-10 中兴通讯股份有限公司 Mobile terminal starting method and mobile terminal
CN102693139A (en) * 2011-03-25 2012-09-26 比亚迪股份有限公司 Method and system for wirelessly upgrading mobile phone software
CN102693139B (en) * 2011-03-25 2015-09-30 比亚迪股份有限公司 A kind of method and system of radio upgrade cell phone software
CN102662715A (en) * 2012-04-23 2012-09-12 深圳市掌讯通讯设备有限公司 Startup method for embedded operation system
CN102662715B (en) * 2012-04-23 2016-03-23 深圳市掌讯通讯设备有限公司 A kind of starting of embedded operation system method
CN106775610A (en) * 2016-03-22 2017-05-31 新华三技术有限公司 A kind of electronic equipment starts method and a kind of electronic equipment
CN106775610B (en) * 2016-03-22 2021-11-12 新华三技术有限公司 Electronic equipment starting method and electronic equipment
CN108255511A (en) * 2017-12-20 2018-07-06 北京华航无线电测量研究所 A kind of Photoelectric pod system Zynq chip sorters are packaged fast updating method
CN107967193A (en) * 2017-12-25 2018-04-27 北京四达时代软件技术股份有限公司 Boot starts method and embedded device

Also Published As

Publication number Publication date
CN101794248B (en) 2013-10-23

Similar Documents

Publication Publication Date Title
US7675776B2 (en) Bit map control of erase block defect list in a memory
CN101794248B (en) Method for constructing multi-boot storage structure and back-up
US8645776B2 (en) Run-time testing of memory locations in a non-volatile memory
EP2570929B1 (en) Weave sequence counter for non-volatile memory systems
US8726126B2 (en) Non-regular parity distribution detection via metadata tag
US8954647B2 (en) Systems and methods for redundantly storing metadata for non-volatile memory
CN103632722B (en) Memory system, program method thereof, and computing system including the same
US8694766B2 (en) Device bootup from a NAND-type non-volatile memory
US20120226934A1 (en) Mission critical nand flash
CN100458718C (en) Method of correcting error code for multiple sector
TWI512742B (en) Non-volatile memory flash memory erase-abnormal block repair method and device applying the same
US8799555B2 (en) Boot data storage schemes for electronic devices
CN101848000A (en) Decoding method, encoding method and starting control system
TWI490876B (en) Method and apparatus of system boot and pilot process
US9208901B2 (en) Memory buffer having accessible information after a program-fail
CN103377010A (en) Management of unreliable memory in data storage systems
CN102081577A (en) Data storage structure of Flash memory and data manipulation mode thereof
TW201511020A (en) Memory system with configurable error thresholds and failure analysis capability
CN101427323A (en) System and method for reading non-volatile computer memory
US20120215962A1 (en) Partitioning pages of an electronic memory
US20210034128A1 (en) Power backup architecture to manage capacitor health
CN105808371A (en) Data backup and recovery method, control chip and storage device
CN103778964B (en) Process, using method and the device of a kind of NAND Flash programming data, system
CN103092728A (en) Recovery method and recovery device of abrasion errors of nonvolatile memory
US20160210210A1 (en) Solid-state storage system, apparatus and method of writing data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: FUJIAN SONG AIRLINES ELECTRONIC INFORMATION TECHNO

Free format text: FORMER NAME: FUZHOU SMART DIGITAL SCIENCE + TECHNOLOGY CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 350002 Fujian city in Fuzhou Province, Hongshan Road No. 68 building 4 Shida Technology City D

Patentee after: The Fujian sub-Information technology of song avionics Co., Ltd

Address before: 350002 Fujian city in Fuzhou Province, Hongshan Road No. 68 building 4 Shida Technology City D

Patentee before: Fuzhou Smart Digital Science & Technology Co., Ltd.