CN105893076A - Over the air upgrade method and device - Google Patents

Over the air upgrade method and device Download PDF

Info

Publication number
CN105893076A
CN105893076A CN201511004545.0A CN201511004545A CN105893076A CN 105893076 A CN105893076 A CN 105893076A CN 201511004545 A CN201511004545 A CN 201511004545A CN 105893076 A CN105893076 A CN 105893076A
Authority
CN
China
Prior art keywords
subregion
aerial upgrade
recovering process
file
upgrade
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.)
Pending
Application number
CN201511004545.0A
Other languages
Chinese (zh)
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201511004545.0A priority Critical patent/CN105893076A/en
Publication of CN105893076A publication Critical patent/CN105893076A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The invention relates to the field of firmware upgrade, and discloses an over the air upgrade method and device. The over the air upgrade method comprises following steps of downloading an over the air upgrade packet; and carrying out over the air upgrade by booting a recovery process, wherein the file on which operation of the recovery process depends is located in a subarea different from the subarea in which the over the air upgrade is operated. According to the method and the device provided by the invention, a system can restart successfully and continue to carry out the over the air upgrade.

Description

A kind of over-the-air upgrade method and device
Technical field
The present invention relates to firmware upgrade field, in particular it relates to a kind of over-the-air upgrade method and device.
Background technology
Stars at dawn semiconductor company (mstar) is simulation and the digital television chip supplier of whole world maximum.Mesh Before, major part intelligent television is all to use mstar platform to carry Android (android) system.In standard Android system in, system upgrade is all the aerial upgrade (i.e. OTA upgrading) of employing standard, i.e. rise During Ji user terminal without by other equipment (such as computer) but can directly by signal lead to The reception downloading mode in road is upgraded, and this OTA upgrading generally only depends on boot partition (example Such as, uboot subregion) and the file that recovers on (recovery) subregion the two subregion.
But, due to the design problem of mstar platform, the user terminal using mstar platform is being entered During row OTA upgrading, in addition it is also necessary to rely on the file on the subregion that mstar platform is proprietary, such as, right For intelligent television, this proprietary subregion is TV configuration subregion (namely tvconfig subregion), is used for Deposit corresponding configuration file.Owing to tvconfig subregion more greatly and is not the standard scores of Android system District, so the tvconfig that there will be certain probability in OTA escalation process upgrades unsuccessfully, Qi Zhong It is the most also tvconfig liter that the tvconfig caused because of just power-off during upgrading tvconfig subregion upgrades A kind of situation of level failure.More serious situation is, after tvconfig upgrades unsuccessfully, works as Android system When restarting and continue escalation process, owing to the recovering process of Android system need to rely on tvconfig subregion In file could run, but now tvconfig subregion has been bad, so user terminal can be caused Frequently restart and again can not enter escalation process, now can only ask after sale by the brush machine side of more bottom Method could save this user terminal.
Summary of the invention
It is an object of the invention to provide a kind of over-the-air upgrade method and device, the method is able to ensure that with device Aloft in escalation process, system is restarted smoothly and proceeds aerial upgrade.
To achieve these goals, the present invention provides a kind of over-the-air upgrade method, and the method includes: download Aerial upgrade bag;And startup recovering process carries out aerial upgrade, the operation of this recovering process is relied on File is positioned on the subregion different from the subregion running described aerial upgrade thereon.
The present invention also provides for a kind of aerial upgrade device, and this device includes: download module, is used for downloading sky Middle AKU;And upgraded module, it is used for starting recovering process to carry out aerial upgrade, this recovering process Run the file relied on to be positioned on the subregion different from the subregion running described aerial upgrade thereon.
By technique scheme, run, due to recovering process, the file relied on and be positioned at and run thereon On the subregion that the subregion of described aerial upgrade is different, the most aloft in escalation process, as the system reboots, Even if the subregion previously running aerial upgrade thereon has damaged, recovering process remains able to load smoothly This recovering process runs the file relied on such that it is able to guarantee to smoothly complete aerial upgrade.
Other features and advantages of the present invention will be described in detail in detailed description of the invention part subsequently.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and constitutes the part of description, with Detailed description below is used for explaining the present invention together, but is not intended that limitation of the present invention.? In accompanying drawing:
Fig. 1 is the flow chart of the over-the-air upgrade method according to one embodiment of the present invention;
Fig. 2 is the schematic block diagram of the aerial upgrade device according to one embodiment of the present invention;And
Fig. 3 is the schematic block of the upgraded module in the aerial upgrade device according to one embodiment of the present invention Figure.
Detailed description of the invention
Below in conjunction with accompanying drawing, the detailed description of the invention of the present invention is described in detail.It should be appreciated that Detailed description of the invention described herein is merely to illustrate and explains the present invention, is not limited to the present invention.
As it is shown in figure 1, following step can be included according to the over-the-air upgrade method of one embodiment of the present invention Rapid:
Step S1, download aerial upgrade bag.
Step S2, startup recovering process carry out aerial upgrade, and this recovering process runs the literary composition relied on Part is positioned on the subregion different from the subregion running described aerial upgrade thereon.
As a example by Android system, step S2 may include that the described recovering process of startup;Verify described sky Middle AKU;Decompress described aerial upgrade bag;And perform the script file in described aerial upgrade bag also From the subregion different from the subregion running described aerial upgrade thereon, obtain described recovering process run The file relied on, to carry out described aerial upgrade.The present invention is to the startup of recovering process, aerial upgrade The checking of bag, the decompression etc. of aerial upgrade bag operate and do not carry out substantial modifications, namely can use existing There is the corresponding operating in technology to complete the startup of recovering process, the checking of aerial upgrade bag, aerial upgrade The decompression of bag.
Wherein, the file that the operation of described recovering process is relied on can include arranging with Memory Allocation, display Relevant file.In recovering process running, so just can carry out suitable Memory Allocation and right Display screen is suitably arranged, so as to successfully carry out the aerial upgrade of system.
Carry as a example by the intelligent television of Android system by mstar platform.Such intelligent television can be deposited At the proprietary configuration subregion of mstar platform for depositing configuration file, namely tvconfig subregion. It addition, in order to successfully carry out aerial upgrade, the recovering process of Android system needs to utilize frame to buffer Equipment (i.e. FrameBuffer), this framebuffer device provides the abstractdesription of video card, and it represents The frame buffering of vision hardware, and allow application software to carry out accessing display card by the interface defined, in order to should Application software requires no knowledge about any operation of bottom.Therefore, in order to favorably accomplish aerial upgrade, Framebuffer device needs first to obtain and arranges relevant file to Memory Allocation, display.With mstar 918 As a example by 928 platforms, the operation of this framebuffer device need to rely in tvconfig subregion with hereafter Part: sys.ini, mmap.ini, model catalogue and panel catalogue, these are all and Memory Allocation and aobvious Show and relevant file is set.In order to avoid cannot because tvconfig subregion damages in aloft escalation process Obtain and relevant file is set to Memory Allocation and display, the setup code of framebuffer device can be entered Row amendment, in order to framebuffer device gets other subregions outside tvconfig subregion and divides with internal memory Join and show and relevant file is set, wherein, relevant file is set to Memory Allocation and display and is performing Backuped in advance before aerial upgrade on the subregion different from tvconfig subregion, such as can be at sky To Memory Allocation and display, relevant file backup will be set to such as TV service in advance before middle upgrading In data partition (namely tvservice subregion).During execution of aloft upgrading, tvservice Subregion will not be damaged, therefore, after system reboot and recovering process are activated, and recovering process energy Enough successfully load from tvservice subregion needed for it runs arrange relevant to Memory Allocation and display File, such that make in tvconfig subregion escalation process aloft damaged, recovering process is still Can successfully proceed aerial upgrade.
Only exemplarily list in recovering process as a example by mstar 918 and 928 platform it addition, above In carry out Memory Allocation and display required file is set.But, skilled artisan would appreciate that It is, in different systems (such as Android system and ios system etc.), for Memory Allocation and display Name and the deposit position of the file arranged may be different, and above example is not intended that the present invention The restriction of protection domain.
Preferably, recovering process was being started in step s 2 before carrying out aerial upgrade, according to this Bright over-the-air upgrade method can also include, described with run the subregion of described aerial upgrade not thereon Back up described recovering process on same subregion and run the file relied on.Such as, by tvconfig subregion Recovering process run needed for file backup in tvservice subregion.Owing to using mstar platform to take Carry in the intelligent television of Android system, tvconfig subregion can be carried out during carrying out aerial upgrade Upgrade but tvservice subregion will not be upgraded, the most aloft in escalation process, backed up in advance Relevant file is set will not be damaged to Memory Allocation and display in tvservice subregion, so, Recovering process just successfully can load from tvservice subregion and arrange relevant to Memory Allocation and display File so that aerial upgrade can smoothly complete.
The present invention also provides for a kind of aerial upgrade device, as in figure 2 it is shown, this device includes: download module 201, it is used for downloading aerial upgrade bag;And upgraded module 202, it is used for starting recovering process to carry out sky Middle upgrading, this recovering process is run the file relied on and is positioned at and runs dividing of described aerial upgrade thereon On the subregion that district is different.
Preferably, as it is shown on figure 3, upgraded module 202 may include that promoter module 301, it is used for Start described recovering process;Checking submodule 302, described for starting in described promoter module 301 Described aerial upgrade bag is verified after recovering process;Decompression submodule 303, in described aerial upgrade Wrap by decompressing described aerial upgrade bag after checking;And upgrading implementation sub-module 304, in institute State the script file performing in described aerial upgrade bag after aerial upgrade is coated decompression and from thereon Run and the subregion that the subregion of described aerial upgrade is different obtains described recovering process run the literary composition relied on Part, to carry out described aerial upgrade.Aerial upgrade device according to the present invention to the startup of recovering process, The checking of aerial upgrade bag, the decompression etc. of aerial upgrade bag operate and do not carry out substantial modifications, also With use corresponding operating of the prior art complete the startup of recovering process, the checking of aerial upgrade bag, The decompression of aerial upgrade bag.
Wherein, the file that the operation of described recovering process is relied on can include arranging with Memory Allocation, display Relevant file.In recovering process running, so just can carry out suitable Memory Allocation and right Display screen is suitably arranged, so as to successfully carry out the aerial upgrade of system.
Carry as a example by the intelligent television of Android system by mstar platform.Such intelligent television can be deposited At the proprietary configuration subregion of mstar platform for depositing configuration file, namely tvconfig subregion. It addition, in order to successfully carry out aerial upgrade, the recovering process of Android system needs to utilize frame to buffer Equipment (i.e. FrameBuffer), this framebuffer device provides the abstractdesription of video card, and it represents The frame buffering of vision hardware, and allow application software to carry out accessing display card by the interface defined, in order to should Application software requires no knowledge about any operation of bottom.Therefore, in order to favorably accomplish aerial upgrade, Framebuffer device needs first to obtain and arranges relevant file to Memory Allocation, display.With mstar 918 As a example by 928 platforms, the operation of this framebuffer device need to rely in tvconfig subregion with hereafter Part: sys.ini, mmap.ini, model catalogue and panel catalogue, these are all and Memory Allocation and aobvious Show and relevant file is set.In order to avoid cannot because tvconfig subregion damages in aloft escalation process Obtain and relevant file is set to Memory Allocation and display, the setup code of framebuffer device can be entered Row amendment, in order to framebuffer device gets other subregions outside tvconfig subregion and divides with internal memory Join and show and relevant file is set, wherein, relevant file is set to Memory Allocation and display and is performing Backuped in advance before aerial upgrade on the subregion different from tvconfig subregion, such as can be at sky To Memory Allocation and display, relevant file backup will be set to such as TV service in advance before middle upgrading In data partition (namely tvservice subregion).During execution of aloft upgrading, tvservice Subregion will not be damaged, therefore after system reboot and promoter module 301 start recovering process, Upgrading implementation sub-module 304 successfully can load needed for it runs and internal memory from tvservice subregion Distribution and display arrange relevant file, such that make quilt in tvconfig subregion escalation process aloft Damaging, upgrading implementation sub-module 304 remains able to successfully proceed aerial upgrade.
Only exemplarily list in recovering process as a example by mstar 918 and 928 platform it addition, above In carry out Memory Allocation and display required file is set.But, skilled artisan would appreciate that It is, in different systems (such as Android system and ios system etc.), for Memory Allocation and display Name and the deposit position of the file arranged may be different, and above example is not intended that the present invention The restriction of protection domain.
Preferably, as in figure 2 it is shown, memory module can also be included according to the aerial upgrade device of the present invention 203, described for backup on the subregion that subregion that is described and that run described aerial upgrade thereon is different Recovering process runs the file relied on.Such as, memory module 203 can be by extensive in tvconfig subregion Multiple process run needed for file backup in tvservice subregion.Owing to using mstar platform to carry In the intelligent television of Android system, tvconfig subregion can be risen during carrying out aerial upgrade Level but tvservice subregion will not be upgraded, the most aloft in escalation process, backuped in advance Relevant file is set will not be damaged to Memory Allocation and display in tvservice subregion, so, Upgraded module 202 just successfully can load from tvservice subregion and arrange phase with Memory Allocation and display The file closed so that aerial upgrade can smoothly complete.
It addition, over-the-air upgrade method and aerial upgrade device according to the present invention are not only applicable to mstar Platform carries the user terminal of Android system, it is indeed applicable to the non-standard aerial upgrade of any employing Mode carries out the user terminal of aerial upgrade.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention does not limit Detail in above-mentioned embodiment, in the technology concept of the present invention, can be to the present invention Technical scheme carry out multiple simple variant, these simple variant belong to protection scope of the present invention.
It is further to note that each the concrete technical characteristic described in above-mentioned detailed description of the invention, In the case of reconcilable, can be combined by any suitable means.In order to avoid unnecessary Repeating, various possible compound modes are illustrated by the present invention the most separately.
Additionally, combination in any can also be carried out between the various different embodiment of the present invention, as long as its Without prejudice to the thought of the present invention, it should be considered as content disclosed in this invention equally.

Claims (8)

1. an over-the-air upgrade method, the method includes:
Download aerial upgrade bag;And
Start recovering process and carry out aerial upgrade, this recovering process run the file that relied on be positioned at On the subregion that on it, subregion of the described aerial upgrade of operation is different.
Method the most according to claim 1, wherein, carries out sky in described startup recovering process Before middle upgrading, the method also includes: different at subregion that is described and that run described aerial upgrade thereon Subregion on back up described recovering process and run the file that relied on.
Method the most according to claim 1, wherein, described recovering process runs the literary composition relied on Part includes arranging relevant file to Memory Allocation, display.
Method the most according to claim 1, wherein, described startup recovering process is carried out in the air Upgrading includes:
Start described recovering process;
Verify described aerial upgrade bag;
Decompress described aerial upgrade bag;And
Perform the script file in described aerial upgrade bag and from run described aerial upgrade thereon The subregion that subregion is different obtains described recovering process and runs the file relied on, to carry out described aerial liter Level.
5. an aerial upgrade device, this device includes:
Download module, is used for downloading aerial upgrade bag;And
Upgraded module, is used for starting recovering process to carry out aerial upgrade, and this recovering process is run and relied on File be positioned on the subregion different from the subregion running described aerial upgrade thereon.
Device the most according to claim 5, this device also includes memory module, for described Back up described recovering process on the subregion different from the subregion running described aerial upgrade thereon and run institute The file relied on.
Device the most according to claim 5, wherein, described recovering process runs the literary composition relied on Part includes arranging relevant file to Memory Allocation, display.
Device the most according to claim 5, wherein, described upgraded module includes:
Promoter module, is used for starting described recovering process;
Checking submodule, verifies described sky after starting described recovering process in described promoter module Middle AKU;
Decompression submodule, decompresses described aerial upgrade bag after at described aerial upgrade bag by checking; And
Upgrading implementation sub-module, for performing described aerial upgrade after described aerial upgrade is coated decompression Script file in bag acquisition from the subregion different from the subregion running described aerial upgrade thereon Described recovering process runs the file relied on, to carry out described aerial upgrade.
CN201511004545.0A 2015-12-25 2015-12-25 Over the air upgrade method and device Pending CN105893076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511004545.0A CN105893076A (en) 2015-12-25 2015-12-25 Over the air upgrade method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511004545.0A CN105893076A (en) 2015-12-25 2015-12-25 Over the air upgrade method and device

Publications (1)

Publication Number Publication Date
CN105893076A true CN105893076A (en) 2016-08-24

Family

ID=57002556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511004545.0A Pending CN105893076A (en) 2015-12-25 2015-12-25 Over the air upgrade method and device

Country Status (1)

Country Link
CN (1) CN105893076A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802813A (en) * 2016-12-06 2017-06-06 智车优行科技(北京)有限公司 Method, device and vehicle for aerial firmware upgrade
CN109032777A (en) * 2018-06-29 2018-12-18 北京奇虎科技有限公司 Process method for restarting, calculates equipment and computer storage medium at device
CN109032632A (en) * 2018-07-13 2018-12-18 深圳高新兴物联科技有限公司 A kind of FOTA upgrade method, wireless communication terminal and storage medium
WO2023221002A1 (en) * 2022-05-18 2023-11-23 北京小米移动软件有限公司 Ota-based system updating method and apparatus, electronic device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130332647A1 (en) * 2012-06-11 2013-12-12 Samsung Electronics Co. Ltd. Method and apparatus for fault tolerant fota update with single backup block write
CN103885806A (en) * 2014-04-02 2014-06-25 深圳市兰丁科技有限公司 Implementation method and device for online upgrading of system software of set top box
CN103902309A (en) * 2012-12-27 2014-07-02 龙尚智联通信科技(上海)有限公司 Method for remotely upgrading wireless module firmware
US20140317614A1 (en) * 2012-01-12 2014-10-23 Facebook, Inc. Multiple System Images for Over-The-Air Updates
CN104598237A (en) * 2015-01-19 2015-05-06 青岛海信宽带多媒体技术有限公司 Method and device for generating user interface in upgrade mode
CN105183517A (en) * 2015-09-14 2015-12-23 广东欧珀移动通信有限公司 Method and device for mounting external storage equipment in recovery mode and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140317614A1 (en) * 2012-01-12 2014-10-23 Facebook, Inc. Multiple System Images for Over-The-Air Updates
US20130332647A1 (en) * 2012-06-11 2013-12-12 Samsung Electronics Co. Ltd. Method and apparatus for fault tolerant fota update with single backup block write
CN103902309A (en) * 2012-12-27 2014-07-02 龙尚智联通信科技(上海)有限公司 Method for remotely upgrading wireless module firmware
CN103885806A (en) * 2014-04-02 2014-06-25 深圳市兰丁科技有限公司 Implementation method and device for online upgrading of system software of set top box
CN104598237A (en) * 2015-01-19 2015-05-06 青岛海信宽带多媒体技术有限公司 Method and device for generating user interface in upgrade mode
CN105183517A (en) * 2015-09-14 2015-12-23 广东欧珀移动通信有限公司 Method and device for mounting external storage equipment in recovery mode and electronic device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802813A (en) * 2016-12-06 2017-06-06 智车优行科技(北京)有限公司 Method, device and vehicle for aerial firmware upgrade
CN106802813B (en) * 2016-12-06 2020-04-17 智车优行科技(北京)有限公司 Method and device for upgrading aerial firmware and vehicle
CN109032777A (en) * 2018-06-29 2018-12-18 北京奇虎科技有限公司 Process method for restarting, calculates equipment and computer storage medium at device
CN109032632A (en) * 2018-07-13 2018-12-18 深圳高新兴物联科技有限公司 A kind of FOTA upgrade method, wireless communication terminal and storage medium
CN109032632B (en) * 2018-07-13 2021-11-09 高新兴物联科技有限公司 FOTA upgrading method, wireless communication terminal and storage medium
WO2023221002A1 (en) * 2022-05-18 2023-11-23 北京小米移动软件有限公司 Ota-based system updating method and apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN106658475B (en) Method and device for upgrading over-the-air technology
CN105573780B (en) A kind of mobile terminal operating system upgrade method and device based on container
CN106886436B (en) Android system upgrading method and device
CN107333181A (en) Linux system intelligent television software upgrade method
US20120102477A1 (en) Firmware update method and apparatus for a mobile device
CN106610840A (en) FOTA (Firmware Over-The-Air) upgrade method and system
CN105094913B (en) System, base band firmware and system application upgrade method and device
CN105893076A (en) Over the air upgrade method and device
CN104918114A (en) Method and device for upgrading operation system
CN103218242B (en) A kind of method of automatic renewal
CN104252363A (en) Rapid starting method for vehicle-mounted system based on Android system
JP2007528534A (en) Using a loader to notify system software update services
CN101826026A (en) Embedded equipment and on-line updating system and method of firmware in embedded equipment
CN106293824A (en) A kind of from the method and device processing chip upgrade
CN103793248B (en) Method and device for upgrading application program
CN106210877A (en) The method for upgrading system of intelligent television and device
CN106331862A (en) Set-top box software upgrading method and set-top box
US20200379742A1 (en) Validation of configurations of factory installations
CN108322540A (en) Customized data lead-in method, terminal and computer readable storage medium
CN111290773B (en) System upgrade method, device and readable storage medium
CN111427624A (en) Method, device and system for batch automatic deployment and configuration of servers
CN103885802A (en) Driver installation method and device and client
CN105138352A (en) Method and apparatus for installing application plugins
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
CN105468420B (en) Operating system update method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160824

WD01 Invention patent application deemed withdrawn after publication