CN115328562A - Operating system installation/upgrade method, system, server, BMC and UEFI - Google Patents

Operating system installation/upgrade method, system, server, BMC and UEFI Download PDF

Info

Publication number
CN115328562A
CN115328562A CN202211047937.5A CN202211047937A CN115328562A CN 115328562 A CN115328562 A CN 115328562A CN 202211047937 A CN202211047937 A CN 202211047937A CN 115328562 A CN115328562 A CN 115328562A
Authority
CN
China
Prior art keywords
starting mode
server
control instruction
mode control
monitoring
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
CN202211047937.5A
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.)
Clp Great Wall Shengfei Information System Co ltd
Original Assignee
Clp Great Wall Shengfei Information System 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 Clp Great Wall Shengfei Information System Co ltd filed Critical Clp Great Wall Shengfei Information System Co ltd
Priority to CN202211047937.5A priority Critical patent/CN115328562A/en
Publication of CN115328562A publication Critical patent/CN115328562A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3027Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses an operating system installing/upgrading method, a system, a server, a BMC and a UEFI, wherein the system comprises: the system comprises a monitoring system management module and at least two servers, wherein any server comprises a BMC and at least one CPU; the monitoring system management module receives a server identification and a corresponding starting mode control instruction input from a user interface and sends the starting mode control instruction to a corresponding server; the BMC receives the starting mode control instruction, converts the starting mode control instruction into a monitoring parameter, and sends the monitoring parameter to the UEFI of one CPU of the server through a communication bus; and the CPU receives the monitoring parameters, searches the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode through UEFI, and installs/upgrades the operating system of the server according to the searched starting mode. The switching starting mode has high efficiency, and is suitable for the installation and maintenance of large-scale and batch cluster system operating systems.

Description

Operating system installation/upgrade method, system, server, BMC and UEFI
Technical Field
The invention belongs to the technical field of cluster systems, and particularly relates to an operating system installation/upgrade method, a system, a server, a BMC and UEFI.
Background
In the field of server product design, particularly, maintainability and manageability of cluster system products become increasingly important to design engineers, clients and operation and maintenance engineers, a Baseboard Management Controller (BMC) capable of providing out-of-band Management for a server has become one of standard configurations of the server due to characteristics and use environments of cluster systems such as the server. Processors in a clustered system, a customized data center, may typically direct the installation/upgrade of operating systems through a Unified Extensible Firmware Interface (UEFI). In the UEFI startup process, the startup mode generally includes a hard disk, a usb disk, UEFI shell, a network, and the like. Typically, the operating system is installed in the hard disk by default, and thus the boot-up mode is the hard disk by default.
The UEFI system is booted following UEFI platform initialization standards. UEFI can be divided into 7 phases from power-up to power-down, including: security Phase (SEC) → EFI early Initialization (PEI) → Driver Execution Environment (DXE) → Boot Device Selection (BDS) → operating System Load early (TSL) → runtime (Run Time, RT) → System disaster recovery (AL).
At present, for servers without hard disks, UEFI setting interfaces can be entered one by one, starting modes can be manually modified, and operation is complicated. For a hard disk server, the UEFI starting mode can be modified by installing software under an operating system, but the starting mode cannot be visually checked, and misoperation risks exist.
Because cluster systems such as servers and the like and data centers usually do not have peripheral equipment such as USB (universal serial bus), display and the like, a network starting mode is needed for installing and maintaining an operating system, the UEFI starting mode is troublesome to modify, and misoperation is easy to occur once a plurality of server nodes are met, and the consequence is very serious. Meanwhile, the hardware platform configurations in the heterogeneous cluster system have differences, the types of CPUs are multiple, the configurations have large differences, and the operating system cannot be installed/upgraded by updating UEFI starting modes in batches.
In summary, the method for switching the start-up mode in the prior art is cumbersome to operate, is easy to operate incorrectly, cannot efficiently implement network boot switching of the large-scale cluster system, and is not suitable for installation and maintenance of the operating system of the large-scale and batch cluster system.
Disclosure of Invention
Aiming at the technical problems, the invention provides an operating system installation/upgrade method, a system, a server, a BMC and a UEFI with high efficiency in switching starting modes, which are suitable for large-scale and batch operating system installation and maintenance of a cluster system.
The technical scheme adopted by the invention for solving the technical problems is as follows:
in a first aspect, the present invention provides an operating system installation/upgrade system, including: monitoring system management module and at least two servers, arbitrary server includes: a baseboard management controller BMC and at least one CPU;
the monitoring system management module is used for receiving a server identifier and a corresponding starting mode control instruction input from the user interface and sending the starting mode control instruction to the server;
the BMC is used for receiving the starting mode control instruction, converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server, and sending the monitoring parameter to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus;
and the CPU is used for receiving the monitoring parameters, searching the starting mode corresponding to the received monitoring parameters from the preset corresponding relation between the monitoring parameters and the starting mode through the UEFI, and installing/upgrading the operating system of the server according to the searched starting mode.
Preferably, the communication bus is a general purpose input/output GPIO bus or a low pin count LPC bus;
when the communication bus is a GPIO bus,
the BMC is specifically used for converting the starting mode control instruction into a level state of a pin of the GPIO output interface;
the CPU is specifically used for receiving the pin level state of the GPIO input interface through UEFI, searching a starting mode corresponding to the received pin level state from the preset corresponding relation between the pin level state of the GPIO and the starting mode, and then installing/upgrading the operating system of the server according to the searched starting mode;
in the case where the communication bus is an LPC bus,
the BMC is specifically used for converting the starting mode control instruction into an intelligent platform management interface IPMI instruction, and the IPMI instruction comprises a first starting mode and a zone bit parameter;
the CPU is specifically used for receiving the IPMI instruction through UEFI, searching the starting mode corresponding to the received zone bit parameter from the corresponding relation between the preset zone bit parameter and the starting mode, and installing/upgrading the operating system of the server according to the first starting mode when the starting mode is not searched; when the server is found, the operating system of the server is installed/upgraded according to the found starting mode.
In a second aspect, the present invention provides a server, comprising: a baseboard management controller BMC and at least one CPU;
the BMC is used for receiving the starting mode control instruction, converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server, and sending the monitoring parameter to one CPU of the server through a communication bus;
and the CPU is used for receiving the monitoring parameters through the Unified Extensible Firmware Interface (UEFI), searching the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode, and installing/upgrading the operating system of the server according to the searched starting mode.
Preferably, the communication bus is a general purpose input/output GPIO bus or a low pin count LPC bus;
when the communication bus is a GPIO bus,
the BMC is specifically used for converting the starting mode control instruction into a level state of a pin of the GPIO output interface;
the CPU is specifically used for receiving the pin level state of the GPIO input interface through UEFI, searching a starting mode corresponding to the received pin level state from the preset corresponding relation between the pin level state of the GPIO and the starting mode, and then installing/upgrading the operating system of the server according to the searched starting mode;
in the case where the communication bus is an LPC bus,
the BMC is specifically used for converting the starting mode control instruction into an intelligent platform management interface IPMI instruction, and the IPMI instruction comprises a first starting mode and a zone bit parameter;
the CPU is specifically used for receiving the IPMI instruction through UEFI, searching the starting mode corresponding to the received zone bit parameter from the corresponding relation between the preset zone bit parameter and the starting mode, and installing/upgrading the operating system of the server according to the first starting mode when the starting mode is not searched; when the server is found, the operating system of the server is installed/upgraded according to the found starting mode.
In a third aspect, the present invention provides an operating system installation/upgrade method, including:
receiving a server identifier and a starting mode control instruction;
when the starting mode control instruction is used for controlling the server, the starting mode control instruction is converted into a monitoring parameter, and the starting mode control instruction and the server identification are input from a user interface;
the unified extensible firmware interface UEFI of one of the CPUs sent to the server through the communication bus receives the monitoring parameters;
and the UEFI searches the starting mode corresponding to the received monitoring parameter from the corresponding relation between the preset monitoring parameter and the starting mode, and installs/upgrades the operating system of the server according to the searched starting mode.
Preferably, the communication bus is a general purpose input/output GPIO bus or a low pin count LPC bus;
when the communication bus is a general purpose input/output (GPIO) bus, monitoring parameters are the level state of a GPIO pin;
converting the starting mode control instruction into a monitoring parameter, comprising:
converting the starting mode control instruction into a level state of a pin of the GPIO output interface;
searching the starting mode corresponding to the received monitoring parameter from the corresponding relation between the preset monitoring parameter and the starting mode through UEFI, and the method comprises the following steps:
searching a starting mode corresponding to the received pin level state from the preset corresponding relation between the GPIO pin level state and the starting mode;
when the communication bus is an LPC bus, the monitoring parameters are zone bit parameters;
converting the starting mode control instruction into a monitoring parameter, comprising:
converting the starting mode control instruction into an intelligent platform management interface IPMI instruction, wherein the IPMI instruction comprises a first starting mode and a zone bit parameter;
searching the starting mode corresponding to the received monitoring parameter from the preset corresponding relation between the monitoring parameter and the starting mode through UEFI, and comprising the following steps:
searching a starting mode corresponding to the received flag bit parameter from a preset corresponding relation between the flag bit parameter and the starting mode, and installing/upgrading an operating system of a server according to a first starting mode when the starting mode corresponding to the received flag bit parameter is not searched; and when the operation system is searched, installing/upgrading the operation system of the server according to the searched starting mode.
In a fourth aspect, the present invention provides an operating system installation/upgrade method, including:
receiving a server identification and a starting mode control instruction, wherein the starting mode control instruction and the server identification are input from a user interface;
judging whether the received server identification is the identification of the server;
when the starting mode control instruction is used for controlling the server, the starting mode control instruction is converted into a monitoring parameter;
and sending the monitoring parameters to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus, so that the UEFI of the CPU searches the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting modes, and installing/upgrading the operating system of the server according to the searched starting mode.
In a fifth aspect, the present invention provides a baseboard management controller BMC, including:
the receiving module is used for receiving a server identifier and a starting mode control instruction, and the starting mode control instruction and the server identifier are input from the user interface;
the judging module is used for judging whether the received server identifier is the identifier of the server;
the conversion module is used for converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server;
and the sending module is used for sending the monitoring parameters to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus so that the UEFI of the CPU searches the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode, and the operating system of the server where the monitoring parameters are located is installed/upgraded according to the searched starting mode.
In a sixth aspect, the present invention provides an operating system installation/upgrade method, including:
receiving monitoring parameters, wherein the monitoring parameters are obtained by converting starting mode control instructions, and the starting mode control instructions are input from a user interface;
searching a starting mode corresponding to the received monitoring parameter from a preset corresponding relation between the monitoring parameter and the starting mode;
and installing/upgrading the operating system of the server according to the searched starting mode.
In a seventh aspect, the present invention provides a unified extensible firmware interface UEFI, including:
the receiving module is used for receiving monitoring parameters, the monitoring parameters are obtained by converting starting mode control instructions, and the starting mode control instructions are input from a user interface;
the searching module is used for searching the starting mode corresponding to the received monitoring parameter from the preset corresponding relation between the monitoring parameter and the starting mode;
and the installation/upgrade module is used for installing/upgrading the operating system of the server according to the searched starting mode.
The operating system installation/upgrade method, the operating system installation/upgrade system, the operating system, the BMC and the UEFI introduce a management mechanism of the baseboard management controller, and are connected with the baseboard management controller and the CPU node in a communication bus mode, so that the operating system installation/maintenance efficiency of the server and cluster projects is improved. Through the substrate management controller, the startup mode is controlled by the monitoring system management module, the problem that the startup sequence steps are complicated in switching under the conditions of no hard disk and hard disk is solved, and the purposes of external management and dynamic startup mode switching are achieved. In addition, the invention can realize the switching of the starting mode through two communication modes of GPIO and LPC, and has wide applicability.
Drawings
FIG. 1 is a block diagram of an overall framework of an OS installation/upgrade system according to an embodiment of the present invention;
fig. 2 is a schematic connection diagram of a communication bus between the BMC and the CPU according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the present invention is further described in detail below with reference to the accompanying drawings.
In one embodiment, as shown in fig. 1, there is provided an operating system installation/upgrade system, including: monitoring system management module and at least two servers, arbitrary server includes: a baseboard management controller BMC and at least one CPU;
the monitoring system management module is used for receiving the server identification and the corresponding starting mode control instruction input from the user interface and sending the starting mode control instruction to the server;
the BMC is used for receiving the starting mode control instruction, converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server, and sending the monitoring parameter to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus;
and the CPU is used for receiving the monitoring parameters, searching the starting mode corresponding to the received monitoring parameters from the preset corresponding relation between the monitoring parameters and the starting mode through the UEFI, and installing/upgrading the operating system of the server according to the searched starting mode.
Specifically, the monitoring system management module is an interface provided for a user (administrator) to operate on the upper layer of the BMC, and may be configured to set a start mode control instruction, where the start mode control instruction includes a monitoring parameter and a corresponding start mode, and after the monitoring system management module operates, the monitoring system management module sends the corresponding start mode control instruction to the corresponding server. Fig. 1 shows a block diagram of an operating system installation/upgrade system, in which a monitoring system management module may control Baseboard Management Controllers (BMCs) of a plurality of servers through a network, each BMC may control 1 to 8 CPU nodes, and the BMCs and the CPUs are connected by a communication bus.
When the server is a multi-path server, the BMC is connected to one of the CPUs through a communication bus, and in fig. 1, the communication bus between the BMC and the CPU includes two connection modes, namely a solid line and a dotted line, which respectively represent two situations:
when the peripheral resources of the main CPU are enough, the BMC is connected with the main CPU through a communication bus, and the communication bus between the BMC and the main CPU is represented by a solid line;
when the peripheral resources of the main CPU are not enough, the BMC is connected with any slave CPU through a communication bus, and the communication bus between the BMC and the slave CPU is represented by a dotted line.
In one embodiment, as shown in fig. 2, the communication bus is a general purpose input output GPIO bus or a low pin count LPC bus; the operating system installation/upgrade system of this embodiment may set the UEFI activation method in any one of the following communication methods:
the method I comprises the following steps: when the communication bus is a GPIO bus,
the BMC is specifically used for converting the starting mode control instruction into a level state of a pin of the GPIO output interface;
and the CPU is specifically used for receiving the pin level state of the GPIO input interface through UEFI, searching the starting mode corresponding to the received pin level state from the preset corresponding relation between the pin level state of the GPIO and the starting mode, and then installing/upgrading the operating system of the server according to the searched starting mode.
The scheme of the first mode is as follows: and setting a UEFI starting sequence in a GPIO communication mode. The BMC and UEFI communication are mainly connected by means of GPIO (General-purpose input/output) bus. When the mode is used, the BMC sets the GPIO Pin level state of the processor when an LPC (Low Pin Count) interface is not reserved, and the UEFI changes the starting mode after reading the GPIO Pin level state, so that the purpose of modifying the starting mode is achieved. Therefore, when the system scheme design does not reserve an LPC interface, and wants to maintain the system conveniently and quickly, the purpose of modifying the starting mode can be achieved by setting the level state of the GPIO pin through the BMC.
Specifically, the directions of 2 GPIOs of the processor CPU are set as inputs, and the BMC sets the level state of the pin. Four combination modes can be set by the 2 GPIOs to determine the starting sequence of UEFI. The UEFI part mainly reads the pin state at the BDS (boot device selection) stage to select a boot mode, and correspondingly, bdsLib and BdsDxe modules written in the UEFI are used for monitoring the high and low levels of the GPIO interface.
Illustratively, the preset correspondence between the GPIO pin level status and the start mode includes:
when the level state of the first pin of the GPIO interface and the level state of the second pin of the GPIO interface are both high levels, the starting mode is a default starting mode;
when the level state of the first pin of the GPIO interface is high level and the level state of the second pin of the GPIO interface is low level, the starting mode is starting from the hard disk next time;
when the level state of the first pin of the GPIO interface is low level and the level state of the second pin of the GPIO interface is high level, the starting mode is permanent starting from the network;
and when the level state of the first pin of the GPIO interface and the level state of the second pin of the GPIO interface are both low levels, starting the network next time.
Specifically, the following description is given by way of example with respect to pinA and pinB, but the function corresponding to the pin status is not limited thereto.
When two pins of pinA and pinB default to high level, the UEFI does not process the starting mode after reading the state, and the starting mode is the UEFI default starting mode; pinA high level, pinB low level, next UEFI "start from hard disk"; pinA low level, pinB high level, UEFI start process is set as 'permanent slave network start' for booting operating system without hard disk; pinA low, pinB level, UEFI startup procedure is set to "next startup from network" as shown in the table below.
Figure BDA0003822736880000071
Figure BDA0003822736880000081
The second method comprises the following steps: in the case where the communication bus is an LPC bus,
the BMC is specifically used for converting the starting mode control instruction into an intelligent platform management interface IPMI instruction, and the IPMI instruction comprises a first starting mode and a zone bit parameter;
the CPU is specifically used for receiving the IPMI instruction through UEFI, searching the starting mode corresponding to the received zone bit parameter from the corresponding relation between the preset zone bit parameter and the starting mode, and installing/upgrading the operating system of the server according to the first starting mode when the starting mode is not searched; when the server is found, the operating system of the server is installed/upgraded according to the found starting mode.
The scheme adopting the second mode comprises the following steps: and setting a UEFI starting sequence in an LPC communication mode. The BMC and UEFI are mainly connected by means of LPC (Low Pin Count) bus. The use condition of the method is that when an LPC (Low Pin Count) interface is reserved, an instruction is sent to UEFI through an IPMI protocol, and the UEFI sets the next starting mode. Therefore, when the system scheme designs and reserves the LPC interface, hardware does not need to be modified, the IPMI instruction is designed by the BMC, and the UEFI firmware receiving instruction is directly received to modify the starting sequence, so that the maintenance purpose is achieved.
Specifically, the unified extensible firmware interface UEFI of the CPU node obtains the order in BootOrder and the flag bit parameters according to the received instruction for controlling the boot mode, obtains the first boot mode according to the order in BootOrder, obtains the boot mode according to the preset correspondence between the flag bit parameters and the boot mode when the flag bit parameters are preset values, so that the CPU boots according to the found boot mode, and when the flag bit parameters are not the preset values, the corresponding boot mode is the boot mode corresponding to the first boot mode, so that the CPU boots according to the set boot mode.
Specifically, the starting mode corresponding to the first starting mode is a default starting mode of the system.
Illustratively, the preset flag bit parameter and starting mode corresponding relationship includes:
when the flag bit parameter is 1, the starting mode is starting from the network next time;
when the flag bit parameter is 2, the starting mode is starting from the hard disk next time;
when the flag bit parameter is 6, the starting mode is that the next time is started to enter a setting interface;
and when the flag bit parameter is 9, starting to enter the shell interface next time.
Specifically, the flag bit parameter is not limited to the above value, and the corresponding activation manner is not limited thereto.
Specifically, when the BMC sends an IPMI instruction to the UEFI, the UEFI enters the BDS stage in the boot process, traverses all boot modes BootOption, creates a boot order variable bootOrder variable, and then obtains the first boot mode according to the order in the boot order bootOrder. Corresponding to the BdsLib and BdsDxe modules written in UEFI, the modules are used for monitoring IPMI instructions of LPC interface. When the BMC sends an IPMI instruction to the UEFI through an LPC interface, a flag bit IpmiBootFlag is generated, the UEFI firstly judges whether the flag bit parameter is a preset value, when the flag bit parameter is the preset parameter, a specific forcible Boot (ForceBoot) instruction is further analyzed, and a Next Boot (BootNext) mode is set as a forcible Boot mode, so that the purpose of modifying the Boot mode is achieved.
In the embodiment, the modification of the starting mode is realized by providing two communication modes, namely GPIO and LPC, between the BMC and the CPU, any one communication mode can be selected according to the design condition of the system scheme to realize the efficient modification of the starting mode, and the method has wide applicability.
When: when the cluster system is deployed; (2) When the operating system runs normally, the situation that the version of the operating system needs to be upgraded is met; (3) When a node operating system crashes and needs to be reinstalled. The installation/upgrade of the operating system can be realized by setting the starting sequence of the nodes through the monitoring system management module, for example, setting the next starting from the network. After receiving the message, the monitoring system Management module informs a Baseboard Management Controller (BMC) through a network, the Baseboard Management Controller (BMC) and a Central Processing Unit (CPU) through a communication bus to achieve the purpose of setting a Unified Extensible Firmware Interface (UEFI) starting sequence, when a server node is started, the server node is started, an automatic installation operating system is started from the network, and after the system is installed, the server node is automatically restarted to enter a new operating system.
In summary, compared with the prior art that the BIOS needs to be reset every time the operating system is updated/maintained for a large-scale cluster, a diskless boot or a disk system, the operating system installation/upgrade system provided by the embodiment of the present invention does not need to update the BIOS setting, introduces a Management mechanism of the BMC (base Management Controller), and improves the operating system installation/maintenance efficiency of the server and cluster project by designing a communication bus manner to connect the BMC and the CPU, thereby being suitable for the operating system installation and maintenance of large-scale and batch cluster systems. Through a Baseboard Management Controller (Baseboard Management Controller), a boot start sequence is selected by one key on a BMC Management interface or a monitoring system Management module, so that the problem of pain in steps of switching the start sequence under the two conditions of no hard disk and hard disk is solved, and the aims of managing from the outside and dynamically switching the start mode are fulfilled. In addition, the invention can realize the switching of the starting mode through two communication modes of GPIO and LPC, and has wide applicability.
In one embodiment, a server includes: a baseboard management controller BMC and at least one CPU;
the BMC is used for receiving the starting mode control instruction, converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server, and sending the monitoring parameter to one CPU of the server through a communication bus;
and the CPU is used for receiving the monitoring parameters through the unified extensible firmware interface UEFI, searching the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode, and installing/upgrading the operating system of the server according to the searched starting mode.
In one embodiment, the communication bus in the server is a general purpose input/output GPIO bus or a low pin count LPC bus;
when the communication bus is a GPIO bus,
the BMC is specifically used for converting the starting mode control instruction into a level state of a GPIO output interface pin;
the CPU is specifically used for receiving the pin level state of the GPIO input interface through UEFI, searching a starting mode corresponding to the received pin level state from the preset corresponding relation between the pin level state of the GPIO and the starting mode, and then installing/upgrading the operating system of the server according to the searched starting mode;
in the case where the communication bus is an LPC bus,
the BMC is specifically used for converting the starting mode control instruction into an Intelligent Platform Management Interface (IPMI) instruction, and the IPMI instruction comprises a first starting mode and a zone bit parameter;
the CPU is specifically used for receiving the IPMI instruction through UEFI, searching the starting mode corresponding to the received zone bit parameter from the corresponding relation between the preset zone bit parameter and the starting mode, and installing/upgrading the operating system of the server according to the first starting mode when the starting mode is not searched; when the server is found, the operating system of the server is installed/upgraded according to the found starting mode.
For specific definition of the server, reference may be made to the definition of an os installation/upgrade system above, and details are not described here.
According to the server provided by the embodiment of the invention, the Baseboard Management Controller (BMC) mechanism is introduced into the server, a communication bus mode is designed to connect the BMC and the CPU, the starting mode of the CPU of the server is efficiently changed, and the installation/maintenance efficiency of the operating system of the server is improved. The problems that the operation of switching the starting modes of the disk server and the diskless server is complex and the misoperation is easy to occur in the prior art are solved, and the purposes of out-of-band management of the server and dynamic switching of the starting modes are achieved. In addition, the server can realize the switching of the starting mode through two communication modes of GPIO and LPC, and has wide applicability. The server can be widely applied to the construction of cluster systems and data centers, and is convenient for the deployment and maintenance of operating systems in the cluster systems.
In one embodiment, an operating system installation/upgrade method includes:
receiving a server identifier and a starting mode control instruction;
when the starting mode control instruction is used for controlling the server, the starting mode control instruction is converted into a monitoring parameter, and the starting mode control instruction and the server identification are input from a user interface;
the unified extensible firmware interface UEFI of one of the CPUs sent to the server through the communication bus receives the monitoring parameters;
and the UEFI searches the starting mode corresponding to the received monitoring parameter from the corresponding relation between the preset monitoring parameter and the starting mode, and installs/upgrades the operating system of the server according to the searched starting mode.
In one embodiment, the communication bus is a general purpose input output GPIO bus or a low pin count LPC bus;
when the communication bus is a general purpose input/output (GPIO) bus, monitoring parameters are the level state of a GPIO pin;
converting the starting mode control instruction into a monitoring parameter, comprising:
converting the starting mode control instruction into a level state of a pin of the GPIO output interface;
searching the starting mode corresponding to the received monitoring parameter from the corresponding relation between the preset monitoring parameter and the starting mode through UEFI, and the method comprises the following steps:
searching a starting mode corresponding to the received pin level state from a preset corresponding relation between the GPIO pin level state and the starting mode;
when the communication bus is an LPC bus, the monitoring parameters are zone bit parameters;
converting the starting mode control instruction into a monitoring parameter, comprising:
converting the starting mode control instruction into an intelligent platform management interface IPMI instruction, wherein the IPMI instruction comprises a first starting mode and a zone bit parameter;
searching the starting mode corresponding to the received monitoring parameter from the corresponding relation between the preset monitoring parameter and the starting mode through UEFI, and the method comprises the following steps:
searching a starting mode corresponding to the received flag bit parameter from a preset corresponding relation between the flag bit parameter and the starting mode, and installing/upgrading an operating system of a server according to a first starting mode when the starting mode corresponding to the received flag bit parameter is not searched; and when the operation system is searched, installing/upgrading the operation system of the server according to the searched starting mode.
For the specific definition of the os installation/upgrade method, refer to the above definition of an os installation/upgrade system, which has all the advantages of the above os installation/upgrade system, and will not be described herein again.
In one embodiment, an operating system installation/upgrade method includes:
receiving a server identification and a starting mode control instruction, wherein the starting mode control instruction and the server identification are input from a user interface;
judging whether the received server identification is the identification of the server;
when the starting mode control instruction is used for controlling the server, the starting mode control instruction is converted into a monitoring parameter;
and sending the monitoring parameters to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus, so that the UEFI of the CPU searches the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode, and installing/upgrading the operating system of the server according to the searched starting mode.
For specific definition of an os installation/upgrade method, refer to the above definition of an os installation/upgrade system, which is not described herein again.
In one embodiment, a baseboard management controller BMC includes:
the receiving module is used for receiving a server identifier and a starting mode control instruction, wherein the starting mode control instruction and the server identifier are input from a user interface;
the judging module is used for judging whether the received server identifier is the identifier of the server;
the conversion module is used for converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server;
and the sending module is used for sending the monitoring parameters to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus so that the UEFI of the CPU searches the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode, and the operating system of the server where the monitoring parameters are located is installed/upgraded according to the searched starting mode.
For a specific definition of a baseboard management controller, reference may be made to the above definition of an os installation/upgrade system, which is not described herein again.
In one embodiment, an operating system installation/upgrade method includes:
receiving monitoring parameters, wherein the monitoring parameters are obtained by converting starting mode control instructions, and the starting mode control instructions are input from a user interface;
searching a starting mode corresponding to the received monitoring parameter from a preset corresponding relation between the monitoring parameter and the starting mode;
and installing/upgrading the operating system of the server according to the searched starting mode.
For specific definition of an os installation/upgrade method, refer to the above definition of an os installation/upgrade system, which is not described herein again.
In one embodiment, a unified extensible firmware interface, UEFI, comprises:
the receiving module is used for receiving monitoring parameters, the monitoring parameters are obtained by converting starting mode control instructions, and the starting mode control instructions are input from a user interface;
the searching module is used for searching the starting mode corresponding to the received monitoring parameter from the preset corresponding relation between the monitoring parameter and the starting mode;
and the installation/upgrade module is used for installing/upgrading the operating system of the server according to the searched starting mode.
For specific limitations of the unified extensible firmware interface UEFI, reference may be made to the above limitations of the os installation/upgrade system, which are not described herein again.
The operating system installing/upgrading method, system, server, BMC and UEFI provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the core concepts of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An operating system installation/upgrade system, comprising: monitoring system management module and at least two servers, arbitrary server includes: a baseboard management controller BMC and at least one CPU;
the monitoring system management module is used for receiving a server identification and a corresponding starting mode control instruction input from a user interface and sending the starting mode control instruction to the server;
the BMC is used for receiving the starting mode control instruction, converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server, and sending the monitoring parameter to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus;
and the CPU is used for receiving the monitoring parameters, searching the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode through UEFI, and installing/upgrading the operating system of the server according to the searched starting mode.
2. The installation/upgrade system according to claim 1, wherein said communication bus is a general purpose input output, GPIO, bus or a low pin count, LPC, bus;
when the communication bus is a GPIO bus,
the BMC is specifically used for converting the starting mode control instruction into a level state of a GPIO output interface pin;
the CPU is specifically used for receiving the level state of the GPIO input interface pin through the UEFI, searching a starting mode corresponding to the received pin level state from the preset corresponding relation between the level state of the GPIO pin and the starting mode, and then installing/upgrading the operating system of the server according to the searched starting mode;
when the communication bus is an LPC bus,
the BMC is specifically configured to convert the starting mode control instruction into an intelligent platform management interface IPMI instruction, where the IPMI instruction includes a first starting mode and a flag bit parameter;
the CPU is specifically used for receiving the IPMI instruction through the UEFI, searching a starting mode corresponding to the received zone bit parameter from a preset corresponding relation between the zone bit parameter and the starting mode, and installing/upgrading an operating system of a server according to the first starting mode when the starting mode is not searched; and when the operation system is found, installing/upgrading the operation system of the server according to the found starting mode.
3. A server, comprising: a baseboard management controller BMC and at least one CPU;
the BMC is used for receiving the starting mode control instruction, converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server, and sending the monitoring parameter to one CPU of the server through a communication bus;
and the CPU is used for receiving the monitoring parameters through a Unified Extensible Firmware Interface (UEFI), searching the starting mode corresponding to the received monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode, and installing/upgrading the operating system of the server according to the searched starting mode.
4. The server according to claim 3, wherein the communication bus is a General Purpose Input Output (GPIO) bus or a Low Pin Count (LPC) bus;
when the communication bus is a GPIO bus,
the BMC is specifically used for converting the starting mode control instruction into a level state of a GPIO output interface pin;
the CPU is specifically used for receiving the pin level state of the GPIO input interface through the UEFI, searching a starting mode corresponding to the received pin level state from the preset corresponding relation between the pin level state of the GPIO and the starting mode, and installing/upgrading the operating system of the server according to the searched starting mode;
when the communication bus is an LPC bus,
the BMC is specifically configured to convert the starting mode control instruction into an intelligent platform management interface IPMI instruction, where the IPMI instruction includes a first starting mode and a flag bit parameter;
the CPU is specifically used for receiving the IPMI instruction through the UEFI, searching a starting mode corresponding to the received zone bit parameter from a preset corresponding relation between the zone bit parameter and the starting mode, and installing/upgrading an operating system of a server according to the first starting mode when the starting mode is not searched; and when the operation system is searched, installing/upgrading the operation system of the server according to the searched starting mode.
5. An operating system installation/upgrade method, comprising:
receiving a server identifier and a starting mode control instruction;
when the starting mode control instruction is used for controlling the server, the starting mode control instruction is converted into a monitoring parameter, and the starting mode control instruction and the server identification are input from a user interface;
receiving the monitoring parameters through a unified extensible firmware interface UEFI (unified extensible firmware interface) of one CPU (central processing unit) sent to the server through a communication bus;
and the UEFI searches the received starting mode corresponding to the monitoring parameter from the corresponding relation between the preset monitoring parameter and the starting mode, and installs/upgrades the operating system of the server according to the searched starting mode.
6. The method of claim 5, wherein the communication bus is a General Purpose Input Output (GPIO) bus or a Low Pin Count (LPC) bus;
when the communication bus is a general purpose input/output (GPIO) bus, the monitoring parameter is the level state of a GPIO pin;
converting the starting mode control instruction into a monitoring parameter, including:
converting the starting mode control instruction into a level state of a pin of a GPIO output interface;
the searching the received starting mode corresponding to the monitoring parameter from the preset corresponding relation between the monitoring parameter and the starting mode through UEFI comprises the following steps:
searching a starting mode corresponding to the received pin level state from a preset corresponding relation between the GPIO pin level state and the starting mode;
when the communication bus is an LPC bus, the monitoring parameter is a zone bit parameter;
converting the starting mode control instruction into a monitoring parameter, comprising:
converting the starting mode control instruction into an Intelligent Platform Management Interface (IPMI) instruction, wherein the IPMI instruction comprises a first starting mode and a zone bit parameter;
the searching the received starting mode corresponding to the monitoring parameter from the preset corresponding relation between the monitoring parameter and the starting mode through UEFI comprises the following steps:
searching the received starting mode corresponding to the flag bit parameter from the corresponding relation between the preset flag bit parameter and the starting mode, and installing/upgrading the operating system of the server according to the first starting mode when the starting mode corresponding to the received flag bit parameter is not searched; and when the operation system is found, installing/upgrading the operation system of the server according to the found starting mode.
7. An operating system installation/upgrade method, comprising:
receiving a server identification and a starting mode control instruction, wherein the starting mode control instruction and the server identification are input from a user interface;
judging whether the received server identification is the identification of the server;
when the starting mode control instruction is used for controlling the server, converting the starting mode control instruction into a monitoring parameter;
and sending the monitoring parameters to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus, so that the UEFI of the CPU searches the received starting mode corresponding to the monitoring parameters from the corresponding relation between the preset monitoring parameters and the starting mode, and installing/upgrading the operating system of the server according to the searched starting mode.
8. A baseboard management controller, BMC, comprising:
the system comprises a receiving module, a starting module and a display module, wherein the receiving module is used for receiving a server identifier and a starting mode control instruction, and the starting mode control instruction and the server identifier are input from a user interface;
the judging module is used for judging whether the received server identification is the identification of the server;
the conversion module is used for converting the starting mode control instruction into a monitoring parameter when the starting mode control instruction controls the server;
and the sending module is used for sending the monitoring parameters to a Unified Extensible Firmware Interface (UEFI) of one CPU of the server through a communication bus, so that the UEFI of the CPU searches the received starting mode corresponding to the monitoring parameters from the corresponding relationship between the preset monitoring parameters and the starting modes, and installing/upgrading the operating system of the server according to the searched starting mode.
9. An operating system installation/upgrade method, characterized in that,
receiving monitoring parameters, wherein the monitoring parameters are obtained by converting starting mode control instructions, and the starting mode control instructions are input from a user interface;
searching a starting mode corresponding to the received monitoring parameter from a preset corresponding relation between the monitoring parameter and the starting mode;
and installing/upgrading the operating system of the server according to the searched starting mode.
10. A unified extensible firmware interface, UEFI, comprising:
the receiving module is used for receiving monitoring parameters, wherein the monitoring parameters are obtained by converting starting mode control instructions, and the starting mode control instructions are input from a user interface;
the searching module is used for searching the starting mode corresponding to the received monitoring parameter from the preset corresponding relation between the monitoring parameter and the starting mode;
and the installation/upgrade module is used for installing/upgrading the operating system of the server according to the searched starting mode.
CN202211047937.5A 2022-08-30 2022-08-30 Operating system installation/upgrade method, system, server, BMC and UEFI Pending CN115328562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211047937.5A CN115328562A (en) 2022-08-30 2022-08-30 Operating system installation/upgrade method, system, server, BMC and UEFI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211047937.5A CN115328562A (en) 2022-08-30 2022-08-30 Operating system installation/upgrade method, system, server, BMC and UEFI

Publications (1)

Publication Number Publication Date
CN115328562A true CN115328562A (en) 2022-11-11

Family

ID=83928019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211047937.5A Pending CN115328562A (en) 2022-08-30 2022-08-30 Operating system installation/upgrade method, system, server, BMC and UEFI

Country Status (1)

Country Link
CN (1) CN115328562A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521209A (en) * 2023-07-04 2023-08-01 苏州浪潮智能科技有限公司 Upgrading method and device of operating system, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521209A (en) * 2023-07-04 2023-08-01 苏州浪潮智能科技有限公司 Upgrading method and device of operating system, storage medium and electronic equipment
CN116521209B (en) * 2023-07-04 2023-09-15 苏州浪潮智能科技有限公司 Upgrading method and device of operating system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
KR100773004B1 (en) System and apparatus for eliminating user interaction during hardware configuration at system boot
US7222339B2 (en) Method for distributed update of firmware across a clustered platform infrastructure
RU2417415C2 (en) Method and system for deploying software, software deployment server and user server
US8171502B2 (en) Methods, devices and computer program products for automatically installing device drivers from a peripheral device onto a host computer
US10936295B2 (en) Software update system
US7797526B2 (en) Service processor host flash update over LPC
US10853087B2 (en) UEFI boot mode OS provisioning system
US20080126628A1 (en) Methods, devices and computer program products for automatically providing an alternate usb configuration of a usb compliant peripheral device for exposure to a host computer
JPH06222910A (en) Method and apparatus for automatic installation of pluralityof software products pn computer device and for arrangement of operating environment of computer device
US11861357B2 (en) Selecting and sending subset of components to computing device prior to operating system install
JP2013156993A (en) Methods of configuring bios in computer system and computer program products
CN115328562A (en) Operating system installation/upgrade method, system, server, BMC and UEFI
CN111427624A (en) Method, device and system for batch automatic deployment and configuration of servers
US20150220350A1 (en) Information processing device and method for managing information processing device
CN113821220A (en) Installation method and device of linux operating system
TW201445446A (en) System and method of boot configuration of cabinet server
CN110737444A (en) Remote self-adaptive dynamic deployment method and system for operating system based on firmware
US20230325203A1 (en) Provisioning dpu management operating systems using host and dpu boot coordination
CN113821265A (en) Operating system control method and device, computer mainboard and readable storage medium
JP2003525494A (en) Apparatus and method for swapping devices during operation of a computer
CN111008043A (en) Server starting method of cloud platform and terminal
US20230185829A1 (en) Knowledge base for correcting baseline for cluster scaling
CN111580868B (en) Method for controlling setting configuration and related computer system
JP7516787B2 (en) Start-up control device, start-up control system, and start-up control method
TWI846417B (en) Computer network and method of updating firmware to a peripheral device of a computer system in computer network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination