CN113641419A - File loading method and computer readable storage medium - Google Patents

File loading method and computer readable storage medium Download PDF

Info

Publication number
CN113641419A
CN113641419A CN202110869234.XA CN202110869234A CN113641419A CN 113641419 A CN113641419 A CN 113641419A CN 202110869234 A CN202110869234 A CN 202110869234A CN 113641419 A CN113641419 A CN 113641419A
Authority
CN
China
Prior art keywords
target
system configuration
configuration file
file
storage area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110869234.XA
Other languages
Chinese (zh)
Inventor
毕志文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110869234.XA priority Critical patent/CN113641419A/en
Publication of CN113641419A publication Critical patent/CN113641419A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a file loading method, which comprises the following steps: acquiring a system configuration file of configuration parameters of a guidance system for the electronic equipment; wherein the system configuration file comprises system configuration information of the configuration parameters; the system configuration file is a structural format file; receiving a modification instruction for modifying the system configuration file; modifying the configuration information of the configuration parameters in the system configuration file based on the modification instruction to obtain an updated system configuration file; and receiving an acquisition request for acquiring a target system configuration file, and acquiring the target system configuration file from the updated system configuration file based on the acquisition request. The embodiment of the application also discloses a computer readable storage medium.

Description

File loading method and computer readable storage medium
Technical Field
The present application relates to a file loading technology in the field of computers, and in particular, to a file loading method and a computer-readable storage medium.
Background
Currently, a Unified Extensible Firmware Interface (UEFI) has a set of default setting values, and different clients need different default setting values according to their own use conditions. And, some customers may require modification of the default value of UEFI. In order to meet the above requirements, in the related art, developers of UEFI need to develop different customer versions of defaults for different customers on the same project, or modify the setting value of UEFI by using an out-of-band tool. However, the UEFI research and development and project test resources occupied by the above scheme are large, and the default value can only be modified before the customer downloads the default value of the UEFI, so that the modification limitation is large.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present application are expected to provide a file loading method and a computer-readable storage medium, which solve the problems of large UEFI development and project test resources and large modification limitation in the related art.
The technical scheme of the application is realized as follows:
a method of file loading, the method comprising:
acquiring a system configuration file of configuration parameters of a guidance system for the electronic equipment; wherein the system configuration file comprises system configuration information of the configuration parameters; the system configuration file is a structural format file;
receiving a modification instruction for modifying the system configuration file;
modifying the configuration information of the configuration parameters in the system configuration file based on the modification instruction to obtain an updated system configuration file;
and receiving an acquisition request for acquiring a target system configuration file, and acquiring the target system configuration file from the updated system configuration file based on the acquisition request.
In the foregoing solution, before the receiving a modification request for modifying the system configuration file, the method further includes:
determining a target storage area in a target management module/target interface of the electronic device;
storing the system configuration file to the target storage area of the target management module/target interface.
In the foregoing solution, the modifying the configuration information of the configuration parameter in the system configuration file based on the modification instruction to obtain and store an updated system configuration file includes:
based on the modification instruction, acquiring the system configuration file from the target storage area, and analyzing the modification instruction to determine target configuration information;
modifying the configuration information of the target configuration parameters matched with the target configuration information in the system configuration file based on the target configuration information to obtain the updated system configuration file;
and storing the updated system configuration file to the target storage area.
In the above scheme, the method further comprises:
receiving setting information for setting a file name of the updated system configuration file; wherein the setting information carries a target file name of the updated system configuration file;
setting the file name of the updated system configuration file as the target file name based on the setting information, and establishing the incidence relation between the target file name and the updated system configuration file;
and storing the target file name to the target storage area.
In the above scheme, the method further comprises:
determining a target sub-storage area in a target storage area of the target management module/target interface;
correspondingly, the storing the target name to the target storage area includes:
storing the target file name to the target sub-storage area of the target management module/target interface.
In the above scheme, the method further comprises:
setting a priority of the updated system configuration file for each version in a case where the updated system configuration file includes a plurality of versions;
storing the priority of each version of the updated system configuration file to the target sub-storage area.
In the above solution, each version of the updated system configuration file is stored in a different sub-region of the target storage region.
In the foregoing solution, the acquiring the target system configuration file from the updated system configuration file based on the acquisition request includes:
acquiring the priority and the target file name from the target sub-storage area based on the acquisition request;
and acquiring the target system configuration file from the updated system configuration file stored in the target storage area based on the priority, the target file name and the incidence relation.
In the foregoing solution, the target interface includes a communication interface of a guidance system, and the target management module includes a baseboard management controller.
A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the file loading method described above.
The file loading method and the computer-readable storage medium provided by the embodiments of the present application acquire a system configuration file including system configuration information of configuration parameters for configuration parameters of a boot system of an electronic device, the system configuration file being a structural format file, receive a modification instruction for modifying the system configuration file, modify the configuration information of the configuration parameters in the system configuration file based on the modification instruction, obtain an updated system configuration file, receive an acquisition request for acquiring a target system configuration file, and acquire the target system configuration file from the updated system configuration file based on the acquisition request, so that the system configuration file can be acquired first, and when a user needs to modify the own system configuration file, the system configuration file can be modified according to own modification requirements without developing a plurality of system configuration files at a development stage, and the configuration information of the configuration parameters can be modified after the user downloads the system configuration file, the use scene is not limited, the problems of large UEFI research and development and project test resources occupied in the related technology and large modification limitation are solved, the waste of resources is avoided, and the modification operability is ensured.
Drawings
Fig. 1 is a schematic flowchart of a file loading method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another file loading method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another file loading method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a file loading device according to an embodiment of the present application
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides a file loading method, which is applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, obtaining a system configuration file of configuration parameters of a boot system for an electronic device.
The system configuration file comprises system configuration information of configuration parameters; the system configuration file is a structural format file.
In the embodiment of the present application, the booting system may refer to a system for booting an electronic device; in one possible implementation, the boot system may comprise a UEFI system. The system configuration file may refer to a file recording configuration parameters of the UEFI system; the system configuration information may refer to some default configuration information of the UEFI system; in one possible implementation, the system configuration information may refer to default configuration information; that is, the system configuration file is a file of default configuration information about the UEFI system. It should be noted that the system configuration file may be a default configuration file for all users.
In other embodiments of the present application, a structural format file refers to a system configuration file that exists in a structural format; wherein, the system configuration file can be set into a Structure format file. In one possible implementation, the system configuration file may be set to default.
Step 102, receiving a modification instruction for modifying the system configuration file.
Wherein, the modification instruction can be generated by a user of the system configuration file modification requirement; of course, the user with the system profile modification requirement may refer to the user with the default profile of the UEFI system; that is, in the embodiment of the present application, different modification instructions of different users may be received. It should be noted that the modification instruction may be generated and triggered by the user on the local terminal.
And 103, modifying the configuration information of the configuration parameters in the system configuration file based on the modification instruction to obtain an updated system configuration file.
The modification instruction comprises configuration parameters of a system configuration file which a user wants to modify and modified configuration information corresponding to the configuration parameters which the user wants to modify; of course, the modification instruction may also include two instructions, the first instruction is a modification request for initiating modification of the configuration parameters, and the second instruction is the modified configuration information corresponding to the configuration information of the configuration parameters in the system configuration file; when the modification instruction comprises two instructions, the user can input a first instruction firstly and then input a second instruction; correspondingly, the electronic device may respond to the first instruction to download the system configuration file, and then respond to the second instruction to modify the configuration information of the configuration parameters in the system configuration file according to the information input by the user, so as to obtain a modified and updated system configuration file; when the modification instruction comprises an instruction, the electronic equipment directly downloads the system configuration file corresponding to the modification instruction, and modifies the configuration information of the configuration parameters in the system configuration file according to the information input by the user.
And 104, receiving an acquisition request for acquiring the target system configuration file, and acquiring the target system configuration file from the updated system configuration file based on the acquisition request.
In the embodiment of the application, the obtaining request may be that after the user sends the modification instruction, the electronic device of the user inputs the modified configuration information of the configuration parameters in the system configuration file to the electronic device; the acquisition request is a request for acquiring a target system configuration file required by a user in a current application scenario. That is, after the user inputs an acquisition request to the electronic device, the electronic device may determine a target system profile required by the user from the updated system profiles in response to the acquisition request. It should be noted that the updated system configuration file may include a plurality of system configuration files.
The file loading method provided by the embodiment of the application acquires a system configuration file comprising system configuration information of configuration parameters of a guidance system of an electronic device, the system configuration file is a structural format file, receives a modification instruction for modifying the system configuration file, modifies the configuration information of the configuration parameters in the system configuration file based on the modification instruction to obtain an updated system configuration file, receives an acquisition request for acquiring a target system configuration file, and acquires the target system configuration file from the updated system configuration file based on the acquisition request, so that the system configuration file can be acquired first, when a user needs to modify the own system configuration file, the system configuration file can be modified according to the modification requirement of the user, a plurality of system configuration files do not need to be developed in a development stage of development, and the configuration information of the configuration parameters can be modified after the user downloads the system configuration file, the method and the device are not limited to use scenes, solve the problems of large UEFI research and development and project test resources occupied in the related technology and large modification limitation, avoid resource waste and ensure modification operability.
Based on the foregoing embodiments, an embodiment of the present application provides a file loading method, which is shown in fig. 2 and includes the following steps:
step 201, the electronic device obtains a system configuration file of configuration parameters of a boot system for the electronic device.
The system configuration file comprises system configuration information of configuration parameters; the system configuration file is a structural format file.
In the embodiment of the present application, the configuration parameters may include item options and default information; wherein, the values of item option and default information are adjustable. It should be noted that, a developer may develop a system configuration file suitable for all users in advance, and distribute the system configuration file to its own user. Therefore, when a user needs to modify the system configuration file, the user can acquire the system configuration file through the terminal (electronic device). In addition, the system configuration file in the embodiment of the application can be suitable for all users, so that developers are not required to develop system configuration files of different versions for different users, resource consumption is reduced, and cost is reduced.
Step 202, the electronic device determines a target storage area in a target management module/target interface of the electronic device.
The target interface comprises a communication interface of the guide system, and the target management module comprises a baseboard management controller.
In this embodiment of the present application, the target Interface may refer to a Serial Peripheral Interface (SPI) of UEFI, and the target Management module may refer to a Baseboard Management Controller (BMC); that is, the target storage area may be an area in an SPI Read-Only Memory (ROM) of the UEFI, and/or a Database (Database) of the BMC. In one possible implementation, the target memory region may be a fixed region segment defined in the SPI ROM of the UEFI.
Step 203, the electronic device stores the system configuration file in a target storage area of the target management module/target interface.
The default file may be stored at a fixed field section in the SPI ROM of the UEFI, or in a specific area of the Database of the BMC, or both at the fixed field section and in the specific area of the Database of the BMC.
Step 204, the electronic device receives a modification instruction for modifying the system configuration file.
In this embodiment, a World Wide Web (Web) User Interface (UI) of the BMC of the electronic device may provide an Interface for a User (i.e., User) to download all default. That is, the user can input his/her own modification instruction through the interface provided on the WEB UI.
Step 205, the electronic device obtains the system configuration file from the target storage area based on the modification instruction, and analyzes the modification instruction to determine the target configuration information.
The modification instruction may carry target configuration information that the user wants to modify, that is, the target configuration information may be obtained by the electronic device after analyzing the modification instruction. Moreover, the system configuration file may be obtained from an area in the SPI ROM of the UEFI and/or an area in the Database of the BMC of the electronic device locally after the electronic device receives a modification instruction input by a user; or, the information can be obtained from an area in the SPI ROM of the UEFI and/or an area in the Database of the BMC of the server; if the system configuration file is acquired from the server, the electronic device may send an acquisition request for acquiring the system configuration file to the server so as to receive the system configuration file fed back by the server.
And step 206, the electronic device modifies the configuration information of the target configuration parameters matched with the target configuration information in the system configuration file based on the target configuration information to obtain an updated system configuration file.
After the electronic device determines to obtain the target configuration information, the electronic device may determine a target configuration parameter matched with the target configuration information from the system configuration file, and modify the configuration information of the target configuration parameter into the target configuration information, so as to obtain an updated system configuration file.
In a possible implementation, the position of the symbol "< >" in the default file is modified as an example: the configuration information before and after the specific modification method may be as follows: device _ Slot9 is disabled is Auto in the system configuration file before modification, and device _ Slot9 is disabled is Auto in the system configuration file before modification.
Step 207, the electronic device stores the updated system configuration file in the target storage area.
After the electronic device obtains the updated system configuration file, the updated system configuration file can be uploaded and stored through the BMC so as to store the new default setting. Of course, the electronic device may store the updated system configuration in an area still stored in the SPI ROM of the UEFI and/or in the Database of the BMC.
Step 208, the electronic device receives an obtaining request for obtaining the target system configuration file, and obtains the target system configuration file from the updated system configuration file based on the obtaining request.
In the embodiment of the application, a user can input an acquisition request of the user through an interface provided on the WEB UI. In addition, in the application, a user can modify the configuration information of the screen configuration parameters after acquiring (downloading) the system configuration file according to the requirements of the user, but not modify the system configuration file before downloading, so that the modification time is expanded, and the modification operability is ensured. In addition, the source code does not need to be modified by a developer, and the user can change the source code quickly, so that the method is more convenient and quicker.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
According to the file loading method provided by the embodiment of the application, when a user needs to modify the system configuration file, the system configuration file can be modified according to the modification requirement of the user, a plurality of system configuration files do not need to be developed in the development stage of development, and the configuration information of the configuration parameters can be modified after the user downloads the system configuration file, so that the use scene is not limited, the problems of large UEFI research and development and project test resources occupied in the related technology and large modification limitation are solved, the waste of resources is avoided, and the modification operability is ensured.
Based on the foregoing embodiments, an embodiment of the present application provides a file loading method, which is shown in fig. 3 and includes the following steps:
step 301, the electronic device obtains a system configuration file of configuration parameters of a boot system for the electronic device.
The system configuration file comprises system configuration information of configuration parameters; the system configuration file is a structural format file.
Step 302, the electronic device determines a target storage area in a target management module/target interface of the electronic device.
Step 303, the electronic device stores the system configuration file in a target storage area of the target management module/target interface.
Step 304, the electronic device receives a modification instruction for modifying the system configuration file.
Step 305, the electronic device obtains the system configuration file from the target storage area based on the modification instruction, and analyzes the modification instruction to determine the target configuration information.
Step 306, the electronic device modifies the configuration information of the target configuration parameters matched with the target configuration information in the system configuration file based on the target configuration information, so as to obtain an updated system configuration file.
Step 307, the electronic device stores the updated system configuration file in the target storage area.
Wherein each version of the updated system configuration file is stored in a different sub-region of the target storage region.
In the embodiment of the present application, different sub-areas may be subdivided in an area in the SPI ROM of the UEFI and/or an area in the Database of the BMC, and different updated system configuration (default. That is, the updated system configuration file may include multiple versions.
In step 308, the electronic device receives setting information for setting a file name of the updated system configuration file.
The setting information carries the target file name of the updated system configuration file.
In the embodiment of the present application, a user may input setting information through an interface provided on the WEB UI.
Step 309, the electronic device sets the file name of the updated system configuration file as the target file name based on the setting information, and establishes the association relationship between the target file name and the updated system configuration file.
In the embodiment of the application, the target file name is used for uniquely identifying the updated system configuration file, so that a user can quickly find the updated system configuration file required by the user through the input file name when obtaining the updated system configuration file. Therefore, the target file name and the updated system configuration file exist correspondingly, and the target file name of each version of the updated system configuration file is different.
And step 310, the electronic equipment stores the target file name in the target storage area.
Wherein, the target file name can be stored in the area in the SPI ROM of UEFI and/or the Database of BMC.
It should be noted that step 310 may be implemented by:
in step 310a, the electronic device determines a target sub-storage area in the target storage area of the target management module/target interface.
The target sub-storage area refers to an area in the SPI ROM of the UEFI and/or a storage location at the beginning in the Database of the BMC.
And step 310b, the electronic equipment stores the target file name to a target sub-storage area of the target management module/target interface.
The electronic device may define a header in an area in the SPI ROM of the UEFI and/or a storage location at the beginning in the Database of the BMC, for storing a target file name of a full updated default. This may enable the BMC and UEFI to obtain the overall file information more quickly.
In step 311, in the case that the updated system configuration file includes multiple versions, the electronic device sets a priority of each version of the updated system configuration file.
In the embodiment of the application, a user can set the priority of the updated system configuration file of each version according to the requirement of the user; in one possible implementation, the setting of the priority of each version of the updated system configuration file may be implemented as follows:
<Name="LegacyBootDefault">
<Priority=2>
<version="1.0">。
step 312, the electronic device stores the priority of each version of the updated system configuration file in the target sub-storage area.
It should be noted that the priority of the updated default xml file of each version may be stored in an area in the SPI ROM of the UEFI and/or in the header at the beginning storage location in the Database of the BMC, which may make the overall file information faster acquired by the BMC and the UEFI.
Step 313, the electronic device receives an acquisition request for acquiring the target system configuration file, and acquires the priority and the target file name from the target sub-storage area based on the acquisition request.
Step 314, the electronic device obtains the target system configuration file from the updated system configuration file stored in the target storage area based on the priority, the target file name and the association relationship.
In this embodiment of the application, when the electronic device executes a default operation of downloading an update through the UEFI, the electronic device may capture a file with a highest priority level in an area in the SPI ROM of the UEFI and/or a Database of the BMC, and find a system file name of the file with the highest priority level from the target file names, and further download an updated default. Of course, it is not necessary that the download priority is the highest, and the updated default. xml file with any version with the priority ranked in the top N bits may be downloaded according to the requirement of the user.
The description of the same steps and the same contents in this embodiment as those in other embodiments may refer to the description in other embodiments, and will not be repeated here.
According to the file loading method provided by the embodiment of the application, when a user needs to modify the system configuration file, the system configuration file can be modified according to the modification requirement of the user, a plurality of system configuration files do not need to be developed in the development stage of development, and the configuration information of the configuration parameters can be modified after the user downloads the system configuration file, so that the use scene is not limited, the problems of large UEFI research and development and project test resources occupied in the related technology and large modification limitation are solved, the waste of resources is avoided, and the modification operability is ensured.
Based on the foregoing embodiments, an embodiment of the present application provides a file loading device, which may be applied to the file loading method provided in the embodiments corresponding to fig. 1 to 3, and as shown in fig. 4, the file loading device may include: an obtaining unit 41, a receiving unit 42, a modifying unit 43 and a processing unit 44, wherein:
an acquisition unit 41 configured to acquire a system configuration file of configuration parameters of a boot system for an electronic device;
the system configuration file comprises system configuration information of configuration parameters; the system configuration file is a structural format file;
a receiving unit 42, configured to receive a modification instruction for modifying the system configuration file;
a modifying unit 43, configured to modify configuration information of configuration parameters in the system configuration file based on the modifying instruction, so as to obtain an updated system configuration file;
and a processing unit 44, configured to receive an acquisition request for acquiring the target system configuration file, and acquire the target system configuration file from the updated system configuration file based on the acquisition request.
In other embodiments of the present application, as shown in fig. 4, the file loading apparatus may further include: a determination unit 45 and a storage unit 46, wherein:
a determining unit 45 for determining a target storage area in a target management module/target interface of the electronic device;
a storage unit 46 for storing the system configuration file to a target storage area of the target management module/target interface.
In other embodiments of the present application, the modifying unit 43 is further configured to perform the following steps:
based on the modification instruction, acquiring a system configuration file from the target storage area, and analyzing the modification instruction to determine target configuration information;
modifying the configuration information of the target configuration parameters matched with the target configuration information in the system configuration file based on the target configuration information to obtain an updated system configuration file;
storing the updated system configuration file in the target storage area.
In other embodiments of the present application, the receiving unit 43 is further configured to receive setting information for setting a file name of the updated system configuration file;
the setting information carries the target file name of the updated system configuration file;
the processing unit 44 is further configured to set the file name of the updated system configuration file as a target file name based on the setting information, and establish an association relationship between the target file name and the updated system configuration file;
the storage unit 46 is further configured to store the target file name in the target storage area.
In other embodiments of the present application, the storage unit 46 is further configured to perform the following steps:
determining a target sub-storage area in a target storage area of a target management module/target interface;
storing the target file name to a target sub-storage area of the target management module/target interface.
In other embodiments of the present application, the processing unit 44 is further configured to set a priority of each version of the updated system configuration file in a case where the updated system configuration file includes a plurality of versions;
the storage unit 46 is further configured to store the priority of each version of the updated system configuration file in the target sub-storage area.
In other embodiments of the present application, each version of the updated system configuration file is stored in a different sub-region of the target memory region.
In other embodiments of the present application, the processing unit 44 is further configured to perform the following steps:
acquiring the priority and the target file name from the target sub-storage area based on the acquisition request;
and acquiring the target system configuration file from the updated system configuration file stored in the target storage area based on the priority, the target file name and the incidence relation.
In other embodiments of the present application, the target interface comprises a communication interface of the guidance system and the target management module comprises a baseboard management controller.
It should be noted that, in the interaction process between the units in this embodiment, reference may be made to the implementation process in the file loading method provided in the embodiments corresponding to fig. 1 to 3, and details are not described here.
The file loading device provided by the embodiment of the application can modify the system configuration file according to the modification requirement of a user when the user needs to modify the system configuration file, a plurality of system configuration files are not required to be developed in the development stage of development, and the configuration information of the configuration parameters can be modified after the user downloads the system configuration file, so that the use scene is not limited, the problems of large UEFI research and development and project test resources occupied in the related technology and large modification limitation are solved, the waste of resources is avoided, and the modification operability is ensured.
Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which may be applied to the file loading method provided in the embodiments corresponding to fig. 1 to 3, and as shown in fig. 5, the electronic device includes: a processor 51, a memory 52, and a communication bus 53, wherein:
the communication bus 53 is used for realizing communication connection between the processor 51 and the memory 52;
the processor 51 is configured to execute a file loading program stored in the memory 52 to implement the following steps:
acquiring a system configuration file of configuration parameters of a guidance system for the electronic equipment;
the system configuration file comprises system configuration information of configuration parameters; the system configuration file is a structural format file;
receiving a modification instruction for modifying the system configuration file;
modifying the configuration information of the configuration parameters in the system configuration file based on the modification instruction to obtain an updated system configuration file;
and receiving an acquisition request for acquiring the target system configuration file, and acquiring the target system configuration file from the updated system configuration file based on the acquisition request.
In other embodiments of the present application, the processor 51 is configured to execute the file loading program stored in the memory 52, and further implements the following steps:
determining a target storage area in a target management module/target interface of the electronic device;
storing the system configuration file to a target storage area of the target management module/target interface.
In other embodiments of the present application, the processor 51 is configured to execute the configuration information stored in the memory 52 for modifying the configuration parameters in the system configuration file based on the modification instruction to obtain an updated system configuration file, so as to implement the following steps:
based on the modification instruction, acquiring a system configuration file from the target storage area, and analyzing the modification instruction to determine target configuration information;
modifying the configuration information of the target configuration parameters matched with the target configuration information in the system configuration file based on the target configuration information to obtain an updated system configuration file;
storing the updated system configuration file in the target storage area.
In other embodiments of the present application, the processor 51 is configured to execute the file loading program stored in the memory 52, and further implements the following steps:
receiving setting information for setting a file name of an updated system configuration file;
the setting information carries the target file name of the updated system configuration file;
setting the file name of the updated system configuration file as a target file name based on the setting information, and establishing an incidence relation between the target file name and the updated system configuration file;
and storing the target file name in the target storage area.
In other embodiments of the present application, the processor 51 is configured to execute the file loading program stored in the memory 52, and further implements the following steps:
determining a target sub-storage area in a target storage area of the target management module/target interface;
accordingly, the processor 51 is configured to execute the storage target file name stored in the memory 52 to the target storage area to implement the following steps:
storing the target file name to a target sub-storage area of the target management module/target interface.
In other embodiments of the present application, the processor 51 is configured to execute the file loading program stored in the memory 52, and further implements the following steps:
setting a priority of each version of the updated system configuration file in case the updated system configuration file includes a plurality of versions;
storing the priority of each version of the updated system configuration file to the target child storage area.
In other embodiments of the present application, each version of the updated system configuration file is stored in a different sub-region of the target memory region.
The processor 51 is configured to execute the obtaining of the target system configuration file from the updated system configuration file based on the obtaining request stored in the memory 52 to implement the following steps:
acquiring the priority and the target file name from the target sub-storage area based on the acquisition request;
and acquiring the target system configuration file from the updated system configuration file stored in the target storage area based on the priority, the target file name and the incidence relation.
In other embodiments of the present application, the target interface comprises a communication interface of the guidance system and the target management module comprises a baseboard management controller.
It should be noted that, in the embodiment, a specific implementation process of the step executed by the processor may refer to an implementation process in the file loading method provided in the embodiment corresponding to fig. 1 to 3, and details are not described here.
The electronic equipment provided by the embodiment of the application can modify the system configuration file according to the modification requirement of a user when the user needs to modify the system configuration file, does not need to develop a plurality of system configuration files in the development stage of development, can modify the configuration information of the configuration parameters after the user downloads the system configuration file, is not limited to a use scene, solves the problems of large UEFI research and development and project test resources occupied in the related technology and large modification limitation, avoids the waste of resources and ensures the operability of modification.
Based on the foregoing embodiments, the present application provides a computer-readable storage medium storing one or more programs, where the one or more programs are executable by one or more processors to implement the steps of the file loading method provided in the embodiments corresponding to fig. 1 to 3.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (10)

1. A method of file loading, the method comprising:
acquiring a system configuration file of configuration parameters of a guidance system for the electronic equipment; wherein the system configuration file comprises system configuration information of the configuration parameters; the system configuration file is a structural format file;
receiving a modification instruction for modifying the system configuration file;
modifying the configuration information of the configuration parameters in the system configuration file based on the modification instruction to obtain an updated system configuration file;
and receiving an acquisition request for acquiring a target system configuration file, and acquiring the target system configuration file from the updated system configuration file based on the acquisition request.
2. The method of claim 1, wherein prior to receiving a modification request for modifying the system configuration file, further comprising:
determining a target storage area in a target management module/target interface of the electronic device;
storing the system configuration file to the target storage area of the target management module/target interface.
3. The method of claim 2, wherein modifying the configuration information for the configuration parameter in the system configuration file based on the modification instruction results in an updated system configuration file, comprising:
based on the modification instruction, acquiring the system configuration file from the target storage area, and analyzing the modification instruction to determine target configuration information;
modifying the configuration information of the target configuration parameters matched with the target configuration information in the system configuration file based on the target configuration information to obtain the updated system configuration file;
and storing the updated system configuration file to the target storage area.
4. The method of claim 1, further comprising:
receiving setting information for setting a file name of the updated system configuration file; wherein the setting information carries a target file name of the updated system configuration file;
setting the file name of the updated system configuration file as the target file name based on the setting information, and establishing the incidence relation between the target file name and the updated system configuration file;
and storing the target file name to the target storage area.
5. The method of claim 4, further comprising:
determining a target sub-storage area in a target storage area of the target management module/target interface;
correspondingly, the storing the target name to the target storage area includes:
storing the target file name to the target sub-storage area of the target management module/target interface.
6. The method of claim 5, further comprising:
setting a priority of the updated system configuration file for each version in a case where the updated system configuration file includes a plurality of versions;
storing the priority of each version of the updated system configuration file to the target sub-storage area.
7. The method of claim 6, wherein each version of the updated system configuration file is stored in a different sub-region of the target memory region.
8. The method of claim 6, wherein the obtaining the target system configuration file from the updated system configuration file based on the obtaining request comprises:
acquiring the priority and the target file name from the target sub-storage area based on the acquisition request;
and acquiring the target system configuration file from the updated system configuration file stored in the target storage area based on the priority, the target file name and the incidence relation.
9. The method of claim 2, wherein the target interface comprises a communication interface of a boot system and the target management module comprises a baseboard management controller.
10. A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the file loading method according to any one of claims 1 to 9.
CN202110869234.XA 2021-07-30 2021-07-30 File loading method and computer readable storage medium Pending CN113641419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110869234.XA CN113641419A (en) 2021-07-30 2021-07-30 File loading method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110869234.XA CN113641419A (en) 2021-07-30 2021-07-30 File loading method and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113641419A true CN113641419A (en) 2021-11-12

Family

ID=78419015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110869234.XA Pending CN113641419A (en) 2021-07-30 2021-07-30 File loading method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113641419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466387A (en) * 2022-01-13 2022-05-10 三维通信股份有限公司 Method and device for updating configuration file of base station, storage medium and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951321A (en) * 2014-03-27 2015-09-30 宇龙计算机通信科技(深圳)有限公司 Method and device for modifying of system configuration
US20150278231A1 (en) * 2014-03-28 2015-10-01 Vayavya Labs Private. Limited System and method for customizing archive of a device driver generator tool for a user

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951321A (en) * 2014-03-27 2015-09-30 宇龙计算机通信科技(深圳)有限公司 Method and device for modifying of system configuration
US20150278231A1 (en) * 2014-03-28 2015-10-01 Vayavya Labs Private. Limited System and method for customizing archive of a device driver generator tool for a user

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466387A (en) * 2022-01-13 2022-05-10 三维通信股份有限公司 Method and device for updating configuration file of base station, storage medium and electronic device
CN114466387B (en) * 2022-01-13 2024-04-09 三维通信股份有限公司 Updating method and device of configuration file of base station, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US12056519B2 (en) Virtual machine migration method and apparatus
US10956191B2 (en) Systems and methods for customizing and programming a cloud-based management server
CN110221860B (en) Configuration file processing method, device, terminal and medium
CN107733985B (en) Method and device for deploying functional components of cloud computing system
CN107291481B (en) Component updating method, device and system
US20150264198A1 (en) Automatic installation system and method, information processing apparatus, and image forming apparatus
EP3516850B1 (en) Systems and methods for sharing application data between isolated applications executing on one or more application platforms
WO2024002243A1 (en) Application management method, application subscription method, and related device
WO2017186066A1 (en) Software management method and apparatus
CN113676501A (en) Application deployment method and device based on Kubernetes cluster and electronic equipment
CN112269588B (en) Algorithm upgrading method, device, terminal and computer readable storage medium
CN111142884A (en) Applet version deployment method and device, electronic equipment and storage medium
JPH09305408A (en) Application executing method
CN113900721A (en) Operating system starting method and device and electronic equipment
CN113641419A (en) File loading method and computer readable storage medium
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
US11425203B2 (en) Commissioning a virtualized network function
CN115437657A (en) Service starting method, device, equipment and storage medium
CN109189551A (en) A kind of method, apparatus and computer storage medium creating middleware
JP2003256213A (en) Application starting method and system, application starting program, and storage medium stored with application starting program
CN114721728A (en) Processing method based on cloud application, electronic equipment and storage medium
CN113419760A (en) Method, apparatus, computer device and medium for opening/saving project file
CN108572846B (en) Software management method and device
CN108595206B (en) Finance and tax software management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination