CN105095020A - System backup and recovery device and system backup and recovery methods suitable for system on chip - Google Patents

System backup and recovery device and system backup and recovery methods suitable for system on chip Download PDF

Info

Publication number
CN105095020A
CN105095020A CN201510428855.9A CN201510428855A CN105095020A CN 105095020 A CN105095020 A CN 105095020A CN 201510428855 A CN201510428855 A CN 201510428855A CN 105095020 A CN105095020 A CN 105095020A
Authority
CN
China
Prior art keywords
chip
memory
host computer
backup
write
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
CN201510428855.9A
Other languages
Chinese (zh)
Other versions
CN105095020B (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.)
Wuhan Lingjiu Microelectronics Co ltd
709th Research Institute of CSSC
Original Assignee
709th Research Institute of CSIC
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 709th Research Institute of CSIC filed Critical 709th Research Institute of CSIC
Priority to CN201510428855.9A priority Critical patent/CN105095020B/en
Publication of CN105095020A publication Critical patent/CN105095020A/en
Application granted granted Critical
Publication of CN105095020B publication Critical patent/CN105095020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a system backup and recovery device suitable for a system on chip. The system backup and recovery device comprises a chip of the system on chip, a first storage and a peripheral to be backuped/ recovered. The first storage and the peripheral are both electrically connected with the chip of the system on chip. The first storage is used for storage of BIOS data and system image data. The system on chip comprises a processor, a second storage and a peripheral interface module. The processor is used for reading system image data of the first storage and writing system image data into the peripheral. The second storage is used for storage of a system image backup control file. The peripheral interface module is used for controlling communication of the chip of the system on chip with the first storage, the peripheral and a series port. The invention further provides system backup and recovery methods suitable for the system on chip.

Description

Be applicable to the system backup of SOC (system on a chip) and recovery device and method thereof
Technical field
The present invention relates to system-on-chip designs technical field, particularly a kind of be applicable to SOC (system on a chip) system backup and recovery device and method thereof.
Background technology
Department of computer science unifies SOC (system on a chip) (SoC) before normal operation, first must install corresponding operating system and necessary application software.When operating system is destroyed or critical file is deleted by mistake, also need to recover original operating system, i.e. so-called system initialization.Operating system generally leaves External memory equipment in, as in hard disk.The method of common installation or recovery operation system has two kinds of methods.First method is, utilizes the conventional peripheral devices such as USB, CD-ROM drive, floppy drive, network interface to carry out installing or repacking operation system.Second method is, the data creating that a piece has installed the hard disk of system is become image file, copies to completely in the hard disk needing installation or recovery system.A kind of front method is applicable to common installation system, needs the support of peripheral hardware; Second method is applicable to the occasion of through engineering approaches volume production, and generally all needs, treating that the hard disk of assembling system takes out, to complete under other computer environment.
Along with the development of science and technology, department of computer science unifies SOC (system on a chip) just towards miniaturization.A lot of Embedded SoC has abandoned traditional USB, the interfaces such as CD-ROM drive, and above-mentioned first method therefore can not be used to install and refitting system.On the other hand, present External memory equipment hard disk, major part is with DOC (DiskonChip) flash memory disk, and NANDFLASH, the forms such as embedded multi-media card (eMMC, EmbeddedMultiMediaCard) occur.These hard disks directly weld on a printed circuit board, are difficult to dismounting, are not easy to use above-mentioned second method to install and refitting system.
Summary of the invention
In view of this, the invention provides a kind of be applicable to SOC (system on a chip) system backup and recovery device and method thereof.
Be applicable to system backup and the recovery device of SOC (system on a chip), it comprise on-chip system chip, first memory, to be backed up and/or recover peripheral hardware;
First memory, peripheral hardware are all electrically connected with on-chip system chip; First memory is for storing BIOS data and system mirror data;
On-chip system chip comprises processor, second memory, peripheral interface module; Processor is used for reading system mirror image data from first memory, and system mirror data is write peripheral hardware; Second memory is used for storage system mirror back-up control documents; Peripheral interface module is for controlling the communication of on-chip system chip and first memory, peripheral hardware, serial ports.
In the system backup being applicable to SOC (system on a chip) of the present invention and recovery device, it also comprises serial ports, host computer;
Host computer is connected with on-chip system chip by serial ports; Host computer to carry out the backup of system mirror data to peripheral hardware for controlling on-chip system chip; Second memory is also for storing serial port service file; Peripheral interface module is also for controlling the communication of on-chip system chip by serial ports and host computer.
Be applicable to a system backup method for SOC (system on a chip), its system backup being applicable to SOC (system on a chip) by above-mentioned and recovery device realize, and comprise the steps:
S1, host computer are communicated by serial ports with on-chip system chip; And keep on-chip system chip to be in off-position;
S2, host computer initialization serial ports, select the system image file needing backup, and arrange the offset address that first memory treats programming;
S3, host computer send the request connecting on-chip system chip, constantly send to on-chip system chip control word of shaking hands by serial ports;
S4, on-chip system chip to be powered on, start on-chip system chip, and after receiving the control word of shaking hands that host computer sends, send response control word to host computer;
S5, host computer are after receiving response control word, control on-chip system chip and treat the offset address of programming according to the first memory in step S2, in erasing first memory corresponding block as system mirror data memory address and treat that system mirror data is write corresponding address in first memory by the offset address of programming according to first memory.
Be applicable to a system recovery method for SOC (system on a chip), its system backup being applicable to SOC (system on a chip) by above-mentioned and recovery device realize, and it comprises the steps:
S01, the BIOS started in first memory, before the hard disk moved in peripheral hardware guides operating system;
S02, receive the request of recovery system preset for sending;
S03, the BIOS passed through in operation first memory, by the hard drive space of the system backup data write peripheral hardware in first memory.
Provided by the invention be applicable to SOC (system on a chip) system backup and recovery device and method thereof, tool has the following advantages: (1) data backup procedure, without the need to the hard disk of peripheral hardware to be backed up, does not need the interfaces such as CD-ROM drive, floppy drive, network interface, USB yet.(2) during System recover, without the need to dismantling hard disk, the interfaces such as serial ports, CD-ROM drive, floppy drive, USB are not needed yet.(3), during System recover, adopt the direct programming of system mirror data, compared with the backup method based on file, the speed of backup is fast.
Accompanying drawing explanation
Fig. 1 be the embodiment of the present invention be applicable to the system backup of SOC (system on a chip) and the structured flowchart of recovery device;
Fig. 2 is the process flow diagram being applicable to the system backup method of SOC (system on a chip) of the embodiment of the present invention;
Fig. 3 is the sub-process figure of step S3 in Fig. 2;
Fig. 4 is the process flow diagram being applicable to the system recovery method of SOC (system on a chip) of the embodiment of the present invention.
Embodiment
As shown in Figure 1, a kind of system backup and recovery device being applicable to SOC (system on a chip), it comprise on-chip system chip 10, first memory 20, to be backed up and/or recover peripheral hardware 30.
Alternatively, wherein first memory 20 can be nonvolatile memory.Further, nonvolatile memory can be flash memory (Flash) chip.The present invention is not limited thereto.
First memory 20, peripheral hardware 30 are all electrically connected with on-chip system chip 10; First memory 20 is for storing BIOS data and system mirror data.
On-chip system chip 10 comprises processor 11, second memory 12, peripheral interface module 13; System mirror data for reading system mirror image data from first memory 20, and is write peripheral hardware 30 by processor 11; Second memory 12 is for storage system mirror back-up control documents; Peripheral interface module 13 is for controlling the communication of on-chip system chip 10 and first memory 20, peripheral hardware 30, serial ports 40.Second memory 12 can be ROM in sheet.
Alternatively, system mirror data, not only comprises operating system mirror image, also comprises the Master boot sector of DISK to Image, partitions of file table, and partition content etc. are all normally starts relevant data message to hard disk operation system.Usually, be limited to capacity, system image file leaves nonvolatile memory in be needed to intercept and compression process, and its concrete form of implementation is unrelated to the invention.
Alternatively, the system backup and the recovery device that are applicable to SOC (system on a chip) can also comprise serial ports 40, host computer 50.Host computer 50 can be common PC, the present invention is not limited thereto.
Host computer 50 is connected with on-chip system chip 10 by serial ports 40; Host computer 50 carries out the backup of system mirror data for controlling on-chip system chip 10 pairs of peripheral hardwares 30; Second memory 12 is also for storing serial ports 40 service document; Peripheral interface module 13 is also for controlling on-chip system chip 10 by the communication of serial ports 40 with host computer 50.
Wherein system mirror data can be made in advance, and is stored in host computer 50.
Can program code in memory feature in ROM in second memory 12, ordering for receiving host computer 50 serial ports 40 of this section of program code, judges whether to need system mirror data to write in first memory 20.
As shown in Figure 2, the embodiment of the present invention also provides a kind of system backup method being applicable to SOC (system on a chip), and it is realized by the system backup being applicable to SOC (system on a chip) described in above-mentioned any one embodiment and recovery device, comprises the steps:
S1, host computer 50 are communicated by serial ports 40 with on-chip system chip 10; And keep on-chip system chip 10 to be in off-position.
S2, host computer 50 initialization serial ports 40, select the system image file needing backup, and arrange the offset address that first memory 20 treats programming;
S3, host computer 50 send the request connecting on-chip system chip 10, constantly send to on-chip system chip 10 control word of shaking hands by serial ports 40.
S4, on-chip system chip 10 to be powered on, start on-chip system chip 10, and after receiving the control word of shaking hands that host computer 50 sends, send response control word to host computer 50.Receive handshake request control word, represent that backup image wished by host computer 50 software.
S5, host computer 50 are after receiving response control word, control on-chip system chip 10 and treat the offset address of programming according to the first memory 20 in step S2, in erasing first memory 20 corresponding block as system mirror data memory address and treat that system mirror data is write corresponding address in first memory 20 by the offset address of programming according to first memory 20.
Alternatively, as shown in Figure 3, described step S5 comprises:
S51, host computer 50, after receiving response control word, send erasing control word and block address to be erased to on-chip system chip 10; On-chip system chip 10 receives erasing control word and block address to be erased, and according to corresponding block in block address to be erased erasing first memory 20, and the response word of erasing is sent to host computer 50;
S52, host computer 50, after receiving the response word of erasing, judge in first memory 20, whether all blocks are all wiped complete, if all erasings, jump to step S53; If all erasings, jump to step S51, and repeated execution of steps S51, step S52 are not until blocks all in first memory 20 is all wiped complete, and jump to step S53;
S53, host computer 50, after receiving the response word of erasing, send to on-chip system chip 10 and write control word and write address, write data; On-chip system chip 10 receives and writes control word and write address, writes data, and according to write address by block corresponding in first memory 20 in data write step S51, and the response word of write is sent to host computer 50;
S54, host computer 50 are after receiving the response word of write, judge that whether system mirror data all writes in first memory 20 in corresponding block, if all writes, be sent completely control word to on-chip system chip 10, on-chip system chip 10 normally starts after having received control word; If all writes, jump to step S53, and repeated execution of steps S53, step S54 are until system mirror data all to write in first memory 20 in corresponding block.
As shown in Figure 4, the embodiment of the present invention also provides a kind of system recovery method being applicable to SOC (system on a chip), and it is realized by the system backup being applicable to SOC (system on a chip) described in above-mentioned any one embodiment and recovery device, and it comprises the steps:
S01, the BIOS started in first memory 20, before the hard disk moved in peripheral hardware 30 guides operating system;
S02, receive the request of recovery system preset for sending;
S03, the BIOS passed through in operation first memory 20, by the hard drive space of the system backup data write peripheral hardware 30 in first memory 20.In this step, described image file writes hard drive space successively, and wiring method can be write successively by disk C HS (cylinder, head, sector) address.
Alternatively, described step S02 also comprises:
By bios program, trust authentication is carried out to the request of recovery system,
When being proved to be successful, redirect also performs step S03; When authentication failed, stop this flow process.By implementing the present embodiment, improve the security of System recover.The implementation method of described trust authentication, can be but be not limited only to password confirming.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in any other forms of storage medium known in random access memory, internal memory, ROM (read-only memory), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Be understandable that, for the person of ordinary skill of the art, other various corresponding change and distortion can be made by technical conceive according to the present invention, and all these change the protection domain that all should belong to the claims in the present invention with distortion.

