CN105549974A - Chip firmware updating method and system - Google Patents

Chip firmware updating method and system Download PDF

Info

Publication number
CN105549974A
CN105549974A CN201510925601.8A CN201510925601A CN105549974A CN 105549974 A CN105549974 A CN 105549974A CN 201510925601 A CN201510925601 A CN 201510925601A CN 105549974 A CN105549974 A CN 105549974A
Authority
CN
China
Prior art keywords
firmware
chip
data
version information
cpu
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
CN201510925601.8A
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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201510925601.8A priority Critical patent/CN105549974A/en
Publication of CN105549974A publication Critical patent/CN105549974A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a chip firmware updating method and system. The method comprises the steps of reading firmware version information of a chip and updating firmware according to the information. The method and the system provided by the invention are convenient and simple to realize, and can verify the accuracy of transmitted data, thereby improving the security.

Description

A kind of method and system of firmware renewal of chip
Technical field
The present invention relates to firmware more frontier, particularly a kind of firmware update and system utilizing the chip of System control bus.
Background technology
Usually configuration firmware is needed to run in integrated chip or conversion chip, for firmware upgrading or upgrade mainly by the method for signal wiring tool is realized, this method needs corresponding tool usually, also needs disassembly system, cumbersome and inconvenient; In addition, for the display chip with AUX interface, can also be upgraded by AUX, but this implementation needs the source code of the AUX interface of CPU usually, and implementation procedure more complicated.
Summary of the invention
Technical matters to be solved by this invention is to provide the method and system that a kind of System control bus SMBUS realizes the firmware renewal of chip.
In order to solve the problems of the technologies described above, present invention employs following technical scheme:
The method that the firmware of chip upgrades, reads the firmware version information of described chip, and according to this information updating firmware.
Wherein, CPU sets up data cube computation by System control bus and described chip, and
The instruction of reading firmware version information in it is sent to described chip;
And select the firmware more new data sending this chip to described chip, to upgrade described firmware according to its firmware version information received.
Wherein, the firmware version information that described CPU is read and up-to-date firmware version information are made comparisons, and when the firmware version that it reads is lower than described up-to-date firmware version, send the firmware more new data corresponding to up-to-date firmware version information to described chip.
Wherein, described CPU also sends and the described firmware check code that more new data is corresponding to described chip, to verify that the firmware transferring to described chip upgrades data operation algorithm.
Wherein, described chip utilize mathematical algorithm to its firmware received more new data carry out computing, and operation result to be compared with described check code, and more whether new data accurate to judge its firmware received according to comparative result;
When described operation result and described check code there are differences, described chip sends the request resending data to CPU.
Wherein, described CPU also sends the data length of described firmware more new data to described chip.
Wherein, described firmware is upgraded Data Segmentation and becomes at least 2 data blocks to send by described CPU, and sends the data length of each described data block respectively.
Present invention also offers a kind of chip firmware adopting above-mentioned firmware update and upgrade system, it comprises: processor, and it is configured to the firmware version information reading described chip, and according to this information updating firmware.
Wherein, also comprise the System control bus of processor described in data cube computation and chip, wherein, described processor is further configured to sets up data cube computation by System control bus and described chip, and comprises:
Sending module, it is configured to send the instruction of reading firmware version information in it to described chip;
Receiver module, it is configured to receive described chip firmware version information;
Update module, its firmware version information being configured to receive according to described receiver module selects the firmware more new data sending this chip to described chip, to upgrade described firmware.
Wherein, described System control bus be connected with described processor and for reading system internal memory System control bus compared with prior art, beneficial effect of the present invention is:
The firmware update of the chip 1, in the present invention and system, the transmission carrying out data by utilizing System control bus with communicate, to realize renewal and the upgrading of the firmware in chip, the method does not need external tool not change the source code of AUX interface yet, and realization is convenient and simple;
2, update method of the present invention and system can also by sending check code, to verify the security of transmitted data, ensure the order of accuarcy of firmware received by chip more new data, improve the security of system.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method that the firmware of the chip of the embodiment of the present invention one upgrades;
Fig. 2 is the process flow diagram of the method that the firmware of the chip of the embodiment of the present invention two upgrades;
Fig. 3 is the structured flowchart of the system that the firmware of the chip of the embodiment of the present invention upgrades.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail, but not as a limitation of the invention.
The firmware update of the chip that the embodiment of the present invention provides, by reading the firmware version information of chip, and according to the firmware of this information updating chip.
As shown in Figure 1, the process flow diagram of the method upgraded for the firmware of the chip of embodiments of the invention one.Wherein, this update method can comprise the following steps:
S1: under the state of start, CPU sets up data cube computation by System control bus SMBUS and chip, in the present embodiment, SMBUS can also the data such as store status of internal memory of reading system, that is, System control bus SMBUS in the present embodiment is connected with CPU and for the System control bus of reading system internal memory, to realize the effect of saving resource.
S2:CPU sends the instruction of reading its firmware version information to chip by System control bus;
S3: chip receives instruction according to it and version information of the firmware in it is sent to CPU;
S4:CPU reads the firmware version information that this chip sends, and the firmware version information read and up-to-date firmware version information are made comparisons, when the firmware version that it reads is lower than described up-to-date firmware version, send the firmware more new data corresponding to up-to-date firmware version information to described chip;
S5: chip upgrades the firmware of Data Update in it, to realize renewal and the upgrading of firmware according to the firmware that receives.
In a preferred embodiment, as shown in Figure 2, CPU can also send information about the firmware more length of new data to chip, so that chip receives finishing receiving and accuracy of data verification msg, wherein, when the data volume of the firmware that will send more new data is larger, this Data Segmentation can also become multiple (at least two groups) data block to send by CPU, to improve transmission speed and the efficiency of data, same, also can send the data length often organizing data block respectively.
Fig. 2 is the process flow diagram of the method that the firmware of the chip of the embodiment of the present invention two upgrades, and as shown in Figure 2, wherein, this update method can comprise the following steps:
S1: under the state of start, CPU sets up data cube computation by System control bus SMBUS and chip, in the present embodiment, SMBUS can also the data such as store status of internal memory of reading system, that is, System control bus SMBUS in the present embodiment is connected with CPU and for the System control bus of reading system internal memory, to realize the effect of saving resource.
S2:CPU sends the instruction of reading its firmware version information to chip by System control bus;
S3: chip receives instruction according to it and version information of the firmware in it is sent to CPU;
S4:CPU reads the firmware version information that this chip sends, and the firmware version information read and up-to-date firmware version information are made comparisons, when the firmware version that it reads is lower than described up-to-date firmware version, send the firmware more new data corresponding to up-to-date firmware version information to described chip;
S5:CPU, after transmission firmware more new data, can also send and the firmware check code that more new data is corresponding to chip, and this check code is that to the firmware sent, more new data or data block computing obtain by a mathematical algorithm.This check code is for verifying accuracy and the success ratio of the data transferring to chip;
S6: chip utilize mathematical algorithm to its firmware received more new data carry out computing, and the check code of operation result and its reception to be compared, and more whether new data accurate to judge its firmware received according to comparative result.When operation result is identical with check code, represents that the data that chip receives are accurately, renewal and the upgrading of firmware can be carried out; When operation result and check code exist difference, then represent that the data that chip receives exist mistake, now can send error reporting to CPU, request sends data, again to ensure that firmware is updated successfully.
Same, CPU in the present embodiment also can send information about the firmware more length of new data to chip, so that chip receives finishing receiving and accuracy of data verification msg, wherein, when the data volume of the firmware that will send more new data is larger, this Data Segmentation can also become multiple (at least two groups) data block to send, to improve transmission speed and the efficiency of data by CPU, same, also can send the data length often organizing data block respectively.
In addition, present invention also offers a kind of firmware update system adopting above-mentioned firmware update, this system comprises processor 1, and it is for reading the firmware version information of chip 2, and according to this information updating firmware.
As shown in Figure 3, for the structured flowchart of the system that the firmware of the chip in the embodiment of the present invention upgrades, wherein, processor 1 and chip set up data cube computation by System control bus 3, and this processor 1 comprises the first sending module 11, first receiver module 12, first judge module 13 and the first update module 14, wherein, sending module 11 is for sending the instruction (electric signal) of reading firmware version information in it to chip 2; First receiver module 12 is configured to receive the firmware version information from chip 2; First judge module 13 is for judging whether the chip firmware version information received by the first receiver module 12 is the up-to-date firmware version prestored in it; First update module 14 selects according to the judged result of the first judge module 13 the firmware more new data sending this chip to described chip, to upgrade described firmware, and when the first judge module 13 is judged as the firmware version information of the first receiver module 12 reception lower than the latest edition prestored in the first judge module 13, first update module 14 sends up-to-date firmware more new data, to upgrade firmware to chip 2.
In a preferred embodiment, processor 1 can further include data segmentation module 15, and it is for upgrading Data Segmentation, to form multiple data block, to provide transmission speed to sent firmware.
In a preferred embodiment, processor 1 can further include check code generation module 16, it utilizes a mathematical algorithm, and to sent firmware, more new data or data block are carried out computing and are generated check code, the firmware transferring to chip with checking is the accuracy of new data and success ratio more, and this check code is sent to chip 2 by the first sending module 11.Concrete, chip utilizes identical mathematical algorithm, and to its firmware received, more new data or data block carry out computing, and the check code of operation result and its reception is compared, when operation result is identical with check code, represent that the data that chip receives are accurately, renewal and the upgrading of firmware can be carried out; When operation result and check code exist difference, then represent that the data that chip receives exist mistake, now can send error reporting to CPU, request sends data, again to ensure that firmware is updated successfully.In addition, also the second sending module 21, second receiver module 22, second judge module 23, second update module 24 is comprised in chip 2, wherein, second receiver module 22 receives request instruction from the first sending module 11 firmware version information in it and information of check code, and send firmware version information in it by the second sending module 21, in addition, the second receiver module 22 also receives the firmware more new data from update module 14, to carry out the renewal of firmware; Second judge module 23 utilizes identical mathematical algorithm to carry out computing to the firmware version data that the second receiver module 22 receives, and is compared by the identifying code that operation result and the second receiver module 22 receive, thus judges that whether this firmware version information is accurate; Second update module 24 then selects according to the judged result of the second judge module the renewal whether carrying out firmware, and only has when operation result is identical with identifying code, just carries out the renewal rewards theory of firmware.
In sum, the firmware update of the chip in the present invention, the transmission carrying out data by utilizing System control bus with communicate, to realize renewal and the upgrading of the firmware in chip, the method does not need external tool not change the source code of AUX interface yet, and realization is convenient and simple; Further, update method of the present invention can also by sending check code, to verify the security of transmitted data, ensures the order of accuarcy of firmware received by chip more new data, improve the security of system.
Above embodiment is only exemplary embodiment of the present invention, and be not used in restriction the present invention, protection scope of the present invention is defined by the claims.Those skilled in the art can in essence of the present invention and protection domain, and make various amendment or equivalent replacement to the present invention, this amendment or equivalent replacement also should be considered as dropping in protection scope of the present invention.

Claims (10)

1. chip firmware upgrade a method, it is characterized in that, read the firmware version information of described chip, and according to this information updating firmware.
2. the method for the firmware renewal of chip according to claim 1, it is characterized in that, CPU sets up data cube computation by System control bus and described chip, and
The instruction of reading firmware version information in it is sent to described chip;
And select the firmware more new data sending this chip to described chip, to upgrade described firmware according to its firmware version information received.
3. the method for the firmware renewal of chip according to claim 2, it is characterized in that, the firmware version information that described CPU is read and up-to-date firmware version information are made comparisons, when the firmware version that it reads is lower than described up-to-date firmware version, send the firmware more new data corresponding to up-to-date firmware version information to described chip.
4. the method for the firmware renewal of chip according to claim 2, it is characterized in that, described CPU also sends and the described firmware check code that more new data is corresponding to described chip, to verify that the firmware transferring to described chip upgrades data operation algorithm.
5. the method for the firmware renewal of chip according to claim 4, it is characterized in that, described chip utilize mathematical algorithm to its firmware received more new data carry out computing, and compared with described check code by operation result, and more whether new data is accurate to judge its firmware received according to comparative result;
When described operation result and described check code there are differences, described chip sends the request resending data to CPU.
6. the method that upgrades of the firmware of chip according to claim 2, it is characterized in that, described CPU also sends the data length of described firmware more new data to described chip.
7. the method for the firmware renewal of chip according to claim 2, is characterized in that, described firmware is upgraded Data Segmentation and becomes at least 2 data blocks to send by described CPU, and sends the data length of each described data block respectively.
8. adopt method described in any one in claim 1-7 chip firmware upgrade a system, it is characterized in that, comprising: processor, it is configured to the firmware version information reading described chip, and according to this information updating firmware.
9. the system of the firmware renewal of chip according to claim 8, it is characterized in that, also comprise the System control bus of processor described in data cube computation and chip, wherein, described processor is further configured to sets up data cube computation by System control bus and described chip, and comprises:
Sending module, it is configured to send the instruction of reading firmware version information in it to described chip;
Receiver module, it is configured to receive described chip firmware version information;
Update module, its firmware version information being configured to receive according to described receiver module selects the firmware more new data sending this chip to described chip, to upgrade described firmware.
10. the system that upgrades of the firmware of chip according to claim 8, is characterized in that, described System control bus is to be connected with described processor and for the System control bus of reading system internal memory.
CN201510925601.8A 2015-12-09 2015-12-09 Chip firmware updating method and system Pending CN105549974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510925601.8A CN105549974A (en) 2015-12-09 2015-12-09 Chip firmware updating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510925601.8A CN105549974A (en) 2015-12-09 2015-12-09 Chip firmware updating method and system

