CN102841802B - The method for upgrading software of mobile terminal - Google Patents

The method for upgrading software of mobile terminal Download PDF

Info

Publication number
CN102841802B
CN102841802B CN201210264924.3A CN201210264924A CN102841802B CN 102841802 B CN102841802 B CN 102841802B CN 201210264924 A CN201210264924 A CN 201210264924A CN 102841802 B CN102841802 B CN 102841802B
Authority
CN
China
Prior art keywords
upgrading
mobile terminal
ram
software
memory block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210264924.3A
Other languages
Chinese (zh)
Other versions
CN102841802A (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.)
RDA MICROELECTRONICS CO Ltd
Original Assignee
RDA MICROELECTRONICS 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 RDA MICROELECTRONICS CO Ltd filed Critical RDA MICROELECTRONICS CO Ltd
Priority to CN201210264924.3A priority Critical patent/CN102841802B/en
Publication of CN102841802A publication Critical patent/CN102841802A/en
Application granted granted Critical
Publication of CN102841802B publication Critical patent/CN102841802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

This application discloses a kind of method for upgrading software of mobile terminal, comprising: in the operating system of mobile terminal, increase ROMPaq, and be increased in the first condition, the second condition that start described ROMPaq in running of mobile terminal process, in start process.User by have upgrading map program, software upgrade package storage card be installed on mobile terminal.User achieves first condition, and ROMPaq marks off memory block in the RAM of mobile terminal, copies in the memory block of RAM, then achieve the upgrading map program on storage card second condition, and restart mobile terminal.Upgrading map program in the memory block of RAM copies in the execution district of RAM by ROMPaq, and starts this upgrading map program.Software upgrade package in upgrading map program load store card, and perform the software upgrading operation of mobile terminal.The application can be used for any software upgrading with the mobile terminal of dismountable storage card, and has simple to operate, upgrading safety, automatically degree advantages of higher.

Description

