Method and apparatus for booting electronic device, and server, computer device and medium

By using differential memory in electronic devices to store multiple different configurations and dynamically switch during startup, the problem of poor normalization of BIOS system is solved, and the adaptation of automated management and diversified functional requirements is achieved.

WO2025091766A1PCT designated stage expired Publication Date: 2025-05-08INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
PCT/CN2024/084569
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-10-30
Filing Date
2024-03-28
Publication Date
2025-05-08

AI Technical Summary

Technical Problem

When the existing BIOS system meets the functional needs of different products, the degree of normalization is poor, resulting in the need of multiple BIOS versions for management, which increases the complexity of development and maintenance.

Method used

By introducing differential memory into the electronic device, multiple sets of differential configurations suitable for different preset functional requirements are stored, and differential configurations suitable for the current functional requirements are dynamically switched during startup to respond to calls of function settings.

Benefits of technology

It realizes the automation of the function setting of the BIOS system, improves the normalization of the basic transmission system version, reduces the complexity of development and maintenance, and adapts to diversified product functional needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084569_08052025_PF_FP_ABST
    Figure CN2024084569_08052025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of the bootup management of electronic devices, and particularly relates to a method and apparatus for booting an electronic device, and a server, a computer device and a medium. The method for booting an electronic device comprises: capturing function settings of a basic transmission function of an electronic device to be booted; identifying whether there is a differential configuration of the function settings in a differential memory, wherein the differential memory comprises a plurality of groups of differential configurations for applying to different preset function requirements; and in response to the presence of a differential configuration applicable to current function requirements in the differential memory, using the differential configuration applicable to the current function requirements as the current configuration of the function settings, so as to respond to the calling for the function settings during bootup. The use of the method can facilitate, on the basis of basic transmission functions, the implementation of the diversity of product adaptation while normalizing the versions of a basic transmission system.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, server, computer equipment and medium for starting electronic equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on October 30, 2023, with application number 202311414637.0, and application name “Startup method, device, server, computer equipment and medium for electronic device”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the technical field of electronic device startup management, and in particular to a startup method for an electronic device, a startup device for an electronic device, a server, a computer device, and a non-volatile computer-readable storage medium. Background Art

[0004] For electronic devices like servers and computers, the BIOS (Basic Input / Output System) is one of the most critical components, connecting the hardware and the operating system. The BIOS provides the lowest-level, most direct hardware configuration and control for electronic devices. It also provides system parameters to the operating system.

[0005] However, BIOS typically provides a default, universal configuration version, which may not meet the needs of all products. Therefore, separate BIOS versions may need to be developed for different products. When multiple BIOS versions are needed to manage different products, BIOS standardization is poor.

[0006] Summary of the Invention

[0007] The present application provides a method for starting an electronic device, a device for starting an electronic device, a server, a computer device, and a non-volatile computer-readable storage medium.

[0008] On the one hand, a method for starting an electronic device is provided, which includes: capturing the function settings of the basic transmission functions of the electronic device to be started; identifying whether there is a differential configuration of the function settings in a differential memory, wherein the differential memory includes multiple groups of differential configurations for applying to different preset function requirements; and in response to the presence of a differential configuration applicable to the current function requirement in the differential memory, using the differential configuration applicable to the current function requirement as the current configuration of the function setting to respond to the call of the function setting during the startup process.

[0009] In one or more embodiments of the present application, in response to capturing the function settings of the basic transmission function in the initial stage of the startup process, the differential configuration applicable to the current function requirements is used as the current configuration of the function settings in response to the call to the function settings in the startup process, including: returning the differential configuration applicable to the current function requirements to the calling interface in response to the call to the function settings; and in response to the transition stage of the startup process allowing the transmission chip to perform a write operation, writing the called differential configuration to the transmission chip to update the current configuration of the corresponding function settings.

[0010] In one or more embodiments of the present application, the startup method of the electronic device also includes: in response to being in a transition phase, calling the difference configuration of the function setting applicable to the current functional requirements in the difference memory, writing the difference configuration into the transmission chip to update the current configuration of the corresponding function setting; and grabbing the current configuration of the target function setting to respond to the call of the target function setting.

[0011] In one or more embodiments of the present application, after identifying whether there is a differential configuration of the function setting in the differential memory, it includes: in response to the differential memory not querying the differential configuration applicable to the current functional requirements, returning to the default configuration of the function setting in the transmission chip to respond to the call of the function setting.

[0012] In one or more embodiments of the present application, the differential memory includes multiple configuration groups, each configuration group is associated with at least one preset functional requirement; the preset functional requirement includes a hardware adaptation requirement; identifying whether there is a differential configuration of the functional setting in the differential memory includes: searching the differential memory for a configuration group that matches the device hardware from the multiple configuration groups as the current action group, wherein each configuration group includes at least one differential configuration of the functional setting; and searching the current action group for a differential configuration that matches the functional setting.

[0013] In one or more embodiments of the present application, searching for a configuration group in a differential memory that matches the device hardware as the current action group includes: obtaining a group identifier that matches the device hardware; and identifying a configuration group in the differential memory that carries the group identifier, and calling the configuration group that carries the group identifier as the current action group.

[0014] In one or more embodiments of the present application, identifying a configuration group carrying a group identifier in a differential memory includes: obtaining address information pointed to by the group identifier; and locating a storage address indicated by the address information in the differential memory, and taking a differential configuration of at least one functional setting with a group identifier in the storage address as the current active group.

[0015] In one or more embodiments of the present application, searching for a configuration group in a differential memory that matches the device hardware as the current action group includes: identifying a hardware identifier of the device hardware; and matching a configuration group in the differential memory with an applicable hardware identifier as the current action group.

[0016] In one or more embodiments of the present application, the hardware identification includes at least one of a board device identification code and silk screen information.

[0017] In one or more embodiments of the present application, after searching the difference memory for a configuration group that matches the device hardware, the method further includes: in response to not finding a configuration group in the difference memory that matches the applicable device hardware, returning to a default configuration of the function settings in the transmission chip.

[0018] In one or more embodiments of the present application, the difference configuration is stored in the internal memory of the electronic device, and the transmission chip stores the default configuration of the function settings; the function settings of the basic transmission function of the electronic device to be started are captured; and identifying whether there is a difference configuration of the function settings in the difference memory includes: in the initial stage of the startup process, the default configuration of the function settings of each basic transmission function is captured from the transmission chip, and the option identifier of the function setting is obtained; the difference memory is called to query whether there is an option identifier and its corresponding difference configuration in the difference memory; in response to the existence of the option identifier and its corresponding difference configuration in the difference memory, the difference configuration is returned; and in response to the absence of the option identifier and its corresponding difference configuration in the difference memory, the default configuration in the transmission chip is returned.

