System configuration method and electronic equipment

By generating a configuration interface in the Linux Boot system to display and update the target chip's attribute information, the problem of the lack of a graphical interface configuration in the Linux Boot system is solved, and a simplified system configuration process is achieved.

CN121879867APending Publication Date: 2026-04-17LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2026-01-29
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

The lack of a graphical interface for configuring Linux Boot systems makes it impossible to configure underlying chip or BIOS properties through the interface, and the configuration process is cumbersome.

Method used

The first configuration interface is generated based on the open-source architecture operating system of the target device, which displays the attribute information and configuration values ​​in the system configuration file. The second configuration interface updates the attribute information of the target chip and supports graphical interface configuration of underlying chip or BIOS attributes.

Benefits of technology

The configuration process has been simplified, enabling technicians to perform UEFI-like configuration operations, which improves the acceptability and efficiency of the operation and reduces the complexity of configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121879867A_ABST
    Figure CN121879867A_ABST
Patent Text Reader

Abstract

The invention discloses a system configuration method and electronic equipment, and relates to the field of information processing.The system configuration method comprises the steps that on the basis that target equipment is in the running process of a target system, a system configuration file is obtained, and the target system is a system adopting an open source architecture operating system core for guiding; generating a first configuration interface based on the system configuration file, wherein the first configuration interface comprises attribute information contained in the system configuration file and a corresponding configuration value; and on the basis of the attribute information in the second configuration interface and the corresponding configuration value, the configuration value corresponding to the attribute information in the target chip is updated, and any attribute information configuration value in the second configuration interface is the same as or different from the configuration value in the first configuration interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing, and more particularly to a system configuration method and an electronic device. Background Technology

[0002] Linux Boot boasts a complete device driver ecosystem validated by the Linux system. When compatibility with devices, since the device has already been validated by the Linux system, no further development is required. In contrast, UEFI (Unified Extensible Firmware Interface) solutions require further development for each device to achieve compatibility. This Linux Boot has relatively closed drivers compared to UEFI firmware, significantly reducing device errors when using it.

[0003] Compared to UEFI, this Linux Boot has the aforementioned advantages and has become the mainstream solution in current open-source system firmware.

[0004] Currently, technicians are accustomed to using the configuration interface to configure the underlying chip or BIOS (Basic Input Output System) when operating UEFI. However, this Linux Boot does not support an interface for configuring the underlying chip or BIOS, making it impossible to configure the attributes of the underlying chip or BIOS through the interface, which makes the configuration process cumbersome. Summary of the Invention

[0005] The first aspect of this application provides a system configuration method, including:

[0006] Based on the fact that the target device is in the process of running the target system, the system configuration file is obtained, wherein the target system is a system that uses an open-source architecture operating system kernel for booting;

[0007] A first configuration interface is generated based on the system configuration file. The first configuration interface includes the attribute information and corresponding configuration values ​​contained in the system configuration file.

[0008] Based on the attribute information and corresponding configuration values ​​in the second configuration interface, update the configuration values ​​corresponding to the attribute information in the target chip. The configuration values ​​of any attribute information in the second configuration interface may be the same as or different from the configuration values ​​in the first configuration interface.

[0009] A second aspect of this application provides an electronic device, comprising:

[0010] The processor is configured to, based on the electronic device being in the process of running a target system, obtain a system configuration file, wherein the target system is a system using an open-source architecture operating system kernel for booting; generate a first configuration interface based on the system configuration file, wherein the first configuration interface includes system attribute information and corresponding configuration values ​​contained in the system configuration file; and update the configuration values ​​corresponding to the attribute information in the target chip based on the attribute information and corresponding configuration values ​​in the second configuration interface, wherein the configuration values ​​in the second configuration interface are the same as or different from the configuration values ​​in the first configuration interface.

[0011] A display is used to output the first configuration interface and the second configuration interface.

[0012] A third aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the system configuration method described in the first aspect or any implementation thereof.

[0013] A fourth aspect of this application provides a computer storage medium carrying one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the system configuration method described in the first aspect or any implementation thereof. Attached Figure Description

[0014] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0015] Figure 1 This is a flowchart illustrating a system configuration method provided in an embodiment of this application;

[0016] Figure 2 This is a schematic diagram of the first configuration interface provided in an embodiment of this application;

[0017] Figure 3 This is a schematic diagram of the process for obtaining the system configuration file provided in an embodiment of this application;

[0018] Figure 4 This is a schematic diagram of the storage space in the target chip provided in the embodiments of this application;

[0019] Figure 5 This is a flowchart illustrating the process of determining whether attribute information and configuration values ​​match, provided in an embodiment of this application.

[0020] Figure 6This is a flowchart illustrating how the system configuration file is obtained based on attribute information and corresponding configuration values, as provided in this application embodiment.

[0021] Figure 7 This is a flowchart illustrating the process of updating the configuration value corresponding to the attribute information in the target chip based on the attribute information and the corresponding configuration value in the second configuration interface, as provided in this application embodiment.

[0022] Figure 8 This is a schematic diagram of the process of generating a first configuration interface based on a system configuration file, provided in an embodiment of this application.

[0023] Figure 9 This is a flowchart illustrating a system configuration method for outputting system configuration information in a first manner, as provided in an embodiment of this application.

[0024] Figure 10 This is a schematic diagram of the configuration interface provided in an embodiment of this application;

[0025] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0027] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0028] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0029] In current UEFI architectures, which are generally based on BIOS, system configuration can be performed via a graphical interface using the BIOS system or via command line from the OS (Operating System). However, because the BIOS and OS systems use different libraries, they are incompatible. When loading configuration files via the command line, it is necessary to switch from the BIOS system to the OS system. This switch requires a device reboot to adapt to the appropriate system, a complex and time-consuming process.

[0030] However, the current Linux boot architecture does not have a graphical interface for configuration, so it is impossible to configure the underlying chip or BIOS properties through the interface, which makes the configuration process cumbersome.

[0031] Reference Figure 1 , Figure 1 This is a flowchart illustrating a system configuration method provided in an embodiment of this application, such as... Figure 1 As shown in the embodiment of this application, a system configuration method may include steps 101 to 103, which are described in detail below.

[0032] 101. Based on the fact that the target device is in the process of running the target system, obtain the system configuration file. The target system is a system that uses an open-source architecture operating system kernel for booting.

[0033] The target device contains the target system's program, and the target system runs after the target device is started.

[0034] The target device can be any electronic device, such as a desktop computer, or a mobile device such as a tablet or a mobile phone.

[0035] The target system can be Linuxboot, which uses an open-source architecture operating system kernel and is actually the system used for booting.

[0036] Because the target device uses Linuxboot, an open-source software project designed to replace most of the Driver Execution Environment (DXE) modules in the Unified Extensible Firmware Interface (UEFI) firmware with the Linux kernel, its source code can be freely viewed, studied, and modified by users. Therefore, Linuxboot supports a large number of developers, is compatible with a wide range of functional software, and boasts strong compatibility.

[0037] In one possible implementation, the system configuration method described in this application is executed when the target system on the target device enters the payload phase after startup.

[0038] The obtained system configuration files are files used to configure the system, including pre-configured files and target configuration files. The pre-configured files are stored in the underlying firmware BIOS, while the target configuration files are stored in external storage.

[0039] The specific implementation methods for obtaining different system configuration files will be explained later, and will not be detailed here.

[0040] 102. Generate a first configuration interface based on the system configuration file. The first configuration interface includes the attribute information and corresponding configuration values ​​contained in the system configuration file.

[0041] After obtaining the system configuration file, the first configuration interface is generated using the attribute information and corresponding configuration values ​​contained in the system configuration file. This attribute information is system-level and may include option names, functions, data types, operation types, etc.

[0042] This attribute information can be set according to system requirements. This application does not limit the specific content or number of this attribute information.

[0043] The first configuration interface is a UI (User Interface), which contains information presented to the user and user-interactive objects. The information presented to the user in this first configuration interface includes attribute information and corresponding configuration values, and the user-interactive objects are the configuration values ​​corresponding to each attribute. The attribute information included in this first configuration interface is configurable, and the configuration values ​​of these attribute information can be adjusted within the first configuration interface.

[0044] In one possible implementation, since the system has many configurable attributes, the attribute information can be divided into multiple groups, and a corresponding tab page can be set for each group in the configuration interface to present a large amount of attribute information in the same configuration interface.

[0045] In one possible implementation, the configuration values ​​for attribute information in this system include a current value and a default value. The current value is the currently used value, and the default value is the value to be used if the current value becomes abnormal. The current value of the attribute information in this system can be modified through this first configuration interface.

[0046] The first configuration interface can be divided into multiple areas. One area is used to display attribute information and the corresponding configuration value (one of the current value and the default value); another area is used to display help information (help static), which can include the current value and default value corresponding to the attribute information. The default value can include the maximum value and the minimum value. The default value is the minimum value that guarantees the device can boot.

[0047] In one possible implementation, a response instruction for the selection operation is set for the area where the attribute information is located. When the selection operation of any attribute area is received, the help information corresponding to that attribute is invoked. The help information may include the minimum value, maximum value and current value that the attribute information can take.

[0048] Figure 2 This is a schematic diagram of the first configuration interface provided in an embodiment of this application. The first configuration interface includes three tabs, namely tabs 1-3. Figure 2 The first area, 201, displays the attribute information listed in tab 1, which consists of attributes 1-8, each displaying its corresponding configuration value. Figure 2 The second area, 202, displays help information.

[0049] In one possible implementation, the UI can automatically partition the options corresponding to the attribute information as needed. For example, if there are 100 system attributes, and each tab in the UI displays 10 options, then the 100 system attributes can be divided into 10 tab partitions; or if there are 20 system attributes, and each tab in the UI displays 20 options, then the 20 system attributes can be displayed using 1 tab partition.

[0050] In one possible implementation, a search trigger operation can be preset. Based on the received search trigger operation, the attribute information is searched to achieve the purpose of quickly querying any attribute information in the target system.

[0051] 103. Based on the attribute information and corresponding configuration values ​​in the second configuration interface, update the configuration values ​​corresponding to the attribute information in the target chip. The configuration values ​​of any attribute information in the second configuration interface may be the same as or different from the configuration values ​​in the first configuration interface.

[0052] An update button is set in the configuration interface. When the update button is triggered, the target chip is updated according to the configuration value of the attribute information in the first configuration interface.

[0053] The target chip can be firmware that carries BIOS attributes. By updating the target chip, the BIOS attributes stored in the BIOS chip can be updated.

[0054] The second configuration interface can be a configuration interface generated after changing the configuration values ​​in the first configuration interface. When the configuration values ​​of the attribute information in the first configuration interface change, the second configuration interface can be generated based on the changed configuration values. Based on the configuration values ​​of each attribute information in the second configuration interface, the configuration values ​​corresponding to the attribute information in the target chip are updated.

[0055] The first configuration interface and the second configuration interface can also be the same configuration interface. The system configuration file calls a new system configuration file. After generating the first configuration interface using the system configuration file, the configuration values ​​corresponding to the attribute information in the target chip are updated according to the configuration values ​​corresponding to each attribute information in the first configuration interface.

[0056] The first and second configuration interfaces constitute a UI (User Interface). This UI presents information in a way that corresponds to attribute information and configuration values. Furthermore, these configuration values ​​can be modified, allowing technical personnel to configure system attributes within the Linux boot framework.

[0057] In this embodiment, based on the target device being in the process of running the target system, a system configuration file is obtained. The target system is a system using an open-source architecture operating system kernel for booting. A first configuration interface is generated based on the system configuration file, which includes attribute information and corresponding configuration values ​​contained in the system configuration file. Based on the attribute information and corresponding configuration values ​​in the second configuration interface, the configuration values ​​corresponding to the attribute information in the target chip are updated. Any attribute configuration value in the second configuration interface may be the same as or different from the configuration value in the first configuration interface. In this scheme, the target system uses Linuxboot. During the operation of this system, a corresponding configuration interface can be generated through the system configuration file. This allows for the configuration of the underlying chip's attributes through the attribute information and corresponding configuration values ​​presented in the configuration interface. The configuration process is similar to the current UEFI configuration operation, making it convenient for technicians to use existing operating methods, resulting in higher acceptability and a simple and easy-to-implement operation.

[0058] Figure 3 This is a flowchart illustrating the process of obtaining a system configuration file according to an embodiment of this application, which may include steps 301 to 302. These steps are described in detail below.

[0059] 301. Read the target system's attribute information and configuration values ​​from the target chip of the target device;

[0060] The target chip could be a BIOS chip, which, as an underlying chip, enables electronic devices to operate after power-on.

[0061] The target chip stores the attribute information and configuration values ​​of the target system.

[0062] Based on the principle of decoupling data and interface, the process of reading the attribute information and configuration values ​​of the target system from the target chip is to obtain the attribute information and configuration values ​​by extracting the unified interface attribute file provided by the underlying firmware BIOS, and then using the attribute information and configuration values ​​to generate the interface.

[0063] Since the target system's attribute information and configuration values ​​are obtained through this unified interface attribute file, this principle can be applied to multiple architectures and platforms. The underlying chip initialization code provides interfaces for attribute information and configuration values ​​according to the schema specification. Accordingly, this solution can draw a complete system setup framework and communicate with the underlying layer based on data specifications to configure system attribute information.

[0064] In one possible implementation, the configuration value can be the current value and default value of the attribute information.

[0065] 302. Based on the matching conditions of attribute information and configuration values, the system configuration file is obtained according to the attribute information and the corresponding configuration values.

[0066] First, it can be determined whether the attribute information and configuration values ​​read from the target chip meet the matching conditions, so as to determine whether the attribute information and configuration values ​​are safe.

