CN102830986A - Method and device for turning on system in double-BOOT program condition - Google Patents

Method and device for turning on system in double-BOOT program condition Download PDF

Info

Publication number
CN102830986A
CN102830986A CN2011101638266A CN201110163826A CN102830986A CN 102830986 A CN102830986 A CN 102830986A CN 2011101638266 A CN2011101638266 A CN 2011101638266A CN 201110163826 A CN201110163826 A CN 201110163826A CN 102830986 A CN102830986 A CN 102830986A
Authority
CN
China
Prior art keywords
boot
program
module
command
boot program
Prior art date
Application number
CN2011101638266A
Other languages
Chinese (zh)
Inventor
张耀东
张红卫
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to CN2011101638266A priority Critical patent/CN102830986A/en
Publication of CN102830986A publication Critical patent/CN102830986A/en

Links

Abstract

The invention provides a method and a device for turning on a system in a double-BOOT program condition. The method comprises the following steps of: turning on a first BOOT program; after detecting that a second BOOT program is entire and effective through the first BOOT program, turning on the second BOOT program and guiding the system to turn on; and after detecting that the second BOOT program is entire and effective through the first BOOT program, executing the first BOOT program, and guiding the system to turn on. With the adoption of the technical scheme provided by the invention, the stable operation of equipment turned on through the BOOT programs can be ensured.

Description

一种在双BOOT程序环境下启动系统的方法和装置 A method and apparatus to start the system in a dual program environment BOOT

技术领域 FIELD

[0001] 本发明涉及电子通信领域,尤其涉及一种在双BOOT程序环境下启动系统的方法和装置。 [0001] The present invention relates to the field of electronic communications and more particularly relates to a method and apparatus for starting the system in a dual BOOT program environment.

背景技术 Background technique

[0002] 随着各种通信业务的不断增长,终端的主控设备的稳定运行变得尤为重要,而主控设备的稳定运行首先要有稳定高效的BOOT启动程序。 [0002] With the growing variety of communication services, and stable operation of the master terminal has become particularly important, and stable operation of the master device must first have a stable and efficient BOOT start the program. 现有的FLASH中存在的单BOOT启动程序无法对通讯领域中的突发事件如断电等,提供足够的保证。 FLASH present in existing single-BOOT program can not start communications in emergencies such as power outages, etc., provide sufficient guarantee. 此外,由于BOOT程序需要不断升级,现有的单BOOT程序如果在升级时遇到上述突发事件,将导致BOOT程序丢失,进而影响主控设备的正常运行。 In addition, due to the need to constantly upgrade BOOT program, existing single-BOOT program if you encounter unexpected events during the upgrade, it will result in the loss of BOOT program, thereby affecting the normal operation of the master device.

发明内容 SUMMARY

[0003] 本发明提供了一种在双BOOT程序环境下启动系统的方法和装置,以解决如何保证通过BOOT程序启动的设备的稳定运行的技术问题。 [0003] The present invention provides a method and apparatus for starting the system in a dual BOOT program environment, in order to solve the technical problem of how to ensure stable operation of a program started by the BOOT device.

[0004] 为解决该问题,本发明提供了一种在双BOOT程序环境下启动系统的方法,该方法包括: [0004] In order to solve this problem, the present invention provides a method for starting the system in a dual BOOT program environment, the method comprising:

[0005] 启动第一BOOT程序,通过第一BOOT程序检测到第二BOOT程序完整有效后,启动第二BOOT程序,引导系统启动;通过第一BOOT程序检测到第二BOOT程序非完整有效后,执行第一BOOT程序,引导系统启动。 [0005] BOOT program first starts, detected by the first program after the second BOOT BOOT program to complete and effective, BOOT second start program, the system starts the boot; BOOT detected after the second program to the first effective non-complete BOOT program, performing a first bOOT program guide system startup.

[0006] 进一步地,所述完整指的是BOOT程序包含版本头部和版本主体,所述有效指的是BOOT程序版本头部包含的信息与预设值相符。 [0006] Further, referring to the complete version BOOT program comprising a head body and version, it refers to the effective information is consistent with a preset value BOOT program version contains the head.

[0007] 进一步地,在启动BOOT程序的过程中,接收指令进入BOOT命令接收状态; [0007] Further, in starting BOOT program, receiving an instruction into the command reception BOOT state;

[0008] 接收BOOT命令,从简单文件传输协定(TFTP)客户端下载该BOOT命令指示的需升级的一个BOOT程序; [0008] The reception BOOT command, the client needs to download a program to upgrade the BOOT BOOT command instruction from a Trivial File Transfer Protocol (the TFTP);

[0009] 待检测到该BOOT程序升级成功后,再次进入BOOT命令接收状态,接收BOOT命令,从TFTP客户端下载该BOOT命令指示的需升级的另一个BOOT程序。 [0009] BOOT be detected after the program upgrade is successful, re-enter the command reception BOOT status, command reception BOOT, BOOT terminal download another program for an upgrade from the TFTP BOOT command instructs the client.

[0010] 进一步地,在启动BOOT程序的过程中,接收指令进入BOOT命令接收状态; [0010] Further, in starting BOOT program, receiving an instruction into the command reception BOOT state;

[0011] 接收BOOT命令,从简单文件传输协定(TFTP)客户端下载该BOOT命令指示的需升级的BOOT程序。 [0011] receiving BOOT command to download the program to be upgraded in the BOOT BOOT command instruction from a Trivial File Transfer Protocol (TFTP) client.

[0012] 进一步地,引导系统启动后,远程登录到WFTP客户端,下载需升级的第二BOOT程序。 After the [0012] Further, the guidance system start, telnet client to WFTP second BOOT need to download the upgrade.

[0013] 为解决上述问题,本发明还提供了一种在双BOOT程序环境下启动系统的装置,所述装置包括第一启动控制模块,第二启动控制模块,其中, [0013] In order to solve the above problems, the present invention also provides a means of starting the system in a dual BOOT program environment, the apparatus comprising a first start control module, the second start control module, wherein,

[0014] 所述第一启动控制模块,用于启动第一BOOT程序,通过第一BOOT程序检测到第二BOOT程序完整有效后,向第二启动控制模块发出启动信号,或者通过第一BOOT程序检测到第二BOOT程序非完整有效后,执行第一BOOT程序,引导系统启动;[0015] 所述第二启动控制模块,用于接收到第一启动控制模块发出的启动信号后,启动弟~■ BOOT程序,引导系统启动。 [0014] The first start control means for starting a first procedure BOOT, BOOT program after detecting the second complete and effective, sent to the second start signal to start the first control module BOOT program, or the program by the first BOOT detecting the second complete and effective non-bOOT program after executing the first bOOT program guide system starts; after [0015] the second start control module, configured to receive a first activation signal sent by the control module starts, start ~ brother ■ bOOT program guide system startup.

[0016] 进一步地,所述完整指的是BOOT程序包含版本头部和版本主体,所述有效指的是BOOT程序版本头部包含的信息与预设值相符。 [0016] Further, referring to the complete version BOOT program comprising a head body and version, it refers to the effective information is consistent with a preset value BOOT program version contains the head.

[0017] 进一步地,所述装置还包括BOOT命令接收模块、BOOT程序指令升级模块和BOOT程序升级成功检测模块, [0017] Further, the apparatus further comprises a command receiving module BOOT, BOOT program instructions and upgrading module BOOT program upgrade module successfully detected,

[0018] 所述第一启动控制模块或所述第二启动控制模块,还用于在启动BOOT程序的过程中,接收指令触发BOOT命令接收模块工作; [0018] The first promoter or the second promoter control module control module is further configured to start the process BOOT program, receiving an instruction command receiving module BOOT trigger work;

[0019] 所述BOOT命令接收模块,用于接收BOOT命令,触发BOOT程序指令升级模块工作; [0019] The BOOT command receiving means for receiving a command BOOT, to upgrade the program instructions trigger the module BOOT;

[0020] 所述BOOT程序指令升级模块,用于接收到来自所述输入BOOT命令模块的触发命令后,从简单文件传输协定(TFTP)客户端下载BOOT命令指示的需升级的BOOT程序; [0020] The program instructions BOOT upgrade module, for, after receiving the trigger command from the command input module BOOT client downloads the BOOT BOOT program to be upgraded from a simple command indicates a file transfer protocol (the TFTP);

[0021] 所述BOOT程序升级成功检测模块,用于检测所述BOOT程序升级模块是否成功升级BOOT程序,当BOOT程序成功升级后,触发所述BOOT命令接收模块。 [0021] The BOOT program upgrade was successful detection means for detecting whether the successful upgrade module BOOT BOOT program upgrade program, when the program is successfully upgraded BOOT triggering the BOOT command receiving module.

[0022] 进一步地,所述装置还包括BOOT命令接收模块、BOOT程序指令升级模块, [0022] Further, the apparatus further comprises a command receiving module BOOT, upgrade module BOOT program instructions,

[0023] 所述第一启动控制模块或所述第二启动控制模块,还用于在启动BOOT程序的过程中,接收指令触发BOOT命令接收模块工作; [0023] The first promoter or the second promoter control module control module is further configured to start the process BOOT program, receiving an instruction command receiving module BOOT trigger work;

[0024] 所述BOOT命令接收模块,用于接收BOOT命令,触发BOOT程序指令升级模块工作; [0024] The BOOT command receiving means for receiving a command BOOT, to upgrade the program instructions trigger the module BOOT;

[0025] 所述BOOT程序指令升级模块,用于接收到来自所述输入BOOT命令模块的触发命令后,从简单文件传输协定(TFTP)客户端下载BOOT命令指示的需升级的BOOT程序。 [0025] The program instructions BOOT upgrade module, for, after receiving the trigger command from the command input module BOOT client downloads the BOOT BOOT program to be upgraded from a simple command indicates a file transfer protocol (TFTP).

[0026] 进一步地,所述装置还包括BOOT程序远程升级模块, [0026] Further, the apparatus further comprises a remote upgrade module BOOT program,

[0027] 所述第一启动控制模块或所述第二启动控制模块,还用于在引导系统启动后,触发BOOT程序远程升级模块; [0027] The first promoter or the second promoter control module control module is further configured to boot the system starts, triggered remotely upgrade module BOOT program;

[0028] 所述BOOT程序远程升级模块,用于接收来自第一启动控制模块或所述第二启动控制模块的触发信号,远程登录到WFTP客户端,下载需升级的第二BOOT程序。 [0028] The remote upgrade BOOT program module for receiving a start trigger signal from the first control means or the second actuator control module to the telnet client WFTP second BOOT need to download the upgrade.

[0029] 本发明保护的技术方案中由第一BOOT程序参与选择启动那一块BOOT程序,不需要增加额外的硬件,不需要改变现有主控板的硬件结构,实现起来简单方便;另外,本发明保护的技术方案中升级BOOT程序时,先保证一个BOOT程序升级成功后,再升级另一个BOOT程序,或者仅升级其中的一个BOOT程序,避免了两个BOOT程序同时升级遇上述突发事件带来的严重后果。 [0029] The technical solution of the present invention is protected by the first selection BOOT program participation that a BOOT program starts, no additional hardware, without changing the hardware structure of the existing main control board, easy to implement; Further, the present aspect of the claimed invention when BOOT upgrade program, to ensure the success of a BOOT program upgrade, upgrade another BOOT program, or only one of the BOOT upgrade program, to avoid the above two emergency case with BOOT program to upgrade to serious consequences.

附图说明 BRIEF DESCRIPTION

[0030] 图I为本发明实施例的在双BOOT程序环境下启动系统的装置的内部模块图; [0030] Figure I embodiment of the present invention to start an internal block diagram of a system device in a dual BOOT program environment;

[0031] 图2为本发明实施例的第一BOOT程序检测是否存在第二个BOOT程序的方法流程图; [0031] FIG 2 a first embodiment of a method BOOT program whether there is a second flowchart BOOT program detects the present invention;

[0032] 图3为本发明实施例的在双BOOT程序环境下启动系统的方法流程图; [0032] FIG. 3 is a flowchart of a method to start the system in a dual BOOT program environment according to an embodiment of the present invention;

[0033] 图4为本发明实施例的BOOT程序的组成示意图; [0033] FIG. 4 BOOT program consisting schematic diagram of an embodiment of the invention;

[0034] 图5为本发明实施例的升级BOOT程序的方法流程图。 [0034] FIG. 5 BOOT program update method according to an embodiment of the flowchart of the present invention.

具体实施方式[0035] 为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。 DETAILED DESCRIPTION [0035] To make the objectives, technical solutions, and advantages of the present invention will become apparent from, the accompanying drawings hereinafter in conjunction with embodiments of the present invention will be described in detail. 需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。 Incidentally, in the case of no conflict, embodiments and features of the embodiments of the present application may be arbitrarily combined with each other.

[0036] 图1,为本发明实施例的在双BOOT程序环境下启动系统的装置的内部模块图。 [0036] FIG. 1, the embodiment of the system of starting an internal block diagram of the device in dual BOOT program environment of the present invention.

[0037] 该装置包括第一启动控制模块1,第二启动控制模块2,其中, [0037] The activation control apparatus includes a first module 1, a second start control module 2, wherein,

[0038] 第一启动控制模块1,用于启动第一BOOT程序,通过第一BOOT程序检测到第二BOOT程序完整有效后,向第二启动控制模块2发出启动信号,或者通过第一BOOT程序检测到第二BOOT程序非完整有效后,执行第一BOOT程序,引导系统启动; [0038] The first start control module 1, a first BOOT program for starting, after the second detection program BOOT BOOT complete and effective through the first program, a second start signal to start issuing a control module 2, or by the first program BOOT Upon detection of a second non-full effective bOOT program, performing a first bOOT program guide system boot;

[0039] 第二启动控制模块2,用于接收到第一启动控制模块I发出的启动信号后,启动第_. BOOT程序,引导系统启动。 After [0039] 2 second startup control module, configured to receive a first start signal start control module I issued to start the first _. The BOOT program guide system startup.

[0040] 为实现对BOOT程序的升级,本实施例的上述装置还包括BOOT命令接收模块3、 BOOT程序指令升级模块4和BOOT程序升级成功检测模块5, [0040] To achieve the BOOT upgrade program, the above-described embodiment of the apparatus of the present embodiment further includes a command receiving module BOOT. 3, 4 upgrading module BOOT program instructions and program upgrade successfully BOOT detecting module 5,

[0041] 第一启动控制模块I或第二启动控制模块2在启动BOOT程序的过程中,接收指令触发BOOT命令接收模块3工作; [0041] The first or second start control module I start control module 2 during the start-BOOT program, command reception BOOT trigger command receiving module 3 operates;

[0042] BOOT命令接收模块3,用于接收BOOT命令,触发BOOT程序指令升级模块4工作; [0042] BOOT command receiving module 3, for receiving the BOOT command, the program instructions trigger BOOT upgrading module 4 operates;

[0043] BOOT程序指令升级模块4,用于接收到来自BOOT命令接收模块3的触发命令后,从简单文件传输协定(TFTP)客户端下载该BOOT命令指示的需升级的BOOT程序; [0043] BOOT program instructions upgrade module 4, after receiving a trigger command from the BOOT command receiving module 3, the client downloads the BOOT BOOT program to be upgraded from a simple command indicates a file transfer protocol (the TFTP);

[0044] BOOT程序升级成功检测模块5,用于检测BOOT程序指令升级模块4是否成功升级BOOT程序,当BOOT程序成功升级后,触发BOOT命令接收模块3。 [0044] BOOT program upgrade successfully detecting module 5, BOOT program instructions for detecting whether or not successfully upgraded upgrade module 4 BOOT program, when the program is successfully upgraded BOOT, BOOT trigger command receiving module 3.

[0045] 本发明所述的装置也可以仅包含上述BOOT命令接收模块3和BOOT程序指令升级模块4,用于升级两个BOOT程序中的其中一个BOOT程序。 [0045] The apparatus of the present invention may comprise only the above-described command receiving module BOOT BOOT program instructions 3 and 4 upgrade module, two for the upgrade programs wherein a BOOT BOOT program.

[0046] 为实现对BOOT程序的升级,本实施例所述装置还可包含一BOOT程序远程升级模块6, [0046] To achieve the BOOT upgrade program, the present embodiment the device may also include a remote upgrade BOOT program modules 6,

[0047] 第一启动控制模块I或第二启动控制模块2在引导系统启动后,触发BOOT程序远程升级模块6 ; [0047] The first or second start control module I 2 start control module after booting the system starts, triggered remotely upgrade module BOOT program 6;

[0048] BOOT程序远程升级模块6,用于接收来自第一启动控制模块I或第二启动控制模块2的触发信号,远程登录到WFTP客户端,下载需升级的第二BOOT程序。 [0048] BOOT program remotely upgrade module 6, for receiving a first or second start control module I start trigger signal control module 2, the telnet client to WFTP second BOOT be upgraded from a download.

[0049] 通过上述本发明实施例所述的装置能够选择升级BOOT程序的方式:指令升级方式或远程升级方式。 Instructions remotely upgrade or update mode: [0049] The embodiment of the apparatus is able to select a program to upgrade BOOT manner by the above-described embodiment of the present invention.

[0050] 本发明还提供了一种在双BOOT程序环境下启动系统的方法实施例。 [0050] The present invention further provides a method for starting the system in a dual embodiment BOOT program environment.

[0051 ] 系统上电,启动第一BOOT程序,通过该第一BOOT程序检测系统中是否存在第二个BOOT程序,具体检测方法流程如图2所示; [0051] The system is powered on, the program starts BOOT first, whether there is a second program BOOT BOOT program by the first detection system, detection methods specific procedure shown in Figure 2;

[0052] S201第一BOOT程序判断是否需要检测第二BOOT程序,如需要,执行步骤S202,否则执行步骤S204 ; [0052] S201 BOOT program first determines whether a second detection BOOT program, if necessary, perform step S202, otherwise step S204;

[0053] S202第一BOOT程序检测FLASH中是否保存了第二BOOT程序,如保存,执行步骤S203,否则执行步骤S204 ; [0053] S202 BOOT program first detects whether the stored second FLASH BOOT programs, such as saving, performing step S203, the step S204 otherwise;

[0054] S203进入双BOOT程序环境下启动系统流程; [0054] S203 to enter the system flow at start-bis BOOT program environment;

[0055] S204进入单BOOT程序环境下启动系统流程。 [0055] S204 to enter the system flow at a single start BOOT program environment.

[0056] 上述进入双BOOT程序环境下启动系统的方法流程如图3所示。 [0056] Under the above-bis BOOT program environment into the system startup process flow shown in Figure 3. [0057] S301第一BOOT程序检测第二BOOT程序是否完整有效,如是,执行步骤0302 ;否贝U,执行步骤S303 ; [0057] S301 detects a first BOOT BOOT second program is complete and effective, and if so, performing step 0302; NO shell U, step S303;

[0058] 所述完整指的是BOOT程序包含版本头部和版本主体,所述有效指的是BOOT程序版本头部包含的信息与预设值相符。 [0058] The BOOT program refers to a complete version comprising a head body and version, refers to the effective information is consistent with a preset value BOOT program version contains the head.

[0059] 本实施例给出了一个BOOT程序组成示意图,BOOT程序的组成信元包括版本号、版本的创建时间、版本头的长度和整个版本的大小、BOOT掩码信息和版本头的校验和等,如图4所示。 [0059] The present embodiment shows a schematic diagram of procedures of the BOOT, BOOT program information element including the version number, the version of the creation time, and the entire length of the first version of the size version, and version information check BOOT mask head as shown in FIG 4, and the like.

[0060] S302启动第二BOOT程序,引导系统启动; [0060] S302 to start the second BOOT program guide system boot;

[0061] 当第一BOOT检测出第二BOOT程序完整有效时,将第二BOOT程序拷贝到内存中的某个地址,跳转到该内存地址启动第二BOOT程序,同时为主控板上运行的系统版本的加载准备运行空间; [0062] 第二BOOT程序检测文件系统类型,初始化文件系统; [0061] When the first BOOT BOOT program detects a second complete and effective, BOOT second copy of the program to an address in memory, jumps to the start address of the second memory BOOT program is run MPU version of the system is ready to run loading space; [0062] BOOT program detects a second file system type, file system initialization;

[0063] 第二BOOT程序检测FLASH存储的系统版本文件是否完整有效,包括:检查系统版本文件的掩码、大小、校验和等; [0063] The second detection BOOT program FLASH memory version of the system file is complete and effective, comprising: a mask inspection system version of the file, the size, checksum, and the like;

[0064] 第二BOOT程序检测出上述系统版本文件完整有效时,将上述系统版本文件加载到内存中,启动系统;否则,返回该系统版本无效信息。 [0064] When the second BOOT program detects the complete version of the file system is valid, said system version of the file is loaded into memory, the system boot; otherwise, the system returns invalid version information.

[0065] S303执行第一BOOT程序,引导系统启动,同现有技术。 [0065] S303 BOOT program performs a first guidance system to start, with the prior art.

[0066] 随着BOOT程序的不断更新,烧结在FLASH中的BOOT程序也要不断升级。 [0066] With the continuous update of BOOT program, sintering BOOT program in FLASH should also escalating.

[0067] 图5,为本发明实施例的升级BOOT程序的方法流程图。 [0067] FIG. 5, BOOT program update method according to an embodiment of the flowchart of the present invention.

[0068] 在升级BOOT程序之前,首先需要搭建升级BOOT程序的环境,包括将BOOT程序所在的主控板与PC机相连,在PC机侧运行简单文件传输协定TFTP客户端,准备好需要升级的BOOT程序,将主控板和TFTP客户端的IP地址配置在同一网段,该配置IP地址的操作也可在下述进入输入BOOT命令界面后,通过输入C命令实现。 [0068] Before upgrading BOOT program, you first need to set up a program to upgrade BOOT environment, including the main control board BOOT program is located connected to a PC, running on the PC side of the Trivial File Transfer Protocol TFTP client, ready to be upgraded BOOT program, and the IP address of the TFTP client control board is disposed in the same network segment, the IP address configuration operations can be input into the command interface BOOT in the following, C is achieved by the input command.

[0069] 搭建好上述升级BOOT程序的环境后,开始进入升级流程: [0069] After the above-mentioned build a good environment BOOT upgrade program, began to enter the upgrade process:

[0070] S501在启动BOOT程序的过程中,接收指令进入BOOT命令接收状态; [0070] S501 in starting BOOT program, receiving an instruction into the command reception BOOT state;

[0071] S502接收burn命令,从TFTP客户端下载该burn命令指示的需升级的第一BOOT程序; [0071] S502 burn received command, to download a first end of the BOOT program to be upgraded from a burn command indicates TFTP client;

[0072] S503待检测到第一BOOT程序升级成功后,再次进入BOOT命令接收状态,接收burn命令,从TFTP客户端下载该burn命令指示的需升级的第二BOOT程序。 [0072] S503 to be detected after the first successful BOOT program upgrade, re-enter the command receiving state BOOT, burn received command, to download the second program to be upgraded BOOT burn the command instruction from the TFTP client.

[0073] 待第二BOOT程序升级成功后,重启主控板,按照上述在双BOOT程序环境下启动系统的方法,选择BOOT程序启动。 [0073] After the second BOOT program upgrade is successful restart control board, the method according to boot the system in a dual BOOT program environment described above, the BOOT program starts.

[0074] 上述升级BOOT程序的方法中,升级第一BOOT程序和升级第二BOOT程序的顺序可变,此外上述升级BOOT程序的方法也可用于仅升级第一BOOT程序或第二BOOT程序。 [0074] The method BOOT program upgrade, the upgrade of the first order of the second and upgrades BOOT BOOT program variable, in addition to the above-described procedure BOOT upgrade methods may be used to upgrade only the first or second program BOOT BOOT program.

[0075] 在本发明的其他实施例中给出了另一种升级BOOT程序的方法。 [0075] Another method is given BOOT upgrade program in other embodiments of the present invention.

[0076] 同样地,在升级BOOT程序之前搭建升级BOOT程序的环境。 [0076] Similarly, the build environment BOOT program upgrade before upgrading BOOT program. 该实施例提供了另一种搭建升级BOOT程序的环境的方法:将BOOT程序所在的主控板与PC机相连,在PC机侧运行WFTP客户端,准备好需要升级的BOOT程序,通过PC机远程登录至主控板,对主控板的IP和虚拟局域网VLAN参数进行配置。 This embodiment provides another method for setting up an update of BOOT program: The MPU BOOT program is located is connected to a PC, the PC client side runs WFTP, ready to BOOT need to upgrade the program, through the PC Telnet to the main PCB, IP and virtual LAN (VLAN) parameters of the MPU configuration.

[0077] 搭建好上述升级BOOT程序的环境后,开始进入升级流程:[0078] 在BOOT程序引导系统启动后,远程登录到WFTP客户端,下载需升级的第二BOOT程序。 [0077] After the above-mentioned build a good environment BOOT upgrade program, began to enter the upgrade process: [0078] After the BOOT system startup program guide, remote log on to WFTP client to download the second BOOT program to be upgraded.

[0079] 待第二BOOT程序升级成功后,重启主控板,按照上述在双BOOT程序环境下启动系统的方法,选择BOOT程序启动。 [0079] After the second BOOT program upgrade is successful restart control board, the method according to boot the system in a dual BOOT program environment described above, the BOOT program starts.

[0080] 为了维护系统的安全性,该升级方法通常只用于升级第二BOOT程序。 [0080] In order to maintain the security of the system, which is usually only upgrade program to upgrade the second BOOT. 但如果BOOT程序改动较大,如涉及到FLASH分区的改动,该方法也用于在第二BOOT程序升级成功后,升级第一BOOT程序。 But if larger BOOT program changes, such as changes involving FLASH partition, the method can also be used after the second BOOT program upgrade is successful, the upgrade of the first BOOT program.

[0081] 需要说明的是,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 [0081] Incidentally, the present invention can have a variety of other embodiments, without departing from the spirit and essence of the invention, those skilled in the art may make various corresponding modifications and variations according to the present invention , but the protection scope of these respective modifications and variations of the present invention should belong to the appended claims.

Claims (10)

1. 一种在双BOOT程序环境下启动系统的方法,其特征在于, 启动第一BOOT程序,通过第一BOOT程序检测到第二BOOT程序完整有效后,启动第二BOOT程序,引导系统启动;通过第一BOOT程序检测到第二BOOT程序非完整有效后,执行第一BOOT程序,引导系统启动。 CLAIMS 1. A method for starting the system in a dual BOOT program environment, wherein the first BOOT program starts, the program detects the second BOOT BOOT complete and effective through the first program, a second start BOOT program guide system boot; Upon detection of a second non-full bOOT program by the first active bOOT program, performs a first bOOT program guide system startup.
2.如权利要求I所述的方法,其特征在于所述完整指的是BOOT程序包含版本头部和版本主体,所述有效指的是BOOT程序版本头部包含的信息与预设值相符。 2. The method of claim I, wherein said means a complete version BOOT program comprising a head body and version, refers to the effective information is consistent with a preset value BOOT program version contains the head.
3.如权利要求I所述的方法,其特征在于, 在启动BOOT程序的过程中,接收指令进入BOOT命令接收状态; 接收BOOT命令,从简单文件传输协定(TFTP)客户端下载该BOOT命令指示的需升级的一个BOOT程序; 待检测到该BOOT程序升级成功后,再次进入BOOT命令接收状态,接收BOOT命令,从TFTP客户端下载该BOOT命令指示的需升级的另一个BOOT程序。 3. The method of claim I, wherein, in starting BOOT program, receiving an instruction into the command reception BOOT state; reception BOOT command to download the BOOT command from a Trivial File Transfer Protocol (TFTP) client indicates a BOOT program to be upgraded; BOOT be detected after the program upgrade is successful, re-enter the command reception BOOT status, command reception BOOT, BOOT download another program for an upgrade from the TFTP BOOT command instructs the client.
4.如权利要求I所述的方法,其特征在于, 在启动BOOT程序的过程中,接收指令进入BOOT命令接收状态; 接收BOOT命令,从简单文件传输协定(TFTP)客户端下载该BOOT命令指示的需升级的BOOT程序。 4. The method of claim I, wherein, in starting BOOT program, receiving an instruction into the command reception BOOT state; reception BOOT command to download the BOOT command from a Trivial File Transfer Protocol (TFTP) client indicates BOOT need to upgrade the program.
5.如权利要求I所述的方法,其特征在于, 引导系统启动后,远程登录到WFTP客户端,下载需升级的第二BOOT程序。 5. The method of claim I, wherein the guidance system startup, WFTP telnet client to download the second program to be upgraded in the BOOT.
6. 一种在双BOOT程序环境下启动系统的装置,其特征在于,所述装置包括第一启动控制模块,第二启动控制模块,其中, 所述第一启动控制模块,用于启动第一BOOT程序,通过第一BOOT程序检测到第二BOOT程序完整有效后,向第二启动控制模块发出启动信号,或者通过第一BOOT程序检测到第二BOOT程序非完整有效后,执行第一BOOT程序,引导系统启动; 所述第二启动控制模块,用于接收到第一启动控制模块发出的启动信号后,启动第二BOOT程序,引导系统启动。 6. A system in a dual boot means BOOT program environment, characterized in that said control means comprises a first activation module, a second start control module, wherein the first start control means for starting the first bOOT program, the program detects the second bOOT bOOT complete and valid by the first program to issue a second start signal to the start control module, or the non-detection of the second complete and effective bOOT program after executing the first program by the first bOOT program bOOT guidance system boot; after the second start control module, a first start signal for starting the control module sent is received, the second start bOOT program guide system startup.
7.如权利要求6所述的装置,其特征在于, 所述完整指的是BOOT程序包含版本头部和版本主体,所述有效指的是BOOT程序版本头部包含的信息与预设值相符。 7. The apparatus according to claim 6, wherein said means a complete version BOOT program comprising a head body and version, refers to the effective information is consistent with a preset value BOOT program version contains header .
8.如权利要求6所述的装置,其特征在于,所述装置还包括BOOT命令接收模块、BOOT程序指令升级模块和BOOT程序升级成功检测模块, 所述第一启动控制模块或所述第二启动控制模块,还用于在启动BOOT程序的过程中,接收指令触发BOOT命令接收模块工作; 所述BOOT命令接收模块,用于接收BOOT命令,触发BOOT程序指令升级模块工作; 所述BOOT程序指令升级模块,用于接收到来自所述输入BOOT命令模块的触发命令后,从简单文件传输协定(TFTP)客户端下载BOOT命令指示的需升级的BOOT程序; 所述BOOT程序升级成功检测模块,用于检测所述BOOT程序升级模块是否成功升级BOOT程序,当BOOT程序成功升级后,触发所述BOOT命令接收模块。 8. The apparatus according to claim 6, characterized in that said apparatus further comprises a command receiving module BOOT, BOOT program instructions and upgrading module BOOT program upgrade module successfully detected, the first or second start control module start control module is further configured to start the process bOOT program, receiving an instruction command receiving module bOOT trigger work; bOOT said command receiving means for receiving a command bOOT, to upgrade the program instructions trigger the module bOOT; the bOOT program instructions upgrade module, after receiving a command from the input module BOOT trigger command, the client needs to download the update program BOOT BOOT command instructed from a Trivial file transfer protocol (the TFTP); BOOT program upgrade the successful detection module, with BOOT program to detecting said upgrading module BOOT successful upgrade program, when the program is successfully upgraded BOOT triggering the BOOT command receiving module.
9.如权利要求6所述的装置,其特征在于,所述装置还包括BOOT命令接收模块、BOOT程序指令升级模块, 所述第一启动控制模块或所述第二启动控制模块,还用于在启动BOOT程序的过程中,接收指令触发BOOT命令接收模块工作; 所述BOOT命令接收模块,用于接收BOOT命令,触发BOOT程序指令升级模块工作;所述BOOT程序指令升级模块,用于接收到来自所述输入BOOT命令模块的触发命令后,从简单文件传输协定(TFTP)客户端下载BOOT命令指示的需升级的BOOT程序。 9. The apparatus according to claim 6, characterized in that said apparatus further comprises a command receiving module BOOT, upgrade module BOOT program instructions, the first or second start control module startup control module is further configured during startup bOOT program, receiving an instruction command receiving module bOOT trigger work; bOOT said command receiving means for receiving a command bOOT, to upgrade the program instructions trigger the module bOOT; bOOT program instructions of said upgrade module, for receiving the after input from the command module BOOT trigger command, the client need to download the upgrade program BOOT BOOT order direct from a Trivial file transfer protocol (TFTP).
10.如权利要求6所述的装置,其特征在于,所述装置还包括BOOT程序远程升级模块,所述第一启动控制模块或所述第二启动控制模块,还用于在引导系统启动后,触发BOOT程序远程升级模块; 所述BOOT程序远程升级模块,用于接收来自第一启动控制模块或所述第二启动控制模块的触发信号,远程登录到WFTP客户端,下载需升级的第二BOOT程序。 10. The apparatus according to claim 6, characterized in that said apparatus further comprises a remote upgrade BOOT program modules, the first module or the second start-up control start control module is further configured to boot the system after start , trigger remotely upgrade module bOOT program; bOOT program the remote upgrade module for receiving a start trigger signal from the first control means or the second actuator control module to WFTP telnet client to download a second to be upgraded BOOT program.
CN2011101638266A 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition CN102830986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101638266A CN102830986A (en) 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101638266A CN102830986A (en) 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition

Publications (1)

Publication Number Publication Date
CN102830986A true CN102830986A (en) 2012-12-19

Family

ID=47334136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101638266A CN102830986A (en) 2011-06-17 2011-06-17 Method and device for turning on system in double-BOOT program condition

Country Status (1)

Country Link
CN (1) CN102830986A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094927A (en) * 2015-08-28 2015-11-25 东方网力科技股份有限公司 Equipment firmware updating method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421792B1 (en) * 1998-12-03 2002-07-16 International Business Machines Corporation Data processing system and method for automatic recovery from an unsuccessful boot
CN1567195A (en) * 2003-06-20 2005-01-19 华为技术有限公司 Method for implementing hot-update of bootstrap program in flush bonding system
CN1783001A (en) * 2004-11-29 2006-06-07 华为技术有限公司 Method for starting basic input and output system
CN101101559A (en) * 2007-08-14 2008-01-09 中兴通讯股份有限公司 Engineer application method and device for using double Bootrom starting and guiding CPU
CN101169727A (en) * 2007-11-12 2008-04-30 中兴通讯股份有限公司 CPU system starting method and system
US20090019275A1 (en) * 2007-07-13 2009-01-15 Park Dong-Jin Secure Boot Method and Semiconductor Memory System Using the Method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421792B1 (en) * 1998-12-03 2002-07-16 International Business Machines Corporation Data processing system and method for automatic recovery from an unsuccessful boot
CN1567195A (en) * 2003-06-20 2005-01-19 华为技术有限公司 Method for implementing hot-update of bootstrap program in flush bonding system
CN1783001A (en) * 2004-11-29 2006-06-07 华为技术有限公司 Method for starting basic input and output system
US20090019275A1 (en) * 2007-07-13 2009-01-15 Park Dong-Jin Secure Boot Method and Semiconductor Memory System Using the Method
CN101101559A (en) * 2007-08-14 2008-01-09 中兴通讯股份有限公司 Engineer application method and device for using double Bootrom starting and guiding CPU
CN101169727A (en) * 2007-11-12 2008-04-30 中兴通讯股份有限公司 CPU system starting method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094927A (en) * 2015-08-28 2015-11-25 东方网力科技股份有限公司 Equipment firmware updating method and device
CN105094927B (en) * 2015-08-28 2018-06-12 东方网力科技股份有限公司 A kind of device firmware upgrade method and apparatus

Similar Documents

Publication Publication Date Title
CN1925926B (en) Device including cooperative embedded agents, related system and method
US7809836B2 (en) System and method for automating bios firmware image recovery using a non-host processor and platform policy to select a donor system
US7321936B2 (en) System for and method of streaming data to a computer in a network
US8904162B2 (en) Methods and apparatus for performing secure BIOS upgrade
US20140033194A1 (en) Automatically and securely configuring and updating virtual machines
JP2006085714A (en) Deploying and receiving software over network susceptible to malicious communication
CN100561923C (en) System and method for refreshing and upgrading BIOS
US9965304B2 (en) Delayed hardware upgrades in virtualization systems
US8171502B2 (en) Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
US10157077B2 (en) Method and system for transferring a virtual machine
AU2011329330B2 (en) Method of provisioning firmware in an operating system (OS) absent services environment
US20120144391A1 (en) Provisioning a virtual machine
US20120297181A1 (en) Persisting a Provisioned Machine on a Client Across Client Machine Reboot
US9749393B2 (en) System for downloading and executing a virtual application
US9104517B2 (en) System for downloading and executing a virtual application
KR20070077463A (en) Method of system booting with a direct memory access in a new memory architecture
CN101063959A (en) Portable storage device with stand-alone antivirus capability
US20060026590A1 (en) Method and apparatus for modifying software
CN1898642A (en) Method and apparatus for remote modifcation of system configuration
US8627141B2 (en) System and method for auto-failover and version matching of bootloader in an access controller
CN100501679C (en) Electric device
US20110179211A1 (en) Bios architecture
JP2002297411A (en) Update system and its method for application software in execution using modular system
JP2001312415A (en) Method and device for downloading firmware to nonvolatile memory
JP3916806B2 (en) Remote loading execution method, remote loading execution system, information processing apparatus, management apparatus, and computer-readable recording medium

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
RJ01