JP2000039993A - Device and method for replacing firmware - Google Patents

Device and method for replacing firmware

Info

Publication number
JP2000039993A
JP2000039993A JP10207281A JP20728198A JP2000039993A JP 2000039993 A JP2000039993 A JP 2000039993A JP 10207281 A JP10207281 A JP 10207281A JP 20728198 A JP20728198 A JP 20728198A JP 2000039993 A JP2000039993 A JP 2000039993A
Authority
JP
Japan
Prior art keywords
firmware
monitoring
new
replacement
switching
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.)
Granted
Application number
JP10207281A
Other languages
Japanese (ja)
Other versions
JP3250522B2 (en
Inventor
Ayumi Nakatani
歩 中谷
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP20728198A priority Critical patent/JP3250522B2/en
Publication of JP2000039993A publication Critical patent/JP2000039993A/en
Application granted granted Critical
Publication of JP3250522B2 publication Critical patent/JP3250522B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a device and a method for firmware replacement which monitors operation started by new firmware at the time of firmware replacement and puts the firmware back to the original firmware automatically if abnormality of the operation is detected. SOLUTION: The new firmware and old firmware are stored in two areas whose addresses can be switched and the new firmware is monitored for a certain time after the new firmware is started by a timer 31 which clocks the monitor time wherein the operation at the start of the new firmware is monitored and system resetting performed in the case of fault occurrence. If trouble is detected, the addresses are switched to replace the new firmware with the old firmware.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はファームウエアの入
れ替え装置及び方法に関し、特に入れ替え後の新たなフ
ァームウエアに障害が発生した場合に旧のファームウエ
アに戻すファームウエアの入れ替え装置及び入れ替え方
法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and method for replacing firmware, and more particularly, to an apparatus and method for replacing firmware that restores old firmware when a failure occurs in new firmware after the replacement. It is.

【0002】[0002]

【従来の技術】従来、ファームウエアの入れ替え装置
は、その上位装置から転送されたファイルを格納するた
めに書き込み可能な不揮発性メモリからロードしファー
ムウエアを動作させるBOOTプログラムとを有してい
た。ファームウエアの入れ替え時には、書き込み可能な
不揮発メモリ内のファイルを入れ替えることによって、
ファームウエアの入れ替えを行っていた。また、メモリ
上にファイルを2面格納させて、そのメモリ上のアドレ
ス空間を切り替えてオンラインによるファームウエアの
入れ替えを行っていた。
2. Description of the Related Art Conventionally, a firmware replacement apparatus has a BOOT program for loading a file transferred from a higher-order apparatus from a writable nonvolatile memory and operating the firmware. At the time of firmware replacement, by replacing files in the writable nonvolatile memory,
The firmware was being replaced. In addition, two files are stored in the memory, and the address space on the memory is switched to perform online firmware replacement.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のファームウエアの入れ替え装置には、新たな
ファームウエアファイルの転送時にエラーが発生した
り、新ファイルに不具合がある等して、新たなファーム
ウエアの動作中に障害が発生した場合、回復させるのが
難しいという問題点があった。従来のファームウエアの
入れ替え装置は、障害時の対応手段がないか、障害処理
を上位装置に頼っている。発生した障害が軽度であっ
て、例えば上位装置からのリモート操作により障害が除
去可能な場合は、従来の装置であっても障害の回復は可
能である。しかしながら、新たなファームウエアの不具
合が重大で、上位装置からのリモート操作ができない場
合には、障害の除去はできない。このような場合、装置
の置かれた場所まで誰かが行って直接障害の除去を行わ
なければならず、障害が回復する迄に要する時間、人件
費等、装置不稼動による損失は多大なものとなる。装置
が遠隔地にあれば、さらに損害は増える。
However, such a conventional firmware replacement apparatus has a problem in that an error occurs when a new firmware file is transferred, or a new file has a defect, and so on. When a failure occurs during the operation of the firmware, it is difficult to recover the failure. The conventional firmware replacement device relies on a higher-level device for failure processing to determine if there is a means for dealing with a failure. If the fault that occurred is minor and the fault can be removed, for example, by remote operation from a higher-level device, the fault can be recovered even with a conventional device. However, if the new firmware is seriously defective and remote operation cannot be performed from a higher-level device, the failure cannot be eliminated. In such a case, someone must go to the place where the equipment is located and directly remove the failure, and the loss due to equipment inoperability such as time required for recovery from the failure, labor cost, etc. is enormous. Become. If the device is in a remote location, the damage will be even greater.

【0004】本発明は、上記問題点に鑑み、ファームウ
エア入れ替え時、新たなファームウエアにより開始され
る動作を監視し、動作の異常を検出した場合には、自動
的に元のファームウエアに戻すことのできるファームウ
エア入れ替え装置及びファームウエアの入れ替え方法を
提供することを目的とする。
[0004] In view of the above problems, the present invention monitors the operation started by the new firmware when replacing the firmware, and automatically returns to the original firmware when an abnormality in the operation is detected. It is an object of the present invention to provide a firmware replacement device and a firmware replacement method that can be performed.

【0005】[0005]

【課題を解決するための手段】以上の目的を達成するた
め、本発明のファームウエアの入れ替え装置は、ファー
ムウエア入れ替えの監視を行う監視手段と新旧のファー
ムウエアをそれぞれ格納する領域であってそれぞれのア
ドレス空間を切り替え可能な2つの領域を有する記憶手
段と、前記監視手段と前記記憶手段に接続し前記監視手
段の指示に従って前記2つの領域のアドレス空間の切替
を行うアドレス切り替え手段と監視時間を計時する計時
手段と、を有するファームウエアの入れ替え装置である
ことを特徴とする。また、本発明のうち請求項2記載の
発明は、前記監視手段から前記アドレス切り替え手段に
出力される前記監視手段の指示は、前記監視手段が新た
なファームウエアの障害を検出した場合に生成するリセ
ット信号である請求項1記載のファームウエアの入れ替
え装置であることを特徴とする。また、本発明のうち請
求項3記載の発明は、前記アドレス切り替え手段は、前
記計時手段が監視時間を計時中であることを示す信号と
前記リセット信号の論理積の結果であって前記計時手段
が監視時間を計時中に前記リセット信号が発生したこと
を示す信号により前記2つの領域のアドレス切り替えを
行い元のファームウエアに戻すアドレス切り替え回路で
ある請求項1または2記載のファームウエアの入れ替え
装置であることを特徴とする。また、本発明のうち請求
項4記載の発明は、前記記憶手段は、FLASHメモリ
である請求項1、2または3記載のファームウエアの入
れ替え装置であることを特徴とする。また、本発明のう
ち請求項5記載の発明は、前記ファームウエアの入れ替
え装置がさらに、BOOTプログラムの入れ替えの監視
を行う監視手段と、新旧のBOOTプログラムをそれぞ
れ格納する領域であってそれぞれのアドレス空間を切り
替え可能な2つの領域を有する記憶手段と、前記監視手
段と前記記憶手段に接続し前記監視手段の指示に従って
前記2つの領域のアドレス空間の切替を行うアドレス切
り替え手段と監視時間を計時する計時手段とを有する請
求項1記載のファームウエアの入れ替え装置であること
を特徴とする。
In order to achieve the above objects, a firmware replacement apparatus according to the present invention is a monitoring means for monitoring firmware replacement and areas for storing new and old firmware, respectively. Storage means having two areas capable of switching the address space of the storage means; address monitoring means connected to the monitoring means and the storage means for switching the address space of the two areas according to an instruction of the monitoring means; and a monitoring time. A firmware replacement device having a clocking means for clocking. In the invention according to claim 2 of the present invention, the instruction of the monitoring means output from the monitoring means to the address switching means is generated when the monitoring means detects a new firmware failure. The firmware replacement device according to claim 1, which is a reset signal. Further, in the invention according to claim 3 of the present invention, the address switching means is a logical product of a signal indicating that the time keeping means is measuring a monitoring time and the reset signal, and 3. The firmware switching device according to claim 1, wherein the address switching circuit switches addresses of the two areas by using a signal indicating that the reset signal is generated while the monitoring time is being measured, and returns to the original firmware. It is characterized by being. According to a fourth aspect of the present invention, the storage means is the firmware replacement device according to the first, second, or third aspect, wherein the storage means is a flash memory. In the invention according to claim 5 of the present invention, the firmware replacement device further includes a monitoring unit that monitors replacement of a BOOT program, and an area that stores a new and an old BOOT program. A storage unit having two areas capable of switching the space, an address switching unit connected to the monitoring unit and the storage unit for switching the address space of the two regions in accordance with an instruction of the monitoring unit, and measuring a monitoring time. The firmware replacement device according to claim 1, further comprising a timer.

【0006】また、本発明のうち請求項6記載の発明
は、ファームウエアの入れ替え方法において、新旧のフ
ァームウエアをそれぞれ格納する領域であってアドレス
空間を切り替え可能な2つの領域の一方に新たなファー
ムウエアを格納する手順と、前記新たなファームウエア
の動作を監視する手順と、前記監視により新たなファー
ムウエアの障害を検出した場合にファームウエアを元に
戻す手順と、を有するファームウエアの入れ替え方法こ
とを特徴とする。また、本発明のうち請求項7記載の発
明は、前記新たなファームウエアの動作を監視する手順
は、新たなファームウエアの動作開始とともに所定の時
間を計時するタイマを起動し、前記タイマの計時が終了
するまで新たなファームウエアに障害が発生しないこと
を監視する手順である請求項6記載のファームウエアの
入れ替え方法であることを特徴とする。また、本発明の
うち請求項8記載の発明は、前記ファームウエアを元に
戻す手順は、前記新旧のファームウエアをそれぞれ格納
する2つの領域のアドレスを切り替える手順である請求
項6または7記載のファームウエアの入れ替え方法であ
ることを特徴とする。
According to a sixth aspect of the present invention, in the firmware replacement method, a new area is provided for storing new and old firmware, and a new area is provided for one of two areas capable of switching the address space. Firmware replacement including a procedure for storing firmware, a procedure for monitoring the operation of the new firmware, and a procedure for restoring the firmware when a failure of the new firmware is detected by the monitoring. The method is characterized by: In the invention according to claim 7 of the present invention, the step of monitoring the operation of the new firmware includes activating a timer for measuring a predetermined time together with the start of the operation of the new firmware, and 7. The firmware replacement method according to claim 6, which is a procedure for monitoring that no failure occurs in the new firmware until the process is completed. In the invention according to claim 8 of the present invention, the procedure for restoring the firmware is a procedure for switching addresses of two areas respectively storing the new and old firmware. It is a method of replacing firmware.

【0007】また、本発明のうち請求項9記載の発明
は、ファームウエアの入れ替えプログラムを記録したコ
ンピュータ読み取り可能な記録媒体において、新旧のフ
ァームウエアをそれぞれ格納する領域であってアドレス
空間を切り替え可能な2つの領域の一方に新たなファー
ムウエアを格納する手順と、前記新たなファームウエア
の動作を監視する手順と、前記監視により新たなファー
ムウエアの障害を検出した場合にファームウエアを元に
戻す手順と、を有するファームウエアの入れ替えプログ
ラムを記録したコンピュータ読み取り可能な記録媒体で
あることを特徴とする。
According to a ninth aspect of the present invention, in a computer-readable recording medium on which a firmware replacement program is recorded, an area for storing new and old firmware and an address space can be switched. Storing the new firmware in one of the two areas, monitoring the operation of the new firmware, and restoring the firmware when a failure of the new firmware is detected by the monitoring. And a computer-readable recording medium storing a firmware replacement program having the following steps:

【0008】[0008]

【発明の実施の形態】本発明を図面を参照して説明す
る。図1は、本発明の一実施の形態であるファームウエ
アの入れ替え装置のブロック図である。本発明の一実施
の形態であるファームウエアの入れ替え装置は、ファー
ムウエア入れ替え後の動作の監視手段であり装置全体の
制御を行うCPU10と、上位装置と接続された入力端
子60を経由して送られてくるファームウエアファイル
を格納する記憶手段である不揮発性メモリ(FLASH
メモリ)20と、ファームウエア入れ替え後の監視時間
を計時する計時手段であるタイマ31とFLASHメモ
リ20のアドレス切り替え手段であるアドレス切り替え
回路32とが設けられた切り替え回路30と、ファーム
ウエアを展開するメモリ(RAM)40と、システム起
動用のBOOTプログラムと診断プログラムを格納する
不揮発性メモリ(ROM)50と、これらを相互に接続
するバス60とから構成されている。また、バス60
は、バス上の端子61に接続している。また、リセット
信号線70は、CPU10と、リセット端子71と、切
り替え回路30と、接続している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a firmware replacement device according to an embodiment of the present invention. A firmware replacement apparatus according to an embodiment of the present invention is a means for monitoring the operation after firmware replacement and transmits the data via a CPU 10 for controlling the entire apparatus and an input terminal 60 connected to a higher-level apparatus. Non-volatile memory (FLASH) is a storage means for storing the firmware file
Memory) 20 and a switching circuit 30 provided with a timer 31 as time measuring means for measuring the monitoring time after the firmware replacement and an address switching circuit 32 as an address switching means for the FLASH memory 20, and the firmware is developed. It comprises a memory (RAM) 40, a non-volatile memory (ROM) 50 for storing a boot program and a diagnostic program for system startup, and a bus 60 for interconnecting these. In addition, bus 60
Is connected to a terminal 61 on the bus. The reset signal line 70 is connected to the CPU 10, the reset terminal 71, and the switching circuit 30.

