Method and device for expanding storage space of nonvolatile data, vehicle and medium

By compressing and migrating the running partitions in the Flash dual partition of the automotive MCU chip and migrating the data of inactive partitions, the problem of insufficient storage space of the MCU chip is solved, and the expansion and effective utilization of high-speed non-volatile storage space is achieved.

CN119847444APending Publication Date: 2025-04-18CHERY INTELLIGENT VEHICLE TECH (HEFEI) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510005045.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The DFlash storage space and reading performance used to store nonvolatile data on automotive MCU chips are limited, making it difficult to meet the storage needs in smart car functional scenarios.

Method used

During the Flash dual-partition flash writing upgrade process, the application space running the partition is compressed, the target data storage space is determined, and the non-volatile data in the unactivated partition is stored in the corresponding location of the target data storage space, and the Flash dual-partition flash writing upgrade is completed to expand the storage space of non-volatile data in the unactivated partition.

Benefits of technology

Without increasing any hardware cost, the considerable expansion of high-speed Flash storage on MCU on-chip is achieved, effectively utilizing the high-speed non-volatile storage space of the on-board chip, and improving the storage capacity of on-board software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847444A_ABST
    Figure CN119847444A_ABST
Patent Text Reader

Abstract

The invention discloses a nonvolatile data storage space expansion method and device, a vehicle and a medium, and relates to the technical field of vehicles. Flash double partitions comprise a non-activated partition and a running partition, and the method comprises the steps that in the flash upgrading process of the Flash double partitions, an application program space of the running partition is compressed to determine a target data storage space; and after the nonvolatile data in the non-activated partition is stored in the corresponding position of the target data storage space, Flash double-partition flashing and upgrading are completed, so that the storage space of the nonvolatile data in the non-activated partition is expanded. According to the application, the extra PFlash high-speed nonvolatile data storage space is added to the MCU and the vehicle-mounted software of the MCU by compressing the running partition application program space in the dual-start mode partition, so that the effective utilization of the high-speed nonvolatile storage space of the vehicle-mounted chip is achieved; and under the condition of not increasing any hardware cost, the considerable capacity expansion of the high-speed Flash storage on the MCU chip is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a method for expanding a storage space of non-volatile data, a device for expanding a storage space of non-volatile data, a computer-readable storage medium, and a vehicle. Background Art

[0002] In the increasingly rich functional scenarios of smart cars, the DFlash storage space and reading performance used to store non-volatile data on the automotive MCU (Microcontroller Unit) chip are limited, and usually new software function upgrades and deployments require more Flash storage space. In related technologies, off-chip Flash (flash memory) or EEPROM (Electrically Erasable Programmable Read-Only Memory) connected through the SPI (Serial Peripheral Interface) interface solves the problem of insufficient Flash storage space, but high-performance external SPI Flash will increase certain additional costs, and the speed and reliability of the ordinary SPI Flash bus are not as good as the MCU chip high-speed bus in terms of technical parameters. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present application is to propose a method for expanding the storage space of non-volatile data, wherein the Flash dual partition includes an inactivated partition and a running partition, and the method includes: during the Flash dual partition flash upgrade process, compressing the application space of the running partition to determine the target data storage space; storing the non-volatile data in the inactivated partition into the corresponding position of the target data storage space and completing the Flash dual partition flash upgrade to expand the storage space of the non-volatile data in the inactivated partition. The present application compresses the running partition application space in the dual boot mode partition to add additional PFlash high-speed non-volatile data storage space for the MCU and its on-board software, thereby achieving effective utilization of the high-speed non-volatile storage space of the on-board chip, and realizing a considerable expansion of the high-speed Flash storage on the MCU chip without increasing any hardware costs.

[0004] The second objective of the present application is to provide a device for expanding the storage space of non-volatile data.

[0005] The third object of the present application is to provide a computer-readable storage medium.

[0006] A fourth object of the present application is to provide a vehicle.

[0007] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes a method for expanding the storage space of non-volatile data, wherein the Flash dual partition includes an inactivated partition and a running partition, and the method includes: during the Flash dual partition flashing and upgrading process, compressing the application space of the running partition to determine the target data storage space; storing the non-volatile data in the inactivated partition into the corresponding position of the target data storage space, and then completing the Flash dual partition flashing and upgrading to expand the storage space of the non-volatile data in the inactivated partition.

[0008] According to one embodiment of the present application, the Flash dual partition flashing upgrade process includes fingerprint writing and downloading the Flash driver, wherein the fingerprint writing and downloading the Flash driver are two consecutive processes in the Flash dual partition flashing upgrade process, and the application space of the running partition is compressed to determine the target data storage space, including: after the fingerprint writing is completed and before the download of the Flash driver is executed, the application space of the running partition is compressed to determine the target data storage space.

[0009] According to an embodiment of the present application, the method further includes: after compressing the application space of the running partition and before downloading the Flash driver for execution, storing the non-volatile data in the inactivated partition into a corresponding position of the target data storage space.

[0010] According to one embodiment of the present application, the Flash dual-partition flash upgrade process includes checking application dependencies and switching partitions, wherein checking application dependencies and switching partitions are two consecutive processes in the Flash dual-partition flash upgrade process, and compressing the application space of the running partition to determine the target data storage space, including: after the application dependency check is completed and before the partition switch is executed, compressing the application space of the running partition to determine the target data storage space.

[0011] According to an embodiment of the present application, the method further includes: after the fingerprint writing is completed and before the Flash driver is downloaded for execution, storing the non-volatile data in the inactivated partition into a preset storage location.

[0012] According to an embodiment of the present application, the method further includes: after compressing the application space of the running partition and before switching the partition for execution, storing the non-volatile data stored in the preset storage location into the corresponding location of the target data storage space

[0013] According to an embodiment of the present application, the Flash dual partition flash upgrade process also includes a device restart, and the method also includes: after executing the device restart, completing the Flash dual partition flash upgrade.

[0014] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes a device for expanding the storage space of non-volatile data. The Flash dual partition includes an inactivated partition and a running partition. The device includes: a determination module, which is used to compress the application space of the running partition during the Flash dual partition flash upgrade process to determine the target data storage space; an expansion module, which is used to store the non-volatile data in the inactivated partition into the corresponding position of the target data storage space and then complete the Flash dual partition flash upgrade to expand the storage space of the non-volatile data in the inactivated partition.

[0015] To achieve the above objectives, the third aspect of the present application proposes a computer-readable storage medium on which a program for expanding the storage space of non-volatile data is stored. When the program for expanding the storage space of non-volatile data is executed by a processor, the aforementioned method for expanding the storage space of non-volatile data is implemented.

[0016] To achieve the above-mentioned objectives, the fourth aspect embodiment of the present application proposes a vehicle, including a memory, a processor, and a program for expanding the storage space of non-volatile data stored in the memory and runnable on the processor. When the processor executes the program for expanding the storage space of non-volatile data, the aforementioned method for expanding the storage space of non-volatile data is implemented.

[0017] According to the method, device, vehicle and medium for expanding the storage space of non-volatile data of the embodiment of the present application, the Flash dual partition includes an inactivated partition and a running partition, and the method includes: during the Flash dual partition flash upgrade process, compressing the application space of the running partition to determine the target data storage space; storing the non-volatile data in the inactivated partition into the corresponding position of the target data storage space and completing the Flash dual partition flash upgrade to expand the storage space of the non-volatile data in the inactivated partition. The present application compresses the running partition application space in the dual boot mode partition to increase additional PFlash high-speed non-volatile data storage space for the MCU and its on-board software, thereby achieving effective utilization of the high-speed non-volatile storage space of the on-board chip, and realizing a considerable expansion of the high-speed Flash storage on the MCU chip without increasing any hardware cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flowchart of a method for expanding storage space of non-volatile data according to some embodiments of the present application;

[0019] Figure 2 A functional structure diagram of a compressed running partition application according to some embodiments of the present application;

[0020] Figure 3 A flowchart of flash dual partition flash upgrade according to some embodiments of the present application;

[0021] Figure 4 A flowchart of a method for expanding storage space of non-volatile data according to other embodiments of the present application;

[0022] Figure 5 is a flow chart of a method for expanding storage space of non-volatile data according to some other embodiments of the present application;

[0023] Figure 6 A block diagram of a device for expanding storage space of non-volatile data according to some embodiments of the present application;

[0024] Figure 7 It is a block diagram of a vehicle according to some embodiments of the present application. DETAILED DESCRIPTION

[0025] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0026] The following describes in detail the method, device, vehicle and medium for expanding the storage space of non-volatile data according to the embodiments of the present application with reference to the accompanying drawings.

[0027] Figure 1 FIG. 1 is a flow chart of a method for expanding storage space of non-volatile data according to some embodiments of the present application. Figure 1 The method for expanding the storage space of non-volatile data in the embodiment of the present application may include the following steps:

[0028] S110, during the flash dual partition flash upgrade process, compressing the application space of the running partition to determine the target data storage space.

[0029] Specifically, the Flash dual partition includes an inactivated partition and a running partition. During the Flash dual partition flashing and upgrading process, effective compression is adopted for the application space in the running partition. For example, the Lzss compression algorithm is used to compress the application space in the running partition at a preset compression ratio. When the preset compression ratio is 1.3 to 2 to 1, at least 30% to 50% of the target data storage space can be released.

[0030] For example, refer to Figure 2For an MCU chip with 256KB DFlash and 8MB PFlash, if the application space size of the running partition is 3MB, the PFlash space (target data storage space) in the running partition that can be released after compression at a compression ratio of 1.3 to 2 is 708KB to 3072KB. It can be seen that the released space is even larger than the size of the entire chip DFlash. At the same time, the read and write performance of PFlash is higher than DFlash, especially its data reading performance is much higher than DFlash, which has great advantages when reading a large amount of data at one time when the MCU starts. After compression, it is estimated that the MCU can be provided with at least 2 times, up to 10 times the original DFlash size of high-speed non-volatile data storage space.

[0031] S120, after the non-volatile data in the inactivated partition is stored in the corresponding position of the target data storage space, the Flash dual partition flash upgrade is completed to expand the storage space of the non-volatile data in the inactivated partition.

[0032] Specifically, after compressing the application space of the running partition to determine the target data storage space, the non-volatile data in the inactivated partition is stored in the corresponding position of the target data storage space, and then the Flash dual partition flash upgrade is continued. After completing the Flash dual partition flash upgrade, the storage space of the non-volatile data in the inactivated partition can be expanded.

[0033] It should be noted that the application space of the running partition can be compressed only after the Flash dual partition flash upgrade process is started.

[0034] This application compresses the running partition application space in the dual-boot mode partition and adds additional PFlash high-speed non-volatile data storage space for the MCU and its on-board software, thereby achieving effective utilization of the on-board chip high-speed non-volatile storage space and realizing a significant expansion of the MCU on-chip high-speed Flash storage without increasing any hardware costs.

[0035] In some embodiments, reference Figure 3 , Flash dual partition flash upgrade process steps:

[0036] S201, entering an extended session.

[0037] Start flashing into the extended session.

[0038] S202, checking programming preconditions.

[0039] Before programming, a series of prerequisites need to be met, such as stable power supply voltage, engine off, vehicle in parking state, and no ECU (Electronic Control Unit) warning light on. The diagnostic tool will check whether these conditions are met to ensure the safety and success rate of the programming process.

[0040] S203, DTC function is turned off.

[0041] DTC (Diagnostic Trouble Code) is a code used to record automobile fault information. During the programming process, in order to avoid error information interfering with the programming process, the DTC function is usually temporarily turned off.

[0042] S204, shut down normal CAN bus communication.

[0043] The CAN (Controller Area Network) bus is an internal network of the car, used for communication between various systems. During the programming process, in order to prevent other modules from interfering with programming data transmission, the normal CAN bus communication needs to be temporarily closed.

[0044] S205, entering programming session.

[0045] A programming session is a special mode of the ECU that allows the program stored inside the ECU to be modified. Entering a programming session requires a higher level of security, usually a password or other authentication method.

[0046] S206, secure access authentication.

[0047] To prevent unauthorized access and modification, diagnostic tools need to pass secure access authentication, which may include password entry, digital signature verification or key exchange.

[0048] S207, fingerprint writing.

[0049] Fingerprint refers to the unique identification information of ECU software, which is used to verify the legitimacy and integrity of the software. During the programming process, a new software fingerprint will be written to the ECU to replace the old fingerprint.

[0050] S208, download the Flash driver.

[0051] Flash driver is software used to manage and control the Flash memory inside the ECU. During the programming process, the diagnostic tool needs to load the corresponding Flash driver to read and write the Flash memory.

[0052] S209, erasing the application programs of the inactivated partitions.

[0053] There are usually two application partitions inside the ECU, one in running state and the other in inactive state. When performing a software update, you need to first erase the application in the inactive partition to make room for it.

[0054] S210, download the application.

[0055] Download new application data to the inactivated partition. The download process needs to ensure the integrity and accuracy of the data to avoid data loss or damage.

[0056] S211, check application dependencies.

[0057] After the download is complete, the application dependencies are checked and if passed, the application is marked as legitimate.

[0058] S212, switch partition.

[0059] Perform partition switching operation, set the partition flashed in the above steps as the running partition, set the current running partition as the inactive partition, and complete the partition switching.

[0060] S213, restart ECU.

[0061] Restart the ECU to boot into the application in the new run partition.

[0062] In some embodiments, the Flash dual partition flashing upgrade process includes fingerprint writing and downloading the Flash driver, wherein the fingerprint writing and downloading the Flash driver are two consecutive processes in the Flash dual partition flashing upgrade process, and the application space of the running partition is compressed to determine the target data storage space, including: after the fingerprint writing is completed and before the Flash driver is downloaded and executed, the application space of the running partition is compressed to determine the target data storage space.

[0063] In some embodiments, the method further includes: after compressing the application space of the running partition and before downloading the Flash driver for execution, storing the non-volatile data in the inactivated partition into a corresponding position of the target data storage space.

[0064] As a specific example, see Figure 4 The method for expanding the storage space of non-volatile data may include the following steps:

[0065] S301, entering an extended session.

[0066] S302, checking programming preconditions.

[0067] S303, DTC function is turned off.

[0068] S304, shut down normal CAN bus communication.

[0069] S305, entering programming session.

[0070] S306, secure access authentication.

[0071] S307, fingerprint writing.

[0072] S308, compressing the application space of the running partition.

[0073] For example, the Lzss compression algorithm is used to compress the application space in the running partition at a preset compression ratio to determine the target data storage space.

[0074] S309, storing the non-volatile data in the inactivated partition into a corresponding position of the target data storage space.

[0075] After the compression is completed, the non-volatile data of the inactivated partition is copied to the corresponding position of the target data storage space, such as the corresponding mirror position. The corresponding mirror position ensures that when the flashing is completed and the partition switching is completed, the storage data migrated to the running partition remains unchanged in addressing, that is, the high-speed storage data of the PFlash space is seamlessly migrated at the user and usage level.

[0076] S310, download the Flash driver.

[0077] S311, erase the application program of the inactivated partition.

[0078] S312, download the application.

[0079] S313, check application dependencies.

[0080] S314, switch partitions.

[0081] S315, restart ECU.

[0082] In some embodiments, the Flash dual partition flash upgrade process includes checking application dependencies and switching partitions, wherein checking application dependencies and switching partitions are two consecutive processes in the Flash dual partition flash upgrade process, and compressing the application space of the running partition to determine the target data storage space, including: after the application dependency check is completed and before the partition switch is executed, compressing the application space of the running partition to determine the target data storage space.

[0083] In some embodiments, the above method further includes: after the fingerprint writing is completed and before the Flash driver is downloaded for execution, storing the non-volatile data in the inactivated partition into a preset storage location.

[0084] In some embodiments, the method further includes: after compressing the application space of the running partition and before switching the partition for execution, storing the non-volatile data stored in the preset storage location into a corresponding location of the target data storage space.

[0085] As a specific example, see Figure 5 The method for expanding the storage space of non-volatile data may include the following steps:

[0086] S401, entering an extended session.

[0087] S402, checking programming preconditions.

[0088] S403, DTC function is turned off.

[0089] S404, shut down normal CAN bus communication.

[0090] S405, entering programming session.

[0091] S406, secure access authentication.

[0092] S407, fingerprint writing.

[0093] S408, storing the non-volatile data in the inactivated partition into a preset storage location.

[0094] The preset storage location may be SRAM or DFlash.

[0095] S409, download the Flash driver.

[0096] S410, erase the application program of the inactivated partition.

[0097] S411, download the application.

[0098] S412, check application dependencies.

[0099] S413, compressing the application space of the running partition.

[0100] For example, the Lzss compression algorithm is used to compress the application space in the running partition at a preset compression ratio to determine the target data storage space.

[0101] S414, storing the non-volatile data stored in the preset storage location into a corresponding location in the target data storage space.

[0102] S415, switch partitions.

[0103] S416, restart the ECU.

[0104] In this way, after the download verification of the application of the inactivated partition is completed, the application space of the current running partition is compressed, and the compression step is postponed until after "checking application dependencies" to prevent the need to restore to the current running partition again and decompress again when the flashing fails, which makes the previous compression step redundant. However, before flashing, the non-volatile data in the inactivated partition needs to be temporarily saved to SRAM or DFlash. After the flashing of the inactivated partition is completed and the compression of the running activated partition application is completed, the temporarily saved non-volatile data can be migrated to the running partition (target data storage space) of the compressed application, and finally the whole process is completed by switching the partition and restarting the ECU. In other words, if a flashing error occurs during the flashing of the inactivated partition, the partition will not be switched and the ECU will still start to the running partition before the flashing after the restart. Therefore, compressing the current running partition when it is unknown whether the flashing of the inactivated partition is successful or not will inevitably lead to the situation where the current running partition needs to be decompressed again immediately after the flashing error, thereby reducing the efficiency and speed of flashing error recovery.

[0105] In some embodiments, the Flash dual partition flash upgrade process also includes a device restart, and the method further includes: after executing the device restart, completing the Flash dual partition flash upgrade.

[0106] In summary, the application of the running partition in the dual partition mode is compressed and saved based on an efficient compression algorithm. The saved storage space can provide considerable additional high-speed non-volatile storage space for the vehicle-mounted MCU for use by the vehicle-mounted software. In this way, the application software in the running partition can be saved in a compressed manner as a backup and recovery, and the considerable space saved after compression can be used as a high-speed non-volatile data storage space, thereby meeting the needs of subsequent software upgrades and function expansions for Flash expansion at zero hardware cost.

[0107] Corresponding to the above-mentioned embodiment, the present application also proposes a device for expanding the storage space of non-volatile data.

[0108] Reference Figure 6 The device 600 for expanding the storage space of non-volatile data includes: a determination module 610 and an expansion module 620 .

[0109] Among them, the determination module 610 is used to compress the application space of the running partition during the Flash dual partition flash upgrade process to determine the target data storage space; the expansion module 620 is used to store the non-volatile data in the inactivated partition into the corresponding position of the target data storage space and then complete the Flash dual partition flash upgrade to expand the storage space of the non-volatile data in the inactivated partition.

[0110] According to one embodiment of the present application, the determination module 610 is specifically used for: the Flash dual partition flashing upgrade process includes fingerprint writing and downloading the Flash driver, wherein the fingerprint writing and downloading the Flash driver are two consecutive processes in the Flash dual partition flashing upgrade process, and the application space of the running partition is compressed to determine the target data storage space, including: after the fingerprint writing is completed and before the download of the Flash driver is executed, the application space of the running partition is compressed to determine the target data storage space.

[0111] According to an embodiment of the present application, after compressing the application space of the running partition and before downloading the Flash driver for execution, the non-volatile data in the inactivated partition is stored in the corresponding position of the target data storage space.

[0112] According to one embodiment of the present application, the determination module 610 is specifically used for the Flash dual partition flash upgrade process to include checking application dependencies and switching partitions, wherein checking application dependencies and switching partitions are two consecutive processes in the Flash dual partition flash upgrade process, and compressing the application space of the running partition to determine the target data storage space, including: after the application dependency check is completed and before the partition switch is executed, compressing the application space of the running partition to determine the target data storage space.

[0113] According to an embodiment of the present application, after the fingerprint writing is completed and before the Flash driver is downloaded for execution, the non-volatile data in the inactivated partition is stored in a preset storage location.

[0114] According to an embodiment of the present application, after compressing the application space of the running partition and before switching the partition for execution, the non-volatile data stored in the preset storage location is stored in the corresponding location of the target data storage space.

[0115] According to an embodiment of the present application, the Flash dual partition flash upgrade process also includes a device restart. After the device restart is executed, the Flash dual partition flash upgrade is completed.

[0116] It should be pointed out that the above-mentioned explanation of the embodiment and beneficial effects of the method for expanding the storage space of non-volatile data is also applicable to the device for expanding the storage space of non-volatile data in the embodiment of the present application. To avoid redundancy, they are not elaborated here.

[0117] Corresponding to the above embodiments, the present application also proposes a computer-readable storage medium.

[0118] The computer-readable storage medium of the present application stores a program for expanding the storage space of non-volatile data, and the program for expanding the storage space of non-volatile data implements the aforementioned method for expanding the storage space of non-volatile data when executed by a processor.

[0119] It should be pointed out that the above-mentioned embodiments and explanations of the beneficial effects of the method for expanding the storage space of non-volatile data are also applicable to the computer-readable storage medium of the embodiment of the present application, and will not be elaborated here in detail to avoid redundancy.

[0120] Corresponding to the above embodiments, the present application also proposes a vehicle.

[0121] See also Figure 7 As shown, the vehicle 700 of the present application includes a memory 710, a processor 720, and a non-volatile data storage space expansion program stored in the memory 710 and executable on the processor 720. When the processor executes the non-volatile data storage space expansion program, the aforementioned non-volatile data storage space expansion method is implemented.

[0122] It should be pointed out that the above-mentioned embodiments of the method for expanding the storage space of non-volatile data and the explanation of the beneficial effects are also applicable to the vehicle of the embodiment of the present application. In order to avoid redundancy, they will not be expanded here in detail.

[0123] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0124] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0125] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0126] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0127] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0128] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for expanding storage space of non-volatile data, characterized in that: The Flash dual partition includes an inactive partition and a running partition, and the method includes: During the flash dual partition upgrade process, the application space of the running partition is compressed to determine the target data storage space; The non-volatile data in the inactivated partition is stored in the corresponding position of the target data storage space, and then the Flash dual partition upgrade is completed to expand the storage space of the non-volatile data in the inactivated partition.

2. The method for expanding the storage space of non-volatile data according to claim 1, characterized in that: The Flash dual partition flashing and upgrading process includes fingerprint writing and downloading a Flash driver, wherein the fingerprint writing and the downloading of the Flash driver are two consecutive processes in the Flash dual partition flashing and upgrading process, and compressing the application space of the running partition to determine the target data storage space includes: After the fingerprint is written and before the downloaded Flash driver is executed, the application space of the running partition is compressed to determine the target data storage space.

3. The method for expanding the storage space of non-volatile data according to claim 2, characterized in that: The method further comprises: After compressing the application space of the running partition and before the downloaded Flash driver is executed, the non-volatile data in the inactivated partition is stored in a corresponding position of the target data storage space.

4. The method for expanding the storage space of non-volatile data according to claim 1, characterized in that: The Flash dual partition flashing and upgrading process includes checking application dependencies and switching partitions, wherein the checking application dependencies and the switching partitions are two consecutive processes in the Flash dual partition flashing and upgrading process, and compressing the application space of the running partition to determine the target data storage space, including: After the checking of the application dependencies is completed and before the switching partition is executed, the application space of the running partition is compressed to determine the target data storage space.

5. The method for expanding the storage space of non-volatile data according to claim 4, characterized in that: The method further comprises: After the fingerprint writing is completed and before the Flash driver is downloaded for execution, the non-volatile data in the inactivated partition is stored in a preset storage location.

6. The method for expanding the storage space of non-volatile data according to claim 5, characterized in that: The method further comprises: After compressing the application space of the running partition and before executing the switching partition, the non-volatile data stored in the preset storage location is stored in a corresponding location of the target data storage space.

7. The method for expanding the storage space of non-volatile data according to any one of claims 1 to 6, characterized in that: The Flash dual partition flash upgrade process also includes restarting the device, and the method also includes: After the device is restarted, the Flash dual partition upgrade is completed.

8. A device for expanding storage space of non-volatile data, characterized in that: The Flash dual partition includes an inactive partition and a running partition, and the device includes: A determination module, used to compress the application space of the running partition during the flash dual partition flash upgrade process to determine the target data storage space; The expansion module is used to store the non-volatile data in the inactivated partition into the corresponding position of the target data storage space and then complete the Flash dual partition flash upgrade to expand the storage space of the non-volatile data in the inactivated partition.

9. A computer-readable storage medium, characterized in that: A program for expanding the storage space of non-volatile data is stored thereon, and when the program for expanding the storage space of non-volatile data is executed by a processor, a method for expanding the storage space of non-volatile data according to any one of claims 1 to 7 is implemented.

10. A vehicle, characterized in that: The invention comprises a memory, a processor and a program for expanding the storage space of non-volatile data which is stored in the memory and can be run on the processor. When the processor executes the program for expanding the storage space of non-volatile data, a method for expanding the storage space of non-volatile data according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Upgrade recovery method and device of electronic equipment, electronic equipment and storage medium

    CN121143719A