技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种设备远程备份升级方法、装置、计算机存储介质及设备。The present invention relates to the field of computer technology, in particular to a device remote backup and upgrade method, device, computer storage medium and device.
背景技术Background technique
嵌入式设备从上电到应用程序正常运行,其间经历过一系列漫长的过程。嵌入式设备上电后,CPU开始运行,通常CPU会从某一个固定的物理地址开始运行,这个物理地址一般是Flash芯片的起始物理地址。Flash芯片的最初一段通常存放的是u-boot(UniversalBoot Loader,通用引导加载程序),于是CPU就会开始运行u-boot的代码。完成Boot loader初始化后,根据代码中设定的内核区物理地址,Bootloader会把内核区压缩后的Linux镜像拷贝到内存中并解压。同时准备好内核的启动参数,如:console=ttyS0,115200root=31:2mtdparts=ar7100-nor0,这里主要是把Bootloader里设置的MTD(memory technologydevice,存储技术设备)分区信息传递给内核,还有需要加载的根文件系统。最后跳转到内核入口开始运行。接下来Linux内核会挂载根文件系统,要挂载的根文件系统是通过内核启动参数来获取的。Embedded devices have gone through a series of long processes from power-on to normal operation of the application program. After the embedded device is powered on, the CPU starts to run. Usually, the CPU starts to run from a certain fixed physical address. This physical address is usually the starting physical address of the Flash chip. The first section of the Flash chip usually stores u-boot (Universal Boot Loader, universal boot loader), so the CPU will start to run the u-boot code. After completing the boot loader initialization, according to the physical address of the kernel area set in the code, the Bootloader will copy the compressed Linux image of the kernel area to the memory and decompress it. At the same time, prepare the startup parameters of the kernel, such as: console=ttyS0, 115200root=31:2mtdparts=ar7100-nor0, here is mainly to pass the MTD (memory technology device, storage technology device) partition information set in the Bootloader to the kernel, there is also a need Mounted root filesystem. Finally jump to the kernel entry to start running. Next, the Linux kernel will mount the root file system, and the root file system to be mounted is obtained through the kernel startup parameters.
Linux内核继续初始化各种类型的驱动程序,完成之后会启动第一个应用程序,它的进程ID为1。这个应用程序可以由内核启动参数传入,如果没有则会默认执行/sbin/init。init进程会读取配置文件/etc/inittab,根据配置文件的内容它会完成两个工作,执行rcS和启动Shell。至此,Linux系统已经启动完成,给用户提供了一个Shell的交互环境,后续的行为就取决于用户的输入或者系统特定应用的加载。The Linux kernel continues to initialize various types of drivers, and after completion, it starts the first application, which has a process ID of 1. This application can be passed in by the kernel boot parameters, if not it will execute /sbin/init by default. The init process will read the configuration file /etc/inittab. According to the content of the configuration file, it will complete two tasks, execute rcS and start the Shell. So far, the Linux system has been started, and a Shell interactive environment is provided to the user, and the subsequent behavior depends on the user's input or the loading of a specific system application.
以上是嵌入式设备正常启动相关流程,但是现有嵌入式设备启动流程中进场会发现存在内核、文件系统升级成功但应用程序升级失败,或者内核与应用程序都升级成功但应用程序启动异常则运行另一目录的软件版本的问题,增加了由于内核已升级故与当前应用程序不兼容的情况。The above is the process related to the normal startup of embedded devices, but in the startup process of existing embedded devices, it will be found that the kernel and file system are successfully upgraded but the application upgrade fails, or both the kernel and the application are successfully upgraded but the application starts abnormally. Problems with running software versions from another directory, adding cases where the kernel has been upgraded and is not compatible with the current application.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的设备远程备份升级方法、装置、计算机存储介质及设备。In view of the above problems, the present invention is proposed to provide a remote backup and upgrade method, device, computer storage medium and equipment for overcoming the above problems or at least partially solving the above problems.
本发明的一个方面,提供了一种设备远程备份升级方法,包括:One aspect of the present invention provides a method for remote backup and upgrade of equipment, including:
根据备份升级标志确定嵌入式设备待引导的目标系统文件是否为系统升级文件,所述嵌入式设备的flash存储空间中包括用于存储当前系统文件的第一存储区域、用于存储系统升级文件的第二存储区域以及备份升级标志管理区域;Determine whether the target system file to be guided by the embedded device is a system upgrade file according to the backup upgrade sign, and the flash storage space of the embedded device includes a first storage area for storing the current system file, a storage area for the system upgrade file The second storage area and the backup upgrade sign management area;
若目标系统文件为系统升级文件,则从所述第二存储区域中获取所述系统升级文件,并对所述系统升级文件进行数据校验;If the target system file is a system upgrade file, obtaining the system upgrade file from the second storage area, and performing data verification on the system upgrade file;
若所述系统升级文件校验失败,则修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。If the verification of the system upgrade file fails, the backup upgrade flag is modified to indicate that the backup upgrade of the embedded device fails, and the target system file to be booted is switched to the current system file.
可选地,所述方法还包括:若所述系统升级文件校验成功,则根据所述系统升级文件进行系统升级,以及Optionally, the method further includes: if the system upgrade file is verified successfully, performing system upgrade according to the system upgrade file, and
当系统升级成功时,修改所述备份升级标志,以标识嵌入式设备备份升级成功。When the system upgrade is successful, the backup upgrade flag is modified to indicate that the backup upgrade of the embedded device is successful.
可选地,所述根据所述系统升级文件进行系统升级,包括:Optionally, the performing system upgrade according to the system upgrade file includes:
获取所述系统升级文件中内核分区信息和根文件系统分区信息;Obtain kernel partition information and root file system partition information in the system upgrade file;
根据所述内核分区信息进行内核升级;Carrying out kernel upgrade according to the kernel partition information;
若内核升级成功,则创建内核更新标识文件,以及If the kernel upgrade is successful, create a kernel update identification file, and
根据所述根文件系统分区信息进行根文件系统升级;Perform root file system upgrade according to the partition information of the root file system;
若根文件系统升级成功,则创建根文件系统更新标识文件,以及If the root file system upgrade is successful, create a root file system update identification file, and
根据升级后的内核和根文件系统进行应用程序升级。Application upgrades are performed based on the upgraded kernel and root file system.
可选地,若根文件系统升级失败,所述方法还包括:Optionally, if the upgrade of the root file system fails, the method further includes:
删除所述内核更新标识文件,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。The kernel update identification file is deleted, and the backup upgrade flag is modified to identify the backup upgrade failure of the embedded device, and the target system file to be booted is switched to the current system file.
可选地,若应用程序升级失败,所述方法还包括:Optionally, if the application upgrade fails, the method further includes:
删除所述根文件系统更新标识文件和内核更新标识文件,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。Deleting the root file system update identification file and the kernel update identification file, and modifying the backup upgrade flag to identify the failure of the backup upgrade of the embedded device, and switching the target system file to be booted to the current system file.
可选地,在根据备份升级标志确定所述嵌入式设备待引导的目标系统文件是否为系统升级文件之前,还包括:Optionally, before determining whether the target system file to be booted by the embedded device is a system upgrade file according to the backup upgrade flag, it also includes:
远程获取所述系统升级文件,判断所述系统升级文件是否为待更新的升级文件;Obtaining the system upgrade file remotely, and judging whether the system upgrade file is an upgrade file to be updated;
若所述系统升级文件为待更新的升级文件,则将所述系统升级文件存储到所述第二存储区域,并修改所述备份升级标志,以将待引导的目标系统文件更新为所述系统升级文件。If the system upgrade file is an upgrade file to be updated, store the system upgrade file in the second storage area, and modify the backup upgrade flag to update the target system file to be booted to the system a.
可选地,在所述系统升级文件校验失败之后,所述方法还包括:Optionally, after the verification of the system upgrade file fails, the method further includes:
当备份升级标志标识嵌入式设备备份升级失败时,获取所述当前系统文件,并对所述当前系统文件进行数据校验;When the backup and upgrade flag indicates that the backup and upgrade of the embedded device fails, the current system file is obtained, and data verification is performed on the current system file;
若所述当前系统文件校验成功,则根据所述当前系统文件进行系统启动。If the verification of the current system file is successful, the system is started according to the current system file.
本发明的另一个方面,提供了一种设备远程备份升级装置,包括:Another aspect of the present invention provides a remote backup and upgrade device for equipment, including:
识别单元,用于根据备份升级标志确定嵌入式设备待引导的目标系统文件是否为系统升级文件,所述嵌入式设备的flash存储空间中包括用于存储当前系统文件的第一存储区域、用于存储系统升级文件的第二存储区域以及备份升级标志管理区域;The identification unit is used to determine whether the target system file to be booted by the embedded device is a system upgrade file according to the backup upgrade flag, and the flash storage space of the embedded device includes a first storage area for storing the current system file, for A second storage area for storing system upgrade files and a backup upgrade sign management area;
校验单元,用于当目标系统文件为系统升级文件时,从所述第二存储区域中获取所述系统升级文件,并对所述系统升级文件进行数据校验;A verification unit, configured to obtain the system upgrade file from the second storage area when the target system file is a system upgrade file, and perform data verification on the system upgrade file;
升级处理单元,用于当所述系统升级文件校验失败时,修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。The upgrade processing unit is configured to modify the backup upgrade flag to identify the backup upgrade failure of the embedded device when the system upgrade file verification fails, and switch the target system file to be booted to the current system file.
可选地,所述升级处理单元,还用于当所述系统升级文件校验成功时,根据所述系统升级文件进行系统升级,以及,当系统升级成功时,修改所述备份升级标志,以标识嵌入式设备备份升级成功。Optionally, the upgrade processing unit is further configured to perform system upgrade according to the system upgrade file when the verification of the system upgrade file is successful, and, when the system upgrade is successful, modify the backup upgrade flag to Indicates that the backup of the embedded device has been upgraded successfully.
可选地,所述升级处理单元,包括:Optionally, the upgrade processing unit includes:
获取模块,用于获取所述系统升级文件中内核分区信息和根文件系统分区信息;An acquisition module, configured to acquire kernel partition information and root file system partition information in the system upgrade file;
升级模块,用于根据所述内核分区信息进行内核升级;An upgrade module, configured to upgrade the kernel according to the kernel partition information;
配置模块,用于当内核升级成功时,创建内核更新标识文件;The configuration module is used to create a kernel update identification file when the kernel upgrade is successful;
所述升级模块,还用于根据所述根文件系统分区信息进行根文件系统升级;The upgrade module is also used to upgrade the root file system according to the partition information of the root file system;
所述配置模块,还用于当根文件系统升级成功时,创建根文件系统更新标识文件;The configuration module is also used to create a root file system update identification file when the root file system is upgraded successfully;
所述升级模块,还用于根据升级后的内核和根文件系统进行应用程序升级。The upgrade module is also used to upgrade the application program according to the upgraded kernel and root file system.
可选地,所述配置模块,还用于当根文件系统升级失败时,删除所述内核更新标识文件,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件;和/或,当应用程序升级失败时,删除所述根文件系统更新标识文件和内核更新标识文件,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。Optionally, the configuration module is also used to delete the kernel update identification file when the root file system upgrade fails, and modify the backup upgrade flag to identify the backup upgrade failure of the embedded device, and to boot the The target system file is switched to the current system file; and/or, when the application upgrade fails, delete the root file system update identification file and the kernel update identification file, and modify the backup upgrade flag to identify the embedded device backup upgrade Failed, and the target system file to be booted is switched to the current system file.
可选地,所述装置还包括:Optionally, the device also includes:
获取单元,用于在所述识别单元根据备份升级标志确定所述嵌入式设备待引导的目标系统文件是否为系统升级文件之前,远程获取所述系统升级文件,判断所述系统升级文件是否为待更新的升级文件;The acquisition unit is used to remotely acquire the system upgrade file and determine whether the system upgrade file is to be Updated upgrade files;
所述升级处理单元,还用于当所述系统升级文件为待更新的升级文件时,将所述系统升级文件存储到所述第二存储区域,并修改所述备份升级标志,以将待引导的目标系统文件更新为所述系统升级文件。The upgrade processing unit is further configured to store the system upgrade file in the second storage area when the system upgrade file is an upgrade file to be updated, and modify the backup upgrade flag so that the system upgrade file to be booted The target system file is updated to the system upgrade file.
可选地,所述校验单元,还用于在所述系统升级文件校验失败之后,当备份升级标志标识嵌入式设备备份升级失败时,获取所述当前系统文件,并对所述当前系统文件进行数据校验;Optionally, the verifying unit is further configured to obtain the current system file when the backup upgrade flag indicates that the backup upgrade of the embedded device fails after the verification of the system upgrade file fails, and perform an update on the current system file. File data verification;
所述升级处理单元,还用于当所述当前系统文件校验成功时,根据所述当前系统文件进行系统启动。The upgrade processing unit is further configured to start the system according to the current system file when the verification of the current system file is successful.
此外,本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述方法的步骤。In addition, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are realized.
此外,本发明还提供了一种设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述方法的步骤。In addition, the present invention also provides a device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor implements the steps of the above-mentioned method when executing the program.
本发明实施例提供的设备远程备份升级方法、装置、计算机存储介质及设备,在嵌入式设备的flash存储空间划分了系统文件备份区域和备份升级标志管理区域,系统升级时,flash存储空间中不仅存储系统升级文件,在备份区域还存储有升级前的当前系统文件,嵌入式设备启动时,当根据系统升级文件启动失败时,通过修改备份升级标志,标识嵌入式设备备份升级失败,并将待引导的文件切换为当前系统文件,已根据当前系统文件进行重新启动。本发明增加升级失败可回退版本功能,实现了设备的远程备份升级,可以灵活切换软件版本,广泛应用于嵌入式设备升级应用。The device remote backup and upgrade method, device, computer storage medium and device provided by the embodiments of the present invention divide the system file backup area and the backup upgrade flag management area in the flash storage space of the embedded device. When the system is upgraded, not only Store the system upgrade file, and store the current system file before the upgrade in the backup area. When the embedded device starts and fails to start according to the system upgrade file, the backup and upgrade flag of the embedded device is marked to indicate that the backup and upgrade of the embedded device has failed, and will wait for The boot file is switched to the current system file, and the system has been restarted according to the current system file. The invention adds the function of reverting version after upgrade failure, realizes remote backup and upgrade of equipment, can switch software versions flexibly, and is widely used in embedded equipment upgrade applications.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1为本发明实施例提供的一种设备远程备份升级方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for remotely backing up and upgrading equipment provided by an embodiment of the present invention;
图2为本发明实施例中内核kernel和根文件系统在flash存储空间的存储方式示意图;Fig. 2 is the schematic diagram of the storage mode of kernel kernel and root file system in flash storage space in the embodiment of the present invention;
图3为本发明实施例中备份升级标志管理区域在flash存储空间的存储方式示意图;Fig. 3 is a schematic diagram of the storage mode of the backup upgrade flag management area in the flash storage space in the embodiment of the present invention;
图4为本发明另一实施例提供的一种设备远程备份升级方法的流程示意图;FIG. 4 is a schematic flowchart of a method for remotely backing up and upgrading equipment provided by another embodiment of the present invention;
图5为本发明实施例提供的一种设备远程备份升级方法中系统升级标识文件的处理流程示意图;5 is a schematic diagram of a processing flow of a system upgrade identification file in a method for remote backup and upgrade of equipment provided by an embodiment of the present invention;
图6为本发明实施例提供的设备远程备份升级装置的结构示意图;FIG. 6 is a schematic structural diagram of a device remote backup and upgrade device provided by an embodiment of the present invention;
图7为本发明实施例提供的设备的示意图。Fig. 7 is a schematic diagram of a device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be used in an idealized or overly formal sense unless specifically defined to explain.
本发明的目的在于提高一种嵌入式设备的远程备份升级方法,以解决外场发现的存在内核、文件系统升级成功但应用程序升级失败,或者内核与应用程序都升级成功但应用程序启动异常的问题,进一步解决由于内核已升级与当前应用程序不兼容的情况。The purpose of the present invention is to improve a remote backup and upgrade method for embedded devices to solve the problems found in the field that the kernel and file system upgrades are successful but the application program upgrades fail, or both the kernel and application programs are successfully upgraded but the application programs start abnormally. , to further solve the situation that the kernel has been upgraded and is not compatible with the current application.
图1为本发明一个实施例的设备远程备份升级方法的流程图。参照图1,本发明实施例的设备远程备份升级方法具体包括以下步骤:FIG. 1 is a flow chart of a method for remote backup and upgrade of equipment according to an embodiment of the present invention. Referring to Fig. 1, the device remote backup upgrade method of the embodiment of the present invention specifically includes the following steps:
S11、根据备份升级标志确定嵌入式设备待引导的目标系统文件是否为系统升级文件,所述嵌入式设备的flash存储空间中包括用于存储当前系统文件的第一存储区域、用于存储系统升级文件的第二存储区域以及备份升级标志管理区域。S11. Determine whether the target system file to be booted by the embedded device is a system upgrade file according to the backup upgrade flag, and the flash storage space of the embedded device includes a first storage area for storing the current system file for storage system upgrade A second storage area for files and a backup and upgrade sign management area.
其中,当前系统文件包括升级前的内核和根文件系统,系统升级文件包括升级的内核和根文件系统。在flash存储空间中内核kernel和根文件系统的存储方式如图2所示。参见图2,本发明对内核和根文件系统实现了双冗余备份。其中,第一存储区域包括两部分,一部分存储升级前的内核kernel1,一部分存储升级前的根文件系统rootfs1;第二存储区域也包括两部分,一部分存储升级的内核kernel2,一部分存储升级的根文件系统rootfs2。Wherein, the current system file includes the kernel and the root file system before the upgrade, and the system upgrade file includes the upgraded kernel and the root file system. The storage mode of the kernel kernel and the root file system in the flash storage space is shown in Figure 2. Referring to Fig. 2, the present invention realizes dual redundancy backup to the kernel and the root file system. Among them, the first storage area includes two parts, one part stores the kernel kernel1 before the upgrade, and the other part stores the root file system rootfs1 before the upgrade; the second storage area also includes two parts, one part stores the upgraded kernel kernel2, and the other part stores the upgraded root file System rootfs2.
本实施例中,在根据备份升级标志确定所述嵌入式设备待引导的目标系统文件是否为系统升级文件之前,远程获取升级包,即所述系统升级文件,判断所述系统升级文件是否为待更新的升级文件;若所述系统升级文件为待更新的升级文件,则将所述系统升级文件存储到所述第二存储区域,并修改所述备份升级标志,以将待引导的目标系统文件更新为所述系统升级文件。具体的,当应用层需要升级时,可根据获取的系统升级文件的版本号判别当前是否需要更新升级,若需要升级,则利用底层接口库进行升级包校验,并在校验成功后,更新对应备份升级标志区域。In this embodiment, before determining whether the target system file to be booted by the embedded device is a system upgrade file according to the backup upgrade flag, the upgrade package, that is, the system upgrade file, is obtained remotely, and it is judged whether the system upgrade file is a pending system upgrade file. An updated upgrade file; if the system upgrade file is an upgrade file to be updated, the system upgrade file is stored in the second storage area, and the backup upgrade flag is modified so that the target system file to be booted Update the system upgrade file as described. Specifically, when the application layer needs to be upgraded, it can be judged according to the version number of the obtained system upgrade file whether it needs to be updated and upgraded. Corresponds to the backup upgrade flag area.
S12、若目标系统文件为系统升级文件,则从所述第二存储区域中获取所述系统升级文件,并对所述系统升级文件进行数据校验。S12. If the target system file is a system upgrade file, acquire the system upgrade file from the second storage area, and perform data verification on the system upgrade file.
S13、若所述系统升级文件校验失败,则修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。S13. If the verification of the system upgrade file fails, modify the backup upgrade flag to indicate that the backup upgrade of the embedded device fails, and switch the target system file to be booted to the current system file.
本发明实施例中,在所述系统升级文件校验失败之后,还包括:当备份升级标志标识嵌入式设备备份升级失败时,根据备份升级标志确定嵌入式设备当前待引导的目标系统文件为当前系统文件,此时获取所述当前系统文件,并对所述当前系统文件进行数据校验。若所述当前系统文件校验成功,则根据所述当前系统文件进行系统启动。若所述当前系统文件校验失败,则再次将待引导的目标系统文件切换为系统升级文件。具体的,系统文件,即内核或根文件系统,切换次数try不大于切换阈值,由于本实施例中,内核和根文件系统只实现双冗余备份,3次就能遍历完Flash中能使用的映像,所以切换阈值可设置为3次,当大于3次则,进入控制台。In the embodiment of the present invention, after the verification of the system upgrade file fails, it further includes: when the backup upgrade flag indicates that the backup upgrade of the embedded device fails, according to the backup upgrade flag, it is determined that the target system file to be booted by the embedded device is the current System files, at this time, the current system files are obtained, and data verification is performed on the current system files. If the verification of the current system file is successful, the system is started according to the current system file. If the verification of the current system file fails, the target system file to be booted is switched to a system upgrade file again. Concretely, system file, i.e. kernel or root file system, switching times try is not greater than switching threshold value, because in this embodiment, kernel and root file system only realize double redundant backup, just can walk through all available in Flash 3 times image, so the switching threshold can be set to 3 times, and when it is greater than 3 times, it will enter the console.
本发明实施例中,嵌入式设备的flash存储空间中包括了内核kernel及其备份区域、根文件系统及其备份区域以及额外增加的备份升级标志区域管理区。系统远程升级需要u-boot的支持,u-boot引导内核和根文件系统是通过bootm命令来完成的,所以本发明通过改变bootm的处理流程实现。In the embodiment of the present invention, the flash storage space of the embedded device includes the kernel kernel and its backup area, the root file system and its backup area, and an additional backup upgrade flag area management area. The remote upgrade of the system requires the support of u-boot, and the u-boot guides the kernel and the root file system through the bootm command, so the present invention is realized by changing the processing flow of the bootm.
在实际应用中,完成Bootloader初始化后,根据代码中设定的内核区物理地址,Bootloader会把内核区压缩后的Linux镜像拷贝到内存中并解压。同时准备好内核的启动参数,如:console=ttyS0,115200root=31:2mtdparts=ar7100-nor0,这里主要是把Bootloader里设置的MTD分区信息传递给内核,然后加载根文件系统。因此,内核和根文件系统分别对应自己的备份升级标志,参见图3。在flash存储空间中备份升级标志管理区域的存储方式如图3所示,备份升级标志包括current、pending、update三个标志位,初始时刻三个标志位均为0。In practical applications, after bootloader initialization is completed, according to the physical address of the kernel area set in the code, the Bootloader will copy the compressed Linux image of the kernel area to the memory and decompress it. At the same time, prepare the startup parameters of the kernel, such as: console=ttyS0,115200root=31:2mtdparts=ar7100-nor0, here mainly transfer the MTD partition information set in the Bootloader to the kernel, and then load the root file system. Therefore, the kernel and the root file system respectively correspond to their own backup and upgrade marks, as shown in Figure 3. The storage mode of the backup upgrade flag management area in the flash storage space is shown in Figure 3. The backup upgrade flag includes three flag bits current, pending, and update, and the three flag bits are all 0 at the initial moment.
当远程获取到系统升级文件,将pending指向待引导的目标系统文件,即pending取值1,标识待引导的目标系统文件为第二存储区域的系统升级文件,update取值0xff,表示需要重新启动进行升级。When the system upgrade file is obtained remotely, point pending to the target system file to be booted, that is, the value of pending is 1, indicating that the target system file to be booted is the system upgrade file in the second storage area, and the value of update is 0xff, indicating that a restart is required to upgrade.
该方法在uboot启动时,执行bootm,bootm根据备份升级标志区域current、pending与update来确定拟引导的内核与根文件系统,当current、pending、update三个标志位取值为0、1、0xff时,表示需要重新启动进行升级,从第二存储区域中获取系统升级文件,然后对其进行CRC校验,校验成功则继续,否则切换到另一个映像,重新执行bootm流程。解压后,u-boot交出控制权。This method executes bootm when uboot starts, and bootm determines the kernel and root file system to be booted according to the backup and upgrade flag areas current, pending, and update. When the three flags of current, pending, and update take values of 0, 1, and 0xff , it means that it needs to be restarted to upgrade, obtain the system upgrade file from the second storage area, and then perform CRC verification on it, and continue if the verification is successful, otherwise switch to another image and execute the bootm process again. After decompression, u-boot surrenders control.
如果根据系统升级文件系统能正常启动,则会对备份升级标志作进一步处理,即current=pending,update=0xff,此时表示嵌入式设备备份升级成功。否则,将update取值设置为0,即current、pending、update三个标志位此时为0、1、0,系统自动重启。这时候,u-boot读取update,update没被设置为0xff,u-boot判定为上一次系统没启动升级成功,然后系统会切换映像,即切换到第一存储区域的当前系统文件,此时,current=pending,pending=(pending+1)%2。If the file system can be started normally according to the system upgrade, the backup upgrade flag will be further processed, namely current=pending, update=0xff, which means that the backup upgrade of the embedded device is successful. Otherwise, set the value of update to 0, that is, the three flags of current, pending, and update are 0, 1, and 0 at this time, and the system will automatically restart. At this time, u-boot reads update, and update is not set to 0xff, and u-boot judges that the last system failed to start and upgrade successfully, and then the system will switch the image, that is, switch to the current system file in the first storage area, at this time , current=pending, pending=(pending+1)%2.
本发明实施例提供的设备远程备份升级方法,在嵌入式设备的flash存储空间划分了系统文件备份区域和备份升级标志管理区域,系统升级时,flash存储空间中不仅存储系统升级文件,在备份区域还存储有升级前的当前系统文件,嵌入式设备启动时,当根据系统升级文件启动失败时,通过修改备份升级标志,标识嵌入式设备备份升级失败,并将待引导的文件切换为当前系统文件,已根据当前系统文件进行重新启动。本发明增加升级失败可回退版本功能,实现了设备的远程备份升级,可以灵活切换软件版本,广泛应用于嵌入式设备升级应用。The device remote backup and upgrade method provided by the embodiment of the present invention divides the system file backup area and the backup upgrade flag management area in the flash storage space of the embedded device. When the system is upgraded, not only the system upgrade file is stored in the flash storage space, but also in the backup area It also stores the current system files before the upgrade. When the embedded device starts and fails to start according to the system upgrade file, the backup and upgrade flag of the embedded device is marked to indicate that the backup and upgrade of the embedded device has failed, and the file to be booted is switched to the current system file. , has restarted according to the current system files. The invention adds the function of reverting version after upgrade failure, realizes remote backup and upgrade of equipment, can switch software versions flexibly, and is widely used in embedded equipment upgrade applications.
图4为本发明另一个实施例的设备远程备份升级方法的流程图。参照图4,本发明实施例的设备远程备份升级方法具体包括以下步骤:Fig. 4 is a flow chart of a method for remote backup and upgrade of equipment according to another embodiment of the present invention. Referring to Fig. 4, the device remote backup and upgrade method of the embodiment of the present invention specifically includes the following steps:
S10、读取备份升级标志;S10. Read the backup upgrade flag;
S11、根据备份升级标志确定所述嵌入式设备待引导的目标系统文件是否为系统升级文件。其中,嵌入式设备的flash存储空间中包括用于存储当前系统文件的第一存储区域、用于存储系统升级文件的第二存储区域以及备份升级标志管理区域。S11. Determine whether the target system file to be booted by the embedded device is a system upgrade file according to the backup upgrade flag. Wherein, the flash storage space of the embedded device includes a first storage area for storing current system files, a second storage area for storing system upgrade files, and a backup upgrade flag management area.
若目标系统文件为系统升级文件,则执行S12,若目标系统文件为当前系统文件,则执行S14;If the target system file is a system upgrade file, execute S12, and if the target system file is the current system file, execute S14;
S12、从所述第二存储区域中获取所述系统升级文件,并对所述系统升级文件进行数据校验。S12. Acquire the system upgrade file from the second storage area, and perform data verification on the system upgrade file.
若所述系统升级文件校验失败,则执行S13,若所述系统升级文件校验成功,则执行S15;If the verification of the system upgrade file fails, execute S13, and if the verification of the system upgrade file succeeds, execute S15;
S13、修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。S13. Modify the backup and upgrade flag to identify the backup and upgrade failure of the embedded device, and switch the target system file to be booted to the current system file.
S14、获取所述当前系统文件,并对所述当前系统文件进行数据校验,并在所述当前系统文件校验成功后,根据所述当前系统文件进行系统启动。S14. Acquire the current system file, perform data verification on the current system file, and start the system according to the current system file after the verification of the current system file is successful.
S15、根据所述系统升级文件进行系统升级,以及,当系统升级成功时,修改所述备份升级标志,以标识嵌入式设备备份升级成功。S15. Perform system upgrade according to the system upgrade file, and, when the system upgrade is successful, modify the backup upgrade flag to indicate that the backup upgrade of the embedded device is successful.
在本发明实施例中,当系统升级文件校验成功后,根据所述系统升级文件进行系统升级的步骤具体包括:In the embodiment of the present invention, after the system upgrade file is verified successfully, the step of performing system upgrade according to the system upgrade file specifically includes:
获取所述系统升级文件中内核分区信息和根文件系统分区信息;Obtain kernel partition information and root file system partition information in the system upgrade file;
根据所述内核分区信息进行内核升级;Carrying out kernel upgrade according to the kernel partition information;
若内核升级成功,则创建内核更新标识文件kernelUpdatFlag,以及根据所述根文件系统分区信息进行根文件系统升级。若内核升级失败,则修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。If the kernel is upgraded successfully, a kernel update identification file kernelUpdatFlag is created, and the root file system is upgraded according to the partition information of the root file system. If the kernel upgrade fails, the backup upgrade flag is modified to indicate that the backup upgrade of the embedded device fails, and the target system file to be booted is switched to the current system file.
若根文件系统升级成功,则创建根文件系统更新标识文件rootfsUpdateFlag,以及根据升级后的内核和根文件系统进行应用程序升级。若根文件系统升级失败,删除所述内核更新标识文件kernelUpdatFlag,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。If the root file system is successfully upgraded, the root file system update identification file rootfsUpdateFlag is created, and the application program is upgraded according to the upgraded kernel and root file system. If the upgrade of the root file system fails, delete the kernel update identification file kernelUpdatFlag, and modify the backup upgrade flag to identify the backup upgrade failure of the embedded device, and switch the target system file to be booted to the current system file.
若应用程序升级失败,删除所述根文件系统更新标识文件rootfsUpdateFlag和内核更新标识文件kernelUpdatFlag,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。If the application upgrade fails, delete the root file system update identification file rootfsUpdateFlag and the kernel update identification file kernelUpdatFlag, and modify the backup upgrade sign to identify the failure of the embedded device backup upgrade, and switch the target system file to be guided to Current system files.
本发明实施例中,在系统启动远程备份升级时,自动运行/etc/ack,这个工具主要负责,系统升级标识文件的检验和处理。主要工作是管理是否需要修改标识文件,即系统如有升级,则修改,否则保持。本发明实施例提供的设备远程备份升级方法中系统升级标识文件的具体处理流程如图5所示。参见图5,在根据升级后的内核和根文件系统进行应用程序升级过程具体包括以下步骤:In the embodiment of the present invention, when the system starts remote backup and upgrade, /etc/ack is automatically run, and this tool is mainly responsible for checking and processing the system upgrade identification file. The main job is to manage whether the identification file needs to be modified, that is, if the system is upgraded, it will be modified, otherwise it will be kept. The specific processing flow of the system upgrade identification file in the device remote backup and upgrade method provided by the embodiment of the present invention is shown in FIG. 5 . Referring to Figure 5, the process of upgrading the application program according to the upgraded kernel and root file system specifically includes the following steps:
判断应用程序升级过程中是否断电;Determine whether the power is off during the application upgrade process;
若断电,则重新上电启动,并删除系统中存在的rootfsUpdateFlag和kernelUpdatFlag,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,将将待引导的目标系统文件切换为升级前的当前系统文件。If the power is cut off, then power on and start again, and delete the rootfsUpdateFlag and kernelUpdatFlag that exist in the system, and modify the backup upgrade flag to identify the failure of the backup upgrade of the embedded device, and switch the target system file to be guided to the one before the upgrade. Current system files.
若未发生断电,判断应用程序是否升级成功,若升级失败,删除rootfsUpdateFlag和kernelUpdatFlag,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。若升级成功,则进行重启,加载芯片,芯片加载成功后进入业务启动流程,删除系统中存在的rootfsUpdateFlag和kernelUpdatFlag。如果加载芯片失败,则对加载失败次数进行记录,当连续加载失败次数超过加载阈值时,删除系统中存在的rootfsUpdateFlag和kernelUpdatFlag,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,将将待引导的目标系统文件切换为升级前的当前系统文件。If there is no power failure, judge whether the application program is upgraded successfully. If the upgrade fails, delete rootfsUpdateFlag and kernelUpdatFlag, and modify the backup upgrade flag to identify the failure of the backup upgrade of the embedded device, and switch the target system file to be booted to the current one. System Files. If the upgrade is successful, restart and load the chip. After the chip is successfully loaded, enter the service startup process and delete the rootfsUpdateFlag and kernelUpdatFlag existing in the system. If loading the chip fails, record the number of loading failures. When the number of consecutive loading failures exceeds the loading threshold, delete the rootfsUpdateFlag and kernelUpdatFlag that exist in the system, and modify the backup upgrade flag to identify the failure of the embedded device backup upgrade. Switch the target system file to be booted to the current system file before the upgrade.
系统完整启动后,上层软件可根据底层软件提供相关接口或命令如updateimage命令进行升级。例如,在一个具体实施例中,升级内核文件可用“~#./updateimage 0cuImage.p2020comba”;升级根文件系统可用“~#./updateimage 1 rootfs.uboot”。After the system is fully started, the upper-layer software can provide relevant interfaces or commands such as the updateimage command to upgrade according to the underlying software. For example, in a specific embodiment, "~#./updateimage 0cuImage.p2020comba" can be used to upgrade the kernel file; "~#./updateimage 1 rootfs.uboot" can be used to upgrade the root file system.
本发明实施例中,还提供“~#./info”命令,以查当前运行的kernel和rootfs的编号;“~#./modify 0 0 1 1”命令,以查看当前运行的kernel和rootfs的编号,修改当前运行的kernel和rootfs,把下次运行的kernel映像标号改成0,rootfs的映像改成1。In the embodiment of the present invention, the "~#./info" command is also provided to check the numbers of the currently running kernel and rootfs; the "~#./modify 0 0 1 1" command is used to check the numbers of the currently running kernel and rootfs Number, modify the currently running kernel and rootfs, change the next running kernel image label to 0, and change the rootfs image to 1.
综上所述,本发明实施例提供的设备远程备份升级方法在不影响linux系统启动的前提下,解决外场升级功能,不用现场升级,也增加升级失败可回退版本功能,解决人力成本,可以灵活切换软件版本和应用层调用逻辑,可以广泛应用于嵌入式设备升级应用。To sum up, the device remote backup and upgrade method provided by the embodiment of the present invention solves the outfield upgrade function without affecting the startup of the linux system. It does not need on-site upgrade, and also adds the function of reverting the version if the upgrade fails, and solves the labor cost. Flexible switching of software versions and application layer call logic can be widely used in embedded device upgrade applications.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
图6示意性示出了本发明一个实施例的设备远程备份升级装置的结构示意图。参照图6,本发明实施例的设备远程备份升级装置具体包括识别单元201、校验单元202以及升级处理单元203,其中:Fig. 6 schematically shows a structural diagram of an apparatus for remote backup and upgrading of equipment according to an embodiment of the present invention. Referring to FIG. 6, the device remote backup and upgrade device according to the embodiment of the present invention specifically includes an identification unit 201, a verification unit 202, and an upgrade processing unit 203, wherein:
识别单元201,用于根据备份升级标志确定嵌入式设备待引导的目标系统文件是否为系统升级文件,所述嵌入式设备的flash存储空间中包括用于存储当前系统文件的第一存储区域、用于存储系统升级文件的第二存储区域以及备份升级标志管理区域;Identification unit 201 is used to determine whether the target system file to be booted by the embedded device is a system upgrade file according to the backup upgrade flag, and the flash storage space of the embedded device includes a first storage area for storing the current system file, using In the second storage area of the storage system upgrade file and the backup upgrade sign management area;
校验单元202,用于当目标系统文件为系统升级文件时,从所述第二存储区域中获取所述系统升级文件,并对所述系统升级文件进行数据校验;A verification unit 202, configured to obtain the system upgrade file from the second storage area when the target system file is a system upgrade file, and perform data verification on the system upgrade file;
升级处理单元203,用于当所述系统升级文件校验失败时,修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。The upgrade processing unit 203 is configured to modify the backup upgrade flag to identify the backup upgrade failure of the embedded device when the system upgrade file verification fails, and switch the target system file to be booted to the current system file.
在本发明实施例中,所述升级处理单元203,还用于当所述系统升级文件校验成功时,根据所述系统升级文件进行系统升级,以及,当系统升级成功时,修改所述备份升级标志,以标识嵌入式设备备份升级成功。In the embodiment of the present invention, the upgrade processing unit 203 is further configured to perform system upgrade according to the system upgrade file when the verification of the system upgrade file is successful, and to modify the backup file when the system upgrade is successful. The upgrade flag is used to indicate that the backup of the embedded device has been upgraded successfully.
在本发明实施例中,所述升级处理单元203,具体包括获取模块、升级模块和配置模块,其中:In the embodiment of the present invention, the upgrade processing unit 203 specifically includes an acquisition module, an upgrade module and a configuration module, wherein:
获取模块,用于获取所述系统升级文件中内核分区信息和根文件系统分区信息;An acquisition module, configured to acquire kernel partition information and root file system partition information in the system upgrade file;
升级模块,用于根据所述内核分区信息进行内核升级;An upgrade module, configured to upgrade the kernel according to the kernel partition information;
配置模块,用于当内核升级成功时,创建内核更新标识文件;The configuration module is used to create a kernel update identification file when the kernel upgrade is successful;
所述升级模块,还用于根据所述根文件系统分区信息进行根文件系统升级;The upgrade module is also used to upgrade the root file system according to the partition information of the root file system;
所述配置模块,还用于当根文件系统升级成功时,创建根文件系统更新标识文件;The configuration module is also used to create a root file system update identification file when the root file system is upgraded successfully;
所述升级模块,还用于根据升级后的内核和根文件系统进行应用程序升级。The upgrade module is also used to upgrade the application program according to the upgraded kernel and root file system.
进一步地,所述的配置模块,还用于当根文件系统升级失败时,删除所述内核更新标识文件,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件;和/或,当应用程序升级失败时,删除所述根文件系统更新标识文件和内核更新标识文件,并修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。Further, the configuration module is also used to delete the kernel update identification file when the root file system upgrade fails, and modify the backup upgrade flag to identify the backup upgrade failure of the embedded device, and to boot the The target system file is switched to the current system file; and/or, when the application upgrade fails, delete the root file system update identification file and the kernel update identification file, and modify the backup upgrade flag to identify the embedded device backup upgrade Failed, and the target system file to be booted is switched to the current system file.
在本发明实施例中,所述装置还包括附图中未示出的获取单元,该获取单元,用于在所述识别单元根据备份升级标志确定所述嵌入式设备待引导的目标系统文件是否为系统升级文件之前,远程获取所述系统升级文件,判断所述系统升级文件是否为待更新的升级文件;In the embodiment of the present invention, the device further includes an acquisition unit not shown in the drawings, the acquisition unit is used to determine whether the target system file to be booted by the embedded device is Before the system upgrade file, obtain the system upgrade file remotely, and judge whether the system upgrade file is an upgrade file to be updated;
相应的,所述升级处理单元203,还用于当所述系统升级文件为待更新的升级文件时,将所述系统升级文件存储到所述第二存储区域,并修改所述备份升级标志,以将待引导的目标系统文件更新为所述系统升级文件。Correspondingly, the upgrade processing unit 203 is further configured to, when the system upgrade file is an upgrade file to be updated, store the system upgrade file in the second storage area, and modify the backup upgrade flag, to update the target system file to be booted with the system upgrade file.
在本发明实施例中,所述校验单元202,还用于在所述系统升级文件校验失败之后,当备份升级标志标识嵌入式设备备份升级失败时,获取所述当前系统文件,并对所述当前系统文件进行数据校验;In the embodiment of the present invention, the verification unit 202 is further configured to obtain the current system file when the backup upgrade flag indicates that the backup upgrade of the embedded device fails after the verification of the system upgrade file fails, and The current system file performs data verification;
所述升级处理单元203,还用于当所述当前系统文件校验成功时,根据所述当前系统文件进行系统启动。The upgrade processing unit 203 is further configured to start the system according to the current system file when the verification of the current system file is successful.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and 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 it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
本发明实施例提供的设备远程备份升级方法、装置,通过在嵌入式设备的flash存储空间划分系统文件备份区域和备份升级标志管理区域,系统升级时,flash存储空间中不仅存储系统升级文件,在备份区域还存储有升级前的当前系统文件,嵌入式设备启动时,当根据系统升级文件启动失败时,通过修改备份升级标志,标识嵌入式设备备份升级失败,并将待引导的文件切换为当前系统文件,已根据当前系统文件进行重新启动。本发明增加升级失败可回退版本功能,实现了设备的远程备份升级,可以灵活切换软件版本,广泛应用于嵌入式设备升级应用。The device remote backup and upgrade method and device provided by the embodiment of the present invention divide the system file backup area and the backup upgrade flag management area in the flash storage space of the embedded device. When the system is upgraded, not only the system upgrade file is stored in the flash storage space, but also in the The backup area also stores the current system files before the upgrade. When the embedded device starts and fails to start according to the system upgrade file, the backup and upgrade flag of the embedded device is marked to indicate that the backup and upgrade of the embedded device failed, and the file to be booted is switched to the current one. System files, has been restarted according to the current system files. The invention adds the function of reverting version after upgrade failure, realizes remote backup and upgrade of equipment, can switch software versions flexibly, and is widely used in embedded equipment upgrade applications.
此外,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述方法的步骤。In addition, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described above are implemented.
本实施例中,所述设备远程备份升级装置集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。In this embodiment, if the integrated modules/units of the device remote backup and upgrade device are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.
图7为本发明实施例提供的设备的示意图。本发明实施例提供的设备,包括存储器301、处理器302及存储在存储器301上并可在处理器302上运行的计算机程序,所述处理器302执行所述计算机程序时实现上述各个设备远程备份升级方法实施例中的步骤,例如图1所示的步骤S11、根据备份升级标志确定嵌入式设备待引导的目标系统文件是否为系统升级文件,所述嵌入式设备的flash存储空间中包括用于存储当前系统文件的第一存储区域、用于存储系统升级文件的第二存储区域以及备份升级标志管理区域。S12、若目标系统文件为系统升级文件,则从所述第二存储区域中获取所述系统升级文件,并对所述系统升级文件进行数据校验。S13、若所述系统升级文件校验失败,则修改所述备份升级标志,以标识嵌入式设备备份升级失败,以及将待引导的目标系统文件切换为当前系统文件。或者,所述处理器302执行所述计算机程序时实现上述各设备远程备份升级装置实施例中各模块/单元的功能,例如图6所示的识别单元201、校验单元202以及升级处理单元203。Fig. 7 is a schematic diagram of a device provided by an embodiment of the present invention. The device provided by the embodiment of the present invention includes a memory 301, a processor 302, and a computer program stored on the memory 301 and operable on the processor 302. When the processor 302 executes the computer program, remote backup of each of the above-mentioned devices is realized. The steps in the upgrade method embodiment, such as step S11 shown in Figure 1, determine whether the target system file to be booted by the embedded device is a system upgrade file according to the backup upgrade flag, and the flash storage space of the embedded device includes the A first storage area for storing current system files, a second storage area for storing system upgrade files, and a backup upgrade flag management area. S12. If the target system file is a system upgrade file, acquire the system upgrade file from the second storage area, and perform data verification on the system upgrade file. S13. If the verification of the system upgrade file fails, modify the backup upgrade flag to indicate that the backup upgrade of the embedded device fails, and switch the target system file to be booted to the current system file. Alternatively, when the processor 302 executes the computer program, it realizes the functions of each module/unit in the embodiment of the remote backup and upgrade device for each device described above, such as the identification unit 201, the verification unit 202 and the upgrade processing unit 203 shown in FIG. 6 .
示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述设备远程备份升级装置中的执行过程。例如,所述计算机程序可以被分割成识别单元201、校验单元202以及升级处理单元203。Exemplarily, the computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory and executed by the processor to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the device remote backup and upgrade device. For example, the computer program can be divided into an identification unit 201 , a verification unit 202 and an upgrade processing unit 203 .
所述设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述设备可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,所述示意图7仅仅是所述设备的示例,并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述设备还可以包括输入输出设备、网络接入设备、总线等。The device may be computing devices such as desktop computers, notebooks, palmtop computers, and cloud servers. The device may include, but is not limited to, a processor, memory. Those skilled in the art can understand that the schematic diagram 7 is only an example of the device, and does not constitute a limitation to the device, and may include more or less components than those shown in the figure, or combine some components, or different components , for example, the device may also include an input and output device, a network access device, a bus, and the like.
所述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述设备的控制中心,利用各种接口和线路连接整个设备的各个部分。The processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the device and uses various interfaces and lines to connect various parts of the entire device.
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(FlashCard)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer programs and/or modules, and the processor implements the device by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory various functions. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.) and the like; the storage data area may store Data created based on the use of the mobile phone (such as audio data, phonebook, etc.), etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card , a flash memory card (FlashCard), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
在本发明实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性或其它的形式。In the embodiments of the present invention, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention and form different examples. For example, in the following claims, any of the claimed embodiments may be used in any combination.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810898035.XACN109032846A (en) | 2018-08-08 | 2018-08-08 | Equipment remote backup upgrade method, device, computer storage medium and equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810898035.XACN109032846A (en) | 2018-08-08 | 2018-08-08 | Equipment remote backup upgrade method, device, computer storage medium and equipment |
| Publication Number | Publication Date |
|---|---|
| CN109032846Atrue CN109032846A (en) | 2018-12-18 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810898035.XAPendingCN109032846A (en) | 2018-08-08 | 2018-08-08 | Equipment remote backup upgrade method, device, computer storage medium and equipment |
| Country | Link |
|---|---|
| CN (1) | CN109032846A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110007971A (en)* | 2019-03-25 | 2019-07-12 | 联想(北京)有限公司 | A kind of information processing method and device, equipment, storage medium |
| CN110188004A (en)* | 2019-05-31 | 2019-08-30 | 烽火通信科技股份有限公司 | A kind of double copies software system management method and system of terminal device |
| CN110427286A (en)* | 2019-08-09 | 2019-11-08 | 成都千立网络科技有限公司 | Gateway server main preparation system restoration methods |
| CN110874289A (en)* | 2019-09-23 | 2020-03-10 | 深圳市元征科技股份有限公司 | System program backup method, device, information processor and storage medium |
| CN111026417A (en)* | 2019-10-24 | 2020-04-17 | 深兰科技(上海)有限公司 | Embedded equipment upgrading method and embedded equipment |
| CN111026427A (en)* | 2019-11-14 | 2020-04-17 | 中国航空工业集团公司洛阳电光设备研究所 | Remote online upgrading method for embedded system containing CPU and FPGA |
| CN111045709A (en)* | 2019-12-26 | 2020-04-21 | 联想(北京)有限公司 | Firmware upgrading method and firmware upgrading device |
| CN111273918A (en)* | 2020-01-15 | 2020-06-12 | 深圳英飞拓科技股份有限公司 | Remote upgrading method for embedded camera |
| CN112015447A (en)* | 2020-08-10 | 2020-12-01 | 上海高仙自动化科技发展有限公司 | System updating method and device for electronic equipment, electronic equipment and storage medium |
| CN112118280A (en)* | 2020-06-19 | 2020-12-22 | 上海汉枫电子科技有限公司 | Recovery method after OTA upgrade failure of WI-FI equipment |
| CN112256298A (en)* | 2020-09-25 | 2021-01-22 | 深圳星标科技股份有限公司 | Remote firmware upgrade method and device for visual navigation aids |
| CN112287348A (en)* | 2019-07-23 | 2021-01-29 | 上汽通用汽车有限公司 | Self-refreshing method and system of vehicle-mounted module |
| CN112527322A (en)* | 2019-08-28 | 2021-03-19 | 阿里巴巴集团控股有限公司 | System upgrading method, device, equipment and storage medium in Internet of things equipment |
| CN112559002A (en)* | 2019-09-26 | 2021-03-26 | 上海汽车集团股份有限公司 | Vehicle application updating method and device and storage medium |
| CN112612642A (en)* | 2020-12-17 | 2021-04-06 | 上海芯安信息科技有限公司 | Software starting and upgrading failure backspacing method and device and terminal equipment |
| CN112612524A (en)* | 2020-12-22 | 2021-04-06 | 西人马(西安)测控科技有限公司 | Method, device and equipment for starting Linux system and storage medium |
| CN112631628A (en)* | 2020-12-11 | 2021-04-09 | 邦彦技术股份有限公司 | Singlechip upgrading method, singlechip and storage medium |
| CN112667444A (en)* | 2020-12-31 | 2021-04-16 | 深圳康佳电子科技有限公司 | System upgrading method, storage medium and terminal equipment |
| CN112685057A (en)* | 2020-12-18 | 2021-04-20 | 深圳市网心科技有限公司 | Root file system upgrading method, electronic device and computer readable storage medium |
| CN112783535A (en)* | 2021-03-10 | 2021-05-11 | 广州优胜汽车科技有限公司 | Firmware upgrading method, embedded device and storage medium |
| CN112882860A (en)* | 2021-02-08 | 2021-06-01 | 上海弘积信息科技有限公司 | Automatic rollback protection method for upgrading failure of embedded system |
| CN112947968A (en)* | 2021-03-09 | 2021-06-11 | 深圳方位通讯科技有限公司 | Reliable system upgrading and starting method and system |
| CN113114730A (en)* | 2021-03-22 | 2021-07-13 | 深圳市晨北科技有限公司 | Upgrading method and device, terminal equipment and storage medium |
| CN113268366A (en)* | 2020-02-17 | 2021-08-17 | 斑马智行网络(香港)有限公司 | Kernel operation method, device and system |
| CN113434166A (en)* | 2021-06-11 | 2021-09-24 | 重庆长安汽车股份有限公司 | Double backup method containing fixed flash area and capable of rolling back |
| CN113535255A (en)* | 2021-06-07 | 2021-10-22 | 山东泰物信息技术有限公司 | Method for asynchronously updating embedded linux firmware based on cryptographic algorithm |
| CN113672257A (en)* | 2021-08-05 | 2021-11-19 | 深圳市道通智能汽车有限公司 | Micro control unit software upgrading method, electronic equipment and storage medium |
| CN113687851A (en)* | 2021-08-31 | 2021-11-23 | 高新兴科技集团股份有限公司 | Embedded device upgrade method and device |
| CN113986268A (en)* | 2021-10-29 | 2022-01-28 | 广州文远知行科技有限公司 | Initialization method for remote software update, and remote software update method and device |
| CN114020526A (en)* | 2021-10-22 | 2022-02-08 | 深圳市有方科技股份有限公司 | A firmware upgrade method, device and computer storage medium |
| CN114035818A (en)* | 2021-10-25 | 2022-02-11 | 深圳市联洲国际技术有限公司 | Firmware upgrade method, apparatus, computer equipment and storage medium |
| CN114116023A (en)* | 2021-06-15 | 2022-03-01 | 荣耀终端有限公司 | Operating system starting method, operating system starting device, storage medium and computer program product |
| CN114398089A (en)* | 2021-12-30 | 2022-04-26 | 阿波罗智联(北京)科技有限公司 | System switching method and device, electronic equipment and medium |
| CN114430565A (en)* | 2020-10-15 | 2022-05-03 | 大唐移动通信设备有限公司 | Starting method and device of equipment and storage medium |
| CN114816485A (en)* | 2022-05-07 | 2022-07-29 | 苏州琞能能源科技有限公司 | Version update method, device, electronic device and storage medium applied to battery swapping system |
| CN115756561A (en)* | 2022-10-14 | 2023-03-07 | 广州汽车集团股份有限公司 | Software upgrading method and device, computer equipment and storage medium |
| CN116932010A (en)* | 2023-09-14 | 2023-10-24 | 首都信息科技发展有限公司 | System firmware upgrading method, device and server |
| CN117591339A (en)* | 2023-11-14 | 2024-02-23 | 国网北京市电力公司 | Remote upgrading method, device, equipment and medium for energy controller module program |
| US12093678B2 (en) | 2021-06-15 | 2024-09-17 | Honor Device Co., Ltd. | Operating system management method, device, storage medium, and computer program product |
| US12131144B2 (en) | 2021-06-15 | 2024-10-29 | Honor Device Co., Ltd. | Updating operating system data in a static partition of an electronic device |
| US12182582B2 (en) | 2021-06-15 | 2024-12-31 | Honor Device Co., Ltd. | Operating system upgrade method, device, storage medium, and computer program product |
| US12367027B2 (en) | 2021-06-15 | 2025-07-22 | Honor Device Co., Ltd. | Operating system upgrade method, device, storage medium, and computer program product |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20100059060A (en)* | 2008-11-25 | 2010-06-04 | 서울통신기술 주식회사 | Remote upgrade system and method for etc system |
| CN101782859A (en)* | 2010-03-18 | 2010-07-21 | 上海乐毅信息科技有限公司 | Upgrading method of embedded system in application |
| CN103677947A (en)* | 2014-01-03 | 2014-03-26 | 深圳英飞拓科技股份有限公司 | Equipment dual-system protection method and equipment dual-system upgrading method on basis of linux |
| CN104156249A (en)* | 2014-08-18 | 2014-11-19 | 四川九成信息技术有限公司 | Embedded software upgrading method |
| CN105094927A (en)* | 2015-08-28 | 2015-11-25 | 东方网力科技股份有限公司 | A device firmware upgrade method and device |
| CN107168734A (en)* | 2017-04-27 | 2017-09-15 | 纳瓦电子(上海)有限公司 | A kind of embedded system upgrading backup method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20100059060A (en)* | 2008-11-25 | 2010-06-04 | 서울통신기술 주식회사 | Remote upgrade system and method for etc system |
| CN101782859A (en)* | 2010-03-18 | 2010-07-21 | 上海乐毅信息科技有限公司 | Upgrading method of embedded system in application |
| CN103677947A (en)* | 2014-01-03 | 2014-03-26 | 深圳英飞拓科技股份有限公司 | Equipment dual-system protection method and equipment dual-system upgrading method on basis of linux |
| CN104156249A (en)* | 2014-08-18 | 2014-11-19 | 四川九成信息技术有限公司 | Embedded software upgrading method |
| CN105094927A (en)* | 2015-08-28 | 2015-11-25 | 东方网力科技股份有限公司 | A device firmware upgrade method and device |
| CN107168734A (en)* | 2017-04-27 | 2017-09-15 | 纳瓦电子(上海)有限公司 | A kind of embedded system upgrading backup method |
| Title |
|---|
| 方兵兵: "基于STM32的嵌入式软件远程升级研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110007971A (en)* | 2019-03-25 | 2019-07-12 | 联想(北京)有限公司 | A kind of information processing method and device, equipment, storage medium |
| CN110188004A (en)* | 2019-05-31 | 2019-08-30 | 烽火通信科技股份有限公司 | A kind of double copies software system management method and system of terminal device |
| CN112287348A (en)* | 2019-07-23 | 2021-01-29 | 上汽通用汽车有限公司 | Self-refreshing method and system of vehicle-mounted module |
| CN110427286A (en)* | 2019-08-09 | 2019-11-08 | 成都千立网络科技有限公司 | Gateway server main preparation system restoration methods |
| CN110427286B (en)* | 2019-08-09 | 2022-11-11 | 成都千立网络科技有限公司 | Gateway server main and standby system recovery method |
| CN112527322A (en)* | 2019-08-28 | 2021-03-19 | 阿里巴巴集团控股有限公司 | System upgrading method, device, equipment and storage medium in Internet of things equipment |
| CN110874289A (en)* | 2019-09-23 | 2020-03-10 | 深圳市元征科技股份有限公司 | System program backup method, device, information processor and storage medium |
| CN112559002A (en)* | 2019-09-26 | 2021-03-26 | 上海汽车集团股份有限公司 | Vehicle application updating method and device and storage medium |
| CN111026417A (en)* | 2019-10-24 | 2020-04-17 | 深兰科技(上海)有限公司 | Embedded equipment upgrading method and embedded equipment |
| CN111026427B (en)* | 2019-11-14 | 2022-09-02 | 中国航空工业集团公司洛阳电光设备研究所 | Remote online upgrading method for embedded system containing CPU and FPGA |
| CN111026427A (en)* | 2019-11-14 | 2020-04-17 | 中国航空工业集团公司洛阳电光设备研究所 | Remote online upgrading method for embedded system containing CPU and FPGA |
| CN111045709B (en)* | 2019-12-26 | 2021-12-24 | 联想(北京)有限公司 | Firmware upgrading method and firmware upgrading device |
| CN111045709A (en)* | 2019-12-26 | 2020-04-21 | 联想(北京)有限公司 | Firmware upgrading method and firmware upgrading device |
| CN111273918B (en)* | 2020-01-15 | 2023-09-15 | 深圳英飞拓仁用信息有限公司 | Remote upgrading method of embedded video camera |
| CN111273918A (en)* | 2020-01-15 | 2020-06-12 | 深圳英飞拓科技股份有限公司 | Remote upgrading method for embedded camera |
| CN113268366A (en)* | 2020-02-17 | 2021-08-17 | 斑马智行网络(香港)有限公司 | Kernel operation method, device and system |
| CN112118280A (en)* | 2020-06-19 | 2020-12-22 | 上海汉枫电子科技有限公司 | Recovery method after OTA upgrade failure of WI-FI equipment |
| CN112015447A (en)* | 2020-08-10 | 2020-12-01 | 上海高仙自动化科技发展有限公司 | System updating method and device for electronic equipment, electronic equipment and storage medium |
| CN112015447B (en)* | 2020-08-10 | 2024-03-22 | 上海高仙自动化科技发展有限公司 | System updating method and device of electronic equipment, electronic equipment and storage medium |
| CN112256298A (en)* | 2020-09-25 | 2021-01-22 | 深圳星标科技股份有限公司 | Remote firmware upgrade method and device for visual navigation aids |
| CN114430565B (en)* | 2020-10-15 | 2023-10-17 | 大唐移动通信设备有限公司 | Method and device for starting equipment and storage medium |
| CN114430565A (en)* | 2020-10-15 | 2022-05-03 | 大唐移动通信设备有限公司 | Starting method and device of equipment and storage medium |
| CN112631628A (en)* | 2020-12-11 | 2021-04-09 | 邦彦技术股份有限公司 | Singlechip upgrading method, singlechip and storage medium |
| CN112612642A (en)* | 2020-12-17 | 2021-04-06 | 上海芯安信息科技有限公司 | Software starting and upgrading failure backspacing method and device and terminal equipment |
| CN112612642B (en)* | 2020-12-17 | 2024-06-07 | 上海芯安信息科技有限公司 | Method and device for rollback of software start and upgrade failure and terminal equipment |
| CN112685057B (en)* | 2020-12-18 | 2024-12-10 | 深圳市网心科技有限公司 | Root file system upgrade method, electronic device and computer-readable storage medium |
| CN112685057A (en)* | 2020-12-18 | 2021-04-20 | 深圳市网心科技有限公司 | Root file system upgrading method, electronic device and computer readable storage medium |
| CN112612524A (en)* | 2020-12-22 | 2021-04-06 | 西人马(西安)测控科技有限公司 | Method, device and equipment for starting Linux system and storage medium |
| CN112667444A (en)* | 2020-12-31 | 2021-04-16 | 深圳康佳电子科技有限公司 | System upgrading method, storage medium and terminal equipment |
| CN112882860A (en)* | 2021-02-08 | 2021-06-01 | 上海弘积信息科技有限公司 | Automatic rollback protection method for upgrading failure of embedded system |
| CN112947968A (en)* | 2021-03-09 | 2021-06-11 | 深圳方位通讯科技有限公司 | Reliable system upgrading and starting method and system |
| CN112783535A (en)* | 2021-03-10 | 2021-05-11 | 广州优胜汽车科技有限公司 | Firmware upgrading method, embedded device and storage medium |
| CN113114730A (en)* | 2021-03-22 | 2021-07-13 | 深圳市晨北科技有限公司 | Upgrading method and device, terminal equipment and storage medium |
| CN113535255A (en)* | 2021-06-07 | 2021-10-22 | 山东泰物信息技术有限公司 | Method for asynchronously updating embedded linux firmware based on cryptographic algorithm |
| CN113434166A (en)* | 2021-06-11 | 2021-09-24 | 重庆长安汽车股份有限公司 | Double backup method containing fixed flash area and capable of rolling back |
| CN113434166B (en)* | 2021-06-11 | 2022-10-11 | 重庆长安汽车股份有限公司 | Double backup method containing fixed flash area and capable of rolling back |
| US12182582B2 (en) | 2021-06-15 | 2024-12-31 | Honor Device Co., Ltd. | Operating system upgrade method, device, storage medium, and computer program product |
| CN114116023A (en)* | 2021-06-15 | 2022-03-01 | 荣耀终端有限公司 | Operating system starting method, operating system starting device, storage medium and computer program product |
| US12131144B2 (en) | 2021-06-15 | 2024-10-29 | Honor Device Co., Ltd. | Updating operating system data in a static partition of an electronic device |
| US12093678B2 (en) | 2021-06-15 | 2024-09-17 | Honor Device Co., Ltd. | Operating system management method, device, storage medium, and computer program product |
| US12367027B2 (en) | 2021-06-15 | 2025-07-22 | Honor Device Co., Ltd. | Operating system upgrade method, device, storage medium, and computer program product |
| CN113672257B (en)* | 2021-08-05 | 2024-05-28 | 深圳市塞防科技有限公司 | Micro control unit software upgrading method, electronic equipment and storage medium |
| CN113672257A (en)* | 2021-08-05 | 2021-11-19 | 深圳市道通智能汽车有限公司 | Micro control unit software upgrading method, electronic equipment and storage medium |
| CN113687851A (en)* | 2021-08-31 | 2021-11-23 | 高新兴科技集团股份有限公司 | Embedded device upgrade method and device |
| CN114020526A (en)* | 2021-10-22 | 2022-02-08 | 深圳市有方科技股份有限公司 | A firmware upgrade method, device and computer storage medium |
| CN114035818A (en)* | 2021-10-25 | 2022-02-11 | 深圳市联洲国际技术有限公司 | Firmware upgrade method, apparatus, computer equipment and storage medium |
| CN114035818B (en)* | 2021-10-25 | 2025-05-09 | 成都市联洲国际技术有限公司 | Firmware upgrade method, device, computer equipment and storage medium |
| CN113986268A (en)* | 2021-10-29 | 2022-01-28 | 广州文远知行科技有限公司 | Initialization method for remote software update, and remote software update method and device |
| CN114398089A (en)* | 2021-12-30 | 2022-04-26 | 阿波罗智联(北京)科技有限公司 | System switching method and device, electronic equipment and medium |
| CN114816485A (en)* | 2022-05-07 | 2022-07-29 | 苏州琞能能源科技有限公司 | Version update method, device, electronic device and storage medium applied to battery swapping system |
| CN115756561A (en)* | 2022-10-14 | 2023-03-07 | 广州汽车集团股份有限公司 | Software upgrading method and device, computer equipment and storage medium |
| CN116932010B (en)* | 2023-09-14 | 2024-01-19 | 首都信息科技发展有限公司 | System firmware upgrading method, device and server |
| CN116932010A (en)* | 2023-09-14 | 2023-10-24 | 首都信息科技发展有限公司 | System firmware upgrading method, device and server |
| CN117591339A (en)* | 2023-11-14 | 2024-02-23 | 国网北京市电力公司 | Remote upgrading method, device, equipment and medium for energy controller module program |
| Publication | Publication Date | Title |
|---|---|---|
| CN109032846A (en) | Equipment remote backup upgrade method, device, computer storage medium and equipment | |
| CN110083374B (en) | Upgrade rollback method, system and terminal equipment | |
| US8539471B2 (en) | Updating firmware of an electronic device | |
| US7421573B2 (en) | Apparatus and method for updating firmware | |
| US8423991B2 (en) | Embedded network device and firmware upgrading method | |
| US10776492B2 (en) | Multi-stage firmware update method and system therefor | |
| US7017004B1 (en) | System and method for updating contents of a flash ROM | |
| CN102591675B (en) | Method and system for management of multiple software images with shared memory blocks | |
| CN103970557B (en) | The method and storage device of storage device activation system | |
| US20110283274A1 (en) | Firmware image update and management | |
| US11861349B2 (en) | Modular firmware updates in an information handling system | |
| US9448808B2 (en) | BIOS update with service processor without serial peripheral interface (SPI) access | |
| CN101694623A (en) | Method for updating handheld device software | |
| US10691448B2 (en) | Method and apparatus to execute BIOS firmware before committing to flash memory | |
| US20200364040A1 (en) | System and Method for Restoring a Previously Functional Firmware Image on a Non-Volatile Dual Inline Memory Module | |
| CN110162429A (en) | System repair, server and storage medium | |
| CN109753299A (en) | A system upgrade method, device and computer storage medium | |
| WO2015127730A1 (en) | Method and apparatus for running version file | |
| WO2017173924A1 (en) | Method and device for switching between file systems | |
| CN114675902B (en) | Management method and management device for software version based on embedded equipment | |
| US11340882B2 (en) | Systems and methods for enforcing update policies while applying updates from bootable image file | |
| WO2021012170A1 (en) | Firmware booting method and device, and computer-readable storage medium | |
| CN114296764A (en) | System upgrading method and device, storage medium and electronic equipment | |
| US20150212866A1 (en) | Management system for service of multiple operating environments, and methods thereof | |
| CN102298531B (en) | Method for upgrading flash memory file system in embedded system |
| 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 | ||
| TA01 | Transfer of patent application right | Effective date of registration:20200123 Address after:510663 Guangzhou Science City, Guangdong Shenzhou Road, No. 10 Applicant after:COMBA TELECOM SYSTEMS (CHINA) Ltd. Address before:510663 Shenzhou Road 10, Guangzhou Science City, Guangdong, Guangzhou Applicant before:COMBA TELECOM SYSTEMS (CHINA) Ltd. Applicant before:COMBA TELECOM SYSTEMS (GUANGZHOU) Ltd. Applicant before:COMBA TELECOM TECHNOLOGY (GUANGZHOU) Ltd. Applicant before:TIANJIN COMBA TELECOM SYSTEMS Ltd. | |
| TA01 | Transfer of patent application right | ||
| CB02 | Change of applicant information | Address after:510663 Shenzhou Road 10, Science City, Guangdong, Guangzhou Applicant after:Jingxin Network System Co.,Ltd. Address before:510663 Shenzhou Road 10, Science City, Guangdong, Guangzhou Applicant before:COMBA TELECOM SYSTEMS (CHINA) Ltd. | |
| CB02 | Change of applicant information | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20181218 | |
| RJ01 | Rejection of invention patent application after publication |