1. Field of Invention
The present invention relates to a testing method of baseboard management controller (BMC). More particularly, the present invention relates to a firmware testing method corresponding to a virtual periphery in a virtual intelligent platform management interface (IPMI).
2. Related Art
Intelligent platform management interface (referred to as IPMI) is provided for a system manager to monitor health status of various components in a computer through the transmission mode of a network or standard serial. For example, the operation of a central processing unit (CPU), rotation speed of a cooling fan, and temperature and voltage of a main board chip are monitored. The system manager may set a sensing critical value for the portion to be monitored, and thus on sensing any abnormity, the IPMI controller will send an email or a simple network management protocol to inform the system manager to handle the problem. Further, through the combination of hardware and software, the IPMI acquires additional functions of remote management and system revert, such that the system manager may learn about the current status of the system (for example, shutting down, booting, or OS crash) and then send a command to shut down, boot, or reboot the system at a remote end.
Referring to
Therefore, the BMC 130 may have its firmware updated according to the research and development requirements of the manufacturer. However, as the BMC 130 has certain recordable times, if a physical chip is used in process development and test, the service life of the chip of the BMC 130 will be shortened. Meanwhile, the update operation is very dangerous. Once an undesired file is updated during the test, the computer may not be booted, and the chip of the BMC 130 on the server may even be damaged in a worse situation.
Accordingly, the present invention is mainly directed to a testing method of baseboard management controller (BMC) for testing firmware stability of a BMC in a server.
In order to achieve the above objective, a testing method of BMC is provided. The testing method includes: initializing a plurality of virtual operating systems; setting a plurality of virtual intelligent platform management interfaces (IPMIs) and a virtual BMC in the virtual operating systems; performing a firmware update on the virtual BMC through the-virtual IPMI to update the firmware of the virtual BMC; performing a stability test through the virtual BMC and the server; and loading the firmware of the virtual BMC passing the stability test into a physical BMC.
Therefore, the present invention provides a method of updating and testing the stability of a firmware of a BMC in a virtual IPMI, so as to reduce the recording times of the chip of a physical BMC, and prevent the chip of the physical BMC being burnt due to undesired firmware update.
The features and practice of the present invention will be described in detail below in the embodiments with the accompanying drawings.
The present invention will become more fully understood from the detailed description given herein below for illustration only, and thus are not limitative of the present invention, and wherein:
Referring to
An operating system 220 is constructed above the physical peripheral equipment 210. The operating system 220 may be a Windows operating system from Microsoft Company or an open source code operating system, such as Unix. Virtual operating systems 230 are further constructed above the operating system 220. The virtual operating systems 230 may be implemented by a fully virtualized virtual monitor management 250. The fully virtualized virtual monitor management 250 may be, but not limited to, VMware, VirtualBox, Bochs, or QEM. The fully virtualized virtual monitor management 250 coordinates with the operating system 220 to perform a simulation processing on the physical peripheral equipment 210. The virtual operating systems 230 is initialized in each virtual monitor management 250, and the virtual operating systems 230 may be regarded as a computer simulated in the operating system 220. Each virtual operating systems 230 includes an individual CPU, memory, storage unit, and peripheral equipment.
The peripheral equipment of the virtual operating systems 230 includes a virtual BMC 240. Thus, a virtual BMC 240 to be tested by the manufacturer may be added in the virtual operating systems 230. Referring to
A firmware update is performed on the virtual BMC to update the firmware of the virtual BMC (Step S330). The firmware update is performed through the virtual IPMI.
A stability test is performed through the virtual BMC and the server (Step S340). A corresponding driver of the virtual BMC is registered to the virtual operating systems (Step S341). A plurality of test data is transmitted through the virtual BMC (Step S342). The step is to test the stability of data transmission of the virtual BMC 240. In addition to the physical BMC, the virtual control manager may also transmit test data to virtual BMCs 240 in other virtual operating systems 230.
Each virtual operating systems 230 may be regarded as a computer that operates independently. Therefore, the test data is transmitted to the virtual control manager in each virtual operating systems 230 by the operating system 220 respectively, and a corresponding response data is fed back by the virtual operating systems 230. Then, the operating system 220 compares to see the accuracy of the received response data, so as to determine the operation stability of the virtual control manager of the virtual operating systems 230 after firmware update. Finally, the firmware of the virtual BMC passing the stability test is loaded into the physical BMC (Step S350).
The BMC of a network card is adopted for illustration in this embodiment. Referring to
Therefore, a firmware update may be performed on the newly added virtual network card 410 in the virtual operating systems 230. The firmware of the virtual network card 410 may be updated through the virtual operating systems 230. After finishing the firmware update, the virtual operating systems 230 will perform a stability test on the virtual network card 410. In particular, the virtual operating systems 230 checks the integrity of packets transmitted between the virtual network card 410 and other network equipments, so as to determine the operation stability of the virtual network card 410. Finally, the firmware of the network card passing the stability test is recorded into a physical network card.
The present invention provides a method of updating and testing the stability of a firmware of the BMC 240 in a virtual IPMI. Finally, the firmware passing the test is installed into a physical BMC, so as to reduce the recording times of the chip of the physical BMC, and prevent the chip of the physical BMC being burnt due to undesired firmware update.