[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113127017B - System upgrading method, device and system - Google Patents

System upgrading method, device and system Download PDF

Info

Publication number
CN113127017B
CN113127017B CN201911395641.0A CN201911395641A CN113127017B CN 113127017 B CN113127017 B CN 113127017B CN 201911395641 A CN201911395641 A CN 201911395641A CN 113127017 B CN113127017 B CN 113127017B
Authority
CN
China
Prior art keywords
upgrade
file
upgrading
sub
attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911395641.0A
Other languages
Chinese (zh)
Other versions
CN113127017A (en
Inventor
李东青
李强国
周晶晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201911395641.0A priority Critical patent/CN113127017B/en
Publication of CN113127017A publication Critical patent/CN113127017A/en
Application granted granted Critical
Publication of CN113127017B publication Critical patent/CN113127017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a system upgrading method, a device and a system, wherein the system upgrading method comprises the following steps: in response to detecting the upgrade file, access information of the upgrade file is acquired; triggering an upgrade confirmation message according to the access information, wherein the upgrade file comprises a plurality of upgrade subfiles, and each upgrade subfile is provided with a file attribute mark; responding to the upgrade confirmation message as an upgrade message, and acquiring an upgrade file according to the access information; analyzing the upgrade file, and determining the file attribute of the corresponding upgrade sub-file according to the file attribute mark during analysis; and upgrading the corresponding module according to the file attribute of the upgrading sub-file. According to the system upgrading method, the upgrading files are provided with different file attributes according to different upgrading modes, and corresponding modules can be upgraded according to the file attributes of the upgrading files in the upgrading process, so that ordered upgrading of various firmware is realized.

Description

System upgrading method, device and system
Technical Field
The present invention relates to the field of system upgrade methods, and in particular, to a system upgrade method, a system upgrade apparatus, and an upgrade system.
Background
With the continuous progress of technology and the open source of the linux system, more and more embedded linux devices are currently in our life periphery. The embedded linux system is based on custom development, so that the product development period can be shortened. The Linux system provides rich tool resources, is convenient for the development of product business, and greatly shortens the product development period. Product development is a lengthy process and even after the dosing process, unexpected problems remain exposed. In addition, depending on the requirements of the customers, the application program may be customized and upgraded, so that the system upgrade of the product is indispensable.
Therefore, how to upgrade the system is a technical problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a system upgrading method, a system upgrading device and an upgrading system, which can upgrade the system.
In one aspect, a system upgrading method provided by an embodiment of the present invention includes:
In response to detecting an upgrade file, access information of the upgrade file is acquired;
triggering an upgrade confirmation message according to the access information, wherein the upgrade file comprises a plurality of upgrade subfiles, and each upgrade subfile is provided with a file attribute mark;
Responding to the upgrade confirmation message as an upgrade message, and acquiring the upgrade file according to the access information;
analyzing the upgrade file, and determining the file attribute of the corresponding upgrade sub-file according to the file attribute mark during analysis;
and upgrading the corresponding module according to the file attribute of the upgrading sub-file.
According to the system upgrading method, the upgrading sub-files are provided with different file attribute marks according to different upgrading modes, and corresponding modules can be upgraded according to the file attributes of the upgrading sub-files in the upgrading process, so that ordered upgrading of various firmware is realized.
In one embodiment of the invention, the file attributes include sdk files and system firmware.
In one embodiment of the present invention, upgrading the corresponding module according to the file attribute of the upgrade sub-file includes:
when the file attribute of the upgrading sub-file is detected to be the system firmware, determining the firmware type corresponding to the file attribute of the upgrading sub-file;
The firmware is upgraded by calling a corresponding upgrading process according to the firmware type, wherein the firmware type comprises an MCU or an FPGA;
and reading and recording the firmware version information after the upgrading is successful.
In one embodiment of the present invention, upgrading the corresponding module according to the file attribute of the upgrade sub-file includes: and upgrading the sdk file in an incremental coverage mode when the file attribute of the upgrading sub-file is sdk files, wherein the sdk file comprises a UBOOT file, an app file, a lib file or a patch file.
In one embodiment of the present invention, after upgrading the corresponding module according to the file attribute of the upgrade sub-file, the method further includes: and updating the version information of the system according to the upgrade file.
In one embodiment of the present invention, in response to detecting the upgrade file, obtaining access information of the upgrade file further includes:
and detecting whether the removable storage medium comprises the upgrade file or not when the removable storage medium is detected to be in the inserted state.
In one embodiment of the present invention, in response to detecting the upgrade file, obtaining access information of the upgrade file further includes:
connecting a remote server, and detecting whether login permission information is acquired or not;
and in response to detecting the login permission information is acquired, downloading an upgrade file.
On the other hand, a system upgrade apparatus provided in an embodiment of the present invention is configured to perform the system upgrade method described in the above embodiment, including:
The access information acquisition module is used for responding to the detection of the upgrade file and acquiring access information of the upgrade file;
The upgrade confirmation message triggering module is used for triggering upgrade confirmation messages according to the access information;
The upgrade module is used for responding to the upgrade confirmation message as an upgrade message and acquiring the upgrade file according to the access information; analyzing the upgrade file, and determining the file attribute of the corresponding upgrade sub-file according to the file attribute mark during analysis; upgrading the corresponding module according to the file attribute of the upgrading sub-file;
And the system version updating module is used for updating the system version information according to the upgrade file after the upgrade is finished.
In one embodiment of the present invention, the system upgrade apparatus further includes:
the login permission information detection module is used for connecting a remote server and detecting whether login permission information is acquired or not;
the upgrade file downloading module is used for downloading an upgrade file in response to the detection of obtaining the login permission information;
the upgrade file detection module is used for detecting whether the removable storage medium comprises an upgrade file or not when the removable storage medium is detected to be in an insertion state; or for detecting a downloaded upgrade file.
In still another aspect, an upgrade system provided by an embodiment of the present invention includes: a processor and a memory; wherein the memory stores instructions for execution by the processor and the processor is configured to execute the instructions to implement any of the foregoing system upgrade methods.
Compared with the prior art, the method has the beneficial effects that:
1. according to the system upgrading method, the upgrading sub-files are provided with different file attribute marks according to different upgrading modes, and corresponding modules can be upgraded according to the file attributes of the upgrading files in the upgrading process, so that ordered upgrading of various firmware is realized.
2. The system upgrading method of the embodiment of the invention can upgrade by using the upgrading file stored by the movable storage medium or can upgrade by downloading the upgrading file by the remote server, and the two modes can ensure that the upgrade is smoothly carried out.
3. The embodiment of the invention upgrades by using the stored upgrade file of the movable storage medium, and compared with a burning mode upgrade system, the embodiment of the invention has simple and convenient operation and good applicability.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a system upgrade method according to an embodiment of the present invention;
FIG. 2 is an upgrade flowchart of an embedded system according to an embodiment of the present invention;
FIG. 3 is an upgrade flowchart of another embedded system according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a system upgrade apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of another system upgrade apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an upgrade system according to an embodiment of the present invention;
Fig. 7 is a schematic diagram of a computer readable storage medium according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The system upgrade mode is wire connection upgrade and remote network upgrade. The embedded linux device for the wired connection upgrade can be provided with a hardware circuit entering a burning mode, and the device is upgraded through the wired connection in the specific burning mode by using a specific burning tool, but the wired connection can be performed only by disassembling an outer package when the device is upgraded in the upgrading mode, so that the operation is troublesome, or a specific interface is required to be reserved on an appearance structure, the production and processing flow is increased, in addition, the upgrading mode is complicated, a special burning tool and the burning device are required to be provided for a customer, the operation is complicated, and the applicability is poor.
The remote network upgrade is to download the upgrade image through the network, unpack the image, process, the remote network upgrade mode needs good network connection, the upgrade speed is affected by the network speed, the larger file needs longer time, and the upgrade failure caused by the network abnormality in the middle of the upgrade occurs. In addition, different firmware upgrades need to adopt different upgrading modes, and the existing upgrading modes can not meet the upgrading requirements of various firmware upgrades.
Based on the above, an upgrade mode of the embodiment of the present application is provided.
[ First embodiment ]
The embodiment of the invention provides a system upgrading method, please refer to fig. 1, as shown in fig. 1, the system upgrading method of the embodiment includes:
s1: in response to detecting an upgrade file, access information of the upgrade file is acquired;
in this embodiment, the access information includes a path and a name of the upgrade file.
S2: triggering an upgrade confirmation message according to the access information, wherein the upgrade file comprises a plurality of upgrade subfiles, and each upgrade subfile is provided with a file attribute mark;
In this embodiment, the triggered upgrade confirmation message is displayed through a display screen popup. The upgrade file is an upgrade image file package, and the upgrade image file package comprises file header information and a plurality of upgrade subfiles, wherein the file header information comprises an upgrade file version number, an embedded system kernel version number, a kernel file length and verification information; each of the upgrade sub-files is provided with a different file attribute flag according to the upgrade mode, and in this embodiment, for example, the file attributes of the upgrade sub-files are defined by the following modes:
the definition update_file_type_reg (0)// common FILE;
the #define update_file_type_dir (1)// folder;
A# define update_file_type_chr (2)// character device;
a # definition update_file_type_blk (3)// block device;
a #define update_file_type_lnk (4)// link FILE;
the #define UPDATE_FILE_TYPE_KER (5)// Kernel mirror;
a# define update_file_type_nand (6)// NAND mirror;
a #define update_file_type_boot (7)// BOOT FILE;
The #define update_file_type_mcu (8)// processing card MCU program;
the #define update_file_type_ MCUF (9)// input card mcu program;
The #define update_file_type_ FPGAF8 (10)// input card fpga program;
A #define update_file_type_fpga (11)// processing card FPGA FILE;
The file attribute of the upgrade sub-file may be defined by a label according to the actual situation, which is not limited in this embodiment.
S3: responding to the upgrade confirmation message as an upgrade message, and acquiring the upgrade file according to the access information;
s4: analyzing the upgrade file, and determining the file attribute of the corresponding upgrade sub-file according to the file attribute mark during analysis;
In this embodiment, the file attributes include sdk (Software Development Kit ) files and system firmware.
S5: and upgrading the corresponding module according to the file attribute of the upgrading sub-file.
Specifically, the method comprises the following steps:
When the file attribute of the upgrading sub-file is sdk files, upgrading the sdk files in an incremental coverage mode;
When the file attribute of the upgrading sub-file is detected to be the system firmware, determining the firmware type corresponding to the file attribute of the upgrading sub-file; according to the firmware type, a corresponding upgrading process is called to upgrade the firmware; and reading and recording the firmware version information after the upgrading is successful.
In this embodiment, the sdk files include a UBOOT (Universal Boot Loader, general purpose boot loader) file, an app (ACCELERATED PARALLEL Processing ) file, a lib (library) file, or a patch file, and the firmware types include an MCU (Microcontroller Unit, micro control unit) or an FPGA (Field Programmable GATE ARRAY ). When the file attribute of the upgrade file is sdk files, directly copying UBOOT files, app files, lib files or patch files into a file system sector where a system to be upgraded is located, and covering file information in front of the file system sector so as to achieve the aim of upgrading. When the file attribute of the upgrade file is detected to be the system firmware, judging that the firmware type is MCU or FPGA, selecting the corresponding upgrade process according to the firmware type to upgrade the firmware, reading the version number of the upgraded firmware, and recording the version number, wherein the MCU upgrade method and the FPGA upgrade method are the existing upgrade methods and are not repeated herein.
In this embodiment, before resolving the upgrade file, checking the upgrade image file package, and unpacking the upgrade image file package after checking is completed to obtain the upgrade sub-file; specifically, the file header information of the upgrade image file package is checked through a checking algorithm to determine the accuracy of the upgrade image file package. After the verification is completed, unpacking the upgrade image file package through an analysis tool to obtain the upgrade sub-file.
Further, the system upgrade method of the present embodiment further includes, after step S5:
S6: and updating the version information of the system according to the upgrade file.
In addition, in the present embodiment, in response to the update file not being detected or the update confirmation message being a non-update message, the update operation is stopped.
Further, the system upgrade method of the present embodiment, before step S1, further includes:
s0: and detecting whether the removable storage medium comprises the upgrade file or not when the removable storage medium is detected to be in the inserted state.
In particular, the removable storage medium may be one of a usb disk, a removable hard disk, a floppy disk, an optical disk, or a memory card. In this embodiment, the removable storage medium is a usb disk. The upgrade is carried out by utilizing the stored upgrade file of the movable storage medium, and compared with a burning mode upgrade system, the operation is simple and convenient, and the applicability is good.
Further, the system upgrade method of the present embodiment, before step S1, may further include:
S0': connecting a remote server, and detecting whether login permission information is acquired or not; and in response to detecting the login permission information is acquired, downloading an upgrade file.
In addition, in the present embodiment, in response to detecting that the login permission information is not acquired, that the upgrade file is not detected, or that the upgrade confirmation message is a non-upgrade message, the upgrade operation is stopped.
According to the system upgrading method, different file attributes are set for the upgrading sub-files according to different upgrading modes, and corresponding modules can be upgraded according to the file attributes of the upgrading sub-files in the upgrading process, so that ordered upgrading of various firmware is achieved. In addition, in the system upgrading method of the embodiment, when a good network connection exists in the system upgrading process, the upgrading file can be downloaded through the remote server for upgrading; when the equipment to be upgraded is required to be used outdoors, the network environment is poor, or the equipment cannot be normally connected to a remote server due to regional limitation, the equipment can be upgraded by using an upgrade file stored by a movable storage medium, and the two upgrade modes can ensure that the system upgrade is smoothly carried out.
[ Second embodiment ]
In this embodiment, taking an upgrade process of a video processing apparatus as an example, two upgrade modes of the system upgrade method described in the first embodiment are specifically described. Referring to fig. 2 and fig. 3, fig. 2 is an upgrade flowchart of an embedded system provided by an embodiment of the present invention, fig. 3 is an upgrade flowchart of another embedded system provided by an embodiment of the present invention, as shown in the drawings, where fig. 2 is a local usb disk upgrade mode, and fig. 3 is a remote network upgrade mode.
As shown in fig. 2, the upgrade flow of the usb flash disk upgrade method is as follows:
Step 1: an upgrade image package img file is put in the U disk, and video processing equipment to be upgraded is inserted;
step 2: imd process detects a USB plug event;
step 3: detecting whether an img file exists in the U disk, if so, executing the step4, and if not, exiting;
Step 4: transmitting the 'path+name' of the upgrade file to a lsd (linux SYSTEM DESIGN ) process (liquid crystal APP);
step 5: the lsd process receives the upgrade signal;
Step 6: according to the received upgrade signal, the display screen pops up a window for confirming whether to upgrade, if yes, the step 7 is executed, if not, the display screen exits;
Step 7: upgd (upgd, upgrade) process performs upgrade tasks, including the steps of:
(1) Checking the upgrade image package, unpacking the upgrade image package after checking, and obtaining an upgrade sub-file;
(2) Detecting file attributes of the upgrade sub-files;
(3) If the file attribute of the upgrading sub-file is sdk files, upgrading by adopting an incremental coverage mode;
The sdk files include UBOOT files, app files, lib files, or patch files.
(4) When detecting that the file attribute of the upgrade sub-file is system firmware,
(4.1) Determining a firmware type corresponding to the attribute of the upgrade sub-file;
the firmware types include MCUs or FPGAs, for example: processing card mcu, processing card fpga_a, processing card fpga_b, input card FPGA, and input card mcu.
(4.2) Calling a corresponding upgrading process according to the firmware type to upgrade the firmware;
and (4.3) reading and recording the firmware version information after the upgrading is successful.
Step 8: and after the upgrading is finished, updating the version information of the system according to the upgrading file.
As shown in fig. 3, the upgrade procedure of the remote network upgrade mode is as follows:
step 1: entering an upper computer software upgrading interface;
step 2: connecting a remote server;
step 3: judging whether login permission is acquired, if yes, executing the step 4, and if not, exiting;
step 4: downloading an upgrade image package;
Step 5: detecting whether the upgrade image packet is downloaded successfully, if so, executing the step 5, and if not, exiting;
Step 6: the display screen pops up whether to confirm the window of upgrading, if yes, carry out step 7, if not, withdraw from;
step 7: upgd processes perform upgrade tasks.
Step 7 is the same as step 7 in the upgrade procedure in the flash disk upgrade mode, and will not be described here again.
Step 8: and after the upgrading is finished, updating the version information of the system according to the upgrading file.
[ Third embodiment ]
The present embodiment provides a system upgrade apparatus to implement a removable storage medium upgrade method of the system upgrade method described in the first embodiment. Referring to fig. 4, fig. 4 is a schematic block diagram of a system upgrade apparatus according to an embodiment of the present invention, as shown in the drawing, the system upgrade apparatus provided in the embodiment includes: and the upgrade file detection module 1 is used for detecting whether the removable storage medium comprises an upgrade file or not when the removable storage medium is detected to be in an inserted state. And the access information acquisition module 2 is used for acquiring the access information of the upgrade file in response to detecting the upgrade file. And the upgrade confirmation message triggering module 3 is used for triggering the upgrade confirmation message according to the access information. The upgrade module 4 is used for responding to the upgrade confirmation message as an upgrade message and acquiring the upgrade file according to the access information; analyzing the upgrade file, and determining the file attribute of the corresponding upgrade sub-file according to the file attribute mark during analysis; and upgrading the corresponding module according to the file attribute of the upgrading sub-file. And the system version updating module 5 is used for updating the system version information according to the upgrade file after the upgrade is finished. And an upgrade operation stopping module 6, configured to stop the upgrade operation in response to not detecting the upgrade file or the upgrade confirmation message being a non-upgrade message.
[ Fourth embodiment ]
The present embodiment provides a system upgrade apparatus to implement a remote network upgrade method of the system upgrade method described in the first embodiment. Referring to fig. 5, fig. 5 is a schematic block diagram of another system upgrade apparatus according to an embodiment of the present invention, as shown in the drawing, the system upgrade apparatus provided in the embodiment includes: the functions of the upgrade file detection module 1, the access information acquisition module 2, the upgrade confirmation message trigger module 3, the upgrade module 4, the system version update module 5, the upgrade operation stop module 6, the login permission information detection module 7, and the upgrade file download module 8 are described in the third embodiment, and the functions of the access information acquisition module 2, the upgrade confirmation message trigger module 3, the upgrade module 4, the system version update module 5, and the upgrade operation stop module 6 are not described in detail herein. The upgrade file detection module 1 is used for detecting a downloaded upgrade file. The upgrade operation stopping module 6 is further configured to stop the upgrade operation in response to detecting that the login permission information is not acquired. The login permission information detection module 7 is used for connecting a remote server and detecting whether login permission information is acquired. And the upgrade file downloading module 8 is used for downloading the upgrade file in response to detecting that the login permission information is acquired.
[ Fifth embodiment ]
Referring to fig. 6, fig. 6 is a schematic diagram of an upgrade system provided in an embodiment of the present invention, as shown in the drawing, an upgrade system 90 of the present embodiment includes: a processor 91 and a memory 92; wherein the memory 92 stores instructions for execution by the processor 91 and which, for example, cause the processor 91 to perform operations to perform the system upgrade method described in the foregoing first embodiment.
[ Sixth embodiment ]
Referring to fig. 7, fig. 7 is a schematic diagram of a computer readable storage medium according to an embodiment of the present invention, and as shown in the drawing, a computer readable storage medium 100 is further provided, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the system upgrade method according to any one of the embodiments are implemented.
The computer readable Memory is a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the computer readable memory may also be at least one memory device located remotely from the aforementioned processor.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments may be arbitrarily combined and matched without conflict in technical features, contradiction in structure, and departure from the purpose of the present invention.
In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and/or methods may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and the division of the units/modules is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units/modules described as separate units may or may not be physically separate, and units/modules may or may not be physically units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated in one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated in one unit/module. The integrated units/modules may be implemented in hardware or in hardware plus software functional units/modules.
The integrated units/modules implemented in the form of software functional units/modules described above may be stored in a computer readable storage medium. The software functional units described above are stored in a storage medium and include instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device, etc.) to perform some steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A system upgrade method, comprising:
In response to detecting an upgrade file, access information of the upgrade file is acquired;
triggering an upgrade confirmation message according to the access information, wherein the upgrade file comprises a plurality of upgrade subfiles, and each upgrade subfile is provided with a file attribute mark;
Responding to the upgrade confirmation message as an upgrade message, and acquiring the upgrade file according to the access information;
analyzing the upgrade file, and determining the file attribute of the corresponding upgrade sub-file according to the file attribute mark during analysis;
upgrading the corresponding module according to the file attribute of the upgrading sub-file;
upgrading the corresponding module according to the file attribute of the upgrading sub-file, including:
when the file attribute of the upgrading sub-file is detected to be the system firmware, determining the firmware type corresponding to the file attribute of the upgrading sub-file;
The firmware is upgraded by calling a corresponding upgrading process according to the firmware type, wherein the firmware type comprises an MCU or an FPGA;
reading and recording firmware version information after successful upgrading;
and upgrading the sdk file in an incremental coverage mode when the file attribute of the upgrading sub-file is sdk files, wherein the sdk file comprises a UBOOT file, an app file, a lib file or a patch file.
2. The system upgrade method of claim 1, wherein the file attributes comprise sdk files and system firmware.
3. The system upgrade method of claim 1, wherein upgrading the corresponding module according to the file attribute of the upgrade sub-file further comprises:
And updating the version information of the system according to the upgrade file.
4. The system upgrade method of claim 1, wherein in response to detecting an upgrade file, obtaining access information for the upgrade file, further comprising:
and detecting whether the removable storage medium comprises the upgrade file or not when the removable storage medium is detected to be in the inserted state.
5. The system upgrade method of claim 1, wherein in response to detecting an upgrade file, obtaining access information for the upgrade file, further comprising:
connecting a remote server, and detecting whether login permission information is acquired or not;
and in response to detecting the login permission information is acquired, downloading an upgrade file.
6. A system upgrade apparatus for performing the system upgrade method according to any one of claims 1-5, comprising:
The access information acquisition module is used for responding to the detection of the upgrade file and acquiring access information of the upgrade file;
The upgrade confirmation message triggering module is used for triggering upgrade confirmation messages according to the access information;
The upgrade module is used for responding to the upgrade confirmation message as an upgrade message and acquiring the upgrade file according to the access information; analyzing the upgrade file, and determining the file attribute of the corresponding upgrade sub-file according to the file attribute mark during analysis; upgrading the corresponding module according to the file attribute of the upgrading sub-file;
And the system version updating module is used for updating the system version information according to the upgrade file after the upgrade is finished.
7. The system upgrade apparatus of claim 6, further comprising:
the login permission information detection module is used for connecting a remote server and detecting whether login permission information is acquired or not;
the upgrade file downloading module is used for downloading an upgrade file in response to the detection of obtaining the login permission information;
the upgrade file detection module is used for detecting whether the removable storage medium comprises an upgrade file or not when the removable storage medium is detected to be in an insertion state; or for detecting a downloaded upgrade file.
8. An upgrade system, comprising: a processor and a memory; wherein the memory stores instructions for execution by the processor and the processor is configured to execute the instructions to implement the system upgrade method according to any one of claims 1 to 6.
CN201911395641.0A 2019-12-30 2019-12-30 System upgrading method, device and system Active CN113127017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911395641.0A CN113127017B (en) 2019-12-30 2019-12-30 System upgrading method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911395641.0A CN113127017B (en) 2019-12-30 2019-12-30 System upgrading method, device and system

Publications (2)

Publication Number Publication Date
CN113127017A CN113127017A (en) 2021-07-16
CN113127017B true CN113127017B (en) 2024-07-12

Family

ID=76767775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911395641.0A Active CN113127017B (en) 2019-12-30 2019-12-30 System upgrading method, device and system

Country Status (1)

Country Link
CN (1) CN113127017B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786542A (en) * 2014-12-26 2016-07-20 乐视致新电子科技(天津)有限公司 Intelligent device and system update method of the intelligent device
CN106126297A (en) * 2016-06-30 2016-11-16 西安诺瓦电子科技有限公司 Method for upgrading system based on Android operation system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404521B (en) * 2014-05-30 2017-05-31 广州市动景计算机科技有限公司 A kind of method for updating increment and relevant apparatus
CN107783777A (en) * 2016-08-29 2018-03-09 深圳市中兴微电子技术有限公司 A kind of upgrade method, equipment and the system of vehicle-mounted integral machine
CN106658192A (en) * 2016-12-14 2017-05-10 广州视源电子科技股份有限公司 Control method and device for system upgrading
CN107194242B (en) * 2017-03-30 2019-11-08 百富计算机技术(深圳)有限公司 Firmware upgrade method and device
CN109933351B (en) * 2019-03-08 2021-09-21 长飞光纤光缆股份有限公司 Method and device for repairing and upgrading Linux system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786542A (en) * 2014-12-26 2016-07-20 乐视致新电子科技(天津)有限公司 Intelligent device and system update method of the intelligent device
CN106126297A (en) * 2016-06-30 2016-11-16 西安诺瓦电子科技有限公司 Method for upgrading system based on Android operation system

Also Published As

Publication number Publication date
CN113127017A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN109358858B (en) Automatic deployment method, device, medium and electronic equipment
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
US9027014B2 (en) Updating firmware compatibility data
US20160188315A1 (en) Upgradable firmware system
CN105323269A (en) Method for updating APP in Android system, terminal and storage medium
CN104216719A (en) Method and device for updating android system
CN111144839A (en) Project construction method, continuous integration system and terminal equipment
CN110457049B (en) Method and device for realizing plug-in automation, electronic equipment and storage medium
CN114036113A (en) Device management method, device, electronic device and storage medium
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium
CN112068850A (en) Method and device for creating service product instance and electronic equipment
CN104484176B (en) A kind of Android system window object acquisition methods and device
CN113778391A (en) Page processing method, device and equipment for native application program
CN113127017B (en) System upgrading method, device and system
CN110889116A (en) Advertisement blocking method and device and electronic equipment
CN110825417A (en) Application program updating method and system
CN108279937B (en) Parameter calling method and device, storage medium and electronic equipment
CN117235707A (en) Application program starting method and device, electronic equipment and storage medium
CN117215558A (en) Visual software development method, device, equipment and medium for android
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
EP3958114A1 (en) Software eligibility
CN110597536B (en) Software upgrading method, system and terminal equipment
CN112379943A (en) Plug-in application method and device of Electron application program and storage medium
CN114356290A (en) Data processing method and device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant