Boot area online upgrading method and device, electronic equipment and storage medium
By obtaining and comparing the version number of the Boot area, the simultaneous online upgrade of the Boot area and the APP area is solved, and the problem of the Boot area not being upgraded online in the existing technology is improved.
Patent Information
- Application Number
- CN202411385772.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-02-25
AI Technical Summary
The existing technology is difficult to achieve online upgrade of the Boot area, which leads to the device being unable to upgrade the Boot area at the same time when upgrading the APP, requiring manual intervention and low efficiency.
By obtaining the Boot area version number in this upgrade file and the current version number of the Boot area of the device to be upgraded, if it is inconsistent, the Boot area and APP area of the device to be upgraded will be upgraded online.
The Boot area and APP area are upgraded simultaneously, without manual intervention, saving manpower and time and improving efficiency.
Smart Images

Figure CN119512591A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of online upgrade, and in particular to a Boot area online upgrade method, device, electronic equipment and storage medium. Background Art
[0002] At present, online upgrades usually involve upgrading the application (Application, APP) inside the device. When upgrading the APP online, the corresponding upgrade solution and other programs are usually placed in the Boot area of the device. In order to successfully upgrade the APP, the Boot area of the device cannot be changed, that is, it cannot be upgraded. However, in actual applications, the Boot area of the device also has online upgrade requirements. How to achieve online upgrade of the Boot area is a problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present invention provide a Boot area online upgrade method, device, electronic device and storage medium to solve the problem of how to implement the online upgrade of the Boot area.
[0004] In a first aspect, an embodiment of the present invention provides a Boot area online upgrade method, comprising:
[0005] Get the version number of the Boot area in this upgrade file;
[0006] Get the current version number of the Boot area of the device to be upgraded;
[0007] If the version number of the Boot area in the upgrade file is inconsistent with the current version number of the Boot area, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0008] In a possible implementation, if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, the Boot area online upgrade method further includes:
[0009] Get the current upgrade instructions;
[0010] Perform an online upgrade on both the Boot area and the APP area of the device to be upgraded, including:
[0011] If the current upgrade instruction is used to instruct the Boot area to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0012] In a possible implementation, if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, the Boot area online upgrade method further includes:
[0013] Obtain the firmware keyword in the current upgrade file; the firmware keyword includes the information of the device to be upgraded associated with the current upgrade file;
[0014] Perform an online upgrade on both the Boot area and the APP area of the device to be upgraded, including:
[0015] If the information of the device to be upgraded matches that of the device to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0016] In a possible implementation, the firmware keyword is stored in the first preset area in the current upgrade file; or,
[0017] The firmware keyword is stored in the file name of the upgrade file.
[0018] In a possible implementation, the version number of the Boot area in the current upgrade file is stored in the second preset area in the current upgrade file; or,
[0019] The version number of the Boot area in this upgrade file is stored in the file name of this upgrade file.
[0020] In a possible implementation, both the Boot area and the APP area of the device to be upgraded are upgraded online, including:
[0021] Perform online upgrade on the Boot area of the device to be upgraded.
[0022] After the Boot area of the device to be upgraded is successfully upgraded online, the APP area of the device to be upgraded is upgraded online.
[0023] In a possible implementation, after obtaining the current version number of the Boot area of the device to be upgraded, the Boot area online upgrade method further includes:
[0024] If the version number of the Boot area in the upgrade file is the same as the current version number of the Boot area, only the APP area of the device to be upgraded is upgraded online.
[0025] In a second aspect, an embodiment of the present invention provides a Boot area online upgrade device, including:
[0026] The first acquisition module is used to obtain the version number of the Boot area in the current upgrade file;
[0027] The second acquisition module is used to obtain the current version number of the Boot area of the device to be upgraded;
[0028] The online upgrade module is used to perform online upgrade on both the Boot area and the APP area of the device to be upgraded if the version number of the Boot area in the upgrade file is inconsistent with the current version number of the Boot area.
[0029] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the Boot area online upgrade method as described in the first aspect or any possible implementation of the first aspect.
[0030] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the Boot area online upgrade method as described in the first aspect or any possible implementation method of the first aspect.
[0031] The embodiment of the present invention provides a Boot area online upgrade method, device, electronic device and storage medium. The method obtains the version number of the Boot area in the current upgrade file and the current version number of the Boot area of the device to be upgraded. When the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, it means that the current upgrade file carries corresponding data of the new version of the Boot area. At this time, it is necessary to perform an online upgrade on the Boot area of the device to be upgraded based on the new version of the Boot area in the current upgrade file. The Boot area and APP area of the device to be upgraded can be upgraded online, so that not only the APP of the device can be upgraded online, but also the Boot area can be upgraded online. There is no need to manually upgrade the Boot area, which can save manpower and time and improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0033] Figure 1 It is a schematic diagram of an application scenario of the Boot area online upgrade method provided by an embodiment of the present invention;
[0034] Figure 2 It is a flowchart of a Boot area online upgrade method provided by an embodiment of the present invention;
[0035] Figure 3is a flowchart of a Boot area online upgrade method provided by another embodiment of the present invention;
[0036] Figure 4 It is a structural diagram of a Boot area online upgrade device provided by an embodiment of the present invention;
[0037] Figure 5 It is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The present application is described more clearly below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the effects of the present application, but are not intended to limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present application. These all fall within the scope of protection of the present application.
[0039] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0040] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0041] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0042] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0043] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.
[0044] As mentioned above, in the related art, online upgrades usually involve online upgrades of the application (Application, APP) inside the device. In order to successfully upgrade the APP, the Boot area of the device cannot be changed, that is, it cannot be upgraded. However, in actual applications, the Boot area of the device also has upgrade requirements. In the related art, it is usually necessary to manually upgrade the Boot area, which takes a long time and is inefficient. Therefore, how to achieve online upgrades of the Boot area is a problem that needs to be solved urgently.
[0045] In order to solve the above problems, an embodiment of the present application provides a Boot area online upgrade method, which can perform online upgrades on both the Boot area and the APP area at the same time when both have upgrade requirements. There is no need to manually upgrade the Boot area, which can save manpower and time and improve efficiency.
[0046] First, see Figure 1 , Figure 1 The schematic diagram of the application scenario provided according to the embodiment of the present application is schematically shown, and the device involved in the application scenario includes a device to be upgraded and an upgrade file issuing device. The device to be upgraded may be a DSP, and the DSP includes an on-chip memory and an off-chip memory, wherein the data stored in the off-chip memory is not lost when the power is off. The upgrade file issuing device may be an ARM.
[0047] In specific application scenarios, DSP can be upgraded through ARM. The upgrade process includes: using the USB interface as the firmware import point, ARM reads the firmware information in the U disk and forwards the firmware information to the DSP. After the DSP receives the upgrade package, it first stores the data in the off-chip memory. After the upgrade package is sent completely and verified, the program in the on-chip memory is erased, and the program stored in the off-chip memory is moved to the on-chip memory to complete the upgrade. The upgrade can include the upgrade of the Boot area of the DSP and the upgrade of the APP area of the DSP. The upgrade methods of different areas are the same, but the corresponding upgrade data is stored in different locations.
[0048] See also Figure 1 The communication interface between ARM and DSP is CAN or RS485, which can support single-point upgrade or broadcast upgrade. DSP and external memory can complete data transmission through SPI.
[0049] Combine the following Figure 1 For application scenarios, refer to Figures 2 to 3 To describe the Boot area online upgrade method provided according to the exemplary embodiment of the present application. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this regard. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0050] It should be noted that the embodiments of the present application can be applied to electronic devices, and the electronic devices can be servers, computers, controllers, etc., that is, the Boot area online upgrade method provided in the exemplary embodiments of the present application can be performed on devices such as servers, computers, controllers, etc. The electronic device can be the above-mentioned device to be upgraded.
[0051] It should be noted that the Boot area online upgrade method provided according to the exemplary embodiment of the present application can be executed on the same device or on different devices.
[0052] See also Figure 2 , which shows a flowchart of an implementation of a Boot area online upgrade method provided by an embodiment of the present invention. The Boot area online upgrade method may include:
[0053] In S201, the version number of the Boot area in the current upgrade file is obtained.
[0054] The upgrade file stores the upgrade data for this upgrade. The upgrade file carries the version number of the Boot area. If the Boot area needs to be upgraded, the version number carried by the upgrade file is inconsistent with the current version number of the Boot area of the device to be upgraded. Usually, the version number will increase. For example, if the current version number is A, the upgraded version number is B, and so on. If the Boot area does not need to be upgraded, the version number carried by the upgrade file is consistent with the current version number of the Boot area of the device to be upgraded.
[0055] When the Boot area needs to be upgraded, the upgrade file may include the upgrade file corresponding to the Boot area and the upgrade file corresponding to the APP area. The upgrade files of the two may be one file, but the upgrade data of the Boot area and the upgrade data of the APP area are stored in different positions in the file. The upgrade files of the two may also be two files, and the corresponding upgrade data is stored in each corresponding file.
[0056] In S202, the current version number of the Boot area of the device to be upgraded is obtained.
[0057] In S203, if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0058] If the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, it means that the Boot area of the device to be upgraded needs to be upgraded. Therefore, both the Boot area and the APP area of the device to be upgraded can be upgraded online based on the current upgrade file.
[0059] The embodiment of the present application obtains the version number of the Boot area in this upgrade file and the current version number of the Boot area of the device to be upgraded. When the version number of the Boot area in this upgrade file is inconsistent with the current version number of the Boot area, it means that the current upgrade file carries the corresponding data of the new version of the Boot area. At this time, it is necessary to perform an online upgrade of the Boot area of the device to be upgraded based on the new version of the Boot area in this upgrade file. Both the Boot area and the APP area of the device to be upgraded can be upgraded online, thereby realizing not only online upgrade of the APP of the device, but also online upgrade of the Boot area. There is no need to manually upgrade the Boot area, which can save manpower and time and improve efficiency.
[0060] In some embodiments, in S203, if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, the following further includes:
[0061] Get the current upgrade instructions;
[0062] In S203, both the Boot area and the APP area of the device to be upgraded are upgraded online, including:
[0063] If the current upgrade instruction is used to instruct the Boot area to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0064] The current upgrade instruction may be issued by the upgrade file issuing device to the device to be upgraded, or may be manually input, and no specific limitation is made here.
[0065] When the Boot area needs to be upgraded, the current upgrade instruction includes the Boot area upgrade instruction. When the current upgrade instruction includes the Boot area upgrade instruction, it is considered that the current upgrade instruction is used to instruct the Boot area to upgrade.
[0066] In this embodiment, when the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, and the current upgrade instruction is used to instruct the Boot area to upgrade, both the Boot area and the APP area of the device to be upgraded will be upgraded online. Otherwise, only the APP area of the device to be upgraded will be upgraded, or the upgrade will be exited and relevant prompts will be given. Through double confirmation, it is avoided that one of the misjudgments will lead to an erroneous upgrade of the Boot area.
[0067] In some embodiments, in S203, if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, the following further includes:
[0068] Obtain the firmware keyword in the current upgrade file; the firmware keyword includes the information of the device to be upgraded associated with the current upgrade file;
[0069] In S203, both the Boot area and the APP area of the device to be upgraded are upgraded online, including:
[0070] If the information of the device to be upgraded matches that of the device to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0071] In order to ensure that the device to be upgraded is the device that needs to be upgraded this time, the embodiment of the present application obtains the firmware keyword in the current upgrade file to determine the information of the device that needs to be upgraded this time. The information may include information such as an identifier for uniquely identifying the device that needs to be upgraded.
[0072] The information of the device to be upgraded may include information such as an identifier used to uniquely identify the device to be upgraded.
[0073] When the information of the device to be upgraded matches that of the device to be upgraded, that is, they are consistent, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0074] In some embodiments, the firmware keyword is stored in the first preset area in the current upgrade file; or,
[0075] The firmware keyword is stored in the file name of the upgrade file.
[0076] In this embodiment, the firmware keyword can be stored in the first preset area of the current upgrade file, and the firmware keyword can be obtained by parsing the data stored in the first preset area. The first preset area can be set according to actual needs and is not specifically limited here.
[0077] The firmware keyword can also be stored in the file name of this upgrade file. Exemplarily, the file name of this upgrade file can be SPI320KBHV2INV_A.hex, where the firmware keyword is the information before the underline, i.e., SPI320KBHV2INV, and the information after the underline is the version number of the Boot area in this upgrade file.
[0078] In some embodiments, the version number of the Boot area in the current upgrade file is stored in the second preset area in the current upgrade file; or,
[0079] The version number of the Boot area in this upgrade file is stored in the file name of this upgrade file.
[0080] In this embodiment, the version number of the Boot area in the current upgrade file can be stored in the second preset area in the current upgrade file, and the version number of the Boot area in the current upgrade file can be obtained by parsing the data stored in the second preset area. The second preset area can be set according to actual needs and is not specifically limited here.
[0081] The version number of the Boot area in this upgrade file can also be stored in the file name of this upgrade file. Exemplarily, the file name of this upgrade file can be SPI320KBHV2INV_A.hex, where the information after the underline is the version number of the Boot area in this upgrade file.
[0082] In some embodiments, in the above S203, both the Boot area and the APP area of the device to be upgraded are upgraded online, including:
[0083] Perform online upgrade on the Boot area of the device to be upgraded.
[0084] After the Boot area of the device to be upgraded is successfully upgraded online, the APP area of the device to be upgraded is upgraded online.
[0085] In this embodiment, when both the Boot area and the APP area of the device to be upgraded need to be upgraded online, the Boot area of the device to be upgraded is upgraded online first, and after the Boot area is successfully upgraded online, the APP area of the device to be upgraded is upgraded. Since the Boot area stores the corresponding upgrade program for the APP area upgrade, the Boot area is upgraded first.
[0086] In some embodiments, after obtaining the current version number of the Boot area of the device to be upgraded, the Boot area online upgrade method further includes:
[0087] If the version number of the Boot area in the upgrade file is the same as the current version number of the Boot area, only the APP area of the device to be upgraded is upgraded online.
[0088] If the version number of the Boot area in the current upgrade file is consistent with the current version number of the Boot area, it means that the Boot area of the device to be upgraded does not need to be upgraded in this upgrade. Therefore, only the APP area of the device to be upgraded can be upgraded online based on this upgrade file.
[0089] In some possible implementations, see Figure 3 , you can first determine whether the version number of the Boot area in the upgrade file is consistent with the current version number of the Boot area. If not, continue to determine whether the current upgrade instruction is used to instruct the Boot area to upgrade. If so, further determine whether the information of the device to be upgraded matches the information of the device to be upgraded. If they match, give priority to upgrading the Boot area of the device to be upgraded. After successfully upgrading the Boot area, upgrade the APP area of the device to be upgraded.
[0090] If the version number of the Boot area in the upgrade file is consistent with the current version number of the Boot area, or the current upgrade instruction is not used to instruct the Boot area to be upgraded, only the APP area of the device to be upgraded is upgraded online.
[0091] If the information of the device to be upgraded does not match the information of the device to be upgraded, the upgrade is exited and a message indicating that the keywords do not match is prompted.
[0092] It should be noted that the order of the above three judgments can be changed according to actual needs and is not specifically limited here. The above method for online upgrading of the Boot area and the method for online upgrading of the APP area can be the same, except that the upgrade data and the location where the upgrade data is stored are different.
[0093] The online upgrade method of the Boot area provided in the embodiment of the present application can ensure reliable online upgrade of the Boot area of the device to be upgraded, reduce the number of operations and verifications by on-site operation and maintenance personnel, and achieve reliable protection.
[0094] It should be understood that the order of execution of the steps in the above embodiment does not necessarily 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 invention.
[0095] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.
[0096] Figure 4 The structure diagram of the online upgrade device of the Boot area provided by the embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0097] like Figure 4 As shown, the Boot area online upgrade device 30 may include: a first acquisition module 31 , a second acquisition module 32 and an online upgrade module 33 .
[0098] The first acquisition module 31 is used to obtain the version number of the Boot area in the current upgrade file;
[0099] The second acquisition module 32 is used to obtain the current version number of the Boot area of the device to be upgraded;
[0100] The online upgrade module 33 is used to perform online upgrade on both the Boot area and the APP area of the device to be upgraded if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area.
[0101] In a possible implementation, in the online upgrade module 33, if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, it further includes:
[0102] Get the current upgrade instructions;
[0103] Perform an online upgrade on both the Boot area and the APP area of the device to be upgraded, including:
[0104] If the current upgrade instruction is used to instruct the Boot area to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0105] In a possible implementation, in the online upgrade module 33, if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, it further includes:
[0106] Obtain the firmware keyword in the current upgrade file; the firmware keyword includes the information of the device to be upgraded associated with the current upgrade file;
[0107] Perform an online upgrade on both the Boot area and the APP area of the device to be upgraded, including:
[0108] If the information of the device to be upgraded matches that of the device to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
[0109] In a possible implementation, the firmware keyword is stored in the first preset area in the current upgrade file; or,
[0110] The firmware keyword is stored in the file name of the upgrade file.
[0111] In a possible implementation, the version number of the Boot area in the current upgrade file is stored in the second preset area in the current upgrade file; or,
[0112] The version number of the Boot area in this upgrade file is stored in the file name of this upgrade file.
[0113] In a possible implementation, in the online upgrade module 33, both the Boot area and the APP area of the device to be upgraded are upgraded online, including:
[0114] Perform online upgrade on the Boot area of the device to be upgraded.
[0115] After the Boot area of the device to be upgraded is successfully upgraded online, the APP area of the device to be upgraded is upgraded online.
[0116] In a possible implementation, in the online upgrade module 33, if the version number of the Boot area in the current upgrade file is consistent with the current version number of the Boot area, only the APP area of the device to be upgraded is upgraded online.
[0117] Figure 5 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 5 As shown, the electronic device 4 of this embodiment includes: a processor 40 and a memory 41. The memory 41 is used to store a computer program 42, and the processor 40 is used to call and run the computer program 42 stored in the memory 41 to perform the steps in the above-mentioned embodiments of the online upgrade method of the Boot area, such as Figure 2 Alternatively, the processor 40 is used to call and run the computer program 42 stored in the memory 41 to implement the functions of each module / unit in the above-mentioned device embodiments, for example Figure 4 The functions of each module are shown.
[0118] Exemplarily, the computer program 42 may be divided into one or more modules / units, which are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 42 in the electronic device 4. For example, the computer program 42 may be divided into Figure 4 The modules shown.
[0119] The electronic device 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 4 and does not constitute a limitation of the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0120] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0121] The memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 41 is used to store the computer program and other programs and data required by the electronic device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0125] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of the modules or 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0128] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various Boot area online upgrade method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium.
[0129] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A Boot area online upgrade method, characterized in that: include: Get the version number of the Boot area in this upgrade file; Get the current version number of the Boot area of the device to be upgraded; If the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, both the Boot area and the APP area of the device to be upgraded are upgraded online.
2. The Boot area online upgrade method according to claim 1, characterized in that: If the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, the Boot area online upgrade method further includes: Get the current upgrade instructions; The online upgrading of the Boot area and the APP area of the device to be upgraded includes: If the current upgrade instruction is used to instruct the Boot area to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
3. The Boot area online upgrade method according to claim 1, characterized in that: If the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area, the Boot area online upgrade method further includes: Obtaining a firmware keyword in the current upgrade file; the firmware keyword includes information of a device to be upgraded associated with the current upgrade file; The online upgrading of the Boot area and the APP area of the device to be upgraded includes: If the information of the device to be upgraded matches the information of the device to be upgraded, both the Boot area and the APP area of the device to be upgraded are upgraded online.
4. The Boot area online upgrade method according to claim 3, characterized in that: The firmware keyword is stored in the first preset area of the current upgrade file; or, The firmware keyword is stored in the file name of the current upgrade file.
5. The Boot area online upgrade method according to claim 1, characterized in that: The version number of the Boot area in the current upgrade file is stored in the second preset area in the current upgrade file; or, The version number of the Boot area in the current upgrade file is stored in the file name of the current upgrade file.
6. The Boot area online upgrade method according to any one of claims 1 to 5, characterized in that: The online upgrading of the Boot area and the APP area of the device to be upgraded includes: Performing online upgrade on the Boot area of the device to be upgraded; After the Boot area of the device to be upgraded is successfully upgraded online, the APP area of the device to be upgraded is upgraded online.
7. The Boot area online upgrade method according to any one of claims 1 to 5, characterized in that: After obtaining the current version number of the Boot area of the device to be upgraded, the Boot area online upgrade method further includes: If the version number of the Boot area in the current upgrade file is consistent with the current version number of the Boot area, only the APP area of the device to be upgraded is upgraded online.
8. A Boot area online upgrade device, characterized in that: include: The first acquisition module is used to obtain the version number of the Boot area in the current upgrade file; The second acquisition module is used to obtain the current version number of the Boot area of the device to be upgraded; The online upgrade module is used to perform online upgrade on both the Boot area and the APP area of the device to be upgraded if the version number of the Boot area in the current upgrade file is inconsistent with the current version number of the Boot area.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the Boot area online upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the online upgrade method of the Boot area as claimed in any one of claims 1 to 7 are implemented.