CN101727333A - Method for updating firmware in microprocessor and firmware updating system - Google Patents

Method for updating firmware in microprocessor and firmware updating system Download PDF

Info

Publication number
CN101727333A
CN101727333A CN200810172331A CN200810172331A CN101727333A CN 101727333 A CN101727333 A CN 101727333A CN 200810172331 A CN200810172331 A CN 200810172331A CN 200810172331 A CN200810172331 A CN 200810172331A CN 101727333 A CN101727333 A CN 101727333A
Authority
CN
China
Prior art keywords
firmware
microprocessor
update
memory block
bus
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
CN200810172331A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200810172331A priority Critical patent/CN101727333A/en
Publication of CN101727333A publication Critical patent/CN101727333A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for updating a firmware in a microprocessor, comprising the following steps of: allocating a flash memory of the microprocessor into a first memory block and a second memory block, wherein the first memory block is used for memorizing the firmware and the second memory block is used for memorizing an update program; when the microprocessor operates according to the first memory block, sensing whether the firmware is to be updated or not; when the firmware is to be updated, executing the update program in the second memory block, and receiving an update image file from a server through a bus; and updating the firmware in the first memory block by using the update image file according to the update program. The invention also discloses a firmware updating system.

Description

The method of firmware update and firmware update system in the microprocessor
Technical field
The invention relates to a kind of microprocessor of tool internal control program, and particularly load or the microprocessor of start-up routine relevant for a kind of tool.
Background technology
In system's (as: embedded system) of general low order, understand the simpler and lower-cost product of functions of use usually, and this series products does not generally need to have the function of online updating.For example, be used for controlling display lamp number in the system or represent the microprocessor of other state, because its function is simpler, so firmware wherein (firmware) all just determines and not have the function of online updating mostly when producing.
Yet,, thereby cause user's inconvenience and burden if when the generation of the firmware in microprocessor mistake maybe will be upgraded firmware, need to send microprocessor the burning again of back to former factory.
As from the foregoing, need the method and the application thereof of firmware update in a kind of microprocessor, the firmware of microprocessor is upgraded so as to utilizing original hardware structure.
Summary of the invention
Technical matters to be solved by this invention is to provide the method and the firmware update system of firmware update in a kind of microprocessor, be stored in the refresh routine of a memory block (memory block) of the flash memory of microprocessor in order to utilization, the firmware of another block of being stored in flash memory is done renewal.Wherein, to be used for upgrading the update image file of firmware be to obtain by existing bus to refresh routine.
According to one embodiment of the invention, the invention provides the method for firmware update in a kind of microprocessor, comprise following steps:
(1) flash memory with microprocessor is assigned as one first memory block and one second memory block, and wherein first memory block is in order to storing a firmware, and second memory block is in order to store a refresh routine.
(2) when microprocessor operates according to first memory block, detect whether desire is upgraded firmware.
(3) when upgrading firmware, carry out the refresh routine in second memory block, and receive a update image file (update image) from a server by a bus.
(4), upgrade firmware in first memory block with the update image file according to refresh routine.
According to another embodiment of the present invention, the present invention provides a kind of firmware update system in addition, comprises a bus unit and at least one microprocessor.Bus unit electrically connects a server.Microprocessor electrically connects bus unit.Microprocessor comprises a flash memory, a detecting module and a update module.Flash memory comprises an operating module and and starts module.Operating module is in order to store a firmware.Start module in order to store a refresh routine.Whether upgrade by desire in order to the detecting firmware for detecting module, and stop the execution action of firmware when the firmware desire is upgraded.Updating module carry out to start the refresh routine in the module, and receives a update image file by bus from server and be used for firmware is upgraded.
Can utilize original hardware structure that the firmware of microprocessor is upgraded by firmware update of the present invention and system, thereby make things convenient for the user.
Description of drawings
For above and other objects of the present invention, feature, advantage and embodiment can be become apparent, being described in detail as follows of appended accompanying drawing:
Fig. 1 is the process flow diagram according to firmware update in the microprocessor of one embodiment of the invention;
Fig. 2 is the functional block diagram according to the firmware update system of another embodiment of the present invention;
Fig. 3 is an embodiment of microprocessor 400 among Fig. 2.
[primary clustering symbol description]
100: firmware update 430: update module
102~114: step 432: receiver
300: bus unit 440: address pins
400: microprocessor 450: upgrade pin
410: flash memory 460: the write protection module
412: operating module 470: restart module
414: start module 500: server
420: detecting module
Embodiment
With reference to Fig. 1, it is the process flow diagram according to firmware update in the microprocessor of one embodiment of the invention.Two memory blocks of the flash memory that firmware update 100 is stored in microprocessor respectively with the firmware and the refresh routine of microprocessor, and when desire is upgraded firmware, the firmware that is stored in another block is done renewal with the refresh routine that is stored in one of them block.Firmware update 100 comprises following steps (should be appreciated that mentioned in the present embodiment step except that its order of special instruction, all can be adjusted its front and back order according to actual needs, even possibility while or part execution simultaneously):
(1) flash memory with microprocessor is assigned as one first memory block, one second memory block, and wherein first memory block is in order to storing a firmware, and second memory block is in order to store a refresh routine (step 102).
(2) when microprocessor operates according to first memory block, detect whether desire is upgraded firmware (step 104).Wherein, also can upgrade pin according to one of microprocessor and obtain a update signal, whether desire is upgraded firmware to detect.Furthermore, this upgrades pin can obtain update signal from server by above-mentioned bus, or can by whether design on short circuit or other circuit, detect whether desire is upgraded firmware thereby be used as its update signal.In practical operation, can be with the existing pin definitions of microprocessor for upgrading pin, to obtain update signal.
(3) when desire is upgraded firmware, carry out the refresh routine in second memory block, and receive a update image file (step 106) from a server by a bus.Yet when desire is not upgraded firmware, continue to carry out the firmware (step 107) of first memory block.
In step 106, the bus that receives update image file institute warp from server can be a built-in integrated circuit (Inter-Integrated Circuit, I2C) bus, an intelligent platform management bus (IntelligentPlatform Management Bus, IPMB) or other bus.In the practical operation, can utilize the existing pin connecting bus of microprocessor, receive a update image file from server to see through bus.The update image file that is received in step 106 can be stored in second memory block.Like this,, make when upgrading firmware, can not change the refresh routine and the update image file that are stored in another block because refresh routine and update image file and firmware are stored in the different blocks of flash memory.In addition, also need not change hardware structure, the pin of existing bus of promptly available server and microprocessor itself upgrades the firmware of microprocessor.
In addition, microprocessor also can see through bus according to address own and receive the update image file from server.Therefore, also can comprise in the step 106:, set an address of microprocessor according to an address pins of microprocessor; And, see through bus and receive the update image file from server according to the address of microprocessor.
In practical operation, can be address pins with the existing pin definitions of microprocessor.Like this, microprocessor can receive the update image file from server according to the address.In addition, when firmware update 100 is applied to a plurality of microprocessors are done when upgrading, server can be according to the address of each microprocessor, and refresh routine is sent to the microprocessor that will upgrade.
Then, in order further to avoid storing second memory block damage of refresh routine and update image file, before the firmware that upgrades first memory block, second memory block can be set at write protection (step 108).Like this, because before upgrading firmware, second memory block just is set to write protection, makes second memory block avoid in renewal process, and avoid refresh routine and the damage of update image file by access.
In addition, when upgrading firmware, will only read second memory block, and temporarily stop the firmware on access first memory block.Therefore, when desire is upgraded firmware, temporarily stop to carry out the firmware (step 110) of first memory block.Like this, when upgrading firmware,, can avoid the firmware damage with the firmware that can not carry out on first memory block.
(4) then, again according to refresh routine, upgrade firmware (step 112) in first memory block with the update image file.
Then, behind the firmware that upgrades first memory block, restart microprocessor (step 114), finish the action of renewal.Like this, microprocessor can be according to the running of the firmware after upgrading.
With reference to Fig. 2, it is the functional block diagram according to the firmware update system of another embodiment of the present invention.This firmware update system comprises a bus unit 300, a microprocessor 400 and a server 500.Bus unit 300 electrically connects server 500.Furthermore, bus unit 300 can the built-in integrated circuit bus, the form and the server 500 of intelligent platform management bus or other bus electrically connect.Microprocessor 400 electrically connects bus unit 300.Like this, microprocessor 400 can see through existing bus and server 500 bindings.
With reference to Fig. 3, it is an embodiment of microprocessor 400 among Fig. 2.Furthermore, microprocessor 400 comprises a flash memory 410, a detecting module 420 and a update module 430.Flash memory 410 comprises an operating module 412 and and starts module 414, and wherein operating module 412 starts module 414 then in order to store a refresh routine in order to store a firmware.Whether desire is upgraded firmware to detecting module 420 in order to detect, and when desire is upgraded firmware, stops the execution action of firmware.Update module 430 is in order to carry out starting the refresh routine in the module 414, and receives a update image file so that firmware is upgraded by bus from server 500.That is to say, the performed refresh routine of update module 430 according to the update image file to firmware update.Like this, promptly need not change the hardware configuration of microprocessor 400, just can utilize the existing bus of server to upgrade the firmware of microprocessor 400.
In the practical operation, microprocessor 400 can receive the update image file according to its address.Therefore, update module 430 can comprise a receiver 432.Receiver 432 receives update image file by bus from server 500 in order to the address according to microprocessor 400.Wherein, this receiver 432 can electrically connect by a pin and the bus of microprocessor 400.
In addition, microprocessor 400 can be set its address in advance.Therefore, microprocessor 400 can comprise an address pins 440.Wherein, the 400 existing pin practical operations of address pins 440 available microprocessors, and the address of expression microprocessor 400.In the practical operation, the address that can set microprocessor 400 to the different digital signal of address pins 440 input or different voltage.Like this, when a plurality of microprocessors were connected on the server, server can upgrade according to the microprocessor that the address of each microprocessor is upgraded institute's desire.
In the practical operation, microprocessor 400 can detect whether desire is upgraded firmware according to a update signal.Therefore, microprocessor 400 can comprise one and upgrade pin 450, and obtains a update signal according to upgrading pin 450, and whether desire is upgraded firmware to detect, and wherein upgrades pin 450 and can utilize real work of microprocessor 400 existing pins, and represent whether desire is upgraded firmware.Furthermore, upgrade pin 450 and can obtain update signal from server 500 by above-mentioned bus, or can according to whether design on short circuit or other circuit, detect whether desire is upgraded firmware thereby be used as its update signal.
In addition, microprocessor 400 also can comprise a write protection module 460, is used for before to the firmware update on the operating module 412, will start module 414 and be set at write protection.Like this, can avoid starting module 414 and in renewal process, be written into, thereby avoid refresh routine or the damage of update image file.
Microprocessor 400 also can comprise and restarts module 470, is used for restarting microprocessor 400 after the firmware update of operating module 412.Like this, the firmware running after microprocessor 400 just can upgrade.
Though the present invention discloses as above with a preferred embodiment; right its is not in order to limit the present invention; any person skilled in the art; without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when looking the scope that the accompanying Claim book defined.

Claims (10)

1. the method for firmware update in the microprocessor is characterized in that, comprises:
One flash memory of this microprocessor is assigned as one first memory block and one second memory block, and wherein this first memory block is in order to storing a firmware, and this second memory block is in order to store a refresh routine;
When this microprocessor operates according to this first memory block, detect whether desire is upgraded this firmware;
When desire is upgraded this firmware, carry out the refresh routine in this second memory block, and receive a update image file from a server by a bus; And
According to this refresh routine, upgrade this firmware in this first memory block with this update image file.
2. firmware update in the microprocessor according to claim 1 is characterized in that, also comprises:
According to an address pins of this microprocessor, set an address of this microprocessor; And
According to the address of this microprocessor, receive this update image file from this server by this bus.
3. firmware update in the microprocessor according to claim 1 is characterized in that, this bus is a built-in integrated circuit bus.
4. firmware update in the microprocessor according to claim 1 is characterized in that, this bus is an intelligent platform management bus.
5. firmware update in the microprocessor according to claim 1 is characterized in that, detects desire whether and upgrades the step of this firmware and comprise:
Upgrade pin according to one of this microprocessor and obtain a update signal, whether will upgrade this firmware with detecting.
6. firmware update in the microprocessor according to claim 1 is characterized in that, also comprises:
Before this firmware that upgrades this first memory block, this second memory block is set at write protection.
7. firmware update in the microprocessor according to claim 1 is characterized in that, also comprises:
In the time will upgrading this firmware, temporarily stop to carry out this firmware of this first memory block.
8. firmware update in the microprocessor according to claim 1 is characterized in that, also comprises:
Behind this firmware that upgrades this first memory block, restart this microprocessor.
9. a firmware update system is characterized in that, comprises:
One bus unit electrically connects a server; And
At least one microprocessor electrically connects this bus unit, comprises:
One flash memory comprises:
One operating module is in order to store a firmware; And
One starts module, in order to store a refresh routine;
One detecting module, whether desire is upgraded this firmware in order to detect, and when desire is upgraded this firmware, stops the execution action of this firmware; And
One update module when upgrading this firmware in desire, is carried out this refresh routine in this startup module, and is received a update image file so that this firmware is upgraded by this bus from this server.
10. firmware update system according to claim 9 is characterized in that, this update module comprises:
One receiver in order to the address according to this microprocessor, sees through this bus and receives this update image file from this server.
CN200810172331A 2008-10-31 2008-10-31 Method for updating firmware in microprocessor and firmware updating system Pending CN101727333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810172331A CN101727333A (en) 2008-10-31 2008-10-31 Method for updating firmware in microprocessor and firmware updating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810172331A CN101727333A (en) 2008-10-31 2008-10-31 Method for updating firmware in microprocessor and firmware updating system

Publications (1)

Publication Number Publication Date
CN101727333A true CN101727333A (en) 2010-06-09

Family

ID=42448267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810172331A Pending CN101727333A (en) 2008-10-31 2008-10-31 Method for updating firmware in microprocessor and firmware updating system

Country Status (1)

Country Link
CN (1) CN101727333A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103380415A (en) * 2011-12-23 2013-10-30 Lg电子株式会社 Method and device for updating firmware based on device management command
CN104317692A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for automatically testing ME (management engine) FW (firmware) online updating stability
CN107193581A (en) * 2017-04-01 2017-09-22 深圳市广和通无线通信软件有限公司 firmware upgrade method, device, storage medium and computer equipment
CN108021386A (en) * 2017-11-30 2018-05-11 英业达科技有限公司 Server and its node latch method with node latch function

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034360A (en) * 2006-03-06 2007-09-12 联发科技股份有限公司 Method and apparatus for updating firmware

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034360A (en) * 2006-03-06 2007-09-12 联发科技股份有限公司 Method and apparatus for updating firmware

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103380415A (en) * 2011-12-23 2013-10-30 Lg电子株式会社 Method and device for updating firmware based on device management command
CN103380415B (en) * 2011-12-23 2017-10-31 Lg电子株式会社 The method and apparatus of firmware are updated based on device management command
CN104317692A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for automatically testing ME (management engine) FW (firmware) online updating stability
CN107193581A (en) * 2017-04-01 2017-09-22 深圳市广和通无线通信软件有限公司 firmware upgrade method, device, storage medium and computer equipment
CN107193581B (en) * 2017-04-01 2020-09-04 深圳市广和通无线通信软件有限公司 Firmware upgrading method and device, storage medium and computer equipment
CN108021386A (en) * 2017-11-30 2018-05-11 英业达科技有限公司 Server and its node latch method with node latch function
CN108021386B (en) * 2017-11-30 2021-01-26 英业达科技有限公司 Server with node latching function and node latching method thereof

