KR20030029720A - Apparatus and Method for Firmware Version Checking - Google Patents

Apparatus and Method for Firmware Version Checking Download PDF

Info

Publication number
KR20030029720A
KR20030029720A KR1020010062408A KR20010062408A KR20030029720A KR 20030029720 A KR20030029720 A KR 20030029720A KR 1020010062408 A KR1020010062408 A KR 1020010062408A KR 20010062408 A KR20010062408 A KR 20010062408A KR 20030029720 A KR20030029720 A KR 20030029720A
Authority
KR
South Korea
Prior art keywords
firmware
recording element
checksum
address
recorded
Prior art date
Application number
KR1020010062408A
Other languages
Korean (ko)
Inventor
김태경
Original Assignee
엘지전자 주식회사
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 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020010062408A priority Critical patent/KR20030029720A/en
Publication of KR20030029720A publication Critical patent/KR20030029720A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading

Abstract

PURPOSE: A device and method for checking a firmware version is provided to check a version of a firmware recorded in a recording element by mounting a monitor device for monitoring an operation of a hardware board including a recording element, and calculating a checksum of a firmware stored in the recording element using a processor capable of executing a user interface by on-line without stopping a service. CONSTITUTION: If a firmware version checking command is received in a hardware processor from a monitor device connected by on-line(S10), a firmware recorded in a recording element is read and a checksum value is calculated. A point address of data for checking a checksum is initialized as a start address of the recording element having the firmware and a checksum variable is initialized as '0'(S12). Data recorded in an address indicated by the point address of the data for checking a checksum are read(S14). If the read data are valid(S16), '1' is added to the checksum variable(S18). If a current point address is not the end address of the recording element(S20), '1' is added to the point address(S22). If the current point address is the end address of the recording element, a calculation of the checksum value is terminated(S24). The hardware processor transmits the calculated checksum value to the monitor device(S26).

Description

펌웨어 버전 검사 장치 및 방법{Apparatus and Method for Firmware Version Checking}Apparatus and Method for Firmware Version Checking

본 발명은 펌웨어 버전 검사 장치 및 방법에 관한 것으로서, 특히 체크섬을 이용하여 하드웨어 보드에 적용된 펌웨어의 버전을 검사할 수 있도록 하는 펌웨어 버전 검사 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for checking a firmware version, and more particularly, to an apparatus and method for checking a firmware version that enables checking a version of firmware applied to a hardware board using a checksum.

일반적으로 펌웨어(Firmware)라 함은, 기록이 가능한 소자, 예를 들어, EPROM(Erasable Programable Read Only Memory), 플래쉬 메모리(Flash Memory) 등에 기록된 마이크로 프로그램의 집합으로, 소프트웨어적인 특성과 하드웨어적인 특성을 같이 가지고 있다.Generally, firmware is a set of micro programs recorded on a recordable device, for example, erasable programmable read only memory (EPROM), flash memory, and the like. Have together.

전술한 바와 같은, 펌웨어는 EPROM이나, 플래쉬 메모리 등과 같은 기록이 가능한 소자에 기록된 후, 제어할 하드웨어에 장착되어 해당 하드웨어를 제어하게 되는 데, 하드웨어 운용중에 해당 하드웨어에 장착된 펌웨어의 버전을 확인하게 되는 경우가 발생하게 된다.As described above, the firmware is recorded in a recordable device such as an EPROM or flash memory, and then mounted on a hardware to be controlled to control the hardware. Check the version of the firmware installed on the hardware during hardware operation. It happens.

펌웨어의 버전은 펌웨어가 기록되는 소자(예를 들어, EPROM, 플래쉬 메모리)의 체크섬(Checksum)과 연관되어 관리되는 데, 체크섬이란 펌웨어가 기록되는 소자에 기록된 내용을 모두 합한 수를 말하는 것으로, 펌웨어가 변경됨과 동시에 체크섬도 변하게 된다.The firmware version is managed in association with the checksum of the device (for example, EPROM, flash memory) in which the firmware is written. The checksum is the sum of all the contents recorded in the device where the firmware is recorded. As the firmware changes, so does the checksum.

따라서, 펌웨어의 체크섬을 알 수 있으면, 해당 하드웨어에 현재 장착되어 있는 펌웨어가 어떤 버전의 펌웨어인 지를 알 수 있게 되는 데, 종래에는 펌웨어가 기록되는 소자의 겉면에, 적용된 펌웨어의 체크섬이 기입된 표를 붙여 운용자가 쉽게 펌웨어의 버전을 확인할 수 있게 한다.Therefore, if the checksum of the firmware is known, it is possible to know which version of the firmware is currently installed in the hardware. In the past, a table in which the checksum of the applied firmware is written on the surface of the device on which the firmware is recorded is written. So that the operator can easily check the firmware version.

즉, 종래에는 도 1에 도시하는 바와 같이, EPROM이나, 플래쉬 메모리 등과 같은 기록이 가능한 기록 소자(3)에 펌웨어를 기록할 수 있는 별도의 기록 장치(1)를 사용하여 펌웨어를 기록 소자(3)에 기록하는 데, 기록 장치(1)는 모니터 상에기록 소자(3)에 기록되는 펌웨어의 체크섬을 디스플레이한다.That is, conventionally, as shown in FIG. 1, firmware is recorded using a separate recording device 1 capable of recording firmware on a recording element 3 capable of recording, such as an EPROM, a flash memory, or the like. ), The recording device 1 displays a checksum of the firmware recorded on the recording element 3 on the monitor.

이에 따라, 작업자는 기록 장치(3)의 모니터 상에 디스플레이되는 체크섬을 확인하여 기록 소자(3)의 하드웨어 보드(5) 상의 위치 번호(U-number) 및 그 밖의 필요한 특이 사항과 함께 표에 기록하고, 펌웨어 체크섬이 기록된 표를 기록 소자(3)의 겉면에 붙인 후, 해당 기록 소자(3)를 하드웨어 보드(5)에 장착시킨다.Accordingly, the operator checks the checksum displayed on the monitor of the recording device 3 and records it in a table together with the position number (U-number) on the hardware board 5 of the recording element 3 and other necessary peculiarities. After attaching the table on which the firmware checksum is recorded to the outer surface of the recording element 3, the recording element 3 is mounted on the hardware board 5.

후에 운용자가 기록 소자(3)에 기록된 펌웨어의 버전을 확인하고자 하는 경우에는 기록 소자(3)의 표면에 붙어있는 표에 기록되어 있는 체크섬을 이용하여 해당 기록 소자(3)에 기록된 펌웨어의 버전을 확인한다.If the operator later wants to confirm the version of the firmware recorded on the recording element 3, the checksum recorded in the table attached to the surface of the recording element 3 is used to check the version of the firmware recorded on the recording element 3. Check the version.

이상에서 살펴본 바와 같이, 종래에는 기록 소자(3)에 펌웨어를 기록할 때마다 일일이 기록 소자(3)에 기록된 표를 제거하고, 기록 소자(3)에 재기록된 펌웨어의 체크섬을 다시 작성하여 기록 소자(3)에 붙여야 하는 데, 이러한 경우에는 기록 소자(3)에 기록되어 있는 펌웨어의 체크섬을 확인하기 위해 기록 소자(3)가 장착된 하드웨어 보드(5)의 탈장이 불가피하게 되어 서비스를 중단해야 하는 문제점이 있다.As described above, conventionally, each time the firmware is recorded on the recording element 3, the table recorded on the recording element 3 is removed, and the checksum of the firmware rewritten on the recording element 3 is rewritten to record. In this case, in order to confirm the checksum of the firmware recorded in the recording element 3, the mounting of the hardware board 5 on which the recording element 3 is mounted is inevitable, thereby interrupting service. There is a problem that must be done.

그리고, 기술의 발달로 인하여 기록 소자(3)에 펌웨어를 기록할 수 있는 별도의 기록 장치(1)없이 기록 소자(3)에 펌웨어를 기록하는 것이 가능해짐에 따라 기록 소자(3)의 겉면에 기록된 체크섬은 초기 장착 시의 체크섬만을 표시하게 되는 경우가 발생하게 되어 현재 기록 소자(3)에 기록되어 있는 펌웨어의 체크섬과 일치하지 않게 되는 경우가 발생하게 되는 문제점이 있다.Further, due to the development of the technology, it is possible to record the firmware on the recording element 3 without a separate recording device 1 capable of recording the firmware on the recording element 3. There is a problem that the recorded checksum may only display the checksum at the time of initial installation, and may not coincide with the checksum of the firmware currently recorded on the recording element 3.

그리고, 기록 소자(3)에 펌웨어를 기록하는 장치마다 체크섬 계산 방식이 달라지게 되어 기록된 내용이 동일하다 할지라도 체크섬은 달라지게 될 수도 있는 문제점이 있다.In addition, the checksum calculation method is different for each device for recording the firmware in the recording element 3, so even if the recorded contents are the same, the checksum may be different.

본 발명은 전술한 문제점을 해결하기 위해 안출된 것으로서, 기록 소자가 장착되어 있는 하드웨어 보드의 동작을 모니터하는 모니터 장치가 하드웨어 보드에 장착되어 사용자 인터페이스가 가능한 프로세서를 이용하여 기록 소자에 저장되어 있는 펌웨어의 체크섬을 계산함으로써, 서비스의 중단없이 온라인상에서 체크섬을 계산하여 기록 소자에 기록되어 있는 펌웨어의 버전을 검사할 수 있도록 하는 펌웨어 버전 검사 장치 및 방법을 제공함에 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem, and a monitor device for monitoring the operation of a hardware board on which a recording element is mounted is stored in the recording element using a processor equipped with a hardware board and equipped with a user interface. SUMMARY OF THE INVENTION An object of the present invention is to provide a firmware version checking apparatus and method for calculating a checksum online and checking a version of firmware recorded in a recording device by calculating a checksum.

도 1은 종래 펌웨어 버전 검사 방법을 설명하기 위한 도.1 is a view for explaining a conventional firmware version checking method.

도 2는 본 발명에 따른 펌웨어 버전 검사 장치의 구성을 보인 도.Figure 2 is a diagram showing the configuration of the firmware version checking apparatus according to the present invention.

도 3은 본 발명에 따른 펌웨어 버전 검사 방법을 설명하기 위한 플로우챠트.3 is a flowchart illustrating a firmware version checking method according to the present invention.

*** 도면의 주요 부분에 대한 부호의 설명 ****** Explanation of symbols for the main parts of the drawing ***

10. 기록 장치,20. 기록 소자,10. recording device, 20. Recording element,

30. 하드웨어 보드,40. 하드웨어 프로세서,30. Hardware board, 40. Hardware processor,

50. 모니터 장치50. Monitor device

전술한 목적을 달성하기 위한 본 발명에 따른 펌웨어 버전 검사 장치는, 펌웨어가 기록되어 하드웨어 보드에 장착되는 기록 소자와; 상기 하드웨어 보드의 동작을 모니터하며, 상기 하드웨어 보드에 장착되어 있는 기록 소자에 업그레이드된 펌웨어를 기록하고, 상기 기록 소자에 기록되어 있는 펌웨어의 버전을 검사하는 모니터 장치와; 상기 하드웨어 보드에 장착되어 온라인으로 연결되어 있는 상기 모니터 장치로부터 전달받은 펌웨어 버전 검사 명령에 따라 상기 기록 소자에 기록되어 있는 펌웨어를 읽어들여 상기 펌웨어의 체크섬을 계산하는 프로세서를 구비하여 이루어진다.According to an aspect of the present invention, a firmware version checking apparatus includes: a recording device in which firmware is recorded and mounted on a hardware board; A monitor device for monitoring the operation of the hardware board, recording upgraded firmware on a recording device mounted on the hardware board, and checking a version of the firmware recorded on the recording device; And a processor that reads the firmware recorded in the recording device and calculates a checksum of the firmware according to a firmware version checking command received from the monitor device connected to the hardware board and connected online.

한편, 본 발명에 따른 펌웨어 버전 검사 방법은, 온라인으로 연결되어 있는 모니터 장치로부터 펌웨어 버전 검사 명령을 전달받는 과정과; 상기 전달받은 펌웨어 버전 검사 명령에 의거하여 기록 소자에 기록되어 있는 펌웨어를 읽어 들이면서 상기 펌웨어의 체크섬 값을 계산하는 과정과; 상기 계산된 체크섬 값을 상기 모니터 장치로 전달하는 과정을 포함하여 이루어진다.On the other hand, the firmware version check method according to the present invention, the process of receiving a firmware version check command from a monitor device connected online; Calculating a checksum value of the firmware while reading firmware recorded in a recording device based on the received firmware version check command; And transmitting the calculated checksum value to the monitor device.

여기서, 상기 펌웨어의 체크섬 값을 계산하는 과정은, 체크섬을 검사할 데이터의 포인트 주소를 펌웨어가 기록되어 있는 기록 소자의 시작 주소로 초기화하고, 체크섬이 계산될 체크섬 변수을 초기화하는 과정과; 상기 포인트 주소가 가르키는 주소에 기록되어 있는 데이터를 읽어오는 과정과; 상기 읽어온 데이터가 유효한 값인 지를 판단하는 과정과; 상기 판단결과 상기 읽어온 데이터가 유효한 값인 경우에는 상기 체크섬 변수를 1증가시키고, 상기 포인트 주소가 상기 기록 소자의 마지막 주소인 지를 판단하는 과정과; 상기 판단결과 상기 포인트 주소가 상기 기록 소자의 마지막 주소가 아닌 경우에는, 상기 포인트 주소를 1증가시키고, 상기 포인트 주소가 가르키는 주소에 기록되어 있는 데이터를 읽어오는 과정으로 회귀하는 과정으로 이루어지는 것을 특징으로 한다.The calculating of the checksum value of the firmware may include: initializing the point address of the data to be checked for the checksum to the start address of the recording element in which the firmware is recorded, and initializing the checksum variable for which the checksum is calculated; Reading data recorded at an address indicated by the point address; Determining whether the read data is a valid value; If the read data is a valid value, increasing the checksum variable by one and determining whether the point address is the last address of the recording element; If the point address is not the last address of the recording element as a result of the determination, the point address is increased by one, and the process of returning to reading the data recorded at the address indicated by the point address is performed. It is done.

그리고, 상기 판단결과 상기 읽어들인 데이터가 유효한 값이 아닌 경우에는, 상기 포인트 주소가 상기 기록 소자의 마지막 주소인 지를 판단하는 과정과; 상기 판단결과 상기 포인트 주소가 상기 기록 소자의 마지막 주소가 아닌 경우에는, 상기 포인트 주소를 1증가시키고, 상기 포인트 주소가 가르키는 주소에 기록되어 있는 데이터를 읽어오는 과정으로 회귀하는 과정을 더 포함하여 이루어지는 것을 특징으로 한다.And if the read data is not a valid value, determining whether the point address is the last address of the recording element; And if the point address is not the last address of the recording element, increasing the point address by 1 and returning to reading the data recorded at the address indicated by the point address. Characterized in that made.

그리고, 상기 판단결과 상기 포인트 주소가 상기 기록 소자의 마지막 주소인 경우에는, 체크섬 값의 계산을 종료시키는 과정을 더 포함하여 이루어지는 것을 특징으로 한다.And if the point address is the last address of the recording element, further comprising the step of terminating the calculation of the checksum value.

이하에서는 첨부한 도면을 참조하여 본 발명의 바람직한 실시예에 따른 펌웨어 버전 검사 장치 및 방법에 대해서 상세하게 설명한다.Hereinafter, an apparatus and method for checking a firmware version according to an exemplary embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 따른 펌웨어 버전 검사 장치의 구성을 보인 도로, 기록 소자(20)와, 하드웨어 프로세서(40)와, 모니터 장치(50)를 구비하여 이루어진다.2 is provided with a road, a recording element 20, a hardware processor 40, and a monitor device 50 showing the configuration of the firmware version checking apparatus according to the present invention.

이와 같은 구성에 있어서, 기록 소자(20)는 펌웨어가 기록되어 하드웨어 보드(30)에 장착되는 것으로, EPROM이나, 플래쉬 메모리 등과 같이 기록이 가능한 소자로 구성된다.In such a configuration, the recording element 20 is mounted on the hardware board 30 with the firmware recorded thereon, and is composed of an element capable of recording such as an EPROM, a flash memory, or the like.

전술한, 기록 소자(20)에 펌웨어가 기록됨에 있어서, 초기에는 ROM 라이터 등과 같은 별도의 기록 장치(10)에 의해 펌웨어가 기록 소자(20)에 기록된다.When the firmware is recorded in the recording element 20 described above, the firmware is initially recorded in the recording element 20 by a separate recording device 10 such as a ROM writer or the like.

전술한 바와 같이, 기록 장치(10)에 의해 기록 소자(20)에 펌웨어가 기록될 때 기록 장치(10)의 모니터 상에 펌웨어의 체크섬 값이 디스플레이되는 데, 작업자는 기록 장치(10)의 모니터 상에 디스플레이되는 펌웨어의 체크섬 값을 기록 소자(20)의 하드웨어 보드(30) 상의 위치 번호 및 그 밖의 필요한 특이 사항과 함께 기록하여 기록 소자(20)의 표면에 붙인 후, 해당 기록 장치(10)를 하드웨어 보드(30)에 초기 장착시킨다.As described above, when the firmware is recorded on the recording element 20 by the recording device 10, the checksum value of the firmware is displayed on the monitor of the recording device 10, and the operator monitors the recording device 10. The checksum value of the firmware displayed on the recording is recorded together with the position number on the hardware board 30 of the recording element 20 and other necessary specificities and pasted on the surface of the recording element 20, and then the corresponding recording device 10 Is initially mounted on the hardware board 30.

한편, 하드웨어 프로세서(40)는 CPU(Central Processing Unit) 같이 사용자 인터페이스가 가능한 프로세서로, 기록 소자(20)가 장착된 하드웨어 보드(30)에 장착되어 모니터 장치(50)로부터 인가받은 펌웨어 버전 검사 명령에 의거하여 기록 소자(20)에 기록되어 있는 펌웨어의 체크섬을 계산한다.The hardware processor 40 is a processor capable of a user interface such as a central processing unit (CPU). The hardware processor 40 is mounted on a hardware board 30 on which the recording element 20 is mounted, and is provided with a firmware version test command received from the monitor device 50. Based on the calculation, the checksum of the firmware recorded in the recording element 20 is calculated.

전술한 바와 같이, 하드웨어 프로세서(40)가 펌웨어 버전 검사 명령에 따라 체크섬을 계산하는 이유는, 펌웨어의 버전이 기록 소자에 기록되는 펌웨어의 체크섬과 연과되어 관리되기 때문이다.As described above, the reason why the hardware processor 40 calculates the checksum according to the firmware version check command is that the version of the firmware is associated with and managed with the checksum of the firmware recorded in the recording element.

여기서, 기록 소자(20)와 하드웨어 프로세서(40)가 어드레스 버스 및 데이터 버스를 통해 직접 연결되어 있는 경우에는, 모니터 장치(50)로부터 인가받은 펌웨어 버전 검사 명령에 따라 하드웨어 프로세서(40)가 기록 소자(20)와 연결되어 있는 어드레스 버스 및 데이터 버스를 이용하여 기록 소자(20)에 기록되어 있는 펌웨어를 읽어, 기록 소자(20)에 기록되어 있는 펌웨어의 체크섬을 계산한다.Here, when the recording device 20 and the hardware processor 40 are directly connected through the address bus and the data bus, the hardware processor 40 may record the recording device according to the firmware version check command received from the monitor device 50. The firmware recorded in the recording element 20 is read using the address bus and the data bus connected to 20 to calculate a checksum of the firmware recorded in the recording element 20.

그리고, 기록 소자(20)와 하드웨어 프로세서(40)가 어드레스 버스 및 데이터 버스를 통해 직접 연결되어 있지 않은 경우에는, 하드웨어 프로세서(40)와 기록 소자(20)를 정합해주는 인터페이스부(미도시)를 구성하여 하드웨어 프로세서(40)와 기록 소자(20)를 간접적으로 연결시켜 주어, 하드웨어 프로세서(40)가 모니터 장치(50)로부터 인가받은 펌웨어 버전 검사 명령에 따라 인터페이스부(미도시)를 통해 기록 소자(20)에 저장되어 있는 펌웨어를 읽어, 기록 소자(20)에 기록되어 있는 펌웨어의 체크섬을 계산할 수 있도록 한다.When the recording element 20 and the hardware processor 40 are not directly connected through an address bus and a data bus, an interface unit (not shown) for matching the hardware processor 40 and the recording element 20 may be provided. And indirectly connects the hardware processor 40 and the recording element 20, the hardware processor 40 in accordance with the firmware version check command received from the monitor device 50 through the interface unit (not shown) The firmware stored in the memory 20 is read to calculate the checksum of the firmware recorded in the recording element 20.

모니터 장치(50)는 하드웨어 프로세서(40)와 온라인으로 연결되어, 하드웨어프로세서(40)를 통해 기록 소자(20)에 기록되어 있는 펌웨어의 버전을 검사한다. 즉, 모니터 장치(50)는 기록 소자(20)에 기록되어 있는 펌웨어의 버전을 확인하기 위해 펌웨어의 버전을 검사하라는 명령을 온라인으로 연결되어 있는 하드웨어 프로세서(40)로 전달하고, 펌웨어 버전 검사 명령에 따라 기록 소자(20)에 기록되어 있는 펌웨어의 체크섬을 계산한 하드웨어 프로세서(40)로부터 계산된 체크섬 값을 전달받아 기록 소자(20)에 기록되어 있는 펌웨어의 버전을 확인한다.The monitor device 50 is connected to the hardware processor 40 online, and checks the version of the firmware recorded in the recording device 20 through the hardware processor 40. That is, the monitor device 50 transmits a command to check the version of the firmware to check the version of the firmware recorded in the recording element 20 to the hardware processor 40 connected online, and the firmware version check command As a result, the checksum value calculated from the hardware processor 40 that calculates the checksum of the firmware recorded in the recording element 20 is received, and the version of the firmware recorded in the recording element 20 is confirmed.

또한, 모니터 장치(50)는 온라인으로 연결되어 있는 하드웨어 프로세서(40)를 통해 하드웨어 보드(30)의 동작을 모니터하며, 하드웨어 보드(30)에 장착되어 있는 기록 소자(20)에 업그레이드된 펌웨어를 기록한다.In addition, the monitor device 50 monitors the operation of the hardware board 30 through the hardware processor 40 connected online, and upgrades the firmware to the recording device 20 mounted on the hardware board 30. Record it.

도 3은 본 발명에 따른 펌웨어 버전 검사 방법을 설명하기 위한 플로우챠트이다.3 is a flowchart illustrating a firmware version checking method according to the present invention.

우선, 시스템 운용자는 소정 하드웨어 보드(30)에 장착되어 있는 기록 소자(20)에 기록된 펌웨어의 버전을 검사하기 위해 모니터 장치(50)를 통해 펌웨어의 버전을 검사하라는 명령을 입력하여 온라인상으로 연결되어 있는 하드웨어 프로세서(40)로 인가한다.First, the system operator inputs a command to check the version of the firmware through the monitor device 50 to check the version of the firmware recorded on the recording device 20 mounted on the predetermined hardware board 30, and then online. It is applied to the hardware processor 40 which is connected.

전술한 바와 같이, 하드웨어 프로세서(40)에서 온라인상으로 연결되어 있는 모니터 장치(50)로부터 펌웨어 버전 검사 명령을 전달받으면(S10), 기록 소자(20)에 기록되어 있는 펌웨어를 읽어 들이면서 체크섬 값을 계산하는 데, 우선, 체크섬을 검사할 데이터의 포이트 주소(pStart)를 펌웨어가 기록되어 있는 기록 소자(20)의 시작 주소(START_ADDR)로 초기화하고, 체크섬이 계산될 체크섬 변수(Chksum)을'0'으로 초기화한다(S12).As described above, when the firmware version check command is received from the monitor device 50 connected online in the hardware processor 40 (S10), the checksum value is read while reading the firmware recorded in the recording device 20. First, initializing the point address (pStart) of the data to check the checksum to the start address (START_ADDR) of the recording element 20, the firmware is recorded, and check the checksum variable (Chksum) to be calculated check ' Initialize to 0 '(S12).

이후, 체크섬을 검사할 데이터의 포인트 주소(pStart)가 가르키는 주소에 기록되어 있는 데이터를 읽어오고, 읽어온 데이터가 유효한 값인 지를 판단한다(S14, S16).Thereafter, the data recorded at the address indicated by the point address pStart of the data to be checked is read, and it is determined whether the read data is a valid value (S14 and S16).

상기한 과정 S16에서 상기한 과정 S14에서 읽어들인 데이터가 유효한 값인 지를 판단하는 이유는, 펌웨어가 기록되어 있는 기록 소자(20)의 쓰지 않는 영역에 예상치 못했던 데이터가 들어가 체크섬 값이 달라지는 것을 방지하기 위해, 펌웨어 기록시에 쓰지 않는 영역에 무의미한 값, 예를 들어, '0'을 채워넣었기 때문이다.The reason for determining whether the data read in the process S14 is a valid value in the process S16 is to prevent unexpected data from entering the unwritten area of the recording element 20 in which the firmware is written, and thus changing the checksum value. This is because a meaningless value, for example, '0' is filled in an area not used during firmware writing.

상기한 과정 S16의 판단결과 상기한 과정 S에서 읽어들인 데이터가 유효한 값인 경우에는 체크섬 변수(Chksum)를 1증가시키고, 현재 포인트 주소(pStart)가 펌웨어가 기록되어 있는 기록 소자(20)의 마지막 주소(END_ADDR)인 지를 판단한다(S18, S20).As a result of the determination of step S16, if the data read in step S16 is a valid value, the checksum variable Chksum is increased by one, and the current address address pStart is the last address of the recording device 20 in which the firmware is recorded. It is determined whether or not (END_ADDR) (S18, S20).

상기한 과정 S20의 판단결과 현재 포인트 주소가 기록 소자(20)의 마지막 주소가 아닌 경우에는, 포인트 주소를 1증가시키고(S22), 상기한 과정 S14로 진행하여 포인트 주소가 가르키는 주소에 기록되어 있는 데이터를 읽어온다.If the current point address is not the last address of the recording element 20 as a result of the determination of step S20, the point address is increased by one (S22), and the process proceeds to step S14 described above and is recorded in the address indicated by the point address. Read the existing data.

한편, 상기한 과정 S20의 판단결과 현재 포인트 주소가 기록 소자(20)의 마지막 주소인 경우에는, 체크섬 값의 계산을 종료한다(S22).On the other hand, when the present point address is the last address of the recording element 20, the calculation of the checksum value is terminated (S22).

한편, 상기한 과정 S16의 판단결과 상기한 과정 S14에서 읽어들인 데이터가 유효한 값이 아닌 경우에는, 상기한 과정 S20로 진행하여 현재 포인트 주소(pStart)가 펌웨어가 기록되어 있는 기록 소자(20)의 마지막 주소(END_ADDR)인지를 판단한다.On the other hand, if the data read in step S14 is not a valid value as a result of the determination in step S16, the process proceeds to step S20 and the current point address (pStart) of the recording element 20 in which the firmware is recorded. Determine whether it is the last address (END_ADDR).

상기한 과정 S20의 판단결과 현재 포인트 주소가 기록 소자(20)의 마지막 주소가 아닌 경우에는, 상기한 과정 S22로 진행하여 포인트 주소를 1증가시키고, 상기한 과정 S20의 판단결과 현재 포인트 주소가 기록 소자(20)의 마지막 주소인 경우에는, 상기한 과정 S24로 진행하여 체크섬 값의 계산을 종료한다.If the current point address is not the last address of the recording element 20 as a result of the determination of step S20, the process proceeds to step S22 described above and increases the point address by one. As a result of the determination of step S20, the current point address is recorded. In the case of the last address of the element 20, the process proceeds to step S24 described above and ends the calculation of the checksum value.

이후, 하드웨어 프로세서(40)는 상기한 과정 S12 내지 과정 S22를 통해 계산된 체크섬 값을 온라인으로 연결되어 있는 모니터 장치(50)로 전송한다(S26).Thereafter, the hardware processor 40 transmits the checksum value calculated through the above steps S12 to S22 to the monitor device 50 connected online (S26).

상기한 과정 S26에서 온라인으로 연결되어 있는 하드웨어 프로세서(40)로부터 체크섬 값을 전달받은 모니터 장치(50)는 하드웨어 프로세서(40)로부터 전달받은 체크섬 값을 모니터 상에 디스플레이하여 하드웨어 보드(30)에 장착되어 있는 기록 소자(20)에 기록되어 있는 펌웨어의 버전을 운용자가 확인할 수 있도록 한다.The monitor device 50 that has received the checksum value from the hardware processor 40 connected online in step S26 displays the checksum value received from the hardware processor 40 on the monitor and mounts it on the hardware board 30. The operator can check the version of the firmware recorded in the recording element 20.

여기서, 펌웨어가 기록되어 있는 기록 소자(20)가 하드웨어 프로세서(40)와 어드레스 버스 및 데이터 버스로 직접 연결되어 있는 경우에, 하드웨어 프로세서(40)는 기록 소자(20)와 직접 연결되어 있는 어드레스 버스 및 데이터 버스를 이용하여 기록 소자(20)에 기록되어 있는 펌웨어를 읽어 들여 기록 소자(20)에 기록되어 있는 펌웨어의 체크섬 값을 계산한다.Here, when the recording element 20 in which the firmware is recorded is directly connected to the hardware processor 40 by the address bus and the data bus, the hardware processor 40 is directly connected to the recording element 20 by the address bus. And the checksum value of the firmware recorded in the recording element 20 by reading the firmware recorded in the recording element 20 using the data bus.

한편, 기록 소자(20)가 하드웨어 프로세서(40)와 어드레스 버스 및 데이터 버스로 직접 연결되어 있지 않은 경우에는, 하드웨어 프로세서(40)와 기록 소자(20)를 정합해주는 인터페이스부(미도시)를 구성하여 하드웨어 프로세서(40)와 기록 소자(20)를 간접적으로 연결시켜 주어, 하드웨어 프로세서(40)가 인터페이스부(미도시)를 통해 기록 소자(20)에 기록되어 있는 펌웨어를 읽어 들여 기록 소자(20)에 기록되어 있는 펌웨어의 체크섬 값을 계산할 수 있도록 한다.On the other hand, when the recording element 20 is not directly connected to the hardware processor 40 by the address bus and the data bus, an interface unit (not shown) for matching the hardware processor 40 and the recording element 20 is configured. The hardware processor 40 and the recording element 20 are indirectly connected to each other so that the hardware processor 40 reads the firmware recorded in the recording element 20 through an interface unit (not shown). The checksum value of the firmware recorded in the

본 발명의 펌웨어 검사 장치 및 방법은 전술한 실시예에 국한되지 않고 본 발명의 기술 사상이 허용하는 범위 내에서 다양하게 변형하여 실시할 수 있다.The firmware inspection apparatus and method of the present invention is not limited to the above-described embodiments, and may be variously modified and implemented within the range allowed by the technical idea of the present invention.

이상에서 설명한 바와 같은 본 발명의 펌웨어 검사 장치 및 방법에 따르면, 기록 소자가 장착되어 있는 하드웨어 보드의 동작을 모니터하는 모니터 장치가 하드웨어 보드에 장착되어 있는 사용자 인터페이스가 가능한 프로세서를 이용하여 기록 소자에 저장되어 있는 펌웨어의 체크섬을 계산함으로써, 서비스의 중단없이 온라인상에서 체크섬을 계산하여 기록 소자에 기록되어 있는 펌웨어의 버전을 검사할 수 있게 된다.According to the firmware inspection apparatus and method of the present invention as described above, the monitor device for monitoring the operation of the hardware board equipped with the recording element is stored in the recording element using a processor capable of a user interface mounted on the hardware board By calculating the checksum of the firmware which has been made, it is possible to check the version of the firmware recorded in the recording element by calculating the checksum online without interruption of service.

Claims (5)

펌웨어가 기록되어 하드웨어 보드에 장착되는 기록 소자와;A recording element in which firmware is recorded and mounted on a hardware board; 상기 하드웨어 보드의 동작을 모니터하며, 상기 하드웨어 보드에 장착되어 있는 기록 소자에 업그레이드된 펌웨어를 기록하고, 상기 기록 소자에 기록되어 있는 펌웨어의 버전을 검사하는 모니터 장치와;A monitor device for monitoring the operation of the hardware board, recording upgraded firmware on a recording device mounted on the hardware board, and checking a version of the firmware recorded on the recording device; 상기 하드웨어 보드에 장착되어 온라인으로 연결되어 있는 상기 모니터 장치로부터 전달받은 펌웨어 버전 검사 명령에 따라 상기 기록 소자에 기록되어 있는 펌웨어를 읽어들여 상기 펌웨어의 체크섬을 계산하는 프로세서를 구비하여 이루어지는 펌웨어 버전 검사 장치.And a processor for reading the firmware recorded in the recording element and calculating a checksum of the firmware according to a firmware version checking command received from the monitor device connected to the hardware board and connected online. . 온라인으로 연결되어 있는 모니터 장치로부터 펌웨어 버전 검사 명령을 전달받는 과정과;Receiving a firmware version check command from a monitor device connected online; 상기 전달받은 펌웨어 버전 검사 명령에 의거하여 기록 소자에 기록되어 있는 펌웨어를 읽어 들이면서 상기 펌웨어의 체크섬 값을 계산하는 과정과;Calculating a checksum value of the firmware while reading firmware recorded in a recording device based on the received firmware version check command; 상기 계산된 체크섬 값을 상기 모니터 장치로 전달하는 과정을 포함하여 이루어지는 펌웨어 버전 검사 방법.And transmitting the calculated checksum value to the monitor device. 제 2항에 있어서, 상기 펌웨어의 체크섬 값을 계산하는 과정은,The method of claim 2, wherein the calculating of the checksum value of the firmware comprises: 체크섬을 검사할 데이터의 포인트 주소를 펌웨어가 기록되어 있는 기록 소자의 시작 주소로 초기화하고, 체크섬이 계산될 체크섬 변수을 초기화하는 과정과;Initializing the point address of the data to be checked for the checksum to the start address of the recording element in which the firmware is recorded, and initializing the checksum variable for which the checksum is to be calculated; 상기 포인트 주소가 가르키는 주소에 기록되어 있는 데이터를 읽어오는 과정과;Reading data recorded at an address indicated by the point address; 상기 읽어온 데이터가 유효한 값인 지를 판단하는 과정과;Determining whether the read data is a valid value; 상기 판단결과 상기 읽어온 데이터가 유효한 값인 경우에는 상기 체크섬 변수를 1증가시키고, 상기 포인트 주소가 상기 기록 소자의 마지막 주소인 지를 판단하는 과정과;If the read data is a valid value, increasing the checksum variable by one and determining whether the point address is the last address of the recording element; 상기 판단결과 상기 포인트 주소가 상기 기록 소자의 마지막 주소가 아닌 경우에는, 상기 포인트 주소를 1증가시키고, 상기 포인트 주소가 가르키는 주소에 기록되어 있는 데이터를 읽어오는 과정으로 회귀하는 과정으로 이루어지는 것을 특징으로 하는 펌웨어 버전 검사 방법.If the point address is not the last address of the recording element as a result of the determination, the point address is increased by one, and the process of returning to reading the data recorded at the address indicated by the point address is performed. To check the firmware version. 제 3항에 있어서, 상기 판단결과 상기 읽어들인 데이터가 유효한 값이 아닌 경우에는,The method of claim 3, wherein when the determined result is that the read data is not a valid value, 상기 포인트 주소가 상기 기록 소자의 마지막 주소인 지를 판단하는 과정과;Determining whether the point address is the last address of the recording element; 상기 판단결과 상기 포인트 주소가 상기 기록 소자의 마지막 주소가 아닌 경우에는, 상기 포인트 주소를 1증가시키고, 상기 포인트 주소가 가르키는 주소에 기록되어 있는 데이터를 읽어오는 과정으로 회귀하는 과정을 더 포함하여 이루어지는 것을 특징으로 하는 펌웨어 버전 검사 방법.And if the point address is not the last address of the recording element, increasing the point address by 1 and returning to reading the data recorded at the address indicated by the point address. Method for checking the firmware version, characterized in that made. 제 3항 또는 제 4항에 있어서, 상기 판단결과 상기 포인트 주소가 상기 기록 소자의 마지막 주소인 경우에는,The method according to claim 3 or 4, wherein when the determination result indicates that the point address is the last address of the recording element, 체크섬 값의 계산을 종료시키는 과정을 더 포함하여 이루어지는 것을 특징으로 하는 펌웨어 버전 검사 방법.And a step of terminating the calculation of the checksum value.
KR1020010062408A 2001-10-10 2001-10-10 Apparatus and Method for Firmware Version Checking KR20030029720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020010062408A KR20030029720A (en) 2001-10-10 2001-10-10 Apparatus and Method for Firmware Version Checking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020010062408A KR20030029720A (en) 2001-10-10 2001-10-10 Apparatus and Method for Firmware Version Checking

Publications (1)

Publication Number Publication Date
KR20030029720A true KR20030029720A (en) 2003-04-16

Family

ID=29564023

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020010062408A KR20030029720A (en) 2001-10-10 2001-10-10 Apparatus and Method for Firmware Version Checking

Country Status (1)

Country Link
KR (1) KR20030029720A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040008007A (en) * 2002-07-15 2004-01-28 에임텍 주식회사 Method of upgrading firmware for wireless terminal
KR100681657B1 (en) * 2004-12-20 2007-02-09 주식회사 대우일렉트로닉스 Method for testing firmware version of loader in dvd player
KR100782807B1 (en) * 2003-02-11 2007-12-06 삼성전자주식회사 Chacksum calculation method and checksum confirmation apparatus thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040008007A (en) * 2002-07-15 2004-01-28 에임텍 주식회사 Method of upgrading firmware for wireless terminal
KR100782807B1 (en) * 2003-02-11 2007-12-06 삼성전자주식회사 Chacksum calculation method and checksum confirmation apparatus thereof
KR100681657B1 (en) * 2004-12-20 2007-02-09 주식회사 대우일렉트로닉스 Method for testing firmware version of loader in dvd player

Similar Documents

Publication Publication Date Title
US6275931B1 (en) Method and apparatus for upgrading firmware boot and main codes in a programmable memory
US20060288341A1 (en) Patch-impact assessment through runtime insertion of code path instrumentation
US20040143828A1 (en) Firmware updating method and related apparatus for checking content of replacing firmware before firmware updating
KR101448994B1 (en) (An) image display device for having a management function with firmware download history
US20010042243A1 (en) Arrangements having firmware support for different processor types
KR100694124B1 (en) Method and apparatus for upgrading driver of image forming apparuatus
EP1222534B1 (en) Dynamic detection of hardware configuration in a digital terminal
US8365161B2 (en) Compatibility determination apparatus and method for electronic apparatus
US5987625A (en) Method and apparatus for testing network bootable devices
CN100573714C (en) Rewritable nonvolatile memory, electronic equipment and rewrite method
US6697971B1 (en) System and method for detecting attempts to access data residing outside of allocated memory
KR20030029720A (en) Apparatus and Method for Firmware Version Checking
US6353927B1 (en) Data download technique into installed memory
CN106444730B (en) Diagnosis method of electronic control unit for preventing software from being dead
KR100484159B1 (en) Display device and method for upgrading firmware remotely
JP2001034822A (en) Controller for automatic vending machine
US20050034034A1 (en) Control device with rewriteable control data
KR20000042930A (en) Method for automatically downloading data files
JPH1011277A (en) Computer device with electrically rewritable nonvolatile memory and nonvolatile semiconductor memory
JP2001273143A (en) Electronic controller
JP4751542B2 (en) Measuring instrument
CN114860336B (en) System auditing mode implementation method based on PXE and electronic equipment
CN114443088A (en) Module upgrading method and device, electronic equipment and storage medium
JP2713583B2 (en) Electronics
KR940003495Y1 (en) Rom emulator

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination