KR100735774B1 - Data backup method for embedded system - Google Patents

Data backup method for embedded system Download PDF

Info

Publication number
KR100735774B1
KR100735774B1 KR1020050088593A KR20050088593A KR100735774B1 KR 100735774 B1 KR100735774 B1 KR 100735774B1 KR 1020050088593 A KR1020050088593 A KR 1020050088593A KR 20050088593 A KR20050088593 A KR 20050088593A KR 100735774 B1 KR100735774 B1 KR 100735774B1
Authority
KR
South Korea
Prior art keywords
backup
flash disk
data
file
flash
Prior art date
Application number
KR1020050088593A
Other languages
Korean (ko)
Other versions
KR20070034197A (en
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 KR1020050088593A priority Critical patent/KR100735774B1/en
Publication of KR20070034197A publication Critical patent/KR20070034197A/en
Application granted granted Critical
Publication of KR100735774B1 publication Critical patent/KR100735774B1/en

Links

Images

Classifications

    • 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/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • 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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1847File system types specifically adapted to static storage, e.g. adapted to flash memory or SSD

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

본 발명은 임베디드 시스템의 데이터 백업방법에 관한 것으로서, 운영체제 이미지 저장영역과 램디스크 이미지 저장영역이 할당된 플래시메모리에 백업데이터의 저장을 위한 플래시디스크 영역을 할당하는 단계와; 상기 플래시디스크 영역을 포맷하는 단계와; 상기 플래시디스크 영역에 저장되는 백업데이터를 파일 및 디렉토리 구조로 관리하기 위한 파일시스템을 상기 운영체제의 커널에 등록하는 단계와; 상기 플래시디스크에 백업하고자 하는 데이터를 블록 단위로 저장하는 단계를 포함하는 것을 특징으로 한다. 이에 의해, 별도의 하드웨어적인 변경 없이 데이터 백업을 위한 메모리 공간을 확보할 수 있다.The present invention relates to a data backup method of an embedded system, comprising: allocating a flash disk area for storing backup data to a flash memory to which an operating system image storage area and a ram disk image storage area are allocated; Formatting the flash disk area; Registering a file system for managing backup data stored in the flash disk area in a file and directory structure in a kernel of the operating system; And storing data to be backed up on the flash disk in block units. As a result, a memory space for data backup can be secured without any hardware change.

Description

임베디드 시스템의 데이터 백업방법{DATA BACKUP METHOD FOR EMBEDDED SYSTEM}DATA BACKUP METHOD FOR EMBEDDED SYSTEM}

도 1은 종래의 임베디드 시스템의 백업메모리 관리 상태도,1 is a backup memory management state diagram of a conventional embedded system;

도 2는 종래의 임베디드 시스템의 서브 보드 교환 상태도,2 is a state diagram of the sub-board exchange of the conventional embedded system,

도 3은 본 발명에 따른 임베디드 시스템의 백업메모리 관리 상태도,3 is a backup memory management state diagram of an embedded system according to the present invention;

도 4는 본 발명에 따른 임베디드 시스템의 서브 보드 교환 상태도이다.4 is a diagram illustrating a sub-board exchange state of the embedded system according to the present invention.

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

30 : NVRAM(Non Volatile RAM) 30: Non Volatile RAM (NVRAM)

32 : SDRAM(Synchronous Dynamic RAM)32: Synchronous Dynamic RAM

34 : 커널 36 : RAM디스크34: kernel 36: RAM disk

38 : 플래시디스크 41 : MCU 메인38: flash disk 41: MCU main

43 : MCU 서브 50 : 서비스보드 43: MCU Sub 50: Service Board

본 발명은 임베디드 시스템의 데이터 백업방법에 관한 것으로서, 특히, 별도의 하드웨어적인 변경 없이 데이터 백업을 위한 메모리 공간을 확보할 수 있도록 하는 한편, MCU 서브 보드의 교체 시 백업데이터가 유실되는 것을 방지할 수 있도록 하는 임베디드 시스템의 데이터 백업방법에 관한 것이다.The present invention relates to a data backup method of an embedded system, and in particular, it is possible to secure a memory space for data backup without a separate hardware change, and to prevent the loss of backup data when replacing the MCU sub-board. The present invention relates to a data backup method of an embedded system.

임베디드 시스템(Embedded System)은 이란 미리 정해진 특정 기능을 수행하기 위해 프로세서를 내장하여 장치를 조작하는 제어시스템으로서, 각종 전자기기, 가전제품, 기계장치 등의 기능을 제어하는데 사용된다. 이에, MCU(Main Control Unit)와 그 MCU를 구동하여 특정한 기능을 수행하도록 프로그램을 탑재함으로써 해당 장치의 용도에 맞는 기본적인 컴퓨팅 능력을 가지고 그 용도에 맞는 애플리케이션을 이용하여 제어동작을 수행하게 된다. 이에, 임베디드 시스템은 크기가 적은 메모리를 사용함으로써, 단가를 낮추고 하드웨어의 크기를 최소화하면서 성능이 최적화 되도록 구현하여야 한다.An embedded system is a control system for manipulating a device with a built-in processor to perform a predetermined function. The embedded system is used to control various electronic devices, home appliances, and mechanical devices. Thus, by mounting a program to perform a specific function by driving the MCU (Main Control Unit) and the MCU to have a basic computing ability for the purpose of the device and to perform a control operation using an application for that purpose. Therefore, the embedded system should be implemented to optimize performance while lowering the unit cost and minimizing the size of the hardware by using a small memory size.

이러한, 임베디드 시스템은 임베디드 리눅스(Embedded Linux)를 OS(운영체제)로 하고, 운영체제와 프로그램을 저장하기 위해 대용량의 하드디스크를 쓰지 아니하고, 메모리장치를 통해 프로그램과 리소스를 관리한다.Such an embedded system manages programs and resources through a memory device without using a large-capacity hard disk to store an operating system and an embedded Linux as an operating system (OS).

도 1은 종래의 임베디드 시스템의 백업메모리 관리 상태도이다. 도 1에 도시된 바와 같이, 종래의 임베디드 시스템은 휘발성 메모리인 SDRAM(Synchronous Dynamic RAM)(5)을 통해 애플리케이션과 리소스를 관리하는 한편, 비휘발성 메모리인 플래시메모리(Fresh Memory) 및 NVRAM(Non Volatile RAM)(3) 등을 이용하여 백업데이터를 관리한다.1 is a backup memory management state diagram of a conventional embedded system. As shown in FIG. 1, a conventional embedded system manages applications and resources through synchronous memory (Synchronous Dynamic RAM) 5, which is volatile memory, while non-volatile memory (Fresh Memory) and NVRAM (Non Volatile). RAM) 3 to manage the backup data.

플래시메모리에는 리눅스 운영체제를 동작시키기 위해서 리눅스 커널(7)과 RAM디스크 이미지(9)가 탑재되며, 캐릭터 디바이스 드라이버(Char Device Driver, CDD)를 통해 1Byte 씩 읽기/쓰기가 수행된다. 그리고, 백업데이터가 발생할 경우 128K bytes 크기의 NVRAM(3)에 캐릭터 디바이스 드라이버(Char Device Driver, CDD)를 통해 저장된다. 이러한 백업데이터 관리를 위한 구성은 모두 메인 MCU(Main Control Unit) 상에 구현되어, 메인 MCU에서 백업데이터가 저장된 NVRAM(3)을 통합 관리하는 구조를 갖는다. 이에, 로딩 시에는 NVRAM(3)으로부터 백업데이터를 읽어 들여 이것을 사용하여 시스템을 초기화하였다.The flash memory includes a Linux kernel (7) and a RAM disk image (9) to operate the Linux operating system, and read / write data is performed by 1 byte through a character device driver (CDD). When backup data is generated, it is stored in a 128K bytes NVRAM 3 through a character device driver (CDD). All of the configuration for the backup data management is implemented on the main MCU (Main Control Unit), has a structure to integrate management of the NVRAM (3) stored the backup data in the main MCU. Therefore, at the time of loading, backup data was read from NVRAM 3 and the system was initialized using this.

그런데, 임베디드 시스템에서는 OS 이미지인 커널(7) 및 RAM디스크(9)가 저장되는 플래시메모리(16M bytes)와, SDRAM(120M bytes)(5)과, 그리고 백업을 위한 NVRAM(128K bytes)(3)의 사양을 한정된 크기의 MCU 보드에서 구현하므로, 데이터 백업을 위한 용량이 충분치 않다는 문제점이 있다. 또한, RAM디스크(9) 등의 메모리 액세스가 CDD로 구현되어 프로그래밍 기능성 측면에서 비효율적이라는 문제점이 있다.In an embedded system, however, a flash memory (16M bytes) in which an OS image kernel (7) and a RAM disk (9) are stored, an SDRAM (120M bytes) (5), and an NVRAM (128K bytes) (3) for backup (3) ) Is implemented in a limited size MCU board, so the capacity for data backup is insufficient. In addition, there is a problem that memory access such as the RAM disk 9 is implemented by CDD, which is inefficient in terms of programming functionality.

도 2는 종래의 임베디드 시스템의 MCU 서브보드 절체 상태도이다. 소정의 MCU메인보드(11) 상의 MCU 서브보드(13)를 교체하는 경우 백업데이터는 NVRAM(15)에 저장된다. 그런데, NVRAM(15)은 MCU 상에서 관리되고 보드 자체가 이중화 구조가 아니므로 MCU 서브보드(13) 교체 시 백업데이터가 저장된 NVRAM(15) 또한 탈장된다. 따라서, 서브 MCU보드를 교체하는 경우엔 모든 백업데이터가 유실되므로 새로이 시스템을 인스톨해야 하므로 서비스 재개를 위한 시간이 지연된다는 문제점이 있다.2 is a state diagram of MCU sub-board switching of the conventional embedded system. In the case of replacing the MCU subboard 13 on the predetermined MCU main board 11, the backup data is stored in the NVRAM 15. However, since the NVRAM 15 is managed on the MCU and the board itself is not a redundant structure, when the MCU subboard 13 is replaced, the NVRAM 15 in which the backup data is stored is also removed. Therefore, when replacing the sub-MCU board, all backup data is lost, so there is a problem that the time for resuming the service is delayed because a new system must be installed.

본 발명은 전술한 문제점을 해결하기 위해 안출 된 것으로서, 별도의 하드웨어적인 변경 없이 데이터 백업을 위한 메모리 공간을 확보할 수 있도록 하는 한편, MCU 서브 보드의 교체 시 백업데이터가 유실되는 것을 방지할 수 있도록 하는 임베디드 시스템의 데이터 백업방법을 제공함에 그 목적이 있다.The present invention has been made to solve the above-described problems, to ensure the memory space for data backup without additional hardware changes, and to prevent the backup data is lost when replacing the MCU sub-board The purpose is to provide a data backup method of the embedded system.

전술한 목적을 달성하기 위한 본 발명에 따른 임베디드 시스템의 데이터 백업방법은, 운영체제 이미지 저장영역과 램디스크 이미지 저장영역이 할당된 플래시메모리에 백업데이터의 저장을 위한 플래시디스크 영역을 할당하는 단계와; 상기 플래시디스크 영역을 포맷하는 단계와; 상기 플래시디스크 영역에 저장되는 백업데이터를 파일 및 디렉토리 구조로 관리하기 위한 파일시스템을 상기 운영체제의 커널에 등록하는 단계; 상기 플래시디스크에 백업하고자 하는 데이터를 블록 단위로 저장하는 단계를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a data backup method of an embedded system, the method including: allocating a flash disk area for storing backup data to a flash memory to which an operating system image storage area and a ram disk image storage area are allocated; Formatting the flash disk area; Registering a file system for managing backup data stored in the flash disk area in a file and directory structure in the kernel of the operating system; And storing data to be backed up on the flash disk in block units.

여기서, 상기 플래시디스크에 상기 파일시스템으로서 JFFS2(Journaling flash file system version 2) 파일시스템을 탑재하는 단계를 포함하는 것이 가능하다.Here, it is possible to include the step of mounting a journaling flash file system version 2 (JFFS2) file system as the file system on the flash disk.

그리고, 상기 플래시디스크에 백업하고자 하는 데이터를 블록 단위로 저장하는 단계는, MTD(Memory Technology Devices)를 사용하여 상기 플래시디스크에 블록단위로 액세스하는 단계를 포함하는 것이 가능하다.The storing of data to be backed up on the flash disk in block units may include accessing the flash disk block by block using a memory technology device (MTD).

한편, 상기 플래시디스크에 저장된 백업데이터를 하나의 백업파일로 변환하는 단계와; 상기 백업파일을 FTP(File Transfer Protocol)방식을 이용하여 LAN(Local Area Network)으로 접속된 외부 장치의 메모리로 업로드 하는 단계와; 시스템 재부팅 시 상기 LAN으로 접속된 외부 장치로부터 상기 백업파일을 다운로드 받아 저장하는 단계를 포함하는 것이 가능하다.On the other hand, converting the backup data stored in the flash disk into a single backup file; Uploading the backup file to a memory of an external device connected to a local area network (LAN) using a file transfer protocol (FTP) method; It is possible to include the step of downloading and storing the backup file from the external device connected to the LAN at system reboot.

이하에서는 첨부한 도면을 참조하여 본 발명의 바람직한 실시예에 따른 임베디드 시스템의 데이터 백업방법에 대해서 상세하게 설명한다.Hereinafter, a data backup method of an embedded system according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 3은 본 발명에 따른 임베디드 시스템의 백업메모리 관리 상태도이다. 도 3에 도시된 바와 같이, 본 발명에서는 커널(34) 및 RAM디스크(36)가 저장되는 플래시메모리의 저장공간에 백업데이터의 저장을 위한 플래시디스크(38)를 할당하고 블록단위로 액세스하여 데이터를 전송 및 독출하도록 하고 있다.3 is a backup memory management state diagram of the embedded system according to the present invention. As shown in FIG. 3, in the present invention, a flash disk 38 for storing backup data is allocated to a storage space of a flash memory in which the kernel 34 and the RAM disk 36 are stored, and the data is accessed in units of blocks. To send and read.

전체 16M bytes의 플래시메모리인 경우 2M bytes는 커널#1(34), 커널#2로 할당하고 10M bytes는 RAM디스크#1(36), #2로 할당하여 4M bytes정도의 저장공간을 데이터 백업 공간으로 확보하여 플래시디스크(38)로 사용한다. 데이터 백업영역으로 할당된 플래시디스크(38) 영역에 대해서는 블록 디바이스에 접근할 때 사용되는 MTD(Memory Technology Devices)를 사용하여 액세스함으로써 플래시메모리를 하드디스크와 같이 이용할 수 있다. In case of total 16M bytes of flash memory, 2M bytes are allocated to Kernel # 1 (34) and Kernel # 2, and 10M bytes are allocated to RAM Disk # 1 (36) and # 2. To be used as a flash disk 38. The flash memory area 38 allocated as the data backup area can be accessed using MTD (Memory Technology Devices) used to access the block device, so that the flash memory can be used like a hard disk.

여기서, 플래시디스크(38)에 저장하는 백업데이터는 JFFS2(Journaling flash file system version 2) 파일시스템을 이용하여 파일 및 디렉토리 구조로 관리한다. 이에 따라, 플래시디스크(38) 영역에 섹터 단위로 파일을 저장하고 독출할 수 있으므로 메모리 관리가 용이해지고 저장 및 독출 속도 또한 향상시킬 수 있다.Here, the backup data stored in the flash disk 38 is managed in a file and directory structure using a journaling flash file system version 2 (JFFS2) file system. As a result, files can be stored and read in sectors in the flash disk 38 area, thereby facilitating memory management and improving the speed of storing and reading.

한편, 플래시메모리의 RAM디스크(36)에는 RAM디스크 이미지가 저장된다. RAM 디스크 이미지는 RAM디스크에 EXT2 포맷으로 만들고 필요한 파일을 모두 넣은 후에 RAM디스크의 내용을 모두 파일 형태로 복사한 파일로서, 리눅스 커널(34)은 이 파일의 내용이 있는 위치를 지정하면 해당 내용을 부팅 시에 RAM디스크(36)에 모두 옮겨 넣는다. 이때, 커널(34)은 RAM디스크 이미지가 압축되어 있다고 가정하며 부트로더(BOOT)가 이 압축된 RAM디스크 이미지를 SDRAM(32)에 복사해 놓고 커널(34) 부팅 전에 커널(34)에 이 이미지 데이터가 어디에 있는지를 알려준다. 이에, 커널(34)은 부팅 후 루트로 RAM디스크 이미지를 사용할 수 있다.On the other hand, a RAM disk image is stored in the RAM disk 36 of the flash memory. The RAM disk image is a file in EXT2 format on the RAM disk, all the necessary files are put in, and all the contents of the RAM disk are copied in the form of files. The Linux kernel 34 designates the location where the contents of this file are located. At boot time, all of them are transferred to the RAM disk 36. At this time, the kernel 34 assumes that the RAM disk image is compressed and the boot loader copies the compressed RAM disk image to the SDRAM 32, and the kernel 34 copies the compressed RAM disk image to the kernel 34 before booting the kernel 34. It tells you where the data is. Thus, the kernel 34 may use a RAM disk image as a root after booting.

