Information loading control method and electronic equipment
By detecting and adjusting the loading strategy in a multi-processor system, the effective configuration information is synchronized between processors, solving the problem of configuration information loss caused by restoring UEFI default values, and achieving stable and fast system startup and operation.
Patent Information
- Application Number
- CN202510703520.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-12
AI Technical Summary
In computer systems, the UEFI mechanism of restoring processor configuration information to default values simplifies system management, but may result in loss of user configuration information and unstable system operation.
By detecting the startup configuration information in a multi-processor system, dynamically adjusting the loading strategy, and copying or synchronizing the valid configuration information from one processor to the storage space of another processor, the system is ensured to start stably.
Improves the reliability and stability of system startup, reduces startup failures caused by configuration information loss or damage, and improves user experience.
Smart Images

Figure CN120631452A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information loading control method and electronic equipment. Background Art
[0002] In specific computer system architectures, some processors store various system-related configuration information. This information plays a critical role in the normal operation of the system and the configuration of personalized features. The current UEFI (Unified Extensible Firmware Interface) automatically restores the configuration to its default values upon detecting that the processor's configuration information has been cleared. While this recovery mechanism simplifies system management and reduces the complexity of system maintenance, it can cause significant user frustration and inconvenience in practice. Summary of the Invention
[0003] The technical solutions provided in this application are as follows:
[0004] A first aspect of the present application provides an information loading control method, comprising:
[0005] Attempting to detect specified boot configuration information in at least two processors in the electronic device based on the unified extensible firmware interface;
[0006] If the detection result indicates that invalid configuration information exists in the specified startup configuration information of the at least two processors, determining a loading strategy for the unified extensible firmware interface based on the detection result;
[0007] Based on the loading strategy, the invalid configuration information is updated to perform system startup.
[0008] The at least two processors include a first processor and at least one second processor; the first processor is configured to provide startup configuration information for system startup to the unified extensible firmware interface.
[0009] If the detection result indicates that invalid configuration information exists in the designated startup configuration information of the at least two processors, determining a loading strategy of the unified extensible firmware interface based on the detection result includes:
[0010] If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in a valid state, determine a loading strategy for loading the specified startup configuration information corresponding to the at least one second processor into the specified storage space of the first processor.
[0011] If the detection result indicates that invalid configuration information exists in the designated startup configuration information of the at least two processors, determining a loading strategy of the unified extensible firmware interface based on the detection result includes:
[0012] If the detection result indicates that the specified startup configuration information in the first processor is in a valid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the specified startup configuration information in the first processor into a specified storage space of the at least one second processor.
[0013] The updating of the invalid configuration information based on the loading strategy includes:
[0014] Completely copying the specified startup configuration information from the specified storage space of the first processor to the specified storage space of each second processor in at least one second processor;
[0015] or,
[0016] The designated startup configuration information in the designated storage space of the first processor is divided into a plurality of parts, and each of the plurality of parts is copied to the designated storage space of each second processor in at least one second processor.
[0017] If the detection result indicates that invalid configuration information exists in the designated startup configuration information of the at least two processors, determining a loading strategy of the unified extensible firmware interface based on the detection result includes:
[0018] If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the preset configuration information of the electronic device into the specified storage space of the first processor and the specified storage space of the at least one second processor.
[0019] The information loading control method further includes:
[0020] In response to a configuration information modification event, the designated startup configuration information in the first processor is modified, and the modified designated startup configuration information is synchronized to the at least one second processor.
[0021] The response to the configuration information modification event includes any one of the following:
[0022] responding to a configuration change operation performed by a user on a setting interface of the unified extensible firmware interface;
[0023] In response to detecting a hardware topology change.
[0024] Another aspect of the present application provides an electronic device, comprising:
[0025] A first processor is configured to store specified startup configuration information;
[0026] at least one second processor, configured to assist the first processor in storing startup configuration information;
[0027] a power supply module, configured to supply power to the first processor and the at least one second processor;
[0028] The first processor is further configured to:
[0029] detecting, based on a unified extensible firmware interface, specified startup configuration information in at least two processors in the electronic device;
[0030] If the detection result indicates that invalid configuration information exists in the specified startup configuration information of the at least two processors, determining a loading strategy for the unified extensible firmware interface based on the detection result;
[0031] Based on the loading strategy, the invalid configuration information is updated to perform system startup.
[0032] The first processor includes: a first storage unit; the power consumption of the first storage unit meets a first power consumption threshold and / or the data reading speed of the first storage unit meets a first reading speed threshold; the second processor includes: a second storage unit; the power consumption of the second storage unit meets a second power consumption threshold and / or the data reading speed of the second storage unit meets a second reading speed threshold; the first storage unit and the second storage unit are respectively used to store the specified startup configuration information. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0034] Figure 1 A flowchart of an information loading control method provided in Example 1 of the present application;
[0035] Figure 2 A schematic diagram of a power supply structure for at least two processors provided in this application;
[0036] Figure 3 A schematic diagram of another power supply structure for at least two processors provided in this application;
[0037] Figure 4A flowchart of an information loading control method provided in Example 3 of the present application;
[0038] Figure 5 A flowchart of an information loading control method provided in Example 4 of the present application;
[0039] Figure 6 A flowchart of an information loading control method provided in Example 6 of the present application;
[0040] Figure 7 A flowchart of an information loading control method provided in Example 7 of the present application. DETAILED DESCRIPTION
[0041] The following describes the embodiments of the present application in conjunction with the accompanying drawings. The terms used in the implementation methods of the present application are only used to explain the specific embodiments of the present application and are not intended to limit the present application.
[0042] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0043] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0044] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0045] Reference Figure 1 , is a flow chart of an information loading control method provided in Example 1 of the present application, such as Figure 1 As shown, the method may include but is not limited to the following steps:
[0046] Step S101: Attempt to detect designated startup configuration information of at least two processors in an electronic device based on a unified extensible firmware interface.
[0047] In this embodiment, the electronic device may be configured with at least two processors (eg, CPUs), and the at least two processors may undertake the same or different computing tasks and work together to ensure the normal operation of the system.
[0048] The designated startup configuration information of each processor in at least two processors may be consistent, which means that when the designated startup configuration information in a processor is invalid, it can be recovered from the other processors.
[0049] The specified startup configuration information can be used to configure the specified hardware (such as clock chip, memory, hard disk, CPU, etc.), such as configuring the startup order of each hard disk, configuring the CPU power supply voltage, configuring the base clock frequency of the clock chip, configuring the timing parameters of the memory, etc.
[0050] In this embodiment, the manner of detecting the specified startup configuration information in at least two processors in the electronic device may include but is not limited to:
[0051] Step S11: Obtain a historical verification code from the first storage space of each of at least two processors.
[0052] The history check code may be calculated based on valid specified startup configuration information.
[0053] Step S12: Obtain designated startup configuration information from the second storage space of each of the at least two processors, and process the designated startup configuration information to obtain a current verification code.
[0054] Step S13: Compare the current verification code with the historical verification code to see if they are consistent.
[0055] If they are consistent, it can indicate that the specified startup configuration information of the processor has not been tampered with or cleared, and is in a valid state.
[0056] If they are inconsistent, it may indicate that the specified startup configuration information of the processor has been modified or cleared and is in an invalid state.
[0057] Of course, the method of detecting the specified startup configuration information in at least two processors in the electronic device may also include but is not limited to:
[0058] Step S21: Read the setting storage bit corresponding to each processor in the motherboard chip to see whether it is marked as cleared.
[0059] When an external power failure is detected (e.g., battery removal, CPU replacement), the setting storage bit can be marked as cleared. When the external power failure occurs, the processor's specified startup configuration information will be cleared.
[0060] If the set storage bit is marked as cleared, it can be considered that the specified startup configuration information of the processor is in an invalid state.
[0061] In this embodiment, there are no restrictions on the power supply method for each processor. In the event that the main power supply system of the electronic device (e.g., an external power supply or a removable main battery) completely fails, each processor can continue to obtain power through different target power supply modules in the electronic device. This decentralized power supply design improves the power supply redundancy of the system to a certain extent. Even if a target power supply module fails, it may not affect the normal power supply of other processors.
[0062] Alternatively, in the event that the main power supply system of the electronic device (e.g., an external power supply or a removable main battery) completely fails, each processor can continue to obtain power supply through the same target power supply module in the electronic device. This centralized power supply method has the characteristics of relatively simple structure and easy management. When the processors share the same target power supply module, the hardware design ensures that when any processor is replaced, it will not affect the power supply status of other processors, that is, the other processors can still maintain normal power supply. However, once the target power supply module is removed or short-circuited by a specific jumper operation, each processor will lose power supply at the same time and will be powered off.
[0063] The target power supply module may include but is not limited to: a micro battery (eg, a button battery) or a capacitor.
[0064] For example, in the event of a complete failure of the primary power supply system of an electronic device (e.g., an external power supply or a removable main battery), Figure 2 As shown, the processor CPU0 can continue to obtain power supply through the target power supply module 1 , and the processor CPU1 can continue to obtain power supply through the target power supply module 2 .
[0065] For example, if the main power supply system of the electronic device (such as an external power supply or a removable main battery) fails completely, Figure 3 As shown, both the processor CPU0 and the processor CPU1 can continue to obtain power supply through the target power supply module 1 .
[0066] Step S102: If the detection result indicates that invalid configuration information exists in the designated startup configuration information of the at least two processors, determine a loading strategy for the unified extensible firmware interface based on the detection result.
[0067] In this embodiment, if not all of the specified startup configuration information in at least two processors is invalid, that is, if valid configuration information exists, the loading strategy of the unified extensible firmware interface can mainly focus on loading the valid configuration information from the specified startup configuration information in at least two processors.
[0068] Of course, if the specified startup configuration information in at least two processors is invalid configuration information, it means that valid configuration information cannot be obtained from at least two processors to support system startup. In this case, the loading strategy can be used to load configuration information from a path outside the at least two processors.
[0069] Step S103: Based on the loading strategy, update the invalid configuration information to start the system.
[0070] In this embodiment, the Unified Extensible Firmware Interface (UEFI) attempts to detect the designated boot configuration information of at least two processors in an electronic device. If a problem occurs with the designated boot configuration information of one processor, thanks to the multi-processor architecture, the other processors are likely to still retain valid designated boot configuration information. This feature provides multiple possible processing options for invalid configuration information recovery, expanding the UEFI's flexibility in responding to configuration anomalies.
[0071] Based on this, a loading strategy for the unified extensible firmware interface is determined based on the detection results. This loading strategy is not static, but is dynamically adjusted based on the actual detection situation, aiming to guide the system boot from the available configuration information in an optimal manner. Subsequently, based on the determined loading strategy, the invalid configuration information can be updated to perform system boot.
[0072] Compared to the traditional single-processor architecture, when the processor startup configuration information is invalid, the unified extensible firmware interface can only adopt a more conservative and single processing method to restore it, such as directly restoring the default settings. The solution of this embodiment has significant advantages. Directly restoring the default settings often fails to fully consider the user's personalized needs and the system's original configuration logic, and may cause the loss of parameters that the user has carefully set, affecting the normal operation efficiency of the system, and even causing unnecessary trouble to the user. However, this embodiment, through multi-processor configuration and dynamic loading strategy, can ensure that electronic devices can start and run in a stable manner that meets user needs, improve the reliability of system startup, and enhance the user experience.
[0073] As another optional embodiment of the present application, an information loading control method provided in Example 2 of the present application is provided. This embodiment is mainly an implementation of the above step S101, and may specifically include but is not limited to:
[0074] Step S1011: Attempt to detect specified startup configuration information in at least two processors in an electronic device based on a unified extensible firmware interface; the at least two processors include a first processor and at least one second processor; the first processor is configured to provide startup configuration information for system startup to the unified extensible firmware interface.
[0075] In this embodiment, the designated startup configuration information in the first processor may be backed up to at least one second processor.
[0076] The unified extensible firmware interface can prioritize trying to detect whether the specified startup configuration information in the first processor is valid. If the specified startup configuration information in the first processor is valid, the unified extensible firmware interface can directly use the specified startup configuration information to boot the system, ensuring that the system can quickly enter the running state with the optimal and expected configuration.
[0077] If the specified boot configuration information in the first processor is invalid, the UFI can sequentially test the specified boot configuration information for each second processor and continue to determine the UFI loading policy based on the test results. In this case, the loading policy can at least be used to update the invalid configuration information in the first processor, and the UFI can boot the system based on the updated configuration information in the first processor.
[0078] In this embodiment, because the first processor is configured to provide the unified extensible firmware interface with startup configuration information for system startup, the unified extensible firmware interface can preferentially obtain the specified startup configuration information from the first processor. This approach avoids blindly searching for configuration information across multiple processors, reduces information retrieval and processing time during startup, enables the system to quickly enter a running state with an optimal, expected configuration, and improves system startup efficiency.
[0079] In addition, the specified startup configuration information is fixed to the first processor, making the startup process more standardized and unified, reducing the startup order confusion or configuration conflict problems that may be caused by the configuration information being scattered among multiple processors, enhancing the stability of the system startup process, and reducing the risk of startup failure.
[0080] As another optional embodiment of the present application, refer to Figure 4 , is a flow chart of an information loading control method provided in Example 3 of the present application. This embodiment is mainly an implementation method of step S102 in Example 2. Figure 4 As shown, it may include but not be limited to:
[0081] Step S1021: If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in at least one second processor is in a valid state, determine a loading strategy for loading the specified startup configuration information corresponding to the at least one second processor into the specified storage space of the first processor.
[0082] If the designated startup configuration information in each second processor is independent and complete and can independently meet all configuration information requirements for system startup, in this case, since the designated configuration information in each second processor is complete and available, any one of the second processors can be selected and its designated startup configuration information loaded into the designated storage space of the first processor.
[0083] If the specified startup configuration information in each second processor is incomplete, but the specified startup configuration information in multiple second processors is combined to form a complete configuration information set that meets the system startup requirements, the specified startup configuration information in each second processor can be loaded into the specified storage space of the first processor.
[0084] The designated storage space of the first processor may include but is not limited to: a first storage unit in the first processor, wherein the power consumption of the first storage unit may meet a first power consumption threshold and / or the data reading speed of the first storage unit may meet a first reading speed threshold.
[0085] The first storage unit may include, but is not limited to, CMOS RAM (Complementary Metal Oxide Semiconductor Random Access Memory) or SRAM (Static Random Access Memory).
[0086] Corresponding to the hardware design in which each processor can continue to obtain power supply through the same target power supply module in the electronic device, if the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in at least one second processor is in a valid state, a loading strategy is determined to load the specified startup configuration information corresponding to the at least one second processor into the specified storage space of the first processor. This strategy can strictly match the user's operation intention.
[0087] Because, in a hardware architecture that shares a target power supply module, when the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in at least one second processor is in a valid state, this usually means that the user did not remove the target power supply module, but replaced the first processor. The user chooses to replace the first processor, often due to reasons such as failure of the first processor or insufficient performance, but the core intention is still to hope that the electronic device can continue the previous usage state and continue to use the personalized configuration that the user has carefully set before. Therefore, loading the valid configuration from the second processor to the designated storage space of the first processor just meets the user's operational intention to continue using the original configuration.
[0088] Accordingly, step S103 may include but is not limited to:
[0089] Step S1031: Based on the loading strategy, load the designated startup configuration information corresponding to the at least one second processor to replace the designated startup configuration information in the designated storage space of the first processor to perform system startup.
[0090] After the replacement operation is completed, the unified extensible firmware interface can use the updated and valid designated startup configuration information in the designated storage space of the first processor to guide the system to start up, ensuring that the system can enter the running state with a normal and stable configuration.
[0091] In this embodiment, if the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in a valid state, the specified startup configuration information backed up in the second processor can be fully utilized without the user having to re-perform tedious configuration operations, and the system can be started in a stable manner that conforms to the user's configuration, thereby improving the user experience.
[0092] As another optional embodiment of the present application, refer to Figure 5 , is a flow chart of an information loading control method provided in Example 4 of the present application. This embodiment is mainly an implementation method of step S102 in Example 2. Figure 5 As shown, it may include but not be limited to:
[0093] Step S1022: If the detection result indicates that the specified startup configuration information in the first processor is in a valid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the specified startup configuration information in the first processor into a specified storage space of the at least one second processor.
[0094] The designated storage space of at least one second processor may include but is not limited to: a second storage unit in each second processor, wherein the power consumption of the second storage unit may meet a second power consumption threshold and / or the data reading speed of the second storage unit may meet a second reading speed threshold.
[0095] The second storage unit may include, but is not limited to, CMOS RAM (Complementary Metal Oxide Semiconductor Random Access Memory) or SRAM (Static Random Access Memory).
[0096] Corresponding to the hardware design in which each processor can continue to obtain power supply through the same target power supply module in the electronic device, if the detection result indicates that the specified startup configuration information in the first processor is in a valid state and the specified startup configuration information in the at least one second processor is in an invalid state, a loading strategy is determined to load the specified startup configuration information in the first processor into the specified storage space of the at least one second processor. This strategy can strictly match the user's operation intention.
[0097] Because, in a hardware architecture that shares a target power supply module, when the specified startup configuration information in the first processor is in a valid state and the specified startup configuration information in at least one second processor is in an invalid state, it can usually be reasonably inferred that the user did not remove the target power supply module, but replaced the second processor. In actual usage scenarios, the user chooses to replace the second processor, most likely because the currently used second processor has problems such as hardware failure, performance that cannot meet the requirements, etc. However, the user's core demand is not just to replace the hardware, but to hope that the replaced second processor can take on the task of backing up the specified startup configuration information in the first processor.
[0098] Therefore, the valid designated startup configuration information in the first processor is loaded into the designated storage space of the second processor. Once other abnormal situations occur subsequently, the system can still start and run stably based on these backup configuration information, which can meet the user's desire to continue the original configuration and ensure system stability.
[0099] Accordingly, step S103 may include but is not limited to:
[0100] Step S1032: Based on the loading strategy, load the specified startup configuration information in the first processor to replace the specified startup configuration information in the specified storage space of the at least one second processor, so as to boot the system using the specified startup configuration information in the first processor based on the unified extensible firmware interface.
[0101] In this embodiment, when it is detected that the designated startup configuration information in the first processor is valid, while the designated startup configuration information in at least one second processor is invalid, the valid configuration information is backed up by loading the valid designated startup configuration information in the first processor into the designated storage space of the second processor. This approach ensures that even if the designated startup configuration information of the first processor becomes invalid for unknown reasons, the Unified Extensible Firmware Interface can still boot normally based on the backed-up configuration information, eliminating the need for manual reconfiguration by the user. This avoids startup problems caused by configuration loss or damage and improves system startup reliability.
[0102] As another optional embodiment of the present application, an information loading control method provided in Example 5 of the present application is provided. This embodiment is mainly an implementation of the above step S1032, and may specifically include but is not limited to any of the following:
[0103] Step S31: Completely copy the designated startup configuration information from the designated storage space of the first processor to the designated storage space of each second processor in at least one second processor.
[0104] In this embodiment, the complete copy method is simple and straightforward, eliminating the need for complex splitting and integration logic. This reduces system implementation complexity and mitigates the risk of configuration information being damaged or lost due to processing logic errors. Later, when the backup configuration is needed, the Unified Extensible Firmware Interface can quickly and completely retrieve the same configuration information as the first processor.
[0105] In addition, each second processor backs up the designated startup configuration information of the first processor. Even if there is a problem with the configuration information in the designated storage space of one of the second processors, the unified extensible firmware interface can still obtain complete and valid configuration information from the backups of other second processors, thereby ensuring that the system can start and run normally, avoiding the serious consequences of system crash or failure to start due to loss or damage of configuration information.
[0106] Step S32: Divide the designated startup configuration information in the designated storage space of the first processor into multiple parts, and copy each of the multiple parts to the designated storage space of each second processor in at least one second processor.
[0107] In this embodiment, when the designated startup configuration information of the first processor is large in scale, or the designated storage space of each second processor is limited and cannot fully store all the configuration information, this split copy method can be used. For example, the designated startup configuration information may contain a large amount of hardware device driver configuration, system service startup parameters, etc., and the data volume is large. In this case, this information can be split according to functional modules, data types, etc., and then the different parts after segmentation are stored in the designated storage space of different second processors. For example, the hardware device driver configuration is stored in the designated storage space of second processor A, and the system service startup parameters are stored in the designated storage space of second processor B.
[0108] When the backup configuration is needed later, the Unified Extensible Firmware Interface can retrieve the corresponding configuration information from each secondary processor and integrate them to restore the complete specified startup configuration information, ensuring that the system can boot normally. Although this method is relatively complex, it effectively utilizes limited storage space and enables the backup of large-scale configuration information.
[0109] As another optional embodiment of the present application, refer to Figure 6 , is a flow chart of an information loading control method provided in Example 6 of the present application. This embodiment is mainly an implementation method of step S102 in Example 2. Figure 6 As shown, it may include but not be limited to:
[0110] Step S1023: If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the preset configuration information of the electronic device into the designated storage space of the first processor and the designated storage space of the at least one second processor.
[0111] Corresponding to the hardware design in which each processor can continue to obtain power supply through the same target power supply module in the electronic device, if the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in at least one second processor is in an invalid state, a loading strategy is determined to load the preset configuration information of the electronic device into the designated storage space of the first processor and the designated storage space of the at least one second processor. This strategy can strictly match the user's operation intention.
[0112] In a hardware layout where all processors share the same target power module, when the designated startup configuration information in the first processor and at least one second processor is invalid, two possible scenarios can generally be inferred. First, the user removed the target power module, causing the processors to be unable to obtain power from the normal main power supply path. After reconnecting the power supply or resetting the system, the original configuration information may be lost or damaged due to the power interruption, thus becoming invalid. Second, the user replaced all processors at the same time, and naturally, the newly replaced processors do not contain valid designated startup configuration information.
[0113] In actual usage scenarios, whether the user actively removes the target power supply module for system maintenance or upgrade, or replaces all processors at the same time due to processor failure or other reasons, the core intention is to hope that the system can be restored to a stable and usable state. The preset configuration information of electronic devices is usually carefully designed and tested, and can meet the basic startup and operation requirements of the system. Therefore, the preset configuration information is loaded into the designated storage space of the first processor and at least one second processor, so that the system can boot normally based on these reliable preset configuration information when it is restarted, avoiding the startup failure problem caused by missing or invalid configuration information, which is in line with the user's desire for the system to recover quickly and ensure basic operation.
[0114] Accordingly, step S103 may include but is not limited to:
[0115] Step S1033: Based on the loading strategy, load the preset configuration information of the electronic device to replace the designated startup configuration information in the designated storage space of the first processor and the at least one second processor to perform system startup.
[0116] After the replacement operation is completed, the unified extensible firmware interface can use the preset configuration information in the storage space specified by the first processor to guide the system to start up, ensuring that the system can enter the running state with the preset configuration.
[0117] In this embodiment, if the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in an invalid state, the invalid specified startup configuration information is replaced with the preset configuration information, so that the system can bypass the startup obstacles caused by the invalid configuration information and quickly recover to a startup state, thereby ensuring the basic availability of the system and avoiding the inconvenience and loss to the user due to the inability to start for a long time.
[0118] As another optional embodiment of the present application, refer to Figure 7 , is a flow chart of an information loading control method provided in Example 7 of the present application, such as Figure 7 As shown, it may include but not be limited to:
[0119] Step S201: Attempt to detect specified startup configuration information in at least two processors in an electronic device based on a unified extensible firmware interface; the at least two processors include a first processor and at least one second processor; the first processor is configured to provide startup configuration information for system startup to the unified extensible firmware interface.
[0120] Step S201 is an implementation of the above-mentioned step S101.
[0121] Step S202: If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in at least one second processor is in a valid state, determine a loading strategy for loading the specified startup configuration information corresponding to the at least one second processor into the specified storage space of the first processor.
[0122] The detailed process of step S202 can be found in the relevant introduction of the above step S1021, which will not be repeated here.
[0123] Step S203: Based on the loading strategy, load the designated startup configuration information corresponding to the at least one second processor to replace the designated startup configuration information in the designated storage space of the first processor to perform system startup.
[0124] The detailed process of step S203 can be found in the relevant introduction of the above step S1031, which will not be repeated here.
[0125] Step S204: If the detection result indicates that the specified startup configuration information in the first processor is in a valid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the specified startup configuration information in the first processor into a specified storage space of the at least one second processor.
[0126] The detailed process of step S204 can be found in the related introduction of the above step S1022, which will not be repeated here.
[0127] Step S205: Based on the loading strategy, load the specified startup configuration information in the first processor to replace the specified startup configuration information in the specified storage space of the at least one second processor, so as to boot the system using the specified startup configuration information in the first processor based on the unified extensible firmware interface.
[0128] The detailed process of step S205 can be found in the related introduction of the above step S1032, which will not be repeated here.
[0129] Step S206: If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the preset configuration information of the electronic device into the designated storage space of the first processor and the designated storage space of the at least one second processor.
[0130] The detailed process of step S206 can be found in the related introduction of the above step S1023, which will not be repeated here.
[0131] Step S207: Based on the loading strategy, load the preset configuration information of the electronic device to replace the designated startup configuration information in the designated storage space of the first processor and the at least one second processor to perform system startup.
[0132] The detailed process of step S207 can be found in the related introduction of the above step S1033, which will not be repeated here.
[0133] Step S208: In response to the configuration information modification event, modify the designated startup configuration information in the first processor, and synchronize the modified designated startup configuration information to the at least one second processor.
[0134] During actual system operation, the system startup configuration information may be modified according to actual needs, such as changing the startup device sequence, adjusting hardware parameter settings, optimizing system performance-related configurations, etc. These operations will trigger configuration information modification events.
[0135] When the unified extensible firmware interface detects a configuration information modification event, the configuration information modification operation is preferentially performed on the first processor because the first processor is configured to provide startup configuration information for system startup to the unified extensible firmware interface.
[0136] After the modification of the specified startup configuration information in the first processor is completed, the modified information may be synchronized to at least one second processor.
[0137] Synchronization can be implemented in a variety of ways, which are not limited in this application. For example, if the processors communicate via shared memory, the UEFI can write the modified configuration information to a shared memory area and then notify the second processor to read the new configuration information from the shared memory area.
[0138] During the synchronization process, certain synchronization mechanisms can be employed to ensure data consistency. For example, transaction processing can be used to treat modification and synchronization operations as an atomic operation, where either all succeed or all fail. This prevents situations where some second processors succeed while others fail. Furthermore, the synchronization process can be monitored and recorded, allowing for timely investigation and resolution of any anomalies.
[0139] In this embodiment, by responding to a configuration information modification event, the specified startup configuration information in the first processor is modified and the modified information is synchronized to at least one second processor. This allows the system to obtain the correct configuration from the second processor that has synchronized valid configuration information if an abnormal situation occurs in which the specified startup configuration information of the first processor is invalid, thereby ensuring that there is still available configuration information for system startup. For example, if the configuration information stored in the first processor is damaged due to a hardware failure or software error, or if the user replaces the first processor, the second processor that has synchronized the valid configuration can be used as a backup configuration source to avoid system startup failure due to missing configuration information.
[0140] As another optional embodiment of the present application, an information loading control method provided in Example 8 of the present application is provided. This embodiment is mainly an implementation method of the above-mentioned response to the configuration information modification event, which may specifically include but is not limited to any of the following:
[0141] Step S41: responding to a configuration change operation performed by a user on a setting interface of the unified extensible firmware interface.
[0142] The unified extensible firmware interface can provide a setting interface in the form of a graphical or command line, through which users can intuitively view and modify various startup configuration information of electronic devices.
[0143] In the settings interface, users can see various configuration options related to system startup, hardware settings, etc., such as startup device order, secure startup settings, hardware resource allocation parameters, etc.
[0144] Step S42: responding to detecting a change in the hardware topology.
[0145] The hardware topology can be understood as the connection relationship and hierarchical structure between various hardware components in an electronic device.
[0146] Hardware topology changes may occur in a variety of situations, such as adding hardware devices, removing hardware devices, and changing the connection method of hardware devices. For example, a user may add a network card or a hard drive to the system, or replace a hardware device in a slot on the motherboard. These operations will cause the hardware topology to change.
[0147] When a hardware topology change is detected, an attempt may be made to detect designated boot configuration information in at least two processors in the electronic device based on the unified extensible firmware interface.
[0148] In this embodiment, a configuration information modification mechanism is provided for the system from two perspectives: user active operation and automatic detection of hardware topology changes, thereby ensuring that the system can adjust the startup configuration information in a timely manner according to actual needs, thereby improving the flexibility and reliability of the system.
[0149] Next, the information loading control device provided by the present application is introduced. The information loading control device introduced below and the information loading control method introduced above can be referenced to each other.
[0150] The information loading control device includes: a detection module, a determination module and an update module.
[0151] The detection module is used to detect the specified startup configuration information in at least two processors in the electronic device.
[0152] a determining module configured to determine a loading strategy for the unified extensible firmware interface based on a detection result if a detection result indicates that invalid configuration information exists in the specified startup configuration information of the at least two processors;
[0153] An updating module is used to update the invalid configuration information based on the loading strategy to start the system.
[0154] The at least two processors may include a first processor and at least one second processor; the first processor may be configured to provide startup configuration information for system startup to the unified extensible firmware interface.
[0155] Determine the module, which can be used for:
[0156] If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in a valid state, determine a loading strategy for loading the specified startup configuration information corresponding to the at least one second processor into the specified storage space of the first processor.
[0157] Determine the module, which can be used for:
[0158] If the detection result indicates that the specified startup configuration information in the first processor is in a valid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the specified startup configuration information in the first processor into a specified storage space of the at least one second processor.
[0159] Accordingly, the update module can be used to:
[0160] Completely copying the specified startup configuration information from the specified storage space of the first processor to the specified storage space of each second processor in at least one second processor;
[0161] or,
[0162] The designated startup configuration information in the designated storage space of the first processor is divided into a plurality of parts, and each of the plurality of parts is copied to the designated storage space of each second processor in at least one second processor.
[0163] Determine the module, which can be used for:
[0164] If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the preset configuration information of the electronic device into the specified storage space of the first processor and the specified storage space of the at least one second processor.
[0165] The information loading control device may further include:
[0166] The synchronization module is configured to modify the specified startup configuration information in the first processor in response to a configuration information modification event, and synchronize the modified specified startup configuration information to the at least one second processor.
[0167] In response to a configuration information modification event, any of the following may be included:
[0168] responding to a configuration change operation performed by a user on a setting interface of the unified extensible firmware interface;
[0169] In response to detecting a hardware topology change.
[0170] In another embodiment of the present application, an electronic device is provided, including:
[0171] A first processor is configured to store specified startup configuration information;
[0172] at least one second processor, configured to assist the first processor in storing startup configuration information;
[0173] a power supply module, configured to supply power to the first processor and the at least one second processor;
[0174] The first processor is further configured to:
[0175] detecting, based on a unified extensible firmware interface, specified startup configuration information in at least two processors in the electronic device;
[0176] If the detection result indicates that invalid configuration information exists in the specified startup configuration information of the at least two processors, determining a loading strategy for the unified extensible firmware interface based on the detection result;
[0177] Based on the loading strategy, the invalid configuration information is updated to perform system startup.
[0178] The first processor may include: a first storage unit; the power consumption of the first storage unit meets a first power consumption threshold and / or the data reading speed of the first storage unit meets a first reading speed threshold.
[0179] The second processor may include: a second storage unit; the power consumption of the second storage unit meets a second power consumption threshold and / or the data reading speed of the second storage unit meets a second reading speed threshold; the first storage unit and the second storage unit are respectively used to store the specified startup configuration information.
[0180] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
[0181] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.
[0182] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0183] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
Claims
1. A method for controlling information loading, comprising: Attempting to detect specified boot configuration information in at least two processors in the electronic device based on the unified extensible firmware interface; If the detection result indicates that invalid configuration information exists in the specified startup configuration information of the at least two processors, determining a loading strategy for the unified extensible firmware interface based on the detection result; Based on the loading strategy, the invalid configuration information is updated to perform system startup.
2. The information loading control method according to claim 1, wherein the at least two processors include a first processor and at least one second processor; the first processor is configured to provide startup configuration information for system startup to the unified extensible firmware interface.
3. The information loading control method according to claim 2, wherein if the detection result indicates that invalid configuration information exists in the designated startup configuration information of the at least two processors, determining the loading strategy of the unified extensible firmware interface based on the detection result comprises: If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in a valid state, determine a loading strategy for loading the specified startup configuration information corresponding to the at least one second processor into the specified storage space of the first processor.
4. The information loading control method according to claim 2, wherein if the detection result indicates that invalid configuration information exists in the designated startup configuration information of the at least two processors, determining the loading strategy of the unified extensible firmware interface based on the detection result comprises: If the detection result indicates that the specified startup configuration information in the first processor is in a valid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the specified startup configuration information in the first processor into a specified storage space of the at least one second processor.
5. The information loading control method according to claim 4, wherein updating the invalid configuration information based on the loading strategy comprises: Completely copying the specified startup configuration information from the specified storage space of the first processor to the specified storage space of each second processor in at least one second processor; or, The designated startup configuration information in the designated storage space of the first processor is divided into a plurality of parts, and each of the plurality of parts is copied to the designated storage space of each second processor in at least one second processor.
6. The information loading control method according to claim 2, wherein if the detection result indicates that invalid configuration information exists in the designated startup configuration information of the at least two processors, determining the loading strategy of the unified extensible firmware interface based on the detection result comprises: If the detection result indicates that the specified startup configuration information in the first processor is in an invalid state and the specified startup configuration information in the at least one second processor is in an invalid state, determine a loading strategy for loading the preset configuration information of the electronic device into the specified storage space of the first processor and the specified storage space of the at least one second processor.
7. The information loading control method according to claim 2, further comprising: In response to a configuration information modification event, the designated startup configuration information in the first processor is modified, and the modified designated startup configuration information is synchronized to the at least one second processor.
8. The information loading control method according to claim 7, wherein the response to the configuration information modification event comprises any one of the following: responding to a configuration change operation performed by a user on a setting interface of the unified extensible firmware interface; In response to detecting a hardware topology change.
9. An electronic device comprising: A first processor is configured to store specified startup configuration information; at least one second processor, configured to assist the first processor in storing startup configuration information; a power supply module, configured to supply power to the first processor and the at least one second processor; The first processor is further configured to: detecting, based on a unified extensible firmware interface, specified startup configuration information in at least two processors in the electronic device; If the detection result indicates that invalid configuration information exists in the specified startup configuration information of the at least two processors, determining a loading strategy for the unified extensible firmware interface based on the detection result; Based on the loading strategy, the invalid configuration information is updated to perform system startup.
10. The electronic device according to claim 9, wherein the first processor comprises: a first storage unit; The power consumption of the first storage unit meets a first power consumption threshold and / or the data reading speed of the first storage unit meets a first reading speed threshold; The second processor includes: a second storage unit; the power consumption of the second storage unit meets a second power consumption threshold and / or the data reading speed of the second storage unit meets a second reading speed threshold; the first storage unit and the second storage unit are respectively used to store the specified startup configuration information.