Control method and electronic device
By resetting the target link or obtaining historical information when the baseboard management controller fails to read the information, the problem of inconsistency between the boot system and component information is solved, thereby improving the success rate of component information reading and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2026-04-29
- Publication Date
- 2026-07-31
AI Technical Summary
During the startup process of an electronic device, the failure of the baseboard management controller to read component information leads to inconsistencies between the component information stored in the boot system and the actual component information. Existing retry operations may still fail, resulting in a high probability of inconsistency.
When the reading fails, the guidance system sends a target instruction to the baseboard management controller to reset the target link. After the reset, the system rereads the component information or retrieves historical component information from the storage location and updates the target information table.
This improved the success rate of the baseboard management controller in reading component information, reduced the probability of inconsistencies between the information stored in the boot system and the component information, and enhanced the user experience.
Smart Images

Figure CN122489138A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a control method and electronic device. Background Technology
[0002] During the boot process of an electronic device, the boot system needs to obtain component information from some components (such as processors, memory modules, disk drives, etc.) in the electronic device through the baseboard management controller to update the information of each component stored in the system. However, sometimes the baseboard management controller encounters errors when reading components and fails to obtain component information. In the absence of component information, the boot system will set the corresponding component information stored in the system to a default value, resulting in inconsistency between the information and the component information stored in the component.
[0003] Currently, the boot system can retry a certain number of times if an error occurs while reading component information. However, even after a certain number of retries, the corresponding component information may still not be obtained, resulting in a high probability of inconsistency between the component information stored in the boot system and the component information in the component. Summary of the Invention
[0004] This application provides a control method applied to a boot system of an electronic device, comprising: in response to a power-on command, sending a read request to a baseboard management controller of the electronic device, the read request being used to enable the baseboard management controller to read component information of a target component in the electronic device through a target link; and in the event that the baseboard management controller fails to read the component information, sending a target command to the baseboard management controller to cause the baseboard management controller to reset the target link.
[0005] In some embodiments, after sending a target instruction to the substrate management controller to reset the target link, the method further includes: updating a target information table based on the first component information when receiving first component information from the substrate management controller; wherein the first component information is read by the substrate management controller from the target component based on the reset target link or obtained by the substrate management controller from a target storage location, the target information table is used to store component information of the target component, and the target storage location stores historical component information of the target component that the substrate management controller has most recently successfully read.
[0006] In some embodiments, after sending a target instruction to the baseboard management controller to reset the target link, the method further includes: if the baseboard management controller fails to read the component information, determining the number of times the baseboard management controller has failed to read the component information; and if the number of failures does not reach the first count, sending the target instruction to the baseboard management controller.
[0007] In some embodiments, after determining the number of times the baseboard management controller fails to read the component information, the method further includes: if the number reaches the first number, obtaining component default information corresponding to the target component; updating the target information table according to the component default information; and resetting the number to zero.
[0008] This application also proposes a control method for a baseboard management controller of an electronic device, comprising: in response to receiving a read request from the boot system of the electronic device, reading component information of a target component in the electronic device via a target link; if reading the component information fails and a target instruction is received from the boot system, resetting the target link according to the target instruction; and reading the component information from the target component based on the reset target link.
[0009] In some embodiments, after reading the component information from the target component based on the reset target link, the method further includes: if the reading of the component information is successful, sending the read first component information to the boot system, so that the boot system updates the target information table according to the first component information, the target information table being used to store the component information of the target component.
[0010] In some embodiments, after reading the component information from the target component based on the target link after reset, the method further includes: if the component information is successfully read, updating the historical component information in the target storage location based on the first component information read, wherein the target storage location stores the historical component information of the target component that was most recently successfully read.
[0011] In some embodiments, after reading the component information from the target component based on the target link after reset, the method further includes: in the event that reading the component information fails, obtaining historical component information of the target component that was most recently successfully read from the target storage location; and sending the historical component information as the first component information to the boot system.
[0012] In some embodiments, before obtaining the historical component information of the target component that was most recently successfully read from the target storage location, the method further includes: determining the number of times the component information reading failed; and if the number reaches a second count, performing the step of obtaining the historical component information of the target component that was most recently successfully read from the target storage location.
[0013] This application also proposes an electronic device, including a baseboard management controller, a boot system, and a target component. The boot system is configured to: in response to a power-on command, send a read request to the baseboard management controller, the read request being used to enable the baseboard management controller to read component information of the target component through a target link; and in the event that the baseboard management controller fails to read the component information, send a target command to the baseboard management controller, causing the baseboard management controller to reset the target link. Attached Figure Description
[0014] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 Flowchart of the control method executed by the boot system in this application embodiment Figure 1 ; Figure 2 Flowchart of the control method executed by the boot system in this application embodiment Figure 2 ; Figure 3 Flowchart of the control method executed by the boot system in this application embodiment Figure 3 ; Figure 4 Flowchart of the control method executed by the substrate management controller in the embodiments of this application Figure 1 ; Figure 5 Flowchart of the control method executed by the substrate management controller in the embodiments of this application Figure 2 ; Figure 6 Flowchart of the control method executed by the substrate management controller in the embodiments of this application Figure 3 ; Figure 7 Flowchart of the control method executed by the substrate management controller in the embodiments of this application Figure 4 ; Figure 8 This is an overall flowchart of the control method according to an embodiment of this application; Figure 9 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0016] Various embodiments and features of this application are described herein with reference to the accompanying drawings.
[0017] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.
[0018] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0019] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.
[0020] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application.
[0021] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.
[0022] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.
[0023] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.
[0024] One control method in this application embodiment allows the boot system to send a target instruction to the baseboard management controller if the baseboard management controller fails to read component information through the target link. This instruction causes the baseboard management controller to reset the target link, and the baseboard management controller can then reread the component information based on the reset target link. This solution improves the success rate of the baseboard management controller reading component information, thereby reducing the probability of inconsistency between the component information stored in the boot system and the component information in the component, and improving the user experience.
[0025] like Figure 1 As shown, the control method includes the following steps: Step S101: In response to the power-on command, a read request is sent to the baseboard management controller of the electronic device. The read request is used to enable the baseboard management controller to read the component information of the target component in the electronic device through the target link.
[0026] In this embodiment, the electronic device includes a Baseboard Management Controller (BMC), a boot system, and a target component. A target link exists between the BMC and the target component. The electronic device may include, for example, any of the following: a server, a workstation, or a personal computer. The boot system loads the operating system kernel into memory and starts the operating system through a series of preset programs when the electronic device is powered on. For example, the boot system may be a BIOS (Basic Input / Output System) or a UEFI (Unified Extensible Firmware Interface). The target component may be an FRU (Field Replaceable Unit) in the electronic device, and may include, for example, a power module, a fan module, a memory module, a hard drive, various boards (such as a motherboard, controller, and interface module), cables, etc. The component information of the target component may be stored in the target component's EEPROM, and may include, for example, a supplier ID, product model / part number, product serial number, etc. There may be one or more target components. The target link can be any of the following: I²C, SPI (Serial Peripheral Interface), SMBus (System Management Bus).
[0027] The power-on command can be triggered by a user pressing the power button on an electronic device, or it can be triggered when a target condition is met (such as reaching a scheduled power-on time). In response to the power-on command, the system guides the system to send a read request to the baseboard management controller, enabling the baseboard management controller to perform a read operation on the target component through the target link to read the component information in the target component.
[0028] Step S102: If the substrate management controller fails to read the component information, a target instruction is sent to the substrate management controller to reset the target link.
[0029] In this embodiment, if the target link is in an abnormal state (such as unstable or busy), the baseboard management controller cannot read the component information normally, resulting in a failure to read the component information. If the guidance system receives a read failure message from the baseboard management controller or does not receive component information from the baseboard management controller within the target time period, the guidance system can determine that the baseboard management controller has failed to read the component information. In this case, the guidance system sends a target command to the baseboard management controller, causing the baseboard management controller to reset the target link. Subsequently, the baseboard management controller can reread the component information from the target component based on the reset target link, which can improve the probability of successfully reading the component information.
[0030] In some embodiments of this application, in order to reduce the impact on other functional modules in the electronic device and improve reset efficiency, the board management control can reset the target link at the software level. For example, the target link can be I²C. The board management control can reset the I²C by simulating SCL clock pulses to release the bus. The specific process may include: first configuring the SCL (Serial Clock Line) and SDA (Serial Data Line) of the I²C to GPIO output mode, then sending 9 SCL high and low level pulses to enable the slave device to complete the current transmission and release SDA, and finally restoring the I²C peripheral function and re-initializing it.
[0031] The control method of this application embodiment is applied to the boot system of an electronic device, including: in response to a power-on command, sending a read request to the baseboard management controller of the electronic device, the read request being used to enable the baseboard management controller to read component information of a target component in the electronic device through a target link; if the baseboard management controller fails to read the component information, sending a target command to the baseboard management controller, causing the baseboard management controller to reset the target link. This solution improves the success rate of the baseboard management controller reading component information by resetting the target link, thereby reducing the probability of inconsistency between the component information stored in the boot system and the component information in the component, and improving the user experience.
[0032] In some embodiments of this application, after sending a target instruction to the baseboard management controller, causing the baseboard management controller to reset the target link, such as... Figure 2 As shown, it also includes the following steps: Step S103: Upon receiving first component information from the substrate management control, update the target information table based on the first component information.
[0033] In this embodiment, a target storage location can be pre-set. This target storage location is used to store historical component information of the target component that the substrate management controller has most recently successfully read. Optionally, the target storage location can be set inside the substrate management controller (such as a region in SRAM (Static Random-Access Memory)) or in a protected memory region outside the substrate management controller. The first component information can be read by the substrate management controller from the target component based on the target link after reset, or it can be obtained by the substrate management controller from the target storage location. A target information table is used to store the component information of the target component, such as an SMBIOSTable.
[0034] The substrate management controller can send the read component information as the first component information to the boot system after successfully reading the component information through the target link after reset. Alternatively, if reading component information through the target link fails after reset, the substrate management controller can obtain the most recent historical component information from the target storage location and send it as the first component information to the boot system. Therefore, regardless of whether the substrate management controller successfully reads component information from the target component, the boot system can obtain the first component information, improving the stability of the component information acquisition by the boot system.
[0035] In some embodiments of this application, the substrate management controller can reset the target link upon receiving a target instruction, and simultaneously obtain the most recent historical component information from the target storage location, sending it as the first component information to the boot system. This method transforms the acquisition of component information via the target link into obtaining component information directly from the target storage location. If the most recent historical component information matches the component information in the target component, the substrate management controller can quickly obtain accurate component information, thereby reducing the probability of inconsistencies between the component information stored in the boot system and the component information in the target component.
[0036] In some embodiments of this application, after sending a target instruction to the baseboard management controller, causing the baseboard management controller to reset the target link, such as... Figure 3 As shown, it also includes the following steps: Step S104: If the substrate management controller fails to read the component information, determine the number of times the substrate management controller fails to read the component information.
[0037] In this embodiment, after the substrate management controller resets the target link, it may still fail to read component information through the target link. If the substrate management controller fails to read the component information, the system is instructed to record the number of times the substrate management controller fails to read the component information.
[0038] Step S105: If the number of attempts does not reach the first number, send the target instruction to the substrate management controller.
[0039] In this embodiment, if the number of times the component information reading fails does not reach the first count (e.g., 3 times), the guidance system sends a target instruction to the baseboard management controller, causing the baseboard management controller to reset the target link again, thereby increasing the probability of restoring the target link to normal, and thus increasing the probability of successfully reading component information from the target component.
[0040] In some embodiments of this application, after determining the number of times the substrate management controller failed to read the component information, the method further includes: If the number of times reaches the first number of times, obtain the default information of the component corresponding to the target component; Update the target information table according to the default information of the component, and reset the count to zero.
[0041] In this embodiment, if the number of times the baseboard management controller fails to read the component information reaches the first count, it indicates that resetting the target link cannot restore it to normal. The system is then guided to obtain pre-stored default component information corresponding to the target component and update the target information table according to this default information, resetting the count to zero. This avoids unnecessary reset operations by the baseboard management controller and allows the electronic device to start normally. In some embodiments of this application, the corresponding field in the target information table can be marked as "unavailable" and a detailed error log can be recorded for subsequent diagnosis.
[0042] Accordingly, embodiments of this application also propose a control method applied to a board management controller of an electronic device, such as... Figure 4 As shown, it includes the following steps: Step S201: In response to receiving a read request from the boot system of the electronic device, read the component information of the target component in the electronic device through the target link.
[0043] In this embodiment, the guidance system responds to the power-on command by sending a read request to the substrate management controller, and the substrate management controller responds to the read request by reading the component information of the target component through the target link.
[0044] Step S202: If reading the component information fails and a target instruction is received from the boot system, the target link is reset according to the target instruction.
[0045] In this embodiment, if the target link is in an abnormal state (such as unstable or busy), the baseboard management controller cannot read the component information normally, resulting in a failure to read the component information. If the baseboard management controller fails to read, it can send a read failure message to the boot system, causing the boot system to send a target command to the baseboard management controller. After receiving the target command, the baseboard management controller resets the target link according to the target command.
[0046] In some embodiments of this application, in order to reduce the impact on other functional modules in the electronic device and improve reset efficiency, the board management control can reset the target link at the software level. For example, the target link can be I²C. The board management control can reset the I²C by simulating the SCL clock pulse to release the bus. The specific process may include: first configuring the SCL and SDA of the I²C to GPIO output mode, then sending 9 SCL high and low level pulses to make the slave device complete the current transmission and release SDA, and finally restoring the I²C peripheral function and re-initializing it.
[0047] Step S203: Read the component information from the target component based on the reset target link.
[0048] In this embodiment, the substrate management control rereads the component information from the target component based on the target link after the reset. If the reading is successful, the read component information is sent to the boot system, so that the boot system updates the component information stored in itself.
[0049] The control method of this application embodiment is applied to a baseboard management controller of an electronic device, including: in response to receiving a read request from the boot system of the electronic device, reading component information of a target component in the electronic device through a target link; if reading component information fails and a target instruction is received from the boot system, resetting the target link according to the target instruction; and reading component information from the target component based on the reset target link. This solution reduces read failures caused by target link instability when the baseboard management controller reads component information, thereby reducing the probability of inconsistency between the component information stored in the boot system and the component information in the component, and improving the user experience.
[0050] In some embodiments of this application, after the target link reads the component information from the target component based on the reset, such as Figure 5 As shown, it also includes the following steps: Step S204: If the component information is successfully read, the read first component information is sent to the boot system, so that the boot system updates the target information table according to the first component information. The target information table is used to store the component information of the target component.
[0051] In this embodiment, if the baseboard management controller successfully reads component information from the target component, the baseboard management controller sends the first component information to the boot system. The boot system updates its stored target information table based on the received first component information. This target information table stores component information of the target component, thereby enabling the boot system to obtain accurate component information and reducing the probability of inconsistency between the component information stored by the boot system and the component information in the component. For example, the target information table can be an SMBIOS table.
[0052] In some embodiments of this application, after the target link reads the component information from the target component based on the reset, such as Figure 6 As shown, it also includes the following steps: Step S205: If the component information is successfully read, update the historical component information in the target storage location based on the first component information read. The target storage location stores the historical component information of the target component that was most recently successfully read.
[0053] In this embodiment, the target storage location is used to store historical component information of the target component most recently successfully read by the substrate management controller. Optionally, the target storage location can be located inside the substrate management controller (such as a region in SRAM) or in a protected memory region outside the substrate management controller. If the component information is successfully read, the substrate management controller updates the historical component information in the target storage location based on the first component information read, thereby synchronizing the historical component information in the target storage location with the most recently successfully read component information, so that the substrate management controller can reliably obtain the most recent historical component information from the target storage location subsequently.
[0054] Optionally, steps S205 and S204 can be performed in parallel or sequentially.
[0055] In some embodiments of this application, after the target link reads the component information from the target component based on the reset, such as Figure 7 As shown, it also includes the following steps: Step S206: If reading the component information fails, obtain the historical component information of the target component that was most recently successfully read from the target storage location.
[0056] In this embodiment, if the substrate management controller fails to read component information from the target component through the target link after reset, the substrate management controller reads the target storage location and obtains the historical component information of the target component that was most recently successfully read from the target storage location.
[0057] Step S207: Send the historical component information as the first component information to the boot system.
[0058] The baseboard management controller sends the obtained historical component information as the first component information to the boot system, so that the boot system updates the target information table according to the first component information.
[0059] In this way, if the most recent historical component information is consistent with the component information in the target component, the baseboard management controller can quickly obtain accurate component information, thereby reducing the probability of inconsistency between the component information stored in the boot system and the component information in the component.
[0060] In some embodiments of this application, after obtaining the historical component information of the target component that was most recently successfully read from the target storage location, the method further includes: verifying the historical component information (such as CRC or ECC verification), and sending the verified historical component information as the first component information to the boot system, thereby further improving the integrity and correctness of the first component information.
[0061] In some embodiments of this application, before obtaining the historical component information of the target component from the target storage location for the most recently successfully read instance, the method further includes: Determine the number of times reading the component information failed; If the number of reads reaches a second count, the step of obtaining the historical component information of the target component from the target storage location for the most recent successful read is performed.
[0062] In this embodiment, after each failure to read component information, the baseboard management controller records the number of failures and resets the target link according to the target instruction received again from the boot system. If the number reaches a second count (e.g., 3 times), the step of obtaining the historical component information of the most recently successfully read target component from the target storage location is executed. By resetting multiple times, the probability of restoring the target link to normal operation can be increased, thereby increasing the probability of successfully reading component information from the target component.
[0063] In some embodiments of this application, the substrate management controller can determine the failure type after each read failure and adjust the read strategy for the target component next time based on the failure type, thereby further improving the read success rate. For example, failure types include data verification error, timeout without response, bus error, etc. If the failure type is data verification error, the data may be partially correct, and the substrate management controller will reread the specific field; if the failure type is timeout without response, the target link may be busy, and the substrate management controller can extend the waiting time and reduce the read speed.
[0064] To further illustrate the technical concept of this application, the technical solution will now be explained in conjunction with specific application scenarios.
[0065] This application proposes a control method for an electronic device, which includes a boot system BIOS, a bootloader control center (BMC), and a free radical root unit (FRU) as a target component. The BMC can read component information from the FRU via I²C, such as... Figure 8 As shown, the control method includes the following steps: In step S301, in response to the power-on command, the BIOS sends a read request to the BMC.
[0066] In step S302, the BMC reads the component information of the FRU via I²C.
[0067] Step S303: Is the reading successful? If yes, proceed to step S304; otherwise, proceed to step S305.
[0068] The BIOS determines whether the BMC has successfully read the FRU component information via I²C.
[0069] In step S304, the BIOS updates the SMBIOS Table based on the component information received from the BMC.
[0070] In step S305, the BIOS sends the target instruction to the BMC.
[0071] In step S306, the BMC resets the I²C according to the target instruction and rereads the component information of the FRU through the I²C.
[0072] Step S307: Is the reading successful? If yes, proceed to step S308; otherwise, proceed to step S309.
[0073] In step S308, the BMC sends the read component information to the BIOS and saves it to SRAM.
[0074] In this embodiment, SRAM refers to the target storage location.
[0075] Step S309: Has the number of failed reads reached the second count? If yes, proceed to step S310; otherwise, re-execute step S306.
[0076] The second number of times is, for example, 3 times.
[0077] In step S310, the BMC retrieves the most recently successfully read historical component information from the SRAM and sends it to the BIOS, then executes step S304.
[0078] By applying the above technical solution, if the BMC fails to read the component information of the FRU through I²C, the BIOS sends a target instruction to the BMC to reset the I²C. Subsequently, the BMC can reread the component information based on the reset I²C. This solution improves the success rate of the BMC reading the component information of the FRU, thereby reducing the probability of inconsistency between the component information stored in the SMBIOS Table and the component information in the FRU, and improving the user experience.
[0079] This application also proposes an electronic device, such as... Figure 9 As shown, it includes a baseboard management controller, a boot system, and a target component. The boot system is configured to: In response to the power-on command, a read request is sent to the baseboard management controller. The read request is used to enable the baseboard management controller to read the component information of the target component through the target link. If the baseboard management controller fails to read the component information, a target command is sent to the baseboard management controller to reset the target link.
[0080] The electronic device of this application embodiment improves the success rate of the baseboard management controller reading component information, thereby reducing the probability of inconsistency between the component information stored in the boot system and the component information in the component, and improving the user experience.
[0081] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0082] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.
Claims
1. A control method applied to a boot system of an electronic device, comprising: In response to a power-on command, a read request is sent to the baseboard management controller of the electronic device. The read request is used to enable the baseboard management controller to read the component information of the target component in the electronic device through the target link. If the baseboard management controller fails to read the component information, a target instruction is sent to the baseboard management controller to cause the baseboard management controller to reset the target link.
2. The control method of claim 1, further comprising, after sending a target instruction to the baseboard management controller to reset the target link, the method includes: Upon receiving first component information from the substrate management control, the target information table is updated based on the first component information; The first component information is read from the target component by the baseboard management controller based on the target link after reset, or obtained by the baseboard management controller from the target storage location. The target information table is used to store the component information of the target component, and the target storage location stores the historical component information of the target component that the baseboard management controller has most recently successfully read.
3. The control method as described in claim 2, further comprising, after sending a target instruction to the baseboard management controller to reset the target link, the method includes: If the substrate management controller fails to read the component information, determine the number of times the substrate management controller has failed to read the component information; If the number of attempts does not reach the first count, the target instruction is sent to the substrate management controller.
4. The control method of claim 3, further comprising, after determining the number of times the substrate management controller fails to read the component information: If the number of times reaches the first number of times, obtain the default information of the component corresponding to the target component; Update the target information table according to the default information of the component, and reset the count to zero.
5. A control method applied to a baseboard management controller of an electronic device, comprising: In response to receiving a read request from the boot system of the electronic device, component information of the target component in the electronic device is read through the target link; If reading the component information fails and a target instruction is received from the boot system, the target link is reset according to the target instruction; Based on the reset target link, the component information is read from the target component.
6. The control method of claim 5, further comprising, after reading the component information from the target component based on the reset target link: If the component information is successfully read, the first component information is sent to the boot system, so that the boot system updates the target information table according to the first component information. The target information table is used to store the component information of the target component.
7. The control method of claim 6, further comprising, after reading the component information from the target component based on the reset target link: If the component information is successfully read, the historical component information in the target storage location is updated based on the first component information read. The target storage location stores the historical component information of the target component that was most recently successfully read.
8. The control method of claim 5, further comprising, after reading the component information from the target component based on the reset target link: If reading the component information fails, obtain the historical component information of the target component that was most recently successfully read from the target storage location; The historical component information is sent to the boot system as the first component information.
9. The control method of claim 8, further comprising, before obtaining the historical component information of the most recently successfully read target component from the target storage location: Determine the number of times reading the component information failed; If the number of reads reaches a second count, the step of obtaining the historical component information of the target component from the target storage location for the most recent successful read is performed.
10. An electronic device comprising a board management controller, a boot system, and a target component, wherein the boot system is configured to: In response to a power-on command, a read request is sent to the substrate management controller, the read request being used to enable the substrate management controller to read the component information of the target component through the target link; If the baseboard management controller fails to read the component information, a target instruction is sent to the baseboard management controller to cause the baseboard management controller to reset the target link.