이러한 구성에 따라, 데이터를 백업을 위한 플래시디스크(38)를 확보하고자 하는 경우, 먼저, 커널(OS 이미지 저장영역)(34)과 RAM디스크(RAM디스크 이미지 저장영역)(36)의 적정 크기를 고려하여 전체 플래시메모리 상에서 데이터 백업을 위한 메모리 공간을 할당함으로써 약 4M 정도의 플래시디스크(38) 공간을 확보하고 해당 영역을 포맷(format) 한다. 이 후, 실제 리눅스 커널(34) 및 프로그램(Application)에서 사용될 수 있는 패스를 제공하기 위해 시스템 커널에 등록시켜주는 절차인 마운트(MOUNT)를 수행하여 파일시스템(예컨대, JFFS2)을 커널에 등록함으로써 플래시메모리 상에 플래시디스크(38)를 구현할 수 있다.According to this configuration, in order to secure the flash disk 38 for data backup, first, an appropriate size of the kernel (OS image storage area) 34 and the RAM disk (RAM disk image storage area) 36 is determined. In consideration of this, by allocating a memory space for data backup on the entire flash memory, a space of about 4M of flash disk 38 is secured and the corresponding area is formatted. After that, the file system (eg, JFFS2) is registered to the kernel by performing a mount (MOUNT), which is a procedure for registering the system kernel to provide a path that can be used by the actual Linux kernel 34 and an application. The flash disk 38 can be implemented on the flash memory.

도 4는 본 발명에 따른 임베디드 시스템의 MCU 서브보드 교환 상태도이다. 통상 MCU메인(41) 보드의 경우 이중화되어 있지 아니하므로, 본 발명에서는 서비스보드(50)를 MCU메인(41) 보드의 스탠바이보드로 이중화하며 MCU서브(43) 보드가 탈장 되면 서비스보드(50)에서 자신의 백업데이터(52, 54)를 인출하여 로딩하도록 한다. 즉, 임의의 서비스보드(50)의 메모리 공간을 이용하여 데이터를 백업하고 인출할 수 있도록 함으로써 중단 없는 서비스 제공을 도모한다.4 is a state diagram of the MCU subboard exchange of the embedded system according to the present invention. In the present invention, since the MCU main 41 board is not duplicated, in the present invention, the service board 50 is duplicated as a standby board of the MCU main 41 board, and the service board 50 is detached when the MCU sub 43 board is dismounted. To retrieve and load its own backup data (52, 54). That is, the data can be backed up and withdrawn using the memory space of the arbitrary service board 50, thereby providing service without interruption.

여기서, MCU메인(41) 보드와 서비스보드(50)는 상호 LAN 통신이 가능하므로 FTP(File Transfer Protocol)방식으로 서비스보드(50) 측에 데이터를 백업하는 것이 바람직하다. 이에, 서비스보드(50)의 FTP 기능을 실행시키고, MCU메인(41) 보드 측에서는 여러 파일을 묶는(archive) 유틸리티인 TAR을 이용하여 MCU메인(41) 보드가 사용하는 데이터를 TAR 백업파일(45, 47)로 변환한 후 이를 FTP프로토콜을 이용하여 서비스보드(50)로 업로드 한다. 이에, MCU메인(41) 보드의 데이터(45, 47)를 서비스보드(50)로 백업할 수 있으며, 이러한 상태에서 MCU메인(41) 보드 상의 MCU서브(43) 보드를 교환하거나 재실장하면 서비스보드(50)에 백업해 놓은 데이터를 다시 FTP를 통해 다운로드 받아 애플리케이션을 구동시키면 이전의 상태 그대로 서비스의 중단 없이 구동시킬 수 있다.Here, since the MCU main 41 board and the service board 50 are capable of mutual LAN communication, it is preferable to back up data to the service board 50 by FTP (File Transfer Protocol). Accordingly, the FTP function of the service board 50 is executed, and the data used by the MCU main 41 board is stored in the TAR backup file using the TAR, which is a utility for archiving several files on the MCU main 41 board side. , 47) and upload it to the service board 50 using the FTP protocol. Accordingly, the data (45, 47) of the MCU main (41) board can be backed up to the service board 50, and in this state, if the MCU sub (43) board on the MCU main (41) board is replaced or remounted, By downloading the data backed up on the board 50 via FTP again and running the application, it can be operated without interruption of service as it was.

이상 설명한 바와 같이, 본 발명은 기존의 MCU 보드의 설계변경 및 부품추가 없이 기존의 구성만으로 백업메모리의 용량을 확보할 수 있으며, 임의의 서비스보드를 이용하여 데이터를 백업할 수 있도록 함으로써 MCU 보드의 교체 시에 서비스의 중단 및 백업의 유실이 없이 탄력적으로 대응할 수 있도록 하고 있다.As described above, the present invention can secure the capacity of the backup memory only by the existing configuration without changing the design of the existing MCU board and adding parts, and by allowing the data to be backed up using any service board, It provides a flexible response without interruption of service and backup loss at the time of replacement.

이상, 본 발명에 따른 실시예는 상술한 것에 한정되지 아니하고, 본 발명과 관련하여 통상의 지식을 가진자에게 자명한 범위 내에서 다양하게 변형하여 실시할 수 있다.As described above, the embodiment according to the present invention is not limited to the above, and various modifications can be made within the scope apparent to those skilled in the art in connection with the present invention.

이상에서 설명한 바와 같이, 본 발명의 임베디드 시스템의 데이터 백업방법 은, RAM디스크가 저장되는 플래시메모리에 백업데이터가 저장되는 저장영역을 할당하여 플래시메모리 디스크로 사용하고 보드 절체 시 백업데이터를 다른 보드의 메모리에 업로드 하여 보관하였다가 다시 다운로드 하여 사용할 수 있도록 하고 있다.As described above, the data backup method of the embedded system of the present invention allocates a storage area for storing backup data to a flash memory in which a RAM disk is stored and uses it as a flash memory disk. It is uploaded to the memory, stored, and downloaded for use again.

이에 따라, 별도의 하드웨어적인 변경 없이 데이터 백업을 위한 메모리 공간을 확보할 수 있도록 하는 한편, MCU 서브 보드의 교체 시 백업데이터가 유실되는 것을 방지할 수 있다. Accordingly, it is possible to secure a memory space for data backup without any additional hardware changes, and to prevent the loss of backup data when the MCU sub-board is replaced.

Claims (4)

운영체제 이미지 저장영역과 램디스크 이미지 저장영역이 할당된 플래시메모리에 백업데이터의 저장을 위한 플래시디스크 영역을 할당하는 단계와;Allocating a flash disk area for storing backup data to a flash memory to which an operating system image storage area and a ram disk image storage area are allocated; 상기 플래시디스크 영역을 포맷하는 단계와;Formatting the flash disk area; 상기 플래시디스크 영역에 저장되는 백업데이터를 파일 및 디렉토리 구조로 관리하기 위한 파일시스템을 상기 운영체제의 커널에 등록하는 단계와;Registering a file system for managing backup data stored in the flash disk area in a file and directory structure in a kernel of the operating system; 상기 플래시디스크에 백업하고자 하는 데이터를 블록 단위로 저장하는 단계를 포함하는 것을 특징으로 하는 임베디드 시스템의 데이터 백업방법.And storing the data to be backed up in the flash disk in units of blocks. 제 1 항에 있어서,The method of claim 1, 상기 플래시디스크에 상기 파일 시스템으로서 JFFS2(Journaling flash file system version 2) 파일시스템을 탑재하는 단계를 포함하는 것을 특징으로 하는 임베디드 시스템의 데이터 백업방법.And mounting a JFFS2 (Journaling flash file system version 2) file system as the file system on the flash disk. 제 1 항에 있어서,The method of claim 1, 상기 플래시디스크에 백업하고자 하는 데이터를 블록 단위로 저장하는 단계는,The step of storing the data to be backed up in the flash disk in units of blocks, MTD(Memory Technology Devices)를 사용하여 상기 플래시디스크에 블록단위 로 액세스하는 단계를 포함하는 것을 특징으로 하는 임베디드 시스템의 데이터 백업방법.And a block-by-block access to the flash disk using MTD (Memory Technology Devices). 제 1 항에 있어서,The method of claim 1, 상기 플래시디스크에 저장된 백업데이터를 하나의 백업파일로 변환하는 단계와;Converting the backup data stored in the flash disk into a single backup file; 상기 백업파일을 FTP(File Transfer Protocol)방식을 이용하여 LAN(Local Area Network)으로 접속된 외부 장치의 메모리로 업로드 하는 단계와;Uploading the backup file to a memory of an external device connected to a local area network (LAN) using a file transfer protocol (FTP) method; 시스템 재부팅 시 상기 LAN으로 접속된 외부 장치로부터 상기 백업파일을 다운로드 받아 저장하는 단계를 포함하는 것을 특징으로 하는 임베디드 시스템의 데이터 백업방법.And downloading and storing the backup file from an external device connected to the LAN when the system is rebooted.
KR1020050088593A 2005-09-23 2005-09-23 Data backup method for embedded system KR100735774B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050088593A KR100735774B1 (en) 2005-09-23 2005-09-23 Data backup method for embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050088593A KR100735774B1 (en) 2005-09-23 2005-09-23 Data backup method for embedded system

Publications (2)

Publication Number Publication Date
KR20070034197A KR20070034197A (en) 2007-03-28
KR100735774B1 true KR100735774B1 (en) 2007-07-06

Family

ID=41633158

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050088593A KR100735774B1 (en) 2005-09-23 2005-09-23 Data backup method for embedded system

Country Status (1)

Country Link
KR (1) KR100735774B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8271854B2 (en) 2009-03-03 2012-09-18 Wistron Corp. Embedded electronic device and method for storing data

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090060774A (en) 2007-12-10 2009-06-15 한국전자통신연구원 Apparatus and method for mirroring firmware and data of the embedded system
CN104866236A (en) * 2012-07-10 2015-08-26 青岛海信移动通信技术股份有限公司 Data reading method and equipment for storage media
CN108958978A (en) * 2018-07-12 2018-12-07 深圳芯邦科技股份有限公司 A kind of MCU data reconstruction method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030062793A (en) * 2002-01-19 2003-07-28 주식회사 디앤아이티 Apparatus and Method for operating recovery and backup of linux operting system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030062793A (en) * 2002-01-19 2003-07-28 주식회사 디앤아이티 Apparatus and Method for operating recovery and backup of linux operting system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8271854B2 (en) 2009-03-03 2012-09-18 Wistron Corp. Embedded electronic device and method for storing data

Also Published As

Publication number Publication date
KR20070034197A (en) 2007-03-28

Similar Documents

Publication Publication Date Title
US7996720B2 (en) Apparatus and method of mirroring firmware and data of embedded system
KR102168838B1 (en) Mapping tables for storage devices
US10037272B2 (en) Storage system employing MRAM and array of solid state disks with integrated switch
US7036040B2 (en) Reliability of diskless network-bootable computers using non-volatile memory cache
US8510542B2 (en) Flash memory device having memory partitions and including an embedded general purpose operating system for booting a computing device
KR101451482B1 (en) Mount-time reconciliation of data availability
US10303499B2 (en) Application aware graph driver
US9052918B2 (en) Management of multiple software images with shared memory blocks
US8977802B2 (en) Access device, information recording device, controller, real time information recording system, access method, and program
JP4274523B2 (en) Storage device system and start method of storage device system
US7970804B2 (en) Journaling FAT file system and accessing method thereof
JP5445463B2 (en) Computer system, data storage method and program
JP2003288259A (en) Information processing system
US20110167049A1 (en) File system management techniques for computing environments and systems
CN102939593B (en) infinite memory
JP2007334878A (en) Long-term data archiving system and method
US20110107039A1 (en) Methods for implementation of data formats on a removable disk drive storage system
WO2013186828A1 (en) Computer system and control method
JP2010186341A (en) Memory system
KR100735774B1 (en) Data backup method for embedded system
CN102750110A (en) High-reliable disk array system for configuration information
KR20050070117A (en) Record carrier having a main file system area and a virtual file system area
US20060069848A1 (en) Flash emulation using hard disk
US8769196B1 (en) Configuring I/O cache
US20190324868A1 (en) Backup portion of persistent memory

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
G170 Publication of correction
FPAY Annual fee payment

Payment date: 20120516

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee