CN104156282A - System image file backup system and method - Google Patents

System image file backup system and method Download PDF

Info

Publication number
CN104156282A
CN104156282A CN201410402303.6A CN201410402303A CN104156282A CN 104156282 A CN104156282 A CN 104156282A CN 201410402303 A CN201410402303 A CN 201410402303A CN 104156282 A CN104156282 A CN 104156282A
Authority
CN
China
Prior art keywords
module
image file
buffer zone
system image
standby system
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
CN201410402303.6A
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 CN201410402303.6A priority Critical patent/CN104156282A/en
Publication of CN104156282A publication Critical patent/CN104156282A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a system image file backup system which comprises a response module for responding to firmware downloading requests, a judgment module which is connected with the response module and is used for judging the TCP connection state, a determining module which is connected with the response module and used for determining the WebServer state, a search module connected with the response module and used for searching for the position and size of a buffer region, an executive module connected with the search module and used for reading data of the buffer region in Flash, and a transmission module connected with the executive module and used for sending the data in the buffer region to a client for backup. The invention further discloses a system image file backup method. The method is implemented in CFE without depending on an operating system itself and without other auxiliary software or drivers, and an image file can be backed up in a user computer. On the premise that no extra memory device capacity is increased, the system and method are convenient and fast, simple and easy to implement and bring convenience for users in the later burning process.

Description

A kind of system and method for standby system image file
Technical field
The present invention relates to the communications field, be specifically related to a kind of system and method for standby system image file.
Background technology
The public firmware environment (Common Firmware Environment, CFE) of embedded OS is Bootloader(start-up loading device) one.Bootloader is one section of program moving before operating system.Its effect is initiating hardware equipment, set up memory headroom mapping graph, thereby take the hardware environment of system to a suitable state, to be ready to correct environment for final call operation system kernel, the loading initiating task of Bootloader completion system.
Flash is a hardware composition part of router, and in embedded device, Flash is divided into NOR Flash and NAND Flash, and Flash is nonvolatile memory, Flash be used for saved system normally move need program file and code.
In the process of exploitation and use router, back up necessary to the image file being stored in Flash.
In prior art, image file being backed up is to backup on the particular zones of the memory device that carries in system, has strengthened the capacity of memory device, has improved the cost of product, is unfavorable for the cost control of product.
Summary of the invention
The object of the present invention is to provide a kind of system and method for standby system image file, in CFE, realize, do not rely on operating system itself, without other assistant softwares or driving, image file is backed up in user computer, not having additionally increases under the prerequisite of capacity of memory device, convenient and swift simple, facilitates user's burning in the future.
In order to achieve the above object, the present invention is achieved through the following technical solutions: a kind of system of standby system image file, be characterized in, and comprise:
Respond module, for responding download firmware request;
Judge module, is connected with described respond module, for judging the connection status of TCP;
Confirm module, be connected with described respond module, for confirming the state of WebServer;
Search module, be connected with described respond module, for searching position and the size of buffer zone;
Execution module, is connected with the described module of searching, for reading the data of Flash buffer zone;
Transport module, is connected with described execution module, for the data of buffer zone being sent to user side backup.
Preferably, the system of standby system image file further comprises a request module, is connected, for sending download firmware request with described respond module.
A method for standby system mirror file system as described in claim 1 and 2, is characterized in, comprises following steps:
The system of S1, initialization backup system image file;
S2, judge module judge the connection status of TCP;
If the connection status of TCP is TCPSTATE_ESTABLISHED, jump to step S3;
If the connection status of TCP is TCPSTATE_ESTABLISHED, continue execution step S2;
S3, confirmation module are confirmed the state of WebServer;
If the state of WebServer is HTTP_DOWNLOAD_EXE, jump to step S4;
S4, search module and in Flash, search position and the size of buffer zone, and obtain Flash facility information;
S5, execution module read the data of buffer zone in Flash, and are sent to transport module;
The data of buffer zone are sent to user side backup by S6, transport module.
Preferably, also further comprise step S0 before described step S1, described step S0 is the request that request module sends download firmware.
Preferably, described step S2 is specially respond module the state of WebServer is set to HTTP_DOWNLOAD_EXE.
In described step S3, if the state of WebServer is not HTTP_DOWNLOAD_EXE, other requests of system responses request module.
Preferably, after described step S6, also further comprise step S7, the connection status of TCP is set to TCPSTATE_CLOSED by described step S7.
Preferably, in described step S6, transport module utilizes http protocol that the data of buffer zone are sent to user side backup.
Preferably, in described step S6, transport module utilizes http protocol to realize miniature web page server the data of buffer zone is sent to user side backup.
The system and method for a kind of standby system image file of the present invention compared with prior art has the following advantages: in CFE, realize, do not rely on operating system itself, without other assistant softwares or driving, image file is backed up in user computer, not having additionally increases under the prerequisite of capacity of memory device, convenient and swift simple, facilitate user's burning in the future, with low cost.
Brief description of the drawings
Fig. 1 is the system architecture diagram of a kind of standby system image file of the present invention.
Fig. 2 is the method flow diagram of a kind of standby system image file of the present invention.
Embodiment
Below in conjunction with accompanying drawing, by describing a preferably specific embodiment in detail, the present invention is further elaborated.
The present invention is mainly used in the wireless router of residential gateway product, and as shown in Figure 1, a kind of system of standby system image file, comprises: respond module 1, for responding download firmware request; Judge module 2, is connected with described respond module 1, for judging the connection status of TCP; Confirm module 3, be connected with described respond module 1, for confirming the state of WebServer; Search module 4, be connected with described respond module 1, for searching position and the size of buffer zone; Execution module 5, is connected with the described module 4 of searching, for reading the data of Flash buffer zone; Transport module 6, is connected with described execution module 5, for the data of buffer zone being sent to user side backup; Request module 7, is connected with described respond module 1, for sending download firmware request.
As shown in Figure 2, the method for standby system image file comprises following steps:
S0, request module 7 send the request of download firmware;
The system of S1, initialization backup system image file, the state of WebServer is set to HTTP_DOWNLOAD_EXE by respond module 1;
S2, judge module 2 judge the connection status of TCP;
If the connection status of TCP is TCPSTATE_ESTABLISHED, jump to step S3;
If the connection status of TCP is TCPSTATE_ESTABLISHED, continue execution step S2;
S3, confirmation module 3 are confirmed the state of WebServer;
If the state of WebServer is HTTP_DOWNLOAD_EXE, jump to step S4;
If the state of WebServer is not HTTP_DOWNLOAD_EXE, other requests of system responses request module 7;
S4, search module 4 and in Flash, search position and the size of buffer zone, and obtain Flash facility information;
S5, execution module 5 read the data of buffer zone in Flash, and are sent to transport module;
S6, transport module 6 utilize http protocol to realize miniature web page server (Mini Web Server), and the data of buffer zone are sent to user side backup;
S7, the connection status of TCP is set to TCPSTATE_CLOSED.
Although content of the present invention has been done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.Read after foregoing those skilled in the art, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.

