[go: up one dir, main page]

CN114817096A - Serial port switching system, method and device for BMC and BIOS and computer readable medium - Google Patents

Serial port switching system, method and device for BMC and BIOS and computer readable medium Download PDF

Info

Publication number
CN114817096A
CN114817096A CN202210366613.1A CN202210366613A CN114817096A CN 114817096 A CN114817096 A CN 114817096A CN 202210366613 A CN202210366613 A CN 202210366613A CN 114817096 A CN114817096 A CN 114817096A
Authority
CN
China
Prior art keywords
serial port
bmc
bios
cpld
information
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.)
Granted
Application number
CN202210366613.1A
Other languages
Chinese (zh)
Other versions
CN114817096B (en
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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210366613.1A priority Critical patent/CN114817096B/en
Publication of CN114817096A publication Critical patent/CN114817096A/en
Application granted granted Critical
Publication of CN114817096B publication Critical patent/CN114817096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种BMC和BIOS的串口切换系统、方法、计算机设备及计算机可读介质,该BMC和BIOS的串口切换系统包括BMC、BIOS以及分别与BIOS的串口和BMC的串口连接的CPLD,且CPLD与BMC和BIOS一起通信连接耳机孔,以共用一个输出串口且通过CPLD进行BMC和BIOS的串口输出切换。该系统利用CPLD启动时间短的特点能够在服务器启动时快速启动CPLD,在CPLD中设置控制器,给控制器设计控制电路来将连接到CPLD的BMC和BIOS的串口根据服务器的要求进行切换,而不考虑BMC和BIOS是否故障都可以收集器Log,提高了研发debug的针对性。

Figure 202210366613

The invention discloses a serial port switching system, method, computer equipment and computer readable medium of BMC and BIOS. The serial port switching system of BMC and BIOS comprises BMC, BIOS and CPLD respectively connected with serial port of BIOS and serial port of BMC, In addition, the CPLD communicates with the BMC and the BIOS to connect to the headphone jack, so as to share one output serial port and switch the serial port output of the BMC and the BIOS through the CPLD. The system utilizes the short startup time of CPLD to quickly start the CPLD when the server starts, set the controller in the CPLD, and design a control circuit for the controller to switch the serial port of the BMC and BIOS connected to the CPLD according to the requirements of the server. Regardless of whether the BMC and BIOS are faulty, the Log can be collected, which improves the pertinence of R&D debugging.

Figure 202210366613

Description

Serial port switching system, method and device for BMC and BIOS and computer readable medium
Technical Field
The invention relates to the technical field of computers, in particular to a serial port switching system and method of BMC and BIOS, computer equipment and a computer readable medium.
Background
Nowadays, home-made servers are applied more and more in scenes, components are gradually localized, but the following problems are also numerous, and the serial port use frequency of a system and a BMC (baseboard control controller) is higher and higher because some problems cause that machines cannot be opened or the machines are abnormal without reason, so that the invention is an improvement for better collecting serial port information.
At present, under the condition that the server is all fixed in width, height, integrated components and parts are more and more, certain project of domestic sea light, and the space of leaving the serial ports is seriously compressed for the first time in order to promote in the specification, can't use 9 needle interfaces, BMC, BIOS adopt industry boundary earphone hole design, but also can't satisfy and arrange two simultaneously. In order to meet the functional design and simultaneously consider the space design, the BMC and the BIOS multiplex the same earphone hole and share the serial port output, but the design needs to collect the serial port information of the system BIOS after the BMC is started, the invention mainly aims to solve the problem of serial port collection of the BIOS before the BMC is not restarted or the problem of switching of BMC/BIOS serial port output in the serial port before the BMC is not restarted.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a system and a method for switching between BMC and BIOS (basic input output system) serial ports. The system can quickly start the CPLD when the server is started by utilizing the characteristic of short starting time of the CPLD (complex programmable logic device), the controller is arranged in the CPLD, a control circuit is designed for the controller to switch the serial ports of the BMC and the BIOS connected to the CPLD according to the requirements of the server, and the Log can be collected regardless of whether the BMC and the BIOS are in fault, so that the pertinence of developing debug is improved.
Based on the above purpose, an aspect of the embodiments of the present invention provides a serial port switching system for an MC and a BIOS. The system comprises a BMC, a BIOS and a CPLD respectively connected with a serial port of the BIOS and a serial port of the BMC, wherein the CPLD, the BMC and the BIOS are in communication connection with an earphone hole together so as to share one output serial port and carry out serial port output switching of the BMC and the BIOS through the CPLD.
In some embodiments, the serial port of the BMC, the serial port of the BIOS, and the CPLD serial port are connected together to the RS232 chip for the headphone jack to access the BMC, the BIOS, and the CPLD simultaneously.
In some embodiments, the CPLD comprises a controller, and the controller is in communication connection with the serial port of the BMC and the serial port of the BIOS to switch the output of the serial port information of the BMC and the BIOS.
On the other hand, the embodiment of the invention provides a serial port switching method of BMC and BIOS. The method comprises the following steps: the server is powered on to start the CPLD; the CPLD controls the switching between the serial port of the BMC and the serial port of the BIOS; collecting a BMC fault log through the CPLD when the BMC has faults, and collecting a BIOS fault log through the CPLD when the BIOS has faults; and when the BMC and the BIOS work normally, the CPLD selects the earphone hole to output the serial port information of the BMC or the serial port information of the BIOS.
In some embodiments, powering up the server to initiate the CPLD includes: after the server is started, the CPLD is started within 1 second.
In some embodiments, the controlling, by the CPLD, the switching between the serial port of the BMC and the serial port of the BIOS includes: the serial port of the BMC and the serial port of the BIOS are connected into the CPLD, after the CPLD is started, the BMC and the BIOS do not need to be started, and the internal controller of the CPLD controls the switching of the serial port of the BMC and the serial port of the BIOS and stores serial port information.
In some embodiments, collecting the log of BMC failures by the CPLD when the BMC fails and collecting the log of BIOS failures by the CPLD when the BIOS fails comprises: when the CPLD is started, but the BMC and the BIOS are not started, the CPLD is communicated with the serial port of the BMC and the serial port of the BIOS, and if one or both of the serial port of the BMC and the serial port of the BIOS fails to start, the serial port of the BMC and the serial port of the BIOS can be switched through the CPLD to collect a fault Log.
In some embodiments, when the BMC and the BIOS operate normally, selecting the earphone hole to output the serial port information of the BMC or the serial port information of the BIOS through the CPLD includes: the BMC and the BIOS normally work, the CPLD controls the external output of the serial port, and when the CPLD selects 0, the earphone hole outputs the serial port information of the BIOS; and when the CPLD selects 1, the earphone hole outputs the serial port information of the BMC.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing steps of the method comprising: the server is powered on to start the CPLD; the CPLD controls the switching between the serial port of the BMC and the serial port of the BIOS; collecting a BMC fault log through the CPLD when the BMC has faults, and collecting a BIOS fault log through the CPLD when the BIOS has faults; and when the BMC and the BIOS work normally, the CPLD selects the earphone hole to output the serial port information of the BMC or the serial port information of the BIOS.
In some embodiments of the invention, the CPLD is started after the server is started, and the boot time of the BMC and the BIOS is longer than that of the CPLD.
In some embodiments of the invention, the serial port of the BMC and the serial port of the BIOS are connected into the CPLD, after the CPLD is started, the BMC and the BIOS do not need to be started, and the internal controller of the CPLD controls the switching of the serial port of the BMC and the serial port of the BIOS and stores serial port information.
In some embodiments of the invention, in the time period when the CPLD is started but the BMC and the BIOS are not started, the CPLD is communicated with the serial port of the BMC and the serial port of the BIOS, and if one or both of the serial port of the BMC and the serial port of the BIOS fails to start, the serial port of the BMC and the serial port of the BIOS can be switched through the CPLD to collect the fault Log.
In some embodiments of the invention, the BMC and the BIOS work normally, the CPLD controls the external output of the serial port, and when the CPLD selects 0, the earphone hole outputs the serial port information of the BIOS; and when the CPLD selects 1, the earphone hole outputs the serial port information of the BMC.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has at least the following beneficial technical effects:
the serial port switching system of BMC and BIOS adopts a serial port switching method of BMC and BIOS. The serial port of the BMC and the serial port of the BIOS are connected to the CPLD, and the CPLD, the BMC and the BIOS are in communication connection with the earphone hole together so as to share one output serial port and carry out serial port output switching of the BMC and the BIOS through the CPLD. The starting time of the CPLD is only 1s, and the CPLD is very short and can be quickly started when the server is started. A controller is arranged in the CPLD, a control circuit is designed for the controller to switch the serial ports of the BMC and the BIOS connected to the CPLD according to the requirements of a server, and the collector Log can be used regardless of whether the BMC and the BIOS have faults, so that the pertinence of developing debug (removing faults of a computer) is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a serial port switching system for BMC and BIOS provided in the present invention;
FIG. 2 is a schematic diagram of an embodiment of a serial port switching method for BMC and BIOS provided in the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
FIG. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
FIG. 1 is a schematic diagram illustrating an embodiment of a serial port switching system of a BMC and a BIOS provided in the present invention.
Based on the above purpose, the first aspect of the embodiment of the present invention provides a serial port switching system between BMC and BIOS. The system comprises a BMC, a BIOS and a CPLD respectively connected with a serial port of the BIOS and a serial port of the BMC, wherein the CPLD, the BMC and the BIOS are in communication connection with an earphone hole together so as to share one output serial port and carry out serial port output switching of the BMC and the BIOS through the CPLD.
As shown in fig. 1, the serial port of the BMC and the serial port of the BIOS are simultaneously connected to the CPLD, so that the CPLD is allowed to access the serial port of the BMC and the serial port of the BIOS, and thus the serial port of the BMC and the serial port of the BIOS can be switched without starting the BMC and the BIOS, and required serial port information is collected. The boot time and the fault condition of the BMC and the BIOS are not required to be considered.
Because BMC and BIOS share a serial port, that is, only one piece of information can be collected in the restarting process, after the BMC or the system is restarted, a unit connected with a serial port line is not arranged, the restart log is not stored, and the restart log cannot be found even if problems occur.
When a general server is electrified for the first time, the BMC/BIOS is started at the same time, but before the BMC is not restarted, the earphone hole outputs serial port information of the BMC in a default mode, after the BMC is started (2-3 minutes), serial port output switching (to be the BIOS or the BMC) can be carried out through a BMC command party
The CPLD has short starting time (within 1 second), so that the switching of BMC/BIOS serial port output can be realized before the BMC is not started.
In some embodiments of the invention, the serial port of the BMC, the serial port of the BIOS, and the CPLD serial port are connected to the RS232 chip together, and are used for the headphone jack to access the BMC, the BIOS, and the CPLD simultaneously.
As shown in FIG. 1, the interface of the RS232 chip is a 9-pin or 25-pin serial port. The serial port of the BMC, the serial port of the BIOS and the CPLD are simultaneously connected to the earphone hole, the CPLD is internally provided with a switching function, and serial port information is output through the earphone hole.
In some embodiments of the present invention, the CPLD includes a controller, and the controller is communicatively connected to the serial port of the BMC and the serial port of the BIOS to switch output of serial port information of the BMC and the BIOS.
As shown in fig. 1, the CPLD internal control circuit, through software design, can control the external output of the serial port, and when the CPLD selects "0", it represents that the earphone hole outputs the serial port information (including CPU-related start information) of the BIOS; when the CPLD selects '1', serial port information (mainly restart information of the BMC and log information under a BMC system) of the BMC is output by the representative earphone hole. The restarting time of the CPLD is less than 1 second, so that the serial port switching of the BMC/BIOS can be realized after the CPLD is powered on. The personal notebook is connected with the server through the earphone hole, the notebook runs the serial port assistant, and after the server is powered on, the CPLD switching command is directly input by the serial port assistant. CPLD access link design: the restarting time of the device is less than 1S, a debug serial port of the CPLD cannot be designed normally, and the access control of the CPLD is carried out through the design that the CPLD shares the serial port of the BMC and the BIOS. And (3) CPLD switching function design: the CPU and the Uart interface of the BMC are connected to the CPLD, the serial port information of the BMC and the CPU is transmitted into the CPLD, after the CPLD receives the information, the serial port information of the BMC and the CPU is distinguished according to the link number of the Uart, the CPLD forwards the BMC or the CPU Uart information according to the setting, the content of the forwarding is not carried out, and the CPLD does not carry out any processing. CPLD command specification: directly accessing the CPLD through a serial port tool, a serial port line and an earphone hole, and outputting uart information of the CPU by the earphone hole when the identification bit is set to be 0 according to a software logic preset by the CPLD through a custom command of the CPLD; when the CPLD selects '1', the serial port information of the BMC is output by the representative earphone hole.
Based on the above purpose, the first aspect of the embodiments of the present invention provides an embodiment of a serial port switching method for BMC and BIOS. Fig. 2 is a schematic diagram illustrating an embodiment of a serial port switching method for BMC and BIOS according to the present invention. As shown in fig. 2, the serial port switching method for BMC and BIOS according to the embodiment of the present invention includes the following steps:
001. the server is powered on to start the CPLD;
002. the CPLD controls the switching between the serial port of the BMC and the serial port of the BIOS;
003. when the BMC fails, collecting a BMC fault log through the CPLD, and when the BIOS fails, collecting a BIOS fault log through the CPLD;
004. when the BMC and the BIOS work normally, the CPLD selects the earphone hole to output the serial port information of the BMC or the serial port information of the BIOS.
As shown in fig. 2, in this embodiment, a controller is initially set in the CPLD, and an internal control circuit is designed, and the control circuit implements external output of a serial port controlled by the control circuit through a commonly connected headphone jack, such as a serial port of the BMC and a serial port of the BIOS of the present application, by software design. The '0' represents the serial port information of the BIOS, the serial port information comprises related information of CPU starting, and when the CPLD selects the '0', the earphone hole outputs the serial port information of the BIOS. The '1' represents the serial port information of the BMC, the information mainly reflects the restart information and log information of the BMC, and when the CPLD selects the '1', the earphone hole outputs the serial port information of the BMC. Preferably, a manner in which the personal notebook is operated by being connected to the server through the headphone jack may also be employed. The serial assistant is operated in the notebook computer, and the CPLD switching command is directly input by using the serial assistant after the server is powered on. In the CPLD access link design, a debug serial port of the CPLD is not designed according to the characteristic of short starting time of the CPLD. The CPLD shares the serial port of the BMC and the BIOS, the access BMC and the BIOS of the CPLD are adopted to control the switching of the serial port, and the serial port information is collected. And (3) CPLD switching function design: the CPU and the Uart interface of the BMC are connected to the CPLD, serial port information of the BMC and the CPU is transmitted into the CPLD, after the CPLD receives the information, the serial port information of the BMC and the CPU is distinguished according to the link number of the Uart, the CPLD forwards the Uart information of the BMC or the CPU according to the setting, the forwarding content is not needed, and the CPLD does not perform any processing. CPLD command specification: directly accessing the CPLD through a serial port tool, a serial port line and an earphone hole, and outputting uart information of the CPU (central processing unit) representing the earphone hole when the identification bit is set to be 0 according to a software logic preset by the CPLD through a custom command of the CPLD, wherein the uart information of the CPU is the uart information of the BIOS; when the identification bit is set to be 1, the representative earphone hole outputs the serial port information of the BMC.
In some embodiments of the invention, powering up the server to initiate the CPLD comprises: after the server is started, the CPLD is started within 1 second.
The CPLD, the BMC and the BIOS are all arranged in the server, after the server is started, the CPLD, the BMC and the BIOS are all started, only the starting time is different, the starting time of the CPLD is 1 second or less than 1 second, and the starting time is very short. While boot times for BMC and BIOS require 2 to 3 minutes or even longer.
In some embodiments of the present invention, the controlling, by the CPLD, the switching between the serial port of the BMC and the serial port of the BIOS includes: the serial port of the BMC and the serial port of the BIOS are connected into the CPLD, after the CPLD is started, the BMC and the BIOS do not need to be started, and the internal controller of the CPLD controls the switching of the serial port of the BMC and the serial port of the BIOS and stores serial port information.
In this embodiment, the BMC and the BIOS share one output serial port, and the boot time of the BMC and the BIOS is longer and requires 2 to 3 minutes. Therefore, if the conventional method is adopted, the BMC and the BIOS can only output one serial port information. For example, if the output is serial port information of the BMC, the BIOS must wait until the BMC is started to switch the serial port information, and at this time, the log of the time period when the BMC is not started cannot be recorded.
In some embodiments of the present invention, collecting the log of BMC failures via the CPLD when the BMC failed and collecting the log of BIOS failures via the CPLD when the BIOS failed comprises: when the CPLD is started, but the BMC and the BIOS are not started, the CPLD is communicated with the serial port of the BMC and the serial port of the BIOS, and if one or both of the serial port of the BMC and the serial port of the BIOS fails to start, the serial port of the BMC and the serial port of the BIOS can be switched through the CPLD to collect a fault Log. When the BMC and the BIOS work normally, the step of selecting the earphone hole to output the serial port information of the BMC or the serial port information of the BIOS through the CPLD comprises the following steps: the BMC and the BIOS normally work, the CPLD controls the external output of the serial port, and when the CPLD selects 0, the earphone hole outputs the serial port information of the BIOS; and when the CPLD selects 1, the earphone hole outputs the serial port information of the BMC.
In this embodiment, there are situations where the BMC or BIOS has failed prior to boot. Under the condition, when the output is directly connected with the earphone hole through the serial port of the BMC and the serial port of the BIOS, once one of the BMC and the BIOS fails, the output cannot be performed. Therefore, the CPLD is adopted to connect the serial port of the BMC and the serial port of the BIOS first, the switching between the serial port of the BMC and the serial port of the BIOS can be realized through the link design of the CPLD, and the serial port information can be recorded even if the two fail.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, the computer apparatus of the embodiment of the present invention includes: at least one processor 021; and a memory 022, the memory 022 storing computer instructions 023 executable on the processor, the instructions when executed by the processor implementing steps of the method comprising: the server is powered on to start the CPLD; the CPLD controls the switching between the serial port of the BMC and the serial port of the BIOS; when the BMC fails, collecting a BMC fault log through the CPLD, and when the BIOS fails, collecting a BIOS fault log through the CPLD; and when the BMC and the BIOS work normally, the CPLD selects the earphone hole to output the serial port information of the BMC or the serial port information of the BIOS.
In some embodiments of the invention, the CPLD is started after the server is started, and the boot time of the BMC and the BIOS is longer than that of the CPLD.
In some embodiments of the invention, the serial port of the BMC and the serial port of the BIOS are connected into the CPLD, after the CPLD is started, the BMC and the BIOS do not need to be started, and the internal controller of the CPLD controls the switching of the serial port of the BMC and the serial port of the BIOS and stores serial port information.
In some embodiments of the invention, in the time period when the CPLD is started but the BMC and the BIOS are not started, the CPLD is communicated with the serial port of the BMC and the serial port of the BIOS, and if one or both of the serial port of the BMC and the serial port of the BIOS fails to start, the serial port of the BMC and the serial port of the BIOS can be switched through the CPLD to collect the fault Log.
In some embodiments of the invention, the BMC and the BIOS work normally, the CPLD controls the external output of the serial port, and when the CPLD selects 0, the earphone hole outputs the serial port information of the BIOS; and when the CPLD selects 1, the earphone hole outputs the serial port information of the BMC.
The invention also provides a computer readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium 031 stores a computer program 032 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for centralized server testing can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, D0L, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1.一种BMC和BIOS的串口切换系统,其特征在于,包括:1. a serial port switching system of BMC and BIOS, is characterized in that, comprises: BMC;BMC; BIOS;以及BIOS; and 分别与BIOS的串口和BMC的串口连接的CPLD,且CPLD与BMC和BIOS一起通信连接耳机孔,以共用一个输出串口且通过CPLD进行BMC和BIOS的串口输出切换。The CPLD is connected to the serial port of the BIOS and the serial port of the BMC respectively, and the CPLD communicates with the BMC and the BIOS to connect the headphone jack to share one output serial port and switch the serial output of the BMC and the BIOS through the CPLD. 2.根据权利要求1所述的BMC和BIOS的串口切换系统,其特征在于,BMC的串口、BIOS的串口和CPLD串口一起连接到RS232芯片,用于耳机孔同时访问BMC、BIOS和CPLD。2. the serial port switching system of BMC according to claim 1 and BIOS, is characterized in that, the serial port of BMC, the serial port of BIOS and CPLD serial port are connected to RS232 chip together, be used for earphone hole to access BMC, BIOS and CPLD simultaneously. 3.根据权利要求2所述的BMC和BIOS的串口切换系统,其特征在于,CPLD包括控制器,所述控制器通信连接所述BMC的串口和所述BIOS的串口,以切换所述BMC和BIOS的串口信息的输出。3. the serial port switching system of BMC according to claim 2 and BIOS, is characterized in that, CPLD comprises controller, and described controller communicates the serial port of described BMC and the serial port of described BIOS, to switch described BMC and the serial port of described BIOS. BIOS serial port information output. 4.一种用于如权利要求1至3中任一项所述的BMC和BIOS的串口切换系统的BMC和BIOS的串口切换方法,其特征在于,包括:4. a serial port switching method for BMC and BIOS of the serial port switching system of BMC and BIOS as described in any one of claims 1 to 3, is characterized in that, comprising: 服务器上电以启动CPLD;The server is powered on to start the CPLD; CPLD控制BMC的串口和BIOS的串口的切换;CPLD controls the switching between the serial port of BMC and the serial port of BIOS; 当BMC故障时通过CPLD收集BMC故障log,且当BIOS故障时通过CPLD收集BIOS故障log;以及Collect the BMC failure log through CPLD when the BMC fails, and collect the BIOS failure log through the CPLD when the BIOS fails; and 当BMC和BIOS正常工作时通过CPLD选择耳机孔输出BMC的串口信息或者BIOS的串口信息。When the BMC and BIOS work normally, select the headphone jack through the CPLD to output the serial port information of the BMC or the serial port information of the BIOS. 5.根据权利要求4所述的BMC和BIOS的串口切换方法,其特征在于,服务器上电以启动CPLD包括:服务器启动后,经1秒的时间启动CPLD。5 . The serial port switching method of BMC and BIOS according to claim 4 , wherein the power-on of the server to start the CPLD comprises: after the server is started, the CPLD is started after 1 second. 6 . 6.根据权利要求4所述的基BMC和BIOS的串口切换方法,其特征在于,CPLD控制BMC的串口和BIOS的串口的切换包括:BMC的串口和BIOS的串口连接到CPLD内,在CPLD启动后,无需启动BMC和BIOS,CPLD的内部控制器控制BMC的串口和BIOS的串口的切换且存储串口信息。6. the serial port switching method of base BMC and BIOS according to claim 4, is characterized in that, the switching of the serial port of CPLD control BMC and the serial port of BIOS comprises: the serial port of BMC and the serial port of BIOS are connected in CPLD, start in CPLD Afterwards, there is no need to start the BMC and BIOS, the internal controller of the CPLD controls the switching between the serial port of the BMC and the serial port of the BIOS and stores the serial port information. 7.根据权利要求4所述的BMC和BIOS的串口切换方法,其特征在于,当BMC故障时通过CPLD收集BMC故障log,且当BIOS故障时通过CPLD收集BIOS故障log包括:在启动CPLD,但未启动BMC和BIOS的时间段,CPLD连通BMC的串口和BIOS的串口,若BMC的串口和BIOS的串口中的一者或二者都故障无法启动,仍可通过CPLD切换BMC的串口和BIOS的串口以收集故障Log。7. the serial port switching method of BMC according to claim 4 and BIOS, it is characterized in that, when BMC failure, collect BMC failure log by CPLD, and when BIOS failure, collect BIOS failure log by CPLD and include: in starting CPLD, but During the period when the BMC and BIOS are not started, the CPLD is connected to the serial port of the BMC and the serial port of the BIOS. If one or both of the serial port of the BMC and the serial port of the BIOS are faulty and cannot be started, the CPLD can still be used to switch the serial port of the BMC and the serial port of the BIOS. Serial port to collect fault logs. 8.根据权利要求4所述的提高BMC和BIOS的串口切换方法,其特征在于,当BMC和BIOS正常工作时通过CPLD选择耳机孔输出BMC的串口信息或者BIOS的串口信息包括:BMC和BIOS正常工作,CPLD控制串口的对外输出,当CPLD选择了0时,耳机孔输出BIOS的串口信息;当CPLD选择了1时,耳机孔输出BMC的串口信息。8. the serial port switching method that improves BMC and BIOS according to claim 4, it is characterized in that, when BMC and BIOS work normally, select the serial port information of headphone jack output BMC or the serial port information of BIOS by CPLD and include: BMC and BIOS are normal When CPLD selects 0, the headphone jack outputs the serial port information of BIOS; when CPLD selects 1, the headphone jack outputs the serial port information of BMC. 9.一种计算机设备,其特征在于,包括:9. A computer equipment, characterized in that, comprising: 至少一个处理器;以及at least one processor; and 存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求4-8任意一项所述方法的步骤。a memory storing computer instructions executable on the processor, the instructions implementing the steps of the method of any one of claims 4-8 when executed by the processor. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求4-8任意一项所述方法的步骤。10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 4-8 are implemented.
CN202210366613.1A 2022-04-08 2022-04-08 System, method, equipment and computer readable medium for switching serial ports of BMC and BIOS Active CN114817096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210366613.1A CN114817096B (en) 2022-04-08 2022-04-08 System, method, equipment and computer readable medium for switching serial ports of BMC and BIOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210366613.1A CN114817096B (en) 2022-04-08 2022-04-08 System, method, equipment and computer readable medium for switching serial ports of BMC and BIOS

Publications (2)

Publication Number Publication Date
CN114817096A true CN114817096A (en) 2022-07-29
CN114817096B CN114817096B (en) 2023-07-25

Family

ID=82535150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210366613.1A Active CN114817096B (en) 2022-04-08 2022-04-08 System, method, equipment and computer readable medium for switching serial ports of BMC and BIOS

Country Status (1)

Country Link
CN (1) CN114817096B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656856A (en) * 2017-09-25 2018-02-02 郑州云海信息技术有限公司 A kind of system mode display methods and device based on CPLD
US20190220340A1 (en) * 2018-01-12 2019-07-18 Quanta Computer Inc. System and method for remote system recovery
CN212723999U (en) * 2020-09-25 2021-03-16 苏州浪潮智能科技有限公司 A Grabbing System Based on BIOS and BMC Serial Information of Server without Power-on
CN112948157A (en) * 2021-01-29 2021-06-11 苏州浪潮智能科技有限公司 Server fault positioning method, device and system and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656856A (en) * 2017-09-25 2018-02-02 郑州云海信息技术有限公司 A kind of system mode display methods and device based on CPLD
US20190220340A1 (en) * 2018-01-12 2019-07-18 Quanta Computer Inc. System and method for remote system recovery
CN212723999U (en) * 2020-09-25 2021-03-16 苏州浪潮智能科技有限公司 A Grabbing System Based on BIOS and BMC Serial Information of Server without Power-on
CN112948157A (en) * 2021-01-29 2021-06-11 苏州浪潮智能科技有限公司 Server fault positioning method, device and system and computer readable storage medium

Also Published As

Publication number Publication date
CN114817096B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN114265733B (en) Automatic testing method and device for abnormal power failure of solid state hard disk
CN112667066B (en) Method, system and medium for expanding hard disk storage capacity
WO2019052474A1 (en) Audio system management method, apparatus and device, and storage medium
CN110968477B (en) Method, device and medium for acquiring backup BMC version information
CN107070747B (en) Device, system and method for automatically testing network card network connection stability in network card binding mode
CN111143106A (en) Method, device, device and medium for repairing dual-port SSD
CN112118132A (en) A method, apparatus, device and readable medium for upgrading switch firmware
CN111949449A (en) Firmware recovery method, apparatus, system, computer equipment and storage medium
CN115437820B (en) A method, device and storage medium for capturing PCIE device fault information using BMC
CN111124722A (en) A method, device and medium for isolating faulty memory
CN111158764A (en) BMC starting method and equipment based on double-BMC FLASH chip
CN113867739A (en) A BMC firmware loading method, system, device and medium
CN111404771A (en) A network load testing method, apparatus, equipment and medium
US7814275B2 (en) Apparatus and method for performing a plurality of storage devices
CN114546283A (en) Storage link port management method and device of storage equipment and storage medium
CN111309553A (en) Method, system, equipment and medium for monitoring storage Jbod
CN110427199B (en) Method, equipment and readable medium for upgrading BMC and BIOS in matching manner
CN114817096A (en) Serial port switching system, method and device for BMC and BIOS and computer readable medium
CN112527345A (en) Method, device and equipment for online upgrading of CPLD (complex programmable logic device) of expansion cabinet and readable medium
CN111193818A (en) Method, system, equipment and medium for obtaining IP address
CN118939497B (en) Chip damage judging method and device, electronic equipment, storage medium and product
CN111367572A (en) A dual FLASH hot backup method, device, equipment and medium
CN117153237A (en) Method, system and device for simultaneously testing multiple SSDs
JP4483947B2 (en) Input/Output Control Unit
CN113254087A (en) Method and system for rapidly switching Expander configuration

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China