Claims (6)

1. be applicable to system backup and the recovery device of SOC (system on a chip), it is characterized in that, it comprise on-chip system chip, first memory, to be backed up and/or recover peripheral hardware;
First memory, peripheral hardware are all electrically connected with on-chip system chip; First memory is for storing BIOS data and system mirror data;
On-chip system chip comprises processor, second memory, peripheral interface module; Processor is used for reading system mirror image data from first memory, and system mirror data is write peripheral hardware; Second memory is used for storage system mirror back-up control documents; Peripheral interface module is for controlling the communication of on-chip system chip and first memory, peripheral hardware, serial ports.
2. be applicable to system backup and the recovery device of SOC (system on a chip) as claimed in claim 1, it is characterized in that, it also comprises serial ports, host computer;
Host computer is connected with on-chip system chip by serial ports; Host computer to carry out the backup of system mirror data to peripheral hardware for controlling on-chip system chip; Second memory is also for storing serial port service file; Peripheral interface module is also for controlling the communication of on-chip system chip by serial ports and host computer.
3. be applicable to a system backup method for SOC (system on a chip), it is characterized in that, it is realized by the system backup and recovery device being applicable to SOC (system on a chip) as claimed in claim 2, comprises the steps:
S1, host computer are communicated by serial ports with on-chip system chip; And keep on-chip system chip to be in off-position;
S2, host computer initialization serial ports, select the system image file needing backup, and arrange the offset address that first memory treats programming;
S3, host computer send the request connecting on-chip system chip, constantly send to on-chip system chip control word of shaking hands by serial ports;
S4, on-chip system chip to be powered on, start on-chip system chip, and after receiving the control word of shaking hands that host computer sends, send response control word to host computer;
S5, host computer are after receiving response control word, control on-chip system chip and treat the offset address of programming according to the first memory in step S2, in erasing first memory corresponding block as system mirror data memory address and treat that system mirror data is write corresponding address in first memory by the offset address of programming according to first memory.
4. be applicable to the system backup method of SOC (system on a chip) as claimed in claim 3, it is characterized in that, described step S5 comprises:
S51, host computer, after receiving response control word, send erasing control word and block address to be erased to on-chip system chip; On-chip system chip receives erasing control word and block address to be erased, and according to corresponding block in block address to be erased erasing first memory, and the response word of erasing is sent to host computer;
S52, host computer, after receiving the response word of erasing, judge in first memory, whether all blocks are all wiped complete, if all erasings, jump to step S53; If all erasings, jump to step S51, and repeated execution of steps S51, step S52 are not until blocks all in first memory is all wiped complete, and jump to step S53;
S53, host computer, after receiving the response word of erasing, send to on-chip system chip and write control word and write address, write data; On-chip system chip receives and writes control word and write address, writes data, and according to write address by block corresponding in first memory in data write step S51, and the response word of write is sent to host computer;
S54, host computer are after receiving the response word of write, judge that whether system mirror data all writes in first memory in corresponding block, if all writes, be sent completely control word to on-chip system chip, on-chip system chip normally starts after having received control word; If all writes, jump to step S53, and repeated execution of steps S53, step S54 are until system mirror data all to write in first memory in corresponding block.
5. be applicable to a system recovery method for SOC (system on a chip), it is characterized in that, it is realized by the system backup and recovery device being applicable to SOC (system on a chip) as claimed in claim 1 or 2, and it comprises the steps:
S01, the BIOS started in first memory, before the hard disk moved in peripheral hardware guides operating system;
S02, receive the request of recovery system preset for sending;
S03, the BIOS passed through in operation first memory, by the hard drive space of the system backup data write peripheral hardware in first memory.
6. be applicable to the system recovery method of SOC (system on a chip) as claimed in claim 5, it is characterized in that, described step S02 also comprises:
By bios program, trust authentication is carried out to the request of recovery system,
When being proved to be successful, redirect also performs step S03; When authentication failed, stop this flow process.
CN201510428855.9A 2015-07-21 2015-07-21 System backup and recovery device and its method suitable for on-chip system Active CN105095020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510428855.9A CN105095020B (en) 2015-07-21 2015-07-21 System backup and recovery device and its method suitable for on-chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510428855.9A CN105095020B (en) 2015-07-21 2015-07-21 System backup and recovery device and its method suitable for on-chip system

Publications (2)

Publication Number Publication Date
CN105095020A true CN105095020A (en) 2015-11-25
CN105095020B CN105095020B (en) 2018-02-27

Family

ID=54575518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510428855.9A Active CN105095020B (en) 2015-07-21 2015-07-21 System backup and recovery device and its method suitable for on-chip system

Country Status (1)

Country Link
CN (1) CN105095020B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343885A (en) * 2018-11-01 2019-02-15 百度在线网络技术(北京)有限公司 Method for upgrading system and multi-system equipment
CN109358986A (en) * 2018-10-25 2019-02-19 盛科网络(苏州)有限公司 A kind of chip extension after death realizes the method and device of hard table recovery
CN110489169A (en) * 2019-08-06 2019-11-22 晶晨半导体(上海)股份有限公司 A kind of memory quick start method of system on chip
CN111752760A (en) * 2020-06-30 2020-10-09 深圳市鸿合创新信息技术有限责任公司 Maintenance method, device and system of all-in-one machine and readable storage medium
CN112783692A (en) * 2021-01-12 2021-05-11 重庆海云捷迅科技有限公司 SoC data recovery system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055446A1 (en) * 2007-08-23 2009-02-26 Microsoft Corporation Staged, Lightweight Backup System
CN102279914A (en) * 2011-07-13 2011-12-14 中国人民解放军海军计算技术研究所 Unified extensible firmware interface (UEFI) trusted supporting system and method for controlling same
CN103166637A (en) * 2011-12-13 2013-06-19 洛阳天枢光电技术有限公司 Data collection system
CN103838585A (en) * 2012-11-20 2014-06-04 广州市暨华医疗器械有限公司 Method for achieving automatic recording of ARM9 embedded system based on SD card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055446A1 (en) * 2007-08-23 2009-02-26 Microsoft Corporation Staged, Lightweight Backup System
CN102279914A (en) * 2011-07-13 2011-12-14 中国人民解放军海军计算技术研究所 Unified extensible firmware interface (UEFI) trusted supporting system and method for controlling same
CN103166637A (en) * 2011-12-13 2013-06-19 洛阳天枢光电技术有限公司 Data collection system
CN103838585A (en) * 2012-11-20 2014-06-04 广州市暨华医疗器械有限公司 Method for achieving automatic recording of ARM9 embedded system based on SD card

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358986A (en) * 2018-10-25 2019-02-19 盛科网络(苏州)有限公司 A kind of chip extension after death realizes the method and device of hard table recovery
CN109343885A (en) * 2018-11-01 2019-02-15 百度在线网络技术(北京)有限公司 Method for upgrading system and multi-system equipment
CN110489169A (en) * 2019-08-06 2019-11-22 晶晨半导体(上海)股份有限公司 A kind of memory quick start method of system on chip
CN110489169B (en) * 2019-08-06 2021-10-19 晶晨半导体(上海)股份有限公司 Quick starting method for memory of system on chip
CN111752760A (en) * 2020-06-30 2020-10-09 深圳市鸿合创新信息技术有限责任公司 Maintenance method, device and system of all-in-one machine and readable storage medium
CN111752760B (en) * 2020-06-30 2024-02-02 深圳市鸿合创新信息技术有限责任公司 Maintenance method, device and system of all-in-one machine and readable storage medium
CN112783692A (en) * 2021-01-12 2021-05-11 重庆海云捷迅科技有限公司 SoC data recovery system and method

Also Published As

Publication number Publication date
CN105095020B (en) 2018-02-27

Similar Documents

Publication Publication Date Title
US8646054B1 (en) Mechanism to manage access to user data area with bridged direct-attached storage devices
CN110032405B (en) System boot code memory management method, memory device and electronic system using same
RU2445676C2 (en) Method of communication with multifunctional memory card
CN105095020A (en) System backup and recovery device and system backup and recovery methods suitable for system on chip
US11216206B2 (en) Method of operating data storage device
CN101385004A (en) Data storage device using two types or storage medium
US7188235B2 (en) Method for booting computer system with memory card
CN102521289B (en) File synchronization method, device and system
KR20180045039A (en) Security Subsystem
KR102195344B1 (en) Security system and method for computer using usb storage medium
JP2010277194A (en) Storage device, data processing method and data processing program
US20150347757A1 (en) System and method for encryption of disk based on pre-boot compatibility testing
CN102207905A (en) System recovery method, storage media controller and storage system
JP2006268861A (en) Method and control device for controlling access of computer to user data
US20050193195A1 (en) Method and system for protecting data of storage unit
JP4672778B2 (en) Data storage
WO2018059565A1 (en) Method and system for backing up flash memory data
US10445534B2 (en) Selective storage device wiping system and method
KR20180066601A (en) Method of driving memory system
CN113127896B (en) Data processing method and device based on independent encryption chip
CN113742715B (en) Operating system authorization method, device and system based on virtual machine and computing equipment
WO2011124148A1 (en) Flash data protection method and apparatus thereof
CN116700801A (en) Configuration information management method, device and server
JP2006053916A (en) Device and method for checking whether data stored in external memory is changed or not
JP2000250818A (en) Storage system, storage device and stored data protecting method

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 430000, No.1, Canglong North Road, Fenghuang Industrial Park, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee after: No. 709 Research Institute of China Shipbuilding Corp.

Address before: No.1, zanlong North Road, Fenghuang Industrial Park, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee before: NO.709 RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220810

Address after: 430000 No. 1 Baihe Road, Guandong Industrial Park, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee after: Wuhan lingjiu Microelectronics Co.,Ltd.

Address before: 430000, No.1, Canglong North Road, Fenghuang Industrial Park, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Patentee before: No. 709 Research Institute of China Shipbuilding Corp.