Data synchronization method and electronic device
By setting up synchronous data blocks in the basic input and output system and storing key data, the problem of BIOS data loss of electronic devices after processor replacement is solved, and the normal startup of the device and cost reduction is achieved.
Patent Information
- Application Number
- CN202110349088.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-31
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2041-03-31
AI Technical Summary
In the prior art, electronic devices need to develop BIOS for each processor series, resulting in high complexity and high cost. At the same time, BIOS data is easily lost after replacing the processor, resulting in the device being unable to start.
By setting up a synchronous data block in the basic input and output system and storing key data in the block, data synchronization after processor replacement is realized to ensure that key data is not lost, thus completing the startup of the device.
It effectively solves the problem of BIOS data loss after processor replacement, ensures that the electronic device can start normally, and reduces complexity and cost.
Smart Images

Figure CN113051578B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data synchronization method and electronic device. Background Art
[0002] Currently, some electronic devices such as the Qitian A850 need to support AMD's six series of processors (Raven, Pinnacle, Picasso, Matisse, Renoir, Vermeer). Each series of processors requires a unique Basic Input Output System (BIOS) kernel.
[0003] Based on this, traditional technology requires developing a BIOS for each series of processors, which means that the Qitian A850 needs to be paired with 6 motherboards, which is extremely complex and costly; but if all series of processors are merged into one BIOS, once the processor is replaced, the BIOS data will be lost, and the electronic device will not be able to start. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a data synchronization method and an electronic device, which can ensure that after any corresponding processor of a basic input and output system is replaced, its key data will not be lost, thereby completing the startup of the electronic device.
[0005] In a first aspect, an embodiment of the present application provides a data synchronization method, which includes:
[0006] Identify the processor corresponding to the basic input and output system in the electronic device;
[0007] Responding to the startup instruction to call the startup data of the corresponding access path of the processor in the basic input and output system, wherein the startup data is used to start the electronic device;
[0008] Determining whether to perform data synchronization on the startup data based on the calling information of the startup data;
[0009] When it is determined that the startup data needs to be synchronized, the startup data is synchronized based on the key data in the basic input / output system to complete the startup of the electronic device; wherein a synchronization data block is provided in the basic input / output system, and the key data is stored in the synchronization data block.
[0010] In a possible implementation manner, the determining whether to perform data synchronization on the startup data based on the calling information of the startup data includes:
[0011] Determine whether the startup data exists in the corresponding path of the processor in the basic input and output system;
[0012] If so, it is determined that there is no need to synchronize the startup data;
[0013] If not, it is determined that data synchronization needs to be performed on the startup data.
[0014] In a possible implementation manner, the determining whether to perform data synchronization on the startup data based on the calling information of the startup data further includes:
[0015] Determine whether the startup data existing in the corresponding path of the processor in the basic input and output system matches the key data;
[0016] If so, it is determined that there is no need to synchronize the startup data;
[0017] If not, it is determined that data synchronization needs to be performed on the startup data.
[0018] In a possible implementation, the basic input and output system is divided into a first processing block and a second processing block;
[0019] The first processing block and the second processing block correspond to access paths of different processors.
[0020] In a possible implementation manner, the synchronization data block is disposed in the first processing block, and the synchronization data block is located at a connection position between the first processing block and the second processing block.
[0021] In a possible implementation manner, when it is determined that the startup data needs to be synchronized, the synchronization of the startup data based on the key data in the synchronization data block in the basic input and output system includes:
[0022] If the key data exists in the synchronization data block, reading the key data in the synchronization data block;
[0023] The startup data is synchronized according to the key data to complete data synchronization of the startup data.
[0024] In a possible implementation manner, when it is determined that data synchronization is not required for the startup data, the method further includes:
[0025] If the key data does not exist in the synchronization data block or needs to be synchronized, the startup data is stored in the synchronization data block to synchronize the key data.
[0026] In a possible implementation, the data synchronization method further includes:
[0027] After the modification instruction is detected, determining whether the key data is changed;
[0028] If so, the changed key data is stored in the synchronization data block.
[0029] In a second aspect, an embodiment of the present application further provides an electronic device, including:
[0030] An identification module configured to identify a processor corresponding to a basic input and output system in an electronic device;
[0031] A calling module configured to respond to a startup instruction to call startup data of a corresponding access path of the processor in the basic input and output system, wherein the startup data is used to start the electronic device;
[0032] a determination module configured to determine whether to perform data synchronization on the startup data based on the calling information of the startup data;
[0033] The first synchronization module is configured to synchronize the startup data based on key data in the basic input / output system to complete the startup of the electronic device when it is determined that the startup data needs to be synchronized, wherein a synchronization data block is provided in the basic input / output system, and the key data is stored in the synchronization data block.
[0034] In a third aspect, an embodiment of the present application further provides an electronic device, including a memory and a processor, wherein an executable program is stored in the memory, and the processor executes the executable program to implement the following steps:
[0035] Identify the processor corresponding to the basic input and output system in the electronic device;
[0036] Responding to the startup instruction to call the startup data of the corresponding access path of the processor in the basic input and output system, wherein the startup data is used to start the electronic device;
[0037] Determining whether to perform data synchronization on the startup data based on the calling information of the startup data;
[0038] When it is determined that the startup data needs to be synchronized, the startup data is synchronized based on the key data in the basic input / output system to complete the startup of the electronic device; wherein a synchronization data block is provided in the basic input / output system, and the key data is stored in the synchronization data block.
[0039] The embodiment of the present application sets a synchronization data block in the basic input and output system, and stores key data in the synchronization data block to ensure that even if the processor corresponding to the basic input and output system is replaced, the key data can be synchronized to the new processor, that is, it can be ensured that the key data will not be lost, so as to use the new processor to complete the startup of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0041] Figure 1 A flow chart of a data synchronization method provided by the present application is shown;
[0042] Figure 2 A flow chart showing whether to synchronize the startup data based on the calling information of the startup data in a data synchronization method provided by the present application is shown;
[0043] Figure 3 A flowchart showing whether to synchronize the startup data based on the calling information of the startup data in another data synchronization method provided by the present application is shown;
[0044] Figure 4 A schematic diagram of the structure of a basic input and output system provided by the present application is shown;
[0045] Figure 5 A partial structural diagram of a basic input and output system provided by the present application is shown;
[0046] Figure 6 A flowchart of another data synchronization method provided by the present application is shown;
[0047] Figure 7 A schematic diagram of the structure of an electronic device provided by the present application is shown;
[0048] Figure 8 A structural schematic diagram of another electronic device provided by the present application is shown. DETAILED DESCRIPTION
[0049] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0050] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of the embodiments. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0051] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0052] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0053] It should also be understood that, although the present application has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present application that have the features described in the claims and are therefore within the scope of protection defined thereby.
[0054] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0055] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0056] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0057] The data synchronization method provided in the embodiment of the present application can ensure that after any corresponding processor of the basic input and output system is replaced, its key data will not be lost, thereby completing the startup of the electronic device. To facilitate the understanding of the present application, a data synchronization method provided in the present application is first introduced in detail.
[0058] Figure 1 A flowchart of a data synchronization method provided in an embodiment of the present application, wherein the specific steps include:
[0059] S101, identifying a processor corresponding to a basic input and output system in an electronic device.
[0060] Here, the embodiments of the present application are applied in scenarios where electronic devices such as the Qitian A850 need to support AMD's six series of processors (Raven, Pinnacle, Picasso, Matisse, Renoir, Vermeer).
[0061] Specifically, the processor corresponding to the basic input and output system in the current electronic device is first identified so as to obtain data corresponding to the processor for a series of processing.
[0062] S102, responding to the startup instruction to call the startup data of the corresponding access path of the processor in the basic input and output system, wherein the startup data is used to start the electronic device.
[0063] The startup instruction may be generated after the user performs a specific operation through an input / output device, and is used to instruct the startup of the electronic device.
[0064] After the startup instruction is obtained, the startup instruction is responded to, specifically by calling the startup data of the corresponding access path of the processor to start the electronic device using the startup data. Here, each series of processors corresponds to a unique access path.
[0065] It is worth noting that although the basic input and output system in the embodiment of the present application can support 6 series of processors, the access path corresponding to each processor is different.
[0066] S103: Determine whether to perform data synchronization on the startup data based on the calling information of the startup data.
[0067] In the specific implementation, although the call action is triggered based on the startup instruction, it cannot be ensured that the startup data can be obtained. Therefore, after executing the call action, the call information of the startup data is checked. The call information includes whether the startup data is obtained, the specific parameters of the startup data, the creation time of the startup data, etc.
[0068] Further, based on the calling information of the startup data, it is determined whether to perform data synchronization on the startup data. Specifically, when the startup data is not obtained or the obtained startup data is historical data, it is determined to perform data synchronization on the startup data.
[0069] In a specific implementation, there is a situation where the processor in the basic input and output system is replaced. For example, the processor of series A is damaged and cannot work. At this time, the processor of series B is installed in the basic input and output system of the electronic device to start the electronic device based on the processor of series B. However, in the above case, there is no startup data on the corresponding access path of the processor of series B. At this time, according to Figure 2The method steps shown are to determine whether to perform data synchronization on the startup data.
[0070] Specifically, Figure 2 A flow chart of a method for determining whether to perform data synchronization on startup data based on calling information of the startup data is shown, including S201-S203.
[0071] S201, determining whether there is startup data in a corresponding path of a processor in a basic input / output system.
[0072] S202: If yes, it is determined that there is no need to synchronize the startup data.
[0073] S203: If not, it is determined that the startup data needs to be synchronized.
[0074] After obtaining the startup instruction, check whether there is startup data in the corresponding path of the processor in the current basic input and output system based on the startup instruction. If there is startup data, that is, there is a processor in the current basic input and output system and the processor is the original processor, it is determined that there is no need to synchronize the startup data; if there is no startup data, that is, there is no processor in the current basic input and output system or the existing processor is different from the system to which the original processor belongs, it is determined that there is a need to synchronize the startup data.
[0075] Furthermore, there is a case where there is startup data on the access path corresponding to the processor of series B. For example, before using the processor of series A, the processor of series B is used to start the electronic device. Here, even if the startup data on the access path corresponding to the processor of series B can be obtained, it is still necessary to follow Figure 3 The method steps shown are to determine whether to perform data synchronization on the startup data.
[0076] Specifically, Figure 3 The method steps shown are used to determine whether to synchronize the startup data based on the calling information of the startup data, and specifically include S301-S303.
[0077] S301, determining whether the startup data existing in the corresponding path of the processor in the basic input and output system matches the key data.
[0078] S302: If yes, it is determined that there is no need to synchronize the startup data.
[0079] S303: If not, it is determined that the startup data needs to be synchronized.
[0080] Specifically, after obtaining the startup data, the calling information of the startup data is extracted. When the calling information contains specific parameters of the startup data, the specific parameters of the startup data are compared with the specific parameters of the key data. If they are the same, that is, it is determined that the startup data existing in the corresponding path of the processor in the basic input and output system matches the key data, then it is determined that there is no need to synchronize the startup data; if they are different, that is, it is determined that the startup data existing in the corresponding path of the processor in the basic input and output system does not match the key data, then it is determined that there is a need to synchronize the startup data.
[0081] Of course, when the call information includes the creation time of the startup data, the time interval between the creation time of the startup data and the creation time of the key data can also be determined, and then it can be determined whether the time interval is less than or equal to the preset interval. If the time interval is less than or equal to the preset interval, it is determined that the startup data existing in the corresponding path of the processor in the basic input and output system matches the key data, and it is determined that there is no need to synchronize the startup data; if the time interval is greater than the preset interval, that is, it is determined that the startup data existing in the corresponding path of the processor in the basic input and output system does not match the key data, it is determined that there is a need to synchronize the startup data.
[0082] S104, when it is determined that the startup data needs to be synchronized, synchronize the startup data based on the key data in the basic input and output system to complete the startup of the electronic device; wherein the basic input and output system is provided with a synchronization data block, and the key data is stored in the synchronization data block.
[0083] When it is determined that the startup data needs to be synchronized, the startup data is synchronized based on the key data in the synchronization data block of the basic input and output system. Figure 4 The structural diagram of the basic input and output system is shown in FIG. Figure 4 As shown, the basic input / output system in the embodiment of the present application is divided into a first processing block and a second processing block; considering that different processors have different addressing capabilities, for example, some processors have a maximum addressing of 16MB, that is, they can scan the platform security processor directory table from 0 to 16MB, and they can only be used with a 16MB ROM chip in the basic input / output system; some processors have a maximum addressing of 32MB, that is, they can scan the platform security processor directory table from 0 to 32MB, and they can be used with a 32MB ROM chip in the basic input / output system, therefore, the first processing block and the second processing block are set to correspond to the access paths of different processors. In addition, in the embodiment of the present application, the maximum addressing of the first processing block is limited to 16MB, and the maximum addressing of the second processing block is limited to 32MB, but those skilled in the art should know that Figure 4 This is just one embodiment and is not intended to be limiting.
[0084] Furthermore, the basic input and output system is also provided with a synchronization data block, which is located at the connection position between the first processing block and the second processing block, and the synchronization data block is arranged in the first processing block to ensure that the access paths in the first processing block and the second processing block can be synchronized to the key data in the synchronization data block. For details, please refer to Figure 5 The key data stored in the synchronization data block include basic input and output system settings, basic input and output system passwords, Windows activation codes (such as OA2 and OA3), management interfaces for computer system information, event logs, and factory settings.
[0085] Specifically, when determining to synchronize the startup data based on the key data in the synchronization data block in the basic input / output system, if the key data exists in the synchronization data block, the key data in the synchronization data block is read, and the startup data is synchronized according to the key data to complete the data synchronization of the startup data, thereby enabling the electronic device to be started based on the key data.
[0086] If the key data does not exist in the synchronization data block or needs to be synchronized, for example, when the electronic device is started for the first time after being manufactured, the key data does not exist in the synchronization data block. Therefore, the startup data of the current processor is stored in the synchronization data block to synchronize the key data, that is, the startup data is used as the key data.
[0087] In addition, during the process of starting the electronic device, there is also a situation where the user modifies key data. Figure 6 The method steps shown perform data synchronization, specifically including S601 and S602.
[0088] S601, after detecting the modification instruction, determining whether the key data has changed.
[0089] S602: If yes, store the changed key data in the synchronization data block.
[0090] During the startup process, the electronic device can monitor whether a modification instruction for key data is received. After monitoring and executing the modification instruction, the modified key data is compared with the key data before the modification to determine whether the key data has changed.
[0091] When the key data changes, the changed key data is stored in the synchronization data block to ensure that the key data in the synchronization data block is the latest key data, thereby ensuring that the electronic device can be started according to the user's needs.
[0092] Based on the same inventive concept, the second aspect of the present application also provides an electronic device corresponding to the data synchronization method. Since the principle of solving the problem by the electronic device in the present application is similar to the above-mentioned data synchronization method of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0093] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present application is shown, specifically comprising:
[0094] An identification module 701 is configured to identify a processor corresponding to a basic input and output system in an electronic device;
[0095] A calling module 702, configured to respond to a startup instruction to call startup data of a corresponding access path of the processor in the basic input and output system, wherein the startup data is used to start the electronic device;
[0096] A determination module 703 is configured to determine whether to perform data synchronization on the startup data based on the calling information of the startup data;
[0097] The first synchronization module 704 is configured to synchronize the startup data based on key data in the basic input / output system to complete the startup of the electronic device when it is determined that the startup data needs to be synchronized, wherein a synchronization data block is provided in the basic input / output system, and the key data is stored in the synchronization data block.
[0098] In yet another embodiment, the determination module 703 is specifically configured as follows:
[0099] Determine whether the startup data exists in the corresponding path of the processor in the basic input and output system;
[0100] If so, it is determined that there is no need to synchronize the startup data;
[0101] If not, it is determined that data synchronization needs to be performed on the startup data.
[0102] In yet another embodiment, the determination module 703 is further specifically configured to:
[0103] Determine whether the startup data existing in the corresponding path of the processor in the basic input and output system matches the key data;
[0104] If so, it is determined that there is no need to synchronize the startup data;
[0105] If not, it is determined that data synchronization needs to be performed on the startup data.
[0106] In yet another embodiment, when it is determined that data synchronization needs to be performed on the startup data, the first synchronization module 704 is specifically configured as follows:
[0107] If the key data exists in the synchronization data block, reading the key data in the synchronization data block;
[0108] The startup data is synchronized according to the key data to complete data synchronization of the startup data.
[0109] In yet another embodiment, when it is determined that the startup data does not need to be synchronized, the electronic device further includes a second synchronization module 705, which is configured to:
[0110] If the key data does not exist in the synchronization data block or needs to be synchronized, the startup data is stored in the synchronization data block to synchronize the key data.
[0111] In yet another embodiment, the electronic device further includes a third synchronization module 706, which is configured to:
[0112] After the modification instruction is detected, determining whether the key data is changed;
[0113] If so, the changed key data is stored in the synchronization data block.
[0114] The embodiment of the present application sets a synchronization data block in the basic input and output system, and stores key data in the synchronization data block to ensure that even if the processor corresponding to the basic input and output system is replaced, the key data can be synchronized to the new processor, that is, it can be ensured that the key data will not be lost, so as to use the new processor to complete the startup of the electronic device.
[0115] An embodiment of the present application provides an electronic device. The structural diagram of the electronic device can be as follows: Figure 8 As shown, at least a memory 801 and a processor 802 are included, the memory 801 stores a computer program, and the processor 802 implements the method provided by any embodiment of the present disclosure when executing the computer program on the memory 801. Exemplarily, the steps of the electronic device computer program are as follows S11 to S14:
[0116] S11, identifying a processor corresponding to a basic input and output system in an electronic device;
[0117] S12, responding to the startup instruction to call the startup data of the corresponding access path of the processor in the basic input and output system, wherein the startup data is used to start the electronic device;
[0118] S13, determining whether to perform data synchronization on the startup data based on the calling information of the startup data;
[0119] S14, when it is determined that the startup data needs to be synchronized, synchronize the startup data based on the key data in the basic input / output system to complete the startup of the electronic device; wherein a synchronization data block is provided in the basic input / output system, and the key data is stored in the synchronization data block.
[0120] When the processor determines whether to synchronize the startup data based on the calling information of the startup data stored in the execution memory, the processor also executes the following computer program: determining whether the startup data exists in the corresponding path of the processor in the basic input and output system; if so, determining that there is no need to synchronize the startup data; if not, determining that the startup data needs to be synchronized.
[0121] When the processor determines whether to perform data synchronization on the startup data based on the call information of the startup data stored in the execution memory, it also executes the following computer program: determining whether the startup data existing in the corresponding path of the processor in the basic input and output system matches the key data; if so, determining that there is no need to perform data synchronization on the startup data; if not, determining that data synchronization on the startup data is required.
[0122] When it is determined that data synchronization of the startup data is required, the processor also executes the following computer program when synchronizing the startup data based on the key data in the synchronization data block in the basic input and output system stored in the execution memory: if the key data exists in the synchronization data block, read the key data in the synchronization data block; synchronize the startup data according to the key data to complete the data synchronization of the startup data.
[0123] When it is determined that there is no need to synchronize the startup data, the processor, when executing the data synchronization method stored in the memory, also executes the following computer program: if the key data in the synchronization data block does not exist or needs to be synchronized, the startup data is stored in the synchronization data block to synchronize the key data.
[0124] When executing the data synchronization method stored in the memory, the processor also executes the following computer program: after detecting the modification instruction, determining whether the key data has changed; if so, storing the changed key data in the synchronization data block.
[0125] The embodiment of the present application sets a synchronization data block in the basic input and output system, and stores key data in the synchronization data block to ensure that even if the processor corresponding to the basic input and output system is replaced, the key data can be synchronized to the new processor, that is, it can be ensured that the key data will not be lost, so as to use the new processor to complete the startup of the electronic device.
[0126] Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, various media that can store program codes, such as a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk. Optionally, in this embodiment, the processor executes the method steps recorded in the above-mentioned embodiment according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment can refer to the examples described in the above-mentioned embodiment and the optional implementation mode, and this embodiment is not repeated here. Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented with a general computing device, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. Optionally, they can be implemented with executable program codes of computing devices, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from here, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps in them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.
[0127] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application with equivalent elements, modifications, omissions, combinations (e.g., various embodiments intersecting schemes), adaptations or changes. The elements in the claims will be interpreted broadly based on the language adopted in the claims, and are not limited to the examples described in this specification or during the implementation of the application, and the examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered as examples only, and the true scope and spirit are indicated by the following claims and the full scope of their equivalents.
[0128] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the application. This should not be interpreted as an intention that a disclosed feature that does not require protection is necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present application should be determined with reference to the attached claims and the full scope of equivalent forms granted by these claims.
[0129] Multiple embodiments of the present application are described in detail above, but the present application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present application, and these variations and modifications should all fall within the scope of protection required by the present application.
Claims
1. A data synchronization method, comprising: Identify the processor corresponding to the basic input and output system in the electronic device; Responding to the startup instruction to call the startup data of the access path corresponding to the processor in the basic input and output system, wherein the startup data is used to start the electronic device; Determining whether to perform data synchronization on the startup data based on the calling information of the startup data; When it is determined that the startup data needs to be synchronized, the startup data is synchronized based on the key data in the basic input and output system to complete the startup of the electronic device; wherein the basic input and output system is provided with a synchronization data block, and the key data is stored in the synchronization data block; The basic input and output system includes a first processing block and a second processing block; Wherein, the first processing block and the second processing block correspond to access paths of different processors; The synchronization data block enables the access paths within the first processing block and the second processing block to be synchronized to the key data within the synchronization data block.
2. The data synchronization method according to claim 1, wherein determining whether to synchronize the startup data based on the calling information of the startup data comprises: Determine whether the startup data exists in the access path corresponding to the processor in the basic input and output system; If so, it is determined that there is no need to synchronize the startup data; If not, it is determined that data synchronization needs to be performed on the startup data.
3. The data synchronization method according to claim 1, wherein the determining whether to synchronize the startup data based on the calling information of the startup data further comprises: Determine whether the startup data existing in the access path corresponding to the processor in the basic input and output system matches the key data; If so, it is determined that there is no need to synchronize the startup data; If not, it is determined that data synchronization needs to be performed on the startup data.
4. The data synchronization method according to claim 2 or 3, wherein when it is determined that the startup data needs to be synchronized, the step of synchronizing the startup data based on the key data in the synchronization data block in the basic input / output system comprises: If the key data exists in the synchronization data block, reading the key data in the synchronization data block; The startup data is synchronized according to the key data to complete data synchronization of the startup data.
5. The data synchronization method according to claim 2 or 3, when it is determined that the startup data does not need to be synchronized, the method further comprises: If the key data does not exist in the synchronization data block or needs to be synchronized, the startup data is stored in the synchronization data block to synchronize the key data.
6. The data synchronization method according to claim 1, further comprising: After the modification instruction is detected, determining whether the key data is changed; If so, the changed key data is stored in the synchronization data block.
7. An electronic device, comprising: An identification module configured to identify a processor corresponding to a basic input and output system in an electronic device; a calling module configured to respond to a startup instruction to call startup data of an access path corresponding to the processor in the basic input and output system, wherein the startup data is used to start the electronic device; a determination module configured to determine whether to perform data synchronization on the startup data based on the calling information of the startup data; A first synchronization module, configured to synchronize the startup data based on key data in the basic input and output system to complete the startup of the electronic device when it is determined that the startup data needs to be synchronized, wherein the basic input and output system is provided with a synchronization data block, and the key data is stored in the synchronization data block; The basic input and output system includes a first processing block and a second processing block; Wherein, the first processing block and the second processing block correspond to access paths of different processors; The synchronization data block enables the access paths within the first processing block and the second processing block to be synchronized to the key data within the synchronization data block.
8. An electronic device, comprising a memory and a processor, wherein the memory stores an executable program, and the processor executes the executable program to implement the following steps: Identify the processor corresponding to the basic input and output system in the electronic device; Responding to the startup instruction to call the startup data of the access path corresponding to the processor in the basic input and output system, wherein: The startup data is used to start the electronic device; Determining whether to perform data synchronization on the startup data based on the calling information of the startup data; When it is determined that the startup data needs to be synchronized, the startup data is synchronized based on the key data in the basic input and output system to complete the startup of the electronic device; wherein the basic input and output system is provided with a synchronization data block, and the key data is stored in the synchronization data block; The basic input and output system includes a first processing block and a second processing block; Wherein, the first processing block and the second processing block correspond to access paths of different processors; The synchronization data block enables the access paths within the first processing block and the second processing block to be synchronized to the key data within the synchronization data block.
Citation Information
Patent Citations
Security module authentication system
US20190340365A1