CN113485721A - Firmware updating method and device and electronic equipment - Google Patents

Firmware updating method and device and electronic equipment Download PDF

Info

Publication number
CN113485721A
CN113485721A CN202110729282.9A CN202110729282A CN113485721A CN 113485721 A CN113485721 A CN 113485721A CN 202110729282 A CN202110729282 A CN 202110729282A CN 113485721 A CN113485721 A CN 113485721A
Authority
CN
China
Prior art keywords
firmware
version
update
updated
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110729282.9A
Other languages
Chinese (zh)
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.)
Guangdong Bay Area Intelligent Terminal Industrial Design And Research Institute Co ltd
Original Assignee
Guangdong Bay Area Intelligent Terminal Industrial Design And Research Institute 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 Guangdong Bay Area Intelligent Terminal Industrial Design And Research Institute Co ltd filed Critical Guangdong Bay Area Intelligent Terminal Industrial Design And Research Institute Co ltd
Priority to CN202110729282.9A priority Critical patent/CN113485721A/en
Publication of CN113485721A publication Critical patent/CN113485721A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a firmware updating method, a firmware updating device and electronic equipment, wherein the method comprises the following steps: acquiring a target update version; searching the firmware to be updated based on the target update version; for each searched firmware to be updated, executing: and generating an update file according to the target update version, and burning the update file into the firmware to be updated. The invention can automatically realize the updating of the firmware to be updated according to the obtained target updating version, does not need a specific jig or a software upgrading tool, and can repair the product function without going out; meanwhile, the efficiency of updating the firmware is improved, so that a user can enjoy new functions of the product in time, and the user experience is effectively improved.

Description