Publications (1)

Publication Number Publication Date
CN105549974A true CN105549974A (en) 2016-05-04

Family

ID=55829172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510925601.8A Pending CN105549974A (en) 2015-12-09 2015-12-09 Chip firmware updating method and system

Country Status (1)

Country Link
CN (1) CN105549974A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678770A (en) * 2017-09-14 2018-02-09 硅谷数模半导体(北京)有限公司 Interface chip upgrade method, device, storage medium and processor
CN110187904A (en) * 2019-05-05 2019-08-30 浙江合众新能源汽车有限公司 A kind of device and method for vehicle control device firmware update
CN111104145A (en) * 2019-11-29 2020-05-05 浪潮电子信息产业股份有限公司 Out-of-band updating method and system for Expander
WO2020088516A1 (en) * 2018-10-30 2020-05-07 百富计算机技术(深圳)有限公司 Firmware security authentication method, device and payment terminal
CN111782531A (en) * 2020-07-02 2020-10-16 江西联智集成电路有限公司 Method and system for detecting firmware integrity of chip

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662699A (en) * 2012-03-27 2012-09-12 惠州Tcl移动通信有限公司 Method for updating NFC (Near Field Communication) firmware of mobile terminal and mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662699A (en) * 2012-03-27 2012-09-12 惠州Tcl移动通信有限公司 Method for updating NFC (Near Field Communication) firmware of mobile terminal and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678770A (en) * 2017-09-14 2018-02-09 硅谷数模半导体(北京)有限公司 Interface chip upgrade method, device, storage medium and processor
CN107678770B (en) * 2017-09-14 2021-03-09 硅谷数模半导体(北京)有限公司 Interface chip upgrading method and device, storage medium and processor
WO2020088516A1 (en) * 2018-10-30 2020-05-07 百富计算机技术(深圳)有限公司 Firmware security authentication method, device and payment terminal
CN110187904A (en) * 2019-05-05 2019-08-30 浙江合众新能源汽车有限公司 A kind of device and method for vehicle control device firmware update
CN111104145A (en) * 2019-11-29 2020-05-05 浪潮电子信息产业股份有限公司 Out-of-band updating method and system for Expander
CN111782531A (en) * 2020-07-02 2020-10-16 江西联智集成电路有限公司 Method and system for detecting firmware integrity of chip

Similar Documents

Publication Publication Date Title
CN105549974A (en) Chip firmware updating method and system
US9223559B2 (en) Information processing apparatus, electronic control unit, information processing method, and program
CN106557340B (en) Configuration method and device
CN105955781B (en) EMMC upgrading method, upgrading device and terminal
EP3699755A2 (en) Alignment a combination of software of ecus in an onboard system and ecu
CN105389177A (en) Software version confirmation method, device and system
CN111294413B (en) Method, device and readable medium for determining Internet Protocol (IP) address
CN105260202A (en) Client file updating method and system
CN103177043A (en) Method and electronic system used for transferring file across system platform
CN102103510A (en) Installation method of JAVA application program and terminal device
CN104978253A (en) Target file checking method and apparatus
CN109088914B (en) Block generation method, block chain ecosystem and computer readable storage medium
CN103176913B (en) Hard disk method for mapping dynamically and the server applying it
CN109451098A (en) FPGA accelerator card MAC Address configuration method, device and accelerator card
CN111684766A (en) Updating communication protocol version numbers in distributed systems
CN103618780A (en) Method and device for realizing multiple virtual machine mounted externally-arranged components
CN104133743B (en) A kind of by burning file to the method for EMMC chip and device
CN106020898A (en) Software upgrading method and system of multi-processor device
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN113542387A (en) System publishing method, device, electronic equipment and storage medium
CN112015458A (en) Device upgrading method, terminal device, electronic device and storage medium
CN112579141A (en) Firmware updating method, device, equipment and storage medium of embedded system
CN110134423B (en) Firmware updating method and device and computer readable storage medium
CN104717260A (en) Development resource updating and management method, device, system and related equipment
CN105491082A (en) Remote resource access method and switch equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504

RJ01 Rejection of invention patent application after publication