[0019] In one or more embodiments of the present application, returning the difference configuration and writing the corresponding function setting includes: in the transition stage of the startup process, in response to the transmission chip allowing the write operation to be performed, writing the difference configuration returned in the initial stage into the function setting of the transmission chip; traversing the difference configurations applicable to the current functional requirements in the difference memory, writing the difference configurations that do not match the current configuration of the function setting in the transmission chip into the transmission chip, and updating the corresponding function setting in the transmission chip; and in response to the difference configurations applicable to the current functional requirements being written into the transmission chip, capturing the current configuration of each function setting in the transmission chip in response to the call of the function setting, and starting the electronic device based on the current configuration.

[0020] In one or more embodiments of the present application, the initial phase includes: a security verification sub-phase and an extensible firmware interface early initialization sub-phase; the transition phase includes: a driver execution environment sub-phase and a boot device selection sub-phase.

[0021] In one or more embodiments of the present application, the preset functional requirements include operating mode requirements, and the operating modes include performance mode, normal mode, and power saving mode; identifying whether there is a differential configuration of functional settings in the differential memory includes: obtaining a control instruction indicating a target operating mode; and identifying a mode identifier of the differential configuration in the differential memory, and returning a differential configuration whose mode identifier matches the target operating mode; wherein the mode identifier is used to indicate a mode to which the differential configuration applies.

[0022] In one or more embodiments of the present application, the startup method of the electronic device also includes: obtaining execution details of at least some execution nodes and generating node logs; wherein, at least some execution nodes include capturing at least one of default configuration nodes, identifying difference configuration nodes, and writing function setting nodes; and counting the node logs of each abnormal execution node that has an execution exception in at least one historical startup cycle, confirming the exception type of the abnormal execution node, and performing debugging and troubleshooting on the exception type and abnormal execution node.

[0023] In one or more embodiments of the present application, the differential memory includes multiple configuration groups, each configuration group includes a differential configuration of at least one functional setting; and codes associated with the multiple configuration groups are divided into multiple code modules.

[0024] In one or more embodiments of the present application, the default group includes some function settings; after capturing the function settings of the basic transmission functions of the electronic device to be started, it also includes: comparing the option identifier of the currently captured function setting with the default group list; and in response to the option identifier of the currently captured function setting being included in the default group list, returning the default configuration of the function setting in the transmission chip in response to the call to the function setting.

[0025] In one or more embodiments of the present application, the option identifiers in the default group list include: CPU activation core control number, memory mapped I / O high cardinality, fast startup, startup mode, PCIE hot plug, serial port, and IPV4 pre-execution environment startup.

[0026] On the other hand, a startup device for an electronic device is provided, which includes: a default memory, a difference memory and a control module; the default memory includes a default configuration for storing basic transmission functions; the difference memory includes multiple groups of difference configurations for adapting to different preset functional requirements; and the control module is used to implement the startup method of the electronic device in any of the above embodiments.

[0027] On the other hand, a server is provided. The server includes: a main body and a starting device of the electronic device as described in the above embodiment, wherein the starting device of the electronic device is provided in the main body.

[0028] In another aspect, a computer device is provided, comprising

[0029] one or more processors; and

[0030] A memory associated with one or more processors, the memory is used to store computer-readable instructions, and the computer-readable instructions implement the steps of the startup method of the electronic device when read and executed by the one or more processors.

[0031] On the other hand, a non-volatile computer-readable storage medium is provided. The non-volatile computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the steps of the startup method of the electronic device are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] FIG1 is a schematic diagram of a method for starting an electronic device according to an embodiment of the present application;

[0033] FIG2 is another flowchart of a method for starting an electronic device according to an embodiment of the present application;

[0034] FIG3 is a schematic diagram of a process for calling a configuration group according to an embodiment of the present application;

[0035] FIG4 is a schematic diagram of a process for constructing a sub-memory according to an embodiment of the present application;

[0036] FIG5 is a schematic diagram of a process of an initial startup method provided in an embodiment of the present application;

[0037] FIG6 is another schematic flow chart of the transition phase startup method provided in an embodiment of the present application;

[0038] FIG7 is a schematic structural diagram of a starting device of an electronic device provided in an embodiment of the present application;

[0039] FIG8 is a schematic diagram of the structure of a server provided in an embodiment of the present application;

[0040] FIG9 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application.

[0041] FIG10 is a schematic diagram of the structure of a non-volatile computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the embodiments described herein are used to explain this application and are not intended to limit this application.

[0043] A server is a type of computer or electronic device that runs faster, handles higher loads, and is more expensive than a typical computer. It provides computing or application services to other clients on a network, such as personal computers, smartphones, ATMs, and even large-scale equipment like train systems. Servers feature high-speed CPU (Central Processing Unit) computing power, long-term reliable operation, robust I / O (Input / Output) external data throughput, and excellent scalability.

[0044] As a node in a network, a server can store and process approximately 80% of the data and information on the network, and can be considered the soul of the network. Generally speaking, a server can be compared to the switch at a post office, while fixed or mobile network terminals such as microcomputers, laptops, PDAs (Personal Digital Assistants), and mobile phones can be compared to telephones scattered throughout homes, offices, and public places. Telephone calls and communications in daily life and work must pass through a switch to reach the destination phone. Similarly, network terminal devices such as microcomputers in homes and businesses access the Internet through a server to obtain information, communicate with the outside world, and entertain themselves. In layman's terms, a server can organize the devices connected to it.

[0045] A server is a high-performance computer on a network that provides various services to client computers. Under the control of a network operating system, it can share connected hard drives, tapes, printers, modems, and various specialized communication devices with client sites on the network. It can also provide network users with centralized computing, information publishing, and data management services. The high performance of a server is primarily reflected in its high-speed computing capabilities, long-term reliable operation, and strong external data throughput.

[0046] With the rapid development of servers, the requirements for server performance are getting higher and higher. In addition to performance, other indicators are also required to be higher and higher. While adapting to user needs, servers also focus on user experience.

[0047] Basic transmission systems such as BIOS (Basic Input Output System) serve as a bridge connecting hardware devices and operating systems and are one of the most important components of a server.

[0048] For example, the BIOS includes a rich set of server functions and provides a setup interface to control these functions. Users can use this interface (such as the SETUP screen) to configure BIOS settings tailored to their business needs. The BIOS provides a common set of default settings, but due to the diversity of business and user requirements, a single set of default BIOS settings may not cover all products.

[0049] For example, products such as AI (Artificial Intelligence) and HPC (High Performance Computing) have different functional focuses and require different BIOS settings.

[0050] For example, a PCIE (peripheral component interconnect express) port on an Intel server supports Gen4 speeds by default. If support for Gen5 speeds is required, UPI Link 3 (Ultra Path Inter Connect Link 3) must be disabled in the BIOS settings. Some products prioritize transmission speeds, so UPI Link 3 must be disabled in the BIOS settings. Some products, however, don't prioritize transmission speeds and require the use of UPI Link 3, so UPI Link 3 must be enabled in the BIOS settings. Due to the differences in BIOS settings, related technologies use multiple sets of code and multiple BIOS versions to manage different products.