Claims (9)

1. a system for standby system image file, is characterized in that, comprises:
Respond module (1), for responding download firmware request;
Judge module (2), is connected with described respond module (1), for judging the connection status of TCP;
Confirm module (3), be connected with described respond module (1), for confirming the state of WebServer;
Search module (4), be connected with described respond module (1), for searching position and the size of buffer zone;
Execution module (5), is connected with the described module (4) of searching, for reading the data of Flash buffer zone;
Transport module (6), is connected with described execution module (5), for the data of buffer zone being sent to user side backup.
2. the system of standby system image file as claimed in claim 1, is characterized in that, further comprises a request module (7), is connected, for sending download firmware request with described respond module (1).
3. a method for the standby system mirror file system as described in claim 1 and 2, is characterized in that, comprises following steps:
The system of S1, initialization backup system image file;
S2, judge module (2) judge the connection status of TCP;
If the connection status of TCP is TCPSTATE_ESTABLISHED, jump to step S3;
If the connection status of TCP is TCPSTATE_ESTABLISHED, continue execution step S2;
S3, confirmation module (3) are confirmed the state of WebServer;
If the state of WebServer is HTTP_DOWNLOAD_EXE, jump to step S4;
S4, search module (4) and in Flash, search position and the size of buffer zone, and obtain Flash facility information;
S5, execution module (5) read the data of buffer zone in Flash, and are sent to transport module;
The data of buffer zone are sent to user side backup by S6, transport module (6).
4. the method for standby system image file as claimed in claim 3, is characterized in that, before described step S1, comprises and also further comprises step S0, and described step S0 is that request module (7) sends download firmware request.
5. the method for the standby system image file as described in claim 3 or 4, is characterized in that, after described step S6, also further comprises step S7, and the connection status of TCP is set to TCPSTATE_CLOSED by described step S7.
6. the method for standby system image file as claimed in claim 5, is characterized in that, described step S2 is specially respond module (1) state of WebServer is set to HTTP_DOWNLOAD_EXE.
7. the method for standby system image file as claimed in claim 6, is characterized in that, in described step S3, if the state of WebServer is not HTTP_DOWNLOAD_EXE, and other requests of system responses request module (7).
8. the method for standby system image file as claimed in claim 7, is characterized in that, in described step S6, transport module (6) utilizes http protocol that the data of buffer zone are sent to user side backup.
9. the method for standby system image file as claimed in claim 8, is characterized in that, in described step S6, transport module (6) utilizes http protocol to realize miniature web page server the data of buffer zone are sent to user side backup.
CN201410402303.6A 2014-08-15 2014-08-15 System image file backup system and method Pending CN104156282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410402303.6A CN104156282A (en) 2014-08-15 2014-08-15 System image file backup system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410402303.6A CN104156282A (en) 2014-08-15 2014-08-15 System image file backup system and method

Publications (1)

Publication Number Publication Date
CN104156282A true CN104156282A (en) 2014-11-19

Family

ID=51881787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410402303.6A Pending CN104156282A (en) 2014-08-15 2014-08-15 System image file backup system and method

Country Status (1)

Country Link
CN (1) CN104156282A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423080A (en) * 2017-04-06 2017-12-01 大连网月科技股份有限公司 A kind of autosynchronous method and device of main preparation system firmware
CN112235427A (en) * 2020-12-14 2021-01-15 广东睿江云计算股份有限公司 Merging method and system for mirror image files

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055778A (en) * 2009-11-05 2011-05-11 新加坡商威四方私人有限公司 Method for implementing information transmission on network relay equipment
CN102637174A (en) * 2011-02-11 2012-08-15 鸿富锦精密工业(深圳)有限公司 Mirror image file management system and mirror image file management method
WO2012154751A1 (en) * 2011-05-08 2012-11-15 Infinetics Technologies, Inc. Flexible radix switching network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055778A (en) * 2009-11-05 2011-05-11 新加坡商威四方私人有限公司 Method for implementing information transmission on network relay equipment
CN102637174A (en) * 2011-02-11 2012-08-15 鸿富锦精密工业(深圳)有限公司 Mirror image file management system and mirror image file management method
WO2012154751A1 (en) * 2011-05-08 2012-11-15 Infinetics Technologies, Inc. Flexible radix switching network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423080A (en) * 2017-04-06 2017-12-01 大连网月科技股份有限公司 A kind of autosynchronous method and device of main preparation system firmware
CN112235427A (en) * 2020-12-14 2021-01-15 广东睿江云计算股份有限公司 Merging method and system for mirror image files

Similar Documents

Publication Publication Date Title
CN103338254B (en) Terminal across application pushing method, device, terminal and system
EP2755136B1 (en) Remote backup system and remote backup method thereof
US20090172217A1 (en) Distributed storage service systems and architecture
US20170171295A1 (en) File upload and download methods and associated server
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
US20140250158A1 (en) Method and device for obtaining file
WO2014089734A1 (en) Terminal and application program restoration method
EP3256943A1 (en) Systems and methods for adaptive cloning of mobile devices
TW201319941A (en) BIOS network access
CN105208508A (en) Intelligent device, wearable device, installation package pushing method, installation package receiving method
KR20150032703A (en) Method, apparatus and system of recovering an operating system on a portable communication device
EP2621142A1 (en) Apparatus and Method for Determining Duplication of Content in Portable Terminal
CN106547602B (en) Method for manufacturing operating system mirror image suitable for iSCSI protocol remote wireless loading
US20130318142A1 (en) Remote card content management using synchronous server-side scripting
CN104156282A (en) System image file backup system and method
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
US10394482B2 (en) Snap tree arbitrary replication
US11586509B2 (en) Operating system repairs via electronic devices
US9497574B2 (en) System and method for transmitting data based on Bluetooth, and apparatus applied to the same
US20120117258A1 (en) Techniques to deploy and undeploy content to and from web servers
US10735245B2 (en) Information processing apparatus and information processing method
US20130290549A1 (en) Method for managing network connection information and electronic device thereof
CN111158760B (en) Loading method and device for card configuration file and electronic equipment
CN113287092A (en) System and method for adding digital content during application opening operation
KR20120065674A (en) Device for downloading files on behalf of another device and operation method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141119