CN102609290B - The method for upgrading software of electronic product - Google Patents

The method for upgrading software of electronic product Download PDF

Info

Publication number
CN102609290B
CN102609290B CN201210035839.XA CN201210035839A CN102609290B CN 102609290 B CN102609290 B CN 102609290B CN 201210035839 A CN201210035839 A CN 201210035839A CN 102609290 B CN102609290 B CN 102609290B
Authority
CN
China
Prior art keywords
upgrading
upgrade
nonvolatile memory
electronic product
bootstrap
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
CN201210035839.XA
Other languages
Chinese (zh)
Other versions
CN102609290A (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 Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201210035839.XA priority Critical patent/CN102609290B/en
Publication of CN102609290A publication Critical patent/CN102609290A/en
Application granted granted Critical
Publication of CN102609290B publication Critical patent/CN102609290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention relates to the method for upgrading software of a kind of electronic product, it includes step: detection storage has the nonvolatile memory of automatic upgrade script, and determines upgrading mode according to the content of the automatic upgrade script of storage in nonvolatile memory after nonvolatile memory being detected; And carry out software upgrading according to the upgrade file of storage in nonvolatile memory after determining upgrading mode. The present invention, by, after electronic product electrifying startup, first detecting the content of nonvolatile memory and storage thereof, indicates further according to the automatic upgrade script content in non-volatile memory card and selects which kind of upgrading mode, and automatically implement upgrading; It major advantage is that the start automatically updating method providing a kind of unified operation, it is possible to the part upgraded as required is upgraded respectively, saves the time.

Description

The method for upgrading software of electronic product
Technical field
The present invention relates to software upgrading technical field, particularly to the method for upgrading software of a kind of electronic product.
Background technology
A lot of electronic products, are especially had the smart electronics product of tape operation system, including TV, panel computer, mobile phone etc. at present; all often relate to software upgrading; and many times upgrade and completed by user oneself and upgrade, automatization, ease-of-use is but often ignored by people. Often have and use the specialist tools on PC to upgrade; and also to pre-install some drivers; and some smart electronics products often also have a program of several part, such as bootstrap (Bootloader), mastery routine, data etc. are set. Often each upgrading software to be burnt in different storage devices, additionally in different ways, to cause that once complete upgrading may use several upgrade method, and these are unsuitable for plant produced and the practice of user oneself upgrading products.
Therefore, it is necessary to the ease for use of software upgrading with functional improve.
Summary of the invention
The goal of the invention of the present invention is in that to provide the method for upgrading software of a kind of electronic product, to overcome problems of the prior art.
Specifically, the method for upgrading software of a kind of electronic product that the embodiment of the present invention provides, it includes step: detection storage has the nonvolatile memory of automatic upgrade script, and determines upgrading mode according to the content of the automatic upgrade script of storage in nonvolatile memory after nonvolatile memory being detected; And carry out software upgrading according to the upgrade file of storage in nonvolatile memory after determining upgrading mode.
In embodiments of the present invention, above-mentioned method for upgrading software such as further comprised the steps of: before detection storage has the step of nonvolatile memory of automatic upgrade script, nonvolatile memory is inserted the external memory interface of the electronic product being under off-mode and makes electronic product start shooting. Furthermore, carry out after the step of software upgrading performed, may further comprise the step of: the external memory interface from electronic product and removing nonvolatile memory and make electronic product turn back on according to the upgrade file of storage in nonvolatile memory after determining upgrading mode.
In embodiments of the present invention, in above-mentioned method for upgrading software, upgrading mode is selected from bootstrap upgrading and one of system upgrade. When determining that upgrading mode is bootstrap upgrading, the step carrying out software upgrading according to the upgrade file of storage in nonvolatile memory comprises the steps that whether the file system detecting nonvolatile memory is preset format (such as FAT32 form); And when detect that the file system of nonvolatile memory is preset format, then sequentially will be stored in the bootstrap upgrade file in the upgrade file in nonvolatile memory and read in the internal memory of electronic product, the bootstrap memorizer of detection electronic product and wipe bootstrap memorizer and the bootstrap upgrade file that will be stored in nonvolatile memory is written to bootstrap memorizer to realize software upgrading. And when determining that upgrading mode is system upgrade, carrying out the step of software upgrading according to the upgrade file of storage in nonvolatile memory can sequentially include: by system recovery program from the original nonvolatile memory of above-mentioned nonvolatile memory or electronic product read in the internal memory of electronic product for system upgrade, system recovery program in record upgrade file upgrades the instruction in configuration script and the system upgrade bag in installation upgrade file. Further, it is also possible to after the system upgrade bag installed in upgrade file, electronic product restarts the initialization after utilizing the bootstrap environment profile in upgrade file to carry out system upgrade.
In embodiments of the present invention, the content after nonvolatile memory being detected according to the automatic upgrade script stored in nonvolatile memory in above-mentioned method for upgrading software determines that the step of upgrading mode such as includes: the order line performing in automatic upgrade script is to search and to judge whether the upgrading file specified in this order line, and wherein this upgrading file determines upgrading mode.
In an embodiment of the present invention, above-mentioned nonvolatile memory is such as flash card (such as various types of SD cards, mmc card etc.). Wherein SD card is the abbreviation of safe digital card (SecureDigitalMemoryCard), and mmc card is the abbreviation of multimedia card (MultiMediaCard).
In the above embodiment of the present invention, after electronic product electrifying startup, the first content of detection nonvolatile memory and storage thereof, indicate further according to the automatic upgrade script content in non-volatile memory card and select which kind of upgrading mode, and automatically implement upgrading; It major advantage is that the start automatically updating method providing a kind of unified operation, it is possible to the part upgraded as required is upgraded respectively, saves the time. So, conveniently electronic product in batch especially can be unified by electronic product the operation of upgrading, for operator, it is equivalent to a kind of black box operation, need not understand what upgrading file in nonvolatile memory is, which program of electronic product needs upgrading, it is possible to easily and directly product is completed escalation process.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to the above and other purpose of the present invention, feature and advantage can be become apparent, below especially exemplified by preferred embodiment, and coordinate accompanying drawing, describe in detail as follows.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for upgrading software of a kind of electronic product of the embodiment of the present invention.
Fig. 2 is a kind of concrete steps flow chart of the upgrading of bootstrap shown in Fig. 1.
Fig. 3 is a kind of concrete steps flow chart of system shown in Figure 1 upgrading.
Detailed description of the invention
For further setting forth that the present invention reaches technological means and effect that predetermined goal of the invention is taked, below in conjunction with accompanying drawing and preferred embodiment, to its detailed description of the invention of method for upgrading software of electronic product proposed according to the present invention, method, step and effect, describe in detail as after.
For the present invention aforementioned and other technology contents, feature and effect, can clearly present in following cooperation describes in detail with reference to graphic preferred embodiment. By the explanation of detailed description of the invention, when can be reach technological means that predetermined purpose takes and effect is able to more deeply and concrete understanding to the present invention, however institute's accompanying drawings be only to provide with reference to and purposes of discussion, be not used for the present invention is any limitation as.
The embodiment of the present invention, mainly by, after electronic product electrifying startup, first detecting the content of nonvolatile memory and storage thereof, indicates further according to the automatic upgrade script content in non-volatile memory card and selects which kind of upgrading mode, and automatically implement upgrading; It major advantage is that the start automatically updating method providing a kind of unified operation, it is possible to the part upgraded as required is upgraded respectively, saves the time. The automatically updating method of electronic product that the embodiment of the present invention proposes can be applicable to various Portable intelligent terminal such as panel computer, mobile phone etc., or other smart electronics product such as intelligent televisions etc.
Specifically, referring to Fig. 1, it is the flow chart of method for upgrading software of a kind of electronic product of the embodiment of the present invention.
In FIG, first as described in step S11: storage has the nonvolatile memory of automatic upgrade script and upgrade file insert the external memory interface of the electronic product shut down; Wherein, nonvolatile memory is such as flash card, and it is the memorizer utilizing flash memory (FlashMemory) technology to reach storage electronic information, and after power-off, data are without loss, for instance for various types of SD cards, mmc card etc. Correspondingly, external memory interface is such as SD draw-in groove etc. After step s 11, as described in step S12: make electronic product start shooting, such electronic product can insert the nonvolatile memory of its external memory interface to detect and can perform the automatic upgrade script stored in the nonvolatile memory by electrifying startup.
Then, as described in step S13: determine which that upgrading mode is to carry out software upgrading according to automatic upgrade script. it is understandable that, the automatic upgrade script of different content can represent different upgrading modes, such as after performing automatic upgrade script, can determine whether that subsequent upgrade mode is bootstrap (Bootloader) upgrading or system upgrade, if it is determined that subsequent upgrade mode is bootstrap upgrading, then perform step S14a, if it is determined that subsequent upgrade mode is system upgrade, then correspondingly perform step S14b. wherein, the concrete steps of step S14a and step S14b will be described in detail follow-up in conjunction with Fig. 2 and Fig. 3. which kind of in addition, it is necessary to illustrate: the automatic upgrade script in the present embodiment is such as one section comprises the program code of multiple order line, is used for judging to find which kind of upgrading file, namely follow-up by upgrading mode automatically upgrade, in nonvolatile memory, storage has the upgrading files such as which kind of automatic upgrade script then can realize copying in nonvolatile memory by electronic product manufacturer or after-sale service personnel or user, these upgrading files are to be provided according to the upgrading improvement to electronic product by manufacturer, likely file (bootstrap upgrading file or system upgrade file) is used in the upgrading of only storage one in the nonvolatile memory, it is also possible to two kinds of upgrading files all exist, at this moment namely guide program upgrading and be also carried out system program upgrading, now only bootstrap upgrading need to be also carried out system program upgrading and do priority settings.
Afterwards, as described in step S15: after electronic product has been upgraded, then generally electronic product can automatic shutdown.User can as shown in step S17: removes volatile memory, namely disconnects the connection between nonvolatile memory and the external memory interface of electronic product.
Finally, as described in step S18: electronic product is started shooting. At this it should be noted that electronic product start can be complete and postboost Auto Power On in upgrading, or the power knob of user triggering electronic product makes electronic product start shooting.
Referring to Fig. 2, it is a kind of concrete steps flow chart of the upgrading of bootstrap shown in Fig. 1. In fig. 2, when electronic product detects nonvolatile memory and performs to determine after the automatic upgrade script of storage in nonvolatile memory that subsequent upgrade mode is bootstrap upgrading, then following steps S141, S143, S145 and S147 are sequentially performed. First, whether the file system in detection nonvolatile memory is preset format (step S141); When file system nonvolatile memory being detected is preset format, then will be stored in the bootstrap upgrade file in the upgrade file in nonvolatile memory and read in the internal memory (step S143) of electronic product; Afterwards, then detect the bootstrap memorizer of electronic product and wipe bootstrap memorizer (step S145), and will be stored in the bootstrap upgrade file in nonvolatile memory and be written to the bootstrap memorizer (S147) of electronic product and upgrade with the bootstrap realizing electronic product.
For row, a kind of example of bootstrap upgrading will be described so that understanding with nonvolatile memory for SD card below, but the present invention is not limited thereto. At this, bootstrap carrying out upgrading and is actually the upgrading to bootstrap environmental variable, bootstrap escalation process, without screen prompt information, starts and such as can increase by 40 seconds, the system of electronic product can normally start, and the upgrading of bootstrap is then come into force in upper once start. Specifically, first get out bootstrap upgrading with automatic upgrade script and upgrade file and store to SD card; At this, automatic upgrade script is such as file aml_autoscript, and upgrade file is such as bootstrap upgrade file M280-u-boot.bin, and the content of bootstrap upgrade file includes bootstrap environmental variable. When SD card inserts in the SD draw-in groove of electronic product, the automatic upgrade script aml_autoscript in SD card the order line that performs in automatic upgrade script aml_autoscript can be detected to search and to judge whether there is the upgrading file such as bootstrap upgrade file M280-u-boot.bin specified in order line in SD card after electronic product electrifying startup, if bootstrap upgrade file M280-u-boot.bin can be found, it is determined that subsequent upgrade mode is bootstrap upgrading. Afterwards, it is FAT32 form (preset format a kind of illustrate) and SD card internal memory contains bootstrap upgrade file M280-u-boot.bin when electronic product detects the file system of SD card, then export information " UpdateubootfromSDcard " by serial ports, the bootstrap upgrade file M280-u-boot.bin that SD card stores is read the physical memory 0x82000000 of electronic product. Afterwards, electronic product detects its serial flash (SPIFlash, a kind of bootstrap memorizer) and wipes serial flash from 0 region that length is 0x40000 started. Finally, by from memory address 0x82000000, length be 0x3e000 bootstrap upgrade file in data write the position that serial flash starts from address 0, and export information " Updateend ".On the other hand, if not finding bootstrap upgrade file M280-u-boot.bin in SD card, then information " NofoundM280-u-boot.bin " is exported by serial ports.
Referring to Fig. 3, it is a kind of concrete steps flow chart of system shown in Figure 1 upgrading. In figure 3, when electronic product detects nonvolatile memory and performs to determine that upgrading mode is system upgrade after the automatic upgrade script of storage in nonvolatile memory, then following steps S142, S144 and S147 are substantially sequentially performed. First, system recovery program is read in the internal memory (step S142) for system upgrade of electronic product by electronic product from the original nonvolatile memory of nonvolatile memory or electronic product; Afterwards, the instruction (step S144) in system recovery program upgrading configuration script in electronic product record upgrade file, and the system upgrade bag (step S146) in upgrade file is installed, and then realize system upgrade.
For row, a kind of example of system upgrade will be described so that understanding with nonvolatile memory for SD card below, but the present invention is not limited thereto. First get out bootstrap upgrading with automatic upgrade script and upgrade file and store to SD card; At this, automatic upgrade script is such as file aml_autoscript, and upgrade file such as includes system recovery program upgrading configuration script factory_update_param.aml, system upgrade bag M280_update.zip and bootstrap environment profile M280-u-boot-env.bin.v1. Wherein, the title of system upgrade bag can be revised inside system recovery program upgrading configuration script factory_update_param.aml.
When SD card inserts in the SD draw-in groove of electronic product, electronic product can detect the automatic upgrade script aml_autoscript in SD card the order line that performs in automatic upgrade script aml_autoscript to search and judge that SD card is interior or whether there is, in the original nonvolatile memory of electronic product, the upgrading file such as system recovery program M280_recovery specified in order line after powering on, if system recovery program M280_recovery can be found, it is determined that subsequent upgrade mode is system upgrade. Afterwards, if be detected that the SD card storage inserted in SD draw-in groove has system recovery program M280_recovery and is FAT32 form, then from SD card, system recovery program M280_recovery is loaded into memory address 0x82000000. If being not detected by system recovery program M280_recovery in the SD card inserted in SD draw-in groove, list the list information of the original nonvolatile memory of electronic product, and be 0x4000000 from the initial address of one of original nonvolatile memory, be sized to the region loading system kernel program of 4000000 to internal memory initial address 0x82000000, guiding operating system nucleus from memory address 0x82000000, namely upgrade script aml_autoscript can read internal memory using system recovery program M280_recovery as virtual disk automatically.
Afterwards, system recovery program M280_recovery can first system recovery program upgrade the instruction inside configuration script factory_update_param.aml such as write/cache/recovery catalogue under command by name file inside; Then installation system AKU M280_update.zip is begun to. Finally, after installation system upgrade bag M280_update.zip, the system reboot of electronic product can use bootstrap environment profile M280-u-boot-env.bin.v1, carries out the initialization after system upgrade.
From above-described embodiment: a kind of electronic product automatically updating method that the embodiment of the present invention provides, can need to realize upgrading automatically according to electronic product, facilitate the operation that electronic product in batch is especially unified by electronic product upgrading, not only for after-sale service personnel but also for a user, be equivalent to a kind of black box operation, need not understand what upgrading file in nonvolatile memory is, which program of electronic product needs upgrading, it is possible to conveniently directly product is completed escalation process.
The above, it it is only presently preferred embodiments of the present invention, not the present invention is done any pro forma restriction, although the present invention is disclosed above with preferred embodiment, but it is not limited to the present invention, any those skilled in the art, without departing within the scope of technical solution of the present invention, when the technology contents of available the disclosure above makes a little change or is modified to the Equivalent embodiments of equivalent variations, in every case it is without departing from technical solution of the present invention content, according to any simple modification that above example is made by the technical spirit of the present invention, equivalent variations and modification, all still fall within the scope of technical solution of the present invention.

Claims (8)

1. the method for upgrading software of an electronic product, it is characterised in that include step:
Detection storage has the nonvolatile memory of automatic upgrade script, and after this nonvolatile memory being detected, automatic upgrade script in detection nonvolatile memory also performs order line in automatic upgrade script to search and to judge whether there is the upgrading file specified in order line in nonvolatile memory, if the upgrading file that can find is bootstrap upgrade file, then determine that subsequent upgrade mode is bootstrap upgrading, if the upgrading file that can find is system recovery program, then determine that subsequent upgrade mode is system upgrade, if two kinds of upgrading files all exist, then determine subsequent upgrade mode according to priority settings, and
After determining upgrading mode, bootstrap upgrade file or system recovery program according to storing in this nonvolatile memory carry out corresponding bootstrap upgrading or system upgrade.
2. the method for upgrading software of electronic product as claimed in claim 1, it is characterised in that before detection storage has the step of nonvolatile memory of automatic upgrade script, more include step:
This nonvolatile memory is inserted the external memory interface of this electronic product being under off-mode, and makes this electronic product start shooting.
3. the method for upgrading software of electronic product as claimed in claim 2, it is characterized in that, carry out after the step of corresponding bootstrap upgrading or system upgrade performed, more including step according to the bootstrap upgrade file of storage in this nonvolatile memory or system recovery program after determining upgrading mode:
Remove this nonvolatile memory from this external memory interface of this electronic product, and make this electronic product turn back on.
4. the method for upgrading software of electronic product as claimed in claim 1, it is characterized in that, when determining that this upgrading mode is bootstrap upgrading, the step guiding program upgrading according to this bootstrap upgrade file of storage in this nonvolatile memory includes:
Whether the file system detecting this nonvolatile memory is preset format; And
When the file system this nonvolatile memory being detected is preset format:
Will be stored in the bootstrap upgrade file in this upgrade file in this nonvolatile memory and read in the internal memory of this electronic product;
Detect the bootstrap memorizer of this electronic product and wipe this bootstrap memorizer; And
Will be stored in this bootstrap upgrade file in this nonvolatile memory and be written to this bootstrap memorizer to realize software upgrading.
5. the method for upgrading software of electronic product as claimed in claim 4, it is characterised in that this preset format is FAT32 form.
6. the method for upgrading software of electronic product as claimed in claim 1, it is characterised in that when determining that this upgrading mode is system upgrade, the step carrying out system upgrade according to this system recovery program of storage in this nonvolatile memory sequentially includes:
System recovery program is read in the internal memory of this electronic product for system upgrade from this nonvolatile memory or the original nonvolatile memory of this electronic product;
Record the instruction in the system recovery program upgrading configuration script in this upgrade file; And
System upgrade bag in this upgrade file is installed.
7. the method for upgrading software of electronic product as claimed in claim 6, it is characterised in that after the step of the system upgrade bag in installing this upgrade file, further comprise the steps of:
This electronic product utilize the bootstrap environment profile in this upgrade file to carry out system upgrade after restarting after initialization.
8. the method for upgrading software of electronic product as claimed in claim 1, it is characterised in that this nonvolatile memory is flash card.
CN201210035839.XA 2012-02-17 2012-02-17 The method for upgrading software of electronic product Active CN102609290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210035839.XA CN102609290B (en) 2012-02-17 2012-02-17 The method for upgrading software of electronic product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210035839.XA CN102609290B (en) 2012-02-17 2012-02-17 The method for upgrading software of electronic product

Publications (2)

Publication Number Publication Date
CN102609290A CN102609290A (en) 2012-07-25
CN102609290B true CN102609290B (en) 2016-06-15

Family

ID=46526688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210035839.XA Active CN102609290B (en) 2012-02-17 2012-02-17 The method for upgrading software of electronic product

Country Status (1)

Country Link
CN (1) CN102609290B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014067071A1 (en) * 2012-10-30 2014-05-08 深圳市多尼卡电子技术有限公司 Play control method and system for player
CN103607447A (en) * 2013-11-15 2014-02-26 中国联合网络通信集团有限公司 A software upgrade processing method and an apparatus
CN103645918A (en) * 2013-12-10 2014-03-19 深圳市道通科技有限公司 Software upgrading method and device for industrial endoscope
CN105573766A (en) * 2014-10-09 2016-05-11 中兴通讯股份有限公司 Software upgrading method and device and electronic equipment
CN106604141A (en) * 2016-12-28 2017-04-26 北京风行在线技术有限公司 Dual-upgrade method
CN107168748A (en) * 2017-05-31 2017-09-15 武汉英泰斯特电子技术有限公司 A kind of method that multinomial upgrading task is realized by a upgrade file bag
CN109144542A (en) * 2018-08-07 2019-01-04 太仓市同维电子有限公司 Wireless terminal product software automatic updating system and method

Also Published As

Publication number Publication date
CN102609290A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
CN102609290B (en) The method for upgrading software of electronic product
CN106095620B (en) A kind of development approach of built-in Linux partition holding
CN104375856A (en) Application updating method and device
CN106933593B (en) System switching method and device based on mobile terminal
CN104123153A (en) Apparatus and method for firmware upgrade using USB
CN101221511A (en) Automatic installation and upgrading method of terminal unit application software
CN101373451B (en) Computer system for protecting double-basic input /output system program and control method thereof
CN103593281B (en) Test macro and method of testing
CN104679540A (en) Computer system and computer system starting method
CN106020861A (en) FOTA upgrading method and system for smart watch
CN110231949A (en) System upgrading method and device, electronic equipment and storage medium
CN105373728A (en) Advertisement prompting system and method
CN102075710B (en) Starting operation method for television and television
CN107087164A (en) Method and device for starting equipment
CN111381892B (en) Data processing method, device, equipment and machine-readable medium
CN104461622A (en) system updating method and device of intelligent terminal
CN106155713B (en) Startup information management method and device
CN102722378B (en) A kind of method of non intelligent mobile phone and its system program of upgrading
CN103995717A (en) Method for upgrading software in embedded device
CN102184115B (en) Method for updating system software and terminal device
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal
CN106611124B (en) Computer installation and its starting-up method
CN201869296U (en) Television
CN104516743A (en) Upgrading method and system of embedded device firmware based on ActiveX
CN101655800B (en) Updating method and updating system for basic input output system

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.