The method for upgrading software of mobile terminal
Technical field
The application relates to a kind of method for upgrading software of mobile terminal, and described software comprises the operating system, firmware etc. of mobile terminal.
Background technology
With mobile phone, PDA, panel computer etc. for the mobile terminal of representative can be divided into non intelligent and intelligent two classes.Non-intelligent mobile terminal adopts closed operating system, or can not install third party software, or only supports the installation (closed operating system only for supporting Java) of java applet.Intelligent mobile terminal adopts open operating system, can install arbitrarily third-party application software.
For improving performance, increase the consideration such as compatibility to software and hardware product, amendment bug, the software in mobile terminal often needs to upgrade to redaction.
The software upgrading of intelligent mobile terminal is comparatively simple.Because there is a boot among its firmware or operating system, be similar to the BIOS of computing machine.Intelligent mobile terminal can download software upgrade package, then carries out software upgrading by means of this boot.
The software upgrading of non-intelligent mobile terminal is comparatively complicated.Because do not comprise boot among its firmware or operating system.The general serial cable that adopts connects the serial line interface of non-intelligent mobile terminal and the serial line interface of computing machine at present, places software upgrade package on computers, is realized the software upgrading on non-intelligent mobile terminal by specific program.This method for upgrading software has following shortcoming:
One, in escalation process, if computing machine power down can cause upgrading unsuccessfully, and may make the early version software on non-intelligent mobile terminal be wiped free of, and cause non-intelligent mobile terminal normally cannot open, run.
Its two, the limited amount of the non-intelligent mobile terminal of once the upgrading serial line interface quantity in the quantity, every platform computing machine of computing machine, be unfavorable for that the manufacturer of non-intelligent mobile terminal or after sale service business carry out large-scale software upgrading, work efficiency is low.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of method for upgrading software of dynamic terminal, can complete simple, safe upgrading, and improve the efficiency of software upgrading in without the need to the environment of computing machine.
In order to solve the problems of the technologies described above, the method for upgrading software of the application's mobile terminal comprises:
1st step, increases ROMPaq in the operating system of mobile terminal, and is increased in the first condition starting described ROMPaq in running of mobile terminal process, starts the second condition of described ROMPaq in mobile terminal-opening process;
2nd step, the upgrading map program of mobile terminal, software upgrade package are stored in storage card by user, and are installed on mobile terminal by storage card;
3rd step, user achieves first condition, thus starts described ROMPaq in running of mobile terminal process; Described ROMPaq marks off memory block in the RAM of mobile terminal, copies in the memory block of RAM, then achieve the upgrading map program on storage card second condition, and restart mobile terminal;
4th step, mobile terminal starts described ROMPaq in start process; Upgrading map program in the memory block of RAM copies in the execution district of RAM by described ROMPaq, and starts this upgrading map program;
5th step, the software upgrade package in described upgrading map program load store card, and the software upgrading operation performing mobile terminal.
The application can be used for any software upgrading with the mobile terminal of dismountable storage card, and there is the advantages such as the restricted number that operating process is simple, escalation process safety, automaticity are high, nothing is upgraded simultaneously, thus effectively improve quality and the efficiency of software upgrading.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the application is described in further detail.
Fig. 1 is the process flow diagram of the first embodiment of the method for upgrading software of the application's mobile terminal;
Fig. 2 is the process flow diagram of the second embodiment of the method for upgrading software of the application's mobile terminal.
Embodiment
Storage medium in mobile terminal at least comprises RAM and Flash two parts, correspond to the concept of internal memory in computing machine and disk respectively.Also there is ROM in some mobile terminal, it is still preserved after data power down, but not erasable.Some mobile terminal also has dismountable storage card, such as mmc card, SD card, MiniSD card, TF card, SDHC card, xD card, memory stick etc.The software (firmware, operating system etc.) of mobile terminal is stored in Flash usually.
Refer to Fig. 1, this is the first embodiment of the method for upgrading software of the application's mobile terminal, comprises the steps:
1st step, ROMPaq is increased in the operating system of mobile terminal, and be increased in running of mobile terminal process the first condition (referring to that the operating system on mobile terminal is normally run) and start described ROMPaq, in mobile terminal-opening process, (refer to that the operating system on mobile terminal not yet brings into operation) start the second condition of described ROMPaq.
2nd step, the upgrading map program of mobile terminal, software upgrade package are stored in storage card, and are installed on mobile terminal by storage card by user.
3rd step, user achieves first condition, thus starts described ROMPaq in the operational process of mobile terminal.Described ROMPaq marks off one piece of region and is called memory block in the RAM of mobile terminal, and the region in RAM except memory block is called execution district.Upgrading map program on storage card copies in the memory block of RAM by described ROMPaq.Then, described ROMPaq achieves second condition automatically, and restarts mobile terminal.
4th step, mobile terminal starts described ROMPaq in start process.Upgrading map program in the memory block of RAM copies in the execution district of RAM by described ROMPaq, and starts this upgrading map program.
5th step, the software upgrade package in described upgrading map program load store card, and the software upgrading operation performing mobile terminal.Such as, described software upgrade package is burnt among the storage medium of mobile terminal by upgrading map program, replaces the original software on mobile terminal.
In this first embodiment, described upgrading map program is such as RamImage.Described upgrading map program and software upgrade package such as in GCC translation and compiling environment cross compile obtain.Under described upgrading map program, software upgrade package are such as all placed on the root directory of storage card.
On the basis of this first embodiment, applicant, in conjunction with some preferred implementations, further provides the second embodiment of the method for upgrading software of the application's mobile terminal, as shown in Figure 2.It comprises the steps:
1st step, increases ROMPaq in the operating system of mobile terminal, and is increased in the first condition starting described ROMPaq in running of mobile terminal process, starts the second condition of described ROMPaq in mobile terminal-opening process.
Described first condition is such as set to, once operating system captures the specific input operation of input media, namely starts described ROMPaq.This specific input operation can be: on the keyboard of mobile terminal, input specific character string; Paddling given shape on the touch-screen of mobile terminal; Press or the short button etc. pressed on mobile terminal with particular order, combination, length.
Described second condition is such as set to, and one opens mobile terminal, and operating system (or firmware) namely reads the upgrading mark in storage medium.If the upgrading not reading upgrading mark or reading is designated non-enabled state, then normally start the operating system.If the upgrading of reading is designated enabled state, then start ROMPaq.
2nd step, the upgrading map program of mobile terminal, software upgrade package, configuration file are stored in storage card, and are installed on mobile terminal by storage card by user.
Or the upgrading map program of mobile terminal, software upgrade package are stored in storage card, and are installed on mobile terminal by storage card by user.Then, user sets up configuration file on a memory card by mobile terminal.
Described configuration file at least records the title of upgrading map program, the title of software upgrade package on storage card.
3rd step, user achieves first condition, namely carries out specific input operation by the input media of mobile terminal, thus start described ROMPaq in the operational process of mobile terminal.Described ROMPaq marks off one piece of region and is called memory block in the RAM of mobile terminal, and the region in RAM except memory block is called execution district.Described ROMPaq automatically sets up upgrading mark in the memory block of RAM.Described ROMPaq also reads the title of the upgrading map program in configuration file, thus finds the upgrading map program on storage card, and is copied in the memory block of RAM.Described upgrading flag is also enabled state by described ROMPaq.Then, described ROMPaq restarts mobile terminal.
4th step, mobile terminal detects that in start process the upgrading in RAM is designated enabled state, thus starts described ROMPaq.Upgrading map program in the memory block of RAM copies in the execution district of RAM by described ROMPaq, and starts this upgrading map program.
5th step, described upgrading map program reads the title of the software upgrade package in configuration file, thus finds the software upgrade package in storage card, and performs the software upgrading operation of mobile terminal.
6th step, after the software of mobile terminal is successfully upgraded, the upgrading mark in the memory block of RAM is revised as non-enabled state by described ROMPaq.Such mobile terminal is restarted when non-power-off, normally starts the operating system after upgrading owing to not achieving second condition.And restart in the event of a power failure, owing to losing after the information power-off in RAM, thus also cannot second condition be achieved and operating system after normally starting upgrading.
In this second embodiment, under described configuration file is such as also placed on the root directory of storage card.
In the 3rd step of this second embodiment, described ROMPaq divides the region of fixed size usually as memory block in the RAM of mobile terminal.Preferably, described ROMPaq usually in the RAM of mobile terminal, divide fixed size and the region of fixed address as memory block.More preferably, the upgrading mark in the memory block of RAM, upgrading map program are all stored in the unit of fixed address.
In the 3rd step of this second embodiment, described ROMPaq can also record following content set up upgrading mark in the memory block of RAM while in the memory block of RAM:
1, upgrading map program preallocated memory address in the memory block of RAM.Like this in the 3rd step, the upgrading map program on storage card is copied to the predistribution memory address place of the memory block of RAM by described ROMPaq.
2, upgrading map program preallocated executive address in the execution district of RAM.Like this in the 4th step, the upgrading map program in the memory block of RAM is copied to the predistribution executive address place in the execution district of RAM by described ROMPaq.
When starting shooting after mobile terminal power-off, after its RAM newly powers on, may there is various random value in each unit again, and this may cause second condition described in firmware erroneous judgement to be set up.Such as, described upgrading identifies the fixed address that is always stored in the memory block of RAM, when its for 0x55(wherein 0x represent sexadecimal) time represent that it is enabled state.If after RAM newly powers on, the unit just storing upgrading mark creates 0x55 numerical value randomly, and so the firmware of mobile terminal will start ROMPaq mistakenly.
In order to avoid this type of mistake occurs, in the 3rd step of this second embodiment, described ROMPaq can also record identifying code set up upgrading mark in the memory block of RAM while in the memory block of RAM.This identifying code is the function of upgrading mark value, is used for carrying out double verification to the value of upgrading mark.Such as, identifying code is set to every negate of the binary number of upgrading mark value, namely everybody 1,0 exchanges.Like this in the 4th step, mobile terminal detects that in start process the upgrading in RAM is designated enabled state, and the check code in RAM is every negate of the enabled state value of upgrading mark, just starts described ROMPaq.Thus completely eliminate RAM newly power on after each unit random value cause judge by accident second condition set up risk.
In sum, the method for upgrading software of the application's mobile terminal is supported, to software upgrading that is non intelligent, intelligent mobile terminal, to be particularly useful for the software upgrading of non-intelligent mobile terminal, only to need it to have dismountable storage card simultaneously.This software upgrade scheme, without the need to using any interface of mobile terminal, thus can reduce production and the design cost of mobile terminal; Also without the need to being connected with computing machine, thus simplifying operating process, reducing potential safety hazard.After " user achieves first condition ", software upgrade process namely without the need to manual control, and is automatically carried out; And manual operation before this step is also very simple, and the mobile terminal of simultaneously upgrading does not have quantitative restriction, thus substantially increases work efficiency.

Claims (7)

1. a method for upgrading software for mobile terminal, is characterized in that, comprising:
1st step, increases ROMPaq in the operating system of mobile terminal, and is increased in the first condition starting described ROMPaq in running of mobile terminal process, starts the second condition of described ROMPaq in mobile terminal-opening process;
Described first condition is set to, once operating system captures the specific input operation of input media, namely starts described ROMPaq;
Described second condition is set to, and one opens mobile terminal, and namely firmware reads the upgrading mark in the memory block of RAM; If the upgrading not reading upgrading mark or reading is designated non-enabled state, then normally start the operating system; If the upgrading of reading is designated enabled state, then start ROMPaq;
2nd step, the upgrading map program of mobile terminal, software upgrade package are stored in storage card by user, and are installed on mobile terminal by storage card;
3rd step, user achieves first condition, thus starts described ROMPaq in running of mobile terminal process; Described ROMPaq marks off memory block in the RAM of mobile terminal, upgrading map program on storage card is copied in the memory block of RAM, in the memory block of RAM, sets up upgrading mark, and be enabled state by this upgrading flag, then achieve second condition, and restart mobile terminal;
4th step, mobile terminal, in start process, detects that the upgrading in RAM is designated enabled state, thus starts described ROMPaq; Upgrading map program in the memory block of RAM copies in the execution district of RAM by described ROMPaq, and starts this upgrading map program;
5th step, the software upgrade package in described upgrading map program load store card, and the software upgrading operation performing mobile terminal.
2. the method for upgrading software of mobile terminal according to claim 1, is characterized in that, in described method the 2nd step, configuration file is stored in storage card by user simultaneously, and is installed on mobile terminal by storage card;
Or storage card is installed on mobile terminal by user, then sets up configuration file on a memory card by mobile terminal;
Described configuration file at least records the title of upgrading map program, the title of software upgrade package on storage card.
3. the method for upgrading software of mobile terminal according to claim 2, it is characterized in that, in described method the 3rd step, described ROMPaq reads the title of the upgrading map program in configuration file, thus find the upgrading map program on storage card, and copied in the memory block of RAM;
In described method the 5th step, described upgrading map program reads the title of the software upgrade package in configuration file, thus finds the software upgrade package in storage card, and performs the software upgrading operation of mobile terminal.
4. the method for upgrading software of mobile terminal according to claim 1, is characterized in that, increases by the 6th step, and after the software of mobile terminal is successfully upgraded, the upgrading mark in the memory block of RAM is revised as non-enabled state by described ROMPaq.
5. the method for upgrading software of mobile terminal according to claim 1, is characterized in that, in described method the 3rd step, while described ROMPaq sets up upgrading mark in the memory block of RAM, and also record in the memory block of RAM:
For upgrading map program preallocated memory address in the memory block of RAM, for using when the upgrading map program on storage card is copied to the memory block of RAM;
For upgrading map program preallocated executive address in the execution district of RAM, for using when the upgrading map program in the memory block of RAM is copied to the execution district of RAM.
6. the method for upgrading software of mobile terminal according to claim 1, is characterized in that, in described method the 3rd step, described ROMPaq also records identifying code set up upgrading mark in the memory block of RAM while in the memory block of RAM;
Described identifying code is the function of the value of upgrading mark, is used for again verifying the value of upgrading mark.
7. the method for upgrading software of mobile terminal according to claim 1, it is characterized in that, software upgrading operation in described method the 5th step refers to, software upgrade package is burnt among the storage medium of mobile terminal by upgrading map program, replaces the original software on mobile terminal.
CN201210264924.3A 2012-07-27 2012-07-27 The method for upgrading software of mobile terminal Active CN102841802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210264924.3A CN102841802B (en) 2012-07-27 2012-07-27 The method for upgrading software of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210264924.3A CN102841802B (en) 2012-07-27 2012-07-27 The method for upgrading software of mobile terminal