Similar Documents

Publication Publication Date Title
US8001368B2 (en) Hot-pluggable information processing device and setting method
US9298470B2 (en) Method and apparatus for selecting bios program for a processor
CN101770384A (en) Car audio system and software upgrading method thereof
CN102855146A (en) Firmware updating system and method
CN103823769A (en) Computer system and data recovery method
US20210294593A1 (en) Method, apparatus, device, and storage medium for upgrading vehicle-mounted tbox
CN104657161A (en) Method and device for updating firmware of mobile terminal
CN103514065A (en) Electronic device with automatic detection and recovery function and method
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
CN103902329A (en) Electronic device capable of updating basic input and output system and updating method thereof
CN112269584A (en) PCIe Switch firmware updating method, device, electronic equipment and medium
CN102075710B (en) Starting operation method for television and television
CN107315607B (en) Drive self-adaptation loading system
CN101727333A (en) Method for updating firmware in microprocessor and firmware updating system
CN101515236B (en) Restoring method and update module for basic input/output system and computer system
CN112084064B (en) Master-slave BIOS switching method, board card and equipment
CN102508676A (en) Startup method and device of embedded system
CN101667133A (en) Method for updating firmware and chip updating firmware by using same
CN113312071A (en) SSD device firmware upgrading method and related device
CN106484442B (en) Server system and method for updating startup mapping file
KR20150072963A (en) Multisystem, and method of booting the same
JP4190789B2 (en) Method and system for automatically concealing PCI expansion card in computer system
CN103106161A (en) Display card basic input output system (BIOS) updating method based on input/output (IO) access mode
CN115658157A (en) Firmware program starting method, system, storage medium and 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100609