CN101794248B - 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
CN101794248B
CN101794248B CN 201010138573 CN201010138573A CN101794248B CN 101794248 B CN101794248 B CN 101794248B CN 201010138573 CN201010138573 CN 201010138573 CN 201010138573 A CN201010138573 A CN 201010138573A CN 101794248 B CN101794248 B CN 101794248B
Authority
CN
China
Prior art keywords
program
boot
level
copy
master routine
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
CN 201010138573
Other languages
Chinese (zh)
Other versions
CN101794248A (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 firstblock 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 themaster 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 highuse 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 and safety in the embedded system have become an important research topic.MLC(Multi Level Cell, the multiple field storage) NAND Flash is with high density, large capacity, high data memory rate, and the characteristics such as more erasing times, become gradually the main flow that the embedded memory device of large capacity is used, 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 MLC NAND is especially serious.This problem is not fatal for MLC NAND 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 Systems balanth.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, the automatic repair ability of the method energy realization system guarantees Systems balanth, 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, second level bootloader and system program, described one-level boot is directly called after being started by system, and the storage mode of employing individual layer is stored in the starting position of first piece of NANDFlash; Described second level bootloader 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 to be skillfully constructed Systems balanth, has preferably use value.
Description of drawings
Fig. 1 is system architecture schematic 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: the one-level boot, second level bootloader and system program, described one-level boot is directly called after being started by system, (annotate: the storage unit of MLC nand flash is divided into two-layer the storage mode of employing individual layer, equal like this MLC NAND is stored in as SLC NAND (Single Level Cell is the single-layer type storage, and the stability of SLC NAND is higher than MLC NAND) starting position of first piece of NANDFlash; Described second level bootloader 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 to read less than 4KB just can start, and greatly reduces risk.
Copy program of the present invention can be entered with master routine together burning in production programming program process, mark specially a zone and be used for storing described secondary guiding copy program and system's copy program in NANDFlash, this zone is not affected by later stage robot system upgrading.So, the stability of the data in this copy zone is just guaranteed.
It is worth mentioning that, in the present embodiment, when the upper level boot found that the next stage program is made mistakes, then the Page that at first makes mistakes by ECC verification locking read corresponding Page and copies 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 doing according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.

Claims (3)

1. the method for a constructing system multiple boot storage organization and backup, it is characterized in that: system is divided into: one-level boot, second level bootloader and system program, described one-level boot is directly called after being started by system, and the storage mode of employing individual layer is stored in the starting position of first piece of NANDFlash; Described second level bootloader 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; Described one-level boot size is no more than 4KB; Described boot is called copy data, and the mode of repairing master routine is: the Page that at first makes mistakes by ECC verification locking, then read corresponding Page and copy over from the copy program.
2. 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 respectively the zone that not affected by later stage manual system upgrading.
3. the method for each described constructing system multiple boot storage organization and backup according to claim 1 and 2, it is characterized in that: described system is 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 CN101794248A (en) 2010-08-04
CN101794248B true 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)

Families Citing this family (6)

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

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

Also Published As

Publication number Publication date
CN101794248A (en) 2010-08-04

Similar Documents

Publication Publication Date Title
CN101794248B (en) Method for constructing multi-boot storage structure and back-up
US7675776B2 (en) Bit map control of erase block defect list in a memory
CN101246738B (en) Memory system with backup circuit and programming method
US8954647B2 (en) Systems and methods for redundantly storing metadata for non-volatile memory
US9208901B2 (en) Memory buffer having accessible information after a program-fail
TWI524183B (en) Data writing method, memory control circuit unit and memory storage apparatus
US8799555B2 (en) Boot data storage schemes for electronic devices
US8645776B2 (en) Run-time testing of memory locations in a non-volatile memory
US20210034128A1 (en) Power backup architecture to manage capacitor health
CN101494085B (en) Method and Controller for Preventing Read Disturbance from Non-Volatile Memory
CN101567220B (en) Damaged block identification method of flash memory, storage system and controller thereof
US11677259B2 (en) Power backup architecture using capacitor
CN101656104B (en) Flash memory storage system and data writing method thereof
TWI512742B (en) Non-volatile memory flash memory erase-abnormal block repair method and device applying the same
CN107608628A (en) Flash memory controller
CN102157202B (en) Method and Controller for Preventing Read Disturbance from Non-Volatile Memory
CN101923448A (en) Method for reading and writing conversion layer of NAND flash memory
CN105808371A (en) Data backup and recovery method, control chip and storage device
CN101000569A (en) Method of correcting error code for multiple sector
TW201110129A (en) Method for accessing a flash memory and associated memory device
TWI447579B (en) Program code loading and accessing method, memory controller and memory storage apparatus
CN101625897A (en) Data writing method for flash memory, storage system and controller
CN104094240A (en) Preventing hybrid memory module from being mapped
US20160210210A1 (en) Solid-state storage system, apparatus and method of writing data
CN102592670B (en) Data writing method, memory controller and memory storage 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
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.