CN102184115B - Method for updating system software and terminal device - Google Patents

Method for updating system software and terminal device Download PDF

Info

Publication number
CN102184115B
CN102184115B CN201110132222.5A CN201110132222A CN102184115B CN 102184115 B CN102184115 B CN 102184115B CN 201110132222 A CN201110132222 A CN 201110132222A CN 102184115 B CN102184115 B CN 102184115B
Authority
CN
China
Prior art keywords
downloaded
terminal device
image file
file
system software
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
CN201110132222.5A
Other languages
Chinese (zh)
Other versions
CN102184115A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201110132222.5A priority Critical patent/CN102184115B/en
Publication of CN102184115A publication Critical patent/CN102184115A/en
Application granted granted Critical
Publication of CN102184115B publication Critical patent/CN102184115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a method and a terminal device for updating system software and relates to the technical field of software. A terminal device can be more conveniently operated when the system software is updated. The method comprises the following steps: searching for a to-be-downloaded document by the terminal device which is stored in a mobile universal serial bus USB storage device, wherein a mirror image document of the system software of the terminal device which is needed to be updated is stored in the to-be-downloaded document; identifying the mirror image document by the terminal device which is needed to be downloaded in the to-be-downloaded document; and downloading the mirror image document by the terminal device which is needed to be downloaded to the terminal device. The method and device provided by the invention are mainly used for updating system software of terminal device. Besides, by using the method and device, the terminal device can be conveniently operated in the process of updating the system software.

Description

The method of upgrade-system software and terminal device
Technical field
The present invention relates to software technology field, particularly relate to a kind of method and terminal device of upgrade-system software.
Background technology
Along with the development of software engineering, the speed of system software upgrading is also in quickening.At present, upgrade-system software is all generally by PC(Personal Computer PC) hold software, TF(Trans-FLash) card, SD(Secure Digital Memory Card) card etc. realize.
But, when the card reader of TF card or SD card is below battery, need when upgrade-system software first battery to be taken off, then insert or change TF card, SD card, be loaded on battery, then just can carry out upgrade-system operation; When field upgrade software, PC also may to be carried to complete upgrading.
Can find out that the method for current upgrade-system software exists the loaded down with trivial details problem of running program.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus of upgrade-system software, and when upgrade-system software, operation is easier.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A method for upgrade-system software, comprising:
The file to be downloaded stored in mobile USB (USB (universal serial bus)) memory device searched by terminal device, has the image file that terminal device system software needs upgrading in described file to be downloaded;
The image file downloaded is needed in file to be downloaded described in described terminal device identification;
The described image file downloaded that needs is downloaded to described terminal device by described terminal device.
A terminal device for upgrade-system software, comprising:
Searching unit, for searching the file to be downloaded stored in mobile USB memory device, in described configuration file, having the image file that terminal device system software needs upgrading;
Recognition unit, for identifying in described file to be downloaded the image file needing to download;
Download unit, for downloading to described terminal device by the described image file downloaded that needs.
Adopt technique scheme, when upgrade-system software, after mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded stored in mobile USB memory device, identify the image file that the needs in described file to be downloaded are downloaded, the described image file downloaded that needs is downloaded to terminal device, the upgrading of completion system software, with prior art, adopt TF card, SD cards etc. are to system software upgrading, need first to take off battery, insert again or change TF card, SD card, be loaded on battery, then just upgrade-system operation can be carried out, or when field upgrade software, also may will carry PC and compare to complete upgrading, the technical scheme that embodiments of the invention provide only needs to use mobile USB memory device, gets final product the upgrading of completion system software, operates easier.
Accompanying drawing explanation
The process flow diagram of the method for the upgrade-system software that Fig. 1 provides for the embodiment of the present invention 1;
The structural drawing of the terminal device of the upgrade-system software that Fig. 2 provides for the embodiment of the present invention 2;
The process flow diagram of the method for the upgrade-system software that Fig. 3 provides for the embodiment of the present invention 3;
In the method for the upgrade-system software that Fig. 4 provides for the embodiment of the present invention 3 shown in Fig. 3 304 process flow diagram;
The structural drawing of the terminal device of the upgrade-system software that Fig. 5 provides for the embodiment of the present invention 4.
Embodiment
Below in conjunction with accompanying drawing, the method for embodiment of the present invention upgrade-system software and terminal device are described in detail.
Embodiment 1:
The method of the upgrade-system software that the embodiment of the present invention provides, as shown in Figure 1, comprising:
101, the file to be downloaded stored in mobile USB memory device searched by terminal device, has the image file that terminal device system software needs upgrading in described file to be downloaded;
102, the image file downloaded is needed in file to be downloaded described in terminal device identification;
103, the described image file downloaded that needs is downloaded to terminal device by terminal device.
Adopt the technical scheme that the present embodiment provides, when upgrade-system software, after mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded stored in mobile USB memory device, identify the image file that the needs in described file to be downloaded are downloaded, the described image file downloaded that needs is downloaded to terminal device, the upgrading of completion system software, with prior art, adopt TF card, SD cards etc. are to system software upgrading, need first to take off battery, insert again or change TF card, SD card, be loaded on battery, then just upgrade-system operation can be carried out, or when field upgrade software, also may will carry PC and compare to complete upgrading, the technical scheme that embodiments of the invention provide only needs to use mobile USB memory device, gets final product the upgrading of completion system software, operates easier.
Described terminal device at least comprises: panel computer, and described mobile USB memory device at least comprises: flash disk.
The executive agent of the present embodiment is terminal device.
Embodiment 2:
The terminal device of the upgrade-system software that this real inventive embodiments provides, as shown in Figure 2, comprising: search unit 201, recognition unit 202, download unit 203.
Searching unit 201, for searching the file to be downloaded stored in mobile USB memory device, in described file to be downloaded, having the image file that terminal device system software needs upgrading;
Recognition unit 202, for identifying in described file to be downloaded the image file needing to download;
Download unit 203, for downloading to terminal device by the described image file downloaded that needs.
Adopt the technical scheme that the present embodiment provides, when upgrade-system software, after mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded stored in mobile USB memory device, identify the image file that the needs in described file to be downloaded are downloaded, the described image file downloaded that needs is downloaded to terminal device, the upgrading of completion system software, with prior art, adopt TF card, SD cards etc. are to system software upgrading, need first to take off battery, insert again or change TF card, SD card, be loaded on battery, then just upgrade-system operation can be carried out, or when field upgrade software, also may will carry PC and compare to complete upgrading, the technical scheme that embodiments of the invention provide only needs to use mobile USB memory device, gets final product the upgrading of completion system software, operates easier.
Embodiment 3:
The method of the upgrade-system software that this real inventive embodiments provides, as shown in Figure 3, comprising:
301, terminal device start.
Particularly, described terminal device start at least comprises: Terminal Equipment Power is connected, and terminal device system restart, presses terminal device shift knob.Described terminal device at least comprises: panel computer.
302, startup boot module is run.
Particularly, after terminal device start, what first run is boot module, and described boot module is mainly to the initialization of system hardware and to start Row control, and the present embodiment subsequent step completes in boot module.
303, initialization DDR(Double Data Rate synchronous DRAM) and flash(flash memory).
304, select whether enter downloading mode.
As shown in Figure 4, select whether enter downloading mode described in 304 to comprise:
3041, whether detection has mobile USB memory device to connect on the terminal device.
If there is mobile USB memory device to connect on the terminal device, enter 3042; Otherwise do not enter downloading mode, terminal device normally starts.
3042, detect specifically whether certain button or certain several button are pressed.
If specifically certain button or certain several button are pressed, enter 3043, otherwise do not enter downloading mode, terminal device normally starts.
3043, downloading mode is entered.
Particularly, when terminal device is started shooting, there is mobile USB memory device to connect on the terminal device, and press the specific several button of certain button, as volume key, return key etc., be selection and enter downloading mode; Otherwise be selection and do not enter downloading mode, terminal device normally starts, do not carry out system software upgrading.
Further, button whether press can by detecting GPIO(universal input/output) low and high level of mouth decides; Whether there is mobile USB memory device to connect on the terminal device, can have been come by the level of the corresponding register of sense terminals equipment USB or corresponding stitch.
Enter downloading mode if select, enter 305; Do not enter downloading mode if select, terminal device normally starts, and does not carry out system software upgrading.
305, initialization mobile USB memory device;
If the success of initialization mobile USB memory device, then enter 306; If the failure of initialization mobile USB memory device, then initiatively report an error.
306, search the file to be downloaded stored in described mobile USB memory device, in described file to be downloaded, have the image file that terminal device system software needs upgrading.
Particularly, described file to be downloaded is kept in the download directory file in described mobile USB memory device.
Download directory file in mobile USB memory device is successfully identified in order to allow terminal device, the present embodiment have employed existing EFSL(Embeded File System Library) file system, apply this system, just can access the download directory file in mobile USB memory device, thus find described file to be downloaded.
If search the success of described file to be downloaded, then enter 307; If do not find described file to be downloaded, then initiatively report an error.
307, the image file in described file to be downloaded is read.
If read the image file success in described file to be downloaded, then enter 408; If read the image file failure in described file to be downloaded, then initiatively report an error.
308, the image file needing to download is identified in described file to be downloaded.
As follows, be the file to be downloaded that the present embodiment provides:
FACTORYIMAGE=
BOOTLOADER=bootloader
KERNEL=kernel
SYSTEM=system
DATA=
RECOVERY=recovry
LOGO=logo
MODEM=td
ERASE_DATA=1
ERASE_CACHE=1
ERASE_LOGO=0
ERASE_CUSTOMER=0
NEED_REBOOT=0
CRC=0x0
BL_CRC=0x0
BOOT_CRC=0x0
SYSTEM_CRC=0x0
RECOVERY_CRC=0x0
LOGO_CRC=0x0
As implied above, wherein, described image file mark, the part namely before each equal sign, described image file and each equal sign part below, if blank expression does not need to download image file after equal sign.Such as: blank after DATA equal sign, represent and do not need to download image file.
In practice, described download directory will match with the catalogue in terminal device and can download, and automatically identify in file to be downloaded the image file needing to download to allow terminal device, the method that the present embodiment have employed employing comprises:
If in described file to be downloaded image file mark equal sign after without image file, then do not need download; Such as, in the file to be downloaded that the present embodiment provides, blank after DATA equal sign, represent and do not need to download image file.
If have image file after image file mark equal sign in described file to be downloaded, then need to download this image file.Such as, in the file to be downloaded that the present embodiment provides, after LOGO equal sign, there is image file logo, represent and need to download image file logo.
If identify the described image file success needing to download, then enter 309; If identify the described image file failure needing to download, then initiatively report an error.
309, the described image file downloaded that needs is downloaded to terminal device.Comprise:
Directly by the described flash memory flash needing the image file downloaded to download to terminal device;
In practice, in order to improve the speed of download of image file, first the described image file downloaded that needs can be arrived DDR buffer memory now, then forwarding the corresponding mirrored partition of flash to by the corresponding address of DDR, completing the download of image file.
For preventing occurring mistake in downloading process, the present embodiment have employed the image file CRC(cyclic redundancy check (CRC) code that comparison needs to download) method of value and image file crc value to be upgraded.
Particularly, each crc value needing to download image file is had in file to be downloaded, terminal device calculates each crc value needing the image file downloaded while the image file reading described needs download, if the crc value of image file is identical with the crc value calculated in file to be downloaded, then download the image file that this crc value is corresponding.Such as: in the file to be downloaded that the present embodiment provides, SYSTEM_CRC=0x0 represents that the crc value of image file system in file to be downloaded is 0x0, terminal device calculates the crc value of image file system while reading image file system, if the crc value of the image file system calculated also is 0x0, then download image file system.
After 301-309 is finished, this upgrade-system software success.
The present embodiment executive agent is terminal device.
Adopt the technical scheme that the present embodiment provides, when upgrade-system software, after mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded stored in mobile USB memory device, identify the image file that the needs in described file to be downloaded are downloaded, the described image file downloaded that needs is downloaded to terminal device, the upgrading of completion system software, with prior art, adopt TF card, SD cards etc. are to system software upgrading, need first to take off battery, insert again or change TF card, SD card, be loaded on battery, then just upgrade-system operation can be carried out, or when field upgrade software, also may will carry PC and compare to complete upgrading, the technical scheme that embodiments of the invention provide only needs to use mobile USB memory device, gets final product the upgrading of completion system software, operates easier.
Embodiment 4:
The terminal device of the upgrade-system software that this real inventive embodiments provides, as shown in Figure 5, comprising: search unit 501, recognition unit 502, download unit 503, and report an error unit 504.
Particularly, searching unit 501, for searching the file to be downloaded stored in mobile USB memory device, in described file to be downloaded, having the image file that terminal device system software needs upgrading;
Recognition unit 502, for identifying in described file to be downloaded the image file needing to download;
Download unit 503, for downloading to terminal device by the described image file downloaded that needs.
Described recognition unit 502 specifically for: if in described file to be downloaded image file mark equal sign after have image file, then need to download this image file.
Further, described download unit 503, comprises arbitrary module: download module one, download module two.
Download module one, the image file for being downloaded by described needs downloads to the flash of terminal device;
Download module two, the image file for being downloaded by described needs downloads to the Double Data Rate synchronous DRAM DDR buffer memory of terminal device, then forwards flash to by DDR.
The terminal device of the upgrade-system software that this real inventive embodiments provides also comprises: report an error unit 504, if for described in search the file to be downloaded failure stored in mobile USB memory device, initiatively report an error; If described in search in described file to be downloaded the image file failure needing to download, initiatively report an error; If described, the described image file downloaded that needs is downloaded to terminal device flash memory flash failure, initiatively report an error.
Particularly, when upgrading terminals device system software, search after unit 501 finds the file to be downloaded stored in mobile USB memory device, recognition unit 502 identifies the image file needing to download, the described image file downloaded that needs is downloaded to terminal device by the download module one in download unit 503 or download module two, completes the upgrading of terminal device system software.
In the process of upgrading terminals device system software, when searching unit 501 and searching the file to be downloaded failure stored in mobile USB memory device, the unit 504 that reports an error initiatively reports an error, when recognition unit 502 identifies the image file failure needing to download, the unit 504 that reports an error initiatively reports an error, when the image file that described needs are downloaded is downloaded to terminal device failure by the download module one in download unit 503 or download module two, the unit 504 that reports an error initiatively reports an error.
Adopt the technical scheme that the present embodiment provides, when upgrade-system software, after mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded stored in mobile USB memory device, identify the image file that the needs in described file to be downloaded are downloaded, the described image file downloaded that needs is downloaded to terminal device, the upgrading of completion system software, with prior art, adopt TF card, SD cards etc. are to system software upgrading, need first to take off battery, insert again or change TF card, SD card, be loaded on battery, then just upgrade-system operation can be carried out, or when field upgrade software, also may will carry PC and compare to complete upgrading, the technical scheme that embodiments of the invention provide only needs to use mobile USB memory device, gets final product the upgrading of completion system software, operates easier.
The embodiment of the present invention is mainly used in the soft upgrading of terminal device system.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, and described storage medium can be ROM (read-only memory), disk or CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (6)

1. a method for upgrade-system software, is characterized in that, comprising:
The file to be downloaded stored in mobile general-purpose serial bus USB memory device searched by terminal device, has the image file that terminal device system software needs upgrading in described file to be downloaded;
The image file downloaded is needed in file to be downloaded described in described terminal device identification;
Described terminal device downloads the described image file downloaded that needs to described terminal device;
Wherein, the image file downloaded is needed to comprise in the described file to be downloaded of described identification:
If have image file after image file mark equal sign in described file to be downloaded, then need to download this image file.
2. the method for upgrade-system software according to claim 1, is characterized in that, the described image file downloaded that needs of described download comprises to terminal device:
By the described flash memory flash needing the image file downloaded to download to terminal device;
Or, by the described Double Data Rate synchronous DRAM DDR buffer memory needing the image file downloaded to download to terminal device, then forward flash to by DDR.
3. the method for upgrade-system software according to claim 1, is characterized in that, also comprise:
The file to be downloaded failure stored in mobile USB memory device if search, initiatively reports an error;
Need the image file failure of downloading if search in described file to be downloaded, initiatively report an error;
If the described image file downloaded that needs is downloaded to terminal device flash memory flash failure, initiatively report an error.
4. a terminal device for upgrade-system software, is characterized in that, comprising:
Searching unit, for searching the file to be downloaded stored in mobile USB memory device, in described file to be downloaded, having the image file that terminal device system software needs upgrading;
Recognition unit, for identifying in described file to be downloaded the image file needing to download;
Download unit, for downloading to described terminal device by the described image file downloaded that needs;
Wherein, described recognition unit specifically for: if in described file to be downloaded image file mark equal sign after have image file, then need to download this image file.
5. the terminal device of upgrade-system software according to claim 4, is characterized in that, described download unit comprises following arbitrary module:
Download module one, the image file for being downloaded by described needs downloads to the flash of terminal device;
Download module two, the image file for being downloaded by described needs downloads to the Double Data Rate synchronous DRAM DDR buffer memory of terminal device, then forwards flash to by DDR.
6. the terminal device of upgrade-system software according to claim 4, is characterized in that, also comprise:
Report an error unit, if for searching the file to be downloaded failure stored in mobile USB memory device, initiatively report an error;
Need the image file failure of downloading if search in described file to be downloaded, initiatively report an error;
If the described image file downloaded that needs is downloaded to terminal device flash memory flash failure, initiatively report an error.
CN201110132222.5A 2011-05-20 2011-05-20 Method for updating system software and terminal device Active CN102184115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110132222.5A CN102184115B (en) 2011-05-20 2011-05-20 Method for updating system software and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110132222.5A CN102184115B (en) 2011-05-20 2011-05-20 Method for updating system software and terminal device

Publications (2)

Publication Number Publication Date
CN102184115A CN102184115A (en) 2011-09-14
CN102184115B true CN102184115B (en) 2014-12-24

Family

ID=44570296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110132222.5A Active CN102184115B (en) 2011-05-20 2011-05-20 Method for updating system software and terminal device

Country Status (1)

Country Link
CN (1) CN102184115B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436386A (en) * 2011-11-21 2012-05-02 北京赛科世纪数码科技有限公司 Software upgrading method
CN103365679A (en) * 2012-04-06 2013-10-23 上海博泰悦臻电子设备制造有限公司 Upgrading method of vehicle-mounted system
CN106227571A (en) * 2016-08-25 2016-12-14 维沃移动通信有限公司 Method for upgrading system and mobile terminal thereof
CN112732310A (en) * 2021-01-22 2021-04-30 深圳市信义科技有限公司 Firmware upgrading method, system, equipment and medium based on embedded boot partition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437314A (en) * 2008-12-19 2009-05-20 深圳华为通信技术有限公司 Method for automatically using network document, mobile terminal and customer equipment
CN101467129A (en) * 2006-07-14 2009-06-24 三星电子株式会社 Program upgrade system and method for OTA-capable mobile terminal
US7716276B1 (en) * 2003-11-17 2010-05-11 Hewlett-Packard Development Company, L.P. Network that supports user-initiated device management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716276B1 (en) * 2003-11-17 2010-05-11 Hewlett-Packard Development Company, L.P. Network that supports user-initiated device management
CN101467129A (en) * 2006-07-14 2009-06-24 三星电子株式会社 Program upgrade system and method for OTA-capable mobile terminal
CN101437314A (en) * 2008-12-19 2009-05-20 深圳华为通信技术有限公司 Method for automatically using network document, mobile terminal and customer equipment

Also Published As

Publication number Publication date
CN102184115A (en) 2011-09-14

Similar Documents

Publication Publication Date Title
US8751783B2 (en) Booting computing devices with EFI aware operating systems
US8423991B2 (en) Embedded network device and firmware upgrading method
US9256744B2 (en) System-on-chip and booting method thereof
CN109634645B (en) Firmware upgrading method and terminal
CN103150231B (en) The method of computer booting and computer system
CN102722394B (en) Start upgrading method of embedded equipment
CN101373451B (en) Computer system for protecting double-basic input /output system program and control method thereof
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
CN105094927A (en) Equipment firmware updating method and device
CN103729220A (en) Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
CN102184115B (en) Method for updating system software and terminal device
US20100049961A1 (en) Update method for basic input/output system and update system thereof
CN105607972A (en) Abnormity remedying method and device
CN102609290B (en) The method for upgrading software of electronic product
CN109582332B (en) System upgrading method and device for Internet camera
WO2015117356A1 (en) Start-up method and communication terminal
CN102446101A (en) System for mandatorily upgrading firmware and method for mandatorily upgrading firmware thereof
CN107329855A (en) Reduce the method and device of firmware information
CN104866397A (en) Computer System And Control Method
CN114138295A (en) Method, device and system for upgrading application program firmware of electronic equipment
CN104484211A (en) Method and device for sharing mirror image document
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
US10705738B2 (en) Method, apparatus, storage medium, and terminal for optimizing memory card performance
KR20180023575A (en) Firmware auto updating method and computer readable recording medium writing firmware auto updating method
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools

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