CN112463229B - Method, device, equipment and product for displaying BIOS printing start information - Google Patents

Method, device, equipment and product for displaying BIOS printing start information Download PDF

Info

Publication number
CN112463229B
CN112463229B CN202011319592.5A CN202011319592A CN112463229B CN 112463229 B CN112463229 B CN 112463229B CN 202011319592 A CN202011319592 A CN 202011319592A CN 112463229 B CN112463229 B CN 112463229B
Authority
CN
China
Prior art keywords
service
information
printing
main service
starting
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.)
Active
Application number
CN202011319592.5A
Other languages
Chinese (zh)
Other versions
CN112463229A (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 Inspur 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 CN202011319592.5A priority Critical patent/CN112463229B/en
Publication of CN112463229A publication Critical patent/CN112463229A/en
Application granted granted Critical
Publication of CN112463229B publication Critical patent/CN112463229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Facsimiles In General (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention provides a method, a device, equipment and a product for displaying BIOS printing start information, wherein the method comprises the following steps: creating a main service of the print start information; initializing a serial port, and hooking a service for printing information to the serial port to a main service; initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service to a main service; when the main service is called to print information, the service hung on the main service is called at the same time, and the starting information is printed on the serial port and the VGA screen. The startup information printed on the serial port in the BIOS startup process is printed on the VGA screen, so that the BIOS printing information can be conveniently seen when no serial port line exists or the serial port information cannot be viewed. The method is easy to realize, additional hardware equipment is not required to be provided, system resources are not occupied on software, and maintainability of the server system is improved.

Description

Method, device, equipment and product for displaying BIOS printing start information
Technical Field
The invention relates to the technical field of a basic input and output system of a server and a substrate manager, in particular to a method, a device, equipment and a product for displaying BIOS printing start information.
Background
In the server system, a south bridge (PCH) LPC bus is connected with an LPC interface of a baseboard manager BMC, and a universal asynchronous receiver/transmitter (UART/serial port) in the BMC receives an IO read-write request of an appointed address on the LPC bus and outputs character information to a physical serial port. The BIOS prints characters to the serial port for indicating startup information by reading and writing input/output port registers (IO) of the designated address.
The EARLY VIDEO is a technology which is applied more on the current server, a VGA display controller is generally stored in a BMC chip of the server, the BMC is connected with a CPU through a PCIE bus, the BIOS puts the action in an OPTION ROM for initializing the BMC VGA into the EARLY stage of BIOS starting in advance, the BIOS finishes the most basic initialization of the EARLY stage after starting, the BIOS can write data on a specified section of VIDEO BUFFER address according to a certain format after the initialization is finished and can display the data, the screen display is not required to be lightened after most hardware of BIOS initialization is finished, and the whole screen can display a plurality of pieces of character information.
However, in some cases, if the serial port line is not connected to the machine, for example, when the machine is down in a factory or on-site, the serial port line is connected again, since the serial port does not have a function of storing history information, the history information of the serial port cannot be checked, and the history information of the serial port needs to be checked in other ways to know the running state of the system, it is necessary to adopt other methods instead.
In a common method, a serial port line is connected to a machine through a BMC SOL mode or directly, BIOS starting information printed on a serial port is stored by using serial port software on an upper computer, and the method is complex and cannot meet the requirements in some scenes. In the conventional BIOS method, characters are printed on a serial port after the BIOS is started for indicating starting information; after the EARLY VIDEO is initialized, only the designated information is printed on the screen to indicate the starting state stage, and the two methods are unrelated. When the machine has no serial port line or cannot check serial port information, the historical serial port information printed by the BIOS cannot be seen from the VGA screen.
Disclosure of Invention
Aiming at the problem that in the existing BIOS method, characters are printed on a serial port after starting to indicate starting information; after the EARLY VIDEO is initialized, only the specified information is printed on the screen to indicate the starting state stage, and the two methods are unrelated. The invention provides a method, a device, equipment and a product for displaying BIOS printing starting information, and solves the problem that historical serial port information printed by a BIOS cannot be seen from a VGA screen when a machine has no serial port line or cannot view the serial port information.
The technical scheme of the invention is as follows:
in a first aspect, a technical solution of the present invention provides a method for displaying BIOS print start information, including the steps of:
creating a main service of the printing start information;
initializing a serial port, and hooking a service for printing information to the serial port to a main service;
initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service to a main service;
when the main service is called to print information, the service hung on the main service is called at the same time, and the starting information is printed on the serial port and the VGA screen.
Further, the service of printing information to the serial port is a first service; the service of printing information to the VGA display controller is a second service;
when the main service is called to print information, the service hung on the main service is called at the same time, and the step of printing the starting information to the serial port and the VGA screen comprises the following steps:
judging whether the BIOS starting reaches a PCI bus scanning stage within a set first threshold time;
if not, judging whether to call the main service printing information or not, and printing the starting information according to the judgment result;
if so, removing the second service hooked on the main service; calling a VGA code file to initialize and set the VGA again; and judging whether the BIOS starting stage reaches the PCI bus scanning stage or not, and calling main service printing information according to the judgment result.
Wherein, the step of judging whether to call the main service printing information and printing the starting information according to the judgment result comprises:
judging whether to call main service printing information;
if so, calling the main service printing information, judging whether the corresponding service mounted on the main service exists, calling the service mounted on the main service according to the judgment result, and printing the starting information;
if not, executing the following steps: and judging whether the BIOS starting reaches the PCI bus scanning stage within the set first threshold time.
The steps of judging whether the BIOS starting stage has reached the PCI bus scanning stage and calling the main service printing information according to the judgment result comprise:
judging whether the BIOS starting reaches the PCI bus scanning stage;
if not, executing the following steps: judging whether to call the main service printing information or not, and printing the starting information according to a judgment result;
if so, generating a third service, and hooking the third service to the main service; judging whether to call the main service printing information or not, printing starting information according to a judgment result, and after printing is finished, if BIOS starting is finished, closing the first service, the third service and the main service; wherein, the third service is a new service for printing information to the VGA display controller.
Further, calling the main service printing information, judging whether the corresponding service mounted on the main service exists, and calling the service mounted on the main service according to the judgment result, wherein the printing starting information includes:
starting a main service;
if the first service exists, executing the first service, and printing starting information to the serial port;
if the first service does not exist, judging whether a second service exists, if so, executing the second service, and printing starting information to a VGA screen; and if the second service does not exist, exiting the main service.
Further, calling the main service printing information, judging whether the corresponding service mounted on the main service exists, and calling the service mounted on the main service according to the judgment result, wherein the step of printing the start information further includes:
starting a main service;
if the first service exists, executing the first service, and printing starting information to the serial port;
if the first service does not exist, judging whether a third service exists, if so, executing the third service, and printing starting information to a VGA screen; and if the third service does not exist, exiting the main service.
In a second aspect, the present invention provides a device for displaying BIOS print start information, including a main service creation module, a serial port initialization module, a register initialization module, and a print module;
a main service creation module for creating a main service of the print start information;
the serial port initialization module is used for initializing a serial port and hooking a service for printing information to the serial port to a main service;
the register initialization module is used for initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service for printing information to the VGA display controller to the main service;
and the printing module is used for calling the services hung on the main service and printing the starting information to the serial port and the VGA screen when calling the main service to print the information.
Further, the service of printing information to the serial port is a first service and a second service; the service of printing information to the VGA display controller is a second service; the printing module comprises a starting stage judging unit, a printing judging unit, a calling printing unit and a removing unit;
the starting stage judging unit is used for judging whether the BIOS starting reaches the PCI bus scanning stage within the set first threshold time;
the printing judging unit is used for judging whether to call the main service printing information when the BIOS starts up and does not reach the PCI bus scanning stage within the set first threshold time, and if so, outputting the information to the calling printing unit; if not, outputting information to a starting stage judging unit; the BIOS is also used for outputting information to the removing unit when the BIOS is started and reaches the PCI bus scanning stage within the set first threshold time;
the calling printing unit is used for calling the main service printing information, calling the first service and the second service in sequence and printing the starting information to the serial port and the VGA screen;
and the removing unit is used for removing the second service hooked on the main service.
Further, the device also comprises a processing module; the printing module also comprises an initialization setting unit and a generating unit;
the initialization setting unit is used for calling the VGA code file to re-initialize and set the VGA;
the printing judging unit is also used for judging whether the BIOS starting reaches the PCI bus scanning stage; if not, outputting information to a printing judgment unit; if yes, outputting information to a generating unit;
the generating unit is used for generating a third service and hooking the third service to the main service; the third service is a new service for printing information to the VGA display controller;
the starting stage judging unit is also used for judging whether the BIOS is started or not, and if so, outputting information to the processing module;
and the processing module is used for closing the first service, the third service and the main service after the BIOS is started.
Further, a printing unit is called, and is specifically used for starting the main service; judging whether the first service exists, if so, executing the first service, and printing starting information to the serial port; if not, judging whether a second service exists, if so, executing the second service, and printing starting information to a VGA screen; if not, quitting the main service; it is also specifically used for starting the main service; judging whether the first service exists, if so, executing the first service, and printing starting information to the serial port; if not, judging whether a third service exists, if so, executing the third service, and printing starting information to a VGA screen; if not, exiting the main service.
In a third aspect, the present invention further provides an electronic device, including a memory and a processor, where the memory and the processor complete communication with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to enable execution of the method of displaying BIOS print launch information according to the first aspect.
In a fourth aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method for displaying BIOS print boot information according to the first aspect.
After the server is started, the BIOS generates a main service of printing start information, firstly initializes the serial port, and connects the service of printing information to the serial port to the main service; initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller, and connecting the service for printing information to the VGA display controller to a main service; after the completion, when the subsequent BIOS calls the main service printing information, the service of printing the information to the serial port and the service of printing the information to the VGA display controller are called at the same time, and the starting information is printed on the serial port and the VGA screen.
According to the technical scheme, the invention has the following advantages: the startup information printed on the serial port in the BIOS startup process is printed on the VGA screen, so that the BIOS printing information can be conveniently seen when no serial port line exists or the serial port information cannot be checked. The method is easy to realize, additional hardware equipment is not required to be provided, system resources are not occupied on software, and maintainability of the server system is improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic flow diagram of a method of one embodiment of the invention.
Fig. 3 is a schematic block diagram of an apparatus of one embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The following explains key terms appearing in the present invention.
BIOS, basic Input and Output System, basic Input Output System;
BMC, baseboard Management Controller, baseboard manager;
UART, universal Asynchronous Receiver/Transmiter, universal Asynchronous reception
The sending device is also known as a serial port;
PCH, platform Controller Hub, i.e., south bridge on computer motherboard;
LPC, low Pin Count, a computer communication bus;
VGA, video Graphics Array, a display interface;
option ROM, a file containing binary execution code, wrapped in BIOS or located in
On the card, the BIOS calls and initializes PCIE equipment and the like when executing;
the BDS, a stage in the BIOS starting process, and the PCI BUS SCAN sets an action of PCIE equipment in the system for BIOS scanning.
As shown in fig. 1, an embodiment of the present invention provides a method for displaying BIOS print start information, including the following steps:
s1: creating a main service of the print start information;
s2: initializing a serial port, and hooking a service for printing information to the serial port to a main service;
s3: initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service to a main service;
s4: when the main service is called to print information, the service hung on the main service is called to print starting information to the serial port and the VGA screen.
It should be noted that, the definition: the service of printing information to the serial port is a first service; the service of printing information to the VGA display controller is the second service.
As shown in fig. 2, in some embodiments, in step S4, when the main service is called to print information, the service hung on the main service is called at the same time, and the step of printing the start information on the serial port and the VGA screen includes:
s41: judging whether the BIOS starting reaches a PCI bus scanning stage within a set first threshold time;
if not, executing step S42; if yes, go to step S44;
s42: judging whether to call the main service printing information, if so, executing step S43; if not, executing step S41;
s43: calling main service printing information, calling a first service and a second service in sequence, and printing starting information on a serial port and a VGA screen; executing step S41;
s44: removing the second service hooked on the main service;
s45: calling a VGA code file to initialize and set the VGA again;
s46: judging whether the BIOS starting reaches the PCI bus scanning stage; if not, executing step S47; if yes, go to step S49;
s47: judging whether to call the main service printing information, if so, executing step S48; if not, executing step S46;
s48: calling main service printing information, calling a first service, and printing starting information to a serial port; executing step S46;
s49: generating a third service, and attaching the third service to the main service; the third service is a new service for printing information to the VGA display controller;
s50: judging whether to call main service printing information, if so, executing step S51; if not, executing step S52;
s51: calling main service printing information, calling a first service and a third service in sequence, and printing starting information on a serial port and a VGA screen;
s52: judging whether the BIOS is started or not, if so, executing step S53; if not, executing step S50;
s53: the first service, the third service and the main service are closed.
In some embodiments, the step S43 of calling the main service print information to call the first service and the second service in turn, and the step of printing the start information on the serial port and the VGA screen includes:
s431: starting a main service;
s432: judging whether the first service exists, if so, executing step S433; if not, go to step S434;
s433: executing a first service, and printing starting information to a serial port; step S434 is performed;
s434: judging whether the second service exists, if so, executing step S435; if not, go to step S436;
s435: executing a second service, and printing the starting information to the VGA screen; step S436 is performed;
s436: and exiting the main service.
In some embodiments, in step S51, the step of calling the main service printing information, and calling the first service and the third service in turn, and the step of printing the start information on the serial port and the VGA screen includes:
s511: starting a main service;
s512: judging whether the first service exists, if so, executing step S513; if not, go to step S514;
s513: executing a first service, and printing starting information to a serial port; step S514 is executed;
s514: judging whether the third service exists, if yes, executing step S515; if not, go to step S516;
s515: executing a third service, and printing the starting information to the VGA screen; step S516 is executed;
s516: and exiting the main service.
After a server is started, a BIOS generates a main service (hereinafter referred to as main service) for printing start information, firstly, a serial port is initialized, and a service (hereinafter referred to as first service) for printing information to the serial port is connected to the main service; initializing a register related to the BMC VGA, generating a service (hereinafter referred to as a second service) for printing information to the EARLY VIDEO, and hooking the second service to the main service; after the completion, when the subsequent BIOS calls the main service printing information, the first service and the second service are called at the same time, and the starting information is printed on the serial port and the VGA screen.
When the BIOS is started and reaches the PCI BUS SCAN phase (BDS PCI BUS SCAN phase), the BIOS calls the OPTION ROM of the BMC VGA to initialize the VGA again, and the initialization action conflicts with the initialized parameters of the EARLY VIDEO, so that the second service needs to be removed from the main service before the BDS PCI BUS SCAN phase. After the BDS PCI BUS SCAN phase, a new service (hereinafter referred to as a third service) for printing information to the VGA display controller needs to be attached to the main service. The third service, the first service and the main service are closed before the BIOS completes the boot process and passes control to the OS.
As shown in fig. 3, the technical solution of the present invention provides a device for displaying BIOS printing start information, including a main service creation module, a serial port initialization module, a register initialization module, and a printing module;
a main service creation module for creating a main service of the print start information;
the serial port initialization module is used for initializing a serial port and hooking a service for printing information to the serial port to a main service;
the register initialization module is used for initializing a BMC VGA related register, generating a service for printing information to the VGA display controller and hooking the service for printing information to the VGA display controller to a main service;
and the printing module is used for calling the services hung on the main service and printing the starting information to the serial port and the VGA screen when calling the main service to print the information.
In some embodiments, the service for printing the information to the serial port is a first service; the service of printing information to the VGA display controller is a second service; the printing module comprises a starting stage judging unit, a printing judging unit, a calling printing unit and a removing unit;
the starting stage judging unit is used for judging whether the BIOS starting reaches the PCI bus scanning stage within the set first threshold time;
the printing judging unit is used for judging whether to call the main service printing information when the BIOS starts up and does not reach the PCI bus scanning stage within the set first threshold time, and if so, outputting the information to the calling printing unit; if not, outputting information to a starting stage judging unit; the BIOS is also used for outputting information to the removing unit when the BIOS is started and reaches the PCI bus scanning stage within the set first threshold time;
the calling printing unit is used for calling the main service printing information, calling the first service and the second service in sequence and printing the starting information to the serial port and the VGA screen;
and the removing unit is used for removing the second service hooked on the main service.
In some embodiments, the apparatus further comprises a processing module; the printing module also comprises an initialization setting unit and a generating unit;
the initialization setting unit is used for calling the VGA code file to re-initialize and set the VGA;
the printing judging unit is also used for judging whether the starting of the BIOS reaches the PCI bus scanning stage; if not, outputting information to a printing judgment unit; if yes, outputting information to a generating unit;
the generating unit is used for generating a third service and hooking the third service to the main service; the third service is a new service for printing information to the VGA display controller;
the starting stage judging unit is also used for judging whether the BIOS is started or not, and if so, outputting information to the processing module;
and the processing module is used for closing the first service, the third service and the main service after the BIOS is started.
In some embodiments, the printing unit is invoked, in particular for starting the main service; judging whether the first service exists, if so, executing the first service, and printing starting information to the serial port; if not, judging whether a second service exists, if so, executing the second service, and printing starting information to a VGA screen; if not, quitting the main service; it is also specifically used for starting the main service; judging whether the first service exists, if so, executing the first service, and printing starting information to the serial port; if not, judging whether a third service exists, if so, executing the third service, and printing starting information to a VGA screen; if not, exiting the main service.
After the server is started, the BIOS generates a main service of printing start information, firstly initializes the serial port, and connects the service of printing information to the serial port to the main service; initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller, and connecting the service for printing information to the VGA display controller to a main service; after the completion, when the subsequent BIOS calls the main service printing information, the service of printing the information to the serial port and the service of printing the information to the VGA display controller are called at the same time, and the starting information is printed on the serial port and the VGA screen.
As shown in fig. 4, an embodiment of the present invention provides an electronic device, which may include: the system comprises a processor (processor), a communication Interface (communication Interface), a memory (memory) and a bus, wherein the processor, the communication Interface and the memory are communicated with each other through the bus. The bus may be used for information transfer between the electronic device and the sensor. The processor may call logic instructions in memory to perform the following method: s1: creating a main service of the print start information; s2: initializing a serial port, and hooking a service for printing information to the serial port to a main service; s3: initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service to a main service; s4: when the main service is called to print information, the service hung on the main service is called to print starting information to the serial port and the VGA screen.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention also provide a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of the above method embodiments, for example, comprising: s1: creating a main service of the print start information; s2: initializing a serial port, and hooking a service for printing information to the serial port to a main service; s3: initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service to a main service; s4: when the main service is called to print information, the service hung on the main service is called to print starting information to the serial port and the VGA screen.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (5)

1. A method for displaying BIOS printing start information is characterized by comprising the following steps:
creating a main service of the printing start information;
initializing a serial port, and hooking a service for printing information to the serial port to a main service;
initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service to a main service;
when the main service printing information is called, the service hung on the main service is called at the same time, and the starting information is printed on the serial port and the VGA screen;
the service of printing information to the serial port is a first service; the service of printing information to the VGA display controller is a second service; when the main service is called to print information, the service hung on the main service is called at the same time, and the step of printing the starting information to the serial port and the VGA screen comprises the following steps:
judging whether the BIOS starting reaches a PCI bus scanning stage within a set first threshold time;
if not, judging whether to call the main service printing information or not; if so, calling the main service printing information, judging whether the corresponding service mounted on the main service exists, calling the service mounted on the main service according to the judgment result, and printing the starting information; if not, executing the steps: judging whether the BIOS starting reaches a PCI bus scanning stage within a set first threshold time;
if so, removing the second service hooked on the main service; calling a VGA code file to initialize and set the VGA again; judging whether the starting of the BIOS reaches the PCI bus scanning stage or not, and calling main service printing information according to the judgment result;
calling main service printing information, judging whether a corresponding service mounted on the main service exists or not, and calling the service mounted on the main service according to a judgment result, wherein the step of printing starting information comprises the following steps:
starting a main service;
if the first service exists, executing the first service, and printing starting information to the serial port;
if the first service does not exist, judging whether a second service exists, if so, executing the second service, and printing starting information to a VGA screen; and if the second service does not exist, exiting the main service.
2. The method of claim 1, wherein the step of determining whether the BIOS boot has reached the PCI bus scan stage and invoking the main service print information according to the determination comprises:
judging whether the BIOS starting reaches the PCI bus scanning stage;
if not, executing the following steps: judging whether to call the main service printing information or not, and printing the starting information according to a judgment result;
if so, generating a third service, and hooking the third service to the main service; judging whether to call the main service printing information or not, printing starting information according to a judgment result, and after printing is finished, if BIOS starting is finished, closing the first service, the third service and the main service; wherein the third service is a new service for printing information to the VGA display controller.
3. The method of claim 2, wherein the step of calling the main service print information, judging whether a corresponding service mounted on the main service exists, and calling the service mounted on the main service according to the judgment result, the step of printing the start information further comprises:
starting a main service;
if the first service exists, executing the first service, and printing starting information to the serial port;
if the first service does not exist, judging whether a third service exists, if so, executing the third service, and printing starting information to a VGA screen; and if the third service does not exist, exiting the main service.
4. A device for displaying BIOS printing start information is characterized by comprising a main service establishing module, a serial port initializing module, a register initializing module and a printing module;
a main service creation module for creating a main service of the print start information;
the serial port initialization module is used for initializing a serial port and hooking a service for printing information to the serial port to a main service;
the register initialization module is used for initializing a register related to the BMC VGA, generating a service for printing information to the VGA display controller and hooking the service for printing information to the VGA display controller to the main service;
the printing module is used for calling the main service to print information, calling the service hung on the main service at the same time, and printing the starting information to the serial port and the VGA screen;
the service of printing information to the serial port is a first service; the service of printing information to the VGA display controller is a second service; the printing module comprises a starting stage judging unit, a printing judging unit, a calling printing unit and a removing unit;
the starting stage judging unit is used for judging whether the BIOS starting reaches the PCI bus scanning stage within the set first threshold time;
the printing judging unit is used for judging whether to call the main service printing information when the BIOS starts up and does not reach the PCI bus scanning stage within the set first threshold time, and if so, outputting the information to the calling printing unit; if not, outputting information to a starting stage judging unit; the BIOS is also used for outputting information to the removing unit when the BIOS is started and reaches the PCI bus scanning stage within the set first threshold time;
the calling printing unit is used for calling the main service printing information, calling the first service and the second service in sequence and printing the starting information to the serial port and the VGA screen;
and the removing unit is used for removing the second service hooked on the main service.
5. An electronic device is characterized by comprising a memory and a processor, wherein the memory and the processor are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method of displaying BIOS print initiation information as claimed in any one of claims 1 to 3.
CN202011319592.5A 2020-11-23 2020-11-23 Method, device, equipment and product for displaying BIOS printing start information Active CN112463229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011319592.5A CN112463229B (en) 2020-11-23 2020-11-23 Method, device, equipment and product for displaying BIOS printing start information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011319592.5A CN112463229B (en) 2020-11-23 2020-11-23 Method, device, equipment and product for displaying BIOS printing start information

Publications (2)

Publication Number Publication Date
CN112463229A CN112463229A (en) 2021-03-09
CN112463229B true CN112463229B (en) 2023-01-10

Family

ID=74799633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011319592.5A Active CN112463229B (en) 2020-11-23 2020-11-23 Method, device, equipment and product for displaying BIOS printing start information

Country Status (1)

Country Link
CN (1) CN112463229B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868149A (en) * 2016-03-24 2016-08-17 杭州昆海信息技术有限公司 A serial port information transmission method and device
CN109032678A (en) * 2018-07-18 2018-12-18 郑州云海信息技术有限公司 The method for controlling the method, apparatus of BIOS type information amount, medium and type information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868149A (en) * 2016-03-24 2016-08-17 杭州昆海信息技术有限公司 A serial port information transmission method and device
CN109032678A (en) * 2018-07-18 2018-12-18 郑州云海信息技术有限公司 The method for controlling the method, apparatus of BIOS type information amount, medium and type information

Also Published As

Publication number Publication date
CN112463229A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN109960541B (en) Method, apparatus and computer storage medium for starting an applet
US20040078679A1 (en) Autonomous boot failure detection and recovery
CN111708662B (en) Debugging method and device
CN112200712B (en) GLES image rendering method and device, storage medium and computer equipment
CN116662038B (en) Industrial information detection method, device, equipment and medium based on shared memory
CN113867814A (en) Method and device for realizing multi-type restarting of server based on UEFI (unified extensible firmware interface)
CN110688235B (en) System and method for sharing wireless connection information between UEFI firmware and OS
CN112463229B (en) Method, device, equipment and product for displaying BIOS printing start information
US20050223207A1 (en) Method and apparatus for remote flashing of a bios memory in a data processing system
CN111309407B (en) Processing method and device for integrated third party library
CN116775413A (en) PCIE topology scanning method, device, equipment and readable storage medium
CN117407065A (en) Network card pre-start control method, device, equipment, system and storage medium
CN114691223B (en) Method and device for transmitting BIOS logs through network
CN116610336A (en) Firmware upgrading method, system, device and readable storage medium
CN110750472A (en) Method and device for converting INT interruption into MSI interruption and storage medium
CN114461471A (en) Method, device and medium for judging PCIE link training process state
CN111709030B (en) Trusted platform module board card
CN112799623A (en) BMC-based server interface remote display method, system and related equipment
CN114924802B (en) System starting method, device equipment and medium based on BMC and BIOS
CN117331723B (en) ARM safety firmware configuration method and device applied to ARM server
CN112596925B (en) Transaction data transmission method and device
CN114579195B (en) Operating system restarting method, system and related components
CN111142979B (en) Application program running method, device, computer equipment and storage medium
CN113094714B (en) Method and device for detecting storage isolation of virtualization platform
CN111966537A (en) Debugging method, device, equipment and product for loading BIOS by USB

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