【0009】CPU10は、ファームウエア入れ替え後
の動作の監視手段であり、新たなファームウエアの監視
を行うとともに、装置全体の制御を行う。CPU10
は、ファームウエアの入れ替え指示等を行う上位装置と
バス上の端子61で接続されていて、バス60経由で上
位装置の指示を入力する。また、バス60によりFLA
SHメモリ20と、RAM40と、ROM50と接続
し、これらの動作の監視や制御を行っている。さらに、
リセット端子71とリセット信号線70で接続してお
り、CPU10の発行するリセット信号は、リセット信
号線70を介して切り替え回路30に出力される。ま
た、切り替え回路30と信号線81を介して接続し、指
令を出す。
The CPU 10 is a means for monitoring the operation after the firmware is replaced. The CPU 10 monitors new firmware and controls the entire apparatus. CPU10
Is connected via a terminal 61 on the bus to a higher-level device that issues a firmware replacement instruction or the like, and inputs an instruction from the higher-level device via the bus 60. In addition, FLA by bus 60
The SH memory 20, the RAM 40, and the ROM 50 are connected to monitor and control these operations. further,
The reset terminal 71 is connected to the reset signal line 70, and a reset signal issued by the CPU 10 is output to the switching circuit 30 via the reset signal line 70. Further, it is connected to the switching circuit 30 via a signal line 81 to issue a command.

【0010】FLASHメモリ20は、2つの領域2
1、22に分かれており、信号線82を介して接続する
切り替え回路30によって、アドレス空間を入れ替える
ことが可能である。
The flash memory 20 has two areas 2
The address space can be switched by a switching circuit 30 which is divided into 1 and 22 and connected via a signal line 82.

【0011】切り替え回路30は、CPU10と、信号
線82とリセット信号線70と接続しており、CPU1
0の切り替え指令を受付け、信号線82を介してFLA
SHメモリ20のアドレス空間切り替えを行う。切り替
え回路30は、信号線82を経由して入力するCPU1
0の指令により監視時間の計時を行うタイマ31と、計
時中は0以外を出力するタイマ31の出力とリセット信
号線70のリセット信号を入力するAND33と、AN
D33の出力に従ってFLASHメモリ20のアドレス
空間切り替えを行うアドレス切り替え回路32と、から
構成される。タイマ31は、CPU10によってタイマ
値が設定されると、一定タイミングで減算される。タイ
ムアウト後、タイマ31はリセットされ未設定状態とな
り、動作しない。AND32は、タイマ31が計時中、
すなわちタイマ31の出力が0以外の場合に、リセット
信号線70を介してリセット信号が入力されると、1を
出力する。アドレス切り替え回路32は、AND32の
出力が1となると、すなわち、新たなファームウエアの
動作開始後、タイマ31に設定される監視時間が経過す
るまでの間に、CPU10が新たなファームウエアの障
害を検出して発行するリセット信号を受け取ると、FL
ASHメモリ20のアドレス空間切り替えを行い、動作
するファームウエアの格納されているアドレスを旧ファ
ームウエアの格納アドレスと入れ替える。これにより、
動作するファームウエアが元に戻る。
The switching circuit 30 is connected to the CPU 10, the signal line 82 and the reset signal line 70,
0, and receives the FLA signal via the signal line 82.
The address space of the SH memory 20 is switched. The switching circuit 30 includes a CPU 1 input via a signal line 82.
A timer 31 for measuring a monitoring time in response to a command of 0, an output of the timer 31 for outputting a value other than 0 during the counting and an AND 33 for inputting a reset signal on a reset signal line 70;
And an address switching circuit 32 for switching the address space of the FLASH memory 20 according to the output of D33. When the timer value is set by the CPU 10, the timer 31 is decremented at a certain timing. After the timeout, the timer 31 is reset to an unset state and does not operate. AND 32 indicates that the timer 31 is counting time,
That is, when the output of the timer 31 is other than 0, when the reset signal is input via the reset signal line 70, 1 is output. When the output of the AND 32 becomes 1, that is, after the operation of the new firmware starts and before the monitoring time set in the timer 31 elapses, the address switching circuit 32 causes the CPU 10 to detect the failure of the new firmware. When a reset signal to be detected and issued is received, FL
The address space of the ASH memory 20 is switched, and the address where the operating firmware is stored is replaced with the address where the old firmware is stored. This allows
The working firmware is restored.

【0012】RAM40は、バス60により他の各部と
接続しており、RAM40上では、BOOTプログラム
によって展開されたファームウエアが動作する。ROM
50も同様に、バス60により他の各部と接続してお
り、BOOTプログラムを格納している。ROM50に
格納されるBOOTプログラムは、FLASHメモリ2
0の若番アドレスのメモリ21に格納されているファー
ムウエアをロードし、RAM40へ展開した後、ファー
ムウエアを起動する。
The RAM 40 is connected to other units via a bus 60, and firmware developed by a BOOT program operates on the RAM 40. ROM
Similarly, the bus 50 is connected to other units via a bus 60, and stores a BOOT program. The BOOT program stored in the ROM 50 is stored in the FLASH memory 2
After the firmware stored in the memory 21 with the lowest address of 0 is loaded and expanded in the RAM 40, the firmware is started.

【0013】次に、本発明の一実施の形態であるファー
ムウエア入れ替え装置の動作及びファームウエア入れ替
え方法について説明する。図2と図3は、本発明の一実
施の形態であるファームウエアの入れ替え装置のフロー
チャートである。図2は新たなファームウエアに障害が
発生しなかった場合のフローチャートであって、図3は
障害が発生した場合のフローチャートである。新たなフ
ァームウエアに障害が発生しなかった場合について、図
2を用いて説明する。
Next, the operation of the firmware exchange apparatus and the firmware exchange method according to an embodiment of the present invention will be described. FIGS. 2 and 3 are flowcharts of the firmware replacement apparatus according to an embodiment of the present invention. FIG. 2 is a flowchart when a failure has not occurred in the new firmware, and FIG. 3 is a flowchart when a failure has occurred. The case where no failure has occurred in the new firmware will be described with reference to FIG.

【0014】ファームウエアの入れ替え指示等を行う上
位装置とバス上の端子61で接続されていて、バス60
経由で上位装置の指示を入力する。新たなファームウエ
アが端子61に接続した上位装置から転送されると、こ
の時点でRAM40上に展開されている旧ファームウエ
アにプログラムされた手順に従って、CPU10は、バ
ス60を経由して新たなファームウエアをFLASHメ
モリ20の老番アドレスのメモリ22に格納する(ステ
ップA1)。新たなファームウエアが格納されると、C
PU10は、タイマ31に新たなファームウエアの動作
を監視する監視時間を設定する(ステップA2)。これ
により、切り替え回路30のタイマ31が監視時間の計
時を開始する(ステップB1)。ここで、タイマ31
は、新ファイルの動作を確認するのに充分な時間が設定
されている。
The host device is connected to a higher-level device that issues a firmware replacement instruction or the like via a terminal 61 on the bus.
Input the instruction of the host device via When the new firmware is transferred from the higher-level device connected to the terminal 61, the CPU 10 sends the new firmware via the bus 60 according to the procedure programmed in the old firmware loaded on the RAM 40 at this time. The wear is stored in the memory 22 at the oldest address of the FLASH memory 20 (step A1). When new firmware is stored, C
The PU 10 sets a monitoring time for monitoring the operation of the new firmware in the timer 31 (Step A2). Thereby, the timer 31 of the switching circuit 30 starts measuring the monitoring time (step B1). Here, the timer 31
Has enough time to check the operation of the new file.

【0015】続いて、CPU10は、リセット端子71
にセルフリセット信号を発行し、システムをリセットす
る。この時、切り替え回路30はタイマが計時中である
ため、タイマ中のシステムリセットという条件が成立す
るため、FLASHメモリ20のアドレス切り替えが行
われる(ステップB2)。これにより、FLASHメモ
リ20は、メモリ22、21の順にアドレスが配置され
る。リセット後は、ROM50に格納されているBOO
Tプログラムが起動される。BOOTプログラムは、F
LASHメモリ22に格納された新たなファームウエア
ファイルをロードし、RAM40へ展開する(ステップ
A3)。
Subsequently, the CPU 10 sets the reset terminal 71
Issue a self-reset signal to reset the system. At this time, since the switching circuit 30 is counting the time of the timer, the condition of system reset during the timer is satisfied, and the address of the flash memory 20 is switched (step B2). Thus, the addresses of the FLASH memory 20 are arranged in the order of the memories 22 and 21. After the reset, the BOO stored in the ROM 50
The T program is started. The BOOT program is F
The new firmware file stored in the LASH memory 22 is loaded and expanded on the RAM 40 (step A3).

【0016】その後、RAM40上に展開された新ファ
ームウエアに処理を移行する。新たなファームウエアの
動作が正常であれば、タイマ31はタイムアウトし、新
ファームウエアの障害監視は終了する(ステップB
2)。タイマ31は、タイムアウトにより未設定状態と
なり、この後に障害が発生してシステムリセットとなっ
ても(ステップA4)、アドレスの切り替えは行われな
い。
After that, the processing is shifted to the new firmware developed on the RAM 40. If the operation of the new firmware is normal, the timer 31 times out, and the failure monitoring of the new firmware ends (step B).
2). The timer 31 enters an unset state due to timeout, and even if a failure occurs and the system is reset (step A4), the address is not switched.

【0017】次に、新たなファームウエアに障害が発生
した場合について、図3を用いて説明する。タイマ31
が設定され(ステップA2)、システムリセットによ
り、FLASHメモリ20のアドレス切り替えが行われ
(ステップB2)、メモリ22に格納さえれた新ファー
ムウエアがRAM40に展開され(ステップA3)、新
たなファームウエアが起動するところまでは、これまで
の説明と同じである。
Next, a case where a failure occurs in new firmware will be described with reference to FIG. Timer 31
Is set (step A2), the address of the FLASH memory 20 is switched by the system reset (step B2), and the new firmware stored in the memory 22 is expanded in the RAM 40 (step A3), and the new firmware is updated. Up to the point where is started, the operation is the same as described above.

【0018】その後、タイマ31が計時中に、CPU1
0が障害発生を検出すると(ステップA4)、CPU1
0はシステムリセットを発行する。このシステムリセッ
トにより、切り替え回路30では、アドレス切り替えが
行われ(ステップB4)、FLASHメモリ20は、2
1,22の順に切り替わる。ROM50に格納されたB
OOTプログラムに従って、再び、FLASHメモリ2
0のメモリ21、すなわち旧ファームウエアが、RAM
40に展開され、旧ファームウエアでの動作を開始す
る。
Thereafter, while the timer 31 is counting time, the CPU 1
When 0 detects a failure (step A4), the CPU 1
0 issues a system reset. By this system reset, the switching circuit 30 performs address switching (step B4), and the FLASH memory 20
Switching is performed in the order of 1 and 22. B stored in the ROM 50
According to the OOT program, the flash memory 2
0, that is, the old firmware is RAM
The operation is expanded to 40 and the operation with the old firmware is started.

【0019】上位装置からのファイル転送中に障害が発
生した場合、新たなファームウエアファイルはFLAS
Hメモリ22に格納されており、タイマ31は設定前で
あるため、障害発生によりシステムリセットが発生して
も、ROM50に格納されたBOOTプログラムは、F
LASHメモリ20の若番アドレスファイル21に格納
された旧ファームウエアをロードしてRAM40に展開
する。このため、この場合にも、ファームウエアを元に
戻すことが可能である。
If a failure occurs during the file transfer from the host device, the new firmware file will be FLAS
Since the timer 31 is stored in the H memory 22 and the timer 31 has not been set yet, even if a system reset occurs due to a failure, the BOOT program stored in the ROM 50 is
The old firmware stored in the lowest address file 21 of the LASH memory 20 is loaded and expanded on the RAM 40. Therefore, even in this case, it is possible to restore the firmware.

【0020】さらに、本発明の他の実施の形態について
説明する。図4は、本発明の他の実施の形態であるファ
ームウエアの入れ替え装置のブロック図である。図4に
示したファームウエアの入れ替え装置は、BOOTプロ
グラムの格納部50はFLASHメモリであり、ファー
ムウエアを格納するFLASHメモリ20と同様、2つ
の領域51、52に分かれており、接続する切り替え回
路90によって、アドレス空間を入れ替えることが可能
である。また、切り替え回路90は、切り替え回路30
と同じ構造であり、監視時間を設定するタイマとアドレ
ス切り替え回路を有しており、CPU10とリセット信
号線70に接続している。システムリセット時に、BO
OTプログラムが開始されるリセット番地はFLASH
メモリ50の若番アドレスに割り付けられており、シス
テムがリセットされると、若番アドレスのメモリ51に
格納されたBOOTプログラムに起動がかかる。
Further, another embodiment of the present invention will be described. FIG. 4 is a block diagram of a firmware replacement device according to another embodiment of the present invention. In the firmware replacement device shown in FIG. 4, the BOOT program storage unit 50 is a FLASH memory, and is divided into two areas 51 and 52 like the FLASH memory 20 for storing firmware. 90 allows the address space to be swapped. Further, the switching circuit 90 includes the switching circuit 30.
And has a timer for setting a monitoring time and an address switching circuit, and is connected to the CPU 10 and the reset signal line 70. At system reset, BO
The reset address where the OT program starts is FLASH
When the system is reset, the BOOT program stored in the memory 51 at the lowest address is activated.

【0021】このような構成のファームウエアの入れ替
え装置の動作について説明する。ファームウエアの入れ
替え時と同様に、BOOT+診断プログラムが端子61
を介して上位装置から転送されると、RAM40上に格
納されたファームウエアに従って、CPU10は、FL
ASHメモリ50の老番アドレスのメモリ52にファイ
ルを格納する。格納後、CPU10は、切り替え回路9
0内部のタイマを設定し、システムリセットする。シス
テムリセットにより、切り替え回路90のアドレス切り
替え条件が成立し、メモリ52に格納された新たなBO
OTプログラムが起動される。また、切り替え回路90
のタイマが監視時間を計時中に、BOOTプログラムの
障害が検出され、システムリセットが発行された場合、
再び切り替え回路90によりFLASHメモリ50のア
ドレス切り替えが行われ、旧BOOTプログラムが起動
される。
The operation of the thus configured firmware replacement apparatus will be described. As in the case of replacing the firmware, the BOOT + diagnostic program is connected to the terminal 61
Is transferred from the higher-level device via the CPU 40, the CPU 10 operates the FL10 according to the firmware stored in the RAM 40.
The file is stored in the memory 52 of the ASH memory 50 at the oldest address. After the storage, the CPU 10
0 Set the internal timer and reset the system. By the system reset, the address switching condition of the switching circuit 90 is satisfied, and the new BO stored in the memory 52 is stored.
The OT program is started. Also, the switching circuit 90
If the BOOT program failure is detected while the timer is counting the monitoring time and a system reset is issued,
The switching of the FLASH memory 50 is performed again by the switching circuit 90, and the old BOOT program is started.

【0022】[0022]

【発明の効果】以上説明したように、本発明のファーム
ウエアの入れ替え装置によれば、新たなファームウエア
と旧ファームウエアをアドレス切り替え可能な2つの領
域に格納し、新たなファームウエアの起動時の動作を監
視する監視時間を計時するタイマと、障害発生時に発行
されるシステムリセットにより、障害発生時に新たなフ
ァームウエアを旧ファームウエアに戻すことが可能であ
る。
As described above, according to the firmware replacement apparatus of the present invention, new firmware and old firmware are stored in two areas whose addresses can be switched, and the new firmware is activated when the new firmware is started. When a failure occurs, new firmware can be returned to the old firmware by a timer that measures a monitoring time for monitoring the operation of the device and a system reset issued when a failure occurs.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の一実施の形態であるファームウエア
の入れ替え装置のブロック図である。
FIG. 1 is a block diagram of a firmware replacement device according to an embodiment of the present invention.

【図2】 本発明の一実施の形態のファームウエア入れ
替え装置のフローチャートである。
FIG. 2 is a flowchart of a firmware replacement device according to an embodiment of the present invention.

【図3】 本発明の一実施の形態のファームウエア入れ
替え装置のフローチャートである。
FIG. 3 is a flowchart of a firmware replacement device according to an embodiment of the present invention.

【図4】 本発明の他の実施の形態であるファームウエ
アの入れ替え装置のブロック図である。
FIG. 4 is a block diagram of a firmware replacement device according to another embodiment of the present invention.

【符号の説明】[Explanation of symbols]

10 CPU 20 FLASHメモリ 21 FLASHメモリ(若番アドレス) 22 FLASHメモリ(老番アドレス) 30 切り替え回路 31 タイマ 32 ANDゲート 33 アドレス切り替え回路 40 RAM 50 ROM 60 バス DESCRIPTION OF SYMBOLS 10 CPU 20 FLASH memory 21 FLASH memory (young address) 22 FLASH memory (old address) 30 switching circuit 31 timer 32 AND gate 33 address switching circuit 40 RAM 50 ROM 60 bus

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 ファームウエアの入れ替え装置におい
て、 ファームウエア入れ替えの監視を行う監視手段と新旧の
ファームウエアをそれぞれ格納する領域であってそれぞ
れのアドレス空間を切り替え可能な2つの領域を有する
記憶手段と前記監視手段と前記記憶手段に接続し前記監
視手段の指示に従って前記2つの領域のアドレス空間の
切替を行うアドレス切り替え手段と監視時間を計時する
計時手段とを有することを特徴とするファームウエアの
入れ替え装置。
1. A firmware replacement device, comprising: monitoring means for monitoring firmware replacement; and storage means having two areas for storing new and old firmware, each of which is capable of switching between respective address spaces. A firmware replacement, comprising: an address switching unit connected to the monitoring unit and the storage unit for switching an address space between the two areas according to an instruction of the monitoring unit; and a timer unit for clocking a monitoring time. apparatus.
【請求項2】 前記監視手段から前記アドレス切り替え
手段に出力される前記監視手段の指示は、前記監視手段
が新たなファームウエアの障害を検出した場合に生成す
るリセット信号であることを特徴とする請求項1記載の
ファームウエアの入れ替え装置。
2. The method according to claim 1, wherein the instruction from the monitoring unit output from the monitoring unit to the address switching unit is a reset signal generated when the monitoring unit detects a new firmware failure. The firmware replacement device according to claim 1.
【請求項3】 前記アドレス切り替え手段は、前記計時
手段が監視時間を計時中であることを示す信号と前記リ
セット信号の論理積の結果であって前記計時手段が監視
時間を計時中に前記リセット信号が発生したことを示す
信号により前記2つの領域のアドレス切り替えを行い元
のファームウエアに戻すアドレス切り替え回路であるこ
とを特徴とする請求項1または2記載のファームウエア
の入れ替え装置。
3. The address switching unit according to claim 1, wherein the address switching unit is a logical product of a signal indicating that the clocking unit is measuring a monitoring time and the reset signal, and wherein the clocking unit resets the monitoring time while counting the monitoring time. 3. The firmware switching device according to claim 1, further comprising an address switching circuit that switches addresses of the two areas by a signal indicating that a signal has been generated and returns to an original firmware.
【請求項4】 前記記憶手段は、FLASHメモリであ
ることを特徴とする請求項1、2または3記載のファー
ムウエアの入れ替え装置。
4. The firmware replacement apparatus according to claim 1, wherein said storage means is a flash memory.
【請求項5】 前記ファームウエアの入れ替え装置がさ
らに、 BOOTプログラムの入れ替えの監視を行う監視手段と
新旧のBOOTプログラムをそれぞれ格納する領域であ
ってそれぞれのアドレス空間を切り替え可能な2つの領
域を有する記憶手段と前記監視手段と前記記憶手段に接
続し前記監視手段の指示に従って前記2つの領域のアド
レス空間の切替を行うアドレス切り替え手段と監視時間
を計時する計時手段とを有することを特徴とする請求項
1記載のファームウエアの入れ替え装置。
5. The firmware replacement device further comprises: a monitoring unit for monitoring replacement of a BOOT program; and two areas for storing new and old BOOT programs, respectively, and capable of switching between respective address spaces. A storage device, the monitoring device, and an address switching device connected to the storage device for switching the address space between the two areas according to an instruction of the monitoring device, and a timing device for measuring a monitoring time. Item 10. The firmware replacement device according to Item 1.
【請求項6】 ファームウエアの入れ替え方法におい
て、 新旧のファームウエアをそれぞれ格納する領域であって
アドレス空間を切り替え可能な2つの領域の一方に新た
なファームウエアを格納する手順と、 前記新たなファームウエアの動作を監視する手順と、 前記監視により新たなファームウエアの障害を検出した
場合にファームウエアを元に戻す手順と、 を有することを特徴とするファームウエアの入れ替え方
法。
6. A method for replacing firmware, wherein a new firmware is stored in one of two areas, each of which stores an old and a new firmware and whose address space can be switched, and the new firmware. A method of monitoring firmware operation, and a procedure of restoring firmware when a new firmware failure is detected by the monitoring.
【請求項7】 前記新たなファームウエアの動作を監視
する手順は、新たなファームウエアの動作開始とともに
所定の時間を計時するタイマを起動し、 前記タイマの計時が終了するまで新たなファームウエア
に障害が発生しないことを監視する手順であることを特
徴とする請求項6記載のファームウエアの入れ替え方
法。
7. The procedure for monitoring the operation of the new firmware includes activating a timer for measuring a predetermined time together with the start of the operation of the new firmware, and updating the new firmware until the clocking of the timer ends. 7. The firmware replacement method according to claim 6, wherein the method is a procedure for monitoring that no failure occurs.
【請求項8】 前記ファームウエアを元に戻す手順は、
前記新旧のファームウエアをそれぞれ格納する2つの領
域のアドレスを切り替える手順であることを特徴とする
請求項6または7記載のファームウエアの入れ替え方
法。
8. The procedure for restoring the firmware is as follows:
8. The firmware swapping method according to claim 6, further comprising a step of switching addresses of two areas respectively storing the new and old firmware.
【請求項9】 ファームウエアの入れ替えプログラムを
記録したコンピュータ読み取り可能な記録媒体におい
て、 新旧のファームウエアをそれぞれ格納する領域であって
アドレス空間を切り替え可能な2つの領域の一方に新た
なファームウエアを格納する手順と、 前記新たなファームウエアの動作を監視する手順と、 前記監視により新たなファームウエアの障害を検出した
場合にファームウエアを元に戻す手順と、 を有することを特徴とするファームウエアの入れ替えプ
ログラムを記録したコンピュータ読み取り可能な記録媒
体。
9. A computer-readable recording medium on which a firmware replacement program is recorded, wherein new firmware is stored in one of two areas in which new and old firmware are respectively stored and in which an address space can be switched. Storing, a procedure for monitoring the operation of the new firmware, and a procedure for restoring the firmware when a failure of the new firmware is detected by the monitoring. A computer-readable recording medium on which a replacement program is recorded.
JP20728198A 1998-07-23 1998-07-23 Firmware replacement device and replacement method Expired - Fee Related JP3250522B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20728198A JP3250522B2 (en) 1998-07-23 1998-07-23 Firmware replacement device and replacement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20728198A JP3250522B2 (en) 1998-07-23 1998-07-23 Firmware replacement device and replacement method

Publications (2)

Publication Number Publication Date
JP2000039993A true JP2000039993A (en) 2000-02-08
JP3250522B2 JP3250522B2 (en) 2002-01-28

Family

ID=16537209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20728198A Expired - Fee Related JP3250522B2 (en) 1998-07-23 1998-07-23 Firmware replacement device and replacement method

Country Status (1)

Country Link
JP (1) JP3250522B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002333988A (en) * 2001-05-08 2002-11-22 Teac Corp Program processor and version-up method for its program and program for version-up of its program
JP2003067284A (en) * 2001-08-30 2003-03-07 Sharp Corp Digital broadcast receiver
JP2005332228A (en) * 2004-05-20 2005-12-02 Nec Engineering Ltd Program switching controller
JP2006260283A (en) * 2005-03-17 2006-09-28 Nec Corp Controller, its program and program downloading method
CN100337192C (en) * 2003-08-13 2007-09-12 华为技术有限公司 Timer management method
JP2010061419A (en) * 2008-09-04 2010-03-18 Hitachi Ltd Controller
CN104536848A (en) * 2014-12-22 2015-04-22 小米科技有限责任公司 Firmware recovery method, device and terminal
JP2017228077A (en) * 2016-06-22 2017-12-28 富士通株式会社 Electronic equipment, firmware update method, and computer program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002333988A (en) * 2001-05-08 2002-11-22 Teac Corp Program processor and version-up method for its program and program for version-up of its program
JP2003067284A (en) * 2001-08-30 2003-03-07 Sharp Corp Digital broadcast receiver
CN100337192C (en) * 2003-08-13 2007-09-12 华为技术有限公司 Timer management method
JP2005332228A (en) * 2004-05-20 2005-12-02 Nec Engineering Ltd Program switching controller
JP2006260283A (en) * 2005-03-17 2006-09-28 Nec Corp Controller, its program and program downloading method
JP2010061419A (en) * 2008-09-04 2010-03-18 Hitachi Ltd Controller
CN104536848A (en) * 2014-12-22 2015-04-22 小米科技有限责任公司 Firmware recovery method, device and terminal
WO2016101712A1 (en) * 2014-12-22 2016-06-30 小米科技有限责任公司 Firmware recovery method, device and terminal
KR101759451B1 (en) * 2014-12-22 2017-07-18 시아오미 아이엔씨. Method, device and terminal, program and recording medium for restoring firmware program
US10528434B2 (en) 2014-12-22 2020-01-07 Xiaomi Inc. Method, device and terminal for restoring firmware program
JP2017228077A (en) * 2016-06-22 2017-12-28 富士通株式会社 Electronic equipment, firmware update method, and computer program

Also Published As

Publication number Publication date
JP3250522B2 (en) 2002-01-28

Similar Documents

Publication Publication Date Title
JP4568764B2 (en) System monitoring apparatus control method, program, and computer system
JP2001501000A (en) Semiconductor memory device having error detection and correction
JP4641443B2 (en) Log information management apparatus, log information management method, and log information management program
JPH0950424A (en) Dump sampling device and dump sampling method
JP3250522B2 (en) Firmware replacement device and replacement method
JP6880961B2 (en) Information processing device and log recording method
CN113626262A (en) BMC recovery method, system, equipment and medium
JP2007293802A (en) Disk array apparatus, and control method and control program for disk array apparatus
JP2004054616A (en) Information processor with function to automatically restore firmware
JP5470124B2 (en) Electronic device and program for electronic device
JPH04369735A (en) Backup system for computer system
JP2009025967A (en) Backup system of duplicated firmware, method and operating system
JP2020171002A (en) Information processing apparatus and method of controlling the same
JPH08185208A (en) Plant controller
JP2872113B2 (en) Micro diagnostic system for information processing equipment
JP6364773B2 (en) Information processing apparatus, information processing system, memory replication method, and computer program
JP2000322333A (en) Automatic saving/automatic restoration system and method for information specific to computer system
JP4098400B2 (en) Semiconductor disk device
JP5360311B2 (en) Disk array device
JP3226867B2 (en) Received message recovery method in hot standby system, received message recovery method in hot standby system, and recording medium storing received message processing program
JP2001034496A (en) Self-restoring circuit
JP2011175366A (en) Electronic device
JP4876662B2 (en) Computer system having memory dump function, program, and memory dump method
JPH0535606A (en) Electronic disk device
JPH07244613A (en) Dual-memory control method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees