WO2004086223A1 - A method for configurating a singleboard automatically - Google Patents

A method for configurating a singleboard automatically Download PDF

Info

Publication number
WO2004086223A1
WO2004086223A1 PCT/CN2003/000225 CN0300225W WO2004086223A1 WO 2004086223 A1 WO2004086223 A1 WO 2004086223A1 CN 0300225 W CN0300225 W CN 0300225W WO 2004086223 A1 WO2004086223 A1 WO 2004086223A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
srom
configuration
space
token
Prior art date
Application number
PCT/CN2003/000225
Other languages
French (fr)
Chinese (zh)
Inventor
Jie Feng
Jingwei Xie
Peng Fei
Original Assignee
Utstarcom (China) 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 Utstarcom (China) Co, Ltd. filed Critical Utstarcom (China) Co, Ltd.
Priority to CNB038262002A priority Critical patent/CN100380320C/en
Priority to AU2003221235A priority patent/AU2003221235A1/en
Priority to PCT/CN2003/000225 priority patent/WO2004086223A1/en
Publication of WO2004086223A1 publication Critical patent/WO2004086223A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Definitions

  • the present invention relates to a method for configuring a plug-in board, and in particular, to a method for automatically configuring a single board in a mobile communication system, a fixed communication system, and a data communication system.
  • the equipment used in mobile communication systems, fixed communication systems, and data communication systems is a multi-chassis unit cascade system.
  • Figure 1 shows the physical structure of a communication device.
  • the chassis unit is a physical frame structure that carries a single board.
  • the system board is a circuit board that centrally controls the bus.
  • a single board is any circuit board in the system except the system board, and is a unit that carries the hardware and software required by the communication system.
  • the board without software is a physical board, and the board with software is a functional board.
  • the functional single board implements different functions, such as: Media Gateway (Media Gatewa) and Signaling Gateway (Singnalling Gateway).
  • Different functional single boards jointly perform the same service in a communication system, such as: 3G SGSN (general packet radio service support node for calling).
  • the same type of service can be configured with different numbers and different types of functional boards.
  • the automatic configuration of the board is that after the physical board is started, a specific configuration file is obtained, and different software is loaded into the functional board according to the configuration file. Through the automatic configuration of the board, the operator only needs to change the configuration file to enable the same physical device to complete different functions and services.
  • An existing method for automatic board configuration is based on Linux's real-time replacement kernel (Take over) technology to implement automatic board configuration.
  • FIG. 2 shows a flow of such a conventional single board automatic configuration method.
  • the system board runs the board configuration management module on a hardware environment compatible with CompactPCI (Small External Device Interconnect). After the board configuration management module is started, all the boards on this frame are generated according to the saved configuration file. A small database of information, and then wait for the kernel launcher running on the board to report messages or files.
  • a board compatible with the CompactPCI specification runs the kernel boot program after power-on. The kernel boot program is small and is a simple Linux kernel. After booting, it will first check the hardware information of the board or report it to the board of the system board by message.
  • RCP Remote Copy Protocol
  • Linux Linux
  • IP Internet Protocol
  • the board configuration management module of the system board receives a message or detects that a specific file is created, the module controls the kernel startup program to replace the kernel in real time with Linux based on the received content and the contents of the small database that holds the board information.
  • the technology loads and runs another true Linux kernel file containing applications on a single board. In this way, the automatic discovery and configuration of the board is realized.
  • the real-time replacement kernel technology is used to switch from one running Linux kernel to another running Linux kernel. This technology must be built on the Linux platform, so Linux's hardware support has become a key factor restricting this method.
  • Real-time replacement Kernel technology support for the Linux version is also a limiting factor; this method will increase the boot time of the board in two places at startup time. The first board has completely launched the kernel boot program before loading the real kernel, which is equivalent to a board It experienced two full startups; the time consumed by the second Linux real-time replacement kernel technology.
  • Another existing method for automatic board configuration is based on the improved BOOTP (Booting Protocol) protocol to realize the automatic board configuration.
  • the system board runs the board configuration management module. After the board configuration management module is started, a small database of all board information on the frame is generated according to the saved configuration file. Same The system board is configured as a BOOTP server.
  • the improved BOOTP protocol program on the board will send a BOOTP request after startup. After receiving the BOOTP request, the system board will check if the MAC (Media Access Control) address contained in the BOOTP already exists in the configuration. If it already exists in the configuration, it responds to the board with the IP used before the MAC; if the MAC address does not exist in the configuration, it takes an address response from the IP address pool configured by the system board as a BOOTP server.
  • MAC Media Access Control
  • the information returned to the board also includes the subnet mask, the default route, the kernel image file name, the TFTP server address, and the configuration file name.
  • Other boards or hosts running a BOOTP server program may also return a BOOTP response, but since these BOOTP responses do not contain the above-mentioned simultaneous response information, they will be discarded by the improved BOOTP protocol program on the board.
  • the board After the board obtains the correct response, it will retrieve the specified kernel image and configuration file from the TFTP (Trivial File Transfer Protocol) server specified in the response, and start it based on these files.
  • the board After the board is started, it will send a Cisco (Cisco) Discovery Protocol (CDP) report to the system board to confirm that the configuration is complete. At this time, the board is fully discovered and configured automatically.
  • CDP Cisco (Cisco) Discovery Protocol
  • the disadvantage of this method is that (1) the BOOTP request contains no additional information except the MAC address, so the MAC of each board needs to be configured into the configuration database during configuration, which will increase the difficulty of configuration. (2) The improved BOOTP server process must be running on the system board.
  • an object of the present invention is to provide a method for automatically configuring a single board in a communication system.
  • the establishment of a configuration library is easy to operate. After the configuration library is established, the system board can actively discover and identify the single board inserted into the system, and according to the configuration library, Automatically configure boards
  • a method for reporting the hardware type of a board is provided, which includes: the system board actively discovers that a board is inserted; the system board reads the hardware information of the board through the CompactPCI configuration space, including Supplier information and equipment information. These information are fixed in the board after the board hardware is completed.
  • a method for automatically configuring a single board compatible with the CompactPCI specification includes: inserting a single board into a chassis; a system board obtaining hardware information of the inserted board; and the system board according to the obtained The information finds the matching board configuration information in the board configuration database; the system board writes the obtained board configuration information into the SROM space of the board through the CompactPCI space; the board according to the written information in the SROM space Complete the automatic configuration.
  • a method for reporting a hardware type of a single board compatible with the CompactPCI specification includes: detecting whether a single board is inserted, and if there is a single board inserted, powering on the inserted single board by snatching
  • the SROM token of the board confirms that the board hardware initialization is completed; the SROM token is seized, and the variables of the board written in advance by the supplier of the hardware are read through the CompactPCI space, and then retrieved in the board information database according to these variables Boot parameters to the board; Configure boot parameters to the board SROM through the CompactPCI space; Set the "boot parameter ready” flag in the board SROM.
  • Figure 1 shows the physical structure of a communication device.
  • FIG. 2 shows a flow of a conventional method for automatic board configuration.
  • FIG. 3 shows a flow of a method for automatically configuring a single board according to the present invention.
  • FIG. 3 shows a flow of a method for automatic board configuration according to the present invention.
  • a high availability management module (HAM) is run on the system board, and all board information on the chassis is generated according to the saved configuration file.
  • the small single board configuration database waits for information from the single board.
  • HAM uses the configuration file or OMC (Operation and Maintenance Center) method to manage all configured board information.
  • the system board can find the IP address, subnet mask, default route, kernel image file name, FTP server address, and configuration file name corresponding to the board by inserting the hardware type of the board that is compatible with the CompactPCI specification.
  • the address is a range of addresses, and the system board will automatically select unused IPs for allocation.
  • the system board will detect that the board is inserted, and the system board will power on the board and rob the SROM token of the board to obtain the right to write information to the board SROM through the CompactPCI configuration space.
  • the SROM token can only be released after the board is powered on and SROM initialization is performed.
  • the process performed by the system board HAM is described in detail below.
  • the system board HAM performs the following process:
  • the board must be started according to the startup parameters in the SROM.
  • the system board is started, a high availability management module is run on the system board, and a board configuration database is generated according to a configuration file stored in the system board. Then, the system board detects whether a single board is inserted, and if there is a single board inserted, powers on the inserted board. After the board is powered on, the board clears the "startup parameter ready" flag in the SROM space, and at the same time the board releases the SROM token and waits for a period of time. At the same time, the system board determines whether the hardware initialization of the board is completed by robbing the token of the board SROM.
  • the system board After the system board obtains the SROM token, read the variables of the board written in advance by the supplier of the hardware through the CompactPCI space, and then retrieve the board's startup parameters in the board configuration database according to these variables. The system board writes the retrieved startup parameters of the board into the SROM space of the board through the CompactPCI space to configure the startup parameters of the board to the board SROM. Then, the system board sets the "startup parameter ready” flag in the SROM of the board, and after the "startup parameter ready” flag is set in the board SROM, the system board releases the SROM token. Thereafter, the board robs the SROM token, and once the SROM token is obtained, it is judged whether the "startup parameter ready” flag in the board SROM is set. If the bit is not set, the system board continues to wait. If the flag is set, the board loads the kernel image and application according to the startup parameters, thereby completing the automatic configuration.
  • the present invention has a fast startup speed, and the board is initialized only once; it is not limited to a specific type of board; it is convenient to add a new configuration, and only needs to target one hardware type If you use a MAC address, you need to add each board once.
  • the boards can be automatically configured according to the hardware type of the boards provided, so that boards of the same type can complete different functions.

Abstract

The present invention provides a method for configurating a singleboard automatically, especially to communication field. According to the method, after the singleboard that is compatible with Compact PCI standard is plugged in a machine frame, the system board can recognise the singleboard automatically and transmits the configuration information to the SROM space of the singleboard with Compact PCI mapping space, the songleboard accomplishs the configuration automatically according to the configuration information in the SROM space and starts to run after startup. Therefor the singleboard can be recognised and configured automatically.

Description

单板自动配冒的方法 技术领域  TECHNICAL FIELD
本发明涉及插板的配置方法, 特别涉及移动通信系统、 固定 通信系统和数据通信系统中单板的自动配置方法。 背景技术  The present invention relates to a method for configuring a plug-in board, and in particular, to a method for automatically configuring a single board in a mobile communication system, a fixed communication system, and a data communication system. Background technique
一般来说, 在移动通信系统、 固定通信系统和数据通信系统 中使用的设备多为多机框单元级连的系统。  Generally, the equipment used in mobile communication systems, fixed communication systems, and data communication systems is a multi-chassis unit cascade system.
图 1示出通信设备的物理结构。  Figure 1 shows the physical structure of a communication device.
如图 1所示 机框单元是承载单板的物理框架结构。 系统板 是对总线进行中央控制的电路板。 单板是系统中除系统板的任何 一个电路板, 是承载通信系统所需要的硬件和软件的单元。 没有 加载软件的单板是物理性单板,加载了软件的单板是功能性单板。 根据加载的软件不同, 功能性单板实现了不同的功能, 如: 媒体 网关 ( Media Gatewa ) , 和信令网关 ( Singnalling Gateway ) 。 不同的功能性单板在一个通信系统中共同完成同一个服务, 如: 3G的 SGSN (发出呼叫的通用分组无线业务支持节点)。 同一种 类型的服务, 可以根据配置不同数量和不同类型的功能性单板。  As shown in Figure 1, the chassis unit is a physical frame structure that carries a single board. The system board is a circuit board that centrally controls the bus. A single board is any circuit board in the system except the system board, and is a unit that carries the hardware and software required by the communication system. The board without software is a physical board, and the board with software is a functional board. Depending on the software loaded, the functional single board implements different functions, such as: Media Gateway (Media Gatewa) and Signaling Gateway (Singnalling Gateway). Different functional single boards jointly perform the same service in a communication system, such as: 3G SGSN (general packet radio service support node for calling). The same type of service can be configured with different numbers and different types of functional boards.
单板的自动配置是物理性的单板启动后, 取得特定的配置文 件, 根据配置文件加载不同的软件变成功能性单板。 通过单板的 自动配置, 运营商只需要更改配置文件, 就可以使相同的物理设 备完成不同的功能服务。  The automatic configuration of the board is that after the physical board is started, a specific configuration file is obtained, and different software is loaded into the functional board according to the configuration file. Through the automatic configuration of the board, the operator only needs to change the configuration file to enable the same physical device to complete different functions and services.
下面说明现有的单板自动配置的方法。  The following describes the existing method of automatic board configuration.
现有的一种单板自动配置的方法是基于 Linux的实时替换内 核(Take over )技术来实现单板的自动配置。  An existing method for automatic board configuration is based on Linux's real-time replacement kernel (Take over) technology to implement automatic board configuration.
图 2示出了这种现有的单板自动配置方法的流程。 如图 2所示, 系统板在兼容 CompactPCI (小型外部设备互 连) 的硬件环境上运行单板配置管理模块, 单板配置管理模决启 动后, 根据保存的配置文件生成本框上所有单板信息的小型数据 库, 然后等待在单板上运行的内核启动程序上报消息或文件。 兼 容 CompactPCI规范的单板在上电后运行内核启动程序, 内核启 动程序很小, 是一个简单的 Linux内核, 启动后, 会先检查举板 的硬件信息, 或者用消息报给系统板的单板配置管理模块, 或者 用 RCP (远程复制协议)技术通过 IP (因特网协议) 网络写到系 统板上 Linux (利尼克斯) 文件系统的一个特定文件中。 当系统 板的单板配置管理模块收到消息或检测到特定的文件被创建后, 该模块根据收到的内容和保存单板信息的小型数据库中内容, 控 制内核启动程序用 Linux的实时替换内核技术在单板上加载并运 行另一个真正的包含应用的 Linux内核文件。 从而实现单板的自 动发现和配置。 FIG. 2 shows a flow of such a conventional single board automatic configuration method. As shown in Figure 2, the system board runs the board configuration management module on a hardware environment compatible with CompactPCI (Small External Device Interconnect). After the board configuration management module is started, all the boards on this frame are generated according to the saved configuration file. A small database of information, and then wait for the kernel launcher running on the board to report messages or files. A board compatible with the CompactPCI specification runs the kernel boot program after power-on. The kernel boot program is small and is a simple Linux kernel. After booting, it will first check the hardware information of the board or report it to the board of the system board by message. Configuration management module, or use RCP (Remote Copy Protocol) technology to write to a specific file on the Linux (Lynix) file system on the system board over an IP (Internet Protocol) network. When the board configuration management module of the system board receives a message or detects that a specific file is created, the module controls the kernel startup program to replace the kernel in real time with Linux based on the received content and the contents of the small database that holds the board information. The technology loads and runs another true Linux kernel file containing applications on a single board. In this way, the automatic discovery and configuration of the board is realized.
在该方法中, 存在着依赖 Linux实时替换内核技术和启动时 间过长两个缺点。 实时替换内核技术用于从一个正在运行的 Linux 内核切换到另一个正在运行的 Linux 内核, 该技术必须架 构在 Linux平台上, 因此 Linux对硬件的支持成为了制约该方法 的一个关键因素; 实时替换内核技术对 Linux版本的支持也是一 个制约因素; 该方法在启动时间上有两处将延长单板启动时间, 第一单板在加载真正的内核前已完全启动了内核启动程序, 相当 于单板经历了两次完全启动; 第二 Linux实时替换内核技术消耗 的时间。  In this method, there are two disadvantages of relying on the Linux real-time replacement kernel technology and too long startup time. The real-time replacement kernel technology is used to switch from one running Linux kernel to another running Linux kernel. This technology must be built on the Linux platform, so Linux's hardware support has become a key factor restricting this method. Real-time replacement Kernel technology support for the Linux version is also a limiting factor; this method will increase the boot time of the board in two places at startup time. The first board has completely launched the kernel boot program before loading the real kernel, which is equivalent to a board It experienced two full startups; the time consumed by the second Linux real-time replacement kernel technology.
现有的另一种单板自动配置方法是基于改进的 BOOTP (引 导协议) 协议来实现单板的自动配置。  Another existing method for automatic board configuration is based on the improved BOOTP (Booting Protocol) protocol to realize the automatic board configuration.
系统板运行单板配置管理模块, 单板配置管理模块启动后, 根据保存的配置文件生成本框上所有单板信息的小型数据库。 同 时系统板被配置成 BOOTP服务器。 单板上被改进的 BOOTP协 议程序在启动后会发送 BOOTP请求, 系统板接收到 BOOTP 的 请求后, 会检查 BOOTP中含有的 MAC (媒体访问控制)地址是 否已存在于配置中。 如果已存在于配置中, 则以该 MAC前 使 用的 IP回响应给单板; 如果该 MAC地址不存在于配置中, 则从 系统板作为 BOOTP服务器而配置的 IP地址池中取出一个地址回 应。 除了 IP地址外, 同时回应给单板的信息中还包括子网掩码、 缺省路由、 内核映像文件名、 TFTP 服务器地址和配置文件名。 别的运行 BOOTP服务器程序的单板或主机也可能回 BOOTP响 应, 但是由于这些 BOOTP响应中不包含上述同时回应的信息, 因此会被单板上被改进的 BOOTP协议程序丢弃。 单板取得正确 的响应后, 会到响应中指定的 TFTP (平凡文件传送协议) 务 器取回指定的内核映像和配置文件, 并根据这些文件启动。 单板 启动完成后会发送 Cisco (思科)发现协议( CDP )报给系统板确 认配置完成, 此时该单板被完全自动发现和自动配置完毕。 The system board runs the board configuration management module. After the board configuration management module is started, a small database of all board information on the frame is generated according to the saved configuration file. Same The system board is configured as a BOOTP server. The improved BOOTP protocol program on the board will send a BOOTP request after startup. After receiving the BOOTP request, the system board will check if the MAC (Media Access Control) address contained in the BOOTP already exists in the configuration. If it already exists in the configuration, it responds to the board with the IP used before the MAC; if the MAC address does not exist in the configuration, it takes an address response from the IP address pool configured by the system board as a BOOTP server. In addition to the IP address, the information returned to the board also includes the subnet mask, the default route, the kernel image file name, the TFTP server address, and the configuration file name. Other boards or hosts running a BOOTP server program may also return a BOOTP response, but since these BOOTP responses do not contain the above-mentioned simultaneous response information, they will be discarded by the improved BOOTP protocol program on the board. After the board obtains the correct response, it will retrieve the specified kernel image and configuration file from the TFTP (Trivial File Transfer Protocol) server specified in the response, and start it based on these files. After the board is started, it will send a Cisco (Cisco) Discovery Protocol (CDP) report to the system board to confirm that the configuration is complete. At this time, the board is fully discovered and configured automatically.
该方法的缺点在于(1 ) BOOTP请求中除 MAC地址外, 不 含额外的信息, 因此需要在配置时需要将每一块单板的 MAC都 配置进配置库中, 这样将额外增加配置的难度。 (2 ) 系统板上必 须运行改进过的 BOOTP服务器进程。  The disadvantage of this method is that (1) the BOOTP request contains no additional information except the MAC address, so the MAC of each board needs to be configured into the configuration database during configuration, which will increase the difficulty of configuration. (2) The improved BOOTP server process must be running on the system board.
综上所述, 现有技术有着启动和配置时间长和不易于配置的 缺点。 发明内容  In summary, the prior art has the disadvantages of long startup and configuration time and not easy configuration. Summary of the Invention
因此, 本发明的目的是提供一种通信系统中单板自动配置的 方法, 配置库的建立易于操作, 在配置库建立后, 系统板能够主 动发现和识别插入系统的单板, 并根据配置库对单板进行自动配 为了实现上述和其它优点, 根据本发明的目的, 提供一种报 告单板硬件类型的方法, 包括: 系统板主动发现有单板插入; 系 统板通过 CompactPCI配置空间读取单板的硬件信息, 包括供应 商信息和设备信息,这些信息在单板硬件完成后被固化在单板中。 Therefore, an object of the present invention is to provide a method for automatically configuring a single board in a communication system. The establishment of a configuration library is easy to operate. After the configuration library is established, the system board can actively discover and identify the single board inserted into the system, and according to the configuration library, Automatically configure boards In order to achieve the above and other advantages, according to the purpose of the present invention, a method for reporting the hardware type of a board is provided, which includes: the system board actively discovers that a board is inserted; the system board reads the hardware information of the board through the CompactPCI configuration space, including Supplier information and equipment information. These information are fixed in the board after the board hardware is completed.
根据本发明的一个方面,提供了一种兼容 CompactPCI规范 的单板的自动配置方法, 所述方法包括: 将单板插入机框内; 系 统板获取插入单板的硬件信息; 系统板根据获取的信息在单板配 置数据库中找到匹配的单板的配置信息; 系统板将这些获取的单 板的配置信息通过 CompactPCI空间写入单板的 SROM空间内; 单板根据 SROM空间中的写入的信息完成自动配置。  According to one aspect of the present invention, a method for automatically configuring a single board compatible with the CompactPCI specification is provided. The method includes: inserting a single board into a chassis; a system board obtaining hardware information of the inserted board; and the system board according to the obtained The information finds the matching board configuration information in the board configuration database; the system board writes the obtained board configuration information into the SROM space of the board through the CompactPCI space; the board according to the written information in the SROM space Complete the automatic configuration.
根据本发明的一个方面, 提供了一种报告兼容 CompactPCI 规范的单板硬件类型的方法, 该方法包括: 检测是否有单板插入, 如果有单板插入, 给插入的单板上电, 通过抢夺单板 SROM的令 牌确定单板硬件初始化完成;夺到 SROM令牌,通过 CompactPCI 空间读到由提供硬件的供应商预先写入的单板的变量, 然后根据 这些变量在单板信息数据库中检索到单板的启动参数; 通过 CompactPCI空间配置启动参数到单板 SROM; 设置单板 SROM 中 "启动参数就绪" 标志位。  According to an aspect of the present invention, a method for reporting a hardware type of a single board compatible with the CompactPCI specification is provided. The method includes: detecting whether a single board is inserted, and if there is a single board inserted, powering on the inserted single board by snatching The SROM token of the board confirms that the board hardware initialization is completed; the SROM token is seized, and the variables of the board written in advance by the supplier of the hardware are read through the CompactPCI space, and then retrieved in the board information database according to these variables Boot parameters to the board; Configure boot parameters to the board SROM through the CompactPCI space; Set the "boot parameter ready" flag in the board SROM.
通过参照附图的以下的详细说明将会明了本发明的上述和 其它目的、 特征、 各方面和优点。 附图说明  The above and other objects, features, aspects and advantages of the present invention will be made clear by the following detailed description with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
以下附图提供本发明的进一步理解, 构成说明书的一部分, 说明本发明的实施例, 与文字说明一起解释本发明原理。  The following drawings provide a further understanding of the present invention, constitute a part of the description, illustrate embodiments of the present invention, and explain the principles of the present invention together with the text description.
图 1示出通信设备的物理结构。  Figure 1 shows the physical structure of a communication device.
图 2示出一种现有的单板自动配置方法的流程。  FIG. 2 shows a flow of a conventional method for automatic board configuration.
图 3示出根据本发明的单板自动配置方法的流程。 具体实施方式 FIG. 3 shows a flow of a method for automatically configuring a single board according to the present invention. detailed description
下面参照附图 3详细说明本发明的优选实施例。 图 3示出根 据本发明的单板自动配置方法的流程。  Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to FIG. 3. Fig. 3 shows a flow of a method for automatic board configuration according to the present invention.
根据本发明, 在一个兼容 CompactPCI硬件规范的机框内, 插入单板后, 系统启动, 在系统板上运行高可用性管理模块 (HAM), 根据保存的配置文件生成本框上所有单板信息的小型单 板配置数据库, 然后等待来自单板的信息。 HAM 用配置文件或 OMC (操作维护中心)设置的方法管理所有被配置的单板信息。 系 统板能够通过插入的兼容 CompactPCI规范的单板的硬件类型查 找到该单板对应的 IP地址、 子网掩码、 缺省路由、 内核映像文件 名、 FTP服务器地址和配置文件名等, 其中 IP地址是一个地址范 围, 系统板将自动选取未用的 IP进行分配。  According to the present invention, in a chassis compatible with the CompactPCI hardware specification, after a board is inserted, the system is started, a high availability management module (HAM) is run on the system board, and all board information on the chassis is generated according to the saved configuration file. The small single board configuration database waits for information from the single board. HAM uses the configuration file or OMC (Operation and Maintenance Center) method to manage all configured board information. The system board can find the IP address, subnet mask, default route, kernel image file name, FTP server address, and configuration file name corresponding to the board by inserting the hardware type of the board that is compatible with the CompactPCI specification. The address is a range of addresses, and the system board will automatically select unused IPs for allocation.
一旦单板插入框中, 系统板将检测到有板插入, 系统板会给 单板上电, 同时抢夺单板 SROM 的令牌, 以期获得通过 CompactPCI配置空间向单板 SROM写入信息的权利。 SROM的 令牌只有在单板被上电并执行 SROM初始化后, 才会被释放。  Once the board is inserted into the frame, the system board will detect that the board is inserted, and the system board will power on the board and rob the SROM token of the board to obtain the right to write information to the board SROM through the CompactPCI configuration space. The SROM token can only be released after the board is powered on and SROM initialization is performed.
下面具体描述系统板 HAM执行的过程。 系统板 HAM执行 的过程如下:  The process performed by the system board HAM is described in detail below. The system board HAM performs the following process:
检测是否有单板插入, 如果有单板插入, 则给插入的单板 上电, 通过抢夺单板 SROM的令牌确定单板硬件初始化完成; 夺到 SROM令牌后, 通过 CompactPCI空间读取由提供硬 件的供应商预先写入的单板的变量, 如 Device ID、 Vendor ID, Sub Device ID和 Sub Vendor ID, 然后根据这些变量在单板配置 数据库中检索到单板的启动参数;  Check whether there is a single board inserted. If there is a single board inserted, power on the inserted board, and determine that the hardware initialization of the board is completed by snatching the SROM token of the board. After obtaining the SROM token, read it from the CompactPCI space. Provide the board variables written by the hardware vendor in advance, such as Device ID, Vendor ID, Sub Device ID, and Sub Vendor ID, and then retrieve the board's startup parameters from the board configuration database according to these variables;
通过 CompactPCI空间配置单板的启动参数到单板 SROM; 设置单板 SROM中 "启动参数就绪" 标志位; 释放 SROM令牌。 Configure the boot parameters of the board to the board SROM through the CompactPCI space; Set the "boot parameter ready" flag in the board SROM; Release the SROM token.
单板必须根据 SROM中的启动参数启动。  The board must be started according to the startup parameters in the SROM.
下面具体描述单板的 BSP (大量同步并行)初始化 SROM 的过程如下:  The following describes the process of initializing the SROM of a board's BSP (a large number of simultaneous and parallel) in detail:
(1) 清除 SROM空间中 "启动参数就绪" 标志位;  (1) Clear the "Startup parameter ready" flag in the SROM space;
(2) 释放 SROM令牌, 等待一段时间;  (2) release the SROM token and wait for a period of time;
(3) 抢夺 SROM令牌, 一旦得到 SROM令牌就判断 "启动 参数就绪" 标志位, 如果标志位没被设置, 则跳转到 (2)继续; 如 果标志位被设置, 跳转到 (4)继续;  (3) Snatch the SROM token. Once the SROM token is obtained, determine the "Startup parameter is ready" flag. If the flag is not set, go to (2) to continue; if the flag is set, go to (4 )carry on;
(4) 根据启动参数加载内核映像和应用程序;  (4) Load the kernel image and application program according to the startup parameters;
(5) 启动完毕。  (5) Startup is complete.
接下来, 参照附图 3, 描述单板的自动配置的流程。  Next, referring to FIG. 3, the flow of the automatic configuration of the board is described.
首先, 将单板插入机框内。 系统板启动, 在系统板上运行高 可用性管理模块, 根据系统板内保存的配置文件生成单板配置数 据库。 然后, 系统板检测是否有单板插入, 如果有单板插入, 则 给插入的单板上电。 单板上电后, 单板清除 SROM空间中 "启动 参数就绪"标志位, 同时单板释放 SROM令牌, 并等待一段时间。 与此同时, 系统板通过抢夺单板 SROM的令牌以确定单板硬件初 始化是否完成。 系统板夺到 SROM 令牌后, 通过 CompactPCI 空间读取由提供硬件的供应商预先写入的单板的变量, 然后根据 这些变量在单板配置数据库中检索到单板的启动参数。 系统板通 过将所检索到的单板的启动参数通过 CompactPCI空间写入单板 的 SROM空间内, 来将单板的启动参数配置到单板 SROM。 然 后, 系统板设置单板 SROM 中 "启动参数就绪" 标志位, 单板 SROM中 "启动参数就绪"标志位设置后, 系统板释放 SROM令 牌。 此后, 单板抢夺 SROM令牌, 一旦得到 SROM令牌就判断 单板 SROM中的 "启动参数就绪" 标志位是否被设置, 如果该标 志位没被设置, 则系统板继续等待, 如果标志位被设置, 则单板 根据启动参数加载内核映像和应用程序, 从而完成自动配置。 First, insert the board into the chassis. The system board is started, a high availability management module is run on the system board, and a board configuration database is generated according to a configuration file stored in the system board. Then, the system board detects whether a single board is inserted, and if there is a single board inserted, powers on the inserted board. After the board is powered on, the board clears the "startup parameter ready" flag in the SROM space, and at the same time the board releases the SROM token and waits for a period of time. At the same time, the system board determines whether the hardware initialization of the board is completed by robbing the token of the board SROM. After the system board obtains the SROM token, read the variables of the board written in advance by the supplier of the hardware through the CompactPCI space, and then retrieve the board's startup parameters in the board configuration database according to these variables. The system board writes the retrieved startup parameters of the board into the SROM space of the board through the CompactPCI space to configure the startup parameters of the board to the board SROM. Then, the system board sets the "startup parameter ready" flag in the SROM of the board, and after the "startup parameter ready" flag is set in the board SROM, the system board releases the SROM token. Thereafter, the board robs the SROM token, and once the SROM token is obtained, it is judged whether the "startup parameter ready" flag in the board SROM is set. If the bit is not set, the system board continues to wait. If the flag is set, the board loads the kernel image and application according to the startup parameters, thereby completing the automatic configuration.
从上述描述可以看出, 与现有技术相比较, 本发明的启动速 度快, 单板只被初始化一次; 不受限制于特定类型的单板; 添加 新配置方便, 只需要针对一种硬件类型的单板统一添加一次, 如 果用 MAC地址, 则需要每块单板添加一次。  As can be seen from the above description, compared with the prior art, the present invention has a fast startup speed, and the board is initialized only once; it is not limited to a specific type of board; it is convenient to add a new configuration, and only needs to target one hardware type If you use a MAC address, you need to add each board once.
根据本发明, 能够根据提供单板的硬件类型对单板进行自动 配置, 使同一类型的单板可以完成不同的功能。  According to the present invention, the boards can be automatically configured according to the hardware type of the boards provided, so that boards of the same type can complete different functions.
上迷说明描述了本发明的单板的自动配置方法, 但是本发明 的范围并不局限于这里表示和说明的具体细节和典型实施例。 根 据上述说明及附图和权利要求, 本领域的技术人员应当理解在不 脱离由下述权利要求和它们的等同所限定的本发明的精神和范围 的情况下, 可对其做出各种改变、 修改和变化。  The description above describes the automatic configuration method of the board of the present invention, but the scope of the present invention is not limited to the specific details and typical embodiments shown and described herein. Based on the above description and the drawings and claims, those skilled in the art should understand that various changes can be made thereto without departing from the spirit and scope of the invention as defined by the following claims and their equivalents. , Modifications and changes.

Claims

Figure imgf000009_0001
Figure imgf000009_0001
1- 一种兼容 CompactPCI规范的单板的自动配置方法, 所述 方法包括: 1- A method for automatically configuring a board that is compatible with the CompactPCI specification, the method includes:
将单板插入机框内;  Insert the board into the chassis;
系统板获取插入单板的硬件信息;  The system board obtains the hardware information of the inserted board;
系统板根据获取的信息在单板配置数据库中找到匹配的单 板的配置信息;  The system board finds the matching board configuration information in the board configuration database according to the obtained information;
系统板将这些获取的单板的配置信息通过 CompactPCI 空 间写入单板的 SROM空间内;  The system board writes the obtained configuration information of the board into the SROM space of the board through the CompactPCI space;
单板根据 SROM空间中的写入的信息完成自动配置。  The board completes the automatic configuration based on the information written in the SROM space.
2. 如权利要求 1所述的单板的自动配置方法, 其中所述系统 板获取插入单板的硬件信息和系统板根据获取的信息在单板配置 数据库中找到匹配的单板的配置信息的步骤包括:  2. The method for automatically configuring a board according to claim 1, wherein the system board obtains hardware information of the inserted board and the system board finds matching configuration information of the board in the board configuration database according to the acquired information. The steps include:
系统板检测是否有单板插入, 如果有单板插入, 则给插入的 单板上电;  The system board detects whether a board is inserted, and if a board is inserted, powers on the inserted board;
单板清除 SROM空间中 "启动参数就绪" 标志位;  The board clears the "startup parameter ready" flag in the SROM space;
单板释放 SROM令牌, 等待一段时间;  The board releases the SROM token and waits for a period of time;
系统板通过抢夺单板 SROM 的令牌确定单板硬件初始化完 成;  The system board determines that the board hardware initialization is completed by grabbing the token of the board SROM;
系统板夺到 SROM令牌后, 通过 CompactPCI空间读取由 提供硬件的供应商预先写入的单板的变量, 然后根据这些变量在 单板配置数据库中检索到单板的启动参数。  After the system board obtains the SROM token, it reads the variables of the board written in advance by the supplier of the hardware through the CompactPCI space, and then retrieves the board's startup parameters from the board configuration database according to these variables.
3. 如权利要求 1所述的单板的自动配置方法, 其中所述单板 配置数据库是通过在系统板上运行高可用性管理模块、 根据系统 板内保存的配置文件生成的。  3. The method for automatically configuring a single board according to claim 1, wherein the single board configuration database is generated by running a high availability management module on a system board according to a configuration file stored in the system board.
4. 如权利要求 1所述的单板的自动配置方法, 其中所述系统 板将这些获取的单板的配置信息通过 CompactPCI空间写入单板 的 SROM空间内的步骤包括: 4. The method for automatically configuring a single board according to claim 1, wherein the system The steps for the board to write the obtained configuration information of the board into the SROM space of the board through the CompactPCI space include:
系统板通过将所检索到的单板的启动参数通过 CompactPCI 空间写入单板的 SROM空间内, 来将单板的启动参数配置到单板 SROM;  The system board configures the boot parameters of the board to the SROM of the board by writing the retrieved boot parameters of the board into the SROM space of the board through the CompactPCI space;
系统板设置单板 SROM中 "启动参数就绪" 标志位; 系统板释放 SROM令牌。  The system board sets the "Startup parameter ready" flag in the board SROM; the system board releases the SROM token.
5. 如权利要求 1所述的单板的自动配置方法, 其中所述单板 根据 SROM空间中的信息完成自动配置的步骤包括:  5. The method for automatic configuration of a board according to claim 1, wherein the step of completing the auto configuration by the board according to the information in the SROM space comprises:
单板抢夺 SROM令牌, 一旦得到 SROM令牌就判断单板 SROM中的 "启动参数就绪" 标志位是否被设置, 如果该标志位 没被设置, 则系统板继续等待, 如果标志位被设置, 则单板根据 启动参数加载内核映像和应用程序。  The board grabs the SROM token. Once the SROM token is obtained, it is judged whether the "startup parameter ready" flag bit in the board SROM is set. If the flag bit is not set, the system board continues to wait. If the flag bit is set, Then the board loads the kernel image and application according to the startup parameters.
6. 如权利要求 1所述的单板的自动配置方法, 其中所述配置 信息包括 IP地址、 子网掩码、 缺省路由、 内核映像文件名、 FTP 服务器地址和配置文件名。  6. The method for automatically configuring a board according to claim 1, wherein the configuration information includes an IP address, a subnet mask, a default route, a kernel image file name, an FTP server address, and a configuration file name.
7- 如权利要求 2所迷的单板的自动配置方法, 其中所述由提 供硬件的供应商预先写入的单板的变量包括: Device ID、 Vendor ID. Sub Device ID和 Sub Vendor ID。  7- The method for automatic configuration of a board according to claim 2, wherein the variables of the board written in advance by the supplier of the provided hardware include: Device ID, Vendor ID. Sub Device ID and Sub Vendor ID.
8. —种报告兼容 CompactPCI规范的单板硬件类型的方法, 该方法包括:  8. A method for reporting the type of single board hardware compatible with the CompactPCI specification, the method includes:
检测是否有单板插入, 如果有单板插入, 则给插入的单板上 电, 通过抢夺单板 SROM的令牌确定单板硬件初始化完成;  Detect whether a board is inserted, and if a board is inserted, power on the inserted board, and determine that the board hardware initialization is completed by robbing the token of the board SROM;
夺到 SROM令牌, 通过 CompactPCI空间读取由提供硬件 的供应商预先写入的单板的变量, 然后根据这些变量在单板信息 数据库中检索到单板的启动参数;  After obtaining the SROM token, read the variables of the board written in advance by the vendor that provides the hardware through the CompactPCI space, and then retrieve the board's startup parameters from the board information database according to these variables;
通过 CompactPCI空间配置启动参数到单板 SROM; 设置单板 SROM中 "启动参数就绪" 标志位; 释放 SROM令牌。 Configure boot parameters to the SROM of the board through the CompactPCI space; Set the "Startup parameter ready" flag in the SROM of the board; release the SROM token.
9· 如权利要求 8所述的报告单板硬件类型的方法, 其中所述 由提供硬件的供应商预先写入的单板的变量包含: Device ID. Vendor ID、 Sub Device ID和 Sub Vendor ID。 9. The method for reporting the hardware type of a single board according to claim 8, wherein the variables of the single board written in advance by the vendor that provides the hardware include: Device ID. Vendor ID, Sub Device ID, and Sub Vendor ID.
PCT/CN2003/000225 2003-03-28 2003-03-28 A method for configurating a singleboard automatically WO2004086223A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CNB038262002A CN100380320C (en) 2003-03-28 2003-03-28 Method for configurating singleboard automatically
AU2003221235A AU2003221235A1 (en) 2003-03-28 2003-03-28 A method for configurating a singleboard automatically
PCT/CN2003/000225 WO2004086223A1 (en) 2003-03-28 2003-03-28 A method for configurating a singleboard automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2003/000225 WO2004086223A1 (en) 2003-03-28 2003-03-28 A method for configurating a singleboard automatically

Publications (1)

Publication Number Publication Date
WO2004086223A1 true WO2004086223A1 (en) 2004-10-07

Family

ID=33035126

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2003/000225 WO2004086223A1 (en) 2003-03-28 2003-03-28 A method for configurating a singleboard automatically

Country Status (3)

Country Link
CN (1) CN100380320C (en)
AU (1) AU2003221235A1 (en)
WO (1) WO2004086223A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100421494C (en) * 2005-06-13 2008-09-24 上海华为技术有限公司 Data configuration method for access network device
CN101860452A (en) * 2010-05-21 2010-10-13 中兴通讯股份有限公司 Network element management method and system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136960B (en) * 2006-08-30 2011-06-22 中兴通讯股份有限公司 Method for implementing veneer automatic identification
CN101150441B (en) * 2007-10-16 2011-08-10 中兴通讯股份有限公司 A system and method for automatic single board connection configuration in network management
CN101222358B (en) * 2008-01-22 2010-06-09 华为技术有限公司 Configuration emigration method and device
CN101616031B (en) * 2009-07-21 2011-09-21 中兴通讯股份有限公司 Method for setting single-plate parameters of advanced telecommunication computing structure
CN103744374B (en) * 2013-12-25 2016-08-17 广州达意隆包装机械股份有限公司 A kind of servo motor parameter automatic configuration method and system
CN106998338A (en) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 A kind of method and device for realizing VNF deployment
US10216682B2 (en) * 2016-06-15 2019-02-26 Epro Gmbh Configuration distribution

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1325062A (en) * 2000-05-19 2001-12-05 英业达股份有限公司 Intelligent hardware installing method
CN1379330A (en) * 2001-04-06 2002-11-13 华为技术有限公司 Method for testing single board presence
US20030005274A1 (en) * 2000-07-17 2003-01-02 Bresemann David P. Resistor identification configuration circuitry and associated method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1325062A (en) * 2000-05-19 2001-12-05 英业达股份有限公司 Intelligent hardware installing method
US20030005274A1 (en) * 2000-07-17 2003-01-02 Bresemann David P. Resistor identification configuration circuitry and associated method
CN1379330A (en) * 2001-04-06 2002-11-13 华为技术有限公司 Method for testing single board presence

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100421494C (en) * 2005-06-13 2008-09-24 上海华为技术有限公司 Data configuration method for access network device
CN101860452A (en) * 2010-05-21 2010-10-13 中兴通讯股份有限公司 Network element management method and system

Also Published As

Publication number Publication date
CN100380320C (en) 2008-04-09
CN1759375A (en) 2006-04-12
AU2003221235A1 (en) 2004-10-18

Similar Documents

Publication Publication Date Title
US8312115B2 (en) Network booting apparatus and method
JP4024589B2 (en) Mimic support for network devices
US7222229B1 (en) System for automated boot from disk image
US7506151B2 (en) System for managing boot-up of target computers
JP5150593B2 (en) Platform detection using web services in pre-boot environment
US8332490B2 (en) Method, apparatus and program product for provisioning a computer system
WO2020024413A1 (en) Method for controlling deployment of cloud computing platform, server, and storage medium
CN111901177B (en) Bare metal server network configuration method, system and related equipment
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
JP2005109589A (en) Network switch and operating method thereof, and blade server
JP2005504391A (en) Personal computer upgrade
KR101799447B1 (en) Server connectiong method, information providng method of device and device applying the same, Cloud Computing Network system and operation method thereof
JP2011129105A (en) Providing software distribution and update service regardless of state or physical location of end point machine
US9014041B2 (en) Method and system for configuring a device that has failed to obtain network address
WO2004086223A1 (en) A method for configurating a singleboard automatically
TWI648637B (en) System and method for deploying and operating mobile operating system on platform
EP3474501B1 (en) Network device stacking
CN108234174B (en) Management method and device of virtual network function
CN101917458B (en) Method and device for sending network bootstrap program to client
US7266820B2 (en) Trunked customized connectivity process for installing software onto an information handling system
US11792152B1 (en) Automatic detection-based IP allocation
CN110943975A (en) Service registration method, device, computer equipment and storage medium
US8176138B1 (en) Method and apparatus for system description and provisioning
TWI766241B (en) Booting mode configuration method, electronic device and readable storage medium
CN113076171B (en) Virtual machine installation method and device

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SC SD SE SG SK SL TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 20038262002

Country of ref document: CN

122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP

WWW Wipo information: withdrawn in national office

Country of ref document: JP