CN101482823A - Single board application version implementing method and system - Google Patents

Single board application version implementing method and system Download PDF

Info

Publication number
CN101482823A
CN101482823A CN 200910003096 CN200910003096A CN101482823A CN 101482823 A CN101482823 A CN 101482823A CN 200910003096 CN200910003096 CN 200910003096 CN 200910003096 A CN200910003096 A CN 200910003096A CN 101482823 A CN101482823 A CN 101482823A
Authority
CN
China
Prior art keywords
application version
version
new application
single board
server
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
CN 200910003096
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200910003096 priority Critical patent/CN101482823A/en
Publication of CN101482823A publication Critical patent/CN101482823A/en
Priority to PCT/CN2009/073430 priority patent/WO2010081323A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The present invention discloses a method for realizing single board computer application version and a system thereof, wherein the method comprises the following steps: when the single board computer is actuated, checking whether an available application version exists in the program memory, loading and operating the available application version in the program memory if the available application version exists; otherwise requesting to download a new application version through actuating a network protocol, downloading the new application version file to the internal memory of single board computer, analyzing the new application version, and loading and operating after successful analyzing. The method and the system according to the invention can directly download the software version to the internal memory without opening the device at the state the software version on the memory of embedded type device and communication device is abnormal or generated with a failure. The normal operation of device is recovered through operating the software version in the internal memory and updating the software version in the memory of failed device.

Description

