CN100347690C - Method and device for updating firm ware - Google Patents

Method and device for updating firm ware Download PDF

Info

Publication number
CN100347690C
CN100347690C CNB2003101225875A CN200310122587A CN100347690C CN 100347690 C CN100347690 C CN 100347690C CN B2003101225875 A CNB2003101225875 A CN B2003101225875A CN 200310122587 A CN200310122587 A CN 200310122587A CN 100347690 C CN100347690 C CN 100347690C
Authority
CN
China
Prior art keywords
firmware
mentioned
control wafer
keyboard
renewal
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.)
Expired - Fee Related
Application number
CNB2003101225875A
Other languages
Chinese (zh)
Other versions
CN1627278A (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.)
Wistron Corp
Original Assignee
Wistron 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 Wistron Corp filed Critical Wistron Corp
Priority to CNB2003101225875A priority Critical patent/CN100347690C/en
Publication of CN1627278A publication Critical patent/CN1627278A/en
Application granted granted Critical
Publication of CN100347690C publication Critical patent/CN100347690C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a method and a device for updating firm wares. The relative connection between the wafer firm ware controlled by a keyboard and an operation system is interrupted; a basic input-output system (BIOS) sends out system calling to inform the wafer firm ware controlled by a keyboard to open a routine program for updating the firm ware; then, the basic input-output system sends out a control order to release the anti-writing of the wafer firm ware controlled by a keyboard; then, two specific pins of a wafer controlled by a peripheral device are set into high potential sides to release the anti-writing of the basic input-output system; successively, the wafer firm ware controlled by a keyboard is updated. After the firm ware is updated, the an-writing of the wafer firm ware controlled by a keyboard and the basic input-output system is re-started and an operation system is re-started.

Description

Upgrade the method and the device of firmware
Technical field
The present invention is relevant for a kind of method of upgrading firmware, and is particularly to a kind of method of renewal firmware of the Keyboard Control wafer (KBC, Keyboard Controller) that is used in a computer apparatus
Background technology
The Keyboard Control wafer mostly is designed to a multi-functional control wafer at present, except original keyboard control function, also integrates for example functions such as monitoring temperature, fan running situation, screen intensity in addition.With regard to desktop computer, the firmware system of Keyboard Control wafer separates burning with ROM-BIOS, its difference burning is in different Storage Medias, and with regard to notebook computer, as the desktop computer practice, the firmware and the ROM-BIOS of Keyboard Control wafer are separated burning, and consider in order to save cost recently in early days, this two firmware be burning at same Storage Media, that is the firmware of Keyboard Control wafer system is embedded in the ROM-BIOS.
In traditional magnetic disc operating system, it is single worker's a environment, does not have problem so desire to upgrade the firmware of keyboard control wafer.In existing form (Windows) operating system, it is multiplex's a environment, can carry out a plurality of programs (process) simultaneously.Yet, if the neither one good mechanism when upgrading the firmware of keyboard control wafer, may produce the situation that operating system pawns or ROM-BIOS is damaged, so that can't the restart operation system.Therefore, need a good method to improve above-mentioned shortcoming.
Summary of the invention
In view of this, purpose of the present invention is providing a kind of method of upgrading firmware, and solution in the operating system of multiplex's environment the situation of operating system when machine or ROM-BIOS damage takes place easily when upgrading firmware.
Based on above-mentioned purpose, the invention provides a kind of method of upgrading firmware.At first, the firmware of Keyboard Control wafer is interrupted with the relevant binding between operating system, this binding comprises the read-write that the output of Keyboard Control wafer keyboard and mouse goes into to hold (IO port), and the interrupt routine of partly relevant ROM-BIOS class (BIOS-level) and operating system class (OS-level), comprise embedded controller system management interrupt (ECSMI:Embedded Controller System Management Interrupt) and embedded controller system control interruption (ECSCI:Embedded Controller System Control Interrupt).Then, send a system calling, upgrade the routine (update routine) of firmware, send a control command then, remove the anti-of firmware of Keyboard Control wafer and write with open its of the firmware of notify keyboard control wafer by ROM-BIOS.
Next, two specific pin position settings of a peripheral device control wafer are become noble potential (high), ROM-BIOS is anti-to be write to remove, and carries out the renewal of the firmware of Keyboard Control wafer then.After finishing firmware update, the firmware of Keyboard Control wafer and anti-the writing of ROM-BIOS are restarted restarting operating systems.
For further specifying above-mentioned purpose of the present invention, design feature and effect, the present invention is described in detail below with reference to accompanying drawing.
Description of drawings
Fig. 1 has shown the pin position synoptic diagram of peripheral control wafer of the present invention and Storage Media.
Fig. 2 has shown the Organization Chart of apparatus of the present invention.
Fig. 3 has shown the flow chart of steps of the method for renewal firmware of the present invention.
Embodiment
For above-mentioned and other purposes, feature and advantage of the present invention can be become apparent, cited below particularlyly go out preferred embodiment, and conjunction with figs., be described in detail below.
The invention provides a kind of method and device that upgrades firmware.
The method of renewal firmware of the present invention can be in the operating system of multiplex's environment, the firmware of Keyboard Control wafer is upgraded, and can not produce the situation that operating system is damaged when machine or ROM-BIOS.
Fig. 1 has shown the pin position synoptic diagram of peripheral control wafer of the present invention and Storage Media.
The periphery control wafer refers to south bridge (South Bridge) control wafer 101 in the present invention, and it has pin positions such as EGPIO8, EGPIO9, ECSMI# and ECSCI#, and # represents that this pin position is as starting (active) with electronegative potential (low).Storage Media 102 is commonly referred to as the erasable programmable read only memory of electronics (EEPROM), and it has pin positions such as FLASH_GPIO1, FLASH_GPIO2, ECSMI# and ECSCI#.With the EGPIO8 of south bridge control wafer 101 and EGPIO9 pin position and ECSMI# and ECSCI# pin position respectively with Storage Media 102 in FLASH_GPIO1 and the FLASH_GPIO2 pin position of ROM-BIOS and the ECSMI# that is contained in Keyboard Control wafer 103 wherein be connected with ECSCI# pin position.
Before upgrading firmware, can see through the ECSMI# and the partly routine of ROM-BIOS class and the operating system class interruption respectively of ECSCI# pin position of Storage Media 102, then the EGPIO8 with south bridge control wafer 101 becomes noble potential with the FLASH_GPIO1 of EGPIO9 pin position and Storage Media 102 with the FLASH_GPIO2 pin position setting, writes to remove the anti-of ROM-BIOS.
Fig. 2 has shown the Organization Chart of apparatus of the present invention.
Framework of the present invention comprises a south bridge control wafer 101, a Storage Media 102 and a Keyboard Control wafer 103 at least.The peripheral device of south bridge control wafer 101 and Keyboard Control wafer 103 management one computer apparatus, south bridge control wafer 101 is in charge of high-speed serial bus (IEEE1394) 108 and Local Area Network 109, and 103 of Keyboard Control wafers are in charge of Trackpad (Touch Pad) 106 and keyboard 107.
When carrying out the firmware update formula, 104 pairs of north bridges of central processing unit (North Bridge) control wafer 105 is sent a control command, notifies its desire to carry out the firmware update action.Then north bridge control wafer 105 is told south bridge control wafer 101 with this order, interrupts with the relevant binding between operating system through the firmware of the ROM-BIOS in the Storage Media 102 with Keyboard Control wafer 103 then.In addition, also need interrupt the routine of partly relevant ROM-BIOS class and operating system class.Then, ROM-BIOS is sent a control command, removes the anti-of firmware of Keyboard Control wafer 103 and writes.EGPIO8 with south bridge control wafer 101 becomes noble potential with the FLASH_GPIO1 of EGPIO9 pin position and Storage Media 102 with the FLASH_GPIO2 pin position setting then, removes the anti-of ROM-BIOS and writes.
Next, carry out the renewal of the firmware of Keyboard Control wafer 103, that is the Storage Media 102 that stores firmware is carried out write activity.After finishing firmware update, send a control command by ROM-BIOS equally anti-the writing of the firmware of Keyboard Control wafer 103 restarted.In addition, the EGPIO8 of south bridge control wafer 101 is become electronegative potential with the FLASH_GPIO1 of EGPIO9 pin position and Storage Media 102 with the FLASH_GPIO2 pin position setting, so that anti-the writing of ROM-BIOS restarted.At last, restarting operating systems.
Fig. 3 has shown the flow chart of steps of the method for renewal firmware of the present invention, and it carries out a refresh routine, and the hardware address that utilizes firmware to define voluntarily sends control command to carry out the management of related system resource.
In step S1, the firmware of Keyboard Control wafer is interrupted with the relevant binding between operating system, go into the read-write of end comprising the output of Keyboard Control wafer keyboard and mouse, in addition, the routine of partly relevant ROM-BIOS class and operating system class also needs to be interrupted, and remaining is with upgrading the irrelevant routine of firmware.
In step S2, send a system calling by ROM-BIOS, upgrade the routine of firmware with open its of the firmware of notify keyboard control wafer.
In step S3, send a control command, remove the anti-of firmware of Keyboard Control wafer and write, so that upgrade formula firmware is override.
In step S4, remove ROM-BIOS and prevent writing.As indicated above, two specific pin position settings of a peripheral device control wafer are become noble potential (high).This peripheral device control wafer is the south bridge wafer, it comprises two pin position EGPIO8 and EGPIO9, this two pin position is connected to the specific pin position FLASH_GPIO1 and the FLASH_GPIO2 of the Storage Media that stores ROM-BIOS firmware (BIOS firmware), and ROM-BIOS is anti-to be write to remove to be set at noble potential.
In step S5, upgrade the firmware of keyboard control wafer, that is the Storage Media that stores firmware is carried out write activity.
In step S6, after finishing firmware update, by a control command anti-the writing of the firmware of Keyboard Control wafer restarted equally.In addition, the EGPIO8 of south bridge control wafer 101 is become electronegative potential with the FLASH_GPIO1 of EGPIO9 pin position and Storage Media 102 with the FLASH_GPIO2 pin position setting, so that anti-the writing of ROM-BIOS restarted.
In step S7, restarting operating systems.In the methods of the invention, do not need restarting operating systems, yet consider, had better restart, can decide in its sole discretion by the user for security of system.
The method of renewal firmware of the present invention can be in the operating system of multiplex's environment, the firmware of Keyboard Control wafer is upgraded, and can not produce the situation that operating system is damaged when machine or ROM-BIOS.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; anyly be familiar with present technique field person; 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 accompanying the claim person of defining.

Claims (19)

1. method of upgrading firmware, it works as machine in order to an operating system of preventing a computer apparatus in the process of upgrading a firmware, comprise the following steps:
Step 1 provides second firmware of a control wafer, first firmware and above-mentioned control wafer all to be stored in the Storage Media;
Step 2 is interrupted the binding between above-mentioned control wafer and aforesaid operations system, and the binding between above-mentioned control wafer and aforesaid operations system comprises the read-write that the output of an above-mentioned control wafer and a keyboard goes into to hold and the output of a mouse goes into to hold;
Step 3 is removed the anti-of above-mentioned first and second firmware and is write;
Step 4 is upgraded above-mentioned second firmware; And
Step 5 restarts the anti-of above-mentioned first and second firmware and writes.
2. the method for renewal firmware as claimed in claim 1, it is characterized in that, before removing the anti-step of writing of above-mentioned first and second firmware, it comprises that also utilizing above-mentioned first firmware to send one calls out to notify the above-mentioned second firmware desire to carry out the second firmware update routine.
3. the method for renewal firmware as claimed in claim 1 is characterized in that, in above-mentioned interrupt step, goes into the hardware address of end, keyboard and mouse via above-mentioned output and controls the connecting state of exporting between end, keyboard and mouse and aforesaid operations system.
4. the method for renewal firmware as claimed in claim 1 is characterized in that, in above-mentioned interrupt step, utilizes a control command interrupt unit ROM-BIOS class, and the routine of operating system class.
5. the method for renewal firmware as claimed in claim 1 is characterized in that, also is included in after the step 5 of finishing firmware update, restarts the aforesaid operations system.
6. the method for renewal firmware as claimed in claim 1 is characterized in that, above-mentioned first firmware is a ROM-BIOS firmware.
7. the method for renewal firmware as claimed in claim 1 is characterized in that, above-mentioned control wafer is a Keyboard Control wafer.
8. the method for renewal firmware as claimed in claim 7 is characterized in that, above-mentioned second firmware is one to be applicable to the firmware of above-mentioned Keyboard Control wafer.
9. device that upgrades firmware comprises:
First control wafer, it is in order to manage the peripheral device of a computer apparatus;
Second control wafer is coupled to above-mentioned first control wafer, and it is in order to manage the part peripheral device of above-mentioned computer apparatus; And
One Storage Media is coupled to above-mentioned second control wafer, and it stores second firmware of first firmware and above-mentioned second control wafer;
Wherein, utilize above-mentioned first firmware to interrupt binding between above-mentioned second control wafer and an operating system, remove the anti-of above-mentioned first and second firmware and write, upgrade above-mentioned second firmware, and restart the anti-of above-mentioned first and second firmware and write.
10. the device of renewal firmware as claimed in claim 9, it is characterized in that, above-mentioned first control wafer also comprises the first pin position and crus secunda position, above-mentioned second control wafer also comprises tripod position and the 4th pin position, the above-mentioned first pin position is connected with above-mentioned tripod position, above-mentioned crus secunda position is connected with above-mentioned the 4th pin position
11. the device of renewal firmware as claimed in claim 9 is characterized in that, before the anti-step of writing of above-mentioned first and second firmware of releasing, utilizes above-mentioned first firmware to send one and calls out to notify the above-mentioned second firmware desire to carry out the second firmware update routine.
12. the device of renewal firmware as claimed in claim 9 is characterized in that, the binding between above-mentioned second control wafer and aforesaid operations system comprises the read-write that the output of above-mentioned second control wafer and a keyboard goes into to hold and the output of a mouse goes into to hold.
13. the device of renewal firmware as claimed in claim 12 is characterized in that, goes into the hardware address of end, keyboard and mouse via above-mentioned output and controls the connecting state of exporting between end, keyboard and mouse and aforesaid operations system.
14. the device of renewal firmware as claimed in claim 9 is characterized in that, utilizes a control command interrupt unit ROM-BIOS class, and the routine of operating system class.
15. the device of renewal firmware as claimed in claim 9 is characterized in that, also is included in after the step 5 of finishing firmware update, restarts the aforesaid operations system.
16. the device of renewal firmware as claimed in claim 9 is characterized in that, above-mentioned first control wafer is a south bridge control wafer.
17. the device of renewal firmware as claimed in claim 9 is characterized in that, above-mentioned first firmware is a ROM-BIOS firmware.
18. the device of renewal firmware as claimed in claim 9 is characterized in that, above-mentioned second control wafer is a Keyboard Control wafer.
19. the device of renewal firmware as claimed in claim 18 is characterized in that, above-mentioned second firmware is one to be applicable to the firmware of above-mentioned Keyboard Control wafer.
CNB2003101225875A 2003-12-12 2003-12-12 Method and device for updating firm ware Expired - Fee Related CN100347690C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101225875A CN100347690C (en) 2003-12-12 2003-12-12 Method and device for updating firm ware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101225875A CN100347690C (en) 2003-12-12 2003-12-12 Method and device for updating firm ware

Publications (2)

Publication Number Publication Date
CN1627278A CN1627278A (en) 2005-06-15
CN100347690C true CN100347690C (en) 2007-11-07

Family

ID=34761658

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101225875A Expired - Fee Related CN100347690C (en) 2003-12-12 2003-12-12 Method and device for updating firm ware

Country Status (1)

Country Link
CN (1) CN100347690C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607380B (en) * 2015-05-19 2017-12-01 Elan Microelectronics Corp Computer device with touch chip and method for updating the touch chip

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455924A (en) * 2010-10-21 2012-05-16 英业达股份有限公司 Method for updating firmware
CN103902298B (en) * 2012-12-24 2017-03-01 联想(北京)有限公司 Method to set up and the device of status information write with a brush dipped in Chinese ink by a kind of instruction set firmware
CN106168863A (en) * 2015-05-19 2016-11-30 义隆电子股份有限公司 Computer device with touch control chip and updating method of touch control chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020073304A1 (en) * 2000-12-07 2002-06-13 Marsh James L. System and method for updating firmware
JP2002244874A (en) * 2001-02-15 2002-08-30 Toshiba Corp Information processor and firmware updating method
TW522587B (en) * 2001-10-19 2003-03-01 First Int Computer Inc Refreshing method for optimal parameters of battery
CN1410868A (en) * 2001-09-27 2003-04-16 英业达股份有限公司 Automatic renew method of keyboard basic input output system
US6629192B1 (en) * 1999-12-30 2003-09-30 Intel Corporation Method and apparatus for use of a non-volatile storage management system for PC/AT compatible system firmware

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6629192B1 (en) * 1999-12-30 2003-09-30 Intel Corporation Method and apparatus for use of a non-volatile storage management system for PC/AT compatible system firmware
US20020073304A1 (en) * 2000-12-07 2002-06-13 Marsh James L. System and method for updating firmware
JP2002244874A (en) * 2001-02-15 2002-08-30 Toshiba Corp Information processor and firmware updating method
CN1410868A (en) * 2001-09-27 2003-04-16 英业达股份有限公司 Automatic renew method of keyboard basic input output system
TW522587B (en) * 2001-10-19 2003-03-01 First Int Computer Inc Refreshing method for optimal parameters of battery

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607380B (en) * 2015-05-19 2017-12-01 Elan Microelectronics Corp Computer device with touch chip and method for updating the touch chip

Also Published As

Publication number Publication date
CN1627278A (en) 2005-06-15

Similar Documents

Publication Publication Date Title
CN100474247C (en) Method for updating firmware in computer server systems
US8286154B2 (en) Apparatus and method for live loading of version upgrades in a process control environment
US7519806B2 (en) Virtual partition for recording and restoring computer data files
TWI225215B (en) Method and system for maintaining firmware versions in a data processing system
US20080270699A1 (en) System for controlling spinning of disk
KR102226558B1 (en) Computer-readable recording having medium customized unified extensible firmware interface driver
CN100347690C (en) Method and device for updating firm ware
CN113641378A (en) Optical module program upgrading method, device, equipment and readable storage medium
US20050223209A1 (en) Apparatus for fast booting computer and method for the same
CN1455336A (en) Method of automatic updating embedded device operating system using CF card
CN105511904B (en) A kind of method and device automatically updating quick window
JP4190789B2 (en) Method and system for automatically concealing PCI expansion card in computer system
US5964874A (en) Swap size decrease on a UNIX based computer system
WO2023123896A1 (en) Disc loading control method, apparatus, and device, and readable storage medium
CN114416148A (en) Hot upgrading method, device and storage medium for virtual machine management program
CN101739262A (en) Firmware updating method and electronic device using same
CN1294481C (en) Method for updating and recovering system by bootstrap program
JP3287295B2 (en) operating system
CN1247346A (en) Set-up method for installing plug-and-play devices
CN1797339A (en) Method of updating system for managing data of input / output system
KR100947136B1 (en) Incremental provisioning of software
JP2010079837A (en) Program update method and program update device
CN1145102C (en) Active partitioned switching method of hard disk
CN1265491A (en) BIOS priority controlling and substituting and BIOS abnormality treating method `
TWI237791B (en) Control method for automatically installing operating system and automatically restoring system file

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071107

Termination date: 20201212

CF01 Termination of patent right due to non-payment of annual fee