Method and device for shortening startup time of system, equipment and storage medium
By copying and comparing UEFI Variable data in memory and performing differential backup and storage, the system boot time problem caused by insufficient UEFI Variable space is solved, and more efficient space utilization and boot speed is achieved.
Patent Information
- Application Number
- CN202411471536.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-03-21
AI Technical Summary
The prior art causes a significant increase in the system boot time when the UEFI Variable space is insufficient, especially when the Reclaim mechanism is triggered, the boot time will increase by 16 seconds.
By copying the original set data in memory, when the data length is greater than the preset length, a differential backup is performed to reduce the space required for updates. The specific steps include copying the data, comparing the differences, recording the differential parts and performing backup and storage.
This method greatly reduces the space required for UEFI Variable updates, improves space utilization, avoids duplicate data footprint, and eliminates the additional boot time caused by the Reclaim mechanism.
Smart Images

Figure CN119668707A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and more particularly to a method, apparatus, device, and storage medium for shortening system startup time based on conditional differential backup when variable space is insufficient. Background Art
[0002] In order to store user and system settings, a Unified Extensible Firmware Interface (UEFI) variable space at 0x40000 is planned in the Serial Peripheral Interface (SPI) Read-Only Memory (ROM) to store these settings. In the design specification of the Basic Input Output System (BIOS), when the remaining space of this space is less than 0x10000, the BIOS will execute the reclaim procedure. The reclaim procedure is as follows:
[0003] Step 1: Copy all the currently valid data and settings in UEFI Variable and move them to another backup UEFI Variable space 0x40000;
[0004] Step 2: Clear the 0x40000 bit of the UEFI Variable space;
[0005] Step 3: Copy and move all the data and settings of the backed-up UEFI Variable space to the UEFIVariable space again;
[0006] Figure 1 The following is a schematic diagram of the existing Reclaim process: Figure 1As shown, when a piece of data needs to be modified or updated, the original data will be set as invalid data, and then a copy of the original data will be made and the part to be modified or updated will be updated, and then another complete copy of the data will be stored in the UEFI Variable. For example, the original data length of the memory configuration (memoryconfig) is 0xD255 bits, and only two bits are updated this time. The existing design sets the memoryconfig as invalid data, and then another copy of the updated 2-bit memory config is made and the 0xD255 bits used for this update are stored. It can be seen that in the prior art, when updating 2 bits of data from 01 02 to 0203, 0xD255 bits are required.
[0007] The entire Reclaim process will take about 16 seconds to complete.
[0008] If the UEFI Variable space is increased from 0x40000 to 0x50000 to store more data, then the backup UEFI Variable space also needs to be increased from 0x40000 to 0x50000, and the Reclaim time will also increase from 16 seconds to about 20 seconds.
[0009] The current system defaults to mainly occupying the UEFI Variable space and the space occupied by other data and settings as shown below, with approximately 0x13000 bits used:
[0010]
[0011] In order to prevent system damage or boot failure caused by incorrect settings, there will be two copies of data in the UEFI Variable space, so the actual space occupied is 0x26000 bytes.
[0012] The condition that triggers BIOS to execute Reclaim is 0x40000–0x10000=0x30000, that is, when the used UEFI Variable space reaches 0x30000, the Reclaim mechanism will be triggered. Therefore, there is actually only about 0x30000–0x26000=0xA000 bits of space left to be used without triggering Reclaim and affecting the boot time.
[0013] The above figures do not include the UEFI variable space used by the OEM, so in fact, the available space is much smaller than 0xA000. This can easily cause the Reclaim mechanism to trigger an extra 16 seconds of boot time when the system is restarted or the user changes a setting in the BIOS setup (Setup). Summary of the invention
[0014] In view of this, the embodiments of the present application provide a device, an electronic device, and a storage medium, which can at least solve the aforementioned technical problems.
[0015] According to a first aspect of an embodiment of the present application, a method for shortening system startup time is provided, the method comprising:
[0016] When the length of the original setting data is greater than the preset length, the original setting data is copied to the memory;
[0017] Compare the data to be modified with the original setting data in the memory, determine the difference between the data to be modified and the original setting data in the memory, and record it;
[0018] Confirm the version number of the current original setting data;
[0019] Create differential backup data for the data to be modified and perform backup storage.
[0020] In some exemplary embodiments, when the length of the original set data is greater than a preset length, copying the original data to the memory includes:
[0021] When the original setting data length is greater than 0x1000 bits, the original valid variable data is captured from the memory and copied to the internal memory.
[0022] In some exemplary embodiments, determining the difference between the data to be modified and the original setting data in the memory includes:
[0023] Determine the data address, data format, data length, modified data content, and check value of all the differences between the data to be modified and the original set data in the memory.
[0024] In some exemplary embodiments, the data address is recorded via 2 bits; the data format is recorded via 1 bit; the length of the data is recorded via 2 bits; the modified data content is a dynamic length; and the check value is the original set data material plus the check value of the data to be modified, recorded via 4 bits.
[0025] In some exemplary embodiments, the method further comprises:
[0026] Confirm whether the data length of the differential backup data currently being created is greater than a first preset percentage of the original data;
[0027] Confirm and calculate whether the total data length of all newly created differential backup data is greater than a second preset percentage of the original data.
[0028] In some exemplary embodiments, the step of creating differential backup data of the data to be modified and performing backup storage includes:
[0029] Differential backup data is created. When the data length of the currently created differential backup data is not greater than a first preset percentage of the original data, and the sum of the data lengths of all newly created differential backup data is not greater than a second preset percentage of the original data, the newly created differential backup data is backed up and stored.
[0030] In some exemplary embodiments, the differential backup data includes: the version number of the current original setting data, as well as the data address, data format, data length, modified data content, and checksum value of the differential backup data of the difference between the data to be modified and the original setting data in the memory.
[0031] According to a second aspect of an embodiment of the present application, a device for shortening system startup time is provided, the device comprising:
[0032] A copy unit, used for copying the original setting data to the memory when the length of the original setting data is greater than the preset length;
[0033] A comparison unit is used to compare the data to be modified with the original set data in the memory, determine the difference between the data to be modified and the original set data in the memory, and record the difference;
[0034] A confirmation unit, used to confirm the version number of the current original setting data;
[0035] The data establishment unit is used to establish differential backup data of the data to be modified and perform backup storage.
[0036] According to a third aspect of an embodiment of the present application, there is provided an electronic device comprising a processor and a memory for storing processor executable instructions, wherein the processor is configured to execute the steps of the above-mentioned method for shortening the system startup time when calling the executable instructions in the memory.
[0037] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for shortening the system startup time are implemented.
[0038] The method for shortening the system boot time based on conditional differential backup proposed in the embodiment of the present application only requires 11 bits to complete the record and save the update by updating two bits 01 02 to 02 03, which greatly reduces the space required for UEFI Variable update, improves the space utilization of UEFI Variable, avoids the same and repeated data occupying limited space, and further eliminates the additional 16 seconds of boot time caused by the frequent Reclaim of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 This is a schematic diagram of the existing Reclaim process;
[0041] Figure 2 A schematic diagram showing a flow chart of a method for shortening system startup time according to an embodiment of the present application;
[0042] Figure 3 A schematic diagram of a differential backup method of data when data is modified once in an embodiment of the present application is shown;
[0043] Figure 4 A schematic diagram of a data differential backup method when modifying two different data in an embodiment of the present application is shown;
[0044] Figure 5 A schematic diagram of a differential backup method of data when data is modified multiple times in an embodiment of the present application is shown;
[0045] Figure 6 A schematic diagram showing the composition structure of a device for shortening system startup time according to an embodiment of the present application is shown;
[0046] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0048] The essence of the technical solution of the embodiment of the present application is explained in detail below with reference to the accompanying drawings.
[0049] Figure 2 A flow chart of a method for shortening system startup time according to an embodiment of the present application is shown. Figure 2 As shown, the method for shortening the system boot time based on conditional differential backup when the variable space is insufficient in the embodiment of the present application includes the following steps:
[0050] Step 201: When the length of the original setting data is greater than the preset length, the original setting data is copied to the memory;
[0051] In the embodiment of the present application, in order to effectively record and save data, only the data with a data length greater than 0x1000 bits is differentially backed up and recorded. When the length of the original set data is greater than the preset length, the original data is copied to the memory, including: when the length of the original set data is greater than 0x1000 bits, the original valid variable data is captured from the memory and copied to the memory, specifically, the original valid Variable data is captured from the SPI ROM and copied to the memory.
[0052] Step 202: Compare the data to be modified with the original setting data in the memory, determine the difference between the data to be modified and the original setting data in the memory, and record the difference;
[0053] In the embodiment of the present application, the determination of the difference between the data to be modified and the original setting data in the memory includes: determining the data address data offset, data format data type, data length data length, modified data content data, and checksum value checksum of all the difference parts between the data to be modified and the original setting data in the memory.
[0054] Among them, the data offset is the offset address of the modified data, recorded by 2 bits; the datatype is byte / word / dwoad / buffer, recorded by 1 bit; the data length is recorded by 2 bits; the actual data modified by the data is the dynamic length; the checksum is the original set Variable data plus the check value of the data to be modified, recorded by 4 bits.
[0055] The data format of the embodiment of the present application is as follows:
[0056] data offset+data type+data length+data+checksum.
[0057] Step 203: confirm the version number of the current original setting data variable data;
[0058] Step 204: Create differential backup data of the data to be modified;
[0059] The differential backup data includes: the version number of the current original setting data, as well as the data address, data format, data length, modified data content, and checksum of the difference between the data to be modified and the original setting data in the memory.
[0060] Figure 3 Schematic diagram of a differential backup method for data when data is modified once in an embodiment of the present application, such as Figure 3 As shown, the original data length is 0xD225 bits. The original data will always exist and remain valid. This time, two bits are updated: 01 02 is updated to 02 03. The differential backup data Memory Config_v1 is added, and its data format is as follows:
[0061] offset+data type+data length+02 03+checksum
[0062] The length of the complete differential backup data Memory Config_v1 is 11 bits, of which offset uses 2 bits, data type uses 1 bit, data length uses 2 bits, data uses 2 bits, and checksum uses 4 bits. This update only uses 11 bits.
[0063] Figure 4 Schematic diagram of a differential backup method of data when modifying two different data in an embodiment of the present application, such as Figure 4As shown, the original data length is 0xD225 bits. The original data will always exist and remain valid. This time, the data of 4 different offset addresses in the MemoryConfig data are updated: 0102 is changed to 02 03; 03 04 is changed to 0405. The differential backup data Memory Config_v1 is added, and its data format is as follows:
[0064] offset+data type+data length+02 03+checksum
[0065] offset+data type+data length+04 05+checksum
[0066] The length of the complete differential backup data Memory Config_v1 is 22 bits, of which the offset uses 2 bits, the data type uses 1 bit, the data length uses 2 bits, the data uses 2 bits, and the checksum uses 4 bits. This update only uses 22 bits.
[0067] Figure 5 Schematic diagram of a differential backup method for data when data is modified multiple times in an embodiment of the present application, such as Figure 5 As shown in the figure, after modifying the MemoryConfig data multiple times, different version numbers will be added to record and save each modification.
[0068] like Figure 5 As shown, the original data length is 0xD225 bits. The original data will always exist and remain valid. The data of 6 different offset addresses in the MemoryConfig data are updated three times: 0102 is changed to 02 03, data1 is changed to data2, and data3 is changed to data4.
[0069] Added differential backup data Memory Config_v1, the data format is as follows:
[0070] offset+data type+data length+02 03+checksum
[0071] Added differential backup data Memory Config_v2, the data format is as follows:
[0072] offset+data type+data length+data2+checksum
[0073] Added differential backup data Memory Config_v3, the data format is as follows:
[0074] offset+data type+data length+data4+checksum
[0075] The length of the complete differential backup data Memory Config_v1 is 22 bits, of which the offset uses 2 bits, the data type uses 1 bit, the data length uses 2 bits, the data uses 2 bits, and the checksum uses 4 bits. This update only uses 33 bits.
[0076] In the embodiment of the present application, the method further includes: when the data length of the currently established differential backup data is not greater than a first preset percentage of the original data, and the sum of the data lengths of all newly established differential backup data is not greater than a second preset percentage of the original data, backing up and storing the newly added differential backup data. Specifically:
[0077] Step 205: confirm whether the data length of the differential backup data currently being created is greater than a first preset percentage of the original data; when the data length of the differential backup data currently being created is not greater than the first preset percentage of the original data, execute step 206; when the data length of the differential backup data currently being created is greater than the first preset percentage of the original data, execute step 208;
[0078] The first preset percentage can be set according to actual conditions. In the embodiment of the present application, the first preset percentage is 50%. When the data length of the differential backup data is greater than 50% of the original data, it is meaningless to use the differential method to save the space of the SPI ROM. However, it is not limited to this, and those skilled in the art can set it according to actual conditions.
[0079] Step 206: confirm and calculate whether the sum of the data lengths of all newly created differential backup data is greater than a second preset percentage of the original data; when the sum of the data lengths of all newly created differential backup data is not greater than the second preset percentage of the original data, execute step 207; when the sum of the data lengths of all newly created differential backup data is greater than the second preset percentage of the original data, execute step 208;
[0080] The second preset percentage can be set according to actual conditions. In the embodiment of the present application, the second preset percentage is 50%. When the data length of the differential backup data is greater than 50% of the original data, it is meaningless to save the space of the SPI ROM by using the differential method. However, it is not limited to this, and those skilled in the art can set it according to actual conditions.
[0081] Step 207: back up and store the differential backup data in UEFI Variable.
[0082] Step 208: Adopt the original design.
[0083] In the embodiment of the present application, after determining the difference between the data to be modified and the original setting data in the memory in step 202, the comparison steps from step 205 to step 206 are performed. When the data length of the currently established differential backup data is not greater than the first preset percentage of the original data, and the sum of the data lengths of all newly established differential backup data is not greater than the second preset percentage of the original data, steps 203, 204, and 207 are performed. When the data length of the currently established differential backup data is greater than the first preset percentage of the original data, or the sum of the data lengths of all newly established differential backup data is greater than the second preset percentage of the original data, all accumulated differential backup data are integrated and merged with the original data into a new and latest original data.
[0084] Without violating the overall inventive concept of the present invention, those skilled in the art may adjust the execution order of the above steps according to actual needs.
[0085] The method for shortening the system boot time based on conditional differential backup proposed in the embodiment of the present application only requires 11 bits to complete the record and save the update by updating two bits 01 02 to 02 03, which greatly reduces the space required for UEFI Variable update, improves the space utilization of UEFI Variable, avoids the same and repeated data occupying limited space, and further eliminates the additional 16 seconds of boot time caused by the frequent Reclaim of the system.
[0086] The embodiment of the present application also provides a device for shortening the system startup time. Figure 6 Schematic diagram of the structure of the device for shortening the system startup time according to an embodiment of the present application. Figure 6 As shown, the device for shortening the system startup time in the embodiment of the present application includes:
[0087] A copy unit 61, used for copying the original setting data to the memory when the length of the original setting data is greater than the preset length;
[0088] The comparison unit 62 is used to compare the data to be modified with the original setting data in the memory, determine the difference between the data to be modified and the original setting data in the memory, and record the difference;
[0089] Confirmation unit 63, used to confirm the version number of the current original setting data;
[0090] The data establishing unit 64 is used to establish differential backup data of the data to be modified and perform backup storage.
[0091] In an exemplary embodiment, the copying unit 61, the comparison unit 62, the confirmation unit 63, the data creation unit 64, etc. can be implemented by one or more central processing units (CPU), graphics processing units (GPU), application specific integrated circuits (ASIC), DSP, programmable logic devices (PLD), complex programmable logic devices (CPLD), field programmable gate arrays (FPGA), general-purpose processors, controllers, microcontrollers (MCU), microprocessors, or other electronic components.
[0092] In the embodiments of the present application, Figure 6 The specific manner in which each unit in the device for shortening the system startup time performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.
[0093] An embodiment of the present application also provides an electronic device, including a processor and a memory for storing processor executable instructions, wherein the processor is configured to execute the steps of the above-mentioned method for shortening the system startup time when calling the executable instructions in the memory.
[0094] Figure 7 Schematic diagram of the structure of the electronic device according to the embodiment of the present application. Figure 7As shown, the electronic device 800 supports multi-screen output, and the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0095] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0096] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0097] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0098] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0099] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0100] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0101] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0102] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0103] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the steps of the method for shortening the system boot time of the above-mentioned embodiment.
[0104] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for shortening the system boot time are implemented. The non-temporary computer-readable storage medium including instructions, such as a memory 804 including instructions, can be executed by a processor 820 of an electronic device 800 to complete the steps of the method for shortening the system boot time of the above embodiment. For example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0105] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present invention, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0106] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0107] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or do not exist.
[0108] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0109] The above is only an embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for shortening system startup time, characterized in that: The method comprises: When the length of the original setting data is greater than the preset length, the original setting data is copied to the memory; Compare the data to be modified with the original setting data in the memory, determine the difference between the data to be modified and the original setting data in the memory, and record it; Confirm the version number of the current original setting data; Create differential backup data for the data to be modified and perform backup storage.
2. The method for shortening system startup time according to claim 1, characterized in that: When the length of the original set data is greater than the preset length, copying the original data to the memory includes: When the original setting data length is greater than 0x1000 bits, the original valid variable data is captured from the memory and copied to the internal memory.
3. The method for shortening system startup time according to claim 2, characterized in that: The difference between the data to be modified and the original setting data in the memory includes: Determine the data address, data format, data length, modified data content, and check value of all the differences between the data to be modified and the original set data in the memory.
4. The method for shortening system startup time according to claim 3, characterized in that: The data address is recorded by 2 bits; the data format is recorded by 1 bit; the length of the data is recorded by 2 bits; the modified data content is a dynamic length; the check value is the original set data plus the check value of the data to be modified, recorded by 4 bits.
5. The method for shortening system startup time according to claim 4, characterized in that: The method further comprises: Confirm whether the data length of the differential backup data currently being created is greater than a first preset percentage of the original data; Confirm and calculate whether the total data length of all newly created differential backup data is greater than a second preset percentage of the original data.
6. The method for shortening system startup time according to claim 5, characterized in that: The step of establishing differential backup data of the data to be modified and performing backup storage includes: Differential backup data is created. When the data length of the currently created differential backup data is not greater than a first preset percentage of the original data, and the sum of the data lengths of all newly created differential backup data is not greater than a second preset percentage of the original data, the newly created differential backup data is backed up and stored.
7. The method for shortening system startup time according to claim 6, characterized in that: The differential backup data includes: the version number of the current original setting data, as well as the data address, data format, data length, modified data content, and check value of the differential backup data of the difference between the data to be modified and the original setting data in the memory.
8. A device for shortening system startup time, characterized in that: The device comprises: A copy unit, used for copying the original setting data to the memory when the length of the original setting data is greater than the preset length; A comparison unit is used to compare the data to be modified with the original set data in the memory, determine the difference between the data to be modified and the original set data in the memory, and record the difference; A confirmation unit, used to confirm the version number of the current original setting data; The data establishment unit is used to establish differential backup data of the data to be modified and perform backup storage.
9. An electronic device comprising a processor and a memory for storing instructions executable by the processor, characterized in that: The processor is configured to execute the steps of the method according to any one of claims 1 to 7 when calling the executable instructions in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.