CN109358906A - It is a kind of to enable the method and system that BIOS serial ports redirects by setting BMC OEM order - Google Patents

It is a kind of to enable the method and system that BIOS serial ports redirects by setting BMC OEM order Download PDF

Info

Publication number
CN109358906A
CN109358906A CN201811128671.0A CN201811128671A CN109358906A CN 109358906 A CN109358906 A CN 109358906A CN 201811128671 A CN201811128671 A CN 201811128671A CN 109358906 A CN109358906 A CN 109358906A
Authority
CN
China
Prior art keywords
bios
serial ports
console
gpio
bmc
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
CN201811128671.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811128671.0A priority Critical patent/CN109358906A/en
Publication of CN109358906A publication Critical patent/CN109358906A/en
Pending legal-status Critical Current

Links

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/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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/442Shutdown

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The method and system that BIOS serial ports redirects is enabled by setting BMC OEM order the present invention provides a kind of, including following operation: the GPIO of BIOS access BMC;Obtain the current state of BIOS console output;Judge whether BIOS console is opened according to the state of return value;BIOS console is opened or closed to be exported by serial ports.The embodiment of the present invention is enabled BIOS serial ports by setting BMC OEM order and redirected, enter PEI phase in BIOS, BIOS accesses the GPIO of BMC by the equipment iLPC2AHB of SuperIO, realizes the output for opening or closing BIOS serial ports according to corresponding GPIO mode bit.The program enhances the maintainability of server, facilitates the positioning of server problem and the positioning of user's site problems.It solves in the prior art when server is there are that can not open BIOS serial ports redirection function when hardware or software anomaly, realization passes through setting BMC OEM order and enables BIOS serial ports redirection, increase maintainability and ease for use.

Description

It is a kind of by setting BMC OEM order enable BIOS serial ports redirect method and System
Technical field
It is especially a kind of enabled by setting BMC OEM order the present invention relates to server B IOS design field The method and system that BIOS serial ports redirects.
Background technique
With the fast development of internet and big data, mass data is just being impacted with unprecedented growth trend each Industry, to IT infrastructure maintainable, higher requirements are also raised.Server as data center core component it One, future also proposed increasingly higher demands to the maintainability of server.
In the server B IOS design of current main-stream, EFI BIOS is mostly used, in EFI BIOS, in order to be serviced The positioning and analysis of device hardware problem, increase the function that the serial ports of BIOS redirects, and the serial ports redirection of BIOS can print To serial ports, server maintenance personnel can according to need to go to judge server exception by the function self-test code of BIOS.
After the power-up, operation EFI BIOS goes to execute the process of self-test current server, shows corresponding facility information And lead into system but when server goes wrong, for example server starting is hung dead or to check unit exception etc. tight When weight problem, how to remove positioning analysis is a stubborn problem.Current EFI BIOS increases the function of serial ports redirection Can, but the serial ports redirection function can generally be closed by BIOS designer or server master board on design one switch go beat The function that the open and close serial ports redirects.
After if BIOS designer closed serial ports redirection function in BIOS, the maintenance personnel and backer of server The function that member just has no idea to redirect using the serial ports of BIOS goes to be positioned according to serially printing asks with Analysis server hardware Topic.The positioning difficulty for the problem of will increase server in this way.
If server design personnel increase a switch on mainboard, with making a return journey, the serial ports for opening or closing BIOS is reset To function, but the program needs to increase hardware on the server, and which adds the costs of server.
Summary of the invention
The object of the present invention is to provide it is a kind of by setting BMC OEM order enable BIOS serial ports redirection method be System, it is intended to solve that BIOS serial ports redirection function can not be opened when server is there are when hardware or software anomaly in the prior art The problem of, realize that enabling BIOS serial ports by setting BMC OEM order redirects, and increases maintainable and ease for use.
To reach above-mentioned technical purpose, the present invention provides one kind to enable BIOS serial ports weight by setting BMC OEM order The method of orientation, including following operation:
The GPIO of BIOS access BMC;
Obtain the current state of BIOS console output;
Judge whether BIOS console is opened according to the state of return value;
BIOS console is opened or closed to be exported by serial ports.
Preferably, the BIOS accesses the GPIO of BMC by the equipment iLPC2AHB of SuperIO, to obtain current GPIO Mode bit.
Preferably, it is described open or close BIOS console and exported by serial ports executed by Ipmitool tool command.
Preferably, when sending the instruction that opening BIOS console is exported by serial ports, GPIO is set to 0x00, last Position is 0;When sending the instruction that closing BIOS console is exported by serial ports, GPIO is set to 0x01, last position is 1.
The system that BIOS serial ports redirects, the system are enabled by setting BMC OEM order the present invention also provides a kind of System includes:
Access GPIO module, the GPIO for BIOS access BMC;
Current state obtains module, for obtaining the current state of BIOS console output;
Condition judgment module judges whether BIOS console is opened for the state according to return value;
Module is opened or closed, is used to open or closes BIOS console and exported by serial ports.
Preferably, the BIOS accesses the GPIO of BMC by the equipment iLPC2AHB of SuperIO, to obtain current GPIO Mode bit.
Preferably, it is described open or close BIOS console and exported by serial ports executed by Ipmitool tool command.
Preferably, when sending the instruction that opening BIOS console is exported by serial ports, GPIO is set to 0x00, last Position is 0;When sending the instruction that closing BIOS console is exported by serial ports, GPIO is set to 0x01, last position is 1.
The effect provided in summary of the invention is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution have the following advantages that or the utility model has the advantages that
Compared with prior art, the present invention by setting BMC OEM order come enable BIOS serial ports redirection, BIOS into Enter PEI phase, BIOS accesses the GPIO of BMC by the equipment iLPC2AHB of SuperIO, according to corresponding GPIO mode bit come real Now open or close the output of BIOS serial ports.The equipment that the embodiment of the present invention does not need user's complexity, can location-server The problem of, it makes server simpler, easy-to-use, enhances the maintainability of server, facilitate the positioning and use of server problem The positioning of family site problems.It solves in the prior art when there are when hardware or software anomaly, can not open BIOS string for server The problem of salty orientating function, is realized and is redirected by the enabled BIOS serial ports of setting BMC OEM order, increases maintainable and easy The property used.
Detailed description of the invention
Fig. 1 is that one kind provided in the embodiment of the present invention is redirected by the enabled BIOS serial ports of setting BMC OEM order Method flow diagram;
Fig. 2 is that one kind provided in the embodiment of the present invention is redirected by the enabled BIOS serial ports of setting BMC OEM order System structure diagram.
Specific embodiment
In order to clearly illustrate the technical characterstic of this programme, below by specific embodiment, and its attached drawing is combined, to this Invention is described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
It is provided for the embodiments of the invention with reference to the accompanying drawing a kind of by the enabled BIOS serial ports of setting BMC OEM order The method and system of redirection is described in detail.
It is redirected as shown in Figure 1, enabling BIOS serial ports by setting BMC OEM order the embodiment of the invention discloses one kind Method, including following operation:
The GPIO of BIOS access BMC;
Obtain the current state of BIOS console output;
Judge whether BIOS console is opened according to the state of return value;
BIOS console is opened or closed to be exported by serial ports.
The embodiment of the present invention is by deciding whether that opening BIOS serial ports resets according to the setting of the mode bit of BMC GPIO To function, BMC can set the GPIO mode bit by BMC OEM order, and BIOS is according to the GPIO mode bit of the BMC in BIOS Initial phase go to open or close the function that the serial ports of BIOS redirects.
In order to make server have a preferably maintainable and ease for use, the embodiment of the present invention is according to the state of BMC GPIO Position setting come decide whether open BIOS serial ports redirection function.BMC can set the GPIO state by BMC OEM order Position, BIOS go the serial ports for opening or closing BIOS to redirect according to the GPIO mode bit of the BMC in the initial phase of BIOS Function.
Setting BIOS console is exported by serial ports:
Ipmitool raw 0x2e 0x17 0xc0 0x63 0x00 0x00 0x00 0x00
BIOS console is closed to be exported by serial ports:
Ipmitool raw 0x2e 0x17 0xc0 0x63 0x00 0x00 0x00 0x01
Obtain the current state of BIOS console output:
Ipmitool raw 0x2e 0x18(0xc0 0x63 0x00 0x00 0x00)
State, which is obtained, according to return value judges whether BIOS console is opened:
0x00 0xc0 0x63 0x00 0x00
0x00 expression has been enabled;
0x00 0xc0 0x63 0x00 0x01
0x01 expression has been off.
It is corresponding when sending corresponding order is 0x2e 0x17 0xc0 0x63 0x00 0x00 0x00 0x00 GPIO10 be set to 0x00, last position be 0.
It is corresponding when sending corresponding order is 0x2e 0x17 0xc0 0x63 0x00 0x00 0x00 0x01 GPIO10 be set to 0x01, last position be 1.
The embodiment of the present invention is enabled BIOS serial ports by setting BMC OEM order and redirected, and enters PEI rank in BIOS Section, BIOS are accessed the GPIO of BMC by the equipment iLPC2AHB of SuperIO, opening are realized according to corresponding GPIO mode bit Or close the output of BIOS serial ports.The equipment that the program does not need user's complexity, can location-server the problem of, allow service Device is simpler, easy-to-use, enhances the maintainability of server, facilitates the positioning of server problem and determining for user's site problems Position.It solves in the prior art when server is there are when hardware or software anomaly, BIOS serial ports redirection function can not be opened Problem realizes that enabling BIOS serial ports by setting BMC OEM order redirects, and increases maintainable and ease for use.
As shown in Fig. 2, being reset the embodiment of the invention also discloses a kind of by the enabled BIOS serial ports of setting BMC OEM order To system, the system comprises:
Access GPIO module, the GPIO for BIOS access BMC;
Current state obtains module, for obtaining the current state of BIOS console output;
Condition judgment module judges whether BIOS console is opened for the state according to return value;
Module is opened or closed, is used to open or closes BIOS console and exported by serial ports.
The BIOS accesses the GPIO of BMC by the equipment iLPC2AHB of SuperIO, to obtain the state of current GPIO Position.
It is described open or close BIOS console and exported by serial ports executed by Ipmitool tool command.
When sending the instruction that opening BIOS console is exported by serial ports, GPIO is set to 0x00, last position is 0; When sending the instruction that closing BIOS console is exported by serial ports, GPIO is set to 0x01, last position is 1.
By being decided whether to open BIOS serial ports redirection function according to the setting of the mode bit of BMC GPIO, BMC can With by the BMC OEM order setting GPIO mode bit, BIOS according to the GPIO mode bit of the BMC BIOS initial phase The function of going the serial ports for opening or closing BIOS to redirect.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (8)

1. a kind of enable the method that BIOS serial ports redirects by setting BMC OEM order, which is characterized in that including following behaviour Make:
The GPIO of BIOS access BMC;
Obtain the current state of BIOS console output;
Judge whether BIOS console is opened according to the state of return value;
BIOS console is opened or closed to be exported by serial ports.
2. a kind of method for enabling BIOS serial ports redirection by setting BMC OEM order according to claim 1, special Sign is that the BIOS accesses the GPIO of BMC by the equipment iLPC2AHB of SuperIO, to obtain the mode bit of current GPIO.
3. a kind of method for enabling BIOS serial ports redirection by setting BMC OEM order according to claim 1, special Sign is, it is described open or close BIOS console and exported by serial ports executed by Ipmitool tool command.
It is redirected 4. one kind according to claim 1 to 3 enables BIOS serial ports by setting BMC OEM order Method, which is characterized in that when send open BIOS console exported by serial ports instruction when, GPIO is set to 0x00, most Latter position is 0;When sending the instruction that closing BIOS console is exported by serial ports, GPIO is set to 0x01, last position is 1。
5. a kind of enable the system that BIOS serial ports redirects by setting BMC OEM order, which is characterized in that the system packet It includes:
Access GPIO module, the GPIO for BIOS access BMC;
Current state obtains module, for obtaining the current state of BIOS console output;
Condition judgment module judges whether BIOS console is opened for the state according to return value;
Module is opened or closed, is used to open or closes BIOS console and exported by serial ports.
6. a kind of system for enabling BIOS serial ports redirection by setting BMC OEM order according to claim 5, special Sign is that the BIOS accesses the GPIO of BMC by the equipment iLPC2AHB of SuperIO, to obtain the mode bit of current GPIO.
7. a kind of system for enabling BIOS serial ports redirection by setting BMC OEM order according to claim 5, special Sign is, it is described open or close BIOS console and exported by serial ports executed by Ipmitool tool command.
8. enabling BIOS serial ports by setting BMC OEM order according to one kind described in claim 5-7 any one to redirect System, which is characterized in that when send open BIOS console exported by serial ports instruction when, GPIO is set to 0x00, most Latter position is 0;When sending the instruction that closing BIOS console is exported by serial ports, GPIO is set to 0x01, last position is 1。
CN201811128671.0A 2018-09-26 2018-09-26 It is a kind of to enable the method and system that BIOS serial ports redirects by setting BMC OEM order Pending CN109358906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811128671.0A CN109358906A (en) 2018-09-26 2018-09-26 It is a kind of to enable the method and system that BIOS serial ports redirects by setting BMC OEM order

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811128671.0A CN109358906A (en) 2018-09-26 2018-09-26 It is a kind of to enable the method and system that BIOS serial ports redirects by setting BMC OEM order

Publications (1)

Publication Number Publication Date
CN109358906A true CN109358906A (en) 2019-02-19

Family

ID=65347828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811128671.0A Pending CN109358906A (en) 2018-09-26 2018-09-26 It is a kind of to enable the method and system that BIOS serial ports redirects by setting BMC OEM order

Country Status (1)

Country Link
CN (1) CN109358906A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463083A (en) * 2020-12-11 2021-03-09 苏州浪潮智能科技有限公司 Remote collection method and system for information of substrate control manager

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357835A (en) * 2000-12-08 2002-07-10 英业达股份有限公司 Test and processing method and device for accident stop of computer system
CN1983969A (en) * 2006-04-24 2007-06-20 华为技术有限公司 System and realization for re-directing interface network
CN202257551U (en) * 2011-10-14 2012-05-30 深圳市京华科讯科技有限公司 Serial port redirecting system
CN102521105A (en) * 2011-11-21 2012-06-27 华为技术有限公司 Output method of power on self test information, virtual machine manager and processor
US20130205047A1 (en) * 2004-08-30 2013-08-08 Lantronix, Inc. Secure Communication Port Redirector
CN103678214A (en) * 2013-11-29 2014-03-26 青岛海信电器股份有限公司 Method for redirecting system console and display equipment
US20160170786A1 (en) * 2014-12-15 2016-06-16 Vmware, Inc. Dynamically managing a serial port interface of virtualization software
US20160364243A1 (en) * 2015-06-10 2016-12-15 Dell Products, L.P. Out-of-band (oob) real-time inventory and configuration of original equipment manufacturer (oem) devices using advanced configuration and power interface (acpi) and unified extensible firmware interface (uefi) services
CN106445762A (en) * 2016-08-29 2017-02-22 广州视源电子科技股份有限公司 Whole machine equipment debugging method and system
CN106556752A (en) * 2015-09-25 2017-04-05 鸿富锦精密工业(武汉)有限公司 GPIO interface circuit for detecting
CN107133185A (en) * 2017-04-19 2017-09-05 深圳市同泰怡信息技术有限公司 The method and mainboard of PCIE device warm connection function are realized by BIOS
CN107168904A (en) * 2017-05-10 2017-09-15 郑州云海信息技术有限公司 A kind of TCM control systems and method based on BMCSPI interfaces
CN107526593A (en) * 2017-08-28 2017-12-29 大唐高鸿信安(浙江)信息科技有限公司 BMC customizing functions methods based on dynamic link library
CN107885624A (en) * 2017-10-10 2018-04-06 曙光信息产业(北京)有限公司 Control the method, apparatus and server of BIOS Debugging message output
CN107908508A (en) * 2017-10-10 2018-04-13 曙光信息产业(北京)有限公司 The method, apparatus and server of control BIOS Debugging message output in real time

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357835A (en) * 2000-12-08 2002-07-10 英业达股份有限公司 Test and processing method and device for accident stop of computer system
US20130205047A1 (en) * 2004-08-30 2013-08-08 Lantronix, Inc. Secure Communication Port Redirector
CN1983969A (en) * 2006-04-24 2007-06-20 华为技术有限公司 System and realization for re-directing interface network
CN202257551U (en) * 2011-10-14 2012-05-30 深圳市京华科讯科技有限公司 Serial port redirecting system
CN102521105A (en) * 2011-11-21 2012-06-27 华为技术有限公司 Output method of power on self test information, virtual machine manager and processor
CN103678214A (en) * 2013-11-29 2014-03-26 青岛海信电器股份有限公司 Method for redirecting system console and display equipment
US20160170786A1 (en) * 2014-12-15 2016-06-16 Vmware, Inc. Dynamically managing a serial port interface of virtualization software
US20160364243A1 (en) * 2015-06-10 2016-12-15 Dell Products, L.P. Out-of-band (oob) real-time inventory and configuration of original equipment manufacturer (oem) devices using advanced configuration and power interface (acpi) and unified extensible firmware interface (uefi) services
CN106556752A (en) * 2015-09-25 2017-04-05 鸿富锦精密工业(武汉)有限公司 GPIO interface circuit for detecting
CN106445762A (en) * 2016-08-29 2017-02-22 广州视源电子科技股份有限公司 Whole machine equipment debugging method and system
CN107133185A (en) * 2017-04-19 2017-09-05 深圳市同泰怡信息技术有限公司 The method and mainboard of PCIE device warm connection function are realized by BIOS
CN107168904A (en) * 2017-05-10 2017-09-15 郑州云海信息技术有限公司 A kind of TCM control systems and method based on BMCSPI interfaces
CN107526593A (en) * 2017-08-28 2017-12-29 大唐高鸿信安(浙江)信息科技有限公司 BMC customizing functions methods based on dynamic link library
CN107885624A (en) * 2017-10-10 2018-04-06 曙光信息产业(北京)有限公司 Control the method, apparatus and server of BIOS Debugging message output
CN107908508A (en) * 2017-10-10 2018-04-13 曙光信息产业(北京)有限公司 The method, apparatus and server of control BIOS Debugging message output in real time

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463083A (en) * 2020-12-11 2021-03-09 苏州浪潮智能科技有限公司 Remote collection method and system for information of substrate control manager
CN112463083B (en) * 2020-12-11 2023-01-06 苏州浪潮智能科技有限公司 Remote collection method and system for information of substrate control manager

Similar Documents

Publication Publication Date Title
CN106484622B (en) Test method, apparatus and system
US11176030B2 (en) Conducting automated software testing using centralized controller and distributed test host servers
CN103748562B (en) Test, verifying and debugging framework
CN105074671B (en) For detecting the method and system of concurrency programming mistake in kernel module and device driver
Hussain et al. Software-defined networking: Categories, analysis, and future directions
CN103812726A (en) Automated testing method and device for data communication equipment
CN103873547B (en) Storage area network
CN112926954A (en) Cross-network government affair information exchange system and method based on artificial intelligent robot
CN110134447A (en) The system and method for BMC immediate updating hard disk information based on operating system
CN109683964A (en) Bios software debugging control program, system and server
CN107645428A (en) A kind of automatic test approach and device
CN108733403A (en) A kind of BIOS setting methods and device
US10841171B2 (en) Method and system for virtual network service activation
CN109033805A (en) Intelligent power distribution terminal and authorization and authentication method with micro services authorization identifying function
CN109358906A (en) It is a kind of to enable the method and system that BIOS serial ports redirects by setting BMC OEM order
CN107566513A (en) Test equipment DOS environmental data collecting methods and system
CN109783026A (en) A kind of method and device of automatic configuration server RAID
CN109062752A (en) A kind of fault-tolerant automation safety detecting method of height and device of BMC
Machidon et al. Remote SoC/FPGA platform configuration for cloud applications
US20050198246A1 (en) Simulating a large number of users
CN115668895A (en) Resource configuration determining method and device of cloud service system
CN109218101B (en) Method and system for creating intelligent cooperative network group
CN106598793A (en) Test system and method based on BIOS serial port log data
CN105653423B (en) The automation collection analysis method and its system of distributed information system health status
CN106341267A (en) North interface module in multilevel network management system and information processing method thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190219

RJ01 Rejection of invention patent application after publication