CN101330695A - Mobile terminal as well as system upgrade method and device thereof - Google Patents
Mobile terminal as well as system upgrade method and device thereof Download PDFInfo
- Publication number
- CN101330695A CN101330695A CNA200810142723XA CN200810142723A CN101330695A CN 101330695 A CN101330695 A CN 101330695A CN A200810142723X A CNA200810142723X A CN A200810142723XA CN 200810142723 A CN200810142723 A CN 200810142723A CN 101330695 A CN101330695 A CN 101330695A
- Authority
- CN
- China
- Prior art keywords
- new edition
- memory block
- edition system
- parameter
- system memory
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention is applicable for the field of mobile communication, and provides a mobile terminal, a method and a device for updating the system of the mobile terminal. The method comprises the steps of establishing two independent system storage areas in a mobile terminal for storing a new-edition system and an old-edition system respectively before the mobile terminal system is updated; writing the downloaded new-edition system in the preset system storage area for storing the new-edition system; loading the new-edition system written in the preset system storage area for storing the new-edition system to a memory, and loading the old-edition system in the system storage area preset for storing the old-edition system to the memory in case of failure in loading the new-edition system. By adopting the mobile terminal, the method and the device, when the new-edition system fails to be loaded, the old-edition system can be loaded, thus ensuring the safety for updating the mobile terminal system.
Description
Technical field
The invention belongs to moving communicating field, relate in particular to the method and apparatus of a kind of portable terminal and system upgrade thereof.
Background technology
At present, the method for mobile terminal system upgrading is generally: an operating system district only is set on portable terminal; During upgrading, after the original system data on the portable terminal are all wiped, again upgrade file is write described operating system district.This method directly covers original operating system in escalation process, in a single day escalation process meets accident, and it is unavailable that system will become, and do not have safety assurance.
Prior art provides the method for another kind of mobile terminal system upgrading, this system comprises main with entity and monitoring entity, when the master carries out the redaction upgrading with entity, survey with the entity upgrade status main by monitoring entity, and when the master failed with the entity upgrading, monitoring entity control is main to revert to the preceding state of this upgrading with entity, though it is safe and reliable, but there is monitoring entity in this kind method, has the monitoring relation, implements complexity, cost height.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method of mobile terminal system upgrading, when being intended to solve prior art and upgrading in the system to portable terminal, is difficult to guarantee the problem of the fail safe of system upgrade.
The embodiment of the invention is achieved in that a kind of method of mobile terminal system upgrading, and described method comprises the steps:
The new edition system of downloading is write the system memory block of the default new edition system of storage;
New edition system loads in the system memory block of the new edition system of storage that said write is default is to internal memory, and when loading failure, with the old edition system loads in the system memory block of default storage old edition system to internal memory.
Another purpose of the embodiment of the invention is to provide a kind of mobile terminal system update device, and described device comprises:
New edition system writing unit, the new edition system that is used for downloading writes the system memory block of the default new edition system of storage;
New edition system loads unit, the new edition system loads of system memory block that is used for the new edition system of storage that said write is default be to internal memory, and when loading failure, with the old edition system loads in the system memory block of default storage old edition system to internal memory.
Another purpose of the embodiment of the invention is to provide a kind of portable terminal that comprises described mobile terminal system update device.
Compared with prior art, the embodiment of the invention is by being provided with two independently system memory blocks in portable terminal, and one is used to store current old edition system, and another is used to store new edition system; During upgrading new edition system is written to obsolete system of old edition system memory block, when portable terminal starts, load the new edition mobile terminal system earlier, and when the new edition mobile terminal system loads failure, load the old edition mobile terminal system, thereby guaranteed the fail safe of mobile terminal system upgrading.
Description of drawings
Fig. 1 is the realization flow figure of the method for the mobile terminal system upgrading that provides of the embodiment of the invention;
Fig. 2 is the structural representation of the device of the mobile terminal system upgrading that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, two independently system memory blocks are set in portable terminal in advance, the old edition mobile terminal system is stored in one of them system memory block, the new edition mobile terminal system of downloading is stored in another system memory block.When restarting portable terminal, load the new edition mobile terminal system earlier, and when the loading of new edition mobile terminal system is unsuccessful, load the old edition mobile terminal system, thereby guaranteed the fail safe of mobile terminal system upgrading.
The realization flow of the method that the mobile terminal system that Fig. 1 shows the embodiment of the invention to be provided is upgraded, details are as follows:
In step S101, before carrying out for the first time the mobile terminal system upgrading, in portable terminal, preset two independently system memory blocks.
One of them system memory block is used for system's (being called the old edition system) of the current use of memory mobile terminal, the latest edition system that another system's storage area stores is used to upgrade (being called new edition system).
In step S102, whether there is new edition system in the upgrade server of detection portable terminal, if, execution in step S103, if not, execution in step S106.
In embodiments of the present invention, start earlier the ROMPaq of portable terminal, the ROMPaq of portable terminal is connected with upgrade server.The ROMPaq of portable terminal detects in the upgrade server whether have new edition system according to the operating system update record of keeping in the portable terminal.When not detecting new edition system, withdraw from the ROMPaq of portable terminal, and execution in step S106; When detecting new edition system, execution in step S103.
Wherein the ROMPaq of portable terminal and connected mode between the upgrade server can adopt that network is connected, USB connects, serial ports connects, the parallel port connects, combined testing action group (Joint Test Action Group, JTAG) connected mode such as interface connection.
In step S103, with detected new edition system downloads to portable terminal this locality.
In embodiments of the present invention, when downloading detected new edition system, can create the temporary folder of a correspondence, detected new edition system is stored in this temporary folder.
In step S104, the new edition system of downloading is written to the system memory block of the default new edition system of storage.Its detailed process is as follows:
Read configuration file, wherein configuration file comprises at least two parameters, the system memory block at the system place of the current use of parameter 1 expression, and during parameter 2 expression portable terminal startups next time, the system memory block at the system place that need load.According to the parameter in the configuration file 1 new edition system is written in another system memory block that is different from parameter 1 mark, in the system memory block that promptly current system does not have to use.Before new edition system being written to no system of current system memory block, wipe the total data of being stored in this system memory block earlier.
For when start portable terminal next time, can finish the updating operation of system, in embodiments of the present invention, after new edition system being write obsolete system of old edition system memory block, revise the relevant parameter in the configuration file.As parameter in the configuration file 2 being revised as system's memory block mark of the new edition system of storage, so that when starting portable terminal, can preferentially load new edition system next time.
The purpose of revising configuration file is: a, next time can judge which operating system district the new edition system of being downloaded should be written to according to this configuration file when upgrading; B, when BootLoader load operation system, can load the system of which system memory block according to the decision of this profile information.
In step S105, start portable terminal, load new edition system.
At first read configuration file,, the new edition system loads that is written in the portable terminal is arrived internal memory by BootLoader according to the parameter in the configuration file 2; If load successfully, execution in step S106 then; Otherwise, execution in step S107.
In step S106, parameter in the configuration file 1 is revised as the memory block mark at new edition system place, carry out system initialization, normal start-up system.
In step S107, revise the parameter 2 of configuration file, be system's memory block mark of storage old edition system, BootLoader loads the old edition system according to the parameter in the configuration file 2, and prompting upgrading last time is unsuccessful.Wherein the ROMPaq of portable terminal can be kept a system upgrade record, and during each start-up system ROMPaq, whether the download version of all wanting the detecting operation system is with to move version consistent, and unanimity is then represented to upgrade successfully, does not point out; Inconsistently then point out the user, upgraded success of operating system last time, whether again upgrading.
Fig. 2 shows the structure of the updating mobile terminal system that the embodiment of the invention provides, and for convenience of explanation, only shows the relevant part of the embodiment of the invention.This updating mobile terminal system is built in the unit that software unit, hardware cell or software and hardware in the portable terminal combine.
System partitioning is provided with unit 21 and is used at portable terminal two independently system memory blocks being set.System's (being called the old edition system) of the current use of one of them system's storage area stores, the latest edition system that another system's storage area stores is used to upgrade (being called new edition system).
Whether the upgrade server that new edition system detecting unit 22 is used for detecting portable terminal exists new edition system.Its detailed process does not repeat them here as mentioned above.
New edition system downloads unit 23 detects when having new edition system in the upgrade server at new edition system detecting unit 22, downloads new edition system to portable terminal this locality.
New edition system writing unit 24 is used for the new edition system that new edition system downloads unit 23 is downloaded is write the system memory block of the default new edition system of storage.
New edition system loads unit 25 is when portable terminal starts, the system of being stored in is provided with new edition system loads in the system memory block that unit 21 is provided with to internal memory, to realize the upgrading of mobile terminal system, and when the new edition system loads is unsuccessful, the system of being stored in is provided with in another system memory block that unit 21 is provided with the old edition system loads to internal memory, thereby when mobile terminal system upgrading failure, can be by reloading the fail safe that the old edition system guarantees that mobile terminal system is upgraded.
In embodiments of the present invention, two independently system memory blocks are set in portable terminal in advance, and when detecting new edition system, download new edition system, and new edition system is write obsolete system of old edition system memory block, when portable terminal starts, load new edition system earlier, and when the new edition system loads is failed, load the old edition system, thereby guaranteed the fail safe of mobile terminal system upgrading.
One of ordinary skill in the art will appreciate that, realize that all or part of step in the foregoing description method is to finish by the relevant hardware of program command, described program can be in being stored in a computer read/write memory medium, described storage medium is as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1, a kind of method of mobile terminal system upgrading is characterized in that described method comprises the steps:
The new edition system of downloading is write the system memory block of the default new edition system of storage;
New edition system loads in the system memory block of the new edition system of storage that said write is default is to internal memory, and when loading failure, with the old edition system loads in the system memory block of default storage old edition system to internal memory.
2, the method for claim 1, it is characterized in that, before carrying out for the first time the mobile terminal system upgrading, two independently system memory blocks are set in described portable terminal, one of them system memory block is used to store new edition system, and another system memory block is used to store the old edition system.
3, the method for claim 1 is characterized in that, writes at the described new edition system that will download before the step of system memory block of the default new edition system of storage, and described method also comprises:
Read the default configuration file that is used for system upgrade, at least comprise first parameter and second parameter in the described configuration file, described first parameter is used for the system memory block at the current system of mark place, and described second parameter is used for the system memory block that mark needs the system place that loads next time.
4, method as claimed in claim 3 is characterized in that, the step that the described new edition system that will download writes the system memory block of the default new edition system of storage is specially:
According to first parameter in the described configuration file, described new edition system is write the system memory block that is different from described first parameter tags.
5, method as claimed in claim 4 is characterized in that,, described new edition system is write before the step of the system memory block that is different from described first parameter tags according to first parameter in the described configuration file described, and described method also comprises:
Wipe the legacy data in the system memory block that is different from described first parameter tags.
6, method as claimed in claim 4 is characterized in that,, described new edition system is write after the step of the system memory block that is different from described first parameter tags according to first parameter in the described configuration file described, and described method also comprises:
With second parameter update in the described configuration file is the mark of the system memory block of described new edition system.
7, method as claimed in claim 3, it is characterized in that, the new edition system loads of system memory block that writes the default new edition system of storage to internal memory, and when loading failure, is specially the step of the old edition system loads in the system memory block of default storage old edition system to internal memory:
According to second parameter in the described configuration file, will write new edition system loads in the system memory block of described second parameter tags to internal memory;
When the success of new edition system loads, be the mark of the system memory block of described new edition system with first parameter update in the described configuration file;
When the new edition system loads is failed, be the mark of the system memory block of described old edition system with second parameter update in the described configuration file, will write old edition system loads in the system memory block of system memory block of described second parameter tags to internal memory.
8, the method for claim 1 is characterized in that, writes at the described new edition system that will download before the step of system memory block of the default new edition system of storage, and described method also comprises:
Detect in the upgrade server of portable terminal whether have new edition system, if, then with detected new edition system downloads to portable terminal this locality.
9, a kind of mobile terminal system update device is characterized in that, described device comprises:
New edition system writing unit, the new edition system that is used for downloading writes the system memory block of the default new edition system of storage;
New edition system loads unit, the new edition system loads of system memory block that is used for the new edition system of storage that said write is default be to internal memory, and when loading failure, with the old edition system loads in the system memory block of default storage old edition system to internal memory.
10, device as claimed in claim 9 is characterized in that, described device also comprises:
System partitioning is provided with the unit, is used at portable terminal two independently system memory blocks being set, and one of them system memory block is used to store new edition system, and another system memory block is used to store the old edition system;
New edition system detecting unit, whether the upgrade server that is used for detecting portable terminal exists new edition system;
New edition system downloads unit is used for when described new edition system detecting unit detects new edition system, with described detected new edition system downloads to portable terminal this locality.
11, a kind of portable terminal that comprises claim 9 or 10 described mobile terminal system update devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810142723XA CN101330695A (en) | 2008-07-30 | 2008-07-30 | Mobile terminal as well as system upgrade method and device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810142723XA CN101330695A (en) | 2008-07-30 | 2008-07-30 | Mobile terminal as well as system upgrade method and device thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101330695A true CN101330695A (en) | 2008-12-24 |
Family
ID=40206239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200810142723XA Pending CN101330695A (en) | 2008-07-30 | 2008-07-30 | Mobile terminal as well as system upgrade method and device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101330695A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826026A (en) * | 2010-04-12 | 2010-09-08 | 中兴通讯股份有限公司 | Embedded equipment and on-line updating system and method of firmware in embedded equipment |
CN102436383A (en) * | 2010-09-29 | 2012-05-02 | ***通信集团公司 | Method and device for processing firmware programs |
CN105653313A (en) * | 2015-12-14 | 2016-06-08 | 重庆川仪自动化股份有限公司 | Program updating method and apparatus |
CN106101841A (en) * | 2016-07-13 | 2016-11-09 | 青岛海信宽带多媒体技术有限公司 | The firmware upgrade method of a kind of projection TV and device |
CN109218054A (en) * | 2017-07-03 | 2019-01-15 | 腾讯科技(深圳)有限公司 | Terminal dynamic configuration, respective server implementation method, device and storage medium |
CN109408135A (en) * | 2018-08-29 | 2019-03-01 | 百度在线网络技术(北京)有限公司 | Dual system upgrade method, device, equipment and computer readable storage medium |
CN109445831A (en) * | 2018-12-29 | 2019-03-08 | 唐山松下产业机器有限公司 | Welder system upgrade method and welding machine |
WO2024131374A1 (en) * | 2022-12-21 | 2024-06-27 | 中兴通讯股份有限公司 | Cross-system upgrade method and apparatus for set-top box, set-top box, and storage medium |
-
2008
- 2008-07-30 CN CNA200810142723XA patent/CN101330695A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826026A (en) * | 2010-04-12 | 2010-09-08 | 中兴通讯股份有限公司 | Embedded equipment and on-line updating system and method of firmware in embedded equipment |
CN102436383A (en) * | 2010-09-29 | 2012-05-02 | ***通信集团公司 | Method and device for processing firmware programs |
CN105653313A (en) * | 2015-12-14 | 2016-06-08 | 重庆川仪自动化股份有限公司 | Program updating method and apparatus |
CN106101841A (en) * | 2016-07-13 | 2016-11-09 | 青岛海信宽带多媒体技术有限公司 | The firmware upgrade method of a kind of projection TV and device |
CN109218054A (en) * | 2017-07-03 | 2019-01-15 | 腾讯科技(深圳)有限公司 | Terminal dynamic configuration, respective server implementation method, device and storage medium |
CN109408135A (en) * | 2018-08-29 | 2019-03-01 | 百度在线网络技术(北京)有限公司 | Dual system upgrade method, device, equipment and computer readable storage medium |
CN109445831A (en) * | 2018-12-29 | 2019-03-08 | 唐山松下产业机器有限公司 | Welder system upgrade method and welding machine |
WO2024131374A1 (en) * | 2022-12-21 | 2024-06-27 | 中兴通讯股份有限公司 | Cross-system upgrade method and apparatus for set-top box, set-top box, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101330695A (en) | Mobile terminal as well as system upgrade method and device thereof | |
JP5113700B2 (en) | Firmware update apparatus and method | |
US8539471B2 (en) | Updating firmware of an electronic device | |
US7313682B2 (en) | Method and system for updating boot memory that stores a fail-safe reset code and is configured to store boot code and boot updater code | |
TWI396076B (en) | Wireless handset, nonvolatile memory for wireless handset, and method for failsafe preservation of diagnostic information | |
CN105930236A (en) | Application program version returning method based on BMS Bootloaderupgrade | |
US20070074201A1 (en) | Method and system for updating software and computer readable recording medium storing the method | |
CN101650662A (en) | Memory device of embedded system and staring method and upgrading of firmware | |
EP3200077B1 (en) | Vehicle control device, reprogramming system | |
CN102334100A (en) | Program update device, program update method, and information processing device | |
CN103299276A (en) | Software updating process for an embedded device | |
CN101815988A (en) | Firmware image update and management | |
CN102508686A (en) | Method and system for realizing safe upgrading of system | |
CN105988843A (en) | Firmware upgrade method and firmware upgrade device for mobile terminal | |
CN101571807A (en) | System with firmware and starting method thereof | |
CN104915226A (en) | Network device software starting method, device and network device | |
CN108345464A (en) | A kind of the startup method and Android vehicle device of Android system | |
CN107566169A (en) | A kind of firmware upgrade method and router based on openwrt | |
KR20080023841A (en) | The method of firmware upgrade and automatic firmware recovery system | |
CN106227620A (en) | Recoverable Flash data storage method | |
CN100362470C (en) | BIOS on-line upgrading method | |
CN116450244A (en) | Chip starting method, device, computer equipment and storage medium | |
CN102226888B (en) | Framework loading method and device | |
CN101299190B (en) | Software upgrading method, system and built-in equipment of read-only file system | |
CN100550744C (en) | The method that network element device is configured |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20081224 |