Firmware updating method and device and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a firmware updating method and apparatus, and an electronic device.
Background
PD (power delivery, fast charging technology) is a technology that can realize fast charging and bidirectional power transmission, and if interfaces with PD functions are provided on a mobile phone, a tablet, and a notebook computer, mutual sharing of electric energy among the mobile phone, the tablet, and the notebook computer is realized.
The PD technology is now applied to various USB interfaces, and in order to improve the PD function in the USB interface, it needs to be upgraded or repaired during use. In the prior art, upgrading or repairing of PD functions in a USB interface is mainly performed by hardware burning or updating under a system. The hardware burning method needs to use a specific jig, and also needs to detach the memory chip on the product mainboard to realize burning of the firmware, so that the process is complicated, and the user is difficult to operate by himself. The updating mode under the system needs to use a software upgrading tool, the software upgrading tool is independent of the system of the electronic equipment, and the user side cannot use the software upgrading tool, so that the user cannot upgrade or repair the firmware in time, the upgrading or repair of the PD function is delayed, and the user experience is seriously influenced.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a firmware updating method, a firmware updating device and electronic equipment, and solves the problems that the upgrading or repairing operation of the firmware is complicated and is not timely enough, and the user experience is influenced in the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a method of updating firmware, comprising:
acquiring a target update version;
searching the firmware to be updated based on the target update version;
for each searched firmware to be updated, executing: and generating an update file according to the target update version, and burning the update file into the firmware to be updated.
Optionally, the searching for the firmware to be updated based on the target update version includes:
searching for firmware of which the current version is inconsistent with the target update version based on the target update version;
and determining the searched firmware as the firmware to be updated.
Optionally, the burning the update file into the firmware to be updated includes:
acquiring a firmware identifier of the firmware to be updated, and generating a corresponding updating command according to the firmware identifier;
and issuing the update command and the update file to a chip corresponding to the firmware identifier through an embedded controller, so that the chip stores the update file to the corresponding firmware to be updated.
Optionally, the obtaining the target update version includes:
detecting whether version updating information is received;
and when the version updating information is detected, acquiring a target updating version based on the version updating information.
Optionally, after generating an update file according to the target update version and burning the update file into the firmware to be updated, the method further includes:
receiving feedback information after the burning of the firmware to be updated is completed;
judging whether the feedback information corresponds to the target update version;
when the feedback information does not correspond to the target update version, the steps are executed again: and generating an update file according to the target update version, and burning the update file into the firmware to be updated.
The invention also provides a firmware updating device, which comprises a basic input and output system and an embedded controller, wherein the embedded controller is connected with a plurality of firmware;
the basic input and output system is used for acquiring a target update version, searching a firmware to be updated from a plurality of firmware based on the target update version, and generating an update file according to the target update version;
and the embedded controller is used for burning the update file into the firmware to be updated aiming at each searched firmware to be updated.
Optionally, the bios is further configured to:
searching for firmware of which the current version is inconsistent with the target update version based on the target update version;
and determining the searched firmware as the firmware to be updated.
Optionally, the bios is further configured to:
acquiring a firmware identifier of the firmware to be updated, generating a corresponding update command according to the firmware identifier, and issuing the update command and the update file to the embedded controller;
and the embedded controller is used for issuing the update command and the update file to a chip corresponding to the firmware identifier when receiving the update command and the update file, so that the chip stores the update file to the corresponding firmware to be updated.
Optionally, the bios is further configured to:
detecting whether version updating information is received;
when version updating information is detected, acquiring a target updating version based on the version updating information;
generating an update file in the target update version, and burning the update file into the firmware to be updated:
receiving feedback information after the burning of the firmware to be updated is completed;
judging whether the feedback information corresponds to the target update version;
and when the feedback information does not correspond to the target update version, sending the update command and the update file to the embedded controller again.
The present invention also provides an electronic device, comprising:
a memory for storing a program;
a processor for implementing the steps of the firmware updating method as described in any one of the above when executing the program.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a firmware updating method, a firmware updating device and electronic equipment, which can automatically realize the updating of firmware to be updated according to an acquired target updating version without a specific jig or a software updating tool, so that a user can repair product functions without going out of home; meanwhile, the efficiency of updating the firmware is improved, so that a user can enjoy new functions of the product in time, and the user experience is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flowchart illustrating a firmware update method according to the present invention;
fig. 2 is a schematic structural diagram of a firmware updating apparatus according to the present invention.
In the above figures: 10. a basic input output system; 20. an embedded controller; 30. a PD chip; 31. the firmware is to be updated.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding the present solution, the application scenario and some terms of the present solution are briefly introduced here:
the invention provides a firmware updating scheme which can be applied to updating of firmware in any electronic equipment. For convenience of explanation, the following describes a scheme of the present invention by taking a Type-C interface of a notebook computer as an example.
The Type-C interface is one of USB interfaces, can realize not dividing arbitrary the inserting of positive and negative two sides, and the wide application is in various electronic equipment now. The PD is a quick charging technology, if interfaces with PD functions are arranged on the mobile phone, the tablet and the notebook computer, bidirectional transmission of power supply and power receiving can be realized, and therefore mutual sharing of electric energy among the mobile phone, the tablet and the notebook computer is realized; PD technology is now being used in Type-C interfaces, which need to be upgraded or repaired during use.
The Basic Input Output System (BIOS) is a set of programs stored in a rom on a terminal motherboard, including a Basic Input Output program, a self-test program after power-on, a System self-start program, and the like, which are most needed by a terminal, and is one of the bases of the terminal.
An Embedded Controller (EC) is a control system for performing a specified independent control function and having a complex data processing capability, and for example, an EC in a notebook computer can be used to control a built-in mouse, keyboard, and the like.
The following further describes the technical solution of the present invention by taking updating a Type-C interface with a PD function as an example and by a specific implementation manner with reference to the accompanying drawings.
Referring to fig. 1 and fig. 2 in combination, an embodiment of the invention provides a firmware updating method; in this embodiment, the update method is described by taking an example of updating the PD function of the Type-C interface, and therefore the firmware is the firmware of the PD chip connected to the Type-C interface.
Specifically, the firmware updating method includes:
s1, acquiring a target update version;
s2, searching the firmware to be updated based on the target update version;
s3, for each searched firmware to be updated, executing: and generating an update file according to the target update version, and burning the update file into the firmware to be updated.
The steps S1 and S2 may be implemented by a bios, which is used to detect whether there is upgrade or update in the system, so as to detect whether version update information is currently received, and when the version update information is detected, obtain a target update version based on the version update information.
Further, the basic input output system searches the firmware to be updated based on the target update version, searches the firmware of which the current version is inconsistent with the target update version based on the target update version, and determines the searched firmware as the firmware to be updated. When the current version of the firmware is inconsistent with the target update version, the current version of the firmware is not the latest version and needs to be subjected to version update.
It is understood that, when a plurality of firmware to be updated are searched, the firmware to be updated may be updated in sequence.
Further, in step S3, burning the update file into the firmware to be updated includes:
acquiring a firmware identifier of a firmware to be updated, and generating a corresponding updating command according to the firmware identifier; and issuing the update command and the update file to the PD chip corresponding to the firmware identifier through the embedded controller, so that the PD chip stores the update file to the corresponding firmware to be updated. The updating command is specifically cmd, and the updating file is specifically the quantile data of the PD chip to be burned.
It can be understood that the bios sends an update command through the embedded controller to notify the embedded controller to update the sub-bits of the corresponding PD chip. Therefore, when the embedded controller receives the update command, other actions on the bus connected with the corresponding PD chip are stopped to prepare for updating the firmware to be updated.
After the embedded controller prepares for updating the firmware to be updated, the basic input and output system writes the update file into the embedded controller, the embedded controller writes the update file into the PD chip to update the sub-position of the PD chip and issues an update command to the PD chip, so that the PD chip writes the update file into the corresponding position of the firmware.
After the burning of the updated firmware is finished, generating feedback information, and uploading the feedback information to a basic input and output system through a PD chip and an embedded controller layer; the basic input and output system receives feedback information; and judging whether the feedback information corresponds to the target update version.
It can be understood that, when the feedback information does not correspond to the target update version, it indicates that the update file burned by the firmware to be updated does not correspond to the target update version, i.e., the burning of the firmware to be updated fails.
When the burning of the firmware to be updated fails, the following steps are executed again: generating an update file according to the target update version, and burning the update file into the firmware to be updated; and after the firmware burning is finished, receiving the feedback information of the firmware to be updated after the firmware burning is finished again, and judging whether the feedback information corresponds to the target update version or not until the feedback information corresponds to the target update version.
Referring to fig. 2, based on the foregoing embodiment, the present invention further provides a firmware updating apparatus, including a bios 10 and an embedded controller 20, where the embedded controller 20 is connected to a plurality of firmware through an I2C bus (Inter-Integrated Circuit, bi-directional two-wire synchronous serial bus).
It is understood that, in the present embodiment, the PD function of the Type-C interface is described as an example, and therefore the firmware is the firmware of the PD chip 30 connected to the Type-C interface.
In this embodiment, the bios 10 is configured to detect whether version update information is received; when the version updating information is detected, acquiring a target updating version based on the version updating information; the bios 10 is further configured to search the firmware 31 to be updated from the plurality of firmware based on the target update version, and generate an update file according to the target update version.
The embedded controller 20 is configured to burn the update file into the firmware to be updated 31 for each searched firmware to be updated 31.
Further, the bios 10 is configured to search for firmware whose current version is inconsistent with the target update version based on the target update version, and determine the searched firmware as the firmware to be updated 31.
In addition, the bios 10 is further configured to obtain a firmware identifier of the firmware 31 to be updated, generate a corresponding update command according to the firmware identifier, and issue the update command to the embedded controller 20, so as to update the firmware 31 to be updated.
When the embedded controller 20 receives the update command, all actions on the I2C bus connected to the PD chip 30 on which the firmware 31 to be updated is located are stopped to enter the update waiting state. The bios 10 then writes the update file into the embedded controller 20, and the embedded controller 20 writes the update file into the PD chip 30 and issues an update command onto the PD chip 30, so that the PD chip 30 writes the update file into a corresponding location of the firmware 31 to be updated.
After the update file is generated in the target update version and burned into the firmware 31 to be updated, the firmware 31 to be updated sends feedback information to the PD chip 30, and the feedback information is uploaded to the bios 10 via the embedded controller 20.
The bios 10 receives feedback information after burning the firmware 31 to be updated, and determines whether the feedback information corresponds to the target update version; when the feedback information does not correspond to the target update version, the bios 10 issues the update command and the update file to the embedded controller 20 again to achieve re-burning of the firmware to be updated 31.
Based on the foregoing embodiments, the present invention also provides an electronic device, including:
a memory for storing a program;
a processor for implementing the steps of the firmware updating method as any one of the above when executing the program.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for updating firmware, comprising:
acquiring a target update version;
searching the firmware to be updated based on the target update version;
for each searched firmware to be updated, executing: and generating an update file according to the target update version, and burning the update file into the firmware to be updated.
2. The method according to claim 1, wherein the searching for the firmware to be updated based on the target update version comprises:
searching for firmware of which the current version is inconsistent with the target update version based on the target update version;
and determining the searched firmware as the firmware to be updated.
3. The method according to claim 1, wherein burning the update file into the firmware to be updated comprises:
acquiring a firmware identifier of the firmware to be updated, and generating a corresponding updating command according to the firmware identifier;
and issuing the update command and the update file to a chip corresponding to the firmware identifier through an embedded controller, so that the chip stores the update file to the corresponding firmware to be updated.
4. The method for updating firmware according to claim 1, wherein the obtaining the target update version comprises:
detecting whether version updating information is received;
and when the version updating information is detected, acquiring a target updating version based on the version updating information.
5. The method according to claim 1, wherein after generating an update file according to the target update version and burning the update file into the firmware to be updated, the method further comprises:
receiving feedback information after the burning of the firmware to be updated is completed;
judging whether the feedback information corresponds to the target update version;
when the feedback information does not correspond to the target update version, the steps are executed again: and generating an update file according to the target update version, and burning the update file into the firmware to be updated.
6. The firmware updating device is characterized by comprising a basic input and output system and an embedded controller, wherein the embedded controller is connected with a plurality of firmware;
the basic input and output system is used for acquiring a target update version, searching a firmware to be updated from a plurality of firmware based on the target update version, and generating an update file according to the target update version;
and the embedded controller is used for burning the update file into the firmware to be updated aiming at each searched firmware to be updated.
7. The firmware updating apparatus according to claim 6, wherein the bios is further configured to:
searching for firmware of which the current version is inconsistent with the target update version based on the target update version;
and determining the searched firmware as the firmware to be updated.
8. The firmware updating apparatus according to claim 7, wherein the bios is further configured to:
acquiring a firmware identifier of the firmware to be updated, generating a corresponding update command according to the firmware identifier, and issuing the update command and the update file to the embedded controller;
and the embedded controller is used for issuing the update command and the update file to a chip corresponding to the firmware identifier when receiving the update command and the update file, so that the chip stores the update file to the corresponding firmware to be updated.
9. The firmware updating apparatus according to claim 8, wherein the bios is further configured to:
detecting whether version updating information is received;
when version updating information is detected, acquiring a target updating version based on the version updating information;
generating an update file in the target update version, and burning the update file into the firmware to be updated:
receiving feedback information after the burning of the firmware to be updated is completed;
judging whether the feedback information corresponds to the target update version;
and when the feedback information does not correspond to the target update version, sending the update command and the update file to the embedded controller again.
10. An electronic device, comprising:
a memory for storing a program;
a processor for implementing the steps of the firmware updating method according to any one of claims 1 to 5 when executing the program.
CN202110729282.9A 2021-06-29 2021-06-29 Firmware updating method and device and electronic equipment Pending CN113485721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729282.9A CN113485721A (en) 2021-06-29 2021-06-29 Firmware updating method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729282.9A CN113485721A (en) 2021-06-29 2021-06-29 Firmware updating method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113485721A true CN113485721A (en) 2021-10-08

Family

ID=77936434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729282.9A Pending CN113485721A (en) 2021-06-29 2021-06-29 Firmware updating method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113485721A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117931246A (en) * 2024-03-19 2024-04-26 天固信息安全系统(深圳)有限公司 Method and device for upgrading EC firmware, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117931246A (en) * 2024-03-19 2024-04-26 天固信息安全系统(深圳)有限公司 Method and device for upgrading EC firmware, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102339242A (en) Computer system data recovery device
CN112612661B (en) Chip system level test method, device and system
WO2019140656A1 (en) Firmware upgrade method and apparatus, electronic device and control device
CN105183439A (en) Real-time Modification Of Input Method Based On Language Context
CN104182239A (en) Upgrading method and upgrading device for file system based on embedded Linux equipment
CN103902329A (en) Electronic device capable of updating basic input and output system and updating method thereof
CN113268416A (en) Application program testing method and device, storage medium and terminal
CN113485721A (en) Firmware updating method and device and electronic equipment
CN104679566A (en) Method and terminal equipment for updating SMBIOS (System Management Basic Input/Output System)
CN112463199A (en) System upgrading method and terminal
WO2021018208A1 (en) Firmware upgrade method and apparatus, electronic device, and storage medium
CN103577360A (en) Device and method for enabling intelligent terminal to enter downloading and upgrading mode
CN104021007A (en) Parameter renewing method and electronic devices
US20070162735A1 (en) Control chip for a computer boot procedure and related method
CN108052353B (en) Method and equipment for improving synchronous speed of BIOS control module
CN106095643A (en) The establishing method of systematic parameter access and server thereof
CN107451067B (en) Processing method for downloading test and related product
US9619355B2 (en) Booting verification method of computer and electronic device
US20100121909A1 (en) Storage apparatus and on-line client service system, software and method thereof
JP2019207551A (en) Information processing device, control method, and program
CN101727333A (en) Method for updating firmware in microprocessor and firmware updating system
CN103677881A (en) Method for controlling electronic device, and electronic device
US20130144457A1 (en) Server system for updating heat dissipation solution
CN104699410A (en) Information processing method and electronic device
CN111966385B (en) Flat panel detector online upgrading method, flat panel detector and upper computer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination