CN114428624A - Data processing method and device and electronic equipment - Google Patents
Data processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN114428624A CN114428624A CN202111649742.3A CN202111649742A CN114428624A CN 114428624 A CN114428624 A CN 114428624A CN 202111649742 A CN202111649742 A CN 202111649742A CN 114428624 A CN114428624 A CN 114428624A
- Authority
- CN
- China
- Prior art keywords
- parameter
- current
- parameters
- default
- loading
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a data processing method, which comprises the following steps: storing current parameters of a first system before updating the first system; and responding to the first system update, and loading the current parameters of the first system so that the updated parameters of the first system are the same as the current parameters. The application also provides a data processing device and electronic equipment.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, and an electronic device.
Background
In the related art, the problem of system update is inevitably encountered in the development and maintenance processes of the electronic device, and in the update process, all or part of the settings of the user may be restored, and after the update, the user needs to manually change the related settings, which affects the user experience.
Disclosure of Invention
The application provides a data processing method, a data processing device and an electronic device, which are used for at least solving the technical problems in the prior art.
One aspect of the present application provides a data processing method for an electronic device, where the method includes:
storing current parameters of a first system before updating the first system;
and responding to the first system update, and loading the current parameters of the first system so that the updated parameters of the first system are the same as the current parameters.
Another aspect of the present application provides a data processing apparatus, including:
the storage unit is used for storing the current parameters of the first system before the first system is updated;
and the loading unit is used for responding to the first system update and loading the current parameter of the first system so as to enable the updated parameter of the first system to be the same as the current parameter.
Yet another aspect of the present application provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data processing method described above.
According to the data processing method, the data processing device and the electronic equipment, the current parameters of the first system are stored before the first system is updated; and responding to the update of the first system, loading the current parameters of the first system so as to enable the updated parameters of the first system to be the same as the current parameters, and loading the parameters set by a user after the update of the first system without manual setting of the user, thereby improving the user experience.
Drawings
Fig. 1 is a schematic flow chart illustrating an alternative data processing method provided by an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating an alternative data processing method provided by the embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating a further alternative data processing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an alternative structure of a data processing apparatus according to an embodiment of the present application;
fig. 5 shows a hardware component structure diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present application more obvious and understandable, 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, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the process of developing and maintaining products of electronic devices (such as notebook computers or desktop computers), it is encountered that a security vulnerability is patched or supports a new version of Operating System (OS) or a version of Basic Input Output System (BIOS) while supporting different Stock Keeping Units (SKUs) with large time span before and after, whereas the derived Code Base (Code Base) is very different and requires updating BIOS FW (FirmWare) to the electronic devices through an operation of loading a Default value (Load Default). This may cause problems, such as that the parameters set by the setting tool (BIOS SETUP) in the electronic device are restored, conflicts in the parameters may not be entered into the operating system, or the user is required to manually reset the relevant parameters. For example, the user sets SATA Controller Mode to RAID Mode and installs the operating system, and the BIOS updates and then performs Load Default action to restore SATA Controller Mode to AHCI Mode, which may result in that the operating system cannot be started.
In the related art, the following solutions are mainly adopted to solve the above problems:
when the BIOS is flashed, the Serial Peripheral Interface (SPI) set by the user is skipped without flashing.
However, this solution cannot cover the BIOS FW update scenario that needs to execute the load default, because the configuration Data (Setup Data) may add a new Feature (Feature), or the Variable name and/or Offset (Offset) are changed, the change of the new version BIOS update cannot be made effective without rewriting the SPI where the user setting is located, and the user setting and the platform related configuration may be lost or modified, and there is a series of risks that the system cannot be accessed.
Therefore, aiming at the defects existing in the system updating process in the related art, the application provides a data processing method, which actively confirms whether the action of loading the default value is executed before the first system is updated, if the action of loading the default value is determined to be executed, the current parameter of the first system is obtained, and the current parameter is restored after the first system is updated, so as to overcome part or all of the defects in the prior art.
Fig. 1 shows an alternative flow chart of a data processing method provided in an embodiment of the present application, which will be described according to various steps.
Step S101, storing the current parameters of the first system before the first system is updated.
In some embodiments, the first default parameters of the first system include original default parameters corresponding to a current version of the first system; the current parameters of the first system comprise unmodified partial default parameters in the first default parameters and modified and set other partial parameters in the first default parameters; the second default parameters of the first system comprise original default parameters corresponding to the updated version of the first system. Wherein the modification may be derived from a user setting; the first default parameter, the second default parameter, and the current parameter of the first system may be acquired through a Variable acquisition (Get Variable) operation.
In some embodiments, the data processing device (hereinafter referred to as the device) stores current parameters of the first system before the first system is updated.
In some embodiments, before the first system is updated, the apparatus determines whether the updating of the first system includes loading a second default parameter corresponding to the first system; and if the execution of the first system update is confirmed to include the loading of a second default parameter corresponding to the first system, storing the current parameter of the first system.
In still other alternative embodiments, the apparatus may further determine whether to store the current parameters of the first system before the first system update based on the current parameters of the first system and the first default parameters.
In specific implementation, the apparatus may match each parameter included in the current parameter and the first default parameter; if all the parameters included in the current parameter and the first default parameter are the same, determining that the current parameter of the first system is not stored before the first system is updated; or, if the current parameter and the first default parameter include different at least one parameter, determining that the current parameter of the first system is stored before the first system is updated; wherein the storing of the current parameters of the first system may include storing all of the current parameters or storing only at least one parameter different from the first default parameter.
In some embodiments, the apparatus may further confirm that a second default parameter corresponding to the first system is loaded when the first system is updated, and when at least one parameter different from each parameter included in the first default parameter exists in the current parameter, confirm that the current parameter of the first system is stored before the first system is updated.
In some optional embodiments, in response to that the current parameter of the first system needs to be loaded after the first system is updated, the device increases a task corresponding to the current parameter of the first system.
Step S102, responding to the first system update, and loading the current parameters of the first system.
In some embodiments, the apparatus, in response to the first system update, confirms that there is data stored corresponding to the current parameter of the first system, and if the data exists, loads the data, that is, loads the current parameter of the first system.
In some embodiments, the device, in response to the first system update, determines whether a task corresponding to loading the current parameters of the first system exists; and if the task corresponding to the current parameter of the first system is loaded, loading the current parameter of the first system.
In some embodiments, the apparatus determines a second default parameter corresponding to the first system based on a version corresponding to the first system after updating; updating parameters of the first system based on the current parameters, the second default parameters and a parameter mapping table; wherein the parameter mapping table includes an update correspondence of versions before and after the update of the first system. For example, the parameter mapping table may include a correspondence between a variable name and value in the first default parameter and a variable name and value in the second default parameter; or the parameter mapping table comprises the corresponding relation between the variable name and the value of the historical default parameter corresponding to the first system and the variable name and the value of the second default parameter; the corresponding relation between the variable name and the value of the historical default parameter corresponding to the first system and the variable name and the value of the second default parameter comprises the second default parameter and default parameters corresponding to a plurality of corresponding historical versions of the first system.
In specific implementation, the device confirms the variable name of the first parameter in the current parameter and the second default parameter based on the parameter mapping table; confirming whether the values of the first parameter in the current parameter and the second default parameter are the same, and updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter in response to the difference between the values of the first parameter in the current parameter and the first parameter in the second default parameter. Wherein the first parameter is any one of the first default parameter, the current parameter and the second default parameter.
Or, in a specific implementation, the apparatus may further determine, based on information such as a current version (updated version) of the first system and a version number of a historical version, a correspondence between variable names of parameters of the updated version and the historical version (including the current version), determine, based on the correspondence between the variable names, a correspondence between values of the parameters, determine whether a value of a first parameter included in the current parameter is the same as a value of a first parameter in the second default parameter, and update, in response to a difference between the value of the first parameter in the current parameter and the value of the first parameter in the second default parameter, the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter.
For example, in the process of updating the version of the first system, a situation that the variable names of the same parameter in different versions are different may occur, and if after the first system is updated, bit exchange is performed on the second default parameter and a different parameter (where the parameter includes the variable name and a value corresponding to the variable name) in the current parameter based on the parameter mapping table, a change in the variable name may be caused, and the first system cannot operate normally, so that when the current parameter is loaded, the mapping relationship between the current parameter and each parameter in the second default parameter is confirmed based on the parameter mapping table, and when the current parameter is loaded, only the value of the corresponding parameter in the second default parameter is changed to the value in the current parameter, thereby realizing the parameter set for copy-back on the one hand; on the other hand, the normal operation of the first system can be ensured.
In some embodiments, after loading the current parameter of the first system or before updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter, the apparatus may further determine whether the value of the second default parameter to be modified to the first parameter would conflict with other parameters in the second default parameter, or whether the first parameter conflicts with the first system; in response to the value of the first parameter conflicting with other parameters in the second default parameter, or the first parameter conflicting with the first system, not loading the value of the first parameter and/or not loading the current parameter.
In other embodiments, after loading the current parameter of the first system or before updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter, the apparatus determines a conflict resolution manner based on a conflict resolution scheme between different versions in the parameter mapping table and a correspondence between the current parameter and each parameter in the second default parameter.
In some optional embodiments, the apparatus may also restart the first system before loading the current parameters of the first system. The restarting comprises soft restarting, namely the memory is not powered down, the stored current parameters are not lost, and after the first system is restarted, the current parameters of the first system can be loaded, so that the updated parameters of the first system are the same as the current parameters.
In further alternative embodiments, the apparatus may delete the stored current parameters of the first system after loading the current parameters of the first system; or when the first system is powered off and then powered on, the current parameters written into the memory are deleted due to power failure of the memory; optionally, before the first system is updated again, the second default parameter after the parameter is changed is stored.
Therefore, by the data processing method provided by the embodiment of the application, the current parameters of the first system are stored before the first system is updated; and responding to the first system update, and loading the current parameters of the first system so that the updated parameters of the first system are the same as the current parameters. The parameters set by the user can be loaded after the first system is updated, manual setting by the user is not needed, and user experience is improved.
Fig. 2 shows an alternative flow chart of the data processing method provided by the embodiment of the present disclosure, which will be described according to various steps.
Step S201, before the first system is updated, determining whether the updating of the first system includes loading a second default parameter corresponding to the first system.
In some embodiments, the data processing apparatus confirms whether loading of a second default parameter corresponding to the first system is included in the first system update before the first system update.
In specific implementation, the device can read a register of the electronic equipment, and confirm whether a value corresponding to a loaded default value is true in a parameter corresponding to a flash tool (flash tool); if the value corresponding to the loading default value is a true value, confirming that the updating of the first system comprises loading a second default parameter corresponding to the first system; or if the value corresponding to the loading default value is a false value, determining that the first system does not include the second default parameter corresponding to the loading first system when updating.
For example, the device obtains the flash parameters of the flash tool by reading the register of the SMM save state in the CPU, determines whether a bit (bit) corresponding to the load default action of the flash CMD in the CMD filter table is valid, and determines that the updating of the first system includes loading the second default parameter corresponding to the first system if the bit corresponding to the load default action is valid; and if the bit corresponding to the load default action is not established, determining that the first system does not include the second default parameter corresponding to the first system when updating.
In some embodiments, if the apparatus determines that the updating of the first system includes loading a second default parameter corresponding to the first system, step S202 is performed.
Step S202, the first system stores the current parameters of the first system before updating.
In some embodiments, the apparatus obtains a current parameter and a first default parameter of the first system, and matches each parameter included in the current parameter and the first default parameter; if all the parameters included in the current parameter and the first default parameter are the same, determining that the current parameter of the first system is not stored before the first system is updated; or, if the current parameter and the first default parameter include different at least one parameter, determining that the current parameter of the first system is stored before the first system is updated; wherein the storing of the current parameters of the first system may include storing all of the current parameters, or storing only at least one parameter that is different from each parameter included in the first default parameters.
In some embodiments, the device responds to that the current parameter of the first system needs to be loaded after the first system is updated, and adds a task corresponding to the current parameter of the first system.
Step S203, responding to the first system update, and determining whether a task corresponding to the current parameter of the first system is loaded.
In some embodiments, in response to the first system update, if the apparatus confirms that there is a task corresponding to the current parameter for loading the first system, step S204 is performed.
Step S204, responding to the first system update, and loading the current parameters of the first system.
In some embodiments, the device retrieves the stored current parameters; determining a second default parameter corresponding to the first system based on the updated corresponding version of the first system; updating parameters of the first system based on the current parameters, the second default parameters and a parameter mapping table; wherein the parameter mapping table includes an update correspondence of versions before and after the update of the first system. For example, the parameter mapping table may include a correspondence between a variable name and value in the first default parameter and a variable name and value in the second default parameter; or the parameter mapping table comprises the corresponding relation between the variable name and the value of the historical default parameter corresponding to the first system and the variable name and the value of the second default parameter; the corresponding relation between the variable name and the value of the historical default parameter corresponding to the first system and the variable name and the value of the second default parameter comprises the second default parameter and default parameters corresponding to a plurality of corresponding historical versions of the first system.
In specific implementation, the device confirms the variable name of a first parameter in the current parameter and the second default parameter based on the parameter mapping table; confirming whether the values of the first parameter in the current parameter and the second default parameter are the same, and updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter in response to the difference between the values of the first parameter in the current parameter and the first parameter in the second default parameter. Wherein the first parameter is any one of the first default parameter, the current parameter and the second default parameter.
In some embodiments, after loading the current parameter of the first system or before updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter, the apparatus may further determine whether the value of the first parameter in the second default parameter to be modified will conflict with other parameters in the second default parameter, or whether the first parameter conflicts with the first system; in response to the value of the first parameter conflicting with other parameters in the second default parameter, or the first parameter conflicting with the first system, not loading the value of the first parameter and/or not loading the current parameter.
In other embodiments, after loading the current parameter of the first system or before updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter, the apparatus determines a conflict resolution manner based on a conflict resolution scheme between different versions in the parameter mapping table and a correspondence between the current parameter and each parameter in the second default parameter.
In some optional embodiments, the apparatus may also restart the first system before loading the current parameters of the first system. The restarting comprises soft restarting, namely the memory is not powered down, the stored current parameters are not lost, and the current parameters of the first system can be loaded after the first system is subjected to soft restarting, so that the updated parameters of the first system are the same as the current parameters.
In further alternative embodiments, the apparatus may delete the stored current parameters of the first system after loading the current parameters of the first system; or when the first system is powered off and then powered on, the current parameters written into the memory are deleted due to power failure of the memory; optionally, before the first system is updated again, the second default parameter after the parameter is changed is stored.
Therefore, by the data processing method provided by the embodiment of the application, before the first system is updated, whether the first system is updated includes loading the second default parameter corresponding to the first system is determined; storing current parameters of a first system before updating the first system; responding to the first system update, and confirming whether a task corresponding to the current parameter of the first system is loaded or not; on one hand, the defects existing in the updating of the first system (BIOS) are improved, and the system setting of a user or the previous version can be guaranteed to be stored; on the other hand, the user does not need to set related parameters again after the first system is updated, the user experience is improved, and the risk of system failure caused by parameter conflicts of different versions is avoided.
Fig. 3 shows a schematic flow chart of yet another alternative of the data processing method provided in the embodiment of the present application, which will be described according to various steps.
Step S301, before the first system is updated, determining whether the updating of the first system includes loading a second default parameter corresponding to the first system.
In some embodiments, prior to the first system update, the data processing apparatus determines whether loading of the second default parameter is included in the first system update.
In specific implementation, the device can read a register of the electronic device, and determine whether a value corresponding to the load default action in a parameter corresponding to the strongly-brushing tool is true; if the value corresponding to the load default action is a true value, confirming that the electronic equipment executes the load default action; or, if the value corresponding to the load default action is a false value, confirming that the electronic equipment does not execute the load default action.
In specific implementation, the device can obtain the flash parameters of the flash tool by reading the register of the SMM save state in the CPU, and check whether the bit corresponding to the load default action in the flash CMD in the CMD filter table is true (that is, whether the value corresponding to the load default action in the parameter corresponding to the strongly-brushing tool is true).
In some embodiments, if the bit corresponding to the load default action is true, step S302 is executed, and if the bit corresponding to the load default action is not true, step S303 is executed.
Step S302, the first system stores the current parameters of the first system before updating.
In some embodiments, the apparatus obtains a current parameter and a first default parameter of a first system; matching the current parameter with the first default parameter, and confirming at least one different parameter in the current parameter and the first default parameter, wherein the at least one different parameter in the current parameter and the first default parameter is a parameter set by a user; the apparatus stores at least one different parameter of the current parameter and the first default parameter; and/or adding and loading a task corresponding to the current parameter of the first system.
In some embodiments, the apparatus may store in the memory at least one different one of the current parameter and the first default parameter.
In other embodiments, the apparatus may set a flag to indicate that a task corresponding to the current parameter of the first system needs to be executed (i.e., set a flag to indicate that an action set by a copy-back user needs to be performed).
Step S303, update the first system.
In some embodiments, the apparatus updates the first system.
In some optional embodiments, the apparatus may perform the act of updating the first system based on a flow of steps of system updating in the related art.
Step S304, determining whether there is a task corresponding to the current parameter.
In some embodiments, the device determines whether there is a task corresponding to loading the current parameter of the first system (a task corresponding to loading the current parameter) in response to the first system update.
In specific implementation, the device may determine whether the task corresponding to the current parameter of the first system is loaded by determining whether a flag bit indicating that the task corresponding to the current parameter of the first system needs to be loaded exists.
Specifically, if the flag bit is true, it is determined that the task corresponding to the current parameter of the first system is loaded, and step S305 is executed; and if the flag bit is not true, confirming that the task corresponding to the current parameter of the first system is not loaded, and continuing to load the first system update.
Step S305, in response to the first system update, loading the current parameters of the first system.
In some embodiments, the apparatus may obtain, from the memory, at least one different parameter of the current parameter and the first default parameter; determining a second default parameter corresponding to the first system based on the updated corresponding version of the first system; updating parameters of the first system based on the current parameter and at least one different parameter of the first default parameter, the second default parameter and a parameter mapping table; wherein the parameter mapping table includes an update correspondence of versions before and after the update of the first system. For example, the parameter mapping table may include a correspondence between a variable name and value in the first default parameter and a variable name and value in the second default parameter; or the parameter mapping table comprises the corresponding relation between the variable name and the value of the historical default parameter corresponding to the first system and the variable name and the value of the second default parameter; the corresponding relation between the variable name and the value of the historical default parameter corresponding to the first system and the variable name and the value of the second default parameter comprises the second default parameter and default parameters corresponding to a plurality of corresponding historical versions of the first system.
In specific implementation, the device determines, based on the parameter mapping table, a variable name of at least one different parameter (which may be a first parameter) in the current parameter and the first default parameter; confirming whether the values of the first parameter in the current parameter and the second default parameter are the same, and updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter in response to the difference between the values of the first parameter in the current parameter and the first parameter in the second default parameter. Wherein the first parameter is any one of the first default parameter, the current parameter and the second default parameter.
In a specific implementation, the apparatus may determine, based on the updated version of the first system and the parameter comparison table, a first parameter corresponding to at least one parameter different from the current parameter and the first default parameter in the second default parameter; then, Bit swapping (Bit Swap) is performed on the first parameter in the second default parameter and the first parameter in the current parameter, so that the first parameter set by a user is imported into the second default parameter.
In the related art, after the first system is updated, all Current parameters of a version (Current BIOS) of the first system before the first system is updated are ignored; after the operation of loading the default value is performed, only the second default parameter in the updated first system (New BIOS) will be valid.
At this time, if the user needs to use the current parameter, the second default parameter needs to be set, and the parameter set in the current parameter can be increased.
By the embodiment of the disclosure, after the first system is updated, the device confirms the first parameter corresponding to at least one different parameter in the second default parameter from the current parameter and the first default parameter; and then carrying out bit exchange on the first parameter in the second default parameter and the first parameter in the current parameter, and importing the first parameter set by a user into the second default parameter.
Therefore, by the data processing method provided by the embodiment of the application, before the first system is updated, whether the first system is updated includes loading the second default parameter corresponding to the first system is determined; storing current parameters of a first system before updating the first system; responding to the first system update, and confirming whether a task corresponding to the current parameter of the first system is loaded or not; on one hand, the defects existing in the updating of the first system (BIOS) are improved, and the user or the system setting of the previous version can be stored; on the other hand, the user does not need to set related parameters again after the first system is updated, the user experience is improved, and the risk of system failure caused by parameter conflicts of different versions is avoided.
In some optional embodiments, the steps S101 to S102, S201 to S204, and S301 to S305 may be a step flow executed when the first system is updated when the first system is operated; the step flow may be executed when the first system is updated when the second system is operated.
Specifically, the data processing method provided by the embodiment of the present application may be executed in response to an update to a first system (BIOS) in a state of a second system. For example, in an operating system state such as Windows or DOS, in response to an update to a loading system such as BIOS, current parameters of the loading system may be stored in the operating system state, and when a first reboot after the update of the loading system is completed is performed, the stored current parameters of the loading system may be loaded first before entering the loading system, and the boot system may enter the operating system after the loading is completed.
Fig. 4 shows an alternative structural diagram of a data processing apparatus provided in an embodiment of the present application, which will be described according to various steps.
In some embodiments, data processing apparatus 400 includes a store unit 401 and a load unit 402.
The storage unit 401 is configured to store current parameters of a first system before updating the first system;
a loading unit 402, configured to load a current parameter of the first system in response to the first system update, so that the updated parameter of the first system is the same as the current parameter.
The storage unit 401 is specifically configured to, before the first system is updated, determine whether the updating of the first system includes loading of a second default parameter corresponding to the first system; and if the updating of the first system is confirmed to include loading of a second default parameter corresponding to the first system, storing the current parameter of the first system.
In some embodiments, the data processing apparatus 400 may further comprise a validation unit 403.
The determining unit 403 is configured to determine, before storing the current parameters of the first system, whether to store the current parameters of the first system before updating the first system based on the current parameters of the first system and the first default parameters.
The confirming unit 403 is specifically configured to match the current parameter with each parameter included in the first default parameter; if the current parameters are the same as the parameters in the first default parameters, determining that the current parameters of the first system are not stored before the first system is updated; or if the current parameter and each parameter included in the first default parameter have different at least one parameter, confirming that the current parameter of the first system is stored before the first system is updated; wherein the storing of the current parameters of the first system comprises storing all of the current parameters, or storing that there is at least one parameter that is different than each parameter included in the first default parameters.
In some embodiments, the data processing apparatus 400 may further include a processing unit 404.
The processing unit 404 is configured to, before loading the current parameter of the first system in response to the first system update, load the current parameter of the first system after confirming the first system update; and increasing and loading the task corresponding to the current parameter of the first system.
The processing unit 404 is specifically configured to determine, in response to the first system update, whether a task corresponding to the current parameter of the first system is loaded; and if the task corresponding to the current parameter of the first system is loaded, loading the current parameter of the first system.
The loading unit 402 is specifically configured to determine a second default parameter corresponding to the first system based on the updated corresponding version of the first system; updating parameters of the first system based on the current parameters, the second default parameters and a parameter mapping table; wherein the parameter mapping table comprises a correspondence between a variable name and value in the first default parameter and a variable name and value in the second default parameter; or, the parameter mapping table includes a correspondence between variable names and values of at least one group of historical default parameters corresponding to the first system and variable names and values in the second default parameters.
The loading unit 402 is specifically configured to determine, based on the parameter mapping table, a variable name of a first parameter of the current parameter and the second default parameter; confirming whether the values of the first parameter in the current parameter and the second default parameter are the same, and in response to the value of the first parameter in the current parameter being different from the value of the first parameter in the second default parameter, updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter; wherein the first parameter is any one of the current parameter and the second default parameter; or at least one parameter for which the first default parameter is different than the current parameter.
Fig. 5 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present application, where the electronic device 700 includes: at least one processor 701, a memory 702, and at least one network unit 704. The various components in the electronic device 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 5 as the bus system 705.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The non-volatile Memory may be ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic random access Memory (FRAM), Flash Memory (Flash Memory), magnetic surface Memory, optical Disc, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 702 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 702 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device 700. Examples of such data include: any computer program for operating on electronic device 700, such as application 722. A program implementing the method of an embodiment of the present application may be included in the application 722.
The method disclosed in the embodiment of the present application may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 702, and the processor 701 may read the information in the memory 702 and perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, MCUs, MPUs, or other electronic elements for performing the aforementioned methods.
In addition to the above-described methods and apparatus, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the methods according to the various embodiments of the present application described in the "exemplary methods" section of this specification, above.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in a method according to various embodiments of the present application described in the "exemplary methods" section above of this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.
Claims (10)
1. A data processing method for an electronic device, the method comprising:
storing current parameters of a first system before updating the first system;
and responding to the first system update, and loading the current parameters of the first system so that the updated parameters of the first system are the same as the current parameters.
2. The method of claim 1, the storing current parameters of the first system prior to the first system update comprising:
before the first system is updated, whether the first system updating includes loading a second default parameter corresponding to the first system is determined;
and if the updating of the first system is confirmed to include loading of a second default parameter corresponding to the first system, storing the current parameter of the first system.
3. The method of claim 1 or 2, prior to storing the current parameters of the first system, the method further comprising:
determining whether to store the current parameters of the first system before the first system is updated based on the current parameters of the first system and the first default parameters.
4. The method of claim 3, the determining whether to store the current parameters of the first system before the first system update based on the current parameters of the first system and the first default parameters, comprising:
matching the current parameter with various parameters included in the first default parameter;
if the current parameters are the same as the parameters in the first default parameters, determining that the current parameters of the first system are not stored before the first system is updated;
or if the current parameter and each parameter included in the first default parameter have different at least one parameter, confirming that the current parameter of the first system is stored before the first system is updated;
wherein the storing of the current parameters of the first system comprises storing all of the current parameters, or storing that there is at least one parameter that is different than each parameter included in the first default parameters.
5. The method of claim 1, prior to loading current parameters of the first system in response to the first system update, the method further comprising:
if the first system is confirmed to be updated, loading the current parameters of the first system;
and increasing and loading the task corresponding to the current parameter of the first system.
6. The method of claim 5, the loading current parameters of the first system in response to the first system update comprising:
responding to the first system update, and confirming whether a task corresponding to the current parameter of the first system is loaded or not;
and if the task corresponding to the current parameter of the first system is loaded, loading the current parameter of the first system.
7. The method of claim 1, the loading current parameters of the first system comprising:
determining a second default parameter corresponding to the first system based on the updated corresponding version of the first system;
updating parameters of the first system based on the current parameters, the second default parameters and a parameter mapping table;
wherein the parameter mapping table includes an update correspondence of versions before and after the update of the first system.
8. The method of claim 7, the updating parameters of the first system based on the current parameters, the second default parameters, and a parameter mapping table, comprising:
confirming a variable name of a first parameter of the current parameter and the second default parameter based on the parameter mapping table; confirming whether the values of the first parameter in the current parameter and the second default parameter are the same, and updating the value of the first parameter in the second default parameter to the value of the first parameter in the current parameter in response to the value of the first parameter in the current parameter being different from the value of the first parameter in the second default parameter;
wherein the first parameter is any one of the current parameter and the second default parameter; or at least one parameter for which the first default parameter is different than the current parameter.
9. A data processing apparatus comprising:
the storage unit is used for storing the current parameters of the first system before the first system is updated;
and the loading unit is used for responding to the first system update and loading the current parameters of the first system so as to enable the updated parameters of the first system to be the same as the current parameters.
10. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111649742.3A CN114428624A (en) | 2021-12-30 | 2021-12-30 | Data processing method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111649742.3A CN114428624A (en) | 2021-12-30 | 2021-12-30 | Data processing method and device and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114428624A true CN114428624A (en) | 2022-05-03 |
Family
ID=81311668
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111649742.3A Pending CN114428624A (en) | 2021-12-30 | 2021-12-30 | Data processing method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114428624A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025260861A1 (en) * | 2024-06-18 | 2025-12-26 | 苏州元脑智能科技有限公司 | Upgrade method and apparatus for basic input/output system, and non-volatile computer-readable storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9122501B1 (en) * | 2014-09-08 | 2015-09-01 | Quanta Computer Inc. | System and method for managing multiple bios default configurations |
| CN105808270A (en) * | 2014-12-17 | 2016-07-27 | 纬创资通股份有限公司 | Firmware variable updating method |
| CN106155716A (en) * | 2015-03-30 | 2016-11-23 | 联想(北京)有限公司 | The configuration store method of BIOS and configuration save set |
| CN111694586A (en) * | 2020-06-05 | 2020-09-22 | 平安科技(深圳)有限公司 | Program initialization method, program initialization device, terminal device, and storage medium |
| CN112596770A (en) * | 2020-12-24 | 2021-04-02 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN113032023A (en) * | 2021-03-03 | 2021-06-25 | 联想(北京)有限公司 | Electronic equipment processing method and device and electronic equipment |
-
2021
- 2021-12-30 CN CN202111649742.3A patent/CN114428624A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9122501B1 (en) * | 2014-09-08 | 2015-09-01 | Quanta Computer Inc. | System and method for managing multiple bios default configurations |
| CN105808270A (en) * | 2014-12-17 | 2016-07-27 | 纬创资通股份有限公司 | Firmware variable updating method |
| CN106155716A (en) * | 2015-03-30 | 2016-11-23 | 联想(北京)有限公司 | The configuration store method of BIOS and configuration save set |
| CN111694586A (en) * | 2020-06-05 | 2020-09-22 | 平安科技(深圳)有限公司 | Program initialization method, program initialization device, terminal device, and storage medium |
| CN112596770A (en) * | 2020-12-24 | 2021-04-02 | 潍柴动力股份有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN113032023A (en) * | 2021-03-03 | 2021-06-25 | 联想(北京)有限公司 | Electronic equipment processing method and device and electronic equipment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025260861A1 (en) * | 2024-06-18 | 2025-12-26 | 苏州元脑智能科技有限公司 | Upgrade method and apparatus for basic input/output system, and non-volatile computer-readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5575338B2 (en) | Information processing apparatus, information processing method, and computer program | |
| CN104573529B (en) | A kind of division of BIOS/firmware, update method and system | |
| CN110162429B (en) | System repair method, server and storage medium | |
| CN106293849B (en) | application updating method and terminal | |
| TW201510866A (en) | System and method of UEFI BIOS booting and updating, recording medium and computer program products | |
| CN103365696A (en) | BIOS (Basic Input Output System) image file obtaining method and device | |
| CN109582332B (en) | System upgrading method and device for Internet camera | |
| CN109753299A (en) | A system upgrade method, device and computer storage medium | |
| CN109828774B (en) | A server system and its startup method | |
| CN114721493B (en) | Chip starting method, computer equipment and readable storage medium | |
| US20260111215A1 (en) | Program update method and apparatus, and electronic device and storage medium | |
| CN105320529A (en) | Boot method and device based on NAND-Flash double-boot guidance | |
| CN111090546B (en) | Method, device and equipment for restarting operating system and readable storage medium | |
| CN114428624A (en) | Data processing method and device and electronic equipment | |
| JP5561791B2 (en) | Information processing apparatus, information processing method, and information processing program | |
| TWI839136B (en) | Firmware update method for downstream devices of bmc | |
| CN118796288A (en) | Method, device, computer equipment and storage medium for performing hardware initialization operation | |
| US9223584B2 (en) | Information processing apparatus, restoring method of BIOS setup, restoring program | |
| CN111258617B (en) | Electronic equipment | |
| CN104216797A (en) | Embedded system set value setting system and method and electronic device | |
| CN113687851A (en) | Embedded device upgrade method and device | |
| CN108021381A (en) | The upgrading method for one-chip computer and device of equipment | |
| CN1362670A (en) | How to Repair System BIOS by Yourself | |
| CN1294481C (en) | Boot program update recovery system and method thereof | |
| CN101359300B (en) | Management method of special data of computer device and starting method suitable for management method |
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 |