[0067] In one possible implementation, the attribute information and the corresponding content in the configuration value can be compared to determine whether the attribute information and the corresponding configuration value are the same. If they are the same, they can be determined to match; otherwise, they do not match.

[0068] If the attribute and configuration value meet the matching conditions, a system configuration file is generated based on the matching attribute information and configuration value.

[0069] In one possible implementation, the attribute information and the corresponding matching value can be used to generate a file with a specified format, and the configuration interface can be generated using the file with the specified format.

[0070] This setting can be implemented using JSON (JavaScript Object Notation, a lightweight data interchange format) file format.

[0071] In one possible implementation, matching attribute information and configuration values ​​can be displayed in the configuration interface, while mismatched attribute information and configuration values ​​can be hidden from display.

[0072] For example, if there are 200 attribute information entries in the target system, after judging whether they meet the matching conditions, it is determined that 196 attribute information entries and their corresponding configuration values ​​meet the matching conditions. The configuration values ​​corresponding to these 196 attribute information entries are displayed in the generated configuration interface, while the remaining 4 attribute information entries and their configuration values ​​that do not meet the matching conditions are not displayed.

[0073] In this embodiment, the attribute information and configuration values ​​of the target system are read from the target chip of the target device. Based on the matching conditions of the attribute information and configuration values, the system configuration file is obtained according to the attribute information and the corresponding configuration values. The BIOS chip of the target device stores the attribute information and configuration values ​​of Linux boot. The attribute information and configuration values ​​are obtained from the BIOS chip. If the two match, the system configuration file is generated using the two, providing a basis for generating the first configuration interface based on the system configuration file.

[0074] In one possible implementation, the target system's attribute information and configuration values ​​are read from the target chip of the target device, including:

[0075] Based on a preset interface, attribute information is read from the first storage area of ​​the target chip, which is used to store the attribute information of the system configuration; based on a preset interface, configuration values ​​are read from the second storage area of ​​the target chip, which is used to store the configuration values ​​of the system configuration.

[0076] During the Linux boot process, information can be read from the target chip's storage space through a preset interface. This preset interface can be an interface provided by the BIOS chip, through which data with a preset specification can be obtained. The data in the target chip's storage space is stored according to this preset specification, and correspondingly, the data stored in the target chip's storage space can be read through this interface. This preset specification can be the Redfish schema (an XML (eXtensible Markup Language) file specification used in the Redfish standard to define resource models and interfaces).

[0077] In this target chip, the storage space can be divided into multiple regions, with different regions storing different data. For example, the first storage region stores attribute information, and the second storage region stores configuration values.

[0078] In one possible implementation, where the configuration value includes the current value and the default value, the storage area corresponding to the current value and the storage area corresponding to the default value can be set.

[0079] Accordingly, during the process of reading configuration values ​​from the target chip, the current value can be obtained from the storage area storing the current value, and the default value can be obtained from the storage area storing the default value, as needed.

[0080] In one possible implementation, since attribute information and configuration values ​​are stored separately, when updating the configuration values ​​stored in the target chip, only the configuration values ​​need to be updated, reducing the update time and improving update efficiency.

[0081] Figure 4 This is a schematic diagram of the storage space in the target chip provided in the embodiment of this application, including three preset storage areas 401-403, wherein the first preset storage area 401 is used to store attribute information, the second preset storage area 402 is used to store the current value, and the third preset storage area 403 is used to store the default value.

[0082] For example, the default storage contains 64KB (kilobytes). The first 32KB is used for BIOS configuration record attribute information. This attribute information may include the name, type, whether it can be modified by advanced users, and a help file, etc. This attribute information does not change with the current value. Only advanced users (developers) can modify it; ordinary users cannot. The middle 16KB records the current value, and the last 16KB records the default value. The help file is a document that explains or describes this attribute information.

[0083] Accordingly, during the process of reading attribute information, each attribute information is read from the first preset storage area, the current value of the attribute information is read from the second preset storage area, and the default value of the attribute information is read from the third preset storage area.

[0084] In this embodiment, the storage space in the target chip is divided into multiple storage areas. The first storage area is used to store system configuration attribute information, and the second storage area is used to store system configuration values. Based on a preset interface, attribute information is read from the first storage area of ​​the target chip, and configuration values ​​are read from the second storage area. By dividing the storage space of the target chip into multiple storage areas and storing attribute information and configuration values ​​separately, the attribute information and configuration values ​​can be read from different storage areas separately through the preset interface, resulting in high reading efficiency. Furthermore, when updating the configuration values ​​in the target chip later, only those configuration values ​​can be updated, reducing the update time and improving update efficiency.

[0085] In one possible implementation, the target system's attribute information and configuration values ​​are read from the target chip of the target device, including:

[0086] Based on the preset interface, attribute information and configuration values ​​are read from the preset storage area of ​​the target chip, and the attribute information and configuration values ​​are stored accordingly in the preset storage area.

[0087] This preset interface can be an interface provided by the BIOS chip. Through this interface, data with a preset specification can be obtained, and the data in the target chip's memory space is stored according to this preset specification. This interface allows the reading of data stored in the target chip's memory space.

[0088] In this target chip, attribute information and configuration values ​​can be stored in the same preset storage area.

[0089] For example, in this preset storage area, a fixed set of bytes can be used to store an attribute information and its corresponding configuration value, storing each attribute information and its corresponding configuration value sequentially. Moreover, within a set of bytes, the attribute information is recorded first, followed by the configuration value.

[0090] As an example, in this preset storage area, 64 bytes are grouped into a set of bytes. The first 32 bytes in the set are used to store attribute information, and the last 32 bytes are used to store configuration values. Of the last 32 bytes, 16 bytes are used to store the current value and 16 bytes are used to store the default value. Of course, the number of bytes in this set of bytes, as well as the number of bytes occupied by attribute information and configuration values ​​in the set of bytes, can be set according to the actual situation and are not limited to the values ​​in this example.

[0091] Correspondingly, during the process of reading attribute information and configuration values, each attribute information and its corresponding configuration value are read sequentially from the preset storage area.

[0092] In one possible implementation, since attribute information and configuration values ​​are stored continuously, when updating the configuration values ​​stored in the target chip, it is necessary to update the configuration values ​​corresponding to each attribute information in the preset storage area in turn to update the configuration values ​​that have changed, which takes a long time.

[0093] In this embodiment, attribute information and configuration values ​​are read from a preset storage area of ​​the target chip based on a preset interface. These attribute information and configuration values ​​are stored correspondingly in this preset storage area. This solution enables the reading of attribute information and configuration values ​​stored in the preset storage area, allowing for the reading of content from storage methods where attribute information and configuration values ​​are stored in the same storage area, and generating a configuration interface.

[0094] Figure 5 This is a flowchart illustrating the process of determining whether attribute information and configuration values ​​match, provided in an embodiment of this application. It may include steps 501 to 504, which are described in detail below.

[0095] 501. Determine the first identifier corresponding to each attribute information recorded in the target chip, and record the second identifier corresponding to each configuration value;

[0096] In the target chip, each attribute information and configuration value is set with a corresponding identifier. The attribute information corresponds to the first identifier, and the configuration value corresponds to the second identifier. The two identifiers are compared to determine whether they are consistent.

[0097] In one possible implementation, when storing content in each preset storage area, a signature record is included in the file header. When reading data from a preset storage area, the entire data of that area is captured. Furthermore, after capturing the entire data of the area, the header can be analyzed to determine the attribute information contained in that area, as well as the offset value of each parameter in the storage location. The signature record in the file header may include information such as the recorded object name, the size of the space occupied, whether it is compressed, and a checksum.

[0098] Correspondingly, the identifier can be a verification code. Since a verification code is required to ensure data security when storing legitimate information for each region, this embodiment also uses a verification code to determine whether the attribute information and configuration value are secure.

[0099] In one possible implementation, since there is a correspondence between attribute information and configuration values, when storing configuration values, the identifier corresponding to the attribute information can also be assigned to the corresponding configuration value. Therefore, if valid or normal information storage is performed, the identifier of the attribute information and the configuration value will be consistent. Accordingly, when storing configuration values, the key of the attribute information can be used as the key of the configuration value.

[0100] 502. Based on each first identifier and each second identifier, obtain the first comparison result between the attribute information and the configuration value;

[0101] 503. If the first comparison result indicates that each first identifier and second identifier corresponds, determine that the attribute information and the corresponding configuration value match;

[0102] 504. If the first comparison result indicates that any first identifier and any second identifier do not correspond, it is determined that the attribute information corresponding to any first identifier and the corresponding configuration value do not match.

[0103] By comparing the first identifier corresponding to the attribute information with the second identifier corresponding to the configuration value, it is determined whether the attribute information and configuration value recorded in the target storage chip are secure.

[0104] Each attribute information can be compared with its corresponding configuration value using the first identifier and the second identifier respectively to determine whether they are completely identical. If they are completely identical, it means that the attribute information and the configuration value match and are valid. If they are not completely identical or completely different, it means that the attribute information and the configuration value do not match and are not valid.

[0105] If the first identifier of any attribute information and the second identifier of the corresponding configuration value are different, for example, the first identifier of attribute information 1 is A and the second identifier of the corresponding configuration value is B, and the two do not correspond, it is determined that the attribute information 1 and the corresponding configuration value in the target chip do not match.

[0106] As an example, each attribute information record in the target chip of the target device has a corresponding key value, and the corresponding configuration value also has a key value. The keys of the two are compared to determine whether they match. If they match, it is determined that the attribute information and the corresponding configuration value match; if they do not match, it is determined that they do not match. This inconsistency may include the attribute information's key value not having a corresponding key value in the configuration value, or the key values ​​of each attribute information and each configuration information not being in a one-to-one correspondence.

[0107] Moreover, this identifier can be in the file header of each storage area, enabling quick comparison of whether attribute information and configuration values ​​match, thus improving the efficiency of generating configuration interfaces.

[0108] In this embodiment, a first identifier corresponding to each attribute information recorded in the target chip and a second identifier corresponding to each configuration value are determined. Based on each first identifier and each second identifier, a first comparison result of the attribute information and the configuration value is obtained. If the first comparison result indicates that each first identifier and the second identifier correspond, it is determined that the attribute information and the corresponding configuration value match. If the first comparison result indicates that any first identifier and any second identifier do not correspond, it is determined that the attribute information corresponding to that arbitrary identifier and the corresponding configuration value do not match. By recording the identifiers corresponding to the attribute information and the configuration value respectively when recording the attribute information and the configuration value in the target chip, and determining whether the attribute information and the configuration value match by comparing the two identifiers, the judgment method is simple and easy to implement.

[0109] Figure 6 This is a flowchart illustrating how a system configuration file is obtained based on attribute information and corresponding configuration values, as provided in this application embodiment. It may include steps 601 to 603, which are described in detail below.

[0110] 601. If the first identifier of the first attribute information and the second identifier corresponding to the first value are the same, the first value shall be used as the configuration value corresponding to the first attribute information. The first value is the value currently used by the attribute information in the system configuration. The first attribute information is any attribute information in the system configuration.

[0111] The configuration value stored in the target chip includes a first value and a second value. The first value is the current value used for this attribute information in the system configuration, and the second value is the default value corresponding to this attribute information. The second value is the minimum value that the electronic device system can start, or in other words, the value that this attribute information can be used.

[0112] To determine whether the first identifier of the attribute information and the second identifier corresponding to the configuration value match, we can first compare the second identifier corresponding to the first value with the first identifier corresponding to the attribute information to determine whether they are the same. If they are the same, we can determine that the first value corresponding to the first attribute information is legal and safe, and we can use the first value as the configuration value corresponding to the attribute information.

[0113] If the first value and the corresponding identifier of the first attribute information are not the same, then the first value corresponding to the first attribute information is not legal and secure. In this case, the legality and security of the second value can be determined by whether the second identifier corresponding to the second value is the same as the first identifier corresponding to the first attribute information.

[0114] 602. If the first identifier of the first attribute information is the same as the second identifier corresponding to the second value, the second value shall be used as the configuration value corresponding to the first attribute information. The second value is the value that the attribute information in the system configuration can be adopted.

[0115] If the first identifier of the first attribute information is the same as only the second identifier corresponding to the second value, it means that the first identifier corresponding to the first attribute information is not the same as the second identifier corresponding to the first value, and only the second identifier corresponding to the second value is the same. In this case, the current value of the first attribute information is unreliable, while the default value is reliable.

[0116] Accordingly, the second value corresponding to the first attribute information is used as its configuration value.

[0117] For example, if the identifier of attribute information 1 is A, the identifier corresponding to the current value 5000 is A', and the identifier corresponding to the default value 3000 is A, then the default value is used as the configuration value corresponding to the attribute information, and the configuration value of the attribute information is 3000.

[0118] For example, if the identifier of attribute information 1 is A, and there is no identifier A in the current value, and the identifier corresponding to the default value 3000 is A, then the default value is used as the configuration value corresponding to this attribute information, and the configuration value of this attribute information is 3000.

[0119] 603. Based on the attribute information and the corresponding configuration values, the system configuration file is obtained.

[0120] Using the aforementioned steps 601-602, the corresponding configuration values ​​for the attribute information of each system in the Linux boot architecture are determined sequentially, and system configuration files are generated based on the determined attribute information and corresponding configuration values.

[0121] In one possible implementation, the determined attribute information and the corresponding configuration value can be constructed as key-value pairs, and the constructed key-value pairs can be used to form a system configuration file.

[0122] If the first identifier of the first attribute information does not have a second identifier corresponding to the first value, nor does it have a second identifier corresponding to the second value, the first attribute information may not be reflected in the system configuration file.

[0123] In this embodiment, the storage space stores a first value and a second value. The first value is the currently used value of the attribute information in the system configuration, and the second value is the value that the attribute information in the system configuration can be used. When the first identifier of the first attribute information and the second identifier corresponding to the first value are the same, the first value is used as the configuration value corresponding to the first attribute information, where the first attribute information is any attribute information in the system configuration. When the first identifier of the first attribute information is the same only as the second identifier corresponding to the second value, the second value is used as the configuration value corresponding to the first attribute information. A system configuration file is obtained based on each attribute information and its corresponding configuration value. First, the first identifier of the attribute information is compared with the second identifier corresponding to the current value of the first value in the configuration value. If they are the same, the current value is used as the configuration value of the attribute information. If they are different, the first identifier of the attribute information can be further compared with the second identifier corresponding to the default value of the second value in the configuration value. If they are the same, the default value is used as the configuration value of the attribute information. This process of determining the configuration value for each attribute information is implemented, so that as much attribute information as possible is presented in the configuration interface, improving the completeness of the content presented in the configuration interface and facilitating user operation.

[0124] Figure 7 This is a flowchart illustrating the process of updating the configuration value corresponding to the attribute information in the target chip based on the attribute information and the corresponding configuration value in the second configuration interface, provided by an embodiment of this application. It may include steps 701 to 705, which are described in detail below.

[0125] 701. Store the system configuration file in the preset virtual memory;

[0126] When updating the target chip based on the information in the second configuration interface, the contents of the system configuration file can be stored in a preset virtual memory, and then the target chip can be updated based on the contents stored in the virtual memory.

[0127] In one possible implementation, after the first configuration interface is generated, the configuration information and corresponding attribute information in the first configuration interface can be stored in the preset virtual memory.

[0128] The preset virtual memory can be RAMDISK, which is a technology that simulates a computer's physical memory (RAM) as a disk partition, using a portion of memory as a hard drive, and is a virtual storage device that is entirely based on memory.

[0129] This includes the process of storing the obtained system configuration file in the preset virtual memory and then adjusting the configuration values ​​of the information stored in the preset virtual memory.

[0130] 702. Receive a first adjustment operation, the first adjustment operation is used to adjust the configuration value of the second attribute information in the first configuration interface to the first value;

[0131] After the configuration values ​​of each attribute information in the target system are presented in the first configuration interface, the user can adjust the configuration value of any attribute information through the first configuration interface.

[0132] In one possible implementation, after the user selects the attribute information to be adjusted in the first configuration interface through the input device, the user can adjust the alignment configuration value to the first value.

[0133] As an example, the first adjustment operation is to change the configuration value of attribute information S in the first configuration interface from 100 to 150.

[0134] 703. Based on the first adjustment operation, adjust the system configuration file stored in the preset virtual memory to obtain the target configuration file. The configuration value of the second attribute information of the target configuration file is the first value.

[0135] Based on the first adjustment operation, the configuration value of the corresponding second attribute information in the system configuration file stored in the preset virtual memory is adjusted to obtain the target configuration file.

[0136] This preset virtual memory temporarily stores various attribute information of the Linux boot system. Through this preset virtual memory, the system configuration files corresponding to the configuration interface can be temporarily stored, and the system configuration files stored in the preset virtual memory can be adjusted according to the user's adjustment operations.

[0137] The system configuration file stored in the preset virtual memory can be obtained from the target storage device or read from the target chip.

[0138] As an example, the first adjustment operation is to adjust the configuration value of attribute information S in the first configuration interface from 100 to 150, and adjust the configuration value of attribute information S in the system configuration file in the preset virtual memory to 150.

[0139] Since the default values ​​corresponding to each attribute information in the target system are predetermined based on the hardware and software of the target device and are generally not adjusted, the configuration value of the second attribute information is modified to the first value through this adjustment action. The adjusted configuration value is the current value of the second attribute information. Accordingly, in the target configuration file, the current value of the second attribute information is the first value, and the default value is the default value used in the original system configuration file.

[0140] 704. Generate a second configuration interface based on the target configuration file;

[0141] After adjusting the configuration values ​​of the second attribute information in the system through the first configuration interface, a target configuration file is obtained. The second configuration interface is then generated using this target configuration file. The difference between the second configuration interface and the first configuration interface is the configuration values ​​of the second attribute information; other attribute information and configuration values ​​remain unchanged.

[0142] 705. Update the configuration values ​​of attribute information in the target chip according to the target configuration file stored in the preset virtual memory.

[0143] In the target configuration file of the preset virtual memory storage, the configuration value of the second attribute information is the first value, and in the second configuration interface, the configuration value of the second attribute information is the first value.

[0144] In one possible implementation, the second configuration interface displays options corresponding to the update operation. By triggering these options, the target system in the target chip is determined to be updated based on the information displayed in the second configuration interface.

[0145] In this second configuration interface, function buttons such as update and exit can be set. Users can trigger these function buttons to process the configuration information in the target system in different ways.

[0146] For example, when the update button is triggered, the configuration values ​​of the attribute information in the target chip can be updated according to the configuration values ​​of each attribute information in the second configuration interface; for example, when the exit without saving button is triggered, the user can exit directly without updating the configuration values ​​of the attribute information in the target chip.

[0147] In one possible implementation, the configuration values ​​corresponding to multiple attribute information in the first configuration interface can be adjusted sequentially. After each adjustment, the configuration values ​​of the corresponding attribute information in the preset virtual memory are adjusted. Finally, the target configuration file obtained after multiple adjustments is used to update the configuration values ​​of the attribute information in the target chip.

[0148] In this embodiment, a system configuration file is stored in a preset virtual memory; a first adjustment operation is received, which adjusts the configuration value of the second attribute information in the first configuration interface to a first value; based on the first adjustment operation, the system configuration file stored in the preset virtual memory is adjusted to obtain a target configuration file, the configuration value of the second attribute information in the target configuration file being the first value; a second configuration interface is generated based on the target configuration file; and the configuration values ​​of the attribute information in the target chip are updated based on the target configuration file stored in the preset virtual memory. By setting a preset virtual memory, the obtained system configuration file is temporarily stored in the preset virtual memory. When adjusting the content in the first configuration interface, the configuration file stored in the preset virtual memory is also adjusted. The configuration values ​​of the attribute information in the target chip are updated using the target configuration file stored in the preset virtual memory. By first adjusting the configuration file in the preset virtual memory and then using the configuration file in the preset virtual memory to adjust the attribute information in the target chip, the purpose of adjusting the configuration values ​​of the attribute information in the target chip is achieved.

[0149] In one possible implementation, the system configuration file is obtained, including:

[0150] Upon receiving a load instruction to load the system configuration file, the system configuration file is read from the target storage device based on the load instruction.

[0151] The target storage device can be an external device connected to the target device via an interface, or it can be a storage structure other than the preset storage space / preset storage area in the target device, or it can be a storage device connected to the target device via a network.

[0152] Upon receiving the load command, the system can query the target storage device, determine its storage address, and then read the system configuration file stored in the target storage device based on that storage address.

[0153] In one possible implementation, the electronic device may have already generated a configuration interface during Linux boot. When the load button displayed in this configuration interface is triggered, the load command is generated. Upon receiving the load command, a selection interface can be generated, which may present various storage devices for selection. From these, an address can be selected as the target storage device, and the system configuration file can be read from the target storage device.

[0154] The system configuration file is the file that configures the BIOS system and is to be loaded into Linux boot.

[0155] As an example, the target device is connected to an external device via an interface, which is a USB flash drive. By triggering the load button in the configuration interface, multiple link addresses are generated on the target device's local machine. The link address of the USB flash drive is selected from these addresses to open the storage space of the USB flash drive. Then, the system configuration file to be read is selected from the storage space of the USB flash drive, thus achieving the purpose of reading the system configuration file from the target storage device.

[0156] As an example, the target device connects to the network storage space via a network. By triggering the load button in the configuration interface, multiple local link addresses of the target device and the link address of the network storage space are generated. The link address of the network storage space is selected from these addresses to open the network storage space. Then, the system configuration file to be read is selected from the network storage space, thus achieving the purpose of reading the system configuration file from the target storage device.

[0157] Accordingly, based on obtaining the system configuration file from the target storage device, the process of generating the first configuration interface will be described in detail below.

[0158] Figure 8 This is a flowchart illustrating the generation of a first configuration interface based on a system configuration file, provided in an embodiment of this application. It may include steps 801 to 803, which are described in detail below.

[0159] 801. Based on the preset data format, process at least one attribute information and its corresponding configuration value obtained from the system configuration file to obtain the target file;

[0160] After reading the system configuration file from the target storage device, the attribute information configuration values ​​are extracted from the system configuration file. The attribute information and configuration values ​​can be mapped to obtain the attribute information and configuration values ​​with corresponding relationships.

[0161] According to the preset data format, the attribute information and configuration value are processed to generate a target file, which records the attribute information and configuration value accordingly.

[0162] As an example, the preset data format can be JSON, recording attribute information and corresponding configuration values ​​in key-value pairs.

[0163] In one possible implementation, the target file can be stored in a preset virtual memory so that the configuration values ​​of the attribute information in the target chip can be updated at a later time based on the target file in the preset virtual memory.

[0164] 802. Based on a preset interface, read the target system's attribute information from the target chip of the target device;

[0165] This preset interface can be an interface provided by the BIOS chip. Through this interface, data with a preset specification can be obtained, and the data in the target chip's memory space is stored according to this preset specification. This interface allows the reading of data stored in the target chip's memory space.

[0166] Correspondingly, the target system's attribute information already existing in the target chip is read through this preset interface.

[0167] Since the purpose of setting the system configuration file is to update the configuration values ​​of the target system attribute information in the target chip, it is necessary to determine whether the system configuration file matches the target system already stored in the target chip, so as to determine whether the system configuration file can update the data stored in the target system in the target chip.

[0168] In one possible implementation, the attribute information of the target system read from the target chip can be compared with at least one attribute information extracted from the system configuration file. If the two are completely identical, they are determined to be a match; otherwise, they are not a match.

[0169] Since the attribute information and configuration values ​​of the target system in the target chip can be obtained from the previous system configuration file or read and configured from other chips, the configuration process may be subject to errors, which may cause the attribute information in the target chip to be different from the attribute information in the current system configuration file. Therefore, it is necessary to determine whether the attribute information of the two matches.

[0170] The loaded system configuration file may not be the configuration file for updating the target system of the target chip in the target device, or the version of the system configuration file may be too different from the version of the target system in the current target chip. Correspondingly, the attribute information in the system configuration file may be different from the attribute information of the target system in the target chip. It can also be determined whether the target system in the target chip can be updated by judging whether the attribute information of the two matches.

[0171] Since the attribute information and configuration values ​​in the system configuration file are used to update the configuration values ​​of the target system attribute information in the target chip, it is necessary to ensure that the attribute information of the two is completely identical. This is to ensure the safety of the process of updating the configuration values ​​of the attribute information recorded in the target chip using the system configuration file and to avoid problems such as update errors caused by mismatched attribute information.

[0172] 803. Based on the matching of at least one attribute information in the target file with the attribute information of the target system, generate the first configuration interface according to the target file.

[0173] If the attribute information in the target file matches the attribute information of the target system, the first configuration interface can be generated based on the attribute information and configuration values ​​recorded in the target file.

[0174] In one possible implementation, the attribute information and corresponding configuration values ​​in the target file are displayed in the first configuration interface.

[0175] The configuration value corresponding to at least one attribute in the target file may include a default value and a current value. During the process of generating the first configuration interface, the first configuration interface can be generated based on the at least one attribute and its corresponding current value.

[0176] In one possible implementation, the first configuration interface and the second configuration interface can be the same interface. When updating the configuration of the target system in the target chip using the content of the second configuration interface, the current value of the corresponding attribute information in the target chip can be updated using the current value of each attribute information, and the default value of the corresponding attribute information in the target chip can be updated using the default value of each attribute information.

[0177] In one possible implementation, due to hardware and software limitations, the default values ​​corresponding to the attribute information generally do not change. When updating, only the current value corresponding to the attribute information can be updated.

[0178] Subsequently, the configuration values ​​of the target chip's corresponding attribute information can be updated directly based on the content in the first configuration interface, without needing to perform a matching check again.

[0179] In one possible implementation, a first configuration interface can be directly generated based on the target file. When updating the configuration value of the configuration information in the target chip based on the display content in the first configuration interface, it is then determined whether the attribute information in the target file matches the attribute information of the target system.

[0180] In this embodiment, a loading instruction for loading a system configuration file is received; based on the loading instruction, the system configuration file is read from the target storage device; correspondingly, according to a preset data format, at least one attribute information and its corresponding configuration value obtained from the system configuration file are processed to obtain a target file; based on a preset interface, the attribute information of the target system is read from the target chip of the target device; based on the matching of at least one attribute information in the target file with the attribute information of the target system, a first configuration interface is generated according to the target file. Based on the loading instruction, the system configuration file stored in the target storage device can be loaded, and the first configuration interface can be generated using the system configuration file, realizing the presentation of the loaded system configuration file in the configuration interface, and enabling a scheme to update the configuration of the target system in the target chip using the loaded system configuration file.

[0181] In one possible implementation, the system configuration method further includes:

[0182] Based on receiving a first trigger instruction that outputs system configuration information in a first manner, the system configuration file is obtained; based on receiving a second trigger instruction that outputs system configuration information in a second manner, the system configuration file is obtained; target display content is generated based on the attribute information and corresponding configuration values ​​contained in the system configuration file; the attribute information and configuration information in the target display content constitute command line information; and the target display content is output.

[0183] The system can be configured either through a configuration interface or via command line.

[0184] Different triggering methods can be set for different configuration methods, so that after receiving a triggering operation, a corresponding triggering command can be generated, and then different configuration schemes can be executed using different triggering commands.

[0185] Upon receiving the first trigger command, since the first trigger command outputs system configuration information in the first manner, the aforementioned actions can be triggered. Figure 1 The steps in the illustrated embodiment involve obtaining a system configuration file and using that file to generate a configuration interface. For a detailed explanation of the implementation process, please refer to the preceding embodiments; it will not be repeated here.

[0186] Upon receiving the second trigger command, the system configuration file is obtained. The process of obtaining the system configuration file can refer to the process in the aforementioned embodiments, and will not be repeated here.

[0187] The system uses the attribute information and corresponding configuration values ​​contained in the system configuration file to form command line information, generates target display content from the command line information, and outputs and displays the target display content on the display screen.

[0188] After obtaining the system configuration file, the system configuration file can be stored in a preset virtual memory. During the process of generating display content in either the first or second method, information is obtained from the preset virtual memory, and the obtained information is used to generate display content.

[0189] In one possible implementation, during the process of outputting configuration information in the first manner, the system configuration file is stored in a preset virtual memory, and the target configuration file stored in the preset virtual memory is used to update the configuration values ​​of the attribute information in the target chip. This process can be referred to the aforementioned. Figure 7 Examples of implementations.

[0190] In one possible implementation, during the process of outputting configuration information in the first manner, the system configuration file is stored in a preset virtual memory. Upon receiving a second trigger command, the system configuration file in the preset virtual memory can be used to generate the target display content. During the process of outputting configuration information in the second manner, the system configuration file is stored in the preset virtual memory. Upon receiving a first trigger command, the system configuration file in the preset virtual memory can be used to generate the first configuration interface. In this process, there is no need to switch between the OS and BIOS. Therefore, the device does not need to restart the system, and the user does not need to wait for a long time.

[0191] Because the Linux boot architecture is compatible with a large number of functional software, it can be used with either command line or configuration interface. Moreover, a preset virtual memory is set in the target device to store system configuration files extracted from the BIOS chip and system configuration files loaded from the target storage device. Adjustments can be made to the configuration files stored in the preset virtual memory, and the adjusted configuration files in the preset virtual memory can be used to update the system configuration information in the BIOS chip. The output mode of system configuration information can be switched directly without switching between the OS system and the BIOS system, and therefore without restarting the target device to switch systems.

[0192] In this embodiment, based on receiving a first trigger command that outputs system configuration information in a first manner, the step of obtaining the system configuration file is executed; based on receiving a second trigger command that outputs system configuration information in a second manner, the system configuration file is obtained; target display content is generated based on the attribute information and corresponding configuration values ​​contained in the system configuration file, and the attribute information and configuration information in the target display content constitute command line information; the target display content is then output. Different trigger commands can be used to trigger the output of system configuration information in different ways, enabling rapid switching before different output methods are implemented without requiring a system restart, resulting in high switching efficiency.

[0193] Figure 9 This is a flowchart illustrating a system configuration method for outputting system configuration information in a first manner, provided in an embodiment of this application. It may include steps 901 to 913, which will be described in detail below.

[0194] 901. Read the attribute information of BIOS options from the BIOS chip;

[0195] This BIOS option is a configurable property option in the BIOS system.

[0196] 902. Extract the contents of the BIOS options;

[0197] According to the preset interface specification, the content contained in the attribute information is parsed and extracted from the attribute information, including information such as name, help information, data type, and operation type.

[0198] 903. Read the current value from the BIOS chip;

[0199] This current value is the current value of each BIOS option.

[0200] 904. Match the BIOS option's attribute information with its current value, and display the graphical interface according to the attribute information and current value;

[0201] If the current value matches the attribute information, the attribute information and the current value can be displayed in a graphical interface; if they do not match, but the default value matches the attribute information, the attribute information and the default value can be displayed in a graphical interface.

[0202] 905. Load configuration file?

[0203] You can check whether to load the configuration file according to a set period, or you can determine whether to load the configuration file by whether you receive a load trigger command.

[0204] The configuration file can be obtained from an external device connected to the target device via a network or interface, or it can be obtained from the target device's local storage space.

[0205] If the load is successful, proceed to step 906; otherwise, proceed to step 909.

[0206] 906. Analyze the configuration file and extract the attribute information of the BIOS options;

[0207] This attribute information can include BIOS option names, help information, data types, operation types, etc.

[0208] 907. Determine whether the BIOS attribute information extracted from the configuration file is consistent with the attribute information extracted from the BIOS chip;

[0209] The attribute information of the two is compared one by one, including name, help information, data type, operation type, etc., to determine whether they are consistent.

[0210] If they match, return to step 904; otherwise, proceed to step 908.

[0211] Error 908;

[0212] After the error message appears, proceed to step 905.

[0213] 909. Execute user operation;

[0214] This user operation can include viewing the current value of each BIOS option, modifying the current value, and modifying the default value.

[0215] 910. Determine if the user chooses to exit;

[0216] If yes, execute 911; otherwise, return to execute 909.

[0217] 911. Determine if the configuration has changed;

[0218] This configuration change includes a change in at least one of the current value and the default value.

[0219] If so, proceed with step 912; otherwise, end the process.

[0220] 912. Determine whether the user wants to retain the current configuration;

[0221] If so, proceed with step 913; otherwise, end the process.

[0222] 913. Store the current settings in the BIOS chip.

[0223] Figure 10 This is a schematic diagram of the configuration interface provided in an embodiment of this application. The configuration interface includes three tabs, namely tabs 1-3. Figure 10 The first area, 1001, displays the attribute information listed in tab 1, which includes attributes 1-6 and their corresponding configuration values. Figure 10 The second area, 1002, displays help information, including the minimum value, current value, and maximum value. Figure 10 The third section lists the operation function buttons, including: Save, Write Back, and Refresh.

[0224] The "save" option saves the modified information back to the system configuration file, but does not update the configuration in the BIOS chip.

[0225] Flash write-back is the process of writing back the content corresponding to the parameters displayed in the current configuration interface to the BIOS chip, thereby updating the configuration in the BIOS chip. This can be done by updating the configuration in the BIOS chip using the content of the current configuration interface stored in preset virtual memory.

[0226] The "LoadDefault" button is a function key that loads the system configuration file. It refreshes the information from the system configuration file to the current configuration interface without performing a comparison with the configuration information in the BIOS chip. The matching judgment is performed during the write-back process.

[0227] In practical applications, other function buttons can also be set in this configuration interface, and this application does not impose any restrictions.

[0228] The above describes a system configuration method provided by an embodiment of this application. The following will describe an electronic device that performs the above system configuration method.

[0229] Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example... Figure 11 As shown, the electronic device 1100 includes:

[0230] Processor 1101 is used to obtain a system configuration file based on the electronic device being in the process of running a target system. The target system is a system using an open-source architecture operating system kernel for booting. Based on the system configuration file, a first configuration interface is generated. The first configuration interface includes system attribute information and corresponding configuration values ​​contained in the system configuration file. Based on the attribute information and corresponding configuration values ​​in the second configuration interface, the configuration values ​​corresponding to the attribute information in the target chip are updated. The configuration values ​​in the second configuration interface may be the same as or different from the configuration values ​​in the first configuration interface.

[0231] Display 1102 is used to output the first configuration interface and the second configuration interface.

[0232] Electronic devices can be desktop computers or mobile devices such as tablets and mobile phones.

[0233] The processor can be a chip structure with data processing capabilities in electronic devices, such as a CPU (central processing unit) or an NPU (neural-network process unit). This application does not limit the specific form of the processor.

[0234] It should be noted that the specific implementation steps and explanations of the functions performed by the processor can be found in the explanations in the foregoing method embodiments, and will not be repeated here.

[0235] In this embodiment, the electronic device includes: a processor, configured to obtain a system configuration file based on the electronic device being in operation of a target system, wherein the target system is a system using an open-source architecture operating system kernel for booting; generate a first configuration interface based on the system configuration file, the first configuration interface including system attribute information and corresponding configuration values ​​contained in the system configuration file; update the configuration values ​​corresponding to the attribute information in the target chip based on the attribute information and corresponding configuration values ​​in the second configuration interface, wherein the configuration values ​​in the second configuration interface are the same as or different from the configuration values ​​in the first configuration interface; and a display, configured to output the first and second configuration interfaces. In this scheme, the target system uses Linux boot. During the operation of this system, a corresponding configuration interface can be generated through the system configuration file, so as to realize the configuration of the attributes of the underlying chip through the attribute information and corresponding configuration values ​​presented in the configuration interface. The configuration process is similar to the current UEFI configuration operation, which is convenient for technicians to use existing operation methods, has higher acceptability, and is simple and easy to operate.

[0236] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the system configuration methods provided in this application.

[0237] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the system configuration methods provided in this application.

[0238] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0239] It is understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation on the implementation of the present invention. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present invention.

[0240] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0241] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0242] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0243] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0244] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. A system configuration method, comprising: Based on the fact that the target device is in the process of running the target system, the system configuration file is obtained, wherein the target system is a system that uses an open-source architecture operating system kernel for booting; A first configuration interface is generated based on the system configuration file. The first configuration interface includes the attribute information and corresponding configuration values ​​contained in the system configuration file. Based on the attribute information and corresponding configuration values ​​in the second configuration interface, update the configuration values ​​corresponding to the attribute information in the target chip. The configuration values ​​of any attribute information in the second configuration interface may be the same as or different from the configuration values ​​in the first configuration interface.

2. The system configuration method according to claim 1, wherein obtaining the system configuration file includes: Read the target system's attribute information and configuration values ​​from the target chip of the target device; Based on the fact that the attribute information and configuration value meet the matching conditions, the system configuration file is obtained according to the attribute information and the corresponding configuration value.

3. The system configuration method according to claim 2, wherein reading the attribute information and configuration values ​​of the target system from the target chip of the target device includes: Based on a preset interface, attribute information is read from the first storage area of ​​the target chip. The first storage area is used to store attribute information of system configuration. Based on a preset interface, configuration values ​​are read from the second storage area of ​​the target chip. The second storage area is used to store the configuration values ​​of the system configuration.

4. The system configuration method according to claim 2, wherein reading the attribute information and configuration values ​​of the target system from the target chip of the target device includes: Based on a preset interface, attribute information and configuration values ​​are read from a preset storage area of ​​the target chip, and the attribute information and configuration values ​​are stored accordingly in the preset storage area.

5. The system configuration method according to claim 2, determining whether attribute information and configuration values ​​match, includes: Determine the first identifier corresponding to each attribute information recorded in the target chip, and the second identifier corresponding to each configuration value; Based on each first identifier and each second identifier, a first comparison result is obtained between the attribute information and the configuration value; If the first comparison result indicates that the first identifier and the second identifier correspond respectively, it is determined that the attribute information and the corresponding configuration value match. If the first comparison result indicates that any first identifier and any second identifier do not correspond, it is determined that the attribute information corresponding to any first identifier and the corresponding configuration value do not match.

6. The system configuration method according to claim 5, wherein a system configuration file is obtained based on the attribute information and the corresponding configuration value, comprising: If the first identifier of the first attribute information and the second identifier corresponding to the first value are the same, the first value is used as the configuration value corresponding to the first attribute information. The first value is the value currently used by the attribute information in the system configuration. The first attribute information is any attribute information in the system configuration. If the first identifier of the first attribute information is the same as the second identifier corresponding to the second value, the second value is used as the configuration value corresponding to the first attribute information, and the second value is the value that the attribute information can be adopted in the system configuration; The system configuration file is obtained based on the attribute information and the corresponding configuration values.

7. The system configuration method according to claim 1, wherein updating the configuration value corresponding to the attribute information in the target chip based on the attribute information and the corresponding configuration value in the second configuration interface includes: The system configuration file is stored in a preset virtual memory; Receive a first adjustment operation, the first adjustment operation being used to adjust the configuration value of the second attribute information in the first configuration interface to a first value; Based on the first adjustment operation, the system configuration file stored in the preset virtual memory is adjusted to obtain the target configuration file, wherein the configuration value of the second attribute information of the target configuration file is the first value; A second configuration interface is generated based on the target configuration file; The configuration values ​​of attribute information in the target chip are updated according to the target configuration file stored in the preset virtual memory.

8. The system configuration method according to claim 1, obtaining a system configuration file, includes: Received a load command to load the system configuration file; Based on the loading instruction, the system configuration file is read from the target storage device; Accordingly, generating the first configuration interface based on the system configuration file includes: Based on a preset data format, at least one attribute information and its corresponding configuration value obtained from the system configuration file are processed to obtain the target file; Based on a preset interface, the attribute information of the target system is read from the target chip of the target device; Based on the matching of at least one attribute information in the target file with the attribute information of the target system, a first configuration interface is generated according to the target file.

9. The system configuration method according to claim 1, further comprising: Based on receiving a first trigger command that outputs system configuration information in a first manner, the step of obtaining the system configuration file is executed; Based on receiving a second trigger command that outputs system configuration information in a second manner, obtain the system configuration file; The target display content is generated based on the attribute information and corresponding configuration values ​​contained in the system configuration file, and the attribute information and configuration information in the target display content constitute command line information; Output the target display content.

10. An electronic device, comprising: A processor is used to obtain a system configuration file based on the fact that the electronic device is running in the target system, wherein the target system is a system using an open-source architecture operating system kernel for booting; A first configuration interface is generated based on the system configuration file. The first configuration interface includes system attribute information and corresponding configuration values ​​contained in the system configuration file. Based on the attribute information and corresponding configuration values ​​in the second configuration interface, the configuration values ​​corresponding to the attribute information in the target chip are updated. The configuration values ​​in the second configuration interface may be the same as or different from the configuration values ​​in the first configuration interface. A display is used to output the first configuration interface and the second configuration interface.