Startup item sequence adjustment method, system and equipment and computer storage medium
By displaying preset button and startup item information during the power-on self-test phase, determining the target startup item based on the keys triggered by the user, and using intelligent platform management interface commands to set the startup mode, the problem of complex and error-prone BIOS startup item adjustment is solved. Implemented simple and accurate startup item adjustment.
Patent Information
- Application Number
- CN202411450636.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, users need to manually find and adjust the startup items in the BIOS setting interface, which is complex in operation and error-prone, and has poor applicability.
During the power-on self-test phase, the preset buttons and their corresponding startup item information are displayed, the button trigger information is detected, the target button and startup item are determined based on the trigger information, the startup mode is set through the intelligent platform management interface command, and finally the restart operation is performed.
It realizes the simple and accurate adjustment of startup items in BIOS, reduces the complexity and error rate of user operations, and improves the convenience and accuracy of operations.
Smart Images

Figure CN119356743A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and more specifically, to a startup item sequence adjustment method, system, device and computer storage medium. Background Art
[0002] The Basic Input / Output System (BIOS) seamlessly integrates hardware and software, and is usually embedded in non-volatile storage media, providing the computer with basic and direct hardware management and control functions, ensuring that the software can smoothly call hardware resources and perform necessary operations.
[0003] The BIOS stores the system boot sequence internally. Users can manually search for the boot option in the BIOS setup interface and modify it to the desired boot item. Then, they can save and restart the operation to make the adjusted boot item effective, thereby adjusting the boot item in the BIOS. However, this method requires users to manually set it, which is complex and error-prone, and has poor applicability.
[0004] In summary, how to simply and accurately adjust the startup items in the BIOS is a problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0005] The purpose of the present application is to provide a method for adjusting a startup item sequence, which can solve the technical problem of how to adjust the startup items in the BIOS easily and accurately to a certain extent. The present application also provides a system for adjusting a startup item sequence, an electronic device and a computer-readable storage medium.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] A method for adjusting a startup item sequence, applied to a basic input and output system, comprising:
[0008] During the power-on self-test phase, the preset buttons and the startup item information corresponding to the preset buttons are displayed;
[0009] Detect whether key trigger information is received;
[0010] If key trigger information is received, determining the triggered target key according to the key trigger information;
[0011] Determine the target startup item corresponding to the target button;
[0012] Calling the intelligent platform management interface command to set the startup mode to the target startup item;
[0013] Perform a restart operation.
[0014] In an exemplary embodiment, determining the target startup item corresponding to the target button includes:
[0015] In response to the target key being the first key, detecting whether there is a universal serial bus hard disk or a baseboard management controller virtual media device;
[0016] In response to detecting a universal serial bus hard disk or a baseboard management controller virtual media device, the target boot item is determined to be an optical disk drive.
[0017] In an exemplary embodiment, determining the target startup item corresponding to the target button includes:
[0018] In response to the target button being the second button, determining that the target startup item is a hard disk drive;
[0019] In response to the target button being the third button, determining that the target startup item is a network;
[0020] In response to the target button being the fourth button, determining that the target startup item is another device;
[0021] The other devices include devices other than hard disk drives, networks and optical disk drives.
[0022] In an exemplary embodiment, it further includes:
[0023] Check whether the baseboard management controller supports configuration of startup items;
[0024] In response to the baseboard management controller supporting configuration of the startup item, reading startup item configuration information from the baseboard management controller through an intelligent platform management interface command;
[0025] Detecting whether the startup item configuration information is valid;
[0026] In response to the startup item configuration information being valid, updating the smart platform management interface startup item variable according to the startup item configuration information to obtain a first smart platform management interface startup item variable;
[0027] The baseboard management controller is set to support configuration of the startup items through intelligent platform management interface commands;
[0028] Clear the startup item configuration information through the intelligent platform management interface command;
[0029] According to the startup item variable of the first intelligent platform management interface, adjusting the startup item priority;
[0030] Perform a restart operation.
[0031] In an exemplary embodiment, after detecting whether the startup item configuration information is valid, the method further includes:
[0032] In response to the startup item configuration information being invalid, acquiring startup item storage information, the startup item storage information including the startup item configuration set and saved through the intelligent platform management interface command at the first startup;
[0033] The smart platform management interface startup item variable is updated according to the startup item storage information to obtain a second smart platform management interface startup item variable;
[0034] Adjusting the startup item priority according to the startup item variable of the second intelligent platform management interface;
[0035] Perform a restart operation.
[0036] In an exemplary embodiment, the detecting whether the baseboard management controller supports configuration of the startup item includes:
[0037] In the boot device selection phase, it is detected whether the baseboard management controller supports configuration of the boot item.
[0038] In an exemplary embodiment, after detecting whether the baseboard management controller supports configuration of the startup item, the method further includes:
[0039] In response to the baseboard management controller not supporting configuration of the startup item, the startup item configuration information in the baseboard management controller is cleared.
[0040] A boot item sequence adjustment system, applied to a basic input and output system, comprising:
[0041] A first display module, used for displaying preset buttons and startup item information corresponding to the preset buttons during the power-on self-test phase;
[0042] A first detection module, used to detect whether key trigger information is received;
[0043] A first determination module, configured to determine a triggered target key according to the key trigger information if key trigger information is received;
[0044] A second determination module, used to determine a target startup item corresponding to the target button;
[0045] A first setting module, used to call the intelligent platform management interface command and set the startup mode to the target startup item;
[0046] The first restart module is used to perform a restart operation.
[0047] An electronic device, comprising:
[0048] Memory for storing computer programs;
[0049] A processor is used to implement the steps of any of the above-mentioned methods for adjusting the startup item sequence when executing the computer program.
[0050] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above methods for adjusting a startup item sequence are implemented.
[0051] The present application provides a method for adjusting a startup item sequence, which is applied to a basic input / output system. In the power-on self-test stage, a preset button and startup item information corresponding to the preset button are displayed; whether a button trigger information is received; if a button trigger information is received, the triggered target button is determined according to the button trigger information; the target startup item corresponding to the target button is determined; the intelligent platform management interface command is called to set the startup mode to the target startup item; and a restart operation is performed. In the present application, the basic input / output system displays the preset button and the startup item information corresponding to the preset button in the power-on self-test stage, so that the user can know the preset button and its corresponding startup item information, which is convenient for the user to select the corresponding startup item by triggering the preset button, and the operation is simple; and then the triggered target button and the corresponding target startup item can be determined according to the button trigger information, and the startup mode is set to the target startup item by calling the intelligent platform management interface command, so as to accurately set the target startup item selected by the user to the basic input / output system; finally, a restart operation is performed to ensure that the adjustment of the startup item takes effect, so as to realize a simple and accurate adjustment of the startup items in the basic input / output system. The present application provides a startup item sequence adjustment system, an electronic device, and a computer-readable storage medium, which also solve the corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0053] Figure 1 A flowchart of a method for adjusting a startup item sequence provided in an embodiment of the present application;
[0054] Figure 2 This is a schematic diagram for adjusting startup items by pressing buttons;
[0055] Figure 3 A schematic diagram of sending an intelligent platform management interface command out-of-band to modify a startup item;
[0056] Figure 4 A schematic diagram of the structure of a startup item sequence adjustment system provided in an embodiment of the present application;
[0057] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0058] Figure 6 Another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0060] See also Figure 1 , Figure 1 A flowchart of a method for adjusting a startup item sequence provided in an embodiment of the present application.
[0061] A method for adjusting a startup item sequence provided in an embodiment of the present application is applied to a basic input and output system and may include the following steps:
[0062] Step S101: During the power-on self-test phase, the preset buttons and the startup item information corresponding to the preset buttons are displayed.
[0063] In actual applications, the basic input and output system can display preset buttons and startup item information corresponding to the preset buttons during the power-on self-test (POST) stage, so that the user can trigger the corresponding button according to the startup item information corresponding to the preset button to adjust the startup item sequence of the basic input and output system.
[0064] In a specific application scenario, considering that the boot items of the basic input and output system can be divided into hard disk drive (HDD), network boot (Preboot eXecution Environment, PXE), compact disk drive (Compact Disk Read Only Memory, CDROM) and other devices (Other), other devices are devices other than hard disk drive, network and CDROM drive, so in the process of determining the target boot item corresponding to the target button, in response to the target button being the first button, it can be detected whether there is a universal serial bus hard disk (USB ODD) or baseboard management controller (Baseboard Management Controller, BMC) virtual media (Virtual Media) device, the universal serial bus hard disk can be a USB optical drive, etc., in response to the detection of the universal serial bus hard disk or baseboard management controller virtual media device, the target boot item is determined to be the CDROM drive. Correspondingly, in response to the target button being the second button, the target boot item is determined to be the hard disk drive; in response to the target button being the third button, the target boot item is determined to be the network; in response to the target button being the fourth button, the target boot item is determined to be other devices, wherein other devices include devices other than hard disk drive, network and CDROM drive.
[0065] It should be noted that the preset buttons and their corresponding startup item information can be flexibly adjusted according to actual needs. For example, when the preset button is F5, the startup item may be a hard disk drive (HDD); when the preset button is F6, the startup item may be a network boot (Preboot eXecution Environment, PXE); when the preset button is F7, the startup item may be a compact disk drive (CDROM); when the preset button is F8, the startup item may be other devices (Other), etc., where other devices refer to devices other than hard disk drives, networks, and CD-ROM drives.
[0066] Step S102: Detect whether key trigger information is received.
[0067] Step S103: If key triggering information is received, determining a triggered target key according to the key triggering information.
[0068] Step S104: Determine the target startup item corresponding to the target button.
[0069] In actual applications, after the basic input and output system displays the preset button and the startup item information corresponding to the preset button, when the user needs to adjust the startup item of the basic input and output system, the user can trigger the corresponding button according to the preset button displayed by the basic input and output system and the corresponding startup item information, such as triggering the corresponding button of the server where the basic input and output system is located, etc. At this time, the basic input and output system will detect the corresponding button trigger information to adjust the startup item, and when the user does not need to adjust the startup item of the basic input and output system, the preset button can be not triggered. At this time, the basic input and output system cannot detect the corresponding button trigger information, and thus cannot adjust the startup item. In other words, after the basic input and output system displays the preset button and the startup item information corresponding to the preset button, it can detect whether the button trigger information is received. This button trigger information refers to the information generated after the user triggers the corresponding preset button according to the startup item to be adjusted. If the button trigger information is received, the target button to be triggered is determined according to the button trigger information, and the target startup item corresponding to the target button is determined, so that the startup mode of the basic input and output system can be adjusted to the target startup item later.
[0070] Step S106: calling the intelligent platform management interface command to set the startup mode to the target startup item.
[0071] Step S106: Execute a restart operation.
[0072] In actual applications, after the basic input and output system determines the target startup item corresponding to the target button, that is, determines the target startup item to be adjusted, it can call the Intelligent Platform Management Interface (IPMI) command to set the startup mode to the target startup item. And considering that when using the intelligent platform management interface command to send a command to modify the startup item order, if the system is not restarted and read by the basic input and output system within a certain period of time after setting the startup item, the baseboard manager will automatically clear the "flag valid bit" and corresponding parameters that are guided when the startup item is modified by the intelligent platform management interface command. At this time, the command to modify the startup item will be invalid. Therefore, in order to implement the user's modification of the startup item, the restart operation must be performed within the set time. This set time is less than the time when the intelligent platform management interface command is invalid to modify the startup item. For example, the restart operation can be performed within a few hundred milliseconds after calling the intelligent platform management interface command to set the startup mode to the target startup item. The specific time interval can be flexibly determined according to the actual application scenario.
[0073] In a specific application scenario, in the process of determining the target startup item corresponding to the target button, it is also possible to detect whether multiple buttons are triggered. If so, the target startup items corresponding to each target button are determined, and the target startup items are sorted according to the triggering order of the target buttons to obtain the sorting result. In the subsequent call of the intelligent platform management interface command, in the process of setting the startup mode to the target startup item, the target startup item is set at the corresponding priority of the startup mode according to the adjustment rule of the higher the priority of the higher the ranking. In this way, the user's demand for adjusting the startup item priority by pressing buttons can be met, and the user experience of adjusting the basic input and output system startup items can be improved.
[0074] In specific application scenarios, a flag can also be set in the basic input and output system to indicate whether the startup items of the basic input and output system can be adjusted. Assuming that this flag is Set Boot Option and Reset, when the option value of this flag is enabled, it means that the startup items of the basic input and output system can be adjusted. The basic input and output system can define preset buttons and their corresponding startup items through UNI files, and can define the key scan codes (Scan Codes) of each button through SDL files. UNI files refer to files that define BIOS strings, such as the names of options under BIOS Setup and the corresponding String values. SDL files refer to files that define some BIOS modules. A series of Tokens can be used to define turning on or off corresponding functions; the corresponding key trigger information can be detected through the CheckForKey function, that is, the prompt information after detecting the hot key is first defined in the UNI file, and then the corresponding logic is specifically set in the CheckForKey function through the Code defined in SDL; the system can be restarted through ResetSystem. Taking the above-mentioned F5, F6 and other buttons as examples, the implementation process of the startup item sequence adjustment method of this application can be as follows Figure 2 As shown, the basic input and output system can perform the following steps:
[0075] Determine whether the option value of Set Boot Option and Reset is 1;
[0076] If so, the UNI file defines the key prompt information and the corresponding startup item information after the key is pressed;
[0077] Define the Scan Code of each button in the SDL file;
[0078] Receive key information in the CheckForKey function;
[0079] Check if the key is F5. If so, call the IPMI command, set the boot mode to hard disk drive, and call the ResetSystem function to restart the system. Otherwise, check if the key is F6.
[0080] If the key is F6, call the IPMI command, set the boot mode to network boot, and call the ResetSystem function to restart the system; otherwise, check whether the key is F7;
[0081] If the key is F7, determine whether USB ODD or BMC Virtual Media is detected. If so, call the IPMI command to set the boot mode to the optical drive and call the ResetSystem function to restart the system. Otherwise, check whether the key is F8.
[0082] If the key is F8, call the IPMI command, set the boot mode to other devices, and call the ResetSystem function to restart the system; otherwise, end;
[0083] If the option value of Set Boot Option and Reset is 0, the process ends.
[0084] It should be noted that the buttons and their corresponding IPMI commands may be shown in Table 1.
[0085] Table 1 Buttons and their corresponding IPMI commands
[0086]
[0087] In actual applications, considering that the baseboard management controller can send intelligent platform management interface instructions out-of-band to modify the startup item order of the basic input and output system, the basic input and output system can also detect whether the baseboard management controller supports the configuration of the startup items; in response to the baseboard management controller supporting the configuration of the startup items, the startup item configuration information is read from the baseboard management controller through the intelligent platform management interface command; whether the startup item configuration information is valid is detected; in response to the startup item configuration information being valid, the intelligent platform management interface startup item variable is updated according to the startup item configuration information to obtain the first intelligent platform management interface startup item variable; through the intelligent platform management interface command, the baseboard management controller is set to support the configuration of the startup items; through the intelligent platform management interface command, the startup item configuration information is cleared; according to the first intelligent platform management interface startup item variable, the startup item priority is adjusted; and a restart operation is performed.
[0088] From this implementation process, it can be seen that the basic input and output system of the present application can also read the startup item configuration information from the baseboard management controller through the intelligent platform management interface command when the baseboard management controller supports the configuration of the startup item, so as to meet the user's control needs for adjusting the startup item out-of-band with the help of the baseboard management controller; and in the process of implementing such startup item adjustment needs, it is detected whether the startup item configuration information is valid. In response to the startup item configuration information being valid, the smart platform management interface startup item variable is updated according to the startup item configuration information to obtain the first smart platform management interface startup item variable, so as to exclude the situation where the startup item is adjusted by mistake by applying invalid startup item configuration information, and ensure the accuracy of the startup item adjustment; then, through the intelligent platform management interface command, the baseboard management controller is set to support the configuration of the startup item, and the startup item configuration information is cleared through the intelligent platform management interface command to avoid the startup item adjustment error caused by the next erroneous reading of the startup item configuration information, and finally, according to the first smart platform management interface startup item variable, the startup item priority is adjusted, and a restart operation is performed to truly implement the operation of modifying the startup item order of the basic input and output system through the intelligent platform management interface instruction out-of-band, and ensure the accuracy of the startup item adjustment while meeting the user's needs.
[0089] In a specific application scenario, after detecting whether the startup item configuration information is valid, in response to the startup item configuration information being invalid, the startup item storage information can be obtained, the startup item storage information including the startup item configuration set and saved through the smart platform management interface command at the first startup; the smart platform management interface startup item variable is updated according to the startup item storage information to obtain the second smart platform management interface startup item variable; the startup item priority is adjusted according to the second smart platform management interface startup item variable; and the restart operation is performed.
[0090] In a specific application scenario, in the process of detecting whether the baseboard management controller supports configuration of the boot item, it is possible to detect whether the baseboard management controller supports configuration of the boot item in a boot device selection (Boot Device Selection, BDS) stage.
[0091] In a specific application scenario, after detecting whether the baseboard management controller supports configuration of the startup item, in response to the baseboard management controller not supporting configuration of the startup item, the startup item configuration information in the baseboard management controller can be cleared to avoid erroneous application of the startup item configuration information resulting in startup item adjustment errors.
[0092] It should be noted that sending intelligent platform management interface instructions out-of-band to modify the startup item sequence of the basic input and output system can be applicable to remote data centers or distributed server clusters, which can significantly reduce operation and maintenance costs and improve management efficiency. In addition, the basic input and output system can use command parameters to perform operations to modify the startup item sequence out-of-band through intelligent platform management interface instructions. For example, the parameter boot infoacknowledge in the baseboard management controller can be used to detect whether the baseboard management controller supports the configuration of startup items. For example, it can be determined whether BootInitiatorAcknowledge in boot infoacknowledge is 0 or whether BITO (BiosOrPostBit) therein is 1 to detect whether the baseboard management controller supports the configuration of startup items; the startup item configuration information can be recorded through IPMI Boot, and the startup item configuration information can be determined by judging BootFlagValid in BootFlags. The NVRAM (Non-Volatile Random Access Memory) of the BIOS can be used to detect whether the startup item configuration information is valid. Memory, non-volatile random access memory) to record the boot item storage information; gIpmiForcebootDevice, gPersistenBoot, gUefiBoot, gDeviceInstanceSelector can be used to represent the intelligent platform management interface boot item variables, and the specific meanings of these variables can be determined according to the IPMI regulations. At this time, the process of adjusting the boot item out of band can be as follows Figure 3 As shown, the basic input and output system can perform the following steps:
[0093] Read boot info acknowledge from BMC via IPMI command;
[0094] Determine whether BootInitiatorAcknowledge is 0 or BITO is 1 to determine whether IPMI boot is supported;
[0095] If not, clear the variable IpmiBootFlags and end;
[0096] If yes, read BootFlags from BMC through IPMI command;
[0097] Use BootFlagValid to determine whether IPMI Boot is valid;
[0098] If it is valid, update the IPMI Boot related variables gIpmiForcebootDevice, gPersistenBoot, gUefiBoot, gDeviceInstanceSelector, set the BITO of BootInfoAcknowledge to 1 through the IPMI command, and clear BootFlags through the IPMI command;
[0099] If invalid, determine whether BootFlags is successfully obtained from the variable IpmiBootFlags. If so, update the IPMI Boot related variables gIpmiForcebootDevice, gPersistenBoot, gUefiBoot, and gDeviceInstanceSelector; if not, end;
[0100] According to gIpmiForcebootDevice, adjust the priority of the corresponding device to the highest level;
[0101] Determine whether the option value of Set Boot Option and Reset is 1;
[0102] If so, call the ResetSystem function to restart the system.
[0103] It should also be noted that users can flexibly control the method of adjusting the startup item by pressing a button or by sending an IPMI command out-of-band by setting the corresponding flag bit. For example, when the startup item only needs to be adjusted by pressing a button, only the flag bit of adjusting the startup item by pressing a button is set to be valid; when the startup item only needs to be adjusted by sending an IPMI command out-of-band, only the flag bit of adjusting the startup item by sending an IPMI command out-of-band is set to be valid, etc.; of course, the two methods can also be applied at the same time to adjust the startup item. For example, after detecting that no button trigger information is received, the startup item is adjusted by sending an IPMI command out-of-band, or the startup item is adjusted by these two methods together, etc. In this way, the startup item can be modified flexibly and reliably, successfully improving the freedom and flexibility of customers to operate the startup items, while reducing the workload of R&D investment, reducing the number of customer complaints and production line problems, and this change can reduce the cost of BIOS firmware version maintenance, avoid frequent version release and testing cycles, and thus improve the scalability and manageability of the system startup items, bringing customers a smoother and more efficient user experience. In addition, the network addresses of multiple servers can be uniformly obtained through scripts to modify the startup items of the basic input and output system, so as to help users perform batch operations on the startup item sequence accurately and without error.
[0104] The present application provides a method for adjusting a startup item sequence, which is applied to a basic input / output system. In the power-on self-test stage, a preset button and startup item information corresponding to the preset button are displayed; whether a button trigger information is received are detected; if a button trigger information is received, the triggered target button is determined according to the button trigger information; the target startup item corresponding to the target button is determined; the intelligent platform management interface command is called to set the startup mode to the target startup item; and a restart operation is performed. In the present application, the basic input / output system displays the preset button and the startup item information corresponding to the preset button in the power-on self-test stage, so that the user can know the preset button and its corresponding startup item information, which is convenient for the user to select the corresponding startup item by triggering the preset button, and the operation is simple; and then the triggered target button and the corresponding target startup item can be determined according to the button trigger information, and the startup mode is set to the target startup item by calling the intelligent platform management interface command, so as to accurately set the target startup item selected by the user to the basic input / output system; finally, a restart operation is performed to ensure that the adjustment of the startup item takes effect, so as to achieve simple and accurate adjustment of the startup items in the basic input / output system.
[0105] See also Figure 4 , Figure 4 A schematic diagram of the structure of a startup item sequence adjustment system provided in an embodiment of the present application.
[0106] An embodiment of the present application provides a system for adjusting a startup item sequence, which is applied to a basic input and output system and may include:
[0107] The first display module 101 is used to display the preset buttons and the startup item information corresponding to the preset buttons during the power-on self-test phase;
[0108] The first detection module 102 is used to detect whether key trigger information is received;
[0109] A first determination module 103, configured to determine a triggered target key according to the key trigger information if key trigger information is received;
[0110] A second determination module 104, used to determine a target startup item corresponding to a target key;
[0111] The first setting module 105 is used to call the intelligent platform management interface command and set the startup mode to the target startup item;
[0112] The first restart module 106 is used to perform a restart operation.
[0113] An embodiment of the present application provides a system for adjusting a startup item sequence, which is applied to a basic input and output system. The second determining module may:
[0114] The first detection unit is used to detect whether there is a universal serial bus hard disk or baseboard management controller virtual media device in response to the target key being the first key; in response to detecting the universal serial bus hard disk or baseboard management controller virtual media device, determine that the target startup item is an optical disk drive.
[0115] An embodiment of the present application provides a system for adjusting a startup item sequence, which is applied to a basic input and output system. The second determining module may include:
[0116] a first determining unit, configured to determine, in response to the target key being the second key, that the target startup item is the hard disk drive; in response to the target key being the third key, that the target startup item is the network; and in response to the target key being the fourth key, that the target startup item is other devices;
[0117] Other devices include devices other than hard drives, networks, and optical drives.
[0118] A boot item sequence adjustment system provided in an embodiment of the present application is applied to a basic input and output system and may further include:
[0119] The first detection module is used to detect whether the baseboard management controller supports the configuration of the startup item; in response to the baseboard management controller supporting the configuration of the startup item, the startup item configuration information is read from the baseboard management controller through the intelligent platform management interface command;
[0120] A second detection module is used to detect whether the startup item configuration information is valid; in response to the startup item configuration information being valid, the smart platform management interface startup item variable is updated according to the startup item configuration information to obtain the first smart platform management interface startup item variable;
[0121] A first setting module is used to set the baseboard management controller to support configuration of the startup item through an intelligent platform management interface command;
[0122] A first clearing module, used to clear the startup item configuration information through an intelligent platform management interface command;
[0123] A first adjustment module, used to adjust the startup item priority according to the startup item variable of the first intelligent platform management interface;
[0124] The second restart module is used to perform a restart operation.
[0125] An embodiment of the present application provides a system for adjusting a startup item sequence, which is applied to a basic input and output system. The second detection module can also be used for:
[0126] After detecting whether the startup item configuration information is valid, in response to the startup item configuration information being invalid, obtaining the startup item storage information, the startup item storage information including the startup item configuration set and saved through the smart platform management interface command at the first startup; updating the smart platform management interface startup item variable according to the startup item storage information to obtain the second smart platform management interface startup item variable; adjusting the startup item priority according to the second smart platform management interface startup item variable; and executing the restart operation.
[0127] An embodiment of the present application provides a system for adjusting a startup item sequence, which is applied to a basic input and output system. The first detection module may include:
[0128] The second detection unit is used to detect whether the baseboard management controller supports the configuration of the startup item during the startup device selection phase.
[0129] A startup item sequence adjustment system provided by an embodiment of the present application is applied to a basic input and output system. The first detection module can also be used to: in response to the baseboard management controller not supporting the configuration of the startup item, clear the startup item configuration information in the baseboard management controller.
[0130] The present application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the method for adjusting the startup item sequence provided in the embodiment of the present application. Figure 5 , Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0131] An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the steps of the startup item sequence adjustment method described in any of the above embodiments are implemented.
[0132] See also Figure 6, another electronic device provided in the embodiment of the present application may also include: an input port 203 connected to the processor 202, for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, for realizing communication between the electronic device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (Mobile High-Definition Link, MHL), Universal Serial Bus (Universal Serial Bus, USB), High-Definition Multimedia Interface (High-DefinitionMultimedia Interface, HDMI), wireless connection: wireless fidelity technology (WIreless Fidelity, WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.
[0133] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the method for adjusting the startup item sequence described in any of the above embodiments are implemented.
[0134] The computer-readable storage medium involved in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (Compact Disc Read-Only Memory), or any other form of storage medium known in the technical field.
[0135] A computer program product provided in an embodiment of the present application includes a computer program / instruction. When the computer program / instruction is executed by a processor, the following steps are implemented:
[0136] During the power-on self-test phase, the preset buttons and the startup item information corresponding to the preset buttons are displayed;
[0137] Detect whether key trigger information is received;
[0138] If key trigger information is received, the target key to be triggered is determined according to the key trigger information;
[0139] Determine the target startup item corresponding to the target button;
[0140] Call the intelligent platform management interface command and set the startup mode to the target startup item;
[0141] Perform a restart operation.
[0142] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: in response to the target key being a first key, detecting whether there is a universal serial bus hard disk or a baseboard management controller virtual media device; in response to detecting a universal serial bus hard disk or a baseboard management controller virtual media device, determining that the target startup item is an optical disk drive.
[0143] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: in response to the target button being the second button, determining that the target startup item is a hard disk drive; in response to the target button being the third button, determining that the target startup item is a network; in response to the target button being the fourth button, determining that the target startup item is other devices; wherein the other devices include devices other than hard disk drives, networks, and optical disk drives.
[0144] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: detecting whether a baseboard management controller supports configuration of startup items; in response to the baseboard management controller supporting configuration of startup items, reading startup item configuration information from the baseboard management controller through an intelligent platform management interface command; detecting whether the startup item configuration information is valid; in response to the startup item configuration information being valid, updating the intelligent platform management interface startup item variable according to the startup item configuration information to obtain a first intelligent platform management interface startup item variable; setting the baseboard management controller to support configuration of startup items through an intelligent platform management interface command; clearing the startup item configuration information through an intelligent platform management interface command; adjusting the startup item priority according to the first intelligent platform management interface startup item variable; and executing a restart operation.
[0145] A computer program product provided by an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: after detecting whether startup item configuration information is valid, in response to the startup item configuration information being invalid, obtaining startup item storage information, the startup item storage information including the startup item configuration set and saved by an intelligent platform management interface command during the first startup; updating the intelligent platform management interface startup item variable according to the startup item storage information to obtain a second intelligent platform management interface startup item variable; adjusting the startup item priority according to the second intelligent platform management interface startup item variable; and executing a restart operation.
[0146] A computer program product provided in an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: in a startup device selection phase, detecting whether a baseboard management controller supports configuration of startup items.
[0147] A computer program product provided in an embodiment of the present application includes a computer program / instruction, which implements the following steps when executed by a processor: after detecting whether a baseboard management controller supports configuration of startup items, in response to the baseboard management controller not supporting configuration of startup items, clearing startup item configuration information in the baseboard management controller.
[0148] For the description of the relevant parts in a startup item sequence adjustment system, electronic device, computer-readable storage medium, and computer program product provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in a startup item sequence adjustment method provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above-mentioned technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.
[0149] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0150] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for adjusting a startup item sequence, characterized in that: Applicable to basic input and output systems, including: During the power-on self-test phase, the preset buttons and the startup item information corresponding to the preset buttons are displayed; Detect whether key trigger information is received; If key trigger information is received, determining the triggered target key according to the key trigger information; Determine the target startup item corresponding to the target button; Calling the intelligent platform management interface command to set the startup mode to the target startup item; Perform a restart operation.
2. The method according to claim 1, characterized in that The determining the target startup item corresponding to the target button includes: In response to the target key being the first key, detecting whether there is a universal serial bus hard disk or a baseboard management controller virtual media device; In response to detecting a universal serial bus hard disk or a baseboard management controller virtual media device, the target boot item is determined to be an optical disk drive.
3. The method according to claim 1, characterized in that The determining the target startup item corresponding to the target button includes: In response to the target button being the second button, determining that the target startup item is a hard disk drive; In response to the target button being the third button, determining that the target startup item is a network; In response to the target button being the fourth button, determining that the target startup item is another device; The other devices include devices other than hard disk drives, networks and optical disk drives.
4. The method according to claim 1, characterized in that: Also includes: Check whether the baseboard management controller supports configuration of startup items; In response to the baseboard management controller supporting configuration of the startup item, reading startup item configuration information from the baseboard management controller through an intelligent platform management interface command; Detecting whether the startup item configuration information is valid; In response to the startup item configuration information being valid, updating the smart platform management interface startup item variable according to the startup item configuration information to obtain a first smart platform management interface startup item variable; The baseboard management controller is set to support configuration of the startup items through intelligent platform management interface commands; Clear the startup item configuration information through the intelligent platform management interface command; According to the startup item variable of the first intelligent platform management interface, adjusting the startup item priority; Perform a restart operation.
5. The method according to claim 4, characterized in that After detecting whether the startup item configuration information is valid, the method further includes: In response to the startup item configuration information being invalid, acquiring startup item storage information, the startup item storage information including the startup item configuration set and saved through the intelligent platform management interface command at the first startup; The smart platform management interface startup item variable is updated according to the startup item storage information to obtain a second smart platform management interface startup item variable; According to the startup item variable of the second intelligent platform management interface, adjusting the startup item priority; Perform a restart operation.
6. The method according to claim 4, characterized in that The detecting whether the baseboard management controller supports configuration of the startup item includes: In the boot device selection phase, it is detected whether the baseboard management controller supports configuration of the boot item.
7. The method according to claim 4, characterized in that After detecting whether the baseboard management controller supports configuration of the startup item, the method further includes: In response to the baseboard management controller not supporting configuration of the startup item, the startup item configuration information in the baseboard management controller is cleared.
8. A startup item sequence adjustment system, characterized in that: Applicable to basic input and output systems, including: A first display module, used for displaying preset buttons and startup item information corresponding to the preset buttons during the power-on self-test phase; A first detection module, used to detect whether key trigger information is received; A first determination module, configured to determine a triggered target key according to the key trigger information if key trigger information is received; A second determination module, used to determine a target startup item corresponding to the target button; A first setting module, used to call the intelligent platform management interface command and set the startup mode to the target startup item; The first restart module is used to perform a restart operation.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for adjusting the startup item sequence as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for adjusting the startup item sequence according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method, apparatus and device for adjusting startup sequence in UEFI mode
CN109117195A
Method and device for adjusting starting sequence of network card PXE
CN111124508A
BIOS startup item setting method, apparatus and device, and readable storage medium
CN112130916A
Server starting method and device, computer equipment and storage medium
CN113934463A
Command interaction method and device, equipment and storage medium
CN118778846A
Cited By
Method and device for adjusting starting priority among equipment groups
CN119847774A
Method and device for adjusting startup priority among device groups
CN119847774B
Server starting method and device, storage medium and program product
CN119861985A
Server startup method, device, storage medium and program product
CN119861985B
Starting method for pre-starting execution environment, computer equipment and related products
CN119902811A