[0051] To address the technical issues in related technologies, such as the complex number of basic transmission system versions required to meet user needs and the poor degree of standardization of the basic transmission system, this application provides a method for starting an electronic device, a device for starting an electronic device, a server, a computer device, and a non-volatile computer-readable storage medium. The following provides an example of the detailed technical solution of this application.

[0052] Please refer to Figure 1, which is a flowchart of a method for starting an electronic device provided in an embodiment of the present application. It should be noted that the electronic device is a device such as a computer, a mobile phone, or a server. In this embodiment, the electronic device is used as a server for example.

[0053] S101: Capture the function settings of the basic transmission function of the electronic device to be activated.

[0054] In this embodiment, the basic transmission system is used to implement basic transmission functions. Basic transmission functions can be functions implemented by transmission chips such as BIOS chips, which are basic input and output functions of electronic devices. Basic transmission functions may include basic input and output functions, power-on self-test functions, system self-start functions, and functions for providing system parameters to the operating system, etc., which are not limited here.

[0055] Accordingly, the basic transmission system can include basic input and output programs, a post-boot self-test program, and a system startup program. It can also read and write specific system configuration information from the CMOS. The basic transmission system provides the lowest-level and most direct hardware configuration and control for the computer, and can also provide some system parameters to the operating system.

[0056] Function setting refers to the setting / control of specific functions in devices or systems such as electronic devices to be started, basic transmission systems, operating systems, etc.

[0057] During the startup process of the electronic device to be started, it is necessary to continuously capture the function settings in the transmission chip for function configuration. In this embodiment, the capture of function settings can be a capture action performed in response to an external call or a capture action formed by spontaneous execution of program settings, which is not limited here.

[0058] S102: Identify whether there is a difference configuration of function settings in the difference memory, wherein the difference memory includes multiple groups of difference configurations for meeting different preset function requirements.

[0059] In this embodiment, while the default memory stores the default configuration of functional settings, it also includes a differential memory for storing at least two sets of differential configurations. The multiple differential configurations in the differential memory can be adapted to at least two preset functional requirements. In other words, the differential memory contains multiple differential configurations of at least one functional setting, or differential configurations that differ from the default settings in the default memory, to accommodate different preset functional requirements. In this way, a single basic transmission system version can be adapted to multiple preset functional requirements.

[0060] In one or more embodiments, the differential memory may be a hardware module or a software module, without limitation herein. For example, the differential memory may be an independent storage module, or may be part of the storage space of a module such as a memory within an electronic device or a basic transmission system chip, without limitation herein.

[0061] It is easy to understand that the default configuration is the basic configuration of the general factory function settings, and the differential configuration is the special configuration applicable to the functional requirements.

[0062] In response to the captured function setting, the difference memory can be queried to determine whether there is a difference configuration applicable to the current function requirement, so as to clarify whether there is a difference configuration of the function setting under the current function requirement, which is conducive to the automation of the electronic device startup process.

[0063] S103: In response to the presence of a differential configuration applicable to the current functional requirement in the differential memory, the differential configuration applicable to the current functional requirement is used as the current configuration of the functional setting to respond to the call of the functional setting during the startup process.

[0064] In this embodiment, in response to the presence of a differential configuration in the differential memory that is applicable to the current functional requirement, the differential configuration for the current functional requirement is called and used as the current configuration of the functional setting in response to the call to the functional setting. The call to the functional setting may be a passive response to the call to the functional setting or an active call to the functional setting, which is not limited here.

[0065] In one or more embodiments, the differential configuration applicable to the current functional requirements is used as the current configuration of the functional setting in response to the call to the functional setting. The differential configuration applicable to the current functional requirements can be written into the default memory to update the current configuration of the functional setting, and then the current configuration of the functional setting in the default memory is captured to respond to the call to the functional setting. Alternatively, the differential configuration applicable to the current functional requirements can be directly returned to the calling interface as the current configuration of the functional setting to complete the response to the call to the functional setting. Alternatively, the differential configuration applicable to the current functional requirements can be returned to the calling interface as the current configuration of the functional setting, and at the same time, the differential configuration applicable to the current functional requirements can be written into the default memory to update the current configuration of the functional setting. Alternatively, the differential configuration applicable to the current functional requirements can be returned to the calling interface as the current configuration of the functional setting, and after a period of time, the differential configuration applicable to the current functional requirements can be written into the default memory to update the current configuration of the functional setting. This is not limited here.

[0066] Thus, in this embodiment, the differential memory stores multiple sets of differential configurations applicable to different preset functional requirements, which is beneficial to optimizing the normalization of basic transmission system (such as BIOS, etc.) versions and increasing the diversity of products adapted to a basic transmission system version. At the same time, when calling function settings during the startup process, while capturing the default configuration in the transmission chip as traditionally, the differential memory is also searched to see whether there is a differential configuration. If a differential configuration exists, the differential configuration is returned as the current configuration of the function setting, so that the differential configuration is used to respond to the call to the function setting, thereby enabling the electronic device to be started to be configured according to the functional requirements during the startup process.

[0067] At the same time, in this embodiment, the differentiated configurations applicable to multiple preset functional requirements and the default configuration are packaged, self-tested, and managed as a whole. A basic transmission system can be adapted to multiple electronic equipment products, reducing the time cost of excessive updates and maintenance. For example, when updating some functional settings in the basic transmission system, there is no need to perform tedious operations such as packaging, self-testing, and management for each version of the basic transmission system. At the same time, during the management process of uploading each basic transmission system version, the risk of some functional settings being missed is relatively small, which helps reduce management risks.

[0068] Please refer to FIG. 2 , which is a flow chart of a method for starting an electronic device according to an embodiment of the present application.

[0069] In this embodiment, the electronic device's boot process includes an initial phase and a transition phase. The initial phase is when a transmission chip, such as a BIOS chip, does not support write operations, while the transition phase is when the transmission chip supports write operations. The transition phase bridges the initial phase and the electronic device completes its boot process.

[0070] Furthermore, the initial phase may include: a security verification sub-phase and an extensible firmware interface early initialization sub-phase.

[0071] The transition phase may include: a driving execution environment sub-phase and a startup device selection sub-phase.

[0072] For example, if the electronic device is a server, the initial phase may include the SEC (Security Verification) phase and the PEI (EFI Pre-Initialization) phase. The transition phase may include the DXE (Driver Execution Environment) phase and the BDS (Boot Device Selection) phase. EFI stands for Extensible Firmware Interface.

[0073] In this embodiment, different response strategies are used for the initial stage and the transition stage, which will be described in detail later. It should be noted that step S201 in this embodiment is illustrated by taking the initial stage of the electronic device startup process to capture the function settings of the basic transmission function as an example, and does not strictly limit the implementation process of each capture function setting in this application.

[0074] S201: Capturing the function settings of basic transmission functions in the initial stage.

[0075] In this embodiment, the function setting may have a default configuration stored in the transmission chip and / or a differential configuration stored in the differential memory.

[0076] That is to say, the difference configuration is stored in the internal memory of the electronic device, and the transmission chip stores the default configuration set by the function, thereby saving space resources of the transmission chip, which is conducive to ensuring the stability of the transmission chip operation and response efficiency.

[0077] In one or more embodiments, each function setting may include an option identifier and a current configuration corresponding to the option identifier. In one or more embodiments, the option identifier may be, for example, the name of a function option visible to a user on a SETUP interface, a generic name of an option during installation and configuration of an electronic device, or a custom name identifier; the current configuration is the specific setting content of the option identifier.

[0078] For example, the option label is SPI Mode (Serial Peripheral Interface Mode), and the current configuration is Quad Mode (Quad Mode).

[0079] S202: Check whether there is a configuration group matching the device hardware in the differential memory.

[0080] In this embodiment, it is determined whether there is a configuration group matching the device hardware in the differential memory. If it is determined that there is no configuration group matching the device hardware in the differential memory, it is determined that the device hardware does not have a differential configuration of the functional settings of the basic transmission function, and step S203 is executed. If it is determined that there is a configuration group matching the device hardware in the differential memory, it is determined that the current device hardware needs differential configuration, and step S204 is executed.

[0081] The different configurations of each function setting can be stored independently in the difference memory; or the different configurations can be divided into groups based on certain division criteria and stored in the difference memory, that is, the difference memory includes multiple groups of different configurations for different preset function requirements.

[0082] For example, the differential memory includes a plurality of configuration groups, wherein each configuration group includes a differential configuration of at least one functional setting.

[0083] Each configuration group is associated with at least one preset functional requirement. In one or more embodiments, different configurations applicable to the same preset functional requirement can be formed into a single configuration group to reduce the computational burden of identifying the corresponding configuration group. Alternatively, different configurations applicable to the same preset functional requirement can be formed into multiple configuration groups to improve the response efficiency of a single configuration group.

[0084] In one or more embodiments, the preset functional requirements include hardware adaptation requirements and / or operating mode requirements. That is, the preset functional requirements may include hardware adaptation requirements; alternatively, the preset functional requirements may include operating mode requirements; alternatively, the preset functional requirements may include both hardware adaptation requirements and operating mode requirements. In this embodiment, the hardware adaptation requirements are described with examples, and the operating mode requirements will be described with examples later.

[0085] In one or more embodiments, the code related to this application can be written / packaged in modules to simplify the module update and maintenance process and improve the update and maintenance efficiency. For example, the code associated with multiple configuration groups can be divided into multiple code modules.

[0086] S203: Returning to the default configuration of the function setting in the transmission chip in response to the call of the function setting.

[0087] In this embodiment, in response to the fact that no configuration group matching the applicable device hardware is found in the differential memory, it is determined that no differential configuration matching the current functional requirement exists in the differential memory, and the default configuration of the functional settings in the transmission chip can be returned. In one or more embodiments, upon confirming that no differential configuration matching the current functional requirement exists in the differential memory, the default configuration of the functional settings in the transmission chip can be directly retrieved without querying the differential memory, thereby improving the efficiency of responding to functional setting calls, reducing redundant search operations, and significantly reducing the computational burden.

[0088] And / or, in response to the difference memory not finding a difference configuration applicable to the current functional requirements, the default configuration of the function settings in the transmission chip is returned in response to the call of the function settings, that is, the default configuration of the function settings in the transmission chip can be returned in response to the call of the function settings.

[0089] S204: Using the configuration group in the differential memory that matches the device hardware as the current action group.

[0090] In this embodiment, in response to the presence of a configuration group that matches the device hardware in the differential memory, the configuration group that matches the device hardware is used as the current action group. If so, the differential configuration can be subsequently searched from the current action group without repeatedly locating the configuration group and the differential configuration, which helps to reduce the operational burden during the startup process. In one or more embodiments, the current action group can be formed by still storing the current action group in the differential memory, or by forming a sub-memory to store the current action group in a separate sub-memory, which is not limited here. In one or more embodiments, the sub-memory can be a database, etc., which is not limited here. The implementation method of forming the sub-memory will be explained with examples later.

[0091] S205: Search the current action group to see if there is a different configuration that matches the function setting.

[0092] In this embodiment, it is determined whether there is a difference configuration that matches the function setting in the current action group. Based on the determination that there is no difference configuration that matches the function setting in the current action group, step S203 is executed; based on the determination that there is a difference configuration that matches the function setting in the current action group, and the difference memory has a difference configuration that is suitable for the current function requirement, step S206 is executed.

[0093] If so, it is realized through steps S202 to S205 to identify whether there is a different configuration of the function settings in the difference memory.

[0094] S206: Return the difference configuration applicable to the current functional requirement to the calling interface to respond to the call of the functional setting.

[0095] In this embodiment, in response to the presence of a differential configuration applicable to the current functional requirement in the differential storage, the differential configuration applicable to the current functional requirement is returned to the calling interface in response to the call for the functional setting. In this way, the differential configuration applicable to the current functional requirement can be used as the current configuration of the functional setting in response to the call for the functional setting.

[0096] Furthermore, during the transition phase, the called difference configuration can be written into the transmission chip to update the current configuration of the corresponding function setting, thereby matching the current configuration in the transmission chip with the real configuration, improving the authenticity of the current configuration of the function setting and its consistency with the real configuration.

[0097] S207: Calling the difference configuration in the difference memory that is suitable for the current functional requirement.

[0098] In this embodiment, in response to entering the transition phase of the boot process, the transmission chip supports write operations, that is, a write operation can be performed on the transmission chip. The differential configurations in the differential memory that are applicable to the current functional requirements can be identified and the differential configurations in the differential memory that are applicable to the current functional requirements can be called up and written to the corresponding functional settings to update the current configuration of the functional settings.

[0099] In one or more embodiments, when calling a differential configuration that uses the current functional requirements, the differential configuration may be called for functional settings that do not match the current configuration in the transmission chip, thereby reducing unnecessary rewriting operations. This will be explained in detail below. Alternatively, all differential configurations that use the current functional requirements may be called, which helps reduce the amount of computation required for separate identification.

[0100] S208: Writing the differential configuration applicable to the current functional requirement into the transmission chip to update the current configuration of the corresponding functional setting.

[0101] In this embodiment, in response to being in the transition phase, a difference configuration applicable to the current functional requirement in the difference memory is called, and the difference configuration is written into the transmission chip to update the current configuration of the corresponding functional setting.

[0102] If so, when subsequently grabbing function settings, the current configuration of the function settings can be directly grabbed, and there is no need to jump to the difference memory / current action group again to query whether there is a difference in configuration. This is helpful in reducing redundant jump and call operations, thereby helping to reduce the operating burden and improving the response efficiency of function setting calls.

[0103] In one or more embodiments, an implementation method of calling a differential configuration of a function setting that does not match a current configuration in a transmission chip is described by way of example:

[0104] In the transition phase of the startup process, in response to the transmission chip allowing the execution of the write operation, the difference configuration returned in the initial phase can be written into the function setting of the transmission chip.

[0105] Furthermore, the differential configurations applicable to the current functional requirements in the differential memory can be traversed, and the differential configurations that do not match the current configuration of the functional settings in the transmission chip can be written into the transmission chip, thereby updating the corresponding functional settings in the transmission chip. In response to the differential configurations applicable to the current functional requirements being written into the transmission chip, the current configuration of each functional setting in the transmission chip is captured in response to the call of the functional setting, and the electronic device is started based on the current configuration.

[0106] S209: Capture the current configuration of the target function setting to respond to the call of the target function setting.

[0107] In this embodiment, in response to the difference configurations in the difference memory that meet the current functional requirements being written into the transmission chip, the current configuration of the functional setting can be captured from the transmission chip in response to the call of the target functional setting.

[0108] The following is an example of the preset functional requirements including the operating mode requirements.

[0109] Among them, the operating modes include performance mode, normal mode and power saving mode.

[0110] Identifying whether there is a difference configuration of function settings in the difference memory includes the following steps:

[0111] Get the control command indicating the target operating mode.

[0112] Identify the mode identifier of the differential configuration in the differential memory and return the differential configuration whose mode identifier matches the target operating mode, wherein the mode identifier is used to indicate the mode to which the differential configuration applies.

[0113] In one or more embodiments, when the preset functional requirements include hardware adaptation requirements and operation mode requirements, the refinement of the difference configuration can be optimized to improve the matching degree between the functional setting configuration and the user requirements.

[0114] Furthermore, in this embodiment, execution details of at least some execution nodes can be obtained to generate node logs. The node logs of each abnormal execution node that experienced an execution exception within at least one historical startup cycle are counted, the abnormality type of the abnormal execution node is confirmed, and debugging and troubleshooting are performed based on the abnormality type and the abnormal execution node. In this way, when an execution exception occurs, the node log can be pulled, the node with the execution exception can be confirmed, and the abnormality type can be determined based on the node log, thereby improving debugging and troubleshooting efficiency.

[0115] In one or more embodiments, at least some of the execution nodes include at least one of a capture default configuration node, an identification difference configuration node, and a write function setting node. That is, at least some of the execution nodes may include a capture default configuration node, an identification difference configuration node, or a write function setting node; or, at least some of the execution nodes include at least two of the three; or, at least some of the execution nodes include all three of the capture default configuration node, the identification difference configuration node, and the write function setting node. Selecting relatively important execution nodes helps streamline node logs.

[0116] Of course, in order to improve the integrity of the log, all execution nodes can generate execution details.

[0117] In one or more embodiments, a default group may be provided. The default group is a combination of function settings whose default configuration cannot be changed. The default group includes some function settings, that is, the default group includes at least one function setting. After capturing the function settings of the basic transmission function, the following steps are also included:

[0118] Compare the option flags of the currently fetched function settings with the default group list.

[0119] In response to the option identifier of the currently captured function setting being included in the default group list, the default configuration of the function setting in the transmission chip is returned in response to the call of the function setting.

[0120] Among them, the option identifiers in the default group list include: CPU activation core control number, memory mapped I / O high cardinality, fast boot, boot mode, PCIE (peripheral component interconnect express, high-speed serial computer expansion bus standard) hot plug, serial port, IPV4 (Internet Protocol version 4, Internet Protocol version 4) pre-execution environment boot.

[0121] For example, the default group may include the following option tags for function settings and their corresponding default configurations:

[0122] The option is labeled CPU Activate Core (Central Processing Unit Activation Core Control Number), and the default configuration is 0, which means all cores are activated.

[0123] The option is labeled MMIO High Base and is configured to Auto by default, which can effectively reduce the risk of downtime.

[0124] The option is labeled Quiet Boot and is configured to Enable by default.

[0125] The option is labeled Boot Mode, and the default configuration is UEFI (Unified Extensible Firmware Interface), which supports entering the OS (Operating System).

[0126] The option is labeled PCIE Hot Plug and is configured to Enable by default, which supports the hot plug function.

[0127] The option is labeled Serial Port and is configured to Enable by default, which is used to support serial port information output.

[0128] The option is labeled IPV4 PXE Boot (IPV4 Pre-execution Environment Boot), and the default configuration is Enable, which is used to support PXE boot.

[0129] The option is labeled SPI Mode and the default configuration is Quad Mode.

[0130] Furthermore, the default group directory can be traversed to identify whether all differential configurations of each function setting in the default group directory have been invoked. In response to the differential configurations of each function setting in the default group directory being invoked, there is no need to subsequently confirm whether the function setting belongs to the default group, thereby further reducing the computational burden. In response to the differential configurations of each function setting in the default group directory not being invoked, in other words, there are still differential configurations of function settings in the default group directory that have not been invoked, then in subsequent processes, it is still necessary to determine whether the function setting belongs to the default group until all differential configurations of each function setting in the default group directory have been invoked.

[0131] In one or more embodiments, a default identifier can be assigned to the function settings belonging to the default group in the transmission chip. When the default identifier is identified when capturing the function settings, the default configuration of the transmission chip is directly returned without having to query whether there is a difference configuration in the difference memory, thereby effectively reducing the computational burden of returning the current configuration of the function settings and improving the efficiency of responding to function setting calls.

[0132] Please refer to Figure 3, which is a schematic diagram of the process of calling a configuration group provided in an embodiment of the present application.

[0133] In this embodiment, a group identifier that matches the device hardware may be obtained. The group identifier may include a number and / or unique information such as function settings and differential configurations of the configuration group.

[0134] Identify the configuration group carrying the group identifier in the difference memory, and call the configuration group carrying the group identifier as the current action group.

[0135] Get the address information pointed to by the group ID.

[0136] The storage address indicated by the address information in the difference memory is located, and the difference configuration of at least one function setting with a group identifier in the storage address is used as the current action group.

[0137] As shown in Figure 3, the group identifiers of the configuration groups are P1, P2, P3, ..., PN. When the group identifier of the configuration group that matches the current functional requirements is P2, configuration group P2 can be called. When the group identifier of the configuration group that matches the current functional requirements is P5, configuration group P5 can be called. This will not be repeated here.

[0138] In one or more embodiments, the hardware identifier of the device hardware may also be identified, and a configuration group in the differential memory that is suitable for the hardware identifier may be matched as the current active group.

[0139] The hardware identification includes at least one of a board device identification code, such as a board ID (Identity document), and silk screen information.

[0140] For example, the hardware identification may include a board device identification code, and the board device identification code is used to represent information about the device hardware to search for a configuration group / differential configuration applicable to the device hardware.

[0141] Furthermore, a mapping relationship between the group identifier and the hardware identifier may be pre-established, and the configuration group may be matched based on the mapping relationship between the two.

[0142] In one or more embodiments, at the initial stage of the startup process, the default configuration of each function setting of the basic transmission function can be captured from the transmission chip to obtain the option identifier of the function setting.

[0143] The difference memory is called to query whether the option identifier and the corresponding difference configuration exist in the difference memory.

[0144] In response to the existence of the option identifier and the corresponding differential configuration in the differential memory, the differential configuration is returned. In response to the absence of the option identifier and the corresponding differential configuration in the differential memory, the default configuration in the transmission chip is returned.

[0145] Furthermore, given the inconsistencies in hardware design across electronic devices, as well as the inconsistencies in the number and types of supported devices, the silkscreen information on device hardware is even more complex. Therefore, hardware identification can also include silkscreen information, which can be preset in a differential memory / configuration group / sub-memory. After matching the board device identification code, the silkscreen information can be further matched, facilitating more refined differential configurations.

[0146] For example, the silk screen information may include a logo, hardware name, architecture information, batch number, production date (or factory date), place of origin, and Pin1 information, etc., which are not limited here.

[0147] The following is an example of a specific implementation of the sub-memory mentioned in the above step S204.

[0148] Please refer to FIG4 , which is a schematic diagram of the process of constructing a sub-memory according to an embodiment of the present application.

[0149] S401: Acquire a differential memory.

[0150] In this embodiment, step S401 can be executed before steps S101 and S201. If a sub-memory is pre-created, subsequent calls can directly search for different configurations of function settings in the sub-memory. Of course, the process of constructing the sub-memory in this embodiment can also be executed at any stage of the startup process, and this is not limited here.

[0151] S402: Obtain the hardware identification of the device hardware.

[0152] In this embodiment, the hardware identification of the device hardware may be as described above, and the hardware identification includes at least one of a board device identification code (such as Board ID, etc.) and silkscreen information.

[0153] For example, the hardware identification may include a board device identification code, and the board device identification code is used to represent information about the device hardware to search for a configuration group / differential configuration applicable to the device hardware.

[0154] The printed information may include logo, hardware name, architecture information, batch number, production date (or factory date), place of origin and Pin1 information, etc., which are not limited here.

[0155] S403: Calling the configuration group matching the hardware identifier in the differential memory and storing it in the sub-memory.

[0156] In this embodiment, in response to the existence of a configuration group matching the hardware identifier in the differential memory, the configuration group matching the hardware identifier is called and stored in the sub-memory.

[0157] S404: Searching for different configurations of the function settings in the sub-memory.

[0158] In this embodiment, in response to forming a sub-memory that stores differential configurations adapted to current functional requirements, subsequent calls and inquiries about differential configurations can be made directly from the sub-memory, reducing query workload and lowering computational burden.

[0159] In one or more embodiments, the sub-memory may be a custom database, storage space, etc., which is not limited herein. Taking the sub-memory as a database as an example, the database may be named MPF (Multi Project Function) database.

[0160] In summary, taking the BIOS as the basic transmission system as an example, the present application can construct a differential memory based on the requirements of general or custom products. Each general or custom product can have its own unique configuration group. During the startup phase, the BIOS identifies the current hardware identifier and selects the corresponding configuration group. The configuration group is installed in the sub-memory. The differential memory contains differential information for all products. Subsequent startups can prioritize using the information in the sub-memory. If the required information is not in the sub-memory, the default information is used. Special calls are added. The differential configuration in the sub-memory can replace the default configuration of the BIOS function settings in the BIOS chip. That is, the BIOS chip stores the default settings, while the differential settings are stored in the sub-memory. In the early startup phase, when the BIOS settings need to be retrieved from the BIOS chip for system initialization, the present application can prioritize searching in the sub-memory. If no BIOS settings are found, the default settings in the BIOS chip are used. Later in the startup phase, when the BIOS chip supports write operations, the information in the sub-memory is written to the BIOS chip. Later in the startup phase, the BIOS settings are directly retrieved from the BIOS chip. In this way, the present application can achieve BIOS setting normalization, that is, it can integrate multiple BIOS versions in the related art into one, thereby improving adaptability diversity.

[0161] Please refer to Figures 5 and 6. Figure 5 is a flow chart of the initial stage startup method provided in an embodiment of the present application, and Figure 6 is a flow chart of the transition stage startup method provided in an embodiment of the present application.

[0162] In this embodiment, the basic transmission function is described by taking the BIOS (Basic Input Output System) function as an example.

[0163] The control module is connected to the internal memory interface, so that the control module is connected to the internal memory.

[0164] The control module is also connected to the BIOS chip via an integrated south bridge. The control module can be connected to the integrated south bridge via a direct media interface (DMI), such as a Direct Media Interface (DMI). The integrated south bridge can be connected to the BIOS chip via a serial bus interface (SPI), such as a Serial Peripheral Interface (SPI).

[0165] The internal memory may include a differential memory, which includes multiple configuration groups, each of which stores differential configurations of multiple BIOS settings. In other words, the differential memory may be part of the storage space of the internal memory, which is a virtual module.

[0166] In one or more embodiments, the control module may be a processor such as a CPU (Central Processing Unit) of the electronic device.

[0167] In one or more embodiments, the present application can query the internal memory and the BIOS chip at the initial stage to see whether there are default configurations and differential configurations of BIOS settings that are applicable to the current functional requirements, and return the differential configuration when it is determined that a differential configuration exists, and return the default configuration when it is determined that no differential configuration exists.

[0168] Alternatively, the internal memory can be queried to determine whether a different BIOS configuration exists that matches the current functional requirement. If a different BIOS configuration exists that matches the current functional requirement, the different configuration is returned. If a different BIOS configuration does not exist that matches the current functional requirement, the default configuration in the BIOS chip is queried and returned. This can reduce the redundant operation of repeatedly searching the BIOS chip when a different functional configuration exists, effectively reducing the tedious operation of searching for different configurations.

[0169] In other words, capturing the function settings of the basic transmission functions of the electronic device to be started and identifying whether a differential configuration of the function settings exists in the differential memory includes: at the initial stage of the startup process, calling the differential memory to query whether an option identifier and its corresponding differential configuration exist in the differential memory. In response to the existence of the option identifier and its corresponding differential configuration in the differential memory, the differential configuration is returned; in response to the absence of the option identifier and its corresponding differential configuration in the differential memory, calling the transmission chip to obtain the default configuration of the function setting in the transmission chip, and returning the default configuration in the transmission chip in response to the call. This reduces the redundant operation of repeatedly searching the BIOS chip when a differential configuration of the function settings exists, effectively reducing the tedious operation of querying the differential configuration.

[0170] The following is an example of the detailed working principle of querying the internal memory first and then querying the BIOS chip in this embodiment:

[0171] As shown in FIG5 , in the initial stage of electronic device startup, the BIOS chip does not support write operations. The control module executes the startup program in the internal memory to start the electronic device. The startup program can be formed by the BIOS code related to the BIOS shown in FIG5 .

[0172] When executing the startup program corresponding to the BIOS code, in response to capturing the BIOS settings of the BIOS function of the electronic device, the control module can first connect to the difference memory of the internal memory through the internal memory interface to query whether there is a configuration group in the difference memory that uses the current preset function requirements (such as hardware adaptation requirements, operating mode requirements, etc.).

[0173] The configuration group that exists in the internal memory and is applicable to the current preset functional requirements is used as the current active group. A differential configuration that is applicable to the current BIOS settings is searched from the current active group. The differential configuration may include a label of the corresponding BIOS setting, or the internal memory may also store a correspondence between each differential configuration and the BIOS setting, which is not limited here.

[0174] In response to the presence of a different BIOS configuration in the current active group, the control module returns the configuration to the calling interface; the calling interface may be a BIOS code or a target address indicated by the BIOS code. In response to the absence of a different BIOS configuration in the current active group, the control module connects to the BIOS chip via the integrated south bridge, queries the BIOS chip for a default configuration of the BIOS settings, and returns the retrieved default configuration to the calling interface.

[0175] As shown in FIG6 , in response to entering / being in the transition phase of electronic device startup, the differential configuration in the internal memory applicable to the current functional requirements can be written into the BIOS chip to update the current configuration set by the corresponding BIOS.

[0176] Among them, the dotted arrow between the differential memory and the BIOS chip in Figure 6 illustrates the action of writing the differential configuration applicable to the current functional requirements into the BIOS chip. For example, the differential memory may be connected to the BIOS chip, and the control module may control the writing of the differential configuration from the internal memory into the BIOS chip; or, the internal memory may read the differential configuration and then write it into the BIOS chip via the control module. This is not limited here.

[0177] In one or more embodiments, the differential configuration written into the BIOS chip may be a differential configuration that is fully applicable to current functional requirements, or a differential configuration that is not called in the initial stage, or a differential configuration that is different from the current configuration set by the BIOS in the BIOS chip, which is not limited here.

[0178] In response to the different configurations that are suitable for the current functional requirements, the BIOS chip is written to the control chip, which executes the startup program corresponding to the BIOS code. When the configuration parameters set in the BIOS need to be called, the integrated south bridge connects to the BIOS chip, obtains the current configuration set in the BIOS, and responds to the startup program until the electronic device is completely started.

[0179] It should be understood that, although the various steps in the flow charts of Figures 1-6 are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless clearly stated herein, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in Figures 1-6 may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0180] Please refer to FIG. 7 , which is a schematic structural diagram of a starting device for an electronic device provided in an embodiment of the present application.

[0181] In this embodiment, the startup device of the electronic device includes a default memory 51 , a difference memory 52 and a control module 53 .

[0182] The default memory 51 includes a memory for storing a default configuration of basic transmission functions.

[0183] The difference memory 52 includes multiple sets of difference configurations for adapting to different preset functional requirements.

[0184] The control module 53 is used to implement the method for starting the electronic device in any of the above embodiments.

[0185] For the specific definition of the startup device of the electronic device, please refer to the definition of the startup method of the electronic device above, and will not be repeated here. The various modules in the startup device of the above-mentioned electronic device can be implemented in whole or in part by software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0186] Please refer to Figure 8, which is a structural diagram of the server provided in an embodiment of the present application.

[0187] In this embodiment, the server includes a body 61 and a starting device 62 of the electronic device as in the above embodiment.

[0188] The electronic device startup device 62 may be as described in the above embodiment, and the electronic device startup device 62 includes a default memory 51, a difference memory 52 and a control module 53 (as shown in FIG5 ), which will not be described in detail here.

[0189] The electronic device's activation device 62 is provided on the main body 61. In this way, the same version of the basic transmission system can be applied to multiple servers.

[0190] Please refer to FIG9 , which is a schematic diagram of the structure of a computer device provided in an embodiment of the present application.

[0191] In this embodiment, the computer device may be a server.

[0192] The internal structure diagram of a computer device can be shown as an example in Figure 9. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer-readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The database of the computer device is used to store differential configuration data for function settings. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer-readable instructions are executed by the processor, a method for starting an electronic device is implemented.

[0193] Those skilled in the art will understand that the structure shown in Figure 9 is a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0194] In one or more embodiments, a computer device is provided, comprising one or more processors; and a memory associated with the one or more processors, the memory being configured to store computer-readable instructions, the computer-readable instructions being executed by the one or more processors to implement the following steps:

[0195] S101: Capture the function settings of the basic transmission function of the electronic device to be activated.

[0196] S102: Identify whether there is a difference configuration of function settings in the difference memory, wherein the difference memory includes multiple groups of difference configurations for meeting different preset function requirements.

[0197] S103: In response to the presence of a differential configuration applicable to the current functional requirement in the differential memory, the differential configuration applicable to the current functional requirement is used as the current configuration of the functional setting to respond to the call of the functional setting during the startup process.

[0198] In one or more embodiments, as shown in FIG10 , a non-volatile computer-readable storage medium is provided. The non-volatile computer-readable storage medium stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the following steps are implemented:

[0199] S101: Capture the function settings of the basic transmission function of the electronic device to be activated.

[0200] S102: Identify whether there is a difference configuration of function settings in the difference memory, wherein the difference memory includes multiple groups of difference configurations for meeting different preset function requirements.

[0201] S103: In response to the presence of a differential configuration applicable to the current functional requirement in the differential memory, the differential configuration applicable to the current functional requirement is used as the current configuration of the functional setting to respond to the call of the functional setting during the startup process.

[0202] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile computer-readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0203] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0204] The above embodiments represent several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the concept of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the patent application shall be based on the appended claims.

Claims

1. A method for starting an electronic device, characterized in that: The method for starting the electronic device comprises: Capture the function settings of the basic transmission functions of the electronic device to be activated; Identifying whether there is a difference configuration of the function setting in a difference memory, wherein the difference memory includes a plurality of groups of difference configurations for meeting different preset function requirements; and In response to the presence of a differential configuration applicable to the current functional requirement in the differential memory, the differential configuration applicable to the current functional requirement is used as the current configuration of the functional setting to respond to the call of the functional setting during the startup process.

2. The method for starting an electronic device according to claim 1, characterized in that: In response to capturing the function setting of the basic transmission function in an initial stage of a startup process, taking the difference configuration applicable to the current function requirement as the current configuration of the function setting in response to calling the function setting during the startup process includes: Returning the difference configuration applicable to the current functional requirement to the calling interface in response to the call to the functional setting; and In response to the transition phase of the boot process allowing the transmission chip to perform a write operation, the called difference configuration is written into the transmission chip to update the current configuration corresponding to the function setting.

3. The method for starting an electronic device according to claim 2, characterized in that: The method for starting the electronic device further includes: In response to being in the transition phase, calling the difference configuration applicable to the current functional requirement in the difference memory, and writing the difference configuration applicable to the current functional requirement into the transmission chip to update the current configuration of the corresponding functional setting; and The current configuration of a target capability setting is fetched in response to a call to the target capability setting.

4. The method for starting an electronic device according to claim 1, characterized in that: The step of identifying whether there is a difference configuration of the function setting in the difference memory includes: In response to the difference memory not finding the difference configuration applicable to the current functional requirement, the default configuration of the functional setting in the transmission chip is returned to respond to the call of the functional setting.

5. The method for starting an electronic device according to claim 1, characterized in that: The difference memory includes a plurality of configuration groups, each configuration group is respectively associated with at least one preset functional requirement; the preset functional requirement includes a hardware adaptation requirement; The step of identifying whether there is a difference configuration of the function setting in the difference memory comprises: Searching for a configuration group in the difference memory that matches the device hardware from the multiple configuration groups as the current action group; wherein each configuration group includes at least one difference configuration of the function setting; and A difference configuration matching the function setting is searched from the current role group.

6. The method for starting an electronic device according to claim 5, characterized in that: The step of searching the difference memory for a configuration group that matches the device hardware as the current action group includes: Obtaining a group identifier that matches the device hardware; and The configuration group carrying the group identifier in the difference storage is identified, and the configuration group carrying the group identifier is called as the current action group.

7. The method for starting an electronic device according to claim 6, characterized in that: The identifying the configuration group carrying the group identifier in the difference storage includes: Obtaining the address information pointed to by the group identifier; and The storage address indicated by the address information in the difference memory is located, and the difference configuration of at least one of the function settings with the group identifier in the storage address is used as the current action group.

8. The method for starting an electronic device according to claim 5, characterized in that: The step of searching the difference memory for a configuration group that matches the device hardware as the current action group includes: a hardware identifier identifying the device hardware; and A configuration group in the difference memory that is applicable to the hardware identification is matched as the current action group.

9. The method for starting an electronic device according to claim 8, characterized in that: The hardware identification includes at least one of a board device identification code and silk screen information.

10. The method for starting an electronic device according to claim 5, characterized in that: After searching the difference memory for a configuration group matching the device hardware, the method further includes: In response to the difference memory not matching a configuration group suitable for the device hardware, returning to the default configuration of the function setting in the transmission chip.

11. The method for starting an electronic device according to claim 1, characterized in that: The difference configuration is stored in the internal memory of the electronic device, and the default configuration set by the transmission chip storage function; The function setting of the basic transmission function of the electronic device to be activated is captured; Identifying whether there is a difference configuration of function settings in the difference memory includes: At the initial stage of the startup process, the self-transmission chip captures the default configuration of each function setting of the basic transmission function and obtains the option identifier of the function setting; calling the difference memory to query whether the option identifier and its corresponding difference configuration exist in the difference memory; and In response to the existence of the option identifier and the corresponding differential configuration in the differential memory, the differential configuration is returned; in response to the absence of the option identifier and the corresponding differential configuration in the differential memory, the default configuration in the transmission chip is returned.

12. The method for starting an electronic device according to claim 11, characterized in that: The returning the difference configuration to write the corresponding function setting includes: In a transition phase of the startup process, in response to the transmission chip allowing a write operation to be performed, the difference configuration returned in the initial phase is written into the function setting of the transmission chip; Traversing the difference configurations applicable to the current functional requirements in the difference memory, writing the difference configurations that do not match the current configuration of the functional setting in the transmission chip into the transmission chip, and updating the corresponding functional setting in the transmission chip; and In response to the different configurations applicable to the current functional requirements, all are written into the transmission chip, the current configurations of the functional settings in the transmission chip are captured in response to the call of the functional settings, and the electronic device is started based on the current configurations.

13. The method for starting an electronic device according to claim 12, characterized in that: The initial stage includes: a security verification sub-stage and an extensible firmware interface early initialization sub-stage; The transition phase includes: a driver execution environment sub-phase and a startup device selection sub-phase.

14. The method for starting an electronic device according to claim 1, characterized in that: The preset functional requirements include operating mode requirements, and the operating modes include performance mode, normal mode and power saving mode; The step of identifying whether there is a difference configuration of the function setting in the difference memory comprises: obtaining a control instruction indicating a target operating mode; and Identify the mode identifier of the difference configuration in the difference memory, and return the difference configuration whose mode identifier matches the target operation mode, wherein the mode identifier is used to indicate the mode to which the difference configuration is applicable.

15. The method for starting an electronic device according to claim 1, characterized in that: The method for starting the electronic device further includes: Obtaining execution details of at least some execution nodes and generating node logs; wherein the at least some execution nodes include at least one of capturing default configuration nodes, identifying difference configuration nodes, and writing function setting nodes; and Count the node logs of each abnormal execution node that has an execution exception in at least one historical startup cycle, confirm the abnormal type of the abnormal execution node, and perform debugging and troubleshooting on the abnormal type and the abnormal execution node.

16. The method for starting an electronic device according to claim 1, characterized in that: The difference memory includes a plurality of configuration groups, and the configuration groups include a difference configuration of at least one function setting; The code associated with multiple configuration groups is divided into multiple code modules.

17. The method for starting an electronic device according to claim 1, characterized in that: The default group includes some of the function settings; the function settings of the basic transmission functions of the electronic device to be activated are also included after the function settings of the basic transmission functions of the electronic device to be activated are captured: Compare the option flags of the currently fetched function settings with the default group list; and In response to the option identifier of the currently captured function setting being included in the default group list, a default configuration of the function setting in the transmission chip is returned in response to the call of the function setting.

18. The method for starting an electronic device according to claim 17, characterized in that: The option identifiers in the default group list include: CPU activation core control number, memory mapping I / O high cardinality, fast startup, startup mode, PCIE hot plug, serial port, and IPV4 pre-execution environment startup.

19. A starting device for an electronic device, characterized in that: The starting device of the electronic device comprises: Default memory, including storage of default configurations for basic transmission functions; A differential memory including a plurality of sets of differential configurations for adapting to different preset functional requirements; and A control module, used to implement the startup method of the electronic device described in any one of claims 1-18.

20. A server, characterized in that: The server comprises: A main body and a starting device for an electronic device as claimed in claim 19, wherein the starting device for the electronic device is arranged on the main body.

21. A computer device, characterized in that it comprises: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store computer-readable instructions, wherein the computer-readable instructions, when read and executed by the one or more processors, implement the steps of the startup method of the electronic device as claimed in any one of claims 1 to 18.

22. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps of the startup method of the electronic device as claimed in any one of claims 1 to 18 are implemented.

Citation Information

Patent Citations

  • Method of server for automatically setting BIOS default values

    CN104965729A

  • System And Method For Configuring Basic Input / output System (bios) Performance Profiles In Computer

    CN106155638A

  • Storage equipment upgrading and initializing method and device, and electronic equipment

    CN111694580A

  • Information processing method and device, server and storage medium

    CN115080132A

  • Electronic equipment starting method and device, server, computer equipment and medium

    CN117149292A

Cited By

  • Server control method, computing platform, computer program product and device

    CN120353507A