A kind of implementation method of single board application version and system
Technical field
The present invention relates to computing machine and embedded device technology field, relate in particular to a kind of implementation method and system of single board application version.
Background technology
The application version of present various embedded device, communication facilities, as start software or updating software release etc., be generally held in nonvolatile memory (Non-Volatile Memory) as among the flash (flash memory), in case the software version among the flash is destroyed or software fault occurs, to cause to continue to visit flash, thereby cause entire equipment can't normally to move or can't upgrade.
In order to address this problem the method that common application version to equipment veneer adopts two versions to back up mutually in the prior art; Perhaps adopt the method for big or small version, little version is used for emergent restoring, and large paper edition is used for normal operation.The principle of work of two kinds of methods is basic identical: veneer at first starts from BootRom (startup chip), checks first software version in the flash storer then, if this first software version can be used, then normally starts; If first software version is unavailable, check then whether second version available, if second version can with normally start, unavailable then can only be out of service, wait for that manual intervention repairs equipment.
As shown in Figure 1, adopt the operational scheme of two version method can be divided into following steps:
Step 101, veneer starts from BootRom;
Step 102 checks whether first software version in the flash storer is available, if available, then execution in step 105, otherwise enter step 103;
Step 103 checks whether second software version in the flash storer be available, if available then execution in step 105, otherwise would enter step 104;
Step 104 if all versions are all unavailable, then stops at the BootRom state, waits for manually and repairing;
Step 105 normally starts from this available edition.
From above flow process as can be seen, the software version that adopts two version method can only depend on and manually open equipment when two software versions are all destroyed, and the downloaded software version is in flash again through complicated operations, and maintenance efficiency is low; In addition, preserve two versions and need take bigger storage space, higher to the storage capacity requirement of flash, cause cost to increase; Simultaneously, make that also the read and write access speed of flash storer is all slow.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of implementation method and system of single board application version, when software version is recovered when unusual appears in the veneer application software, can reduce cost of products and maintenance cost, improves maintenance efficiency.
In order to address the above problem, the invention provides a kind of implementation method of single board application version, comprising:
Behind the single board starting, have or not available application version in the scrutiny program storer, if having, this useful application version in the described program storage of load operating then; Otherwise download new application version by starting the procotol request, described new application version file is downloaded in the internal memory of single board, and described new application version is resolved, resolve successfully back load operating.
Further, have or not available application version to comprise in the described scrutiny program storer: the position of position application version from described program storage, and the legitimacy of the described application version of verification and integrality.
Further, described method also comprises: after downloading to described new application version file in the described internal memory of single board, and the legitimacy and the integrality of the described new application version of verification.
Further, the legitimacy and the integrality of described verification Application version comprise: use the cyclic redundancy algorithm to check the integrality of described application version, and use RSA Algorithm to check the legitimacy of described application version.
Further, describedly download new application version and comprise:, and download new application version file by the file transfer protocol (FTP) request according to described IP address that obtains and application version file name by dynamic host allocation protocol DHCP agreement request IP address and application version file name by starting procotol.
Further, if described new application version is resolved unsuccessful, then request is downloaded again, wherein, described new application version resolved comprises: find the position that starts kernel and file system in described new application version.
Further, described method also comprises: after the described new application version of load operating finishes, download new application version by procotol, and new application version is write in the described program storage, so that the application version in the described program storage is upgraded.
The present invention also provides a kind of realization system of single board application version, comprises the veneer with program storage, also comprises the server that stores application version, and described internal memory of single board links to each other with described server,
Described veneer checks to have or not available application version in the described program storage after startup, if having, and this useful application version in the described program storage of load operating then; Otherwise download new application version by starting the procotol request, described new application version file is downloaded in the internal memory of single board, and described new application version is resolved, resolve successfully back load operating.
Further, described veneer also is used for:
After downloading to described new application version file in the described internal memory of single board, the legitimacy and the integrality of the described new application version of verification; And,
After the described new application version of load operating finishes, download new application version by procotol, and new application version is write in the described program storage, so that the application version in the described program storage is upgraded.
Further, described server comprises application version server and Dynamic Host Configuration Protocol server, and described internal memory of single board links to each other with described application version server and described Dynamic Host Configuration Protocol server respectively, wherein,
Described application version server is used to store described application version;
Described Dynamic Host Configuration Protocol server is used for the distribution of IP address and issuing of application version file name;
Described internal memory of single board, be used for by the DHCP agreement to described Dynamic Host Configuration Protocol server request IP address and application version file name, and download new application version file by file transfer protocol (FTP) from described application version server according to described IP address that obtains and application version file name.
Adopt the inventive method and system; make embedded device, communication facilities occur under the situation of unusual or fault at the software version on the storer; need not open equipment; directly the downloaded software version is in internal memory; by the software version in the running memory; and the software version in the renewal faulty equipment storer, make equipment recover normal operation.
The present invention can be used for the emergent restoring of software version, compares with traditional two versions or big or small version, has reduced cost of products, has improved maintenance efficiency; And, when two versions lost efficacy simultaneously in traditional method, also can utilize method of the present invention to recover; Simultaneously, the present invention also can be used to realize the veneer non-disk startup, need not read and write software version on the flash storer, has improved efficient.
Description of drawings
Fig. 1 is the operational flow diagram of the software version of the two version backups of available technology adopting;
Fig. 2 is the synoptic diagram based on the fail-safe software edition system of internal memory of the embodiment of the invention;
Fig. 3 is the method flow diagram based on the fail-safe software version of internal memory of the embodiment of the invention.
Embodiment
At present equipment based on the flash storing software; in case problem unusual then that equipment can't start or upgrade appears in device software; the present invention proposes a kind of single board application version based on internal memory; its core is: equipment veneer is connected to the software version server by network; like this; when the situation of unusual or fault appears in single board software edition; by start procotol from software version downloaded software version to internal memory; by the software version in the running memory; and the software version in the renewal faulty equipment storer, make equipment recover normal operation.
Particularly, the implementation method of single board application version of the present invention is mainly by the following technical solutions:
Step 1, Board Power up starts from BootRom;
Step 2, BootRom internal program trace routine storer as having or not available application version (software version) in the flash storer, if having, then loads the available edition among the flash, the normal startup, this method finishes; Otherwise BootRom starts procotol to software version server requests downloaded software version, and carries out next step;
Step 3 is downloaded new software version in internal memory, and checks the integrality and the legitimacy of institute's downloaded software version file;
Step 4 is resolved this software version in the internal memory, directly starts from this version.
After finishing above-mentioned steps, can upgrade the software version among the flash by the software interface of definition, thereby finish the equipment reparation.The software version that upgrades among the flash comprises: after the startup of internal memory software version is finished, download new software version by procotol, and version is written in the flash storer.
Wherein, in the above-mentioned steps two, check that the flash storer has or not the software version can be with comprising: the position of positioning software version from flash, use cyclic redundancy algorithm verification software version to confirm its integrality, use RSA (a kind of rivest, shamir, adelman) algorithm verification software version signature to confirm its legitimacy;
In the above-mentioned steps two, starting procotol comprises to software version server requests version software: at first by DHCP (Dynamic Host Configuration Protocol, dynamic host allocation protocol) agreement is asked downloaded software version file by file transfer protocol (FTP) from the software version server according to IP address that obtains and software version file name again to Dynamic Host Configuration Protocol server request IP address and software version file name.
In the above-mentioned steps three, check that the integrality and the legitimacy of software version file comprises: use the cyclic redundancy algorithm to finish software version verification and its integrality of affirmation, and use its legitimacy of RSA Algorithm verification software version Signature Confirmation.
In the above-mentioned steps four, the software version of resolving in the internal memory comprises: find the position that starts kernel and file system in the internal memory software version.
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
As shown in Figure 2, the realization system of the single board application version of the embodiment of the invention mainly comprises: equipment veneer, software version server and Dynamic Host Configuration Protocol server.Equipment veneer connects by network and links to each other with software version server and Dynamic Host Configuration Protocol server, and the software version server is responsible for the storage equipment software version, and Dynamic Host Configuration Protocol server is responsible for the distribution of IP address and issuing of software version file name.In other embodiments of the invention, software version server and Dynamic Host Configuration Protocol server also can be merged into a physical equipment.
As shown in Figure 3, the concrete implementation step of the implementation method of the single board application version of the embodiment of the invention is as follows:
Step 201, Board Power up, finish device initialize: the device hardware initialization comprises flash storer, internal memory, the network equipment etc.; Software initialization comprises the network protocol stack initialization;
Step 202, after device initialize is finished, the BootRom internal program begins the existing software version of search from flash, use the cyclic redundancy algorithm to check the integrality of version after finding software version, use RSA Algorithm to check the legitimacy of version, if software version can be used, then enter step 207, otherwise execution in step 203;
Step 203, the BootRom internal program starts network protocol stack, by the DHCP agreement to Dynamic Host Configuration Protocol server request IP address and software version file name, Dynamic Host Configuration Protocol server is got an IP address and is handed down to equipment veneer from address pool, utilize the BootFile field that software release name is issued equipment veneer simultaneously;
Step 204, equipment veneer downloads to software version in the equipment veneer internal memory by file transfer protocol (FTP) according to above-mentioned IP address and the software version file name received;
Step 205, the BootRom internal program is checked the integrality and the legitimacy of the software version file in the internal memory, comprising: use the cyclic redundancy algorithm to check the integrality of version, use RSA Algorithm to check the legitimacy of version, and carry out next step;
Step 206 judges whether the internal memory software version is available, if available, then enters step 207; Otherwise enter step 204, attempt again the downloaded software version in internal memory;
Step 207 finds the position of kernel and file system by certain method in software version, load kernel, starting outfit software.
Alternatively, in the step 207, after device start is finished, can use predefined software interface, upgrade the software version among the flash; If device software starts failure, the software version in can the update service device, and restart from step 201.
By above-mentioned flow process as can be seen, adopt technical scheme of the present invention need in flash, not preserve a plurality of software versions, reduced equipment cost; The whole robotizations of the software version process of updating the equipment are finished, and do not need manual intervention.Compare with traditional two versions or big or small version, improved maintenance efficiency, reduced maintenance cost.

Claims (10)

1, a kind of implementation method of single board application version is characterized in that, comprising:
Behind the single board starting, have or not available application version in the scrutiny program storer, if having, this useful application version in the described program storage of load operating then; Otherwise download new application version by starting the procotol request, described new application version file is downloaded in the internal memory of single board, and described new application version is resolved, resolve successfully back load operating.
2, the method for claim 1 is characterized in that, has or not available application version to comprise in the described scrutiny program storer: the position of position application version from described program storage, and the legitimacy of the described application version of verification and integrality.
3, the method for claim 1 is characterized in that, described method also comprises: after downloading to described new application version file in the described internal memory of single board, and the legitimacy and the integrality of the described new application version of verification.
As claim 2 or 3 described methods, it is characterized in that 4, the legitimacy and the integrality of described verification Application version comprise: use the cyclic redundancy algorithm to check the integrality of described application version, and use RSA Algorithm to check the legitimacy of described application version.
5, the method for claim 1, it is characterized in that, describedly download new application version and comprise:, and download new application version file by the file transfer protocol (FTP) request according to described IP address that obtains and application version file name by dynamic host allocation protocol DHCP agreement request IP address and application version file name by starting procotol.
6, the method for claim 1, it is characterized in that if unsuccessful to described new application version parsing, then request is downloaded again, wherein, described new application version is resolved comprise: in described new application version, find the position that starts kernel and file system.
7, the method for claim 1, it is characterized in that, described method also comprises: after the described new application version of load operating finishes, download new application version by procotol, and new application version write in the described program storage, so that the application version in the described program storage is upgraded.
8, a kind of realization system of single board application version comprises the veneer with program storage, it is characterized in that, also comprises the server that stores application version, and described internal memory of single board links to each other with described server,
Described veneer checks to have or not available application version in the described program storage after startup, if having, and this useful application version in the described program storage of load operating then; Otherwise download new application version by starting the procotol request, described new application version file is downloaded in the internal memory of single board, and described new application version is resolved, resolve successfully back load operating.
9, system as claimed in claim 8 is characterized in that, described veneer also is used for:
After downloading to described new application version file in the described internal memory of single board, the legitimacy and the integrality of the described new application version of verification; And,
After the described new application version of load operating finishes, download new application version by procotol, and new application version is write in the described program storage, so that the application version in the described program storage is upgraded.
10, system as claimed in claim 8 or 9 is characterized in that described server comprises application version server and Dynamic Host Configuration Protocol server, and described internal memory of single board links to each other with described application version server and described Dynamic Host Configuration Protocol server respectively, wherein,
Described application version server is used to store described application version;
Described Dynamic Host Configuration Protocol server is used for the distribution of IP address and issuing of application version file name;
Described internal memory of single board, be used for by the DHCP agreement to described Dynamic Host Configuration Protocol server request IP address and application version file name, and download new application version file by file transfer protocol (FTP) from described application version server according to described IP address that obtains and application version file name.
CN 200910003096 2009-01-19 2009-01-19 Single board application version implementing method and system Pending CN101482823A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200910003096 CN101482823A (en) 2009-01-19 2009-01-19 Single board application version implementing method and system
PCT/CN2009/073430 WO2010081323A1 (en) 2009-01-19 2009-08-21 Method for realizing single board application version and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910003096 CN101482823A (en) 2009-01-19 2009-01-19 Single board application version implementing method and system

Publications (1)

Publication Number Publication Date
CN101482823A true CN101482823A (en) 2009-07-15

Family

ID=40879949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910003096 Pending CN101482823A (en) 2009-01-19 2009-01-19 Single board application version implementing method and system

Country Status (2)

Country Link
CN (1) CN101482823A (en)
WO (1) WO2010081323A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010081323A1 (en) * 2009-01-19 2010-07-22 中兴通讯股份有限公司 Method for realizing single board application version and system thereof
CN102436402A (en) * 2011-03-29 2012-05-02 奇智软件(北京)有限公司 Module repairing method in software and software equipment
CN101615128B (en) * 2009-07-31 2012-05-23 北京华环电子股份有限公司 Online upgrade method and device of singlechip
CN104503811A (en) * 2015-01-09 2015-04-08 烽火通信科技股份有限公司 Method and system for upgrading communication device based on single memory area
CN105204900A (en) * 2015-09-23 2015-12-30 小米科技有限责任公司 Operation method and device for embedded chip, embedded chip and terminal device
CN106055341A (en) * 2016-06-14 2016-10-26 北京奇虎科技有限公司 Application installation package checking method and device
CN107967160A (en) * 2017-12-22 2018-04-27 杭州迪普科技股份有限公司 A kind of method and device that operating system file is updated by Boot Loader
CN111475220A (en) * 2019-01-23 2020-07-31 阿里巴巴集团控股有限公司 Cold start method and device, electronic equipment and computer storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536738A (en) * 2014-12-16 2015-04-22 北京锐安科技有限公司 Method and device for automatically configuring service card for ATCA platform main control card
CN109960523B (en) * 2017-12-22 2023-07-21 浙江宇视科技有限公司 Firmware upgrading method and device for embedded equipment
CN111813427A (en) * 2019-04-12 2020-10-23 杭州海康威视数字技术股份有限公司 Equipment repairing method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100343816C (en) * 2004-09-24 2007-10-17 华为技术有限公司 Method of restoring single board software edition
CN100501675C (en) * 2006-04-14 2009-06-17 北京瑞星国际软件有限公司 Method and apparatus used for upgrading software
CN101163055A (en) * 2007-11-21 2008-04-16 浪潮电子信息产业股份有限公司 Method of automatically detecting server hardware information
CN101482823A (en) * 2009-01-19 2009-07-15 中兴通讯股份有限公司 Single board application version implementing method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010081323A1 (en) * 2009-01-19 2010-07-22 中兴通讯股份有限公司 Method for realizing single board application version and system thereof
CN101615128B (en) * 2009-07-31 2012-05-23 北京华环电子股份有限公司 Online upgrade method and device of singlechip
CN102436402A (en) * 2011-03-29 2012-05-02 奇智软件(北京)有限公司 Module repairing method in software and software equipment
WO2012130009A1 (en) * 2011-03-29 2012-10-04 北京奇虎科技有限公司 Method and device for module repair in software
CN102436402B (en) * 2011-03-29 2014-12-10 奇智软件(北京)有限公司 Module repairing method in software and software equipment
CN104503811B (en) * 2015-01-09 2018-04-20 烽火通信科技股份有限公司 Upgrade method for communication device and system based on single memory block
CN104503811A (en) * 2015-01-09 2015-04-08 烽火通信科技股份有限公司 Method and system for upgrading communication device based on single memory area
CN105204900A (en) * 2015-09-23 2015-12-30 小米科技有限责任公司 Operation method and device for embedded chip, embedded chip and terminal device
CN106055341A (en) * 2016-06-14 2016-10-26 北京奇虎科技有限公司 Application installation package checking method and device
CN107967160A (en) * 2017-12-22 2018-04-27 杭州迪普科技股份有限公司 A kind of method and device that operating system file is updated by Boot Loader
CN107967160B (en) * 2017-12-22 2021-04-27 杭州迪普科技股份有限公司 Method and device for updating operating system file through Boot Loader
CN111475220A (en) * 2019-01-23 2020-07-31 阿里巴巴集团控股有限公司 Cold start method and device, electronic equipment and computer storage medium
CN111475220B (en) * 2019-01-23 2023-04-25 阿里巴巴集团控股有限公司 Cold start method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
WO2010081323A1 (en) 2010-07-22

Similar Documents

Publication Publication Date Title
CN101482823A (en) Single board application version implementing method and system
US10303459B2 (en) Electronic system with update control mechanism and method of operation thereof
US7991988B2 (en) Communication device and firmware update method thereof
CN107632846B (en) Firmware upgrade method and device, Shelf management module
CN102238093B (en) Service interruption prevention method and device
CN101232397B (en) Apparatus and method for renovating multi controller systems
US8468226B2 (en) Management server, boot server, network boot system, and network boot method
CN101546270A (en) Automatic installation method for Linux operation system, device and system
CN113282434B (en) Memory repair method based on post-package repair technology and related components
CN104834575A (en) Firmware recovery method and device
CN104915226A (en) Network device software starting method, device and network device
US20110320800A1 (en) System And Method For Booting A Computer System Using Preboot Data
CN107566169A (en) A kind of firmware upgrade method and router based on openwrt
KR102210408B1 (en) Method for duplication of virtualization server and Virtualization control apparatus thereof
CN106547645B (en) Method for automatically restoring image file and server system
US11182252B2 (en) High availability state machine and recovery
CN111124749A (en) Method and system for automatically repairing BMC (baseboard management controller) system of tightly-coupled high-performance computer system
CN109375953B (en) Operating system starting method and device
JP6599725B2 (en) Information processing apparatus, log management method, and computer program
WO2023109880A1 (en) Service recovery method, data processing unit and related device
CN104572198A (en) Service restoration method and device
US20220334825A1 (en) Modular firmware update
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
US20110173428A1 (en) Computer system, method for booting a computer system, and method for replacing a component
US10572166B1 (en) Firmware download for a solid state storage card

Legal Events

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

Open date: 20090715