Abstract:
A method of updating firmware in a computer server system is disclosed which method includes disconnecting access from a south bridge to a flash memory when the system is in an operating state; writing an updating firmware from a terminal to the flash memory via a base-board management controller; and thereafter, rebooting.

Description:
BACKGROUND OF THE INVENTION  
       [0001]     1. Field of the Invention  
         [0002]     The present invention relates to a method of updating firmware in computer server systems.  
         [0003]     2. Description of the Related Art  
         [0004]     A computer server system has BIOS (Basic Input Output System), which is a program group for controlling connected devices such as disks, keyboards and graphic devices, and a flash memory for storing firmware retaining configuration information of the system. When changing capability of the computer server system (hereinafter, referred to simply as server system), the firmware must be updated.  
         [0005]      FIGS. 1 and 2  are diagrams showing a conventional server system configuration and a processing flow at the time of the firmware update, respectively.  
         [0006]     A CPU  1  is connected to a PCI bus  3  through a north bridge  2  which is one unit constituting a chip set. Also, through a south bridge  4  which is the other unit constituting the chip set, the CPU  1  is connected to a flash memory  5 . Further, a legacy I/O interface  6  is connected to the PCI bus  3 .  
         [0007]     The south bridge  4  is connected with a base-board management controller (BMC)  7 . The base-board management controller (BMC)  7  is a server controlling chip which acts as a central function for managing the server system as a single unit and has a failure communication function and others in case OS (operating system) goes down due to a hardware failure or the like.  
         [0008]     If the server system is partitioned to have a plurality of systems, a plurality of base-board management controllers (BMC)  7  are correspondingly provided.  
         [0009]     Further, the system has an interface function for a terminal  9 , such as 1***Base-T or RS232C, and has a management board (MMB)  8  which manages a plurality of base-board management controllers (BMC)  7 .  
         [0010]     In the server system with such a configuration, if the firmware stored in the flash memory  5  is updated, following processing is performed in accordance with the processing flow of  FIG. 2 .  
         [0011]     In a conventional method, the server system is stopped (shut down) once (step S 1 ). Although the south bridge  4  normally read the firmware in the flash memory  5  when the system is in an operating state, if updating firmware data are stored in a storage medium  10  such as a flexible disk, the system is booted by reading the updating firmware data from the terminal  9  such as a corresponding flexible disk drive (step S 2 ).  
         [0012]     The read updating firmware is written into the flash memory  5  via the CPU  1  and via the south bridge  4  (as indicated by a dashed arrow of  FIG. 1 ) (step S 3 ). Then, the system is rebooted (step S 4 ) to be in normal operating state. Therefore, in the conventional method, the server system is continuously in a stopped state until rebooted.  
         [0013]     In this way, when the firmware data is updated, the server system must be put in the stopped state once. Therefore, the larger the system scale becomes, the greater the influence is.  
         [0014]     Technologies relating to such an update of the firmware data or control program include, for example, an invention described in Japanese Patent Application Laid-Open Publication No. 2003-330655. In this invention, during execution of a control program stored in a flash ROM, a control program to be updated is saved and stored in RAM separately prepared, and when rebooted, the updated control program is enabled.  
         [0015]     Also, an invention described in Japanese Patent Application Laid-Open Publication No. 2001-27954 is an invention relating to writing a program downloaded from a host computer. When the download is suspended, a communication coprocessor forcibly resets a main processor, and the download to a flash memory is executed by the communication coprocessor without passing through the main processor.  
         [0016]     In an update of firmware data in the server system described with reference to  FIGS. 1 and 2  above, a system must be stopped once. Also, in the invention described in Japanese Patent Application Laid-Open Publication No. 2003-330655, although a control program in execution is continuously executed, a memory must be prepared for saving. Further, in the invention described in Japanese Patent Application Laid-Open Publication No. 2001-27954, a program update is performed by forcibly resetting a main processor, and as a result, a system must be suspended.  
         [0017]     Further, neither of the inventions described in Japanese Patent Application Laid-Open Publication Nos. 2003-330655 and 2001-27954 relates to a server system, and neither of the patent documents suggests that the update of the firmware data is enabled in the server system over a short amount of time.  
       SUMMARY OF THE INVENTION  
       [0018]     It is therefore an object of the invention of this application to provide a firmware update method for enabling the firmware to be written when a server system is operating and for minimizing system down time when the firmware is updated, and to provide a server system to which the method is applied.  
         [0019]     In order to achieve the above object, according to a first aspect of the present invention there is provided a method of updating firmware in a computer server system, the method comprising disconnecting access from a south bridge to a flash memory when the system is in an operating state; writing an updating firmware from a terminal to the flash memory via a base-board management controller; and thereafter, rebooting. The method of updating firmware of the present invention may further comprise, when the access from a south bridge to a flash memory is disconnected, interrupting a CPU from the base-board management controller via the south bridge, and banning the access to the flash memory.  
         [0020]     To achieve the above object, according to a second aspect of the present invention there is provided a method of updating firmware, the method comprising writing updating firmware data from a terminal, via a backup-side base-board management controller, to a corresponding backup-side flash memory; and when rebooting, switching the backup-side base-board management controller and the corresponding backup-side flash memory to an active side to reboot.  
         [0021]     To achieve the above object, according to a third aspect of the present invention there is provided a server system booted by firmware stored in a flash memory, the server system comprising a CPU; a south bridge; a flash memory; a switch operable to open and close a connection between the south bridge and the flash memory; and a base-board management controller connected to the south bridge and the flash memory, wherein when firmware of the flash memory is updated, access to the flash memory is banned by interrupting the CPU from the base-board management controller via the south bridge, and wherein updating firmware from a terminal is written to the flash memory via the base-board management controller to subsequently execute reboot. The server system of the present invention may further comprise a management board configured to control the base-board management controller, wherein when firmware of the flash memory is updated, the management board controls the switch to make the connection between the south bridge and the flash memory disconnected. In the server system of the present invention, the flash memory and the base-board management controller connected to the flash memory may correspond to one (1) system of a plurality of systems split into partitions.  
         [0022]     In order to attain the above object, according to a fourth aspect of the present invention there is provided a server system booted by firmware stored in a flash memory, the server system comprising a CPU; a south bridge; active and backup flash memories; a switch operable to open and close a connection between the south bridge and the active and backup flash memories; and active and backup base-board management controllers connected respectively to the active and backup flash memories, wherein when firmware of the flash memories is updated, updating firmware from a terminal is written to the backup flash memory via the backup base-board management controller, and wherein at the time of reboot, the connection to the south bridge is switched from the active flash memory to the backup flash memory by the switch to reboot the system with the updated firmware. In the server system of the present invention, the active and backup flash memories and the active and backup base-board management controllers connected to the flash memories may correspond to one (1) system of a plurality of systems split into partitions.  
         [0023]     By writing firmware when a system is operating according to the present invention, system down time can be minimized when the firmware is updated. Further, by not going through a CPU, a flash memory can be rewritten when a failure occurs at the CPU or a north bridge.  
         [0024]     Also, in a system provided with a backup base-board management controller and flash memory, the update is performed using the backup base-board management controller and flash memory, and subsequently, by rebooting after a bus switch is switched, the similar update can be performed without banning access from a south bridge to the firmware. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0025]     The above and other objects, aspects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings, in which:  
         [0026]      FIG. 1  is a diagram showing a conventional server system configuration;  
         [0027]      FIG. 2  is a diagram showing a processing flow at the time of the firmware update;  
         [0028]      FIG. 3  is a block diagram of a first embodiment of a server system to which the present invention is applied;  
         [0029]      FIG. 4  shows an exemplary operation flow of a method of the present invention, corresponding to the embodiment of  FIG. 3 ;  
         [0030]      FIG. 5  is a block diagram of a second embodiment of a server system to which the present invention is applied; and  
         [0031]      FIG. 6  shows an exemplary operation flow of a method of the present invention, corresponding to the embodiment of  FIG. 5 . 
     
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS  
       [0032]     Embodiments of the present invention will now be described with reference to the accompanying drawings. The embodiments are for the purpose of understanding the present invention, and the technical scope of the present invention is not limited to these embodiments.  
         [0033]      FIG. 3  is a block diagram of a first embodiment of a server system to which the present invention is applied.  FIG. 4  is a corresponding exemplary operation flow of a method of the present invention.  
         [0034]     In  FIG. 3 , only one system is illustrated, although a plurality of systems can be configured by sectionalizing with a plurality of partitions.  
         [0035]     As a characteristic of the present invention, a bus switch  14  is included in the configuration of  FIG. 1 , which is controlled by a management board (MMB)  8 .  
         [0036]     A bus conversion circuit  13  shown in  FIG. 3  is a circuit which has a function for converting a bus system if a bus system of a base-board management controller (BMC)  7  is different from a bus system of a flash memory  5 . If the function of the bus conversion circuit  13  is located within the base-board management controller (BMC)  7 , the separate bus conversion circuit  13  does not have to be prepared.  
         [0037]     In the present invention, an OS must include certain function, which is the function for interrupting a south bridge  4  from the base-board management controller (BMC)  7 .  
         [0038]     Describing in accordance with the flow of  FIG. 4 , when the flash memory  5  is updated, the south bridge  4  is interrupted from the base-board management controller (BMC)  7  due to the interrupt function IR included in the OS by a command from a user (step S 11 ).  
         [0039]     Simultaneously, the management board (MMB)  8  sets the bus switch between the south bridge  4  and the flash memory  5  to no-connection (OFF) (step S 12 ). Also, the updating firmware is written into the flash memory  5  via the base-board management controller (BMC)  7  (step S 13 ). At this point, the bus system of the base-board management controller (BMC)  7  is matched with the bus system of the flash memory  5  by the bus conversion circuit  13 .  
         [0040]     Then, after writing of the updating firmware is completed, the system is rebooted (step S 14 ). Therefore, subsequently, the system can be operated by the updated firmware.  
         [0041]     In this way, in the present invention, the system does not have to be in a stopped state before the firmware update. Therefore, an amount of time required for the update can be reduced in comparison to the conventional update shown in  FIG. 1  and  FIG. 2 .  
         [0042]     Although the method shown in  FIG. 3  and  FIG. 4  can reduce the amount of time required for the update, during the update period, the flash memory cannot be accessed (see the flow of  FIG. 4 ). Therefore, the system operations are limited for the portion which needs to access the flash memory  5 .  
         [0043]      FIG. 5  is a block diagram of a second embodiment according to the present invention, which resolves such a drawback.  FIG. 6  is a corresponding exemplary operation flow of a method of the present invention.  
         [0044]     As a feature, the embodiment shown in  FIG. 5  has a backup flash memory  5   a  corresponding to a backup base-board management controller (BMC)  7   a , in addition to a flash memory  5  corresponding to a base-board management controller (BMC)  7 .  
         [0045]     Also in  FIG. 6 , only one system is illustrated, although a plurality of systems can be configured by partitioning with a plurality of partitions.  
         [0046]     In accordance with the processing flow of  FIG. 6 , description will be made for a firmware update in the second embodiment.  
         [0047]     A switch  14  has a switch Sw 1  for connecting a south bridge  4  with a first flash memory (referred to as an active flash memory) and a switch Sw 2  for connecting the south bridge  4  with a second flash memory (referred to as a backup flash memory).  
         [0048]     In the operating state of the system, when the switch Sw 1  is in a closed state and the switch Sw 2  is in an open state, it is considered that the first flash memory  5  is active and the second flash memory  5   a  is for backup.  
         [0049]     In this state, the updating firmware is read from a firmware medium  10  by a terminal  9  and is written into the backup, i.e. second, flash memory  5   a  via the second base-board management controller (BMC)  7   a  (step S 21 ).  
         [0050]     After the firmware is written into the second flash memory  5   a , the system is rebooted (step S 22 ). At this point, the management board  8  controls the switch  14  to switch over the switch Sw 1  into the open state and switch Sw 2  into the closed state.  
         [0051]     Therefore, the second flash memory  5   a  is connected to the south bridge  4 . In this way, when rebooted, the system is booted by the firmware updated by the second flash memory to be operated. Then, the first base-board management controller (BMC)  7  and the first firmware  5  will be for backup.  
         [0052]     According to the second embodiment, the active flash memory is not updated when the system is operating, and the updating firmware is written into the backup flash memory. When rebooted, the backup flash memory storing the updated firmware acts as the active flash memory. According to the second embodiment, the system is not affected at all during the operation.  
         [0053]     By virtue of the present invention, when firmware is updated, system down time can be minimized, or the update can be performed without banning access from a south bridge to firmware. This reduces effect of the update of the firmware when the system is operating and makes great industrial contributions.  
         [0054]     While illustrative and presently preferred embodiments of the present invention have been described in detail herein, it is to be understood that the inventive concepts may be otherwise variously embodied and employed and that the appended claims are intended to be construed to include such variations except insofar as limited by the prior art.