BIOS flash memory data reading method and device, electronic equipment and storage medium
Receive BMC management interface access requests through the browser, control the BMC to read BIOS flash data when the server state is allowed and generate download channels, solving the problems of high cost and professional dependence in traditional methods, and achieving simple and easy data acquisition.
Patent Information
- Application Number
- CN202510318729.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-07-29
AI Technical Summary
Traditional methods require staff to go to the site to use the burner to read BIOS FLASH content, resulting in high labor and time costs, high professional qualities, limited by venue and equipment, and low efficiency.
Receive BMC management interface access requests through the browser, control the BMC to read BIOS flash data when the server's running state meets the conditions, and generate a download channel. Users can download data through the browser.
No on-site operation required, reducing labor and time costs, simplifying the BIOS flash data acquisition process, and avoiding dependence on professional knowledge.
Smart Images

Figure CN120386745A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technologies, and in particular, to a method, apparatus, electronic device, and storage medium for reading BIOS flash data. Background Art
[0002] In the field of server management, the BIOS (Basic Input / Output System) is the software that runs first after the server is powered on, and undertakes key tasks such as system self-check, self-start program, and controlling the basic programs after the computer starts. The BIOS file is usually compiled from relevant codes, and these compiled BIOS files generally exist in binary format and are stored in the BIOS FLASH. As a non-volatile memory (BIOS flash) for storing the BIOS file, the BIOS FLASH plays a crucial role during the operation of the server.
[0003] However, in practical applications, the content in the BIOS FLASH may change due to various reasons, such as the BIOS modifying its own options, the BMC (Baseboard Management Controller) refreshing the BIOS, or the external PCIE (Peripheral Component Interconnect Express) device running relevant drivers. These changes sometimes cause unexpected changes in the BIOS variable area or code area, thus affecting the normal startup or operation of the server. When such problems occur, the traditional solution is to send staff to the site to use a burner to read the content of the BIOS FLASH on the problem server for BIOS R & D personnel to analyze. However, the traditional method requires staff to arrive at the site in person, with high human and time costs. Moreover, using a burner to read the content of the BIOS FLASH requires a certain technical level and operation experience, and has high requirements for the professional quality of the staff. In addition, the use of the burner may be restricted by conditions such as the site and equipment, thus reducing efficiency. Summary of the Invention
[0004] Embodiments of this application creatively provide a method, apparatus, electronic device, and storage medium for reading BIOS flash data to solve the above technical problems.
[0005] According to a first aspect of this application, a method for reading BIOS flash data is provided, and the method includes:
[0006] Receiving a BMC management interface access request triggered by a user based on a browser, and in response to the BMC management interface access request, presenting the BMC management interface of the target BMC in the browser;
[0007] When a BIOS flash data reading instruction is received on the BMC management interface based on the target BMC, control the target BMC to read the BIOS flash data when the server running state meets the reading conditions, and feedback a reading completion signal;
[0008] When a reading completion signal fed back by the target BMC is received, generate a BIOS flash data download channel, and display the BIOS flash data download channel on the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel.
[0009] According to an embodiment of the present application, the method further includes:
[0010] Receive a BIOS flash data download instruction triggered by the user based on the BIOS flash data download channel;
[0011] In response to the BIOS flash data download instruction, download the BIOS flash data to the local.
[0012] According to an embodiment of the present application, the displaying the BIOS flash data download channel on the BMC management interface includes:
[0013] Display a reading completion prompt on the BMC management interface, and display a download button for the BIOS flash data download channel.
[0014] According to an embodiment of the present application, the downloading the BIOS flash data to the local in response to the BIOS flash data download instruction includes:
[0015] In response to the BIOS flash data download instruction, send a BIOS flash data acquisition signal to the target BMC, so that the target BMC packs the previously read BIOS flash data into a BIOS binary file in response to the BIOS flash data acquisition signal, and feedbacks the BIOS binary file;
[0016] Download the BIOS binary file to the local based on the web page download interface.
[0017] According to an embodiment of the present application, the BMC management interface access request carries a BMC access address; correspondingly,
[0018] The receiving a BMC management interface access request triggered by the user based on a browser, and displaying the BMC management interface of the target BMC in the browser in response to the BMC management interface access request includes:
[0019] Receive the BMC access address input by the user based on the browser, and display the BMC login interface of the target BMC in the browser according to the BMC access address;
[0020] Receive the BMC authentication data input by the user based on the BMC login interface, and determine whether the BMC access permission is available based on the BMC authentication data;
[0021] When it is determined that the BMC access permission is available, display the BMC management interface of the target BMC in the browser.
[0022] According to an embodiment of the present application, the target BMC determines whether the server operating state meets the reading condition through the following operations:
[0023] Obtain the power state;
[0024] When the power state shows that the main board is powered on, obtain the power-on self-test data, and determine the BIOS operating state according to the power-on self-test data; when the BIOS operating state shows that the BIOS initialization is completed, determine that the server operating state meets the reading condition; when the BIOS operating state shows that the BIOS initialization is not completed, determine that the server operating state does not meet the reading condition;
[0025] When the power state shows that the main board is not powered on, determine that the server operating state meets the reading condition.
[0026] According to an embodiment of the present application, the target BMC reads the BIOS flash data through the following operations when the server operating state meets the reading condition:
[0027] When the server operating state meets the reading condition, send a BIOS channel switching signal to the communication accessor, so that the communication accessor switches the communication bus from the core central processing unit to the target BMC in response to the BIOS channel switching signal;
[0028] Read the BIOS flash data based on the switched communication bus.
[0029] According to an embodiment of the present application, the reading of the BIOS flash data based on the switched communication bus includes:
[0030] Obtain the BIOS update data, where the BIOS update data includes the start address and end address of the BIOS flash;
[0031] Read the BIOS flash data through the communication bus based on the BIOS update data, and determine the end of reading after reading the end address of the BIOS flash.
[0032] According to an embodiment of the present application, after reading the BIOS flash data based on the switched communication bus, the method further includes:
[0033] Storing the read BIOS flash data into the internal storage space of the BMC or an external memory card of the BMC.
[0034] According to a second aspect of the present application, there is provided a BIOS flash data reading device, the device includes:
[0035] A first display module, configured to receive a BMC management interface access request triggered by a user based on a browser, and display the BMC management interface of the target BMC in the browser in response to the BMC management interface access request;
[0036] A control module, configured to control the target BMC to read the BIOS flash data when the server running state meets the reading condition and feedback a reading completion signal when receiving a BIOS flash data reading instruction based on the BMC management interface of the target BMC;
[0037] A generation and display module, configured to generate a BIOS flash data download channel when receiving the reading completion signal feedback by the target BMC, and display the BIOS flash data download channel in the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel.
[0038] According to an embodiment of the present application, the device further includes:
[0039] A receiving module, configured to receive a BIOS flash data download instruction triggered by the user based on the BIOS flash data download channel;
[0040] A download module, configured to download the BIOS flash data to the local in response to the BIOS flash data download instruction.
[0041] According to an embodiment of the present application, the download module includes:
[0042] A read control sub-module, configured to send a BIOS flash data acquisition signal to the target BMC in response to the BIOS flash data download instruction, so that the target BMC packs the previously read BIOS flash data into a BIOS binary file in response to the BIOS flash data acquisition signal and feedbacks the BIOS binary file;
[0043] A download sub-module, configured to download the BIOS binary file to the local based on a web download interface.
[0044] According to an embodiment of the present application, the BMC management interface access request carries a BMC access address; correspondingly,
[0045] The first display module includes:
[0046] A first display sub-module, configured to receive a BMC access address input by a user based on a browser, and display a BMC login interface of a target BMC in the browser according to the BMC access address;
[0047] A judgment sub-module, configured to receive BMC authentication data input by the user based on the BMC login interface, and judge whether there is BMC access permission based on the BMC authentication data;
[0048] A second display sub-module, configured to display a BMC management interface of the target BMC in the browser when it is determined that there is BMC access permission.
[0049] According to a third aspect of the present application, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the above-mentioned BIOS flash data reading methods of the present application.
[0050] According to a fourth aspect of the present application, there is provided a computer-readable storage medium storing computer instructions, and the computer instructions are used to cause the computer to execute any one of the above-mentioned BIOS flash data reading methods of the present application.
[0051] A BIOS flash data reading method, device, electronic device and storage medium provided by an embodiment of the present application receive a BMC management interface access request triggered by a user based on a browser, and in response to the BMC management interface access request, display a BMC management interface of a target BMC in the browser; when a BIOS flash data reading instruction is received based on the BMC management interface of the target BMC, control the target BMC to read the BIOS flash data when the server running state meets the reading condition, and feedback a reading completion signal; when a reading completion signal fed back by the target BMC is received, generate a BIOS flash data download channel, and display the BIOS flash data download channel in the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel. By providing a browser-based BIOS flash data reading method, it effectively avoids the cumbersome situation where the user needs to be present on site or use external devices such as programmers to obtain BIOS flash data, and effectively reduces the labor and time costs. At the same time, during the process of reading the BIOS flash data, any additional operations of the user are avoided, eliminating the dependence on the user's professional knowledge, and making the operation process more simple and easy.
[0052] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] By referring to the accompanying drawings and reading the following detailed description, the above and other objects, features, and advantages of the exemplary embodiments of the present application will become readily understandable. In the drawings, several embodiments of the present application are shown in an exemplary rather than restrictive manner, where:
[0054] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts.
[0055] Figure 1 FIG. shows a schematic implementation flow diagram of the BIOS flash memory data reading method provided by an embodiment of the present application;
[0056] Figure 2 FIG. shows a schematic implementation flow diagram of the download operation of the BIOS flash memory data reading method provided by an embodiment of the present application;
[0057] Figure 3 FIG. shows a schematic implementation flow diagram of the authentication operation of the BIOS flash memory data reading method provided by an embodiment of the present application;
[0058] Figure 4 FIG. shows a schematic implementation flow diagram of the server running state judgment operation of the BIOS flash memory data reading method provided by an embodiment of the present application;
[0059] Figure 5 FIG. shows a schematic implementation flow diagram of the BIOS flash memory data reading operation of the BIOS flash memory data reading method provided by an embodiment of the present application;
[0060] Figure 6 FIG. shows a schematic structural diagram of the BIOS flash memory data reading device provided by an embodiment of the present application;
[0061] Figure 7 FIG. shows a schematic composition structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0062] To make the objectives, features, and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present application.
[0063] The technical solutions of the present application will be further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments.
[0064] To enable those skilled in the art to better understand the present application, the concepts involved in the present application are described below.
[0065] WEB browser: WEB (World Wide Web) is the global wide area network, also known as the World Wide Web. It is a global, dynamically interactive, cross-platform distributed graphical information system based on hypertext and HTTP (HyperText Transfer Protocol). It is a network service built on the Internet, providing a graphical and easy-to-access intuitive interface for browsers to search for and view information on the Internet. The documents and hyperlinks therein organize the information nodes on the Internet into an interconnected network structure. Among them, hypertext is a user interface method used to display text and content related to the text. Currently, hypertext generally exists in the form of electronic documents, and the text therein contains hypertext links that can be linked to other fields or documents, allowing direct switching from the current reading position to the text pointed to by the hypertext link; HTTP is one of the most widely used network protocols on the Internet. A WEB browser is a software that can display files in a web server or file system and allow users to interact with the files. It is used to display text, images, and other information in the World Wide Web or local area network, etc. It should be noted that unless otherwise specified, the browsers mentioned in this article all refer to WEB browsers.
[0066] BMC: BMC is a management controller on the current server. It uses the IPMI protocol to provide an access interface externally, follows the IPMI protocol, and provides a unified access interface externally. BMC has a hardware interface and software. As a unique module of the server, it provides temperature, voltage, fan, bus monitoring, and can also provide a management interface for facilitating remote management of the server. And BMC uses an independent power supply and remains in a working state even when the system is shut down.
[0067] BIOS: BIOS is an important component in a computer. It is a set of firmware pre-installed on the computer motherboard and is also the first software to run after the server is powered on. Functionally, BIOS is mainly responsible for system self-check programs and system self-boot programs, and also controls the basic programs after the computer starts, including hard disk drives (such as preferentially selecting a DVD or USB boot disk during the installation process), keyboard settings, floppy disk drives, memory, and related devices. The BIOS file is compiled from the relevant code of the BIOS, and the compiled BIOS file is generally a.bin or.fd file. Through a burner, the BIOS file is written into the BIOS FLASH to generate BIOS flash data (i.e., BIOS FLSAH data).
[0068] Figure 1 The figure shows a schematic implementation flow diagram of the BIOS flash data reading method provided by the embodiments of the present application.
[0069] Refer to Figure 1 , the embodiments of the present application provide a BIOS flash data reading method, which includes: Operation 101, receiving a BMC management interface access request triggered by the user based on a browser, and displaying the BMC management interface of the target BMC in the browser in response to the BMC management interface access request; Operation 102, when receiving a BIOS flash data reading instruction on the BMC management interface based on the target BMC, controlling the target BMC to read the BIOS flash data when the server running state meets the reading condition, and feeding back a reading completion signal; Operation 103, when receiving the reading completion signal fed back by the target BMC, generating a BIOS flash data download channel and displaying the BIOS flash data download channel on the BMC management interface for the user to download the BIOS flash data based on the BIOS flash data download channel.
[0070] In Operation 101, receive a BMC management interface access request triggered by the user based on a browser, and display the BMC management interface of the target BMC in the browser in response to the BMC management interface access request.
[0071] When the user needs to read the BIOS flash data, compared with the traditional way of having a staff member on-site to read, the embodiments of the present application provide a browser-based BIOS flash data reading method. As long as the client where the user is located is connected to the BMC in the same sub-network, the user can obtain the corresponding BIOS flash data from the BMC based on the browser through the client.
[0072] Specifically, the user can open a WEB browser through the local client and trigger a BMC management interface access request based on the WEB browser. Subsequently, the client displays the BMC management interface on the WEB browser based on the BMC management interface access request. Herein, the client can refer to personal terminal devices such as a PC (Personal Computer).
[0073] Furthermore, the BMC management interface can be regarded as the user interaction interface of the BMC management system. Through this interface, the user can access and operate various functions provided by the BMC management system. The BMC management system is a comprehensive management platform that provides management for multiple BMCs. In view of this, in order to read the BIOS flash data of a specific BMC, when receiving the BMC management interface access request, it is also necessary to locate the BIOS management interface to the BMC management interface of the target BMC based on the analysis of the BMC management interface access request, and display the BMC management interface of the target BMC in the WEB browser for the user to perform relevant operations on the corresponding target BMC based on the BMC management interface of the target BMC.
[0074] In an embodiment of the present application, the BMC management system has functions such as monitoring, managing, and controlling the hardware status, health status, power management, event logs, remote access, etc. of the server. In order for the user to use these functions, these functions can be displayed in the BMC management interface according to actual needs. For example, the following functions can be displayed in the BMC interface:
[0075] Device information management: Record and display basic information such as the model, manufacturer, production date, etc. of the server, provide production and technical information of each component (such as CPU, memory, hard disk, etc.), and display detailed information of hardware such as the chassis and motherboard;
[0076] Server running status monitoring and management: Real-time monitor the health status of each component of the server, including key parameters such as temperature and voltage, and intuitively display the running status of the server through a graphical interface to facilitate administrators to quickly identify problems;
[0077] Remote control management: Support remote power on / off and restart of the server to improve operation and maintenance efficiency, provide firmware update functions to ensure the latestness and security of the server software, and support system security settings such as user management and permission allocation;
[0078] Maintenance and log management: Record and display the operation logs and hardware event logs of the server to facilitate troubleshooting;
[0079] User management: Support multi-user login and can set the permissions and roles of different users;
[0080] BIOS Management: Allows remote configuration and update of BIOS settings;
[0081] Alarm Management: Monitors the running status of the server in real time and sends alarm notifications in a timely manner when abnormalities are detected;
[0082] Virtual Media Control Function: Allows remote mounting of optical disc images or USB images via the network for installation or maintenance operations;
[0083] Remote Console: Provides KVM (Keyboard Video Mouse, multi-computer controller) function, allowing administrators to access the console of the server operating system through a set of keyboard, monitor, and mouse.
[0084] In operation 102, when a BIOS flash data reading instruction is received on the BMC management interface based on the target BMC, control the target BMC to read the BIOS flash data when the server running status meets the reading conditions, and feedback a reading completion signal.
[0085] After presenting the BMC management interface of the target BMC to the user based on a WEB browser, the BMC management interface is configured with a button for obtaining BIOS flash data. When a trigger operation on the button for obtaining BIOS flash data by the user is received, it is determined that a BIOS flash data reading instruction for the target BMC is received.
[0086] The BMC management interface only provides a convenient way for users to read BIOS flash data to avoid professional requirements for users, while the specific reading of BIOS flash data is still based on the BMC. After the BMC management interface is triggered with a BIOS flash data reading instruction, the client logged in to the WEB browser will send a signal to the target BMC to control the BMC to read the BIOS flash data, so as to control the BMC to read the BIOS flash data and feedback a reading completion signal after the BIOS flash data reading is completed.
[0087] Among them, in order to ensure the security and normal operation of the server, when controlling the target BMC to obtain BIOS flash data, it is necessary to control the target BMC to obtain the BIOS flash data again when the server running status meets the reading conditions. That is, when the target BMC obtains the BIOS flash data, it first checks whether the current running status of the server meets the preset reading conditions, and then obtains the BIOS flash data when the reading conditions are met.
[0088] In an embodiment of the present application, the reading conditions may include that the server is in a normal running state, has sufficient system resources to execute the reading operation, has obtained the necessary permissions, etc.
[0089] In operation 103, when receiving the read completion signal fed back by the target BMC, a BIOS flash data download channel is generated and displayed on the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel.
[0090] When receiving the read completion signal from the target BMC, it indicates that the BIOS flash data has been successfully read. At this time, a BIOS flash data download channel is created. Among them, the BIOS flash data download channel can be a temporary network link, the access permission of a file transfer protocol (such as FTP, SFTP, etc.), or a specific API interface for the user to download the BIOS flash data.
[0091] And in order to facilitate the user to read the BIOS flash data, after generating the BIOS flash data download channel, the BIOS flash data download channel is also displayed on the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel.
[0092] In an embodiment of the present application, displaying the BIOS flash data download channel on the BMC management interface includes: displaying a read completion prompt on the BMC management interface and showing a download button for the BIOS flash data download channel.
[0093] Displaying the BIOS flash data download channel on the BMC management interface usually means adding a download button or link for the BIOS flash data on the BMC management interface, so that the user can access and download the BIOS flash data by clicking this button or link. Among them, in order to enable the user to read the BIOS flash data in time, a read completion prompt is also displayed on the BMC management interface, so that the user can click the download button or link for the BIOS flash data in time based on the read completion prompt displayed on the BMC management interface, and avoid the download button or link timing out and becoming invalid.
[0094] Thus, in the embodiment of the present application, by providing a browser-based BIOS flash data reading method, it effectively avoids the cumbersome situation that the user needs to be present on site or use external devices such as programmers to obtain the BIOS flash data, and effectively reduces the labor and time costs. At the same time, during the process of reading the BIOS flash data, any additional operations of the user are avoided, the dependence on the user's professional knowledge is eliminated, and the operation process is made more simple and easy.
[0095] In an embodiment of the present application, after displaying the BIOS flash data acquisition channel on the BMC management interface, the BIOS flash data download instruction triggered by the user based on the BIOS flash data download channel is also received, and in response to the BIOS flash data download instruction, the BIOS flash data is downloaded to the local.
[0096] After presenting the download channel on the BMC management interface, receive the user's click on the download button or link, determine that the user triggers the BIOS flash data download instruction, and download the BIOS flash data to the local. Among them, when the user triggers the BIOS flash data download instruction, the download location can be configured in the BIOS flash data download instruction. After the user triggers the BIOS flash data download instruction, the BIOS flash data is downloaded to the download location carried in the instruction.
[0097] Furthermore, it is also possible not to configure the download location in the BIOS flash data download instruction, but to download the BIOS flash data to the default location of the client according to the pre-configured default location.
[0098] Figure 2 It shows a schematic diagram of the implementation process of the download operation of the BIOS flash data reading method provided by the embodiment of the present application.
[0099] Reference Figure 2 , in an embodiment of the present application, in response to the BIOS flash data download instruction, downloading the BIOS flash data to the local includes: Operation 201, in response to the BIOS flash data download instruction, sending a BIOS flash data acquisition signal to the target BMC, so that the BMC packs the previously read BIOS flash data into a BIOS binary file in response to the BIOS flash data acquisition signal and feeds back the BIOS binary file; Operation 202, downloading the BIOS binary file to the local based on the web download interface.
[0100] In Operation 201, in response to the BIOS flash data download instruction, sending a BIOS flash data acquisition signal to the target BMC, so that the target BMC packs the previously read BIOS flash data into a BIOS binary file in response to the BIOS flash data acquisition signal and feeds back the BIOS binary file.
[0101] In the case of receiving the BIOS flash data download instruction through the BMC management interface, send a BIOS flash data acquisition signal to the target BMC, so that the BMC performs an acquisition action based on the BIOS flash data acquisition signal.
[0102] After receiving the BIOS flash data acquisition signal, the BMC packs the previously read BIOS flash data and feeds back the packed file. Among them, the packing process of the BIOS flash data is to pack the BIOS flash data into a BIOS binary file in binary format.
[0103] In Operation 202, download the BIOS binary file to the local based on the web download interface.
[0104] After receiving the BIOS binary file, the BIOS binary file can be downloaded to the local through the HTTP download interface of the WEB browser. Here, downloading to the local refers to downloading to a specified location on the client where the user is located.
[0105] Figure 3 The figure shows a schematic diagram of the implementation process of the authentication operation of the BIOS flash data reading method provided by the embodiment of the present application.
[0106] Refer to Figure 3 , in an embodiment of the present application, the BMC management interface access request carries the BMC access address. In the above operation 101, receiving the BMC management interface access request triggered by the user based on the browser, and in response to the BMC management interface access request, displaying the BMC management interface of the target BMC in the browser, including: operation 301, receiving the BMC access address input by the user based on the browser, and displaying the BMC login interface of the target BMC in the browser according to the BMC access address; operation 302, receiving the BMC authentication data input by the user based on the BMC login interface, and judging whether there is BMC access permission based on the BMC authentication data; operation 303, when it is judged that there is BMC access permission, displaying the BMC management interface of the target BMC in the browser.
[0107] In operation 301, receive the BMC access address input by the user based on the browser, and display the BMC login interface of the target BMC in the browser according to the BMC access address.
[0108] When the user triggers the BMC management interface access request through the WEB browser, the user also synchronously configures the BMC access address in the BMC management interface access request. The WEB browser first accesses the target BMC based on the BMC access address. Here, the BMC access address can be the IP address of the BMC, and the IP address of the BMC can be obtained by the user in advance by entering the BIOS settings or by analyzing the serial port information of the BMC.
[0109] After the browser receives the BMC access address input by the user, in order to ensure data security, it first jumps to the BMC login interface. Here, the BMC login interface is used to identify the BMC permissions of the user, and jumps to the BMC management interface of the BMC management system when the permission identification is passed.
[0110] In operation 302, receive the BMC authentication data input by the user based on the BMC login interface, and judge whether there is BMC access permission based on the BMC authentication data.
[0111] After the BMC login interface is displayed in the browser, receive the BMC authentication data input by the user based on the BMC login interface, and determine whether the user has the BMC access permission according to the BMC authentication data.
[0112] In an embodiment of the present application, the BMC authentication data includes a BMC account and a BMC password. Among them, the BMC account can be divided into multiple permission types, and different permission types correspond to different permission levels. For example, an administer (administrator) account, a user (ordinary user) account, an operator (technician) account, etc.
[0113] In operation 303, when it is determined that the user has the BMC access permission, display the BMC management interface of the target BMC in the browser.
[0114] The BMC management system stores in advance multiple BMC accounts with permissions and the corresponding BMC passwords. After the user inputs the BMC authentication data based on the BMC login interface, the BMC management system authenticates the BMC account and the BMC password in the BMC authentication data. If the authentication is passed, it is determined that the current user has the BMC access permission, and the BMC management interface of the target BMC is jumped in the browser.
[0115] Figure 4 The figure shows a schematic implementation flow diagram of the server running state judgment operation of the BIOS flash data reading method provided by the embodiment of the present application.
[0116] Reference Figure 4 , in an embodiment of the present application, the target BMC determines whether the server running state meets the reading condition through the following operations: operation 401, obtain the power state; operation 402, when the power state shows that the main board is powered on, obtain the power-on self-test data, and determine the BIOS running state according to the power-on self-test data; when the BIOS running state shows that the BIOS initialization is completed, determine that the server running state meets the reading condition; when the BIOS running state shows that the BIOS initialization is not completed, determine that the server running state does not meet the reading condition; operation 403, when the power state shows that the main board is not powered on, determine that the server running state meets the reading condition.
[0117] In operation 401, obtain the power state.
[0118] When receiving a BIOS flash data reading instruction, the client where the user is located will send a corresponding reading signal to the target BMC based on a WEB browser. Among them, the WEB browser sending a reading signal to the target BMC can be regarded as the client transmitting the reading signal to the chip of the target BMC through a LAN (Local Area Network) signal based on the WEB browser.
[0119] Since the BIOS does not allow read and write operations during operation, otherwise it will cause abnormal operation of the BIOS. Therefore, after receiving the reading signal, the target BMC also needs to detect the current server operation status to determine whether the BIOS is in an operating state based on the server operation status.
[0120] The operation of the BIOS can be regarded as the BIOS being initialized in the powered-on state. Therefore, first, it is necessary to obtain the power status and determine whether it is powered on according to the power status.
[0121] In operation 402, when the power status indicates that the motherboard is powered on, obtain the power-on self-test data and determine the BIOS operation status according to the power-on self-test data; when the BIOS operation status indicates that the BIOS initialization is completed, determine that the server operation status meets the reading conditions; when the BIOS operation status indicates that the BIOS initialization is not completed, determine that the server operation status does not meet the reading conditions.
[0122] The BIOS is determined to be running only when it is powered on and in the initialization stage. Therefore, after determining that the power status indicates power-on, it is also necessary to determine the operation status of the BIOS.
[0123] Specifically, the BMC can determine the current operation status of the BIOS through POST CODE (power-on self-test data). Among them, POST CODE is the code information sent to the BMC during the BIOS startup stage.
[0124] For example, if it is powered on, then judge the POST CODE. If the POST CODE has already run to the OS (Operating System) loading stage, it means that the operation status of the BIOS is initialization completed, then determine that the current server operation status meets the reading conditions and the content in the BIOS FLASH can be read, otherwise it does not meet the reading conditions.
[0125] In operation 403, when the power status indicates that the motherboard is not powered on, determine that the server operation status meets the reading conditions.
[0126] If the power status indicates that the motherboard is not powered on, then determine that the BIOS is not running and directly determine that the current server operation status meets the reading conditions.
[0127] Figure 5 It shows a schematic diagram of the implementation process of the BIOS flash data reading operation of the BIOS flash data reading method provided by the embodiment of the present application.
[0128] Refer to Figure 5 In an embodiment of the present application, the target BMC reads the BIOS flash data when the server running state meets the reading condition through the following operations: Operation 501, when the server running state meets the reading condition, send a BIOS channel switching signal to the communication accessor, so that the communication accessor switches the communication bus from the core central processor to the target BMC in response to the BIOS channel switching signal; Operation 502, read the BIOS flash data based on the switched communication bus.
[0129] In Operation 501, when the server running state meets the reading condition, send a BIOS channel switching signal to the communication accessor, so that the communication accessor switches the communication bus from the core central processor to the target BMC in response to the BIOS channel switching signal.
[0130] In an embodiment of the present application, the communication accessor refers to a CPLD (Complex Programmable Logic Device), and the BMC reads the BIOS chip through the SPI (Serial Peripheral Interface) communication bus of the complex programmable logic device. Therefore, when the server running state meets the acquisition condition, the target BMC sends a channel switching signal to the complex programmable logic device for switching the communication bus, so that the complex programmable logic device switches the BIOS SPI signal to the BMC, enabling the BMC to read the BIOS flash data.
[0131] When BIOS flashing is not performed, the complex programmable logic device defaults to giving the SPI communication bus to the core central controller CPU0. After receiving the BIOS channel switching signal, the complex programmable logic device switches the SPI communication bus from the core central processor to the target BMC.
[0132] In an embodiment of the present application, after the target BMC finishes reading, the target BMC also sends a communication bus reset signal to the complex programmable logic device, so that the complex programmable logic device switches the communication bus back to the default state in response to the communication bus reset signal.
[0133] In Operation 502, read the BIOS flash data based on the switched communication bus.
[0134] After the complex programmable logic device switches the communication bus to the target BMC, the target BMC reads the BIOS flash data through the SPI communication bus.
[0135] In an embodiment of the present application, reading the BIOS flash data based on the switched communication bus includes: obtaining BIOS update data, where the BIOS update data includes the start address and end address of the BIOS flash; reading the BIOS flash data through the communication bus based on the BIOS update data, and determining the end of reading after reading the end address of the BIOS flash.
[0136] Before the BIOS update, the start address and end address of the BIOS FLASH are preset in advance, and the start address and end address of the BIOS FLASH are stored in the BIOS update data after the BIOS update. The start address and end address determine the update and reading range of the updated BIOS flash data.
[0137] When it is necessary to read the BIOS flash data, it is first necessary to obtain the BIOS update data to determine the reading range of the BIOS flash data. After obtaining the reading range, the target BMC reads the BIOS flash data based on the SPI communication bus, and determines the end of reading when the end address of the BIOS flash is read.
[0138] In an embodiment of the present application, after reading the BIOS flash data based on the switched communication bus, the method further includes: storing the read BIOS flash data in the internal storage space of the BMC or an external memory card of the BMC.
[0139] After the BMC performs a read operation on the BIOS FLASH data through the SPI communication bus, the read content is also stored in its own memory space or an external memory card of the BMC.
[0140] The FLASH of the BMC has its own storage space, and there is also an external TF (Trans Flash, memory) card for the BMC to use as a storage space. Among them, considering that the size of the BIOS firmware binary in the BIOS FLASH varies according to different platforms, generally the minimum is 8MB and the maximum is 16MB. In the embodiment of the present application, it is preferably to store the BIOS flash data read by the BMC in the external TF card. In this way, when the user needs to read the BIOS flash data, the BIOS flash data stored by the BMC itself can be read.
[0141] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below with specific application examples.
[0142] In this specific application example of the present application, the BIOS flash data reading method is also called the method of using BMC to obtain the BIOS FLASH content. The BIOS FLASH content is the BIOS flash data. This specific application example includes:
[0143] Step S10, the PC side receives the user's login request for the BMC WEB.
[0144] The BMC WEB is the BMC management interface. After the BMC program is loaded and connected to the network normally, the user can obtain the IP of the BMC by entering the BIOS SETUP (settings) or through the serial port information of the BMC. Then, connect the personal computer PC to the same network as the BMC. After entering the corresponding IP in the WEB browser, the BMC WEB corresponding to the IP can be opened.
[0145] Among them, the specific process of step S10 is as follows:
[0146] Step S11, on the premise that the personal computer and the BMC network are in the same subnet, receive the BMC IP input by the user in the address bar of the browser and log in to the BMC WEB.
[0147] Step S12, the browser jumps to the login interface of the BMC WEB. At this time, if a certificate problem prompt is encountered, directly skip the verification.
[0148] Step S13, receive the BMC account password entered by the user on the BMC WEB page and log in to the BMC WEB interface.
[0149] Among them, the BMC account has many permission types, such as administer, user, operator, etc. Generally, to have the highest permission, you need to log in with the administer account password.
[0150] Step S20, receive the BIOS FLASH reading function selected by the user on the BMC WEB interface.
[0151] The BIOS FLASH function can be displayed on the BIOS management module interface of the BMC WEB. When the user needs to read the BIOS FLASH content, click the BIOS FLASH function.
[0152] Among them, the specific process of step S20 is as follows:
[0153] Step S21, display the function option of reading the BIOS FLASH on the BMC WEB.
[0154] Step S22: Receive the user's click on the read button of the BMC WEB. After the BMC WEB read button is clicked, the WEB side (PC side) transmits the signal that needs to read the BIOS FLASH to the BMC chip through the LAN signal.
[0155] Step S23: After the BMC receives the read signal, it detects the current running status of the server.
[0156] Since the BIOS does not allow read and write operations during operation, otherwise it will cause abnormal operation of the BIOS. Therefore, when the BMC receives the signal to read the BIOS FLASH, it understands the current running status of the BIOS through signals such as POST CODE.
[0157] POST CODE is the code information sent to the BMC during the BIOS startup phase. The approximate running phase of the current BIOS can be understood through the POST CODE. The BMC can judge the BIOS running status in two cases from the power-on state of the power supply: 1. If the motherboard is powered on, judge the POST CODE. If it has already run to the OS phase, the content in the BIOS FLASH can be read; 2. If the motherboard is not powered on, the content in the BIOS FLASH can be directly read.
[0158] Step S24: After meeting the read conditions, the BMC notifies the CPLD to switch the BIOS SPI signal to the BMC.
[0159] The BMC reads the BIOS chip through the SPI communication bus of the CPLD. When the BIOS is not being refreshed, the CPLD defaults to giving the SPI channel to CPU0. When the BMC needs to read and write the BIOS FLASH, it notifies the CPLD to switch the BIOS SPI signal to the BMC. After the BMC operates on the BIOS FLASH, it will let the CPLD switch the BIOS SPI signal back to the default state.
[0160] Step S25: The BMC performs a read operation on the BIOS FLASH through SPI and stores the read content in its own memory space or an external TF card.
[0161] The FLASH of the BMC has its own storage space, and there is also an external TF card for the BMC to use as a storage space. Since the size of the BIOS firmware binary in the BIOS FLASH varies according to different platforms, generally the minimum is 8MB and the maximum is 16MB. In this specific application example of the present application, it is preferred to use an external TF card to store the binary file.
[0162] Step S30: Receive the request sent by the user through the BMC WEB to download the read BIOS FLASH content.
[0163] When it is necessary to obtain the BIOS FLASH, the engineer connects to the BMC WEB of the relevant machine through a personal computer as the user, and the content of the BIOS FLASH can be obtained through BMC WEB operations.
[0164] Among them, the specific process of step S30 is as follows:
[0165] Step S31: After the BMC finishes reading the BIOS FLASH, inform the BMC WEB side through the LAN signal.
[0166] Similar to the logic of the BMC updating the BIOS, the BMC reads the content in the BIOS FLASH according to the start address and end address of the BIOS FLASH set during BIOS update, and transfers its content to an external TF card. When the reading and transfer of the end address of the BIOS FLASH are completed, that is, the reading is completed, the BMC sends a completion signal to the BMC WEB side through the LAN signal.
[0167] Step S32: The BMC WEB prompts that the reading is completed and displays the download read result button.
[0168] After receiving the LAN signal of obtaining completion at the BMC WEB side, change the display of the BMC WEB side, add a prompt of obtaining completion, and display the download button.
[0169] Step S33: Receive the user's click on the download button. After detecting the user's click on the download button, the BMC WEB side transfers the information to the BMC chip through the LAN signal, and the BMC program obtains the relevant information.
[0170] Step S34: The BMC reads the BIOS FLASH content in its own memory space and downloads it locally through the interface.
[0171] The BMC program internally executes the packaging logic, reads and packages the binary file of the BIOS flash data, and then transfers it to the BMC WEB side through the LAN signal, and downloads it locally from the BMC WEB side through the HTTP download interface.
[0172] Thus, this specific application example of the present application is different from the previous methods for engineers to obtain BIOS FLASH data. Instead, by leveraging the characteristics of the BMC to read and write the BIOS FLASH, and taking advantage of the convenience of the BMC WEB, it remotely reads the content of the BIOS FLASH and downloads the binary content to the engineer through the HTTP download interface of the BMC WEB. This effectively avoids the entire process where engineers have to go to the computer room, open the computer case, connect the motherboard BIOS FLASH to a personal computer using a burner, and then read through the burner. All that is required is for the engineer's personal computer to be connected to the machine's BMC network and for the engineer to know the corresponding BMC IP address. No other auxiliary devices or software are needed, significantly reducing the time and labor costs and lowering the acquisition threshold. Moreover, the entire process is carried out based on logging in to the relevant BMC account permissions. The BMC also judges the running status of the current machine when reading the BIOS FLASH to prevent the BIOS from malfunctioning due to accidental reading and writing of the BIOS. This ensures the safety and reliability of the entire process of obtaining BIOS flash data.
[0173] Figure 6 The structural schematic diagram of the BIOS flash data reading device provided by the embodiment of the present application is shown.
[0174] Similarly, based on the BIOS flash data reading method as described above, the embodiment of the present application also provides a BIOS flash data reading device, as Figure 6 shown, the device includes:
[0175] The first display module 601 is configured to receive a BMC management interface access request triggered by a user based on a browser, and display the BMC management interface of the target BMC in the browser in response to the BMC management interface access request;
[0176] The control module 602 is configured to, when a BIOS flash data reading instruction is received based on the BMC management interface of the target BMC, control the target BMC to read the BIOS flash data when the server running status meets the reading conditions, and feedback a reading completion signal;
[0177] The generation and display module 603 is configured to, when a reading completion signal fed back by the BMC is received, generate a BIOS flash data download channel and display the BIOS flash data download channel in the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel.
[0178] In an embodiment of the present application, the device further includes:
[0179] The receiving module is configured to receive a BIOS flash data download instruction triggered by a user based on the BIOS flash data download channel;
[0180] A download module, configured to download BIOS flash data to the local in response to a BIOS flash data download instruction.
[0181] In an embodiment of the present application, the download module includes:
[0182] A read control sub-module, configured to send a BIOS flash data acquisition signal to a target BMC in response to a BIOS flash data download instruction, so that the BMC packs the previously read BIOS flash data into a BIOS binary file in response to the BIOS flash data acquisition signal and feeds back the BIOS binary file;
[0183] A download sub-module, configured to download the BIOS binary file to the local based on a web page download interface.
[0184] In an embodiment of the present application, the BMC management interface access request carries a BMC access address; correspondingly,
[0185] The first display module includes:
[0186] A first display sub-module, configured to receive the BMC access address input by the user based on a browser, and display the BMC login interface of the target BMC in the browser according to the BMC access address;
[0187] A judgment sub-module, configured to receive the BMC authentication data input by the user based on the BMC login interface, and judge whether the BMC access permission is available based on the BMC authentication data;
[0188] A second display sub-module, configured to display the BMC management interface of the target BMC in the browser when it is judged that the BMC access permission is available.
[0189] According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium for executing the BIOS flash data reading method described in the embodiments of the present application.
[0190] Figure 7 A schematic block diagram of an electronic device that can be used to implement the embodiments of the present application is shown.
[0191] The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present application described or claimed herein.
[0192] As Figure 7 shown, device 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0193] Multiple components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, an optical disc, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices via a computer network such as the Internet or various telecommunication networks.
[0194] The computing unit 701 can be various general-purpose or dedicated processing components with processing and computing capabilities. Some examples of the computing unit 701 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 701 executes the various methods and processes described above, such as the BIOS flash data reading method. For example, in some embodiments, the BIOS flash data reading method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded or installed onto the device 700 via the ROM 702 or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the BIOS flash data reading method described above can be executed. Alternatively, in other embodiments, the computing unit 701 can be configured to execute the BIOS flash data reading method in any other appropriate manner (e.g., by means of firmware).
[0195] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0196] The program code for implementing the methods of this application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart or block diagram to be implemented. The program code can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.
[0197] In the context of this application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0198] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0199] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a desktop synchronization window or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.
[0200] A computer system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, or a server of a distributed system, or a server combined with a blockchain.
[0201] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved, and no limitations are imposed herein.
[0202] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of this application, "a plurality of" means two or more unless otherwise specifically defined.
[0203] The above are only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for reading BIOS flash data, characterized in that, The method includes: Receiving a BMC management interface access request triggered by a user based on a browser, and in response to the BMC management interface access request, displaying the BMC management interface of the target BMC in the browser; When a BIOS flash data reading instruction is received based on the BMC management interface of the target BMC, controlling the target BMC to read the BIOS flash data when the server running state meets the reading condition, and feeding back a reading completion signal; When the reading completion signal fed back by the target BMC is received, generating a BIOS flash data download channel, and displaying the BIOS flash data download channel in the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel.
2. The method according to claim 1, characterized in that The method further includes: Receiving a BIOS flash data download instruction triggered by the user based on the BIOS flash data download channel; In response to the BIOS flash data download instruction, downloading the BIOS flash data to the local.
3. The method according to claim 1, wherein The displaying the BIOS flash data download channel in the BMC management interface includes: Displaying a reading completion prompt in the BMC management interface and showing a download button for the BIOS flash data download channel.
4. The method according to claim 2, wherein The downloading the BIOS flash data to the local in response to the BIOS flash data download instruction includes: In response to the BIOS flash data download instruction, sending a BIOS flash data acquisition signal to the target BMC, so that the target BMC packs the previously read BIOS flash data into a BIOS binary file in response to the BIOS flash data acquisition signal and feeds back the BIOS binary file; Downloading the BIOS binary file to the local based on a web download interface.
5. The method according to claim 1, wherein The BMC management interface access request carries a BMC access address; correspondingly, The receiving the BMC management interface access request triggered by the user based on the browser and displaying the BMC management interface of the target BMC in the browser in response to the BMC management interface access request includes: Receiving the BMC access address input by the user based on the browser, and displaying the BMC login interface of the target BMC in the browser according to the BMC access address; Receiving the BMC authentication data input by the user based on the BMC login interface, and judging whether there is BMC access permission based on the BMC authentication data; When it is judged that there is BMC access permission, displaying the BMC management interface of the target BMC in the browser.
6. The method according to claim 1, characterized in that The target BMC judges whether the server running state meets the reading condition through the following operations: Obtaining the power state; When the power state shows that the main board is powered on, obtaining the power-on self-test data, and determining the BIOS running state according to the power-on self-test data; when the BIOS running state shows that the BIOS initialization is completed, determining that the server running state meets the reading condition; When the BIOS running state shows that the BIOS initialization is not completed, determining that the server running state does not meet the reading condition; When it is determined that the main board of the power state display is not powered on, it is determined that the server running state meets the reading condition.
7. The method according to claim 1, characterized in that, The target BMC reads the BIOS flash data when the server running state meets the reading condition through the following operations: When the server running state meets the reading condition, send a BIOS channel switching signal to the communication accessor, so that the communication accessor switches the communication bus from the core central processing unit to the target BMC in response to the BIOS channel switching signal; Read the BIOS flash data based on the switched communication bus.
8. The method according to claim 7, wherein The reading of the BIOS flash data based on the switched communication bus includes: Obtain BIOS update data, where the BIOS update data includes the start address and end address of the BIOS flash; Read the BIOS flash data through the communication bus based on the BIOS update data, and determine the end of reading after reading the end address of the BIOS flash.
9. The method according to claim 7, wherein After reading the BIOS flash data based on the switched communication bus, the method further includes: Store the read BIOS flash data in the internal storage space of the BMC or the external memory card of the BMC.
10. A BIOS flash memory data reading device, characterized in that, The device includes: A first display module, configured to receive a BMC management interface access request triggered by a user based on a browser, and display the BMC management interface of the target BMC in the browser in response to the BMC management interface access request; A control module, configured to control the target BMC to read the BIOS flash data when the server running state meets the reading condition and feedback a reading completion signal when receiving a BIOS flash data reading instruction based on the BMC management interface of the target BMC; A generation and display module, configured to generate a BIOS flash data download channel when receiving the reading completion signal fed back by the target BMC, and display the BIOS flash data download channel in the BMC management interface, so that the user can download the BIOS flash data based on the BIOS flash data download channel.
11. The device according to claim 10, characterized in that, The device further includes: A receiving module, configured to receive a BIOS flash data download instruction triggered by the user based on the BIOS flash data download channel; A download module, configured to download the BIOS flash data to the local in response to the BIOS flash data download instruction.
12. The device according to claim 11, characterized in that, The download module includes: A reading control sub-module, configured to send a BIOS flash data acquisition signal to the target BMC in response to the BIOS flash data download instruction, so that the target BMC packs the previously read BIOS flash data into a BIOS binary file in response to the BIOS flash data acquisition signal and feeds back the BIOS binary file; A download sub-module, configured to download the BIOS binary file to the local based on a web page download interface.
13. The device according to claim 10, wherein The BMC management interface access request carries a BMC access address; correspondingly, The first display module includes: A first display sub-module, configured to receive the BMC access address input by the user based on the browser, and display the BMC login interface of the target BMC in the browser according to the BMC access address; A judgment sub-module, configured to receive BMC authentication data input by a user based on a BMC login interface, and determine whether there is BMC access permission based on the BMC authentication data; A second display sub-module, configured to display a BMC management interface of a target BMC in a browser when it is determined that there is BMC access permission.
14. An electronic device, characterized in that, Comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-9.
15. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause a computer to execute the method according to any one of claims 1-9.