CN113032023A - Electronic equipment processing method and device and electronic equipment - Google Patents

Electronic equipment processing method and device and electronic equipment Download PDF

Info

Publication number
CN113032023A
CN113032023A CN202110234397.0A CN202110234397A CN113032023A CN 113032023 A CN113032023 A CN 113032023A CN 202110234397 A CN202110234397 A CN 202110234397A CN 113032023 A CN113032023 A CN 113032023A
Authority
CN
China
Prior art keywords
controller
system optimization
optimization parameters
parameters
electronic device
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.)
Granted
Application number
CN202110234397.0A
Other languages
Chinese (zh)
Other versions
CN113032023B (en
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 CN202110234397.0A priority Critical patent/CN113032023B/en
Publication of CN113032023A publication Critical patent/CN113032023A/en
Application granted granted Critical
Publication of CN113032023B publication Critical patent/CN113032023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4401Bootstrapping
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides an electronic equipment processing method, an electronic equipment processing device and electronic equipment, wherein before a power switch of the electronic equipment is pressed, the first controller which controls the electronic equipment to be started can read a zone bit and realize system optimization parameter synchronization with a second controller according to the read first zone bit; and under the condition that at least part of the set system optimization parameters are lost due to abnormality of the second controller, the system optimization parameters set by the user can be directly refreshed to the second controller through the synchronous processing mode without manual resetting, and the setting efficiency and accuracy of the user are improved.

Description

Electronic equipment processing method and device and electronic equipment
Technical Field
The present application relates to the field of computers, and in particular, to an electronic device processing method and apparatus, and an electronic device.
Background
In order to meet the requirements of users on the safety, performance and the like of a certain type of electronic equipment, before the electronic equipment of the type is shipped, a corresponding default value (i.e., a System optimization parameter) is configured in advance for the System hardware configuration of the electronic equipment in a BIOS (Basic Input and Output System), and then the electronic equipment is switched to a Shipping Mode (Shipping Mode) for boxing and shipment.
Therefore, before the electronic device is powered on and started up for the first time and an operating system is started, the BIOS is usually required to load a preset default value, and the loaded default value is enabled to take effect after automatic restart, so as to enter the operating system of the electronic device. Therefore, before the operating system is started, the electronic equipment can be in a black screen state for a long time, so that the visual sense of the electronic equipment with long starting time is caused, and the user experience is poor.
Disclosure of Invention
In view of the above, in order to solve the above technical problem, the present application proposes the following technical solutions:
in one aspect, the present application provides an electronic device processing method, including:
the first controller reads the flag bit; the first controller is connected with a power switch of the electronic equipment and controls the starting of the electronic equipment;
the first controller realizes system optimization parameter synchronization with the second controller according to the read first zone bit;
the second controller is used for guiding an operating system of the electronic equipment to start, and the system optimization parameters are used for supporting the operating system to run.
In some embodiments, the first controller implements synchronization of system optimization parameters with the second controller according to the read first flag bit, including:
the first controller determines that the read first zone bit is a parameter loading zone bit, and refreshes the system optimization parameters stored in a backup mode to a corresponding storage space of the second controller;
the method further comprises the following steps:
the first controller responds to the input operation aiming at the power switch, generates a system power-on instruction and triggers the second controller to operate;
and the second controller guides the operating system of the electronic equipment to start by using the currently stored system parameters.
In some embodiments, the second controller directs the operating system of the electronic device to boot using the currently stored system parameters, including:
the second controller starts a safe starting item to perform safe starting detection on the electronic equipment;
the second controller guides an operating system of the electronic equipment to start by using the currently stored system parameters under the condition that the detection result is passed;
the second controller configures a safe starting synchronous zone bit based on the state change of the safe starting item from forbidden switching to starting;
the first controller realizes the synchronization of the system optimization parameters with the second controller according to the read first zone bit, and the method further comprises the following steps:
and the first controller updates the state of the safe starting item stored in the corresponding storage block to be in an opening state according to the read safe starting synchronous zone bit, and deletes the safe starting synchronous zone bit.
In some embodiments, the method further comprises:
the second controller responds to a system configuration instruction aiming at system hardware configuration to obtain system optimization parameters;
the second controller configures a synchronization flag bit for the system optimization parameter and determines a corresponding parameter storage address of the system optimization parameter in the second controller;
the first controller realizes the synchronization of system optimization parameters with the second controller according to the reading of the first zone bit, and the synchronization comprises the following steps:
the first controller determines that the read first zone bit is the synchronous zone bit, and synchronously backs up system optimization parameters under corresponding parameter storage addresses in the second controller;
and the first controller deletes the synchronous flag bit.
In some embodiments, the method further comprises:
the first controller detecting whether there is an abnormal event for the second controller, the abnormal event being an event that causes at least part of the system parameters stored by the second controller to be lost;
if so, the first controller refreshes the system optimization parameters of the synchronous backup to a corresponding parameter storage address of the second controller for storage, so that the second controller can guide the operating system of the electronic equipment to be successfully started according to the stored system parameters.
In some embodiments, the refreshing, by the first controller, the system optimization parameters of the synchronized backup to the corresponding parameter storage address of the second controller includes:
the first controller compares the system optimization parameters of the synchronous backup with the system parameters currently possessed by the second controller;
and according to the comparison result, the first controller refreshes the inconsistent system optimization parameters to the corresponding parameter storage address of the second controller for storage.
In some embodiments, the method further comprises:
the first controller detects whether a storage block for different system optimization parameters exists;
if not, creating a storage block aiming at different system optimization parameters in the storage space of the first controller;
if the first flag bit exists, the first controller determines that the read first flag bit is the synchronous flag bit, and synchronously backs up the system optimization parameters under the corresponding parameter storage address in the second controller, wherein the step of synchronously backing up the system optimization parameters comprises the following steps:
the first controller determines to read synchronous flag bits aiming at different system optimization parameters, and obtains the system optimization parameters under corresponding parameter storage addresses in the second controller;
and the first controller updates the obtained system optimization parameters to the corresponding storage blocks for storage.
In yet another aspect, the present application provides an electronic device processing apparatus, including:
the flag bit reading module is used for reading the flag bit; the flag reading module is deployed in a first controller, and the first controller is connected with a power switch of electronic equipment and controls the electronic equipment to be started;
the parameter synchronization processing module is used for realizing system optimization parameter synchronization between the first controller and the second controller according to the first zone bit under the condition that the first zone bit is read;
the second controller is used for guiding an operating system of the electronic equipment to start, and the system optimization parameters are used for supporting the operating system to run.
In yet another aspect, the present application provides an electronic device, including:
the power supply module comprises a power supply interface and a power switch;
a main board;
the first controller is connected with the power switch and controls the starting of the electronic equipment;
the first controller is used for reading the zone bits and realizing system optimization parameter synchronization with the second controller according to the read first zone bits; the second controller is used for guiding an operating system of the electronic equipment to start, and the system optimization parameters are used for supporting the operating system to run.
In some embodiments, the electronic device further comprises a first memory and a second memory, wherein:
the second memory is used for storing system optimization parameters obtained by the second controller in response to system configuration instructions aiming at system hardware configuration; or receiving and storing the system optimization parameters of the first controller back-brushing under the condition that the second controller generates an abnormal event;
the first memory is used for storing the system optimization parameters synchronously backed up from the second memory of the second controller by the first controller, and the stored system optimization parameters are sent to the second memory when an abnormal event occurs in the second controller.
Based on the technical scheme, in practical application, the first controller which is connected with the power switch of the electronic equipment and controls the electronic equipment to start up can read the zone bit and realize the synchronization of the system optimization parameters with the second controller according to the read first zone bit, and after the power switch is pressed down, the second controller can directly execute the synchronized system optimization parameters to guide the operating system to be started up quickly and successfully without restarting so as to enable the read system optimization parameters to take effect, the starting-up load of the electronic equipment cannot be increased, and the starting-up time is saved; and under the condition that at least part of the set system optimization parameters are lost due to abnormality of the second controller, the first controller directly refreshes the backup system optimization parameters set by the user to the second controller through the synchronous processing mode without manual resetting, and the user setting efficiency and accuracy are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of an alternative example of an electronic device processing method proposed in the present application;
fig. 2 is a signaling flow diagram of another alternative example of the processing method of the electronic device proposed in the present application;
fig. 3 is a signaling flow diagram of another alternative example of the electronic device processing method proposed in the present application;
fig. 4 is a signaling flow diagram of another alternative example of the electronic device processing method proposed in the present application;
fig. 5 is a schematic diagram illustrating a data interaction functional architecture between the EC and the BIOS in an embodiment of a processing method of an electronic device according to the present application;
fig. 6 is a schematic structural diagram of an alternative example of the processing apparatus of the electronic device proposed in the present application;
fig. 7 is a schematic structural diagram of yet another alternative example of the processing apparatus of the electronic device proposed in the present application;
fig. 8 is a schematic structural diagram of yet another alternative example of the processing apparatus of the electronic device proposed in the present application;
fig. 9 is a schematic hardware structure diagram of an alternative example of the electronic device proposed in the present application;
fig. 10 is a schematic diagram of a hardware structure of still another alternative example of the electronic device proposed in 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of 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.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be understood that "system", "apparatus", "unit" and/or "module" as used herein is a method for distinguishing different components, elements, parts or assemblies at different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements. An element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two. The terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
Additionally, flow charts are used herein to illustrate operations performed by systems according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the processes.
In order to solve the technical problems described in the background section, the present application proposes to utilize a characteristic that a first Controller, such as an Embedded Controller (EC), in an electronic device is always in a working state after the electronic device is powered on for the first time, and to directly and synchronously backup the System optimization parameters in the first Controller when a second Controller (such as a Basic Input Output System (BIOS) or the like) obtains the System optimization parameters, so that, in the process of starting up the electronic device, the first Controller in the working state directly refreshes the System optimization parameters synchronously backed up into the second Controller before a power key is pressed down, so that, in the process of pressing down the power key to start up an operating System of the electronic device, the second Controller directly executes the System optimization parameters to guide the start up of the operating System, and after the System optimization parameters are read and restored by the second Controller, the system optimization parameters can be enabled to be valid only by restarting the second controller, and then the processing scheme for booting the operating system can be guided, so that the time spent by restarting the second controller is reduced, and the starting time of the electronic equipment is shortened.
Therefore, for the electronic device leaving the factory, in the process of first powering on and using the electronic device, the electronic device processing method obtained according to the technical concept described above can be executed, and the electronic device is not required to be restarted due to effective setting, so that the starting time is saved, for example, the first starting time of the electronic device can be reduced from 20 seconds to 5 seconds, and the user experience is greatly improved.
In addition, in the use process of the electronic device, according to different user requirements, the second Controller may be upgraded or configured and adjusted, for example, a hard disk storage mode of the electronic device is changed, for example, the change between two modes, i.e., an AHCI (advanced host Controller Interface) mode and an RAID (Redundant array of Independent Disks) mode, often causes at least part of system parameters in the second Controller to change, and may also increase new system parameters.
Based on the above setting change, in the operation process of upgrading, refreshing, self-recovering, etc. of the second controller, if the second controller is abnormal, such as BIOS Crash, etc., the changed setting in the second controller may be lost, and the operating system cannot be accessed in a serious case. In view of the above problem, in combination with the above technical concept provided by the present application, when the second controller obtains the system optimization parameters, the second controller synchronously backs up the system optimization parameters to the first controller in time, so that when the problem occurs and the settings in the second controller are lost, the first controller can refresh the backed-up system optimization parameters back to the second controller, thereby ensuring that the second controller normally operates, executing the system optimization parameters set by the user, and guiding the operating system of the electronic device to be successfully started.
In combination with the above description of the technical concept of the processing method for the electronic device, the following will describe an implementation process of the processing method for the electronic device with reference to a specific example, but the implementation process is not limited to the execution steps described in the following embodiments, and may be adaptively adjusted according to the requirements of the actual application scenarios, which is not listed in the present application.
Referring to fig. 1, a flow diagram of an alternative example of an electronic device processing method proposed by the present application may include, but is not limited to, the following steps:
step S11, the first controller reads the flag bit;
it should be noted that the first controller is connected to a power switch of the electronic device to control the start-up of the electronic device, and may specifically be an embedded controller EC, and in practical applications, the first controller may also be used to implement control of keyboard notebook charging and discharging, power management, cooling fan control, hot key, touch pad, and the like, and a specific control process is not described in detail herein.
In practical application of the present application, for the electronic device leaving the factory, in consideration of safety and the like, after the configuration of the system optimization parameters is completed, the whole electronic device is switched to the power-off module, i.e., the Shipping Mode, and then is boxed for Shipping, so that when the electronic device is first plugged into a power supply, the first controller can be activated to enter the operating state, so that the electronic device exits the Shipping Mode, and thereafter, the first controller can be powered by the storage battery of the electronic device and is always in the operating state. Since the first controller consumes very little power, it is negligible.
When a user wants to use the electronic device, the first controller can monitor the event by pressing the power switch, a system power supply path of the electronic device is started, namely the system is powered on, other devices in the electronic device enter a normal working state, for example, the second controller works, and after a preset starting program such as power-on self-test and the like, the operating system is guided to start running. The working condition of the first controller in the electronic equipment is not detailed in the application.
The second controller may be a BIOS controller, where the BIOS is a management program preset by a motherboard designer to enable the motherboard to correctly manage and control a computer hardware system, and the BIOS carries an important task of loading system hardware initialization information, and is an indispensable part for normal operation of hardware in the computer system. The present application does not describe the structure and the function implementation process of the BIOS in the electronic device in detail.
In combination with the above description of the technical concept of the present application, the storage content of the storage space of the second controller of the electronic device changes to obtain the system optimization parameter (i.e., the changed parameter), and a corresponding flag bit is usually configured to represent the parameter change condition, so that other devices of the electronic device can determine whether the setting change occurs according to the value of the flag bit, and the content and the representation manner of the flag bit are not limited in the present application, for example, 1 or 0 is respectively adopted to correspondingly represent that the second controller obtains the system optimization parameter, and the second controller does not obtain the system optimization parameter.
It can be understood that, for updating different types of system parameters in the electronic device, corresponding flag bits may be configured to indicate, and the controller may read the content of the flag bits to accurately determine the updated system parameters of the electronic device, so as to perform subsequent processing on the updated system parameters according to a preset processing manner, which is not described in detail herein. Moreover, since the update configuration of the system parameters of the electronic device may be performed before the electronic device is shipped or may be performed in the process of using the electronic device by the user after the electronic device is shipped, the configuration of the flag bits may be completed before the electronic device is shipped or may be completed after the electronic device is shipped, and the configuration implementation process of each flag bit is not described in detail in this application, as the case may be.
Based on the above description of the first controller and the flag bit, after the first controller is activated to enter the working state, whether the flag bit exists in the electronic device may be read, and the specific reading process and the reading address may be determined according to a predetermined configuration rule of the flag bit, such as a synchronization flag bit for indicating synchronization backup of system optimization parameters, and the first controller may read a storage address for recording the synchronization flag bit to determine whether the synchronization flag bit exists under the storage address; the reading process for the flag bits of other categories is similar, and the description is not given here.
And step S12, the first controller realizes the synchronization of the system optimization parameters with the second controller according to the read first flag bit.
In succession to the above description, the first controller reads a certain flag bit through the above flag bit reading operation, and for convenience of the following description, the read flag bit may be regarded as the first flag bit, and the content of the first flag bit is not limited in the present application. Since the meanings represented by the different flag bits and the corresponding processing programs are often predetermined, in the embodiment of the present application, after the first controller reads the first flag bit, the system optimization parameter synchronization with the second controller can be realized according to the content of the first flag bit.
Specifically, according to different application scene requirements, the first controller may refresh the backed-up system optimization parameters back to the second controller, or the first controller performs synchronous backup on the system optimization parameters obtained by the second controller, and the like, and the specific implementation process is not described in detail in this application.
In combination with the above analysis, the synchronized system optimization parameter may be used to support the operation of the operating system of the electronic device, and the second controller may be used to boot the operating system of the electronic device, so in practical application of this embodiment, after the second controller is powered on, the system optimization parameter may be used to perform secure boot detection, such as power-on self-test processing of the BIOS, and after the detection is passed, the operating system of the electronic device may be booted to enable the electronic device to be successfully booted and operated.
In summary, in the embodiment of the present application, in order to reduce the first boot time of the electronic device, before a user presses a power switch of the electronic device, a first controller connected to the power switch and controlling the electronic device to boot reads a flag bit, and if the first flag bit is read, the first controller realizes synchronization of system optimization parameters with a second controller according to the first flag bit, so that after the power switch is pressed, the second controller can directly execute the synchronized system optimization parameters, and the operating system can be guided to be rapidly and successfully started without restarting to enable the read system optimization parameters to take effect, thereby increasing the first boot speed of the electronic device; and under the condition that at least part of the set system optimization parameters are lost due to abnormality of the second controller, the first controller can refresh the previously backed-up system optimization parameters to the second controller through the synchronous processing mode, so that the reliable starting of the operating system of the electronic equipment is realized while the second controller executes the optimal setting of the user.
Referring to fig. 2, a schematic flow chart of another optional example of the electronic device processing method proposed in the present application is shown, where this embodiment may be an optional detailed implementation method of the electronic device processing method described in the foregoing embodiment, and this embodiment mainly describes a scenario for how to increase the first boot speed of an electronic device, and as shown in fig. 2, the detailed implementation method may include:
step S21, the first controller reads the flag bit;
the first controller is connected to a power switch of the electronic device to control the power on of the electronic device, and the working principle of the first controller is not described in detail in this application, which refers to but is not limited to the description of the corresponding parts of the above embodiments.
In practical applications, after the first controller is activated to enter the working state, the flag bit reading operation may be performed in real time or periodically or in response to a certain event, and the specific implementation method of step S21 is not limited in this application and may be determined according to the circumstances.
Step S22, the first controller determines the read first flag bit as the parameter loading flag bit, and refreshes the system optimization parameters of the backup storage to the corresponding storage space of the second controller;
in this embodiment of the application, the parameter loading flag bit may be configured before the electronic device leaves a factory, specifically, after the second controller responds to a system configuration instruction for system hardware configuration, a system optimization parameter (which may be a Default.
Therefore, after the electronic device is powered on for the first time and exits from the shipment mode, before the electronic device is started, the flag bit can be Read by the first controller (such as the EC), whether the parameter loading flag bit exists is detected, if the parameter loading flag bit is Read, the first controller can refresh the system optimization parameters of the second controller back to the corresponding storage space of the second controller, and if the system optimization parameters such as the BIOS default variables and the security keys are refreshed back to the corresponding storage addresses in the BIOS SPI (serial peripheral interface) ROM (Read-Only Memory), and the specific refreshing process is not detailed.
In conjunction with the above description of the first controller, the above steps S21 and S22 may be executed after the electronic device is powered on and before the user presses the power switch, that is, the electronic device may be in the power-off state, and no load is added to the normal power-on of the electronic device.
Step S23, the first controller responds to the input operation aiming at the power switch, generates a system power-on instruction and triggers the second controller to operate;
in general, after a user connects a power head of the electronic device to an external power source, the user can press a power switch to control the electronic device to start, and after the first controller detects that the user operates the power switch, the first controller can control the system to be powered on to supply power to the second controller, so that the second controller starts to operate.
It can be understood that the power-on duration of the electronic device is counted from the time when the power switch is pressed down and the system starts to power on, so that the user does not feel how fast the electronic device is turned on even in the power-on duration in the operation before the power switch is pressed down.
In step S24, the second controller uses the currently stored system parameters to boot the operating system of the electronic device.
As described above, before the user presses the power switch, the first controller has flushed the backed-up system optimization parameters back to the corresponding storage space of the second controller, so that after the system is powered on and the second controller operates normally, the system parameters read from the storage space of the second controller include the system optimization parameters, the second controller does not need to restart the validation operation, the step of completing the startup security detection is directly executed, after the detection is passed, the operating system of the electronic device is guided to be started, the time spent by the operation of restarting the second controller to validate the system optimization parameters is eliminated, the startup time of the electronic device is shortened, and the user experience is improved.
Moreover, compared with the synchronous operation of the system optimization parameters between the external storage equipment with the help of the pre-backup of the system optimization parameters and the second controller, the method and the device directly utilize the processing mode that the first controller of the electronic equipment is used for synchronously backing up the set system optimization parameters from the second controller, and then the first controller directly brushes the backed-up system optimization parameters back to the second controller when needed, so that the problem that the startup speed and the reliability of the electronic equipment are influenced due to unpredictable problems such as the fact that the connected system optimization parameters backed up by the external storage equipment are not matched with the model of the electronic equipment and the like due to misoperations can be avoided.
Referring to fig. 3, a schematic flow chart of yet another optional example of the electronic device processing method proposed in the present application, where this embodiment may be a further detailed implementation method of the electronic device processing method described in the foregoing embodiment, but is not limited to such a detailed implementation method described in this embodiment, as shown in fig. 3, the method may include:
step S31, the first controller reads the parameter loading flag bit, and refreshes the system optimization parameters stored in backup to the corresponding storage space of the second controller;
step S32, the first controller responds to the input operation aiming at the power switch, generates a system power-on instruction and triggers the second controller to operate;
for specific implementation processes of step S31 and step S32, reference may be made to the description of corresponding parts in the foregoing embodiments, which are not described herein again.
Step S33, the second controller starts a safe starting item to perform safe starting detection on the electronic equipment;
after a user presses a power switch, the first controller can determine whether to refresh the backed-up system optimization parameters to the corresponding storage space of the second controller by detecting the parameter loading zone bit, and then execute the subsequent processing steps under the condition that the detection result is yes.
In practical application of the present application, in order to enable the first controller to successfully refresh the backed-up system optimization parameters to the corresponding storage space of the second controller, during the execution of the above operation steps, the Secure Boot Item of the second controller is in a closed state (which may also be referred to as a disabled state), such as disable Secure Boot Item, and accordingly, the state of the Secure Boot Item backed-up by the first controller is also in the closed state. After the operations are completed, in the process of starting the electronic device, in order to enable the electronic device to perform system power-on self-test, the second controller may be controlled to start a Secure Boot Item, such as enable Secure Boot Item, and the specific implementation process is not described in detail.
Step S34, the second controller guides the operation system of the electronic device to start by using the currently stored system parameters under the condition that the detection result is passed;
the implementation processes of the power-on self-test of the second controller and the booting of the operating system are not described in detail in the embodiments of the present application.
Step S35, the second controller configures a safe starting synchronous zone bit based on the state change of the safe starting item from forbidden to opened;
because the system optimization parameter backed up by the first controller comes from the second controller, according to the processing manner, after the secure startup item in the second controller is switched from the disabled state to the enabled state, the state of the secure startup item backed up by the first controller is no longer consistent with the state of the secure startup item backed up by the first controller, in this case, the second controller may configure, for the secure startup item, a secure startup synchronization flag bit used for representing that the state of the secure startup item changes, so as to notify the first controller to perform synchronous backup on the state change of the secure startup item.
Step S36, the first controller reads the safe start synchronous flag bit, and updates the state of the safe start item stored in the corresponding storage block to the open state;
in step S37, the first controller deletes the security boot synchronization flag.
In combination with the description of the first controller in the above other embodiments, the first controller may read the flag bit, and if the read first flag bit is the safe starting synchronization flag bit, the first controller may perform synchronous backup on the state parameter of the safe starting item that is started by the second controller, that is, update the state of the safe starting item stored in the corresponding storage block to the started state, and then, to avoid interference of the safe starting synchronization flag bit on the subsequent processing steps, the safe starting synchronization flag bit may be deleted.
It is understood that if the first controller does not read the above-mentioned safety start synchronization flag, the loop flag may be ended, and the first controller exits the loop detection of the flag.
In summary, in this embodiment, the electronic device accesses the power supply, before the power switch is pressed, the first controller flushes the backed-up system optimization parameters into the corresponding storage space of the second controller, after the user presses the power switch, the second controller does not need to spend time to restore the system optimization parameters, and the second controller can perform the safe start detection of the start-up by using the stored system parameters by restarting the second controller to enable the system optimization parameters to take effect, and the start-up duration of the electronic device is greatly saved.
After the state of the safe starting item of the second controller is changed, the first controller is informed to synchronously back up the state parameters (belonging to a system optimization parameter) of the safe starting item in time by configuring the safe starting synchronization zone bit, and the same type of parameter contents in the two controllers are ensured to be consistent. After the synchronization of the system optimization parameters between the two controllers is completed, the synchronization flag bit (such as the above-mentioned safety start synchronization flag bit) can be cleared in time, so as to avoid the interference to the subsequent processing.
Referring to fig. 4, which is a schematic flow diagram of another optional example of the electronic device processing method provided in the present application, this embodiment may be another optional detailed implementation method of the electronic device processing method described in the foregoing embodiment, and mainly describes how to synchronously backup the second controller to the first controller in a scenario where system parameters such as system variables and security keys of the second controller are changed, so as to ensure that the backup content of the first controller is directly flushed to the second controller after an abnormality occurs in the second controller, thereby ensuring an implementation process of normal startup of an operating system of the electronic device. As shown in fig. 4, the method may include:
step S41, the second controller responds to the system configuration instruction aiming at the system hardware configuration to obtain the system optimization parameter;
step S42, the second controller configures the synchronous flag bit for the system optimization parameter, and determines the corresponding parameter storage address of the system optimization parameter in the second controller;
step S43, the first controller reads the synchronous flag bit, and synchronously backups the system optimization parameters under the corresponding parameter storage address in the second controller;
step S44, the first controller deletes the synchronization flag;
in combination with the description of the corresponding parts of the above embodiment, the technical solution described in the above steps of this embodiment may be applicable to a configuration scenario before the electronic device leaves a factory, or may also be applicable to a scenario in which a system parameter of an existing configuration of the second controller is changed based on a user requirement during a use process of the electronic device, and the like. It can be understood that in a configuration scene before leaving a factory, the second controller obtains the system optimization parameters, which may be default values configured for the electronic device of the model; in the using process of the electronic device, the system optimization parameters that can be changed may include system variables, such as BIOS Variable, and Secure Boot Key, and the like, and the system optimization parameter contents may be different in different scenarios, which is not listed herein.
For the obtained system optimization parameters of different categories, the second controller may configure corresponding synchronization flag bits, for example, for a changed system variable, a variable synchronization flag bit may be configured; a key synchronization flag may be configured for the changed secure boot key. Moreover, for different types of system optimization parameters, the storage device of the second controller will typically be configured with corresponding parameter storage addresses for storage.
Exemplarily, a first controller is an EC, a corresponding storage device thereof may be an Embedded read only memory (Embedded ROM), a second controller is a BIOS controller, a corresponding storage device thereof is a BIOS SPI ROM, referring to a schematic diagram of a data interaction functional architecture between the EC and the BIOS shown in fig. 5, after obtaining system optimization parameters, a parameter storage Address for storing various parameter distributions may be created in a storage space of the second controller for parameter classes included in the system optimization parameters, as exemplified by two types of parameters including a system Variable (Variable) and a Secure Boot Key (Secure Boot Key), a Variable storage Address (UEFI Variable Address) for storing the system Variable and a Secure Boot Key (Secure Boot Key Address) for storing the Secure Boot Key may be created in the BIOS SPI ROM, but not limited to these two types of system parameters, and the creation process of the storage address of each type of parameter is not described in detail in this application.
As shown in fig. 5, taking an electronic device of model S950 developed by a company as an example, the storage capacity of the EC Embedded ROM configured by the electronic device is 256M (megabyte), and the storage capacity of the BIOS SPI ROM configured by the electronic device is 24M, according to the above manner, the BIOS may create a storage block with a certain storage capacity (such as 8K shown in fig. 5, but not limited to the size of the storage capacity) in the storage space of the electronic device, so as to store system variables, such as settable system items, and determine that the Address of the storage block is UEFI Variable Address; similarly, another memory block with a certain memory capacity (for example, 12K as shown in fig. 5, but not limited to the size of the capacity) is created to store the Secure Boot Key, and the Address of the memory block is determined to be Secure Boot Key Address.
Then, when detecting a parameter change event (or update instruction) of one or more types of system parameters stored in the changed BIOS and obtaining system optimization parameters of corresponding types, the BIOS may configure a corresponding synchronization flag, that is, a flag of the EC-synchronized BIOS corresponding to the system optimization parameters, such as the above-mentioned variable synchronization flag (EC Sync BIOS VAR), KEY synchronization flag (EC Sync BIOS KEY), and the EC may determine, through a reading operation of the flag, that one or more synchronization flags are read, and may read the system optimization parameters stored in the storage block corresponding to the parameter storage address according to the corresponding parameter storage address created by the BIOS, thereby achieving the purpose of EC-synchronizing the system optimization parameters of the BIOS.
In the process of synchronizing the system optimization parameters of the BIOS, the first controller (such as the EC) directly replaces the stored corresponding system parameters with the read system optimization parameters, so as to ensure that the system optimization parameters refreshed to the BIOS are the latest system optimization parameters for synchronous backup when the EC refreshes the system optimization parameters back to the BIOS subsequently.
In practical application of the present application, the system optimization parameters synchronously backed up by the first controller may be stored in corresponding storage blocks in the storage space of the first controller, that is, the first controller may create storage blocks for storing different types of system optimization parameters.
In a possible implementation manner, in a scenario where the electronic device is used for the first time before or after leaving a factory, after the first controller is powered on and initialized, it may be detected whether a storage space of the first controller has storage blocks for different system optimization parameters, and if yes, operations such as reading a flag bit may be performed in the manner described in the above embodiment; if not, a storage block for different system optimization parameters needs to be created in the storage space of the first controller. As shown in fig. 5, in the EC Embedded ROM, a storage section for storing backed-up system optimization parameters such as Variable and Secure Boot Key may be created, such as a storage block for storing BIOS Variable (i.e., EC BIOS _ VAR); memory block for storing Secure Boot Key of BIOS (i.e., EC BIOS Secure Boot)
KEY), the specific creation process is similar to the implementation process of the BIOS creating the storage interval for storing the changed system optimization parameters, and the detailed description is omitted in this application.
And then, after the first controller reads the synchronous zone bits aiming at different system optimization parameters and obtains the system optimization parameters under the corresponding parameter storage addresses in the second controller, the obtained system optimization parameters can be updated to the corresponding storage blocks created by the first controller for storage, namely, the synchronous backup of the system optimization parameters of the BIOS by the EC is realized. Wherein, BIOS is by the condition of the system optimization parameter of SPI ROM storage change, EC can realize through SPI and BIOS between data communication, and concrete communication process can be confirmed according to SPI's communication principle, does not do the detail in this application.
Step S45, the first controller detects an abnormal event for the second controller;
the abnormal event may be an event that causes at least part of the system parameters stored in the second controller to be lost, and the lost at least part of the system parameters may include at least part of system optimization parameters, such as a setting item changed by a user.
Moreover, the abnormal event may occur in a scenario where the second controller needs to update the system parameter stored in the second controller, such as upgrading, updating, and self-recovery of the second controller. In practical application, after an abnormal event occurs in the second controller, the second controller may not operate normally, and thus the operating system of the electronic device may not be started normally, and situations such as a blue screen or direct shutdown may occur.
Step S46, the first controller refreshes the system optimization parameters of the synchronous backup to the corresponding parameter storage address of the second controller for storage, so that the second controller can direct the operating system of the electronic device to be successfully started according to the stored system parameters.
In the embodiment of the application, before the second controller sends the abnormal event, the obtained system optimization parameters are synchronously backed up to the first controller, so that after the second controller sends the abnormal event, the first controller can back-flush the synchronously backed-up system optimization parameters to the second controller, the problem that at least part of changed system optimization parameters are lost due to the abnormal event of the second controller is solved, a user does not need to change and set the system parameters of the second controller again, and the setting efficiency and accuracy of the user are improved.
After the first controller flushes the synchronized backup system optimization parameters back to the second controller, the system can be triggered to be powered on again, so that the second controller operates again according to the above mode, currently stored complete system parameters are executed, and the operating system of the electronic device is guided to be started successfully. Of course, in some embodiments, the system may not be started immediately to be powered up again, and in a case that the electronic device needs to be used, after the power switch is pressed, the second controller may also be capable of guiding the operating system of the electronic device to be started successfully according to the above manner, so as to meet a use requirement of the user on the electronic device. The implementation of how the second controller directs the start of the operating system is not described in detail in this application.
In some embodiments, as analyzed above, the first controller may not determine which part of the system optimization parameters is lost in the storage space of the second controller according to the received abnormal event, and for this, the first controller may directly replace all the backed-up system optimization parameters with the system parameters in the corresponding parameter storage address of the second controller, so as to ensure that the second controller obtains complete system parameters meeting the user setting requirements. In order to avoid invalid parameter replacement, the first controller may also compare the system optimization parameters that are synchronously backed up with the system parameters currently in the storage space of the second controller, so as to compare the inconsistent system optimization parameters that the first controller has according to the comparison result, for example, the contents of the same type of parameters stored in the corresponding storage spaces of the first controller and the second controller are different, or the storage space of the first controller stores system parameters that do not exist in the storage space of the second controller, that is, system parameters that the second controller loses, and the like.
To sum up, in the embodiment of the present application, in the use process of the electronic device before or after leaving the factory, if the system parameters configured for the system hardware in the second controller are updated, and the second controller obtains the corresponding system optimization parameters, the corresponding synchronization flag bits are configured to notify the first controller to perform synchronous backup on the updated system optimization parameters, specifically, according to the read synchronization flag bits, the system optimization parameters under the corresponding parameter storage addresses in the second controller are performed with synchronous backup, and after the backup is determined to be successful, the synchronization flag bits are deleted in time to avoid interference; then, under the condition that at least part of updated system optimization parameters of the second controller are lost due to the occurrence of an abnormal event of the second controller, the first controller can directly brush the backed-up system optimization parameters back to the second controller no matter whether the electronic equipment is in a starting operation state or not, the lost system optimization parameters of the second controller are automatically compensated, and after the system is powered on, the electronic equipment operating system can be guided to be successfully started according to the stored system parameters.
Referring to fig. 6, a schematic structural diagram of an alternative example of the processing apparatus of the electronic device proposed in the present application may include:
a flag bit reading module 10 for reading the flag bit; the flag reading module is deployed in a first controller, and the first controller is connected with a power switch of electronic equipment and controls the electronic equipment to be started;
the parameter synchronization processing module 20 is configured to, when a first flag bit is read, implement system optimization parameter synchronization between the first controller and the second controller according to the first flag bit;
the second controller is used for guiding an operating system of the electronic equipment to start, and the system optimization parameters are used for supporting the operating system to run.
In some embodiments, the parameter synchronization processing module 20 may include:
the parameter refreshing unit is used for refreshing the system optimization parameters stored in the backup mode to a corresponding storage space of the second controller under the condition that the first zone bit read by the zone bit reading module of the first controller is a parameter loading zone bit;
based on this, as shown in fig. 7, the apparatus may further include:
the power-on control module 30 is used for responding to the input operation of the power switch, generating a system power-on instruction and triggering the second controller to operate;
and the system starting control module 40 is used for guiding the starting of the operating system of the electronic equipment by using the currently stored system parameters.
In the embodiment of the present application, in combination with the above description of the functions of the first controller and the second controller, the power-on control module may be disposed in the first controller, and the system start-up control module may be disposed in the second controller.
In a possible implementation manner, the system start control module 40 may include:
the safe starting detection unit is used for carrying out safe starting detection on the electronic equipment under the condition of starting a safe starting item;
the system guiding unit is used for guiding the operating system of the electronic equipment to start by using the currently stored system parameters under the condition that the safety starting detection result is passed;
the safe starting synchronous zone bit configuration unit is used for configuring a safe starting synchronous zone bit based on the state change of the safe starting item from forbidden switching to starting;
based on this, the parameter synchronization processing module 20 may further include the following units disposed in the first controller:
the safe starting item state backup unit is used for updating the state of the safe starting item stored in the corresponding storage block into an open state according to the safe starting synchronous flag bit under the condition that the first controller reads the safe starting synchronous flag bit;
and the safe starting synchronous zone bit deleting unit is used for deleting the safe starting synchronous zone bit.
In still other embodiments proposed in the present application, on the basis of the electronic device processing apparatus described in the above embodiments, as shown in fig. 8, the apparatus may further include the following functional modules disposed in the second controller:
a system configuration instruction response module 50, configured to respond to a system configuration instruction for system hardware configuration, and obtain a system optimization parameter;
a synchronization flag configuration module 60, configured to configure a synchronization flag for the system optimization parameter;
a parameter storage address determining module 70, configured to determine a corresponding parameter storage address of the system optimization parameter in the second controller;
accordingly, the parameter synchronization processing module 20 may specifically include the following units deployed in the first controller:
the synchronous backup unit 21 is configured to determine that the read first flag bit is the synchronous flag bit, and perform synchronous backup on the system optimization parameters in the second controller at the corresponding parameter storage address;
a synchronization flag deleting unit 22, configured to delete the synchronization flag.
Optionally, as shown in fig. 8, the apparatus may further include an anomaly detection module 80 disposed in the first controller, configured to detect whether there is an anomaly event for the second controller, where the anomaly event is an event that causes at least part of the system parameters stored in the second controller to be lost;
based on this, the parameter synchronization processing module 20 may further include:
the parameter refreshing unit 23 is configured to refresh the system optimization parameters synchronously backed up by the first controller to a corresponding parameter storage address of the second controller for storage, so that the second controller can direct the operating system of the electronic device to be successfully started according to the stored system parameters.
In a possible implementation manner, the parameter refreshing unit 23 may include:
the parameter comparison unit is used for comparing the system optimization parameters synchronously backed up by the first controller with the system parameters currently possessed by the second controller;
and the refreshing unit is used for refreshing the inconsistent system optimization parameters to the corresponding parameter storage addresses of the second controller for storage according to the comparison result obtained by the parameter comparison unit.
The electronic device processing apparatus described based on the above embodiments may further include the following functional modules disposed in the first controller:
the storage block detection module is used for detecting whether storage blocks aiming at different system optimization parameters exist or not;
the storage block creating module is used for creating storage blocks aiming at different system optimization parameters in the storage space of the first controller under the condition that the detection result of the storage block detecting module is negative;
in the case that the detection result of the storage block detection module is yes, the parameter synchronization processing module 20 may include:
the parameter reading unit is used for obtaining the system optimization parameters under the corresponding parameter storage addresses in the second controller under the condition that the synchronous flag bits aiming at different system optimization parameters are determined to be read;
and the updating unit is used for updating the obtained system optimization parameters to the corresponding storage blocks for storage.
It should be noted that, various modules, units, and the like in the embodiments of the foregoing apparatuses may be stored in the memory as program modules, and the processor executes the program modules stored in the memory to implement corresponding functions, and for the functions implemented by the program modules and their combinations and the achieved technical effects, reference may be made to the description of corresponding parts in the embodiments of the foregoing methods, which is not described in detail in this embodiment.
The present application also provides a computer-readable storage medium, on which a computer program can be stored, where the computer program can be called and loaded by a processor to implement the steps of the processing method of the electronic device described in the above embodiments.
Referring to fig. 9, a hardware structure diagram of an alternative example of an electronic device proposed in the present application may include, but is not limited to, a tablet computer, a wearable device, a Personal Computer (PC), a netbook, a Personal Digital Assistant (PDA), a robot, a desktop computer, and the like. As shown in fig. 9, the electronic device may include: a power module 910; mainboard 920, and first controller 930 and second controller 940 disposed in mainboard 920, wherein:
the power module 910 may include a power supply interface 911 and a power switch 912, where the power supply interface 911 may include a first power supply interface connected to an external power supply, a second power supply interface connected to an internal device of the electronic device and supplying power to the electronic device system, and the like as required.
The power switch 912 is usually exposed outside the housing of the electronic device, so that after the power supply interface of the electronic device is connected to a power supply, for example, an external power supply or a battery is installed, a user presses the power switch 912 to supply power to the system of the electronic device, and then the operating system of the electronic device is guided to start according to the electronic device processing method provided by the application.
The motherboard 920 may also be referred to as a motherboard, a system board, or a motherboard, and may be disposed in a chassis of an electronic device, which is one of the most basic and important components of a microcomputer, and on which main circuit systems forming a computer, such as a BIOS chip, an I/O control chip, a keyboard and a panel control switch interface, an indicator light socket, an expansion slot, a power supply socket, and other elements are generally mounted.
The first controller 930 may be a control chip such as an embedded controller EC, in this application, the first controller 930 may be connected to the power switch 912 to control the power-on of the electronic device, or to complete other automation processing tasks of the electronic device, and specific functions may refer to but are not limited to the descriptions of the corresponding parts of the above embodiments, which are not described in detail herein.
The second controller 940 may be a BIOS chip, and is configured to boot an operating system of the electronic device, and the functions of the BIOS chip implemented in the electronic device are not described in detail in this application. In this embodiment, the second controller 940 and the first controller 930 can be in communication connection, so that when the first controller reads the flag bit, and if the first flag bit is read, system optimization parameter synchronization between the first controller and the second controller is implemented according to the first flag bit, the system optimization parameter can be used to support an operating system of the electronic device to run, and a specific implementation process may refer to descriptions of corresponding parts in the foregoing embodiments, which is not described herein again.
In conjunction with the description of the corresponding parts of the above method embodiments, the first controller 930 and the second controller 940 each have a corresponding storage space for storing the system parameters. In some embodiments, the first controller 930 may have a memory with a certain storage capacity, and the second controller 940 may also have a memory with a certain storage capacity, which is used to store system parameters of the electronic device, and when the second controller obtains the system optimization parameters in response to the system configuration instructions for the system hardware configuration, the system optimization parameters are written into corresponding parameter storage addresses of the memory of the second controller 940 for storage, so that when the first controller performs a system optimization parameter synchronization backup on the second controller, the system optimization parameters actively or passively read by the first controller from the second controller may be backed up to the memory of the first controller for storage.
Then, under the condition that the electronic equipment is started for the first time or the second controller has an abnormal event, the first controller can refresh the stored system optimization parameters to the corresponding parameter storage address of the memory of the second controller, so that the second controller can guide the operating system to be started quickly, the starting time of the electronic equipment is saved, and the user experience is improved.
In still other embodiments proposed in the present application, as shown in fig. 10, the electronic device may also configure corresponding memories for the above controllers, such as a first memory 950 configured for the first controller 930 and a second memory 960 configured for the second controller 940.
In conjunction with the above analysis, the second memory 960 may be used to store system optimization parameters obtained by the second controller 940 in response to system configuration instructions for system hardware configuration; or in case of an abnormal event of the second controller 940, receiving and storing the system optimization parameters of the first controller 930 for back-brushing; and the first memory 950 may be used to store the system optimization parameters that the first controller 930 synchronously backs up from the second memory 960 of the second controller 940, and in case of an abnormal event of the second controller 940, transmit the stored system optimization parameters to the second memory 960. The specific implementation process may refer to the description of the corresponding part of the above method embodiment, which is not described herein again.
For example, the first controller may be an EC, the second controller may be a BIOS chip, the first memory may be an Embedded ROM, the second memory may be a BIOS SPI ROM, and the like, but the present invention is not limited to the listed device categories, and regarding the communication processes between the devices, the communication processes may be determined according to the communication protocols followed by the devices, and the present application is not described in detail.
In practical application of the present application, the first memory may be further configured to store a first program, which is used to implement the electronic device processing method executed by the first controller, in the electronic device processing method, so that the first controller may call and load the first program to implement the electronic device processing method executed by the first controller; similarly, the second memory may be further configured to store a second program that implements the electronic device processing method executed by the second controller in the electronic device processing method, so that the second controller may call and load the second program to implement the electronic device processing method executed by the second controller, and the specific implementation process may refer to the description of the corresponding part of the foregoing embodiment.
It should be understood that the structure of the electronic device shown in fig. 9 and 10 does not constitute a limitation of the electronic device in the embodiment of the present application, and in practical applications, the electronic device may include more or less components than those shown in fig. 9 and 10, or may combine some components, such as at least one input device, e.g., a touch sensing unit, a keyboard, a mouse, a camera, a microphone, etc., for sensing a touch event on the touch display panel; the electronic device comprises at least one output device such as a display, a loudspeaker, a vibration mechanism, a lamp and various types of communication modules, for example, a WIFI module, a 5G/6G (fifth generation mobile communication network/sixth generation mobile communication network) module, a GPRS module and other first communication modules for realizing communication with external devices, and for example, a USB interface, a serial/parallel interface and other second communication modules for realizing internal communication of electronic devices.
Finally, it should be noted that, in the present specification, the embodiments are described in a progressive or parallel manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device and the electronic equipment disclosed by the embodiment correspond to the method disclosed by the embodiment, so that the description is relatively simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An electronic device processing method, the method comprising:
the first controller reads the flag bit; the first controller is connected with a power switch of the electronic equipment and controls the starting of the electronic equipment;
the first controller realizes system optimization parameter synchronization with the second controller according to the read first zone bit;
the second controller is used for guiding an operating system of the electronic equipment to start, and the system optimization parameters are used for supporting the operating system to run.
2. The method of claim 1, wherein the first controller synchronizes system optimization parameters with the second controller according to the read first flag bit, and the method comprises:
the first controller determines that the read first zone bit is a parameter loading zone bit, and refreshes the system optimization parameters stored in a backup mode to a corresponding storage space of the second controller;
the method further comprises the following steps:
the first controller responds to the input operation aiming at the power switch, generates a system power-on instruction and triggers the second controller to operate;
and the second controller guides the operating system of the electronic equipment to start by using the currently stored system parameters.
3. The method of claim 2, the second controller directing an operating system of the electronic device to boot using currently stored system parameters, comprising:
the second controller starts a safe starting item to perform safe starting detection on the electronic equipment;
the second controller guides an operating system of the electronic equipment to start by using the currently stored system parameters under the condition that the detection result is passed;
the second controller configures a safe starting synchronous zone bit based on the state change of the safe starting item from forbidden switching to starting;
the first controller realizes the synchronization of the system optimization parameters with the second controller according to the read first zone bit, and the method further comprises the following steps:
and the first controller updates the state of the safe starting item stored in the corresponding storage block to be in an opening state according to the read safe starting synchronous zone bit, and deletes the safe starting synchronous zone bit.
4. The method of any of claims 1-3, further comprising:
the second controller responds to a system configuration instruction aiming at system hardware configuration to obtain system optimization parameters;
the second controller configures a synchronization flag bit for the system optimization parameter and determines a corresponding parameter storage address of the system optimization parameter in the second controller;
the first controller realizes the synchronization of system optimization parameters with the second controller according to the reading of the first zone bit, and the synchronization comprises the following steps:
the first controller determines that the read first zone bit is the synchronous zone bit, and synchronously backs up system optimization parameters under corresponding parameter storage addresses in the second controller;
and the first controller deletes the synchronous flag bit.
5. The method of claim 4, further comprising:
the first controller detecting whether there is an abnormal event for the second controller, the abnormal event being an event that causes at least part of the system parameters stored by the second controller to be lost;
if so, the first controller refreshes the system optimization parameters of the synchronous backup to a corresponding parameter storage address of the second controller for storage, so that the second controller can guide the operating system of the electronic equipment to be successfully started according to the stored system parameters.
6. The method of claim 5, the first controller refreshing the system optimization parameters of the synchronized backup to the corresponding parameter storage address storage of the second controller, comprising:
the first controller compares the system optimization parameters of the synchronous backup with the system parameters currently possessed by the second controller;
and according to the comparison result, the first controller refreshes the inconsistent system optimization parameters to the corresponding parameter storage address of the second controller for storage.
7. The method of claim 4, further comprising:
the first controller detects whether a storage block for different system optimization parameters exists;
if not, creating a storage block aiming at different system optimization parameters in the storage space of the first controller;
if the first flag bit exists, the first controller determines that the read first flag bit is the synchronous flag bit, and synchronously backs up the system optimization parameters under the corresponding parameter storage address in the second controller, wherein the step of synchronously backing up the system optimization parameters comprises the following steps:
the first controller determines to read synchronous flag bits aiming at different system optimization parameters, and obtains the system optimization parameters under corresponding parameter storage addresses in the second controller;
and the first controller updates the obtained system optimization parameters to the corresponding storage blocks for storage.
8. An electronic device processing apparatus, the apparatus comprising:
the flag bit reading module is used for reading the flag bit; the flag reading module is deployed in a first controller, and the first controller is connected with a power switch of electronic equipment and controls the electronic equipment to be started;
the parameter synchronization processing module is used for realizing system optimization parameter synchronization between the first controller and the second controller according to the first zone bit under the condition that the first zone bit is read;
the second controller is used for guiding an operating system of the electronic equipment to start, and the system optimization parameters are used for supporting the operating system to run.
9. An electronic device, the electronic device comprising:
the power supply module comprises a power supply interface and a power switch;
a main board;
the first controller is connected with the power switch and controls the starting of the electronic equipment;
the first controller is used for reading the zone bits and realizing system optimization parameter synchronization with the second controller according to the read first zone bits; the second controller is used for guiding an operating system of the electronic equipment to start, and the system optimization parameters are used for supporting the operating system to run.
10. The electronic device of claim 9, further comprising a first memory and a second memory, wherein:
the second memory is used for storing system optimization parameters obtained by the second controller in response to system configuration instructions aiming at system hardware configuration; or receiving and storing the system optimization parameters of the first controller back-brushing under the condition that the second controller generates an abnormal event;
the first memory is used for storing the system optimization parameters synchronously backed up from the second memory of the second controller by the first controller, and the stored system optimization parameters are sent to the second memory when an abnormal event occurs in the second controller.
CN202110234397.0A 2021-03-03 2021-03-03 Electronic equipment processing method and device and electronic equipment Active CN113032023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110234397.0A CN113032023B (en) 2021-03-03 2021-03-03 Electronic equipment processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110234397.0A CN113032023B (en) 2021-03-03 2021-03-03 Electronic equipment processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113032023A true CN113032023A (en) 2021-06-25
CN113032023B CN113032023B (en) 2022-08-19

Family

ID=76466434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110234397.0A Active CN113032023B (en) 2021-03-03 2021-03-03 Electronic equipment processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113032023B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821265A (en) * 2021-11-22 2021-12-21 深圳华北工控软件技术有限公司 Operating system control method and device, computer mainboard and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598560A (en) * 2015-10-16 2017-04-26 广达电脑股份有限公司 iSCSI based bare metal os image deployment and diskless boot
CN108052353A (en) * 2017-12-13 2018-05-18 联想(北京)有限公司 A kind of method and apparatus for improving BIOS control module synchronizing speeds

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598560A (en) * 2015-10-16 2017-04-26 广达电脑股份有限公司 iSCSI based bare metal os image deployment and diskless boot
CN108052353A (en) * 2017-12-13 2018-05-18 联想(北京)有限公司 A kind of method and apparatus for improving BIOS control module synchronizing speeds

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821265A (en) * 2021-11-22 2021-12-21 深圳华北工控软件技术有限公司 Operating system control method and device, computer mainboard and readable storage medium

Also Published As

Publication number Publication date
CN113032023B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
KR100430468B1 (en) Initializing and restarting operating systems
TWI475402B (en) Remote backup system and remote backup method thereof
US9146839B2 (en) Method for pre-testing software compatibility and system thereof
JP3777136B2 (en) Computer device, data dead copy method, program, and computer device operating method
KR20120083130A (en) Computer system and method for updating program therein
KR20140066535A (en) Electronic apparatus, method for update firmware, computer-readable recording medium
WO2019156062A1 (en) Information processing system, information processing device, bios updating method for information processing device, and bios updating program for information processing device
CN112437914A (en) System recovery method and device
JP6102235B2 (en) BIOS recovery control device, recovery control method thereof, information processing device, and computer program
CN113032023B (en) Electronic equipment processing method and device and electronic equipment
CN111796882A (en) Electronic equipment system processing method and device and electronic equipment
JP4409681B2 (en) Information processing apparatus and memory control method for information processing apparatus
TWI764454B (en) Firmware corruption recovery
TWI808362B (en) Computer system and method capable of self-monitoring and restoring an operation of operating system
CN116450244A (en) Chip starting method, device, computer equipment and storage medium
CN115167903A (en) double-BMC Flash optimization upgrading method, device, equipment and medium
KR101850275B1 (en) Method for generating boot image for fast booting and image forming apparatus for performing the same, method for performing fast booting and image forming apparatus for performing the same
CN115129345A (en) Firmware upgrading method, device, equipment and storage medium
CN111752760B (en) Maintenance method, device and system of all-in-one machine and readable storage medium
CN112035171B (en) Factory setting restoration method and system based on UEFI firmware
KR100697086B1 (en) Mobile communication terminal enable to backup and its operating method
CN108287670B (en) Method for protecting data during system shutdown and BMC
CN111158734A (en) Seamless upgrading method, system and equipment for CPLD-FPGA
CN111427721B (en) Abnormality recovery 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
GR01 Patent grant
GR01 Patent grant