Publications (2)

Publication Number Publication Date
CN102841802A CN102841802A (en) 2012-12-26
CN102841802B true CN102841802B (en) 2016-03-02

Family

ID=47369202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210264924.3A Active CN102841802B (en) 2012-07-27 2012-07-27 The method for upgrading software of mobile terminal

Country Status (1)

Country Link
CN (1) CN102841802B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103518191A (en) * 2013-03-19 2014-01-15 华为技术有限公司 Upgrade method, intelligent terminal and upgrade system
CN104636159B (en) * 2013-11-15 2018-09-28 华为技术有限公司 The method and apparatus that software in virtual machine is upgraded
CN104090805B (en) * 2014-07-15 2018-06-05 深圳市金立通信设备有限公司 A kind of method, equipment and system for updating terminal operating system
CN105589702A (en) * 2014-10-21 2016-05-18 中兴通讯股份有限公司 Method and device for updating/backing up operating system through T card
CN104915235A (en) * 2015-06-15 2015-09-16 深圳市九洲电器有限公司 Terminal device application program upgrading method and terminal device application program upgrading system
CN105094903B (en) * 2015-07-16 2019-02-22 广州飞米电子科技有限公司 The method and device that firmware is upgraded
CN109800565A (en) * 2017-11-16 2019-05-24 深圳市优必选科技有限公司 Method for upgrading software and terminal device
CN108882217B (en) * 2018-09-06 2021-04-27 江苏恒宝智能系统技术有限公司 Method for writing Bluetooth MAC addresses in batches and Bluetooth equipment thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694621A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司 Method for updating software of mobile terminal and mobile terminal
CN102163157A (en) * 2011-04-07 2011-08-24 北京百纳威尔科技有限公司 Upgrading method of non-intelligent terminal, non-intelligent terminal and application server
CN102253846A (en) * 2010-05-21 2011-11-23 康佳集团股份有限公司 Method for upgrading embedded system software
CN102346673A (en) * 2010-07-27 2012-02-08 比亚迪股份有限公司 Method and device for upgrading mobile phone system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060225067A1 (en) * 2005-04-05 2006-10-05 Inventec Corporation Method for automatically updating and backing up the BIOS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694621A (en) * 2009-10-22 2010-04-14 中兴通讯股份有限公司 Method for updating software of mobile terminal and mobile terminal
CN102253846A (en) * 2010-05-21 2011-11-23 康佳集团股份有限公司 Method for upgrading embedded system software
CN102346673A (en) * 2010-07-27 2012-02-08 比亚迪股份有限公司 Method and device for upgrading mobile phone system
CN102163157A (en) * 2011-04-07 2011-08-24 北京百纳威尔科技有限公司 Upgrading method of non-intelligent terminal, non-intelligent terminal and application server

Also Published As

Publication number Publication date
CN102841802A (en) 2012-12-26

Similar Documents

Publication Publication Date Title
CN102841802B (en) The method for upgrading software of mobile terminal
CN103473067B (en) Built-in Linux subregion and data restoration method, system and system development method
CN100377085C (en) Method for implementing hardware image starting optimizing of embedded operating system
CN102662689B (en) Method and system for upgrading embedded software based on USB interface
CN103136181B (en) Electronic reading device and text selecting and storing method thereof
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN103150231A (en) Computer booting method and computer system
JP2012508932A (en) Manage cache data and metadata
CN102543193B (en) A kind of flash recordable method, recording device and programming system
CN104102506A (en) ARM (Advanced RISC Machine) platform based Android startup acceleration method
US20080109676A1 (en) Processing device and storage medium
CN102693144B (en) A kind of method of capacitance plate firmware upgrade of Android mobile terminal
CN103425502B (en) A kind of look ahead starting method and device of operating system
CN104679540A (en) Computer system and computer system starting method
CN103577212A (en) System starting preloading method and device
WO2016134641A1 (en) On-demand loading of dynamic scripting language code for reduced memory usage
CN103902562A (en) Method and device for upgrading terminal databases
CN103389905A (en) Plug-in loading method and plug-in loading system
CN102243587B (en) To the upgrade method of ROM program in embedded system
CN103995717A (en) Method for upgrading software in embedded device
CN105045718A (en) Linux embedded system based debug system, method and modification method
CN104866388A (en) Data processing method and device
CN111581018B (en) Data recovery method, intelligent terminal and storage medium
CN100465894C (en) Class loading method for starting Java Processor
CN102184115B (en) Method for updating system software and terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant