CN102184115A - Method and device for updating system software - Google Patents
Method and device for updating system software Download PDFInfo
- Publication number
- CN102184115A CN102184115A CN2011101322225A CN201110132222A CN102184115A CN 102184115 A CN102184115 A CN 102184115A CN 2011101322225 A CN2011101322225 A CN 2011101322225A CN 201110132222 A CN201110132222 A CN 201110132222A CN 102184115 A CN102184115 A CN 102184115A
- Authority
- CN
- China
- Prior art keywords
- downloaded
- image file
- file
- download
- terminal device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method and a 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 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 which is needed to be downloaded in the to-be-downloaded document; and downloading the mirror image document 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
Technical field
The present invention relates to software technology field, relate in particular to a kind of method and apparatus of upgrade-system software.
Background technology
Along with the development of software engineering, the speed of system software upgrading is also being accelerated.At present, upgrade-system software generally all is to wait and realize by PC (Personal Computer PC) end software, TF (Trans-FLash) card, SD (Secure Digital Memory Card) card.
But, when the card reader of TF card or SD card is below battery, when upgrade-system software, need earlier battery is taken off, insert again or change TF card, SD card, refill battery, just can carry out upgrade-system then and operate; When field upgrade software, may also to carry PC and finish upgrading.
There is the loaded down with trivial details problem of running program in the method for upgrade-system software at present as can be seen.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus of upgrade-system software, and operation is easier when upgrade-system software.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of method of upgrade-system software comprises:
Search the file to be downloaded of storing in mobile USB (USB (universal serial bus)) memory device, have the image file that the terminal device system software need be upgraded in the described file to be downloaded;
Discern and need the image file downloaded in the described file to be downloaded;
The described image file that needs to download is downloaded to terminal device.
A kind of device of upgrade-system software comprises:
Search the unit, be used for searching the file to be downloaded that the mobile USB memory device is stored, have the image file that the terminal device system software need be upgraded in the described configuration file;
Recognition unit is used for discerning described file to be downloaded and needs the image file downloaded;
Download unit is used for the image file that described needs are downloaded is downloaded to terminal device.
Adopt technique scheme, when upgrade-system software, after the mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded of storing in the mobile USB memory device, identify the image file that the needs in the described file to be downloaded are downloaded, the described image file that needs to download is downloaded to terminal device, finish the upgrading of system software, in prior art, adopt the TF card, SD cards etc. need take off battery earlier to system software upgrading, insert or change the TF card again, the SD card, refill battery, just can carry out the upgrade-system operation then; Or when field upgrade software, may also to carry PC finish the upgrading compare, the technical scheme that embodiments of the invention provide only needs to use the mobile USB memory device, can finish the upgrading of system software, operates easier.
Description of drawings
The process flow diagram of the method for the upgrade-system software that Fig. 1 provides for the embodiment of the invention 1;
The structural drawing of the device of the upgrade-system software that Fig. 2 provides for the embodiment of the invention 2;
The process flow diagram of the method for the upgrade-system software that Fig. 3 provides for the embodiment of the invention 3;
304 process flow diagram in the method for the upgrade-system software that Fig. 4 provides for the embodiment of the invention shown in Figure 33;
The structural drawing of the device of the upgrade-system software that Fig. 5 provides for the embodiment of the invention 4.
Embodiment
Be described in detail below in conjunction with the method and the device of accompanying drawing embodiment of the invention upgrade-system software.
Embodiment 1:
The method of the upgrade-system software that the embodiment of the invention provides as shown in Figure 1, comprising:
101, search the file to be downloaded of storing in the mobile USB memory device, have the image file that the terminal device system software need be upgraded in the described file to be downloaded;
102, identification needs the image file downloaded in the described file to be downloaded;
103, the described image file that needs to download is downloaded to terminal device.
The technical scheme that adopts present embodiment to provide, when upgrade-system software, after the mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded of storing in the mobile USB memory device, identify the image file that the needs in the described file to be downloaded are downloaded, the described image file that needs to download is downloaded to terminal device, finish the upgrading of system software, in prior art, adopt the TF card, SD cards etc. need take off battery earlier to system software upgrading, insert or change the TF card again, the SD card, refill battery, just can carry out the upgrade-system operation then; Or when field upgrade software, may also to carry PC finish the upgrading compare, the technical scheme that embodiments of the invention provide only needs to use the mobile USB memory device, can finish the upgrading of system software, operates easier.
Described terminal device comprises at least: panel computer, described mobile USB memory device comprises at least: flash disk.
The executive agent of present embodiment is a terminal device.
Embodiment 2:
The 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.
The technical scheme that adopts present embodiment to provide, when upgrade-system software, after the mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded of storing in the mobile USB memory device, identify the image file that the needs in the described file to be downloaded are downloaded, the described image file that needs to download is downloaded to terminal device, finish the upgrading of system software, in prior art, adopt the TF card, SD cards etc. need take off battery earlier to system software upgrading, insert or change the TF card again, the SD card, refill battery, just can carry out the upgrade-system operation then; Or when field upgrade software, may also to carry PC finish the upgrading compare, the technical scheme that embodiments of the invention provide only needs to use the mobile USB memory device, can finish the upgrading of 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 comprises at least: the terminal device power connection, the terminal device shift knob is pressed in the terminal device system restart.Described terminal device comprises at least: panel computer.
302, operation starts the boot module.
Particularly, after the terminal device start, at first operation is the boot module, and described boot module mainly is that the present embodiment subsequent step is finished in the boot module to the initialization of system hardware and to the control of start flow process.
303, initialization DDR (Double Data Rate synchronous DRAM) and flash (flash memory).
304, select whether to enter downloading mode.
As shown in Figure 4, whether 304 described selections enter downloading mode and comprise:
3041, whether detection has the mobile USB memory device to be connected on the terminal device.
If there is the mobile USB memory device to be connected on the terminal device, enter 3042; Otherwise do not enter downloading mode, terminal device normally starts.
Whether 3042, detect specific certain button or certain several button presses.
If specific certain button or certain several button are pressed, enter 3043, otherwise do not enter downloading mode, terminal device normally starts.
3043, enter downloading mode.
Particularly, when terminal device is started shooting, there is the mobile USB memory device to be connected on the terminal device, and presses the specific several buttons of certain button,, be and select to enter downloading mode as volume key, return key etc.; Otherwise be selection and do not enter downloading mode, terminal device normally starts, and does not carry out system software upgrading.
Further, whether button is pressed and can be decided by the high-low level that detects GPIO (general I/O) mouth; Whether there is the mobile USB memory device to be connected on the terminal device, can finishes by the level of sense terminals equipment USB relevant register or corresponding stitch.
If select to enter downloading mode, enter 305; If select not enter downloading mode, 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 enters 306; If the failure of initialization mobile USB memory device then initiatively reports an error.
306, search the file to be downloaded of storing in the described mobile USB memory device, have the image file that the terminal device system software need be upgraded in the described file to be downloaded.
Particularly, described file to be downloaded is kept in the download directory file in the described mobile USB memory device.
In order to allow terminal device successfully identify download directory file in the mobile USB memory device, present embodiment has adopted existing EFSL (Embeded File System Library) file system, use this system, just can visit the download directory file in the mobile USB memory device, thereby find described file to be downloaded.
If search described file to be downloaded success, then enter 307; If do not find described file to be downloaded, then initiatively report an error.
307, read image file in the described file to be downloaded.
If read the image file success in the described file to be downloaded, then enter 408; If read the image file failure in the described file to be downloaded, then initiatively report an error.
308, identification needs the image file downloaded in the described file to be downloaded.
A file to be downloaded as follows, as to provide for present embodiment:
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 sign, i.e. the part of each equal sign front, described image file is the part of each equal sign back, if the blank expression in equal sign back does not need to download image file.For example: DATA equal sign back blank, expression does not need to download image file.
In the practice, described download directory will be complementary with the catalogue in the terminal device and can download, and in order to allow terminal device automatically identify to need in the file to be downloaded image file of downloading, the method that present embodiment has adopted comprises:
If image file sign equal sign back does not have image file in the described file to be downloaded, then do not need to download; For example, in the file to be downloaded that present embodiment provides, DATA equal sign back blank, expression does not need to download image file.
If there is image file image file sign equal sign back in the described file to be downloaded, then need to download this image file.For example, in the file to be downloaded that present embodiment provides, there is image file logo LOGO equal sign back, and expression needs to download image file logo.
If the described image file success that needs download of identification then enters 309; If the described image file that needs to download of identification is failed, then initiatively report an error.
309, the described image file that needs to download is downloaded to terminal device.Comprise:
Directly the described image file that need download is downloaded to the flash memory flash of terminal device;
In the practice,, can earlier the described image file that needs to download be arrived the DDR buffer memory now, forward the corresponding mirrored partition of flash to by the corresponding address of DDR again, finish the download of image file in order to improve the speed of download of image file.
For preventing to occur mistake in the downloading process, present embodiment has adopted comparison to need the method for image file CRC (cyclic redundancy check (CRC) code) value downloaded and image file crc value to be upgraded.
Particularly, there is the crc value that each need download image file in the file to be downloaded, terminal device calculates the crc value of each image file that need download when reading the described image file that needs to download, if the crc value of image file is identical with the crc value that calculates in the file to be downloaded, then download the image file of this crc value correspondence.For example: in the file to be downloaded that present embodiment provides, SYSTEM_CRC=0x0 represents that the crc value of image file system in the file to be downloaded is 0x0, terminal device calculates the crc value of image file system when reading image file system, if the crc value of the image file system that calculates also for 0x0, is then downloaded image file system.
After 301-309 is finished, this upgrade-system software success.
The present embodiment executive agent is a terminal device.
The technical scheme that adopts present embodiment to provide, when upgrade-system software, after the mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded of storing in the mobile USB memory device, identify the image file that the needs in the described file to be downloaded are downloaded, the described image file that needs to download is downloaded to terminal device, finish the upgrading of system software, in prior art, adopt the TF card, SD cards etc. need take off battery earlier to system software upgrading, insert or change the TF card again, the SD card, refill battery, just can carry out the upgrade-system operation then; Or when field upgrade software, may also to carry PC finish the upgrading compare, the technical scheme that embodiments of the invention provide only needs to use the mobile USB memory device, can finish the upgrading of system software, operates easier.
Embodiment 4:
The device of the upgrade-system software that this real inventive embodiments provides as shown in Figure 5, comprising: search unit 501, and recognition unit 502, download unit 503, unit 504 reports an error.
Particularly, search unit 501, be used for searching the file to be downloaded that the mobile USB memory device is stored, have the image file that the terminal device system software need be upgraded in the described file to be downloaded;
Described recognition unit 502 specifically is used for: if there is image file described file to be downloaded image file sign equal sign back, then need to download this image file.
Further, described download unit 503 comprises arbitrary module: download module one, download module two.
Download module one is used for the image file that described needs are downloaded is downloaded to the flash of terminal device;
Download module two is used for the image file that described needs are downloaded is downloaded to the Double Data Rate synchronous DRAM DDR buffer memory of terminal device, forwards flash to by DDR again.
The device of the upgrade-system software that this real inventive embodiments provides also comprises: the unit 504 that reports an error is used for initiatively reporting an error if describedly search the file to be downloaded failure that the mobile USB memory device stores; If the described image file that needs in the described file to be downloaded to download of searching is failed, initiatively report an error; As if described the described image file that needs to download is downloaded to terminal device flash memory flash failure, initiatively report an error.
Particularly, when the upgrading terminals device system software, after searching unit 501 and finding the file to be downloaded of storing in the mobile USB memory device, recognition unit 502 identifies the image file that needs download, download module one in the download unit 503 or download module two download to terminal device with the described image file that needs to download, and finish the upgrading of terminal device system software.
In the process of upgrading terminals device system software, search file to be downloaded when failure of storing in the mobile USB memory device when searching unit 501, unit 504 actives that report an error report an error, when recognition unit 502 identifications need the image file failure of download, unit 504 actives that report an error report an error, when the download module in the download unit 503 one or download module two downloaded to the terminal device failure with the described image file that needs to download, the unit 504 that reports an error initiatively reported an error.
The technical scheme that adopts present embodiment to provide, when upgrade-system software, after the mobile USB memory device being inserted the USB interface of terminal device, terminal device finds the file to be downloaded of storing in the mobile USB memory device, identify the image file that the needs in the described file to be downloaded are downloaded, the described image file that needs to download is downloaded to terminal device, finish the upgrading of system software, in prior art, adopt the TF card, SD cards etc. need take off battery earlier to system software upgrading, insert or change the TF card again, the SD card, refill battery, just can carry out the upgrade-system operation then; Or when field upgrade software, may also to carry PC finish the upgrading compare, the technical scheme that embodiments of the invention provide only needs to use the mobile USB memory device, can finish the upgrading of system software, operates easier.
The embodiment of the 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 that realizes in the foregoing description method is to instruct relevant hardware to finish by program, 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; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection domain with claim.
Claims (8)
1. the method for a upgrade-system software is characterized in that, comprising:
Search the file to be downloaded of storing in the mobile general-purpose serial bus USB memory device, have the image file that the terminal device system software need be upgraded in the described file to be downloaded;
Discern and need the image file downloaded in the described file to be downloaded;
Download the described image file that needs to download to terminal device.
2. the method for upgrade-system software according to claim 1 is characterized in that, the image file that needs to download in the described file to be downloaded of described identification comprises:
If there is image file image file sign equal sign back in the described file to be downloaded, then need to download this image file.
3. the method for upgrade-system software according to claim 1 is characterized in that, the described image file that needs to download of described download comprises to terminal device:
The described image file that need download is downloaded to the flash memory flash of terminal device;
Perhaps, the described image file of need downloading is downloaded to the Double Data Rate synchronous DRAM DDR buffer memory of terminal device, forward flash to by DDR again.
4. the method for upgrade-system software according to claim 1 is characterized in that, also comprises:
If the described file to be downloaded of storing in the mobile USB memory device of searching is failed, initiatively report an error;
If the described image file that needs in the described file to be downloaded to download of searching is failed, initiatively report an error;
As if described the described image file that needs to download is downloaded to terminal device flash memory flash failure, initiatively report an error.
5. the device of a upgrade-system software is characterized in that, comprising:
Search the unit, be used for searching the file to be downloaded that the mobile USB memory device is stored, have the image file that the terminal device system software need be upgraded in the described configuration file;
Recognition unit is used for discerning described file to be downloaded and needs the image file downloaded;
Download unit is used for the image file that described needs are downloaded is downloaded to terminal device.
6. the device of upgrade-system software according to claim 5 is characterized in that, described recognition unit specifically is used for: if there is image file described file to be downloaded image file sign equal sign back, then need to download this image file.
7. the device of upgrade-system software according to claim 5 is characterized in that, described download unit comprises following arbitrary module:
Download module one is used for the image file that described needs are downloaded is downloaded to the flash of terminal device;
Download module two is used for the image file that described needs are downloaded is downloaded to the Double Data Rate synchronous DRAM DDR buffer memory of terminal device, forwards flash to by DDR again.
8. the device of upgrade-system software according to claim 5 is characterized in that, also comprises:
The unit that reports an error is used for initiatively reporting an error if describedly search the file to be downloaded failure that the mobile USB memory device is stored;
If the described image file that needs in the described file to be downloaded to download of searching is failed, initiatively report an error;
As if described the described image file that needs to download is downloaded to terminal device flash memory flash failure, initiatively report an error.
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 true CN102184115A (en) | 2011-09-14 |
CN102184115B 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) |
Cited By (4)
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)
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 |
-
2011
- 2011-05-20 CN CN201110132222.5A patent/CN102184115B/en active Active
Patent Citations (3)
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 |
Cited By (4)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102184115B (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8751783B2 (en) | Booting computing devices with EFI aware operating systems | |
US8954805B2 (en) | Computer booting method and computer system | |
US8423991B2 (en) | Embedded network device and firmware upgrading method | |
CN102722394B (en) | Start upgrading method of embedded equipment | |
US20140136882A1 (en) | Information device, storage medium and initial state restoration method | |
US20080140736A1 (en) | Hardware-Initiated Automated Back-Up of Data from an Internal Memory of a Hand-Portable Electronic Device | |
CN101373451B (en) | Computer system for protecting double-basic input /output system program and control method thereof | |
CN101923473B (en) | Embedded electronic device and method for updating firmware thereof | |
CN101494930A (en) | Intelligent terminal and upgrading method thereof | |
US20100049961A1 (en) | Update method for basic input/output system and update system thereof | |
CN102609290B (en) | The method for upgrading software of electronic product | |
CN108345464A (en) | A kind of the startup method and Android vehicle device of Android system | |
CN105607972A (en) | Abnormity remedying method and device | |
CN102184115B (en) | Method for updating system software and terminal device | |
CN101505331A (en) | Method and apparatus for updating system software of smart phone | |
CN109582332B (en) | System upgrading method and device for Internet camera | |
US7849300B2 (en) | Method for changing booting sources of a computer system and a related backup/restore method thereof | |
CN107329855A (en) | Reduce the method and device of firmware information | |
CN102446101A (en) | System for mandatorily upgrading firmware and method for mandatorily upgrading firmware thereof | |
CN103617053A (en) | Method and device for upgrading software | |
CN104765631A (en) | Restoration method and device for application program of mobile terminal | |
CN104484211A (en) | Method and device for sharing mirror image document | |
KR20180023575A (en) | Firmware auto updating method and computer readable recording medium writing firmware auto updating method | |
CN112527341B (en) | Vehicle system upgrading method, vehicle system and computer storage medium | |
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 |