Server quick startup system, method, device, medium and program product
By using the baseboard management controller and multiplexer to connect USB devices when the server starts, read the data and perform memory initialization during the BIOS initialization phase, it solves the problem of difficulty in responding to USB devices in the early stages of BIOS startup and improves the server startup speed. and efficiency.
Patent Information
- Application Number
- CN202411036053.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-31
AI Technical Summary
During the server startup process, the existing technology is difficult to achieve rapid response to USB devices in the early stage of BIOS startup. It requires recoding the complex USB driver code, which is difficult.
Avoid coding USB control by using a Baseboard Management Controller (BMC) to interface with multiplexers and Universal Serial Bus devices at server startup, read device data, and perform memory initialization during the Pre-Extensible Firmware Interface initialization phase driver to improve response speed.
It enables the BIOS to respond quickly to USB devices in the early stage of startup, improves server startup speed, avoids complex USB controller driver coding logic, and simplifies the server startup process.
Smart Images

Figure CN118567732B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a server quick startup system, method, device, medium and program product. Background Art
[0002] During the server startup process, the server Basic Input / Output System (BIOS) usually initializes the Universal Serial Bus (USB) controller and responds to USB devices, such as obtaining keyboard hotkey values or reading USB disk contents, only in the late startup stage.
[0003] However, it is very difficult to achieve USB response in the early stage of booting, which requires recoding complex USB driver code, which is extremely difficult. Therefore, how to achieve fast response to USB devices in the early stage of BIOS booting without writing USB driver code has become an urgent problem to be solved. Summary of the invention
[0004] The invention provides a server quick startup system, method, device, medium and program product, which are used to solve the problem in the prior art of how to achieve quick response to USB devices in the early stage of BIOS startup.
[0005] The present invention provides a server quick startup system, comprising: a baseboard management controller, a multiplexer, a universal serial bus device, and a processor; wherein the multiplexer is connected to the baseboard management controller, the universal serial bus device, and the processor respectively;
[0006] When the server is started, the multiplexer connects the baseboard management controller and the universal serial bus device so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used for server startup configuration;
[0007] In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
[0008] According to a server quick startup system provided by the present invention, the baseboard management controller is specifically used for:
[0009] The baseboard management controller starts the first operating system to start the real-time performance monitoring interface service, and at the same time starts the second operating system to read the device data of the universal serial bus device through the second operating system;
[0010] The response time of the first operating system is greater than the response time of the second operating system.
[0011] According to a server quick startup system provided by the present invention, the system further comprises: an authority controller, the authority controller is connected to the multiplexer and the baseboard management controller respectively;
[0012] The authority controller is used to transfer the control authority of the multiplexer to the baseboard management controller when the server is started, so that the baseboard management controller can connect the baseboard management controller with the universal serial bus device through the multiplexer.
[0013] According to a server quick start system provided by the present invention, the authority controller is further used for:
[0014] In a case where the processor reads the device data acquired by the baseboard management controller, the authority controller transfers the control authority of the multiplexer from the baseboard management controller to the processor;
[0015] The processor is connected to the universal serial bus device through the multiplexer.
[0016] According to a server quick startup system provided by the present invention, the baseboard management controller is also used for:
[0017] After starting the second operating system, loading a universal serial bus controller driver;
[0018] In the case where the baseboard management controller successfully loads the universal serial bus controller driver, identifying and initializing the universal serial bus device to read device data of the universal serial bus device;
[0019] In the case that the baseboard management controller fails to load the universal serial bus controller driver, the universal serial bus controller driver is uninstalled and the universal serial bus controller driver is reloaded.
[0020] According to a server quick startup system provided by the present invention, the baseboard management controller includes a universal serial bus controller;
[0021] The universal serial bus controller is used to provide a universal serial bus controller driver for the baseboard management controller.
[0022] According to a server quick startup system provided by the present invention, the baseboard management controller includes: a static random access memory;
[0023] After reading the device data of the universal serial bus device, the baseboard management controller stores the device data in the static random access memory;
[0024] The basic input and output system reads the space of the static random access memory in the baseboard management controller to obtain the device data.
[0025] According to a server quick startup system provided by the present invention, the baseboard management controller sets a storage flag bit of the static random access memory during the process of storing device data in the static random access memory;
[0026] When the basic input and output system reads the static random access memory and finds that the storage flag bit exists, continue to read the device data;
[0027] Or, when the basic input / output system reads the static random access memory and the storage flag does not exist, the device data is stopped from being read. According to a server quick startup system provided by the present invention, the second operating system reads the device data of the universal serial bus device, including:
[0028] The second operating system reads the hot key value or storage file of the universal serial bus device.
[0029] According to a server rapid startup system provided by the present invention, the second operating system is a real-time operating system.
[0030] The present invention also provides a quick start method, comprising:
[0031] When the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used for server startup configuration;
[0032] In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
[0033] According to the quick start method provided by the present invention,
[0034] The method for acquiring device data includes:
[0035] The baseboard management controller starts the first operating system to start the real-time performance monitoring interface service, and at the same time starts the second operating system to read the device data of the universal serial bus device through the second operating system;
[0036] The response time of the first operating system is greater than the response time of the second operating system.
[0037] According to the fast startup method provided by the present invention, when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, including:
[0038] When the server starts, the processor receives a control authority transfer instruction sent by the authority controller, and the processor transfers the control authority of the multiplexer to the baseboard management controller, so that after the baseboard management controller obtains the control authority of the multiplexer, it connects the baseboard management controller with the universal serial bus device through the multiplexer.
[0039] According to the quick start method provided by the present invention,
[0040] When the server is started, after the step of transferring the processor's control authority over the multiplexer to the baseboard management controller so that the baseboard management controller reads the device data of the universal serial bus device, the method further includes:
[0041] The processor receives a control authority transfer instruction sent by the authority controller to transfer the control authority of the multiplexer from the baseboard management controller to the processor;
[0042] After obtaining the control authority of the multiplexer, the processor connects the processor and the universal serial bus device through the multiplexer.
[0043] According to the fast startup method provided by the present invention, before the step of the baseboard management controller reading the device data of the universal serial bus device through the second operating system, the method further includes:
[0044] After starting the second operating system, loading a universal serial bus controller driver;
[0045] In the case where the baseboard management controller successfully loads the universal serial bus controller driver, identifying and initializing the universal serial bus device to read device data of the universal serial bus device;
[0046] In the case that the baseboard management controller fails to load the universal serial bus controller driver, the universal serial bus controller driver is uninstalled and the universal serial bus controller driver is reloaded.
[0047] According to the fast startup method provided by the present invention, when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller so that the baseboard management controller reads the device data of the universal serial bus device, and further includes:
[0048] The baseboard management controller stores the device data in a static random access memory of the baseboard management controller, and sets a storage flag bit for the device data;
[0049] When the basic input and output system reads the static random access memory and finds that the storage flag bit exists, continue to read the device data;
[0050] Or, when the basic input and output system reads the static random access memory and the storage flag does not exist, the reading of the device data is stopped.
[0051] According to the quick startup method provided by the present invention, the device data includes at least one of the following: a hot key value and a storage file of the universal serial bus device.
[0052] The present invention also provides a quick start device, comprising: a baseboard management controller, a multiplexer and a processor, wherein the multiplexer is connected to a universal serial bus device;
[0053] Wherein, the multiplexer is used to connect the baseboard management controller and the universal serial bus device when the server is started, and the baseboard management controller reads the device data of the universal serial bus device; wherein, the device data is used to perform server startup configuration;
[0054] In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
[0055] According to a fast startup device provided by the present invention, the multiplexer is further used for:
[0056] After the baseboard management controller reads the device data of the universal serial bus device, the state of connecting the baseboard management controller and the universal serial bus device is switched to connecting the processor and the universal serial bus device.
[0057] According to a fast startup device provided by the present invention, the device further includes: a permission controller;
[0058] The authority controller is used to transfer the control authority of the multiplexer to the baseboard management controller when the server is started;
[0059] The authority controller is used for transferring the control authority of the multiplexer from the baseboard management controller to the processor when the processor reads the device data acquired by the baseboard management controller.
[0060] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned quick start methods is implemented.
[0061] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the fast startup method described in any one of the above methods is implemented.
[0062] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned quick startup methods.
[0063] The server quick startup system, method, device, medium and program product provided by the present invention connect the baseboard management controller and the universal serial bus device through a multiplexer during the server startup process, so that the baseboard management controller can directly read the data of the universal serial bus device, and before the memory initialization in the pre-extensible firmware interface initialization stage, the device data used for server startup configuration is pre-read, and the BIOS responds to the USB device in the early stage of startup efficiently and conveniently, avoiding the complex logic of encoding the USB controller driver in the BIOS, and improving the startup speed of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0065] Figure 1 A schematic diagram of the structure of a server quick start system provided in an embodiment of the present application;
[0066] Figure 2 A flowchart of the quick start method provided in the embodiments of the present application;
[0067] Figure 3 A schematic diagram of a method flow chart provided in an embodiment of the present application;
[0068] Figure 4 A schematic diagram of the structure of a quick start device provided in an embodiment of the present application;
[0069] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] In the related art, the BIOS startup process generally includes the following five steps:
[0072] Step 1: Memory initialization in the Pre-EFI Initialization (PEI) phase;
[0073] Step 2: Initialization of the peripheral component interconnect express (PCIe) bus device in the Driver Execution Environment (DXE) phase;
[0074] Step 3: Initialize the USB controller in the DXE stage;
[0075] Step 4: Respond to the USB keyboard hotkey behavior in the Boot Device Selection (BDS) phase;
[0076] Step 5: The BDS stage performs different startup behaviors based on the hotkeys.
[0077] Since the initialization code of the USB controller in the current DXE stage is already very mature, most manufacturers' BIOS initialize the USB controller in the DXE stage and then use the corresponding keyboard hotkeys. However, there are corresponding disadvantages. This stage is relatively late in the startup process, and users can easily miss the hotkey operation, so they have to restart again.
[0078] Figure 1 A schematic diagram of the server quick start system structure provided in the embodiment of the present application is shown in FIG. Figure 1As shown, it includes: a baseboard management controller 11, a multiplexer 12, a universal serial bus device 13, and a processor 14; wherein the multiplexer 12 is connected to the baseboard management controller 11, the universal serial bus device 13, and the processor 14 respectively;
[0079] When the server is started, the multiplexer 12 connects the baseboard management controller 11 and the universal serial bus device 13, so that the baseboard management controller 11 reads the device data of the universal serial bus device 13; wherein the device data is used for server startup configuration;
[0080] In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
[0081] In the embodiment of the present application, a multiplexer (MUX) is a hardware device that can selectively transmit one of multiple input signals to an output terminal according to a control signal. In a server boot system, the MUX is used to switch the data transmission path between the BMC and the USB device.
[0082] A Baseboard Management Controller (BMC) is a part of server hardware that is usually used to remotely manage and monitor the status of server hardware. It has the ability to handle network, storage, and input / output devices.
[0083] Optionally, the baseboard management controller is specifically used to:
[0084] The baseboard management controller starts the first operating system to start the real-time performance monitoring interface service, and at the same time starts the second operating system to read the device data of the universal serial bus device through the second operating system;
[0085] The response time of the first operating system is greater than the response time of the second operating system.
[0086] Universal Serial Bus (USB) devices can be keyboards, mice, storage devices, etc. They are connected to the server through the USB interface.
[0087] More specifically, when the server is powered on, the multiplexer first hands over the control right to the BMC according to the preset control logic.
[0088] After the BMC receives the control right, the multiplexer connects the baseboard management controller and the universal serial bus device, and the baseboard management controller can directly access the universal serial bus device.
[0089] In the embodiment of the present application, the first operating system is an operating system running on the first processor core in the multi-core processor of the BMC chip; the first operating system is usually an operating system with more comprehensive functions and longer response time, such as Linux. It is responsible for comprehensive hardware management and monitoring functions after the server is started.
[0090] The first operating system generally adopts a fair task scheduling algorithm. When the number of threads / processes increases, they need to share the CPU (Central Processing Unit) time. Task debugging is uncertain. It can be called a non-real-time operating system, such as contiki, HeliOS, Linux (full name GNU / Linux, a set of freely distributable Unix-like operating systems), etc. It can also be other non-real-time operating systems. Among them, the Linux system is a multi-user, multi-tasking operating system based on POSIX (Portable Operating System Interface) that supports multi-threading and multi-CPU.
[0091] The second operating system is an operating system running on the second processor core in the multi-core processor. The second processor core is a different processor core from the first processor core. The second operating system can be an operating system with clear and fixed time constraints. All processing processes (task scheduling) need to be completed within the fixed time constraints, otherwise the system will fail. It can be an RTOS (Real Time Operating System), for example, FreeRTOS (Free Real-Time Operating System), RTLinux (Real-Time Linux), etc. It can also be other real-time operating systems. Its main task is to quickly read the data of the USB device in the early stage of server startup.
[0092] More specifically, after the first operating system is started, the BMC starts to load and start the first operating system, and the first operating system starts the real-time performance monitoring interface service. At the same time, the BMC uses another core or processor to respond to the second operating system for reading the device data of the universal serial bus device. This system has a shorter response time and can respond quickly.
[0093] More specifically, since the second operating system has a shorter response time, it first completes the response and loads the USB controller driver, identifies and initializes the USB device, and reads the device data (such as keyboard input, storage device content, etc.). The read data is stored in the static random access memory (SRAM) of the BMC so that it can be read by the BIOS later.
[0094] The basic input and output system (BIOS) in the processor reads data from the SRAM of the BMC and uses this data to complete the server boot process. For example, if the hotkey value of a USB keyboard is read, the BIOS can display this hotkey information during the boot process.
[0095] In the embodiment of the present application, the BIOS startup process is optimized into the following steps:
[0096] Step 1: Get device data from BMC in the PEI stage;
[0097] Step 2: Initialize memory and start real-time performance monitoring interface service in PEI stage;
[0098] Step 3: PCIe device initialization in DXE stage;
[0099] Step 4: The BDS stage executes different startup behaviors according to the hotkeys;
[0100] BIOS eliminates the stage of USB controller initialization, and can quickly obtain device data from BMC in the early stage, greatly improving the server startup speed
[0101] In an optional embodiment, when the device data is a hotkey, the BIOS system can read the hotkey information in the PEI stage, so that the hotkey information can be displayed in advance in the PEI stage to facilitate user selection, thereby avoiding the problem of repeated restarts due to the short display time of the hotkey information and the user easily missing the hotkey information display.
[0102] In another optional embodiment, when the device data is storage configuration information, the BIOS system can read the configuration information in the PEI stage and respond in advance, thereby effectively improving the response speed.
[0103] In an embodiment of the present application, during the server startup process, the baseboard management controller and the universal serial bus device are connected through a multiplexer, so that the baseboard management controller can directly read the data of the universal serial bus device, and before the memory initialization in the pre-extensible firmware interface initialization phase, the device data used for server startup configuration is pre-read, thereby efficiently and conveniently realizing the BIOS's response to the USB device in the early stage of startup, avoiding the complex logic of encoding the USB controller driver in the BIOS, and improving the startup speed of the server.
[0104] On the other hand, the embodiment of the present application also utilizes the fast startup feature of the second operating system. At the same time as the first operating system is started, the USB device initialization and device data acquisition are completed through the fast-starting second operating system, thereby efficiently and conveniently implementing the BIOS's response to the USB device in the early stages of startup, avoiding the complex logic of coding the USB controller driver in the BIOS, and improving the startup speed of the server.
[0105] Optionally, the system further comprises: an authority controller, the authority controller being connected to the multiplexer and the baseboard management controller respectively;
[0106] The authority controller is used to transfer the control authority of the multiplexer to the baseboard management controller when the server is started, so that the baseboard management controller can connect the baseboard management controller with the universal serial bus device through the multiplexer.
[0107] In the embodiment of the present application, the authority controller (Complex Programmable Logic Device, CPLD) is a programmable integrated circuit that can implement complex digital logic functions. It is used in the system to control the authority of the MUX to ensure the correct switching of the data transmission path.
[0108] In the application embodiment, MUX is a hardware device for selecting a signal from multiple input signals and transmitting it to an output terminal. In this system, MUX is used to switch the data transmission path between BMC and USB device.
[0109] Optionally, a basic input and output system (BIOS) in the processor reads data from the SRAM of the BMC and uses the data to complete the server startup process.
[0110] Once the BIOS completes booting and needs to directly control the USB device, the CPLD will switch control of the MUX back to the processor according to the control logic, so that the CPU can communicate directly with the USB device.
[0111] In the embodiment of the present application, the server can quickly respond to external devices in the early stage of startup, improving startup efficiency and response speed. CPLD plays a vital role in this process, ensuring the correct switching of data transmission paths and the timely transfer of control rights. This mechanism is particularly suitable for server environments that need to start quickly and process external inputs, such as data centers, cloud computing environments, etc.
[0112] Optionally, the permission controller is further used to:
[0113] In a case where the processor reads the device data acquired by the baseboard management controller, the authority controller transfers the control authority of the multiplexer from the baseboard management controller to the processor;
[0114] The processor is connected to the universal serial bus device through the multiplexer.
[0115] In the embodiment of the present application, after the server is powered on, the BMC starts the second operating system, which has a short response time and can respond quickly, and is suitable for early device initialization and data reading.
[0116] After the second operating system is started, the BMC is responsible for loading the USB controller driver. This step is the key to achieving USB device recognition and data reading. The USB controller driver is a software component that manages the communication between the USB device and the server to ensure that the device can be correctly identified and used.
[0117] After successfully loading the USB controller driver, the BMC identifies and initializes the connected USB device. This process includes detecting the device type, configuring device parameters, and allocating necessary system resources.
[0118] Once the USB device is identified and initialized, the BMC reads the data from the USB device, such as keyboard input, storage device contents, etc.
[0119] The read data is stored in the static random access memory (SRAM) of the BMC so that it can be read later by the basic input and output system (BIOS) in the processor.
[0120] If the BMC fails to load the USB controller driver, the BMC will uninstall the current USB controller driver. Then, the BMC will try to reload the USB controller driver to ensure that the system can correctly identify and use the USB device.
[0121] In the embodiment of the present application, the server can quickly respond to external devices in the early stage of startup, improving startup efficiency and response speed. CPLD plays a vital role in this process, ensuring the correct switching of data transmission paths and the timely transfer of control rights. This mechanism is particularly suitable for server environments that need to start quickly and process external inputs, such as data centers, cloud computing environments, etc.
[0122] Optionally, the baseboard management controller includes a universal serial bus controller;
[0123] The universal serial bus controller is used to provide a universal serial bus controller driver for the baseboard management controller.
[0124] In the embodiment of the present application, BMC is the core component of server hardware management, responsible for monitoring and managing the hardware status of the server, such as temperature, power supply, fan, etc.
[0125] In this design, the BMC itself integrates a USB controller, which enables the BMC to directly manage USB devices without relying on an external USB controller.
[0126] In the embodiment of the present application, the USB controller is a component inside the BMC, which is responsible for handling all communications with USB devices. It provides the necessary drivers for the BMC so that the BMC can identify, initialize and manage connected USB devices.
[0127] Specifically, after the second operating system (RTOS) starts, the BMC's USB controller automatically loads its driver. This step is built-in because the USB controller is part of the BMC, so there is no need to load the driver from the outside.
[0128] After the USB controller driver is loaded successfully, the BMC's USB controller identifies and initializes the connected USB device. This process includes detecting the device type, configuring device parameters, and allocating necessary system resources.
[0129] Once the USB device is identified and initialized, the BMC's USB controller reads the data from the USB device, such as keyboard input, storage device content, etc. The read data is stored in the BMC's static random access memory (SRAM) for subsequent reading by the basic input and output system (BIOS) in the processor.
[0130] Optionally, the baseboard management controller includes: a static random access memory;
[0131] After reading the device data of the universal serial bus device, the baseboard management controller stores the device data in the static random access memory;
[0132] The BIOS reads the space of the static random access memory in the baseboard management controller to obtain the device data.
[0133] In the embodiment of the present application, SRAM is a high-speed memory inside the BMC, which is used to temporarily store key data. SRAM is used to store device data read from the USB device so that it can be read by the BIOS later.
[0134] Once the USB device is identified and initialized, the BMC's USB controller reads the data from the USB device, such as keyboard input, storage device content, etc. The read data is stored in the BMC's SRAM.
[0135] The basic input and output system (BIOS) in the processor reads data from the SRAM of the BMC. The BIOS uses this data to complete the server boot process. For example, if the hotkey value of a USB keyboard is read, the BIOS can display this hotkey information during the boot process.
[0136] Optionally, the baseboard management controller sets a storage flag bit of the static random access memory during the process of storing device data in the static random access memory;
[0137] When the BIOS reads the static random access memory and finds that the storage flag bit exists, continue to read the device data;
[0138] Or, when the BIOS reads the static random access memory and the storage flag does not exist, the reading of the device data is stopped.
[0139] In the embodiment of the present application, while storing data in the SRAM, the BMC also sets a storage flag in the SRAM.
[0140] The storage flag is a special mark used to indicate whether the data in the SRAM is valid or ready to be read.
[0141] During the boot process, BIOS needs to obtain device data from BMC to complete the boot process. BIOS first checks the storage flag bit in SRAM.
[0142] If the BIOS detects that the storage flag bit in the SRAM is set (i.e. exists), this indicates that the data stored in the SRAM is valid.
[0143] In this case, the BIOS will continue to read the device data from SRAM and perform the corresponding startup tasks based on this data. For example, if the data comes from a USB keyboard, the BIOS may display relevant hotkey information on the startup screen.
[0144] If the BIOS detects that the storage flag bit in the SRAM is not set (i.e., does not exist), this indicates that there is no valid data in the SRAM or the data is not yet ready.
[0145] In this case, the BIOS will stop reading data from SRAM and may take other boot steps or wait for data to become available.
[0146] In the embodiment of the present application, it is ensured that the BIOS reads the data in the SRAM only when the data is valid, avoiding reading invalid or outdated data. It also provides a method to synchronize the data transmission between the BMC and the BIOS to ensure the consistency and reliability of the data.
[0147] Optionally, the second operating system reads the device data of the universal serial bus device, including:
[0148] The second operating system reads the hot key value or storage file of the universal serial bus device.
[0149] In the embodiment of the present application, the second operating system has a short response time and is suitable for the early stage of server startup. It is responsible for quickly responding to external devices such as USB keyboards and USB storage devices.
[0150] The USB keyboard may contain hotkeys (shortcut keys) that can trigger specific system commands or actions. The second operating system reads the hotkey values of the USB keyboard to provide a quick user input response when the system boots up.
[0151] The USB storage device (such as a USB flash drive or a mobile hard disk) may contain configuration files or other important data required for system startup. The second operating system reads these files from the USB storage device to ensure that the system can be correctly initialized and configured based on these files.
[0152] The read hot key value and storage file are stored in the static random access memory (SRAM) of the baseboard management controller (BMC). While storing the data in the SRAM, the BMC sets the storage flag in the SRAM to indicate the existence and validity of the data.
[0153] Optionally, the second operating system is a real-time operating system.
[0154] Specifically, an RTOS is an operating system designed to meet real-time constraints, that is, the system can ensure that a task is completed or a response is made within a specified time.
[0155] It typically has a small memory footprint, fast response time, and efficient resource management capabilities.
[0156] When a server is powered on, the boot process begins. The baseboard management controller (BMC) first boots its internal operating system, which may include a full-featured operating system (such as Linux) and a more lightweight RTOS.
[0157] RTOS has a very short response time, which is suitable for quickly responding to external devices in the early stages of server startup. RTOS can provide deterministic response time to ensure that critical tasks can be executed in a timely manner.
[0158] In the embodiment of the present application, the fast startup and data reading capabilities of the RTOS enable the server to quickly respond to external devices in the early stages of startup, improving startup efficiency. The system can be flexibly started and configured based on the hot key values and storage files in the USB device. The deterministic response characteristics of the RTOS improve the reliability of the system, especially in critical tasks that require fast and consistent responses.
[0159] Figure 2 This is a flow chart of the quick start method provided in the embodiments of the present application, such as Figure 2 As shown, including:
[0160] Step 210, when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used for server startup configuration;
[0161] In the embodiment of the present application, when the server is powered on, the startup process begins.
[0162] At the beginning of server startup, the processor (CPU) first controls MUX, but in order to enable BMC to access USB devices, the processor transfers the control of MUX to BMC. Once BMC obtains control of MUX, it can establish a connection with the connected USB device through MUX for data communication. BMC reads the data of USB devices through its internal USB controller. This data may include:
[0163] Hotkey values: Hotkey values read from the USB keyboard. These hotkeys can trigger specific system commands or operations.
[0164] Storage files: files read from USB storage devices (such as USB flash drives and mobile hard disks). These files may contain system configuration data or other important information.
[0165] Step 220, after the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller during the pre-extensible firmware interface initialization phase, the basic input / output system starts the real-time performance monitoring interface service and memory initialization during the pre-extensible firmware interface initialization phase.
[0166] Specifically, PEI is an early stage in the Unified Extensible Firmware Interface boot process, which is mainly responsible for initializing memory and basic input and output functions.
[0167] In the BIOS startup process of the related art, the PEI stage performs memory initialization; the DXE stage performs PCIe device initialization; the DXE stage performs USB controller initialization; the BDS stage responds to USB keyboard hotkey behavior; and the BDS stage performs different startup behaviors according to the hotkey.
[0168] In this application, at the initial startup, the BMC reads the data of the USB device through its internal USB controller and stores the data in the static random access memory of the BMC. The BIOS reads the device data from the SRAM of the BMC in the PEI stage, which may include the hot key value of the USB keyboard or the file content in the storage device.
[0169] After reading the device data, the BIOS starts the real-time performance monitoring interface service, which may involve monitoring the system's key performance indicators, such as CPU utilization, memory usage, and disk activity. At the same time, the BIOS continues to perform memory initialization tasks in the PEI phase, ensuring that the memory system is ready for the subsequent boot phases. Once memory initialization is complete, the BIOS continues to perform subsequent boot phases, such as DXE (Driver Execution Environment) and BDS (Boot Device Selection), and finally loads the operating system.
[0170] In this way, the server can quickly respond to external devices in the early stages of startup, improve startup efficiency and response speed, and ensure that the server performs the correct startup configuration based on the data provided by the external device. This design is particularly suitable for server environments that need to start quickly and process external inputs, such as data centers and cloud computing environments.
[0171] Optionally, the method for acquiring device data includes:
[0172] The baseboard management controller starts the first operating system to start the real-time performance monitoring interface service, and at the same time starts the second operating system to read the device data of the universal serial bus device through the second operating system;
[0173] The response time of the first operating system is greater than the response time of the second operating system.
[0174] Specifically, in the embodiment of the present application, since the response time of the second operating system is shorter than that of the first operating system, it starts working first. The USB controller of the BMC establishes a connection with the USB device through the MUX and loads the corresponding driver.
[0175] More specifically, hotkey values read from a USB keyboard, which can trigger specific system commands or actions. Files read from a USB storage device, which may contain system configuration data or other important information.
[0176] Since the response time of the RTOS is shorter than that of the first operating system, it completes the startup and starts working first.
[0177] The BMC's USB controller establishes a connection with the USB device through the MUX and loads the corresponding driver.
[0178] RTOS reads data from the USB device, which may include:
[0179] Hotkey values: Hotkey values read from the USB keyboard. These hotkeys can trigger specific system commands or operations.
[0180] In the embodiment of the present application, the files read from the USB storage device may contain system configuration data or other important information.
[0181] In the embodiment of the present application, the read USB device data is stored in the static random access memory (SRAM) of the BMC. The BMC sets a storage flag in the SRAM to indicate the existence and validity of the data.
[0182] The basic input and output system (BIOS) in the processor checks the storage flag in SRAM during the boot process. If the storage flag exists, the BIOS reads the stored USB device data from SRAM.
[0183] The BIOS performs the corresponding startup tasks based on the data read, for example:
[0184] If the hotkey value read is a USB keyboard, the BIOS may display the relevant hotkey information on the startup screen.
[0185] If the file content read is from a USB storage device, the BIOS will configure the system based on the file content.
[0186] In an embodiment of the present application, during the server startup process, the baseboard management controller and the universal serial bus device are connected through a multiplexer, so that the baseboard management controller can directly read the data of the universal serial bus device, and before the memory initialization in the pre-extensible firmware interface initialization phase, the device data used for server startup configuration is pre-read, thereby efficiently and conveniently realizing the BIOS's response to the USB device in the early stage of startup, avoiding the complex logic of encoding the USB controller driver in the BIOS, and improving the startup speed of the server.
[0187] Optionally, when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, including:
[0188] When the server starts, the processor receives a control authority transfer instruction sent by the authority controller, and the processor transfers the control authority of the multiplexer to the baseboard management controller, so that after the baseboard management controller obtains the control authority of the multiplexer, it connects the baseboard management controller with the universal serial bus device through the multiplexer.
[0189] In the embodiment of the present application, the authority controller sends a control authority transfer instruction to the processor when the server is started. CPLD is a programmable integrated circuit that can control the behavior of hardware devices according to preset logic.
[0190] After the processor receives the control authority transfer instruction sent by the CPLD, it transfers the control authority of the MUX to the BMC. This means that at the beginning of the boot, the processor gives up control of the MUX and allows the BMC to take over. Once the BMC obtains the control authority of the MUX, it can establish a connection with the USB device through the MUX. This allows the BMC to directly access USB devices connected to the server, such as USB keyboards, USB storage devices, etc.
[0191] The BMC uses the obtained control privileges to connect itself to the USB device through MUX. This enables the BMC to read data from the USB device, such as keyboard input or storage device contents.
[0192] In the embodiment of the present application, after the BMC starts the second operating system (such as RTOS) inside it, the system responds quickly and loads the USB controller driver. The RTOS reads the data of the USB device and may store the data in the SRAM of the BMC.
[0193] The basic input and output system (BIOS) in the processor checks the SRAM of the BMC during the boot process and reads the storage flag bit.
[0194] If the storage flag exists, the BIOS reads the USB device data from the SRAM and performs corresponding startup tasks based on the data.
[0195] Once the BIOS has completed the boot and needs to directly control the USB device, the CPLD will transfer the control of the MUX from the BMC back to the processor according to the control logic. The processor communicates directly with the USB device through the MUX for data transmission and device control.
[0196] In the embodiment of the present application, by quickly transferring control authority, the BMC can quickly access the USB device in the early stage of server startup, thereby improving startup efficiency. The system can flexibly switch the control authority of the MUX between the BMC and the processor as needed to ensure efficient data transmission.
[0197] Optionally, when the server is started, after the step of transferring the processor's control authority over the multiplexer to the baseboard management controller so that the baseboard management controller reads the device data of the universal serial bus device, the method further comprises:
[0198] The processor receives a control authority transfer instruction sent by the authority controller to transfer the control authority of the multiplexer from the baseboard management controller to the processor;
[0199] After obtaining the control authority of the multiplexer, the processor connects the processor and the universal serial bus device through the multiplexer.
[0200] In the embodiment of the present application, when the server starts, the BMC uses its internal second operating system (such as RTOS) to quickly read the data of the connected USB device. These data may include the hot key value of the USB keyboard or the file in the USB storage device.
[0201] After the BMC finishes reading the USB device data, the CPLD sends a control authority transfer instruction to the processor. The CPLD is a programmable integrated circuit that is responsible for coordinating the transfer of control between hardware components.
[0202] After the processor receives the control authority transfer instruction sent by the CPLD, it takes over the control of the MUX. This means that the processor can now communicate directly with the USB device through the MUX. The processor uses the obtained control authority to connect itself to the USB device through the MUX. This allows the processor to directly access the USB device for data transfer and device control.
[0203] Specifically, the server is powered on and the startup process begins.
[0204] The BMC starts its internal RTOS, which responds quickly and loads the USB controller driver. The RTOS reads the data from the USB device and may store this data in the BMC's SRAM.
[0205] After BMC finishes reading USB device data, CPLD sends a control authority transfer instruction to the processor. After receiving the instruction from CPLD, the processor takes over the control of MUX. The processor establishes a connection with the USB device through MUX to perform data transmission and device control.
[0206] The basic input and output system (BIOS) in the processor checks the SRAM of the BMC during the boot process and reads the storage flag. If the storage flag exists, the BIOS reads the USB device data from the SRAM and performs the corresponding boot task based on this data.
[0207] In the embodiment of the present application, by quickly transferring control authority, the BMC can quickly access the USB device in the early stage of server startup, thereby improving startup efficiency. The system can flexibly switch the control authority of the MUX between the BMC and the processor as needed to ensure efficient data transmission.
[0208] Optionally, before the step of the baseboard management controller reading the device data of the universal serial bus device through the second operating system, the baseboard management controller further includes:
[0209] After starting the second operating system, loading a universal serial bus controller driver;
[0210] In the case where the baseboard management controller successfully loads the universal serial bus controller driver, identifying and initializing the universal serial bus device to read device data of the universal serial bus device;
[0211] In the case that the baseboard management controller fails to load the universal serial bus controller driver, the universal serial bus controller driver is uninstalled and the universal serial bus controller driver is reloaded.
[0212] In the embodiment of the present application, when the server is started, the BMC first starts the second operating system inside it, which is usually a lightweight real-time operating system (RTOS).
[0213] After the second operating system is started, the BMC loads the USB controller driver. After successfully loading the USB controller driver, the BMC identifies and initializes the connected USB device.
[0214] After identification and initialization, BMC reads the data of USB device. If the USB controller driver fails to load, BMC will uninstall the driver and reload it.
[0215] Specifically, the server is powered on and the boot process begins. The BMC starts its internal RTOS, which responds quickly and prepares to load the USB controller driver.
[0216] After the RTOS starts, the BMC attempts to load the USB controller driver. The USB controller driver is a software component that manages the communication between the USB device and the server.
[0217] If the USB controller driver is successfully loaded, the BMC's USB controller recognizes the connected USB device and initializes it. The BMC reads data from the USB device, such as keyboard input or storage device content, and may store this data in the BMC's SRAM.
[0218] If the USB controller driver fails to load, the BMC uninstalls the current USB controller driver. The BMC tries to reload the USB controller driver to ensure that the system can correctly identify and use USB devices.
[0219] After BMC finishes reading USB device data, CPLD sends a control authority transfer instruction to the processor. After receiving the instruction from CPLD, the processor takes over the control of MUX. The processor establishes a connection with the USB device through MUX to perform data transmission and device control.
[0220] Optionally, when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller so that the baseboard management controller reads the device data of the universal serial bus device, and further includes:
[0221] The baseboard management controller stores the device data in a static random access memory of the baseboard management controller, and sets a storage flag bit for the device data;
[0222] When the basic input and output system reads the static random access memory and finds that the storage flag bit exists, continue to read the device data;
[0223] Or, when the basic input and output system reads the static random access memory and the storage flag does not exist, the reading of the device data is stopped.
[0224] In the embodiment of the present application, the BMC reads the data of the connected USB device through the second operating system (such as RTOS), and stores the read device data in its static random access memory (SRAM).
[0225] The BMC sets the storage flag for the device data stored in the SRAM. The Basic Input Output System (BIOS) checks the storage flag in the SRAM and decides whether to read the device data based on the presence or absence of the flag.
[0226] Specifically, the server is powered on and the boot process begins. The BMC starts its internal RTOS, which responds quickly and is ready to read USB device data. After the RTOS starts, the BMC loads the USB controller driver to identify and initialize the USB device. After successfully loading the USB controller driver, the BMC identifies the USB device and reads its data, such as keyboard input or storage device content.
[0227] The read USB device data is stored in the BMC's SRAM. SRAM is a high-speed memory suitable for temporarily storing critical data. When storing data in SRAM, the BMC also sets a storage flag for the data. The storage flag is a special mark used to indicate the existence and validity of data.
[0228] During the boot process, the BIOS checks the storage flag in the BMC's SRAM; if the storage flag exists, the BIOS continues to read device data from the SRAM and performs the corresponding boot tasks based on this data. If the storage flag does not exist, the BIOS stops reading device data and may take other boot processes or wait for data to become available.
[0229] Once the BIOS completes booting and needs to directly control the USB device, the CPLD will transfer the control of the MUX from the BMC to the processor according to the control logic.
[0230] Optionally, the device data includes at least one of the following: a hot key value and a storage file of the universal serial bus device.
[0231] Specifically, the hot key value may refer to a hot key value read from a USB keyboard, and these hot keys may trigger specific system commands or operations.
[0232] Storage files may refer to files read from a USB storage device (such as a USB flash drive or a mobile hard disk), which may contain system configuration data or other important information.
[0233] Figure 3 A schematic diagram of the method flow provided in the embodiment of the present application, such as Figure 3 As shown, it includes: after the server is powered on, the CPLD quickly switches the control of the MUX channel to the BMC, establishes a physical connection between the BMC and the USB device, and prepares for subsequent data interaction.
[0234] The Linux operating system of BMC starts slowly, so in order to improve efficiency, BMC enables another core to run a faster-starting RTOS system. This RTOS system can start up in just 5 seconds, laying the foundation for the fast response of USB devices.
[0235] The RTOS system loads the USB controller driver. If the driver is loaded normally, the USB device is identified and initialized. If the driver fails to load, the current driver is uninstalled and reloaded to ensure normal identification and initialization of the USB device.
[0236] The ROS system identifies and initializes USB devices and responds to requests from USB devices. For example, it can obtain the hotkey value of a USB keyboard, or read files from a USB storage device, and write the obtained content to the SRAM of the BMC to prepare for the use of the BIOS.
[0237] BIOS reads the SRAM space of BMC and obtains the content obtained by RTOS system in response to the USB device. At this time, it takes only about 10 seconds to power on the computer. BIOS can use these contents and continue to boot, such as displaying the hot key value on the VGA interface, or performing some configuration according to the file content.
[0238] The BMC notifies the CPLD that the interaction between the USB device and the BMC has been completed. The CPLD switches the control of the MUX channel back to the CPUBIOS end, establishes a physical connection between the CPU and the USB device, and provides a guarantee for subsequent data interaction.
[0239] In the embodiment of the present application, after the server is powered on, the CPLD controls the control right of the MUX channel to the BMC, and at this time the physical link from the BMC to the USB device is enabled; the BMC enables another core to simultaneously run another operating system with a faster startup, such as an RTOS system, which can be started within 5 seconds after power-on; after the BMCRTOS system is started, the USB controller driver is loaded. If the driver is loaded normally, the BMCRTOS system identifies the USB device and completes the initialization, and then responds to the USB device, such as obtaining the hot key value of the USB keyboard, or reading the file in the USB storage device, and writing the obtained content to the SRAM of the BMC; the BIOS reads the SRAM space of the BMC and obtains the content obtained by the BMCRTOS system in response to the USB device. At this time, the power-on boot takes only about 10 seconds, and the BIOS uses these contents and continues to boot. For example, if the BIOS obtains the hotkey value of the USB keyboard, the BIOS will display the hotkey on the VGA interface to prompt the user that a hotkey has been pressed. If the file content of the USB storage device is obtained, the BIOS will make some desired configurations based on the file content; finally, the BMC notifies the CPLD that the interaction between the CPLD and the USB device has been completed, and the CPLD switches the control of the MUX channel to the CPUBIOS end, and then the physical link from the CPU to the USB device is selected. In this way, the BMCRTOS system uses the fast startup feature, and the USB device is initialized through the USB controller driver of the RTOS system. Finally, the content obtained by the USB device is shared with the BIOS through the SRAM. The whole process only takes about 10 seconds, which efficiently and conveniently realizes the BIOS's response to the USB device in the early pre-extensible firmware interface initialization stage of startup, avoiding the complex logic of coding the USB controller driver in the BIOS.
[0240] Figure 4 A schematic diagram of the structure of a quick start device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, it includes: a baseboard management controller 11, a multiplexer 12 and a processor 14, and the multiplexer 12 is connected to a universal serial bus device;
[0241] The multiplexer 12 is used to connect the baseboard management controller 11 with the universal serial bus device when the server is started, and the baseboard management controller 11 reads the device data of the universal serial bus device; wherein the device data is used to perform server startup configuration;
[0242] During the pre-extensible firmware interface initialization phase, the basic input / output system in the processor 14 reads the device data acquired by the baseboard management controller 11 from the baseboard management controller 11, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization during the pre-extensible firmware interface initialization phase.
[0243] In the embodiment of the present application, the BMC is an independent microcontroller, which is usually used to monitor and manage the hardware status of the server, such as temperature, voltage, fan speed, etc. It can also perform some basic management tasks, such as remote startup, monitoring, diagnosis and recovery of the server.
[0244] A multiplexer is used to combine multiple signals or data streams into a single channel for transmission through a single interface. In this case, it connects multiple Universal Serial Bus (USB) devices to a single interface of a server. The multiplexer allows the server to selectively connect to different USB devices at boot time.
[0245] When the server boots up, the multiplexer is configured to connect the baseboard management controller to specific USB devices. This allows the BMC to access these devices during the boot process.
[0246] The baseboard management controller is not only involved in hardware monitoring, but is also responsible for starting a second operating system. This is usually a small, dedicated operating system, such as an embedded operating system in the BMC firmware. The second operating system can be independent or a lightweight version of the server's main operating system. After the second operating system is started, the BMC reads data from connected USB devices through it. This may include configuration files, diagnostic data, or other important information stored on the USB device.
[0247] The device data read is passed to the processor's basic input and output system (BIOS). BIOS is the firmware that runs when the computer starts up, responsible for initializing the hardware and loading the operating system. In this way, the BMC can provide the necessary configuration information for the server's startup process to ensure that the server can start correctly.
[0248] Optionally, the multiplexer is further used for:
[0249] After the baseboard management controller reads the device data of the universal serial bus device, the state of connecting the baseboard management controller and the universal serial bus device is switched to connecting the processor and the universal serial bus device.
[0250] In the embodiment of the present application, at the initial stage of server startup, the MUX is configured to connect the BMC and the USB device, which allows the BMC to read the data of the USB device through its second operating system (such as RTOS).
[0251] The BMC uses the USB controller driver to read the device data of the USB device, such as hot key values and storage files. The read device data is stored in the static random access memory (SRAM) of the BMC, and the storage flag is set for this data.
[0252] After the BMC completes reading and storing the USB device data, the control of the MUX needs to be switched from the BMC to the processor.
[0253] In the embodiment of the present application, the MUX allows flexible switching of the control of the USB device between the BMC and the processor, ensuring that the USB device is managed by the most suitable component at different stages.
[0254] Optionally, the device further includes: a permission controller;
[0255] The authority controller is used to transfer the control authority of the multiplexer to the baseboard management controller when the server is started;
[0256] The authority controller is used for transferring the control authority of the multiplexer from the baseboard management controller to the processor when the processor reads the device data acquired by the baseboard management controller.
[0257] In the embodiment of the present application, CPLD is a programmable integrated circuit that can control the behavior of hardware devices according to preset logic. In this system, CPLD is responsible for controlling the transfer of MUX permissions at different stages of server startup.
[0258] At the beginning of the boot process, the CPLD sends a control authority transfer instruction to the BMC, transferring the control of the MUX to the BMC. This allows the BMC to establish a connection with the USB device through the MUX.
[0259] The BMC uses the USB controller driver to read the device data of the USB device, such as hot key values and storage files. The read data is stored in the static random access memory (SRAM) of the BMC, and the storage flag is set for the data.
[0260] After the BMC completes reading and storing the USB device data, the CPLD sends a control authority transfer instruction to the processor, transferring the control of the MUX from the BMC to the processor. This allows the processor to establish a direct connection with the USB device through the MUX.
[0261] The basic input and output system (BIOS) in the processor checks the storage flag in the SRAM of the BMC during the boot process. If the storage flag exists, the BIOS reads the device data from the SRAM and performs the corresponding boot tasks based on this data. Once the BIOS completes the boot and needs to directly control the USB device, the processor establishes a connection with the USB device through the MUX for data transfer and device control.
[0262] In the embodiment of the present application, through the MUX authority transfer controlled by CPLD, the server can quickly access the USB device in the early stage of startup, improving the startup efficiency. The system can flexibly switch the control of MUX between BMC and processor as needed to ensure the efficiency of data transmission.
[0263] Figure 5 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a fast startup method, which includes: when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used to perform server startup configuration;
[0264] In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
[0265] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0266] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the fast startup method provided by the above methods, the method comprising: when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used to perform server startup configuration;
[0267] In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
[0268] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the fast startup method provided by the above methods is implemented, and the method comprises: when the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used to perform server startup configuration;
[0269] In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
[0270] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0271] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0272] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A server quick start system, characterized in that: include: A baseboard management controller, a multiplexer, a universal serial bus device, and a processor; wherein the multiplexer is connected to the baseboard management controller, the universal serial bus device, and the processor respectively; When the server is started, the multiplexer connects the baseboard management controller and the universal serial bus device so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used for server startup configuration; In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
2. The server quick start system according to claim 1, characterized in that: The baseboard management controller is specifically used for: The baseboard management controller starts the first operating system to start the real-time performance monitoring interface service, and at the same time starts the second operating system to read the device data of the universal serial bus device through the second operating system; The response time of the first operating system is greater than the response time of the second operating system.
3. The server quick start system according to claim 1, characterized in that: The system further comprises: an authority controller, the authority controller being connected to the multiplexer and the baseboard management controller respectively; The authority controller is used to transfer the control authority of the multiplexer to the baseboard management controller when the server is started, so that the baseboard management controller can connect the baseboard management controller with the universal serial bus device through the multiplexer.
4. The server quick start system according to claim 3, characterized in that: The permission controller is also used to: In a case where the processor reads the device data acquired by the baseboard management controller, the authority controller transfers the control authority of the multiplexer from the baseboard management controller to the processor; The processor is connected to the universal serial bus device through the multiplexer.
5. The server quick start system according to claim 2, characterized in that: The baseboard management controller is also used for: After starting the second operating system, loading a universal serial bus controller driver; In the case where the baseboard management controller successfully loads the universal serial bus controller driver, identifying and initializing the universal serial bus device to read device data of the universal serial bus device; In the case that the baseboard management controller fails to load the universal serial bus controller driver, the universal serial bus controller driver is uninstalled and the universal serial bus controller driver is reloaded.
6. The server quick start system according to claim 1, characterized in that: The baseboard management controller includes a universal serial bus controller; The universal serial bus controller is used to provide a universal serial bus controller driver for the baseboard management controller.
7. The server quick start system according to claim 1, characterized in that: The baseboard management controller includes: a static random access memory; After reading the device data of the universal serial bus device, the baseboard management controller stores the device data in the static random access memory; The basic input and output system reads the space of the static random access memory in the baseboard management controller to obtain the device data.
8. The server quick start system according to claim 7, characterized in that: The baseboard management controller sets a storage flag bit of the static random access memory during the process of storing device data in the static random access memory; When the basic input and output system reads the static random access memory and finds that the storage flag bit exists, continue to read the device data; Or, when the basic input and output system reads the static random access memory and the storage flag does not exist, the reading of the device data is stopped.
9. The server quick start system according to claim 2, characterized in that: The second operating system reads the device data of the universal serial bus device, including: The second operating system reads the hot key value or storage file of the universal serial bus device.
10. The server quick start system according to claim 2, characterized in that: The second operating system is a real-time operating system.
11. A quick startup method, characterized in that: include: When the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, so that the baseboard management controller reads the device data of the universal serial bus device; wherein the device data is used for server startup configuration; In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
12. The quick start method according to claim 11, characterized in that: The method for acquiring device data includes: The baseboard management controller starts the first operating system to start the real-time performance monitoring interface service, and at the same time starts the second operating system to read the device data of the universal serial bus device through the second operating system; The response time of the first operating system is greater than the response time of the second operating system.
13. The fast startup method according to claim 11, characterized in that: When the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller, including: When the server starts, the processor receives a control authority transfer instruction sent by the authority controller, and the processor transfers the control authority of the multiplexer to the baseboard management controller, so that after the baseboard management controller obtains the control authority of the multiplexer, it connects the baseboard management controller with the universal serial bus device through the multiplexer.
14. The fast startup method according to claim 13, characterized in that: When the server is started, after the step of transferring the processor's control authority over the multiplexer to the baseboard management controller so that the baseboard management controller reads the device data of the universal serial bus device, the method further includes: The processor receives a control authority transfer instruction sent by the authority controller to transfer the control authority of the multiplexer from the baseboard management controller to the processor; After obtaining the control authority of the multiplexer, the processor connects the processor and the universal serial bus device through the multiplexer.
15. The fast startup method according to claim 12, characterized in that: Before the step of the baseboard management controller reading the device data of the universal serial bus device through the second operating system, the step further includes: After starting the second operating system, loading a universal serial bus controller driver; In the case where the baseboard management controller successfully loads the universal serial bus controller driver, identifying and initializing the universal serial bus device to read device data of the universal serial bus device; In the case that the baseboard management controller fails to load the universal serial bus controller driver, the universal serial bus controller driver is uninstalled and the universal serial bus controller driver is reloaded.
16. The fast startup method according to claim 11, characterized in that: When the server is started, the processor transfers the control authority of the multiplexer to the baseboard management controller so that the baseboard management controller reads the device data of the universal serial bus device, and further includes: The baseboard management controller stores the device data in a static random access memory of the baseboard management controller, and sets a storage flag bit for the device data; When the basic input and output system reads the static random access memory and finds that the storage flag bit exists, continue to read the device data; Or, when the basic input and output system reads the static random access memory and the storage flag does not exist, the reading of the device data is stopped.
17. The fast startup method according to claim 11, characterized in that: The device data includes at least one of the following: a hot key value and a storage file of the universal serial bus device.
18. A quick start device, characterized in that: include: A baseboard management controller, a multiplexer and a processor, the multiplexer being connected to a universal serial bus device; Wherein, the multiplexer is used to connect the baseboard management controller and the universal serial bus device when the server is started, and the baseboard management controller reads the device data of the universal serial bus device; wherein, the device data is used to perform server startup configuration; In the pre-extensible firmware interface initialization phase, the basic input / output system in the processor reads the device data acquired by the baseboard management controller from the baseboard management controller, and then the basic input / output system starts the real-time performance monitoring interface service and memory initialization in the pre-extensible firmware interface initialization phase.
19. The fast startup device according to claim 18, characterized in that: The multiplexer is also used to: After the baseboard management controller reads the device data of the universal serial bus device, the state of connecting the baseboard management controller and the universal serial bus device is switched to connecting the processor and the universal serial bus device.
20. The fast startup device according to claim 18, characterized in that: The device also includes: an authority controller; The authority controller is used to transfer the control authority of the multiplexer to the baseboard management controller when the server is started; The authority controller is used for transferring the control authority of the multiplexer from the baseboard management controller to the processor when the processor reads the device data acquired by the baseboard management controller.
21. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the fast startup method according to any one of claims 11 to 17 is implemented.
22. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fast startup method according to any one of claims 11 to 17 is implemented.
23. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the fast startup method according to any one of claims 11 to 17 is implemented.
Citation Information
Patent Citations
BIOS booting operation system method and device, equipment and medium
CN108829449A
Method and device for accessing USB (Universal Serial Bus) equipment in starting stage of operating system, medium and terminal
CN117251217A
Computer system and operation system loading method
US20130031343A1
Computer system having flash memory bios which can be accessed while protected mode operating system is running
US5987536A
