CN111399921A - Switching method, device and equipment for server boot logo - Google Patents
Switching method, device and equipment for server boot logo Download PDFInfo
- Publication number
- CN111399921A CN111399921A CN202010176113.2A CN202010176113A CN111399921A CN 111399921 A CN111399921 A CN 111399921A CN 202010176113 A CN202010176113 A CN 202010176113A CN 111399921 A CN111399921 A CN 111399921A
- Authority
- CN
- China
- Prior art keywords
- logo
- switching
- command
- boot
- server
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012790 confirmation Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 3
- 230000009191 jumping Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a switching method of server boot logo, which is applied to BIOS, the method adds a plurality of boot logos in a BIOS code file, and the boot logos are compiled in advance, in the actual application process, a target boot logo is determined according to a switching instruction sent by BMC, and the server can be switched to the target boot logo by restarting. The switching process is simple, the BIOS code files do not need to be updated, the switching time is saved, the problem of server downtime caused by frequent updating of the BIOS code files is avoided, and the system stability is improved. In addition, the application also provides a switching device, equipment and a readable storage medium for the server startup logo, and the technical effect of the switching device and the equipment corresponds to that of the method.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for switching a server boot logo.
Background
At present, if a boot logo of a server is to be switched, a new logo picture needs to be used in a BIOS code to replace an original logo picture, then the BIOS code is recompiled, the new picture is compiled into a BIOS file, the BIOS file is updated on the server finally, and the server is restarted to enable the new L ogo picture to take effect.
Therefore, the switching scheme of the boot L ogo is very complicated, the BIOS file needs to be updated, and if a problem occurs in the updating process of the BIOS file, a server may be down, which brings inconvenience to users.
In summary, how to reduce the complexity of the server startup logo switching process and avoid the risk brought by the switching process is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a switching method, a device, equipment and a readable storage medium for a server startup logo, and the switching method, the device and the readable storage medium are used for solving the problems that the existing server startup logo switching scheme is complicated in process, a BIOS file needs to be updated, and a lot of risks are brought to a server. The specific scheme is as follows:
in a first aspect, the present application provides a method for switching a server boot logo, which is applied to a BIOS, and includes:
receiving a switching command sent by the BMC;
determining a corresponding target startup logo in a BIOS code file according to the switching command, wherein the BIOS code file comprises a plurality of precompiled startup logos;
and restarting the server to display the target startup logo.
Preferably, the receiving of the switching command sent by the BMC includes:
receiving an IPMI command sent by a BMC;
judging whether the IPMI command contains a predetermined switching parameter or not;
if yes, determining the IPMI command as a switching command.
Preferably, the receiving of the switching command sent by the BMC includes:
receiving a switching command sent by the BMC, wherein the switching command comprises identification information of a target starting logo;
correspondingly, the determining a corresponding target boot logo in a BIOS code file according to the switching command, where the BIOS code file includes a plurality of pre-compiled boot logos, and includes:
and determining a corresponding target startup logo in a BIOS code file according to the identification information in the switching command, wherein the BIOS code file comprises a plurality of pre-compiled startup logos and identification information of each startup logo.
Preferably, the receiving a switching command sent by the BMC, where the switching command includes identification information of a target boot logo, includes:
receiving a switching command sent by the BMC, wherein the switching command comprises a 16-system number of a target starting logo;
correspondingly, the determining a corresponding target boot logo in a BIOS code file according to the switching command, where the BIOS code file includes a plurality of pre-compiled boot logos, and includes:
and determining a corresponding target boot logo in a BIOS code file according to the 16-system number in the switching command, wherein the BIOS code file comprises a plurality of pre-compiled boot logos and the 16-system number of each boot logo.
Preferably, the determining a target boot logo corresponding to the BIOS code file according to the switching command includes:
judging whether a corresponding target startup logo exists in the BIOS code file or not according to the switching command;
if so, determining the target starting logo;
and if not, generating prompt information of switching failure.
Preferably, the restarting the server to display the target boot logo includes:
generating restart prompt information;
and restarting the server at the target time node according to the restart confirmation instruction so as to display the target startup logo.
In a second aspect, the present application provides a switching device for a server boot logo, applied to a BIOS, including:
a command receiving module: the system comprises a BMC and a controller, wherein the BMC is used for receiving a switching command sent by the BMC;
a target determination module: the switching unit is used for determining a corresponding target startup logo in a BIOS code file according to the switching command, wherein the BIOS code file comprises a plurality of pre-compiled startup logos;
and a restarting module: and the server is restarted to display the target startup logo.
Preferably, the command receiving module includes:
a command receiving unit: the IPMI command is used for receiving the IPMI command sent by the BMC;
an order judgment unit: the IPMI command is used for judging whether the IPMI command contains a predetermined switching parameter or not;
a command determination unit: the IPMI command is determined to be a switch command when the IPMI command is determined to contain a pre-agreed switch parameter.
In a third aspect, the present application provides a switching device for a server boot logo, including:
a memory: for storing a computer program;
a processor: the method is used for executing the computer program to realize the steps of the switching method of the server startup logo.
In a fourth aspect, the present application provides a readable storage medium, on which a computer program is stored, where the computer program is used to implement the steps of the switching method for a server boot logo described above when executed by a processor.
The switching method of the server boot logo provided by the application is applied to a BIOS and comprises the following steps: receiving a switching command sent by the BMC; determining a corresponding target startup logo in a BIOS code file according to the switching command, wherein the BIOS code file comprises a plurality of pre-compiled startup logos; and restarting the server to display the target startup logo. Therefore, in the method, a plurality of boot-up logos are added in the BIOS code file and are compiled in advance, in the actual application process, the target boot-up logo is determined according to the switching instruction sent by the BMC, and the server can be switched to the target boot-up logo by restarting. The switching process is simple, the BIOS code files do not need to be updated, the switching time is saved, the problem of server downtime caused by frequent updating of the BIOS code files is avoided, and the system stability is improved.
In addition, the application also provides a switching device, equipment and a readable storage medium for the server startup logo, and the technical effect of the switching device, the equipment and the readable storage medium correspond to the technical effect of the method, and the details are not repeated.
Drawings
For a clearer explanation of the embodiments or technical solutions of the prior art of the present application, the drawings needed for the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first implementation of a method for switching a server boot logo according to an embodiment of the present disclosure;
fig. 2 is a first flowchart of a second embodiment of a method for switching a server boot logo according to the present application;
fig. 3 is a functional block diagram of an embodiment of a switching device for a server boot logo according to the present disclosure;
fig. 4 is a structural embodiment of an embodiment of a switching device for a server boot logo according to the present application.
Detailed Description
The core of the application is to provide a method, a device, equipment and a readable storage medium for switching the server boot logo, a plurality of boot logos are added in a BIOS code file in advance, a target boot logo can be determined after a switching instruction of BMC is received, the server is restarted to switch to the target boot logo, the switching process is simple and easy, the BIOS code file does not need to be updated, the switching time is saved, and the system stability is improved.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application 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 application.
Referring to fig. 1, a first embodiment of a method for switching a server boot logo provided in the present application is described below, where the embodiment is applied to a BIOS, and includes:
s101, receiving a switching command sent by BMC;
s102, determining a corresponding target startup logo in a BIOS code file according to the switching command, wherein the BIOS code file comprises a plurality of startup logos which are compiled in advance;
and S103, restarting the server to display the target boot logo.
The BIOS (Basic Input Output System) is a set of programs that are fixed on a ROM chip on a main board in a computer, and stores the most important Basic Input and Output programs of the computer, a self-test program after power-on, and a System self-start program, and can read and write specific information set by the System from the CMOS. Its primary function is to provide the lowest level, most direct hardware setup and control for the computer. In addition, the BIOS provides some system parameters to the operating system.
The BMC (Baseboard Management Controller) is used to implement a series of monitoring and controlling functions, and the operation objects are system hardware, such as monitoring temperature, voltage, fan, power supply, etc. of the system, and perform corresponding adjustment work to ensure that the system is in a healthy state. And the system is also used for recording information and log records of various hardware and prompting a user and positioning of subsequent problems.
Only one boot logo exists in a traditional BIOS code file, and a plurality of boot logos are added in the BIOS code file in advance and are compiled. For convenience of description, the identification information of each startup logo can be recorded in the BIOS code file, and the startup logos correspond to one another.
In addition, commands between the BIOS and the BMC are negotiated in advance, and a switching command for switching the boot logo is determined. Specifically, the switching command includes a switching parameter indicating that the command is used to switch the boot logo, and may further include identification information of a target boot logo to which switching is expected.
In practical application, the BIOS receives a switching command sent by the BMC, determines a target startup logo to be switched to according to the switching command, finally restarts the server, displays the target startup logo, and realizes switching the startup logo of the server to the target startup logo.
In a specific embodiment, the BMC sends an IPMI command to the BIOS, and the BIOS determines whether the IPMI command includes a switch parameter after receiving the IPMI command, and if so, determines that the IPMI command is a switch command. And then, judging whether a target startup logo to be switched exists in the BIOS code file according to the switching command, if so, continuing the subsequent flow, and otherwise, generating prompt information of switching failure.
It should be noted that, in practical applications, the time for restarting the server may be determined according to practical requirements. For example, after the target startup logo to be switched is determined, the operation of restarting the server can be executed immediately, or the restart prompt information can be generated, the target time node expected to be restarted is determined according to the selection of the user, and the operation of restarting the server is automatically executed after the preset time node is reached. The present embodiment does not limit this, and the setting may be specifically set according to actual requirements.
The method for switching the server boot logo is applied to the BIOS, and the method is characterized in that a plurality of boot logos are added into a BIOS code file and are compiled in advance, in the actual application process, a target boot logo is determined according to a switching instruction sent by the BMC, and the server can be switched to the target boot logo by restarting. The switching process is simple, the BIOS code files do not need to be updated, the switching time is saved, the problem of server downtime caused by frequent updating of the BIOS code files is avoided, and the system stability is improved.
The second embodiment of the switching method for the server boot logo provided by the present application is described in detail below, and is implemented based on the first embodiment, and is expanded to a certain extent on the basis of the first embodiment.
Specifically, in this embodiment, the 16-ary number is used as identification information of the boot logo, the 16-ary number corresponding to each boot logo is recorded in the BIOS code file in advance, and in the subsequent switching process, the target boot logo to be switched to can be directly determined according to the 16-ary number carried by the switching instruction.
Referring to fig. 2, the second embodiment specifically includes:
s201, receiving an IPMI command sent by BMC;
s202, judging whether the IPMI command contains a predetermined switching parameter; if yes, jumping to S203, otherwise, not processing;
s203, determining the IPMI command as a switching command; the switching instruction comprises a 16-system number of the target starting logo;
s204, judging whether a corresponding target boot logo exists in the BIOS code file or not according to the switching command; if not, generating prompt information of switching failure; if yes, jumping to S205;
s205, determining a corresponding target startup logo in a BIOS code file according to the 16-system number in the switching command, wherein the BIOS code file comprises a plurality of pre-compiled startup logos and the 16-system number of each startup logo;
s206, generating restart prompt information;
and S207, restarting the server at the target time node according to the restart confirmation instruction so as to display the target startup logo.
The switching scheme of the server boot L ogo in this embodiment is to add different boot logo images in a BIOS code file, and use different 16-ary numbers to represent different boot logos, where the boot logos correspond to the 16-ary numbers one to one, then the BIOS and the BMC negotiate a switching command for implementing a switching process, where the switching command includes the 16-ary number corresponding to a target boot logo, when a L ogo needs to be switched, the BMC sends the switching command, and the BIOS loads a corresponding target boot L ogo according to the 16-ary number carried by the switching command, and then the server can be switched to the target boot logo.
It can be seen that the switching method for the server boot logo provided by this embodiment is applied to the BIOS, and the switching of the boot logo is implemented by sending a switching command to the BIOS through the BMC, so that updating of BIOS code files is avoided, switching time is saved, the problem of server downtime caused by frequent updating of BIOS files is avoided, and stable operation of the system is ensured
In the following, a switching device of a server boot logo provided in an embodiment of the present application is introduced, and a switching device of a server boot logo described below and a switching method of a server boot logo described above may be referred to correspondingly.
As shown in fig. 3, the switching device for server boot logo of the present embodiment is applied to BIOS, and specifically includes:
the command receiving module 301: the system comprises a BMC and a controller, wherein the BMC is used for receiving a switching command sent by the BMC;
the goal determination module 302: the switching unit is used for determining a corresponding target startup logo in a BIOS code file according to the switching command, wherein the BIOS code file comprises a plurality of pre-compiled startup logos;
the restart module 303: and the server is restarted to display the target startup logo.
In some specific embodiments, the command receiving module includes:
a command receiving unit: the IPMI command is used for receiving the IPMI command sent by the BMC;
an order judgment unit: the IPMI command is used for judging whether the IPMI command contains a predetermined switching parameter or not;
a command determination unit: the IPMI command is determined to be a switch command when the IPMI command is determined to contain a pre-agreed switch parameter.
The switching device of the server boot logo in this embodiment is used for implementing the aforementioned switching method of the server boot logo, and therefore, a specific implementation manner of the switching device of the server boot logo in the foregoing embodiment may be seen in that the command receiving module 301, the target determining module 302, and the restarting module 303 are respectively used for implementing steps S101, S102, and S103 in the aforementioned switching method of the server boot logo. Therefore, specific embodiments thereof may be referred to in the description of the corresponding respective partial embodiments, and will not be described herein.
In addition, since the switching device of the server startup logo in this embodiment is used for implementing the aforementioned switching method of the server startup logo, the function thereof corresponds to that of the above method, and is not described herein again.
In addition, the present application further provides a switching device for a server boot logo, as shown in fig. 4, including:
the memory 100: for storing a computer program;
the processor 200: for executing the computer program to implement the steps of the switching method of the server boot logo as described above.
Finally, the present application provides a readable storage medium, on which a computer program is stored, which, when being executed by a processor, is configured to implement the steps of the method for switching a server boot logo as described above.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above detailed descriptions of the solutions provided in the present application, and the specific examples applied herein are set forth to explain the principles and implementations of the present application, and the above descriptions of the examples are only used to help understand the method and its core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A switching method of server boot logo is applied to BIOS, and comprises the following steps:
receiving a switching command sent by the BMC;
determining a corresponding target startup logo in a BIOS code file according to the switching command, wherein the BIOS code file comprises a plurality of precompiled startup logos;
and restarting the server to display the target startup logo.
2. The method of claim 1, wherein the receiving the handover command sent by the BMC comprises:
receiving an IPMI command sent by a BMC;
judging whether the IPMI command contains a predetermined switching parameter or not;
if yes, determining the IPMI command as a switching command.
3. The method of claim 1, wherein the receiving the handover command sent by the BMC comprises:
receiving a switching command sent by the BMC, wherein the switching command comprises identification information of a target starting logo;
correspondingly, the determining a corresponding target boot logo in a BIOS code file according to the switching command, where the BIOS code file includes a plurality of pre-compiled boot logos, and includes:
and determining a corresponding target startup logo in a BIOS code file according to the identification information in the switching command, wherein the BIOS code file comprises a plurality of pre-compiled startup logos and identification information of each startup logo.
4. The method of claim 3, wherein the receiving a handover command sent by the BMC, the handover command including identification information of a target boot logo, comprises:
receiving a switching command sent by the BMC, wherein the switching command comprises a 16-system number of a target starting logo;
correspondingly, the determining a corresponding target boot logo in a BIOS code file according to the switching command, where the BIOS code file includes a plurality of pre-compiled boot logos, and includes:
and determining a corresponding target boot logo in a BIOS code file according to the 16-system number in the switching command, wherein the BIOS code file comprises a plurality of pre-compiled boot logos and the 16-system number of each boot logo.
5. The method of claim 1, wherein the determining a corresponding target boot logo in the BIOS code file according to the switching command comprises:
judging whether a corresponding target startup logo exists in the BIOS code file or not according to the switching command;
if so, determining the target starting logo;
and if not, generating prompt information of switching failure.
6. The method according to any one of claims 1-5, wherein restarting the server to expose the target boot logo comprises:
generating restart prompt information;
and restarting the server at the target time node according to the restart confirmation instruction so as to display the target startup logo.
7. A switching device of server boot logo is applied to BIOS, and comprises:
a command receiving module: the system comprises a BMC and a controller, wherein the BMC is used for receiving a switching command sent by the BMC;
a target determination module: the switching unit is used for determining a corresponding target startup logo in a BIOS code file according to the switching command, wherein the BIOS code file comprises a plurality of pre-compiled startup logos;
and a restarting module: and the server is restarted to display the target startup logo.
8. The apparatus of claim 7, wherein the command receiving module comprises:
a command receiving unit: the IPMI command is used for receiving the IPMI command sent by the BMC;
an order judgment unit: the IPMI command is used for judging whether the IPMI command contains a predetermined switching parameter or not;
a command determination unit: the IPMI command is determined to be a switch command when the IPMI command is determined to contain a pre-agreed switch parameter.
9. A switching device for a server boot logo is characterized by comprising:
a memory: for storing a computer program;
a processor: the computer program is executed to implement the steps of the method for switching the server boot logo according to any one of claims 1 to 6.
10. A readable storage medium, having stored thereon a computer program, which when executed by a processor, is configured to implement the steps of the method for switching server boot logo according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010176113.2A CN111399921A (en) | 2020-03-13 | 2020-03-13 | Switching method, device and equipment for server boot logo |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010176113.2A CN111399921A (en) | 2020-03-13 | 2020-03-13 | Switching method, device and equipment for server boot logo |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111399921A true CN111399921A (en) | 2020-07-10 |
Family
ID=71430890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010176113.2A Withdrawn CN111399921A (en) | 2020-03-13 | 2020-03-13 | Switching method, device and equipment for server boot logo |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111399921A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113076157A (en) * | 2021-03-26 | 2021-07-06 | 山东英信计算机技术有限公司 | Startup sign customizing method, system, terminal and storage medium |
-
2020
- 2020-03-13 CN CN202010176113.2A patent/CN111399921A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113076157A (en) * | 2021-03-26 | 2021-07-06 | 山东英信计算机技术有限公司 | Startup sign customizing method, system, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI534708B (en) | Method, managing apparatus, and computer-readable medium for managing basic input/output system configurations of a computer system | |
CN109542744B (en) | Method, device, storage medium and terminal for detecting abnormal starting problem of terminal | |
EP2631736A1 (en) | Sleep method, wake method and mobile terminal device | |
US7596705B2 (en) | Automatically controlling processor mode of multi-core processor | |
TWI576764B (en) | A computer system | |
CN109905770B (en) | Terminal starting method and device and terminal | |
CN110908847A (en) | Abnormity recovery method, system, electronic equipment and storage medium | |
US11314665B2 (en) | Information processing system, information processing device, BIOS updating method for information processing device, and BIOS updating program for information processing device | |
CN109976816B (en) | Computer system configuration method and server | |
KR20140066535A (en) | Electronic apparatus, method for update firmware, computer-readable recording medium | |
CN111475215A (en) | Server starting method, device and related equipment | |
CN113867814A (en) | Method and device for realizing multi-type restarting of server based on UEFI (unified extensible firmware interface) | |
CN111399921A (en) | Switching method, device and equipment for server boot logo | |
CN112667442B (en) | Control method, device and equipment based on nonvolatile memory device starting system | |
CN113867807A (en) | Method, device, equipment and storage medium for shortening power-on time of server | |
CN111885420A (en) | Standby protection method and device, smart television and readable storage medium | |
CN115495161B (en) | BIOS option modification validation method and device and storage medium | |
CN111078303B (en) | Method and device for optimizing UEFI (unified extensible firmware interface) boot startup | |
CN112148100B (en) | Embedded equipment control method, device and system | |
CN113721959A (en) | Information processing method and device and electronic equipment | |
CN109684134B (en) | Method and server for rapidly deploying firmware settings among multiple devices | |
CN111158772B (en) | Data processing method and electronic equipment | |
CN110007973B (en) | Information processing method and electronic equipment | |
CN109885328B (en) | BIOS updating method and system and related components | |
CN117407202A (en) | Desktop icon layout repairing method and device, storage medium and electronic equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200710 |