CN103500128A - NVRAM data backup method - Google Patents

NVRAM data backup method Download PDF

Info

Publication number
CN103500128A
CN103500128A CN201310461075.5A CN201310461075A CN103500128A CN 103500128 A CN103500128 A CN 103500128A CN 201310461075 A CN201310461075 A CN 201310461075A CN 103500128 A CN103500128 A CN 103500128A
Authority
CN
China
Prior art keywords
nvram
data
nvram data
backup
read
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
CN201310461075.5A
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.)
Shanghai Feixun Data Communication Technology 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 CN201310461075.5A priority Critical patent/CN103500128A/en
Publication of CN103500128A publication Critical patent/CN103500128A/en
Pending legal-status Critical Current

Links

Images

Abstract

An NVRAM data backup method comprises the following steps: an address space is obtained in a FLASH through an application and used for backup of NVRAM data; when a system is started, NVRAM data are read from an NVRAM partition; whether the NVRAM data which are read currently are the same as the backup NVRAM data is judged through comparison; when the NVRAM data which are read currently are different from the backup NVRAM data, the NVRAM data which are read currently cover the backup NVRAM data. By the adoption of the NVRAM data backup method, when the system cannot be started normally due to the anomaly of the NVRAM data, the system can be started normally through the backup NVRAM data; moreover, the backup NVRAM data are updated continuously so that the backup NVRAM data can be the NVRAM data of last normal start all the time, and the instantaneity of the NVRAM data is guaranteed.

Description

A kind of nvram data backup method
Technical field
The present invention relates to the NVRAM technical field, particularly relate to a kind of nvram data backup method.
Background technology
Equipment normally starts initialization and uses some default configuration, in order to realize faster mutual and change that some are commonly used, is saved in the NVRAM subregion of FLASH than parameter more frequently.But, owing to operating frequently the NVRAM subregion and NOR FLASH first wipes the characteristic of writing afterwards, can cause unavoidably the NVRAM partition data to lose.Such as just encountering physics power down while writing the NVRAM subregion, and cause nvram data to be lost, be that the BOOT_PART parameter is also along with loss, at this moment because BOOT_PART current data value is lost, can't learn when equipment starts from that BOOT_PART next time and start and the generation mistake.
Summary of the invention
Based on this, be necessary to provide a kind of and avoid nvram data to lose and cause system to start wrong nvram data backup method.
A kind of nvram data backup method comprises:
Application space, plot location in FLASH, for backing up nvram data;
When system starts, from the NVRAM subregion, read nvram data;
Whether the more current nvram data read is identical with the backup nvram data;
When the current nvram data read is not identical with the backup nvram data, by the current nvram data read, cover the backup nvram data.
Preferably, also comprise, data exception or while manually causing system to be restarted, read out data from the NVRAM subregion and can find data exception when detecting, and now system reads nvram data from backup area and normally starts, and covers the NVRAM subregion.
After adopting the inventive method, method by the backup nvram data, in nvram data because extremely while causing system normally to start, by the backup nvram data, allow system normally start, and the present invention constantly updates the backup nvram data, make to back up always nvram data during last normal startup of nvram data, guaranteed the real-time of nvram data.
The accompanying drawing explanation
The process flow diagram that Fig. 1 is an embodiment provided by the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is described in more detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Consult Fig. 1, the nvram data backup method of an embodiment provided by the invention comprises:
Step S1, application space, plot location in FLASH, for backing up nvram data;
In FLASH, except the NVRAM subregion, application space, plot location, be specifically designed to the backup nvram data.
Step S2, when system starts, read nvram data from the NVRAM subregion;
When system starts, system reads nvram data from the NVRAM subregion, and equipment normally starts some default settings that initialization is used, and the NVRAM subregion is to compare parameter more frequently for special storage modification.
Step S3, whether the more current nvram data read is identical with the backup nvram data;
Step S4, when the current nvram data read is not identical with the backup nvram data in step S3, cover the backup nvram data by the current nvram data read.When the current nvram data read from the NVRAM subregion is not identical with the backup nvram data, illustrate that nvram data has change, at this moment cover the backup nvram data by the current nvram data read, the backup nvram data has obtained renewal, has guaranteed the real-time of backup nvram data.
Step S5, data exception or while manually causing system to be restarted, read out data from the NVRAM subregion and can find data exception when detecting, and now system reads nvram data from backup area and normally starts, and covers the NVRAM subregion.
After adopting the inventive method, method by the backup nvram data, in nvram data because extremely while causing system normally to start, by the backup nvram data, allow system normally start, and the present invention constantly updates the backup nvram data, make to back up always nvram data during last normal startup of nvram data, guaranteed the real-time of nvram data.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (2)

1. a nvram data backup method, is characterized in that, comprising:
Application space, plot location in FLASH, for backing up nvram data;
When system starts, from the NVRAM subregion, read nvram data;
Whether the more current nvram data read is identical with the backup nvram data;
When the current nvram data read is not identical with the backup nvram data, by the current nvram data read, cover the backup nvram data.
2. nvram data backup method according to claim 1; it is characterized in that; also comprise; data exception or while manually causing system to be restarted; read out data from the NVRAM subregion and can find data exception when detecting; now system reads nvram data from backup area and normally starts, and covers the NVRAM subregion.
CN201310461075.5A 2013-09-30 2013-09-30 NVRAM data backup method Pending CN103500128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310461075.5A CN103500128A (en) 2013-09-30 2013-09-30 NVRAM data backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310461075.5A CN103500128A (en) 2013-09-30 2013-09-30 NVRAM data backup method

Publications (1)

Publication Number Publication Date
CN103500128A true CN103500128A (en) 2014-01-08

Family

ID=49865343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310461075.5A Pending CN103500128A (en) 2013-09-30 2013-09-30 NVRAM data backup method

Country Status (1)

Country Link
CN (1) CN103500128A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105938445A (en) * 2015-07-31 2016-09-14 杭州迪普科技有限公司 Data backup method and device
CN106503542A (en) * 2016-10-14 2017-03-15 青岛海尔空调器有限总公司 The anti-Improvement of device parameter, equipment and air-conditioner
CN106933545A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 Application system and its starting protection method and device
CN113495746A (en) * 2021-05-31 2021-10-12 杭州华橙软件技术有限公司 Program upgrading method, device, medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281469A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Embedded type system and start-up load application method
US7444543B2 (en) * 2004-06-14 2008-10-28 Irene Babudri Data control unit capable of correcting boot errors, and corresponding self-correction method
US20090106481A1 (en) * 2007-10-17 2009-04-23 Spansion Llc Hybrid flash memory device
CN101634958A (en) * 2008-07-23 2010-01-27 佛山市顺德区顺达电脑厂有限公司 Flash memory with secondary backup mechanism
CN102243602A (en) * 2010-05-11 2011-11-16 西安龙飞软件有限公司 Method for saving system configuration by using flash memory in Linux system
CN102591794A (en) * 2011-01-11 2012-07-18 华邦电子股份有限公司 Flash memory and flash memory access method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7444543B2 (en) * 2004-06-14 2008-10-28 Irene Babudri Data control unit capable of correcting boot errors, and corresponding self-correction method
US20090106481A1 (en) * 2007-10-17 2009-04-23 Spansion Llc Hybrid flash memory device
CN101281469A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Embedded type system and start-up load application method
CN101634958A (en) * 2008-07-23 2010-01-27 佛山市顺德区顺达电脑厂有限公司 Flash memory with secondary backup mechanism
CN102243602A (en) * 2010-05-11 2011-11-16 西安龙飞软件有限公司 Method for saving system configuration by using flash memory in Linux system
CN102591794A (en) * 2011-01-11 2012-07-18 华邦电子股份有限公司 Flash memory and flash memory access method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105938445A (en) * 2015-07-31 2016-09-14 杭州迪普科技有限公司 Data backup method and device
CN105938445B (en) * 2015-07-31 2019-09-06 杭州迪普科技股份有限公司 Data back up method and device
CN106933545A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 Application system and its starting protection method and device
CN106933545B (en) * 2015-12-29 2020-09-29 阿里巴巴集团控股有限公司 Application system and start protection method and device thereof
CN106503542A (en) * 2016-10-14 2017-03-15 青岛海尔空调器有限总公司 The anti-Improvement of device parameter, equipment and air-conditioner
CN106503542B (en) * 2016-10-14 2020-11-27 青岛海尔空调器有限总公司 Equipment parameter rewriting prevention method, equipment and air conditioner
CN113495746A (en) * 2021-05-31 2021-10-12 杭州华橙软件技术有限公司 Program upgrading method, device, medium and electronic equipment
CN113495746B (en) * 2021-05-31 2024-02-02 杭州华橙软件技术有限公司 Program upgrading method, device, medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN103500128A (en) NVRAM data backup method
US9639256B2 (en) Method for starting activity of mobile terminal and the mobile terminal
EP2998861A1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
CN103544031B (en) The android system upgrade method and system of multi partition peripheral storage device
EP2723118A3 (en) Methods and apparatus for controlling wireless access points
CN102799499B (en) Method and vehicle-mounted Android equipment that vehicle-mounted Android device systems recovers
US20210382789A1 (en) Method for protecting system from being powered off during upgrade and terminal device
US20120005494A1 (en) Host computer and method for starting hard disks
JP2016507826A5 (en)
WO2015120702A1 (en) Method, device, and mobile terminal for cleaning up application process
CN103237118B (en) Mobile terminal startup method and system, and mobile terminal
TW201621623A (en) System, method and terminal for cleaning memory
CN103853584A (en) Master system recovery method and terminal
CN106681813B (en) System management method and device
CN106775610A (en) A kind of electronic equipment starts method and a kind of electronic equipment
RU2015129037A (en) SYSTEM AND METHOD OF CONTROL OF ENVIRONMENTAL DEVICES ON THE BASIS OF TOPOLOGY
CN108702395B (en) Wireless mesh network formation
CN104267997A (en) Terminal device and starting method of application software in same
CN102664990B (en) Installation and display method of dynamic wallpaper of Android mobile phone
CN104750516A (en) Upgrading method for terminal equipment operating system
CN106095605B (en) A kind of abnormality eliminating method and device of display terminal
CN105159713A (en) Display screen firmware updating method and display screen firmware updating system
US20130289909A1 (en) Electronic device and method for monitoring parameter values of the electronic device
WO2013167010A3 (en) Mobile terminal and startup method therefor
CN103731301A (en) Dual backup achieving method of remote network system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140108

RJ01 Rejection of invention patent application after publication