Movatterモバイル変換


[0]ホーム

URL:


CN102693139A - Method and system for wirelessly upgrading mobile phone software - Google Patents

Method and system for wirelessly upgrading mobile phone software
Download PDF

Info

Publication number
CN102693139A
CN102693139ACN2011100731821ACN201110073182ACN102693139ACN 102693139 ACN102693139 ACN 102693139ACN 2011100731821 ACN2011100731821 ACN 2011100731821ACN 201110073182 ACN201110073182 ACN 201110073182ACN 102693139 ACN102693139 ACN 102693139A
Authority
CN
China
Prior art keywords
module
load
upgrade
image module
mobile phone
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.)
Granted
Application number
CN2011100731821A
Other languages
Chinese (zh)
Other versions
CN102693139B (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co LtdfiledCriticalBYD Co Ltd
Priority to CN201110073182.1ApriorityCriticalpatent/CN102693139B/en
Publication of CN102693139ApublicationCriticalpatent/CN102693139A/en
Application grantedgrantedCritical
Publication of CN102693139BpublicationCriticalpatent/CN102693139B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明公开了一种无线升级手机软件的方法,包括以下步骤:步骤1、下载软件升级包并设置升级标志;步骤2、校验受信镜像模块中原始设备引导加载模块的校验值;步骤3、校验备份受信镜像模块中引导加载程序的校验值;步骤4、校验引导加载程序的校验值是否成功,检验成功加载引导加载程序;步骤5、检查是否有升级标志,无升级标志则加载正常模式的内核,并正常启动;有升级标志则加载并运行恢复模式的内核,挂载备份受信镜像模块;步骤6、运行升级过程,并更新备份受信镜像模块;步骤7、清除升级标志。本发明还公开了一种无线升级手机软件的系统。本发明提供的一种无线升级手机软件的方法及系统可以保障手机在无线升级过程中的安全。

Figure 201110073182

The invention discloses a method for wirelessly upgrading mobile phone software, comprising the following steps: step 1, downloading a software upgrade package and setting an upgrade flag; step 2, verifying the verification value of the original device bootloading module in the trusted image module; step 3 , verify the verification value of the bootloader in the backup trusted image module; step 4, verify whether the verification value of the bootloader is successful, and verify that the bootloader is successfully loaded; step 5, check whether there is an upgrade sign, and there is no upgrade sign Then load the kernel in normal mode and start normally; if there is an upgrade flag, then load and run the kernel in recovery mode, mount the backup trusted image module; step 6, run the upgrade process, and update the backup trusted image module; step 7, clear the upgrade symbol . The invention also discloses a system for wirelessly upgrading mobile phone software. The method and system for wirelessly upgrading mobile phone software provided by the invention can ensure the safety of the mobile phone during the wireless upgrading process.

Figure 201110073182

Description

Translated fromChinese
一种无线升级手机软件的方法及系统A method and system for wirelessly upgrading mobile phone software

技术领域technical field

 本发明涉及软件升级领域,尤其涉及一种无线升级手机软件的方法及系统。The present invention relates to the field of software upgrades, in particular to a method and system for wirelessly upgrading mobile phone software.

背景技术Background technique

由于电子技术的发展较快,技术革新周期相当短,造成软件的更新换代,需要对软件进行升级。Due to the rapid development of electronic technology, the cycle of technological innovation is quite short, resulting in the replacement of software, which needs to be upgraded.

随着手机的软件功能越来越复杂,基于软件的缺陷数量与软件功能呈正比的原理,此类系统在解决软件缺陷或者添加新功能时,需要更新软件的几率就会越来越大。为了提高服务质量及厂家信誉,对于已经售出的手机上的软件缺陷的修复也将是一项重要的任务。As the software functions of mobile phones become more and more complex, based on the principle that the number of software defects is proportional to software functions, when such systems solve software defects or add new functions, the probability of needing to update the software will increase. In order to improve the quality of service and the reputation of the manufacturer, it will also be an important task to repair the software defects on the sold mobile phones.

设备管理/无线固件更新(DM/ FOTA: Device Management/ Firmware Over-The-Air)技术的升级方式是一种全新的将手机软件由旧版本升级到新版本的无线升级软件方式。其原理是根据特殊的算法将软件新旧版本之间的差别做成一个软件包,手机将软件包从服务器上下载到手机里,由手机完成软件版本的升级。该升级方式操作方便,使用户可以在最短的时间内享受到升级软件后最新服务,给用户使用带来好的体验,也有利于手机厂商更加快速地向市场推出具有新功能的手机。The upgrade method of Device Management/Firmware Over-The-Air (DM/ FOTA: Device Management/Firmware Over-The-Air) technology is a brand-new wireless upgrade software method for upgrading mobile phone software from an old version to a new version. The principle is to make the difference between the old and new versions of the software into a software package according to a special algorithm, and the mobile phone downloads the software package from the server to the mobile phone, and the mobile phone completes the software version upgrade. This upgrade method is easy to operate, so that users can enjoy the latest services after upgrading the software in the shortest time, bringing users a good experience, and also helping mobile phone manufacturers to launch mobile phones with new functions to the market more quickly.

但是无线固件更新升级时会修改引导加载程序和内核,并相应修改受信镜像模块中的相关校验值,也就是要升级受信镜像模块,当在升级受信镜像模块过程中若出现手机突然断电等导致手机升级中断的意外事件,将会使手机无法再使用,没有安全保障。However, the boot loader and kernel will be modified during the wireless firmware update, and the relevant check values in the trusted image module will be modified accordingly, that is, the trusted image module must be upgraded. Unexpected events that lead to the interruption of the mobile phone upgrade will make the mobile phone unusable and have no security guarantee.

发明内容Contents of the invention

本发明要解决的技术问题是提供一种安全的无线升级手机软件的方法及系统,使手机在无线升级情况下即使发生突然断电等中断手机升级的意外事件也不会导致手机出现不能修复的错误。The technical problem to be solved by the present invention is to provide a safe method and system for wirelessly upgrading mobile phone software, so that even in the case of wireless upgrading of the mobile phone, even if unexpected events such as a sudden power failure occur that interrupt the mobile phone upgrade, the mobile phone will not be irreparable. mistake.

为解决上述技术问题,本发明提供如下技术方案:In order to solve the above technical problems, the present invention provides the following technical solutions:

本发明涉及的一种无线升级手机软件的方法包括以下步骤:A method for wirelessly upgrading mobile phone software that the present invention relates to comprises the following steps:

S1、从服务器下载软件升级包,设置进入恢复模式的重启原因和升级标志; S1, download the software upgrade package from the server, set the restart reason and upgrade flag for entering the recovery mode;

S2、启动固件引导程序加载并校验受信镜像模块中原始设备引导加载模块的校验值,并加载运行原始设备引导加载模块;S2, start the firmware bootloader to load and verify the check value of the original device bootloader module in the trusted image module, and load and run the original device bootloader module;

S3、启动原始设备引导加载模块加载并校验备份受信镜像模块中引导加载程序的校验值; S3, start the boot loader module of the original device to load and verify the check value of the boot loader in the backup trusted image module;

S4、校验引导加载程序的校验值是否成功;S4, verifying whether the verification value of the boot loader is successful;

否,则重新烧录软件信息;If not, re-burn the software information;

是,则加载并运行引导加载程序,进入步骤S5;If yes, then load and run the boot loader, and enter step S5;

S5、启动引导加载程序检查是否有升级标志;S5, start the boot loader to check whether there is an upgrade sign;

否,则加载正常模式的内核,并正常启动;If not, load the kernel in normal mode and start normally;

是,则加载并运行恢复模式的内核,挂载备份受信镜像模块,进入步骤S6;If yes, load and run the recovery mode kernel, mount the backup trusted image module, and enter step S6;

S6、启动固件无线更新升级工具开始运行升级过程,并更新备份受信镜像模块;S6, start the firmware wireless update and upgrade tool to start the upgrade process, and update the backup trusted image module;

S7、清除升级标志。S7. Clear the upgrade flag.

本发明还提供了一种无线升级手机软件的系统,包括:The present invention also provides a system for wirelessly upgrading mobile phone software, including:

下载装置,从服务器下载软件升级包,设置进入恢复模式的重启原因和升级标志; Download the device, download the software upgrade package from the server, set the restart reason and upgrade flag for entering the recovery mode;

第一校验装置,启动固件引导程序加载并校验受信镜像模块中原始设备引导加载模块的校验值,并加载运行原始设备引导加载模块;The first verification device starts the firmware bootloader to load and verify the check value of the original equipment bootloader module in the trusted image module, and loads and runs the original equipment bootloader module;

第二校验装置,启动原始设备引导加载模块加载并校验备份受信镜像模块中引导加载程序的校验值; The second verification device starts the original device boot loader module to load and verify the check value of the boot loader in the backup trusted image module;

第三校验装置,校验引导加载程序的校验值是否成功;The third verification device is used to verify whether the verification value of the boot loader is successful;

否,则重新烧录软件信息;If not, re-burn the software information;

是,则加载并运行引导加载程序;Yes, then load and run the bootloader;

检查装置,启动引导加载程序检查是否有升级标志;Check the device, start the bootloader to check if there is an upgrade flag;

否,则加载正常模式的内核,并正常启动;If not, load the kernel in normal mode and start normally;

是,则加载并运行恢复模式的内核,挂载备份受信镜像模块;If yes, load and run the recovery mode kernel, and mount the backup trusted image module;

升级装置,启动固件无线更新升级工具开始运行升级过程,并更新备份受信镜像模块;Upgrade the device, start the firmware wireless update and upgrade tool to start the upgrade process, and update the backup trusted image module;

清除装置,清除升级标志。Clear device, clear upgrade flag.

与现有技术相比本发明具有如下有益效果:本发明提供的一种无线升级手机软件的方法及系统,通过引入备份受信镜像模块,在手机软件的无线固件更新升级过程中,升级的是备份受信镜像模块,如果在升级备份受信镜像模块时出现错误,破坏的是备份受信镜像模块,而使受信镜像模块得到保护。备份受信镜像模块受到破坏后可以通过烧录软件信息来进行恢复,从而保障手机在无线固件更新升级过程中的安全。Compared with the prior art, the present invention has the following beneficial effects: a method and system for wirelessly upgrading mobile phone software provided by the present invention, by introducing a backup trusted image module, in the process of wireless firmware updating and upgrading of mobile phone software, the backup is upgraded Trusted image module, if error occurs when upgrading the backup trusted image module, what is destroyed is the backup trusted image module, so that the trusted image module is protected. After the backup trusted image module is damaged, it can be restored by burning software information, so as to ensure the security of the mobile phone during the wireless firmware update and upgrade process.

附图说明Description of drawings

图1是现有技术无线升级手机软件的方法流程图。Fig. 1 is a flowchart of a method for wirelessly upgrading mobile phone software in the prior art.

图2是本发明实施例提供的无线升级手机软件的方法流程图。Fig. 2 is a flowchart of a method for wirelessly upgrading mobile phone software provided by an embodiment of the present invention.

图3是本发明实施例提供的无线升级手机软件的系统结构框图。Fig. 3 is a structural block diagram of a system for wirelessly upgrading mobile phone software provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明所解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects solved by the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

图1是现有技术无线升级手机软件的方法流程图,该无线升级方法包括以下步骤:Fig. 1 is the method flowchart of prior art wireless upgrading mobile phone software, and this wireless upgrading method comprises the following steps:

1、从服务器下载软件升级包,设置进入恢复模式的重启原因和升级标志。所述软件升级包是比较新版本的系统镜像文件和手机系统当前版本的系统镜像文件得到的差分包。所述设置进入恢复模式的重启原因和升级标志具体是指将一个进入恢复模式的重启原因和升级标志写入寄存器。所述恢复模式即手机软件升级时进入的模式。1. Download the software upgrade package from the server, and set the restart reason and upgrade flag for entering recovery mode. The software upgrade package is a differential package obtained by comparing the system image file of the new version with the system image file of the current version of the mobile phone system. The setting of the restart reason and upgrade flag for entering the recovery mode specifically refers to writing a restart reason and upgrade flag for entering the recovery mode into a register. The recovery mode is the mode entered when the mobile phone software is upgraded.

2、启动固件引导程序 (Bootrom)加载并校验受信镜像模块(TIM:Trusted Image Module)中原始设备引导加载模块(OBM:OEM Boot-loader Module)中的校验值,如果校验成功,则加载并运行原始设备引导加载模块。手机中的受信镜像模块中存储有原始设备引导加载模块的校验值,引导加载程序 (BLOB) 的校验值以及内核(kernel)的校验值,用来校验相关的原始设备引导加载模块、引导加载程序及内核三个部分的数据是否有被破坏或者是未经加密签名的文件。原始设备引导加载模块在出厂之后默认是固定不让修改的,故此步骤中校验受信镜像模块中原始设备引导加载模块的校验值在最开始没被升级破坏的情况下一般可以通过。但是一旦校验原始设备引导加载模块的校验值不能通过就无法启动原始设备引导加载模块,由于手机的烧录软件信息就存储在原始设备引导加载模块中,这样手机就不能通过重新烧录手机软件信息来恢复使用,导致手机完全无法使用。2. Start the firmware boot program (Bootrom) to load and verify the verification value in the original device bootloader module (OBM: OEM Boot-loader Module) in the trusted image module (TIM: Trusted Image Module). If the verification is successful, then Load and run the raw device bootloader module. The trusted image module in the mobile phone stores the check value of the original device boot loader module, the check value of the boot loader (BLOB) and the check value of the kernel (kernel), which are used to verify the related original device boot loader module Check whether the data in the three parts of , bootloader and kernel are damaged or not encrypted and signed. The original device bootloader module is fixed by default and cannot be modified after leaving the factory. Therefore, in this step, the verification value of the original device bootloader module in the trusted image module can generally pass if it is not damaged by the upgrade at the beginning. However, once the verification value of the original device bootloading module fails to pass, the original device bootloading module cannot be started. Since the burning software information of the mobile phone is stored in the original device bootloading module, the mobile phone cannot be reprogrammed. Software information to restore the use, making the phone completely unusable.

3、启动原始设备引导加载模块加载并校验受信镜像模块中引导加载程序的校验值。 3. Start the boot loader module of the original device to load and verify the check value of the boot loader in the trusted image module. the

4、校验引导加载程序的校验值是否成功。校验不成功,因为原始设备引导加载模块已经启动,我们可以通过重新烧录软件信息的方式恢复手机使用,如果校验成功,则加载并运行引导加载程序。4. Verify whether the verification value of the bootloader is successful. The verification is unsuccessful because the bootloader module of the original device has been activated. We can restore the phone to use by re-burning the software information. If the verification is successful, load and run the bootloader.

5、启动引导加载程序检查是否有升级标志。5. Start the bootloader to check if there is an upgrade flag.

如果重启原因不是设置的升级标志,则加载正常模式的内核,并正常启动。所述正常模式即手机正常启动的模式。If the reason for the restart is not the set upgrade flag, load the kernel in normal mode and start normally. The normal mode is a mode in which the mobile phone starts up normally.

如果重启原因是定义好的升级标志的话,手机进入一个专门的升级模式,也就是恢复模式,加载并把控制权交给内核。加载并运行恢复模式的内核,挂载受信镜像模块。If the restart reason is a well-defined upgrade flag, the phone enters a special upgrade mode, that is, the recovery mode, loads and hands over control to the kernel. Load and run the recovery mode kernel, mount the trusted image module.

6、启动固件无线更新升级工具开始运行升级过程,并更新受信镜像模块。在固件无线更新升级工具开始运行升级过程中更改引导加载程序和内核,相应地,更新受信镜像模块中储存的引导加载程序的校验值以及内核的校验值,在更新更新受信镜像模块的过程若出现手机没电等中断升级的意外情况,受信镜像模块中的校验值就会出现错误,而受信镜像模块中包括原始设备引导加载模块的校验值、引导加载程序的校验值以及内核的校验值,虽然更新的只是引导加载程序的校验值以及内核的校验值,但是只要引导加载程序的校验值以及内核的校验值任何一个出现错误都会导致整个受信镜像模块不能打开,从而在下次进行升级过程中上述步骤2中:校验受信镜像模块中原始设备引导加载模块的校验值这一步骤不能通过,那么就无法加载运行原始设备引导加载模块,由于手机的烧录软件信息就存储在原始设备引导加载模块中,因此不能通过重新烧录手机软件信息来恢复使用。6. Start the firmware wireless update and upgrade tool to start the upgrade process and update the trusted image module. When the firmware wireless update and upgrade tool starts to run and upgrade, the boot loader and kernel are changed. Correspondingly, the check value of the boot loader and the check value of the kernel stored in the trusted image module are updated. In the process of updating the trusted image module If there is an unexpected situation where the upgrade is interrupted, such as the mobile phone is out of power, the check value in the trusted image module will be wrong, and the trusted image module includes the check value of the original device boot loader module, the check value of the boot loader, and the kernel. Check value, although only the check value of the boot loader and the check value of the kernel are updated, but as long as any error occurs in the check value of the boot loader and the check value of the kernel, the entire trusted image module cannot be opened. , so that in the next upgrade process in the above step 2: the step of verifying the verification value of the original device bootloader module in the trusted image module cannot pass, then the original device bootloader module cannot be loaded and run, due to the burning of the mobile phone The software information is stored in the original device bootloader module, so it cannot be recovered by reflashing the mobile phone software information.

7、启动固件无线更新升级工具清除升级标志。7. Start the firmware wireless update tool to clear the upgrade sign.

8、升级标志清除后重新启动手机。8. Restart the phone after the upgrade sign is cleared.

从上述现有的无线升级手机软件的方法中我们可以知道,现有的无线升级手机软件的方法若在升级受信镜像模块过程中出现手机突然断电等中断升级的意外事件将会导致手机无法再使用,没有安全保障。We can know from above-mentioned existing method for wirelessly upgrading mobile phone software, if in the existing method for wirelessly upgrading mobile phone software, unexpected events such as sudden power failure of the mobile phone occur in the process of upgrading the trusted image module, the mobile phone will no longer be able to use, there is no security guarantee.

为克服上述技术问题,本发明实施例提供一种安全的无线升级手机软件的方法。如图2所示,是本发明实施例提供的无线升级手机软件的方法流程图,该无线升级方法包括以下步骤:In order to overcome the above-mentioned technical problems, an embodiment of the present invention provides a safe wireless method for upgrading mobile phone software. As shown in Figure 2, it is a flow chart of a method for wirelessly upgrading mobile phone software provided by an embodiment of the present invention, and the wirelessly upgrading method includes the following steps:

S1、从服务器下载软件升级包,设置进入恢复模式的重启原因和升级标志。所述软件升级包是比较新版本的系统镜像文件和手机系统当前版本的系统镜像文件得到的差分包。所述设置进入恢复模式的重启原因和升级标志具体是指将一个进入恢复模式的重启原因和升级标志写入寄存器。所述恢复模式即手机软件升级时进入的模式。S1. Download a software upgrade package from the server, and set a restart reason and an upgrade flag for entering the recovery mode. The software upgrade package is a differential package obtained by comparing the system image file of the new version with the system image file of the current version of the mobile phone system. The setting of the restart reason and upgrade flag for entering the recovery mode specifically refers to writing a restart reason and upgrade flag for entering the recovery mode into a register. The recovery mode is the mode entered when the mobile phone software is upgraded.

S2、启动固件引导程序加载并校验受信镜像模块中原始设备引导加载模块的校验值,并加载运行原始设备引导加载模块。本实施例中的受信镜像模块中存储有原始设备引导加载模块校验值,用来校验原始设备引导加载模块的数据是否有被破坏或者是未经加密签名的文件。原始设备引导加载模块在出厂之后默认是固定不让修改的,故此步骤中校验受信镜像模块中原始设备引导加载模块的校验值一般可以通过。如果校验成功,则加载并运行原始设备引导加载模块。S2. Start the firmware bootloader to load and verify the check value of the original device bootloader module in the trusted image module, and load and run the original device bootloader module. The trusted image module in this embodiment stores a check value of the original device bootloader module, which is used to check whether the data of the original device bootloader module is damaged or is a file that has not been encrypted and signed. The original device bootloader module is fixed by default and cannot be modified after leaving the factory, so the verification value of the original device bootloader module in the trusted mirror module can generally be verified in this step. If the verification is successful, the raw device bootloader module is loaded and run.

S3、启动原始设备引导加载模块加载并校验备份受信镜像模块(DTIM: Double Trusted Image Module)中引导加载程序的校验值。本实施例中的备份受信镜像模块中存储有引导加载程序的校验值以及内核的校验值,用来校验引导加载程序和内核两个部分数据是否有被破坏或者是未经加密签名的文件。S3. Start the original device boot loader module to load and verify the check value of the boot loader in the backup trusted image module (DTIM: Double Trusted Image Module). The backup trusted image module in this embodiment stores the check value of the boot loader and the check value of the kernel, which are used to check whether the two parts of the data of the boot loader and the kernel are damaged or unencrypted. document.

S4、校验引导加载程序的校验值是否成功。校验不成功,因为原始设备引导加载模块已经启动,我们可以通过重新烧录软件信息的方式恢复手机使用,如果校验成功,则加载并运行引导加载程序。S4. Verify whether the verification value of the boot loader is successful. The verification is unsuccessful because the bootloader module of the original device has been activated. We can restore the phone to use by re-burning the software information. If the verification is successful, load and run the bootloader.

S5、启动引导加载程序检查是否有升级标志。如果重启原因不是定义的升级标志,则加载正常模式的内核,并正常启动。所述正常模式即手机正常启动的模式。如果重启原因是定义好的升级标志的话,手机进入一个专门的升级模式,也就是恢复模式,加载并运行恢复模式的内核,挂载备份受信镜像模块。S5. Start the boot loader to check whether there is an upgrade flag. If the reboot reason is not one of the defined upgrade flags, a normal-mode kernel is loaded and booted normally. The normal mode is a mode in which the mobile phone starts up normally. If the restart reason is a defined upgrade flag, the mobile phone enters a special upgrade mode, that is, the recovery mode, loads and runs the recovery mode kernel, and mounts the backup trusted image module.

S6、启动固件无线更新升级工具开始运行升级过程,并更新备份受信镜像模块。在固件无线更新升级工具开始运行升级过程中更改引导加载程序和内核,相应地,更新备份受信镜像模块中储存的引导加载程序的校验值以及内核的校验值,在更新更新受信镜像模块的过程若出现手机没电等中断升级的意外情况,只有备份受信镜像模块的校验值出现错误,从而破坏掉备份受信镜像模块,但是因为受信镜像模块没有被更改和破坏,因此可以通过重新烧录手机软件信息来恢复使用。而受信镜像模块中只包括原始设备引导加载模块的校验值,在软件进行升级的过程中并没有被更改,所以在下次进行升级过程中上述步骤S2中:校验受信镜像模块中原始设备引导加载模块的校验值这一步骤一直可以通过,由于手机的烧录软件信息就存储在原始设备引导加载模块中,因此就算在升级过程中出现中断升级的意外情况也可以通过重新烧录手机软件信息来恢复手机的使用。S6. Start the firmware wireless update and upgrade tool to run the upgrade process, and update the backup trusted image module. Change the boot loader and kernel when the firmware wireless update upgrade tool starts to run the upgrade process. Correspondingly, update the check value of the boot loader and the check value of the kernel stored in the backup trusted image module. If there is an accident in the upgrade process, such as the mobile phone running out of power, only the verification value of the backup trusted image module will be wrong, thus destroying the backup trusted image module. However, because the trusted image module has not been changed or destroyed, it can be reprogrammed Mobile phone software information to resume use. The trusted image module only includes the verification value of the original device bootloader module, which has not been changed during the software upgrade process, so in the above step S2 in the next upgrade process: verify the original device bootloader in the trusted image module The step of loading the verification value of the module can always be passed. Since the burning software information of the mobile phone is stored in the original device bootloading module, even if there is an unexpected interruption of the upgrade during the upgrade process, it can be re-burned through the mobile phone software. information to restore the use of the phone.

S7、启动固件无线更新升级工具清除升级标志。S7. Start the firmware wireless update upgrade tool to clear the upgrade mark.

S8、升级标志清除后重新启动手机。S8. Restart the mobile phone after the upgrade flag is cleared.

图3是本发明实施例提供的无线升级手机软件的系统结构框图。本发明实施例提供的一种无线升级手机系统,包括:下载装置100、下载装置100、第二校验装置300、第三校验装置400、检查装置500、升级装置600、清除装置700及重启装置800。Fig. 3 is a structural block diagram of a system for wirelessly upgrading mobile phone software provided by an embodiment of the present invention. A wireless upgrade mobile phone system provided by an embodiment of the present invention includes: a downloadingdevice 100, adownloading device 100, asecond verifying device 300, athird verifying device 400, achecking device 500, anupgrading device 600, aclearing device 700 and a reset device.Device 800.

下载装置100,用于从服务器下载软件升级包,设置进入恢复模式的重启原因和升级标志。第一校验装置200,用于启动固件引导程序加载并校验受信镜像模块中原始设备引导加载模块的校验值,并加载运行原始设备引导加载模块。受信镜像模块存储有原始设备引导加载模块的校验值。第二校验装置300,用于启动原始设备引导加载模块加载并校验备份受信镜像模块中引导加载程序的校验值。备份受信镜像模块中存储有引导加载程序的校验值以及内核的校验值。第三校验装置400,用于校验引导加载程序的校验值是否成功。若校验不成功,则重新烧录软件信息。若校验成功,则加载并运行引导加载程序。检查装置500,用于启动引导加载程序检查是否有升级标志。若没有升级标志则加载正常模式的内核,并正常启动手机。若有升级标志,则加载并运行恢复模式的内核,挂载备份受信镜像模块。升级装置600,用于启动固件无线更新升级工具开始运行升级过程,并更新备份受信镜像模块。更新备份受信镜像模块中储存的引导加载程序的校验值以及内核的校验值,在更新更新受信镜像模块的过程若出现手机没电等中断升级的意外情况,只有备份受信镜像模块的校验值出现错误,从而破坏掉备份受信镜像模块,但是因为受信镜像模块没有被更改和破坏,因此可以通过重新烧录手机软件信息来恢复使用。清除装置700,用于启动固件无线更新升级工具清除升级标志。在升级过程完成后,清除装置700会清除升级标志,使下一次手机启动的时候,不会进入系统升级的状态。重启装置800,用于清除升级标志后重新启动手机。Thedownloading device 100 is used for downloading the software upgrade package from the server, and setting the restart reason and the upgrade flag for entering the recovery mode. Thefirst verification device 200 is configured to start loading of the firmware boot program and verify the check value of the original device boot loader module in the trusted image module, and load and run the original device boot loader module. The trusted image module stores a check value of the original device bootloader module. Thesecond verifying device 300 is used for starting the loading of the boot loader module of the original device and verifying the check value of the boot loader program in the backup trusted image module. The check value of the boot loader and the check value of the kernel are stored in the backup trusted image module. Thethird verification device 400 is configured to verify whether the verification value of the boot loader is successful. If the verification is unsuccessful, re-burn the software information. If the verification is successful, the bootloader is loaded and run. Thechecking device 500 is used to start the boot loader and check whether there is an upgrade flag. If there is no upgrade flag, load the kernel in normal mode and start the phone normally. If there is an upgrade flag, load and run the recovery mode kernel, and mount the backup trusted image module. Theupgrading device 600 is configured to start the firmware wireless updating and upgrading tool to start running the upgrading process, and update the backup trusted image module. Update the check value of the boot loader and the check value of the kernel stored in the backup trusted image module. In the process of updating and updating the trusted image module, if there is an unexpected situation such as interruption of the upgrade due to power failure of the mobile phone, only the check value of the backup trusted image module The value is wrong, thereby destroying the backup trusted image module, but because the trusted image module has not been changed and destroyed, it can be restored by re-burning the mobile phone software information. Theclearing device 700 is used to start the firmware wireless update and upgrade tool to clear the upgrade flag. After the upgrade process is completed, theclearing device 700 will clear the upgrade flag, so that the mobile phone will not enter the system upgrade state when it starts up next time. The restartingdevice 800 is used to restart the mobile phone after clearing the upgrade flag.

与现有技术相比本发明的实施例具有如下有益效果:本发明的实施例提供的一种无线升级手机软件的方法及系统,将原始设备引导加载模块的校验值和储存在受信镜像模块,将引导加载程序的校验值以及内核的校验值储存在备份受信镜像模块,在手机软件的升级过程中,升级的是备份受信镜像模块,如果在升级备份受信镜像模块时出现错误,破坏的是备份受信镜像模块,而受信镜像模块得到保护。备份受信镜像模块受到破坏后可以通过烧录软件信息来进行恢复,从而保障手机在无线固件更新升级过程中的安全。这对手机生产商和终端用户来说都有极大的好处。对生产商来说,不会因为一次下载失败而使手机报废,可以极大地提高经济效益。对用户来说,可以享受更多的最新业务和优质的服务。Compared with the prior art, the embodiments of the present invention have the following beneficial effects: a method and system for wirelessly upgrading mobile phone software provided by the embodiments of the present invention store the check value sum of the original equipment bootloader module in the trusted image module , store the check value of the boot loader and the check value of the kernel in the backup trusted image module. During the upgrade process of the mobile phone software, the upgrade is the backup trusted image module. If an error occurs during the upgrade of the backup trusted image module, the What is backup is the trusted image module, and the trusted image module is protected. After the backup trusted image module is damaged, it can be restored by burning software information, so as to ensure the security of the mobile phone during the wireless firmware update and upgrade process. This is of great benefit to both handset manufacturers and end users. For manufacturers, the mobile phone will not be scrapped because of a download failure, which can greatly improve economic benefits. For users, they can enjoy more up-to-date services and high-quality services.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (7)

CN201110073182.1A2011-03-252011-03-25A kind of method and system of radio upgrade cell phone softwareActiveCN102693139B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201110073182.1ACN102693139B (en)2011-03-252011-03-25A kind of method and system of radio upgrade cell phone software

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201110073182.1ACN102693139B (en)2011-03-252011-03-25A kind of method and system of radio upgrade cell phone software

Publications (2)

Publication NumberPublication Date
CN102693139Atrue CN102693139A (en)2012-09-26
CN102693139B CN102693139B (en)2015-09-30

Family

ID=46858620

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201110073182.1AActiveCN102693139B (en)2011-03-252011-03-25A kind of method and system of radio upgrade cell phone software

Country Status (1)

CountryLink
CN (1)CN102693139B (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103257880A (en)*2013-05-302013-08-21航天恒星科技有限公司Remote application program on-line updating method based on DSP
CN103634668A (en)*2013-12-202014-03-12乐视致新电子科技(天津)有限公司System upgrading method and device in smart television
CN103777982A (en)*2014-01-152014-05-07宇龙计算机通信科技(深圳)有限公司System updating method by root permission opening and mobile terminal using same
CN103955648A (en)*2014-05-152014-07-30乐视致新电子科技(天津)有限公司Method and device for verifying legality of system image
CN104166577A (en)*2014-08-262014-11-26深圳市中兴移动通信有限公司Method and device for upgrading system of mobile terminal
CN104216719A (en)*2013-05-302014-12-17深圳创维无线技术有限公司Method and device for updating android system
CN104281479A (en)*2014-10-312015-01-14深圳市大疆创新科技有限公司Firmware upgrading method and device
CN105426210A (en)*2015-11-182016-03-23小米科技有限责任公司Method and device for upgrading system
WO2017008728A1 (en)*2015-07-162017-01-19福建联迪商用设备有限公司Method and system for classifying development mode and product mode for terminal
CN103699421B (en)*2014-01-082017-07-11深圳金三立视频科技股份有限公司Embedded device method for upgrading system and its device
CN106941672A (en)*2017-03-092017-07-11东软集团股份有限公司The method and device of application software abnormality processing
CN107301077A (en)*2017-06-282017-10-27浙江国自机器人技术有限公司A kind of embedded device firmware upgrade system
CN107329775A (en)*2017-05-252017-11-07杭州赫智电子科技有限公司A kind of WIFI firmware burnings method
WO2017219861A1 (en)*2016-06-202017-12-28阿里巴巴集团控股有限公司Method and device for controlling system start-up mode
CN107783778A (en)*2017-10-302018-03-09厦门亿联网络技术股份有限公司A kind of method for updating increment of feature based value look-up table
CN108154025A (en)*2017-12-222018-06-12北京四达时代软件技术股份有限公司Method, the method and device of application program mirror image processing of embedded device startup
CN108228230A (en)*2017-12-282018-06-29努比亚技术有限公司Upgrade method, terminal and the computer readable storage medium of UFS firmwares
CN108628704A (en)*2018-04-092018-10-09南京百敖软件有限公司A method of restore automatically when update BIOS errors
CN108762785A (en)*2018-05-292018-11-06四川斐讯信息技术有限公司Restore the method and system of manufacture in a kind of firmware upgrade process
WO2019076293A1 (en)*2017-10-162019-04-25华为技术有限公司 Method, device and system for differential upgrade
CN109814934A (en)*2019-01-312019-05-28安谋科技(中国)有限公司 Data processing method, apparatus, readable medium and system
CN110837383A (en)*2019-09-302020-02-25奇安信科技集团股份有限公司Application installation-free upgrading method and device
CN110990045A (en)*2019-12-202020-04-10苏州浪潮智能科技有限公司 A dual BMC FLASH upgrade method and device
CN111273928A (en)*2019-09-102020-06-12深圳市汇泰科电子有限公司Self-upgrading bootloader design method
CN112527371A (en)*2020-12-172021-03-19杭州海康威视数字技术股份有限公司Boot loader upgrading method and device, electronic equipment and storage medium
CN112805689A (en)*2019-01-172021-05-14株式会社Lg化学Memory, error recovery method of memory, and battery device including memory
CN114089925A (en)*2022-01-202022-02-25博为科技有限公司Double-image management method and related equipment
CN116048628A (en)*2022-07-212023-05-02荣耀终端有限公司Equipment starting method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1770513A2 (en)*2005-09-272007-04-04Samsung Electronics Co., Ltd.Method and system for booting and automatically updating software, and recovering from update error
US20070083744A1 (en)*2005-10-102007-04-12Samsung Electronics Co., Ltd.Digital broadcast processing apparatus and boot loader upgrade method thereof
CN101126920A (en)*2007-09-302008-02-20浙江中控技术有限公司Method and device implementing on-line upgrading of a fixed programme
CN101256527A (en)*2008-03-122008-09-03中兴通讯股份有限公司 A kind of boot program backup method and its backup device
CN101794248A (en)*2010-04-022010-08-04福州思迈特数码科技有限公司Method for constructing multi-boot storage structure and back-up

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1770513A2 (en)*2005-09-272007-04-04Samsung Electronics Co., Ltd.Method and system for booting and automatically updating software, and recovering from update error
US20070083744A1 (en)*2005-10-102007-04-12Samsung Electronics Co., Ltd.Digital broadcast processing apparatus and boot loader upgrade method thereof
CN101126920A (en)*2007-09-302008-02-20浙江中控技术有限公司Method and device implementing on-line upgrading of a fixed programme
CN101256527A (en)*2008-03-122008-09-03中兴通讯股份有限公司 A kind of boot program backup method and its backup device
CN101794248A (en)*2010-04-022010-08-04福州思迈特数码科技有限公司Method for constructing multi-boot storage structure and back-up

Cited By (40)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104216719A (en)*2013-05-302014-12-17深圳创维无线技术有限公司Method and device for updating android system
CN103257880A (en)*2013-05-302013-08-21航天恒星科技有限公司Remote application program on-line updating method based on DSP
CN103257880B (en)*2013-05-302016-03-30航天恒星科技有限公司A kind of remote application online updating method based on DSP
CN103634668A (en)*2013-12-202014-03-12乐视致新电子科技(天津)有限公司System upgrading method and device in smart television
CN103699421B (en)*2014-01-082017-07-11深圳金三立视频科技股份有限公司Embedded device method for upgrading system and its device
CN103777982A (en)*2014-01-152014-05-07宇龙计算机通信科技(深圳)有限公司System updating method by root permission opening and mobile terminal using same
CN103955648B (en)*2014-05-152017-02-01乐视致新电子科技(天津)有限公司Method and device for verifying legality of system image
CN103955648A (en)*2014-05-152014-07-30乐视致新电子科技(天津)有限公司Method and device for verifying legality of system image
CN104166577A (en)*2014-08-262014-11-26深圳市中兴移动通信有限公司Method and device for upgrading system of mobile terminal
CN104166577B (en)*2014-08-262019-04-05努比亚技术有限公司A kind of method and apparatus of mobile terminal system upgrading
CN104281479A (en)*2014-10-312015-01-14深圳市大疆创新科技有限公司Firmware upgrading method and device
WO2017008728A1 (en)*2015-07-162017-01-19福建联迪商用设备有限公司Method and system for classifying development mode and product mode for terminal
CN105426210A (en)*2015-11-182016-03-23小米科技有限责任公司Method and device for upgrading system
WO2017219861A1 (en)*2016-06-202017-12-28阿里巴巴集团控股有限公司Method and device for controlling system start-up mode
CN106941672A (en)*2017-03-092017-07-11东软集团股份有限公司The method and device of application software abnormality processing
CN107329775A (en)*2017-05-252017-11-07杭州赫智电子科技有限公司A kind of WIFI firmware burnings method
CN107329775B (en)*2017-05-252021-02-23杭州赫智电子科技有限公司WIFI firmware burning method
CN107301077A (en)*2017-06-282017-10-27浙江国自机器人技术有限公司A kind of embedded device firmware upgrade system
CN107301077B (en)*2017-06-282021-02-12浙江国自机器人技术股份有限公司Embedded equipment firmware upgrading system
WO2019076293A1 (en)*2017-10-162019-04-25华为技术有限公司 Method, device and system for differential upgrade
CN107783778A (en)*2017-10-302018-03-09厦门亿联网络技术股份有限公司A kind of method for updating increment of feature based value look-up table
CN107783778B (en)*2017-10-302020-04-10厦门亿联网络技术股份有限公司Increment upgrading method based on characteristic value table look-up method
CN108154025A (en)*2017-12-222018-06-12北京四达时代软件技术股份有限公司Method, the method and device of application program mirror image processing of embedded device startup
CN108228230A (en)*2017-12-282018-06-29努比亚技术有限公司Upgrade method, terminal and the computer readable storage medium of UFS firmwares
CN108628704A (en)*2018-04-092018-10-09南京百敖软件有限公司A method of restore automatically when update BIOS errors
CN108762785A (en)*2018-05-292018-11-06四川斐讯信息技术有限公司Restore the method and system of manufacture in a kind of firmware upgrade process
CN112805689A (en)*2019-01-172021-05-14株式会社Lg化学Memory, error recovery method of memory, and battery device including memory
CN109814934A (en)*2019-01-312019-05-28安谋科技(中国)有限公司 Data processing method, apparatus, readable medium and system
CN109814934B (en)*2019-01-312022-05-06安谋科技(中国)有限公司Data processing method, device, readable medium and system
CN111273928A (en)*2019-09-102020-06-12深圳市汇泰科电子有限公司Self-upgrading bootloader design method
CN111273928B (en)*2019-09-102024-02-27深圳市汇泰科电子有限公司Bootloader design method for self-upgrading
CN110837383B (en)*2019-09-302023-10-31奇安信科技集团股份有限公司Application installation-free upgrading method and device
CN110837383A (en)*2019-09-302020-02-25奇安信科技集团股份有限公司Application installation-free upgrading method and device
CN110990045A (en)*2019-12-202020-04-10苏州浪潮智能科技有限公司 A dual BMC FLASH upgrade method and device
CN110990045B (en)*2019-12-202023-01-06苏州浪潮智能科技有限公司 A kind of double BMC FLASH upgrading method and equipment
CN112527371A (en)*2020-12-172021-03-19杭州海康威视数字技术股份有限公司Boot loader upgrading method and device, electronic equipment and storage medium
CN112527371B (en)*2020-12-172024-06-04杭州海康威视数字技术股份有限公司Boot loader upgrading method and device, electronic equipment and storage medium
CN114089925A (en)*2022-01-202022-02-25博为科技有限公司Double-image management method and related equipment
CN116048628B (en)*2022-07-212023-09-29荣耀终端有限公司 Equipment startup method and electronic equipment
CN116048628A (en)*2022-07-212023-05-02荣耀终端有限公司Equipment starting method and electronic equipment

Also Published As

Publication numberPublication date
CN102693139B (en)2015-09-30

Similar Documents

PublicationPublication DateTitle
CN102693139B (en)A kind of method and system of radio upgrade cell phone software
US8539471B2 (en)Updating firmware of an electronic device
CN109062598B (en)Safe OTA (over the air) upgrading method and system
US8560823B1 (en)Trusted modular firmware update using digital certificate
US20140250290A1 (en)Method for Software Anti-Rollback Recovery
CN102945176B (en) Method and device for starting and upgrading terminal equipment
WO2015176454A1 (en)Method and device for upgrading software
WO2017067448A1 (en)Firmware-over-the-air upgrade method, system and computer storage medium
TWI533216B (en)Operating system updating method
CN110333891A (en)The method of enhanced OTA upgrading based on Internet of Things
US9519786B1 (en)Firmware integrity ensurance and update
WO2011006378A1 (en)Method and system for upgrading wireless data card
CN106331862A (en)Set-top box software upgrading method and set-top box
CN103207800A (en)Method for safely and flexibly upgrading firmware
WO2018024198A1 (en)Application upgrade method and system for set-top box, and set-top box
KR20080023841A (en) Firmware upgrade and damaged firmware automatic recovery system and method
WO2020029967A1 (en)Method and apparatus for repairing fault in operating system
CN113032183A (en)System management method, device, computer equipment and storage medium
CN105183580A (en)Storage method and fault recovery method for bootstrap program, and devices
JP2016053839A (en) Information processing apparatus, control method thereof, and program
CN106325912B (en) Method and device for starting embedded operating system
JP2009009391A (en)Updating software self-update method and portable terminal device
CN111273928B (en)Bootloader design method for self-upgrading
CN105594184A (en)Software version upgrade method, apparatus and device
KR100832269B1 (en) Program update method and system of wireless communication terminal

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp