CN105095020B - System backup and recovery device and its method suitable for on-chip system - Google Patents

System backup and recovery device and its method suitable for on-chip system Download PDF

Info

Publication number
CN105095020B
CN105095020B CN201510428855.9A CN201510428855A CN105095020B CN 105095020 B CN105095020 B CN 105095020B CN 201510428855 A CN201510428855 A CN 201510428855A CN 105095020 B CN105095020 B CN 105095020B
Authority
CN
China
Prior art keywords
chip
memory
host computer
write
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.)
Active
Application number
CN201510428855.9A
Other languages
Chinese (zh)
Other versions
CN105095020A (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 present invention provides a kind of system backup and recovery device suitable for on-chip system, and it includes on-chip system chip, first memory, peripheral hardware to be backed up and/or recovery;First memory, peripheral hardware electrically connect with on-chip system chip;First memory is used to store BIOS data and system mirror data;On-chip system chip includes processor, second memory, peripheral interface module;Processor is used to read system mirror data from first memory, and system mirror data is write into peripheral hardware;Second memory is used for storage system mirror back-up control file;Peripheral interface module is used to control on-chip system chip and the communication of first memory, peripheral hardware, serial ports.The present invention also provides a kind of system backup suitable for on-chip system, restoration methods.

Description

System backup and recovery device and its method suitable for on-chip system
Technical field
The present invention relates to system-on-chip designs technical field, more particularly to a kind of system backup suitable for on-chip system with Recovery device and its method.
Background technology
Computer system and on-chip system (SoC) are before normal operation, it is necessary to first install corresponding operating system and necessity Application software.Operating system is destroyed or critical file is deleted by mistake when, it is also necessary to recover original operating system, i.e., So-called system initialization.Operating system is typically stored in External memory equipment, in hard disk.Common installation or recovery operation The method of system has two methods.First method be installed using conventional peripheral devices such as USB, CD-ROM drive, floppy drive, network interfaces or Repacking operation system.Second method is that the data creating for the hard disk for having installed system by one piece is mirrored into file, is replicated completely Into the hard disk for needing installation or recovery system.Former approach is applied to common installation system, it is necessary to the support of peripheral hardware;Second Kind method is applied to the occasion of engineering volume production, and is typically necessary the hard disk taking-up system to be installed, in other computer Completed under environment.
With the development of science and technology, computer system and on-chip system are just towards miniaturization.It is many embedded Upper system has abandoned the interfaces such as traditional USB, CD-ROM drive, therefore can not use above-mentioned first method installation and refitting system. On the other hand, present External memory equipment hard disk, most of with DOC (Disk on Chip) flash memory disk, NAND FLASH, The forms such as embedded multi-media card (eMMC, Embedded Multi Media Card) occur.These hard disks are directly welded at print On circuit board processed, it is difficult to dismantle, above-mentioned second method installation and refitting system are not convenient to use.
The content of the invention
In view of this, the present invention provides a kind of system backup suitable for on-chip system and recovery device and its method.
A kind of system backup and recovery device suitable for on-chip system, it include on-chip system chip, first memory, Peripheral hardware that is to be backed up and/or recovering;
First memory, peripheral hardware electrically connect with on-chip system chip;First memory be used for store BIOS data and System mirror data;
On-chip system chip includes processor, second memory, peripheral interface module;Processor is used for from first memory Middle reading system mirror data, and system mirror data is write into peripheral hardware;Second memory is used for storage system mirror back-up control File processed;Peripheral interface module is used to control on-chip system chip and the communication of first memory, peripheral hardware, serial ports.
The system backup and recovery device of the present invention suitable for on-chip system, it also includes serial ports, upper Machine;
Host computer is connected by serial ports with on-chip system chip;Host computer is used to control on-chip system chip to carry out peripheral hardware The backup of system mirror data;Second memory is additionally operable to store serial port service file;Peripheral interface module is additionally operable to control sheet The communication that upper System on Chip/SoC passes through serial ports and host computer.
A kind of system backup method suitable for on-chip system, its by the above-mentioned system backup suitable for on-chip system with Recovery device is realized, is comprised the following steps:
S1, host computer are communicated with on-chip system chip by serial ports;And on-chip system chip is kept to be in power-off shape State;
S2, host computer initialization serial ports, selection needs the system image file backed up, and sets first memory to treat programming Offset address;
S3, host computer send the request of connection on-chip system chip, are constantly sent and held to on-chip system chip by serial ports Hand control word;
S4, to electric in on-chip system chip, start on-chip system chip, and in the control of shaking hands for receiving host computer transmission After word, response control word is sent to host computer;
S5, host computer are after response control word is received, first memory of the control on-chip system chip in step S2 Treat the offset address of programming, wipe corresponding block in first memory as the storage address of system mirror data and according to first Memory treats that system mirror data is write corresponding address in first memory by the offset address of programming.
A kind of system recovery method suitable for on-chip system, its by the above-mentioned system backup suitable for on-chip system with Recovery device realizes that it comprises the following steps:
BIOS in S01, startup first memory, before running the hard disk guiding operating system into peripheral hardware;
S02, the request for receiving default recovery system for transmission;
S03, by running the BIOS in first memory, the system backup data in first memory are write into peripheral hardware In hard drive space.
System backup provided by the invention suitable for on-chip system and recovery device and its method, have the following advantages that: (1) hard disk of the data backup procedure without peripheral hardware to be backed up, it is not required that the interface such as CD-ROM drive, floppy drive, network interface, USB.(2) system During recovery, without dismantling hard disk, it is not required that the interface such as serial ports, CD-ROM drive, floppy drive, USB.(3) when system is recovered, using system mirror As the direct programming of data, compared to the backup method based on file is played, the speed of backup is fast.
Brief description of the drawings
Fig. 1 is the embodiment of the present invention suitable for the system backup of on-chip system and the structured flowchart of recovery device;
Fig. 2 is the flow chart of the system backup method suitable for on-chip system of the embodiment of the present invention;
Fig. 3 is the sub-process figure of step S3 in Fig. 2;
Fig. 4 is the flow chart of the system recovery method suitable for on-chip system of the embodiment of the present invention.
Embodiment
As shown in figure 1, a kind of system backup and recovery device suitable for on-chip system, it includes on-chip system chip 10th, first memory 20, peripheral hardware 30 to be backed up and/or recovery.
Alternatively, wherein first memory 20 can be nonvolatile memory.Further, nonvolatile storage can be with It is flash memory (Flash) chip.The invention is not restricted to this.
First memory 20, peripheral hardware 30 electrically connect with on-chip system chip 10;First memory 20 is used to store BIOS Data and system mirror data.
On-chip system chip 10 includes processor 11, second memory 12, peripheral interface module 13;Processor 11 be used for from System mirror data is read in first memory 20, and system mirror data is write into peripheral hardware 30;Second memory 12 is used to deposit Storage system mirror back-up controls file;Peripheral interface module 13 is used to controlling on-chip system chip 10 and first memory 20, outer If the 30th, communication of serial ports 40.Second memory 12 can be ROM in piece.
Alternatively, system mirror data, the main boot fan of operating system mirror image, in addition to DISK to Image is not only included Area, partitions of file table, partition content etc. are all normally to start related data message to hard disk operation system.Usually, it is limited In capacity, system image file, which is stored in nonvolatile storage, needs interception and compression processing, and form and this hair is embodied in it It is bright unrelated.
Alternatively, the system backup and recovery device suitable for on-chip system can also include serial ports 40, host computer 50.On Position machine 50 can be common PC, and the invention is not restricted to this.
Host computer 50 is connected by serial ports 40 with on-chip system chip 10;Host computer 50 is used to control on-chip system chip 10 The backup of system mirror data is carried out to peripheral hardware 30;Second memory 12 is additionally operable to store the service document of serial ports 40;Peripheral Interface Module 13 is additionally operable to the communication for controlling on-chip system chip 10 by serial ports 40 and host computer 50.
Wherein system mirror data can be made in advance, and be stored in host computer 50.
Can store the program code in piece in ROM in second memory 12, this section of program code be used to receive it is upper The serial ports 40 of machine 50 is ordered, and judges whether to need to write system mirror data in first memory 20.
As shown in Fig. 2 the embodiment of the present invention also provides a kind of system backup method suitable for on-chip system, it passes through upper State the system backup suitable for on-chip system described in any one embodiment to realize with recovery device, comprise the following steps:
S1, host computer 50 are communicated with on-chip system chip 10 by serial ports 40;And keep at on-chip system chip 10 In off-position.
S2, host computer 50 initialize serial ports 40, and selection needs the system image file backed up, and sets first memory 20 Treat the offset address of programming;
S3, host computer 50 send the request of connection on-chip system chip 10, constantly by serial ports 40 to on-chip system chip 10 send control word of shaking hands.
S4, to electric in on-chip system chip 10, start on-chip system chip 10, and receiving holding for the transmission of host computer 50 After hand control word, response control word is sent to host computer 50.Handshake request control word is received, represents that the software of host computer 50 wishes standby Part mirror image.
S5, host computer 50 are after response control word is received, control on-chip system chip 10 first depositing in step S2 Reservoir 20 treats the offset address of programming, wipe corresponding block in first memory 20 as system mirror data storage address simultaneously System mirror data is write corresponding address in first memory 20 by the offset address for treating programming according to first memory 20.
Alternatively, as shown in figure 3, the step S5 includes:
S51, host computer 50 send erasing control word to on-chip system chip 10 and wait to wipe after response control word is received The block address removed;On-chip system chip 10 receives erasing control word and block address to be erased, and according to be erased Corresponding block in block address erasing first memory 20, and the response word wiped is sent to host computer 50;
S52, host computer 50 judge whether all blocks are wiped in first memory 20 after the response word of erasing is received Except finishing, step S53 is jumped to if all wiping;Step S51 is jumped to if without all wiping, and is repeated Step S51, step S52 is until block all in first memory 20 is wiped and finished, and jumps to step S53;
S53, host computer 50 send to on-chip system chip 10 after the response word of erasing is received and write control word and write ground Location, write data;On-chip system chip 10 receives and writes control word and write address, writes data, and is write data into according to write address In step S51 in first memory 20 in corresponding block, and the response word write is sent to host computer 50;
S54, host computer 50 judge whether all system mirror data deposit by write-in first after the response word of write-in is received In reservoir 20 in corresponding block, control word, on-chip system chip are sent completely to on-chip system chip 10 if all writing 10 receive complete control word after normally start;Step S53 is jumped to if without all writing, and repeats step S53, step S54 are until system mirror data is all 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 suitable for on-chip system, it passes through upper State the system backup suitable for on-chip system described in any one embodiment and realize that it comprises the following steps with recovery device:
BIOS in S01, startup first memory 20, run to the hard disk guiding operating system in peripheral hardware 30;
S02, the request for receiving default recovery system for transmission;
S03, by running the BIOS in first memory 20, the system backup data in first memory 20 are write outer If in 30 hard drive space.In this step, the image file writes hard drive space successively, and wiring method can be by hard disk CHS (cylinder, head, sector) address writes successively.
Alternatively, the step S02 also includes:
Trust authentication is carried out by request of the bios program to recovery system,
When being proved to be successful, redirect and perform step S03;In authentication failed, this flow is terminated.By implementing this implementation Example, improve the security of system recovery.The implementation of the trust authentication, it can be but be not limited only to password confirming.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory, internal memory, read-only storage, Institute is public in electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In the storage medium for any other forms known.
It is understood that for the person of ordinary skill of the art, it can be conceived with the technique according to the invention and done Go out other various corresponding changes and deformation, and all these changes and deformation should all belong to the protection model of the claims in the present invention Enclose.

Claims (4)

  1. A kind of 1. system backup method suitable for on-chip system, it is characterised in that methods described its by one kind be applied to piece The system backup of upper system realizes that the system backup suitable for on-chip system includes on piece with recovery device with recovery device System on Chip/SoC, first memory, peripheral hardware to be backed up and/or recovery;
    First memory, peripheral hardware electrically connect with on-chip system chip;First memory is used to store BIOS data and system Mirror image data;
    On-chip system chip includes processor, second memory, peripheral interface module;Processor is used to read from first memory System mirror data is taken, and system mirror data is write into peripheral hardware;Second memory is used for storage system mirror back-up control text Part;Peripheral interface module is used to control on-chip system chip and the communication of first memory, peripheral hardware, serial ports;
    The system backup suitable for on-chip system also includes serial ports, host computer with recovery device;
    Host computer is connected by serial ports with on-chip system chip;Host computer is used to control on-chip system chip to carry out system to peripheral hardware The backup of mirror image data;Second memory is additionally operable to store serial port service file;Peripheral interface module is additionally operable in control sheet System communication of the chip by serial ports and host computer;
    The system backup method suitable for on-chip system comprises the following steps:
    S1, host computer are communicated with on-chip system chip by serial ports, and keep on-chip system chip to be in off-position;
    S2, host computer initialization serial ports, selection needs the system image file backed up, and sets first memory to treat the inclined of programming Move address;
    S3, host computer send the request of connection on-chip system chip, constantly send control of shaking hands to on-chip system chip by serial ports Word processed;
    S4, to electric in on-chip system chip, start on-chip system chip, and in the control word of shaking hands for receiving host computer transmission Afterwards, response control word is sent to host computer;
    After response control word is received, first memory of the control on-chip system chip in step S2 is waited to burn for S5, host computer The offset address write, corresponding block in first memory is wiped as the storage address of system mirror data and is stored according to first Device treats that system mirror data is write corresponding address in first memory by the offset address of programming.
  2. 2. it is applied to the system backup method of on-chip system as claimed in claim 1, it is characterised in that the step S5 bags Include:
    S51, host computer send erasing control word and block number to be erased after response control word is received, to on-chip system chip Address;On-chip system chip receives erasing control word and block address to be erased, and is wiped according to block address to be erased Except corresponding block in first memory, and the response word wiped is sent to host computer;
    S52, host computer judge in first memory whether all blocks are wiped and finish after the response word of erasing is received, Step S53 is jumped to if all wiping;Step S51 is jumped to if without all wiping, and repeats step S51, step S52 are until block all in first memory is wiped and finished, and jumps to step S53;
    S53, host computer send to on-chip system chip after the response word of erasing is received and write control word and write address, write number According to;On-chip system chip receives and writes control word and write address, writes data, and is write data into according to write address in step S51 In first memory in corresponding block, and the response word write is sent to host computer;
    S54, host computer judge whether system mirror data is all write in first memory after the response word of write-in is received In corresponding block, control word is sent completely to on-chip system chip if all writing, on-chip system chip receives completion Normally start after control word;Step S53 is jumped to if without all writing, and it is straight to repeat step S53, step S54 Into system mirror data all write-in first memory in corresponding block.
  3. A kind of 3. system recovery method suitable for on-chip system, it is characterised in that methods described its by one kind be applied to piece The system backup of upper system realizes that the system backup suitable for on-chip system includes on piece with recovery device with recovery device System on Chip/SoC, first memory, peripheral hardware to be backed up and/or recovery;
    First memory, peripheral hardware electrically connect with on-chip system chip;First memory is used to store BIOS data and system Mirror image data;
    On-chip system chip includes processor, second memory, peripheral interface module;Processor is used to read from first memory System mirror data is taken, and system mirror data is write into peripheral hardware;Second memory is used for storage system mirror back-up control text Part;Peripheral interface module is used to control on-chip system chip and the communication of first memory, peripheral hardware, serial ports;
    The system backup suitable for on-chip system also includes serial ports, host computer with recovery device;
    Host computer is connected by serial ports with on-chip system chip;Host computer is used to control on-chip system chip to carry out system to peripheral hardware The backup of mirror image data;Second memory is additionally operable to store serial port service file;Peripheral interface module is additionally operable in control sheet System communication of the chip by serial ports and host computer;
    The system recovery method suitable for on-chip system comprises the following steps:
    BIOS in S01, startup first memory, before running the hard disk guiding operating system into peripheral hardware;
    S02, the request for receiving default recovery system for transmission;
    S03, by running the BIOS in first memory, by first memory system backup data write peripheral hardware hard disk In space.
  4. 4. it is applied to the system recovery method of on-chip system as claimed in claim 3, it is characterised in that the step S02 is also Including:
    Trust authentication is carried out by request of the bios program to recovery system,
    When being proved to be successful, redirect and perform step S03;In authentication failed, this flow is terminated.
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 CN105095020A (en) 2015-11-25
CN105095020B true 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)

Families Citing this family (5)

* 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
CN109343885B (en) * 2018-11-01 2022-02-25 阿波罗智能技术(北京)有限公司 System upgrading method and multi-system equipment
CN110489169B (en) * 2019-08-06 2021-10-19 晶晨半导体(上海)股份有限公司 Quick starting method for memory of system on chip
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7788234B2 (en) * 2007-08-23 2010-08-31 Microsoft Corporation Staged, lightweight backup system
CN102279914B (en) * 2011-07-13 2014-08-06 中国人民解放军海军计算技术研究所 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

Also Published As

Publication number Publication date
CN105095020A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105095020B (en) System backup and recovery device and its method suitable for on-chip system
TWI512459B (en) Cooperative memory management and method thereof
US8646054B1 (en) Mechanism to manage access to user data area with bridged direct-attached storage devices
CN101385004B (en) Data storage device using two types storage medium
JP4538027B2 (en) Semiconductor device
RU2445676C2 (en) Method of communication with multifunctional memory card
KR101395778B1 (en) Memory card and memory system including the same and operating method thereof
JP2001051904A (en) External storage device using non-volatile semiconductor memory
CN101833482A (en) The power management block that is used for Nonvolatile memory system
TWI451248B (en) Data protecting method, memory controller and memory storage apparatus
CN103235922B (en) Secure and scalable solid state disk system
CN110929261B (en) Memory system and operating method thereof
CN111523155B (en) Method for unlocking a secure digital memory device locked in a secure digital operating mode
CN101430700B (en) File management device and storage device
KR102195344B1 (en) Security system and method for computer using usb storage medium
CN106406939A (en) EMMC chip-based mobile terminal rollback prevention method and system
CN106648942A (en) Data switching method and device based on flash storage medium
CN102207905A (en) System recovery method, storage media controller and storage system
US20050193195A1 (en) Method and system for protecting data of storage unit
KR20200089939A (en) Memory system and operating method thereof
WO2018059565A1 (en) Method and system for backing up flash memory data
US20230087462A1 (en) Data storage device and operating method thereof
JP2012530991A (en) Combined memory and storage devices in data processing equipment
JP2000250818A (en) Storage system, storage device and stored data protecting method
CN103324581A (en) Programming storage unit, data reading method, memorizer controller and 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
GR01 Patent grant
GR01 Patent grant
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.

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

TR01 Transfer of patent right