KR102066739B1 - Device for creating and copying dump file of memory and the operating method thereof - Google Patents
Device for creating and copying dump file of memory and the operating method thereof Download PDFInfo
- Publication number
- KR102066739B1 KR102066739B1 KR1020130054722A KR20130054722A KR102066739B1 KR 102066739 B1 KR102066739 B1 KR 102066739B1 KR 1020130054722 A KR1020130054722 A KR 1020130054722A KR 20130054722 A KR20130054722 A KR 20130054722A KR 102066739 B1 KR102066739 B1 KR 102066739B1
- Authority
- KR
- South Korea
- Prior art keywords
- memory
- dump file
- data
- section
- dump
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
Abstract
장치 내 실장된 제1 메모리에 대한 덤프 파일을 생성하는 메모리 덤프 파일 생성 장치에 있어서, 상기 제1 메모리 내 데이터를 제1 임계 크기 단위로 읽어오는 획득부, 상기 제1 임계 크기의 데이터 내에 널(null) 데이터의 존재 여부를 고려하여, 상기 제1 임계 크기의 데이터에서 실제 데이터를 각기 적어도 하나의 섹션(Section)으로 구분하는 추출부, 각기 구분된 상기 실제 데이터가 저장된 각 유효 섹션에 대해 섹터(Sector) 시작 주소, 섹터 길이 및 체크섬(CheckSum) 정보를 포함하는 헤더(Header) 정보를 구성하고, 상기 각 유효 섹션의 상기 헤더 정보와 상기 실제 데이터를 연결하여 덤프 파일을 생성하는 생성부, 및 생성된 상기 덤프 파일을 제2 메모리에 기록하는 기록부를 포함하는 메모리 덤프 파일 생성 장치에 관한 것이다.A memory dump file generating apparatus for generating a dump file for a first memory mounted in a device, the apparatus comprising: an acquisition unit that reads data in the first memory in units of a first threshold size, and nulls in the data of the first threshold size; null) an extraction unit for dividing the actual data into at least one section in the first critical size data in consideration of the existence of data, and for each valid section in which the divided actual data is stored; Sector) a generator configured to configure header information including start address, sector length, and checksum information, and connecting the header information of each valid section with the actual data to generate a dump file, and generating A memory dump file generating device comprising a recording unit for recording the dump file into a second memory.
Description
본 발명은 메모리 덤프 장치에 관한 것으로, 특히 장치에 실장된 메모리를 다른 메모리로 데이터를 복제하는 기술에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory dump device, and more particularly, to a technique for copying data from a memory mounted in the device to another memory.
현재 차량용 내비게이션(Audio Video Navigation, AVN) 장치는 구동 소프트웨어가 저장되지 않은 채 생산된다. 즉, 전체적인 하드웨어 구성이 AVN 세트의 PCB에 온보드(Onboard)된 상태로 생산되며, 저장 매체(예를 들어, MMC, 모비낸드 등의 플래시 메모리) 또한 도 1에 예시된 바와 같이 AVN 세트의 PCB에 BGA(Ball Grid Array)되어 생산된다.Currently, automotive video navigation (AVN) devices are produced without the drive software stored. That is, the overall hardware configuration is produced onboard the PCB of the AVN set, and the storage medium (for example, flash memory such as MMC, Mobinand, etc.) is also mounted on the PCB of the AVN set as illustrated in FIG. 1. Produced as Ball Grid Array (BGA).
생산된 AVN 세트에 구동 프로그램 및 기타 프로그램을 저장하기 위해서는, 먼저 IC 분리 장비를 이용하여 별도로 구동 프로그램이 저장된 메모리칩을 내비게이션 장치에서 분리한다. 분리된 메모리칩은 갱 장비 업체에 전달되며, 갱 장비 업체의 전용 장비를 이용하여 분리된 메모리칩의 전 데이터 영역을 이미지 덤프한다.In order to store the drive program and other programs in the produced AVN set, the memory chip having the drive program stored separately is separated from the navigation device by using an IC separation device. The separated memory chip is delivered to the gang equipment company, and an image dump of the entire data area of the separated memory chip is used by the gang equipment company's dedicated equipment.
그러나, 데이터를 덤프하기 위한 메모리칩을 내비게이션 장치에서 분리하는 과정에서 고온의 열을 가하기 때문에 메모리칩에 오류가 발생할 가능성이 있다. 또한, 분리된 메모리칩을 갱 장비 업체에 전달하는 과정에 있어서도 메모리칩의 보관 등의 문제가 생길 수도 있다. 덧붙여, 고용량 메모리칩을 복제하는 경우에는 고용량의 메모리칩의 전 데이터 영역을 이미지 덤프, 및 덤프된 이미지 데이터를 다른 저장 매체에 복제하는 데에는 많은 시간이 소요되는 문제점도 있다.However, there is a possibility that an error occurs in the memory chip because a high temperature heat is applied in the process of separating the memory chip for dumping data from the navigation device. In addition, there may be a problem such as storage of the memory chip in the process of delivering the separated memory chip to the gang equipment company. In addition, in the case of duplicating a high-capacity memory chip, there is a problem that it takes a long time to image dump all data areas of the high-capacity memory chip and to copy the dumped image data to another storage medium.
본 발명은 장치 내 실장된 원 메모리를 분리하지 않고, 원 메모리 내 유효 데이터만 이용하여 덤프 파일을 생성하고, 이를 다른 메모리에 복제할 수 있도록 하는 기술적 방안을 제공함을 목적으로 한다.It is an object of the present invention to provide a technical scheme for generating a dump file using only valid data in the original memory and duplicating it to another memory without separating the original memory mounted in the apparatus.
전술한 과제를 달성하기 위한 본 발명의 일 양상에 따른 장치 내 실장된 제1 메모리에 대한 덤프 파일(Dump File)을 생성하는 메모리 덤프 파일 생성 장치는 상기 제1 메모리 내 데이터를 제1 임계 크기 단위로 읽어오는 획득부, 상기 제1 임계 크기의 데이터 내에 널(null) 데이터의 존재 여부를 고려하여, 상기 제1 임계 크기의 데이터에서 실제 데이터를 각기 적어도 하나의 섹션(Section)으로 구분하는 추출부, 각기 구분된 상기 실제 데이터가 저장된 각 유효 섹션에 대해 섹터(Sector) 시작 주소, 섹터 길이 및 체크섬(CheckSum) 정보를 포함하는 헤더(Header) 정보를 구성하고, 상기 각 유효 섹션의 상기 헤더 정보와 상기 실제 데이터를 연결하여 덤프 파일을 생성하는 생성부, 및 생성된 상기 덤프 파일을 제2 메모리에 기록하는 기록부를 포함한다According to an aspect of the present invention, there is provided a memory dump file generating apparatus for generating a dump file for a first memory mounted in an apparatus, in which a first threshold size unit is used. Acquisition unit which reads into the data, the extraction unit for dividing the actual data into at least one section in each of the data of the first threshold size in consideration of the presence of null data in the data of the first threshold size And configure header information including a sector start address, a sector length, and checksum information for each valid section in which the divided real data are stored, and the header information of each valid section. A generation unit to connect the actual data to generate a dump file, and a recording unit to record the generated dump file in a second memory.
여기서, 상기 추출부는 상기 제1 임계 크기의 데이터에 상기 널 데이터가 제2 임계 크기 이상 인접하여 존재하는 경우, 상기 널 데이터 이전과 이후의 데이터를 각기 다른 섹션으로 구성하고, 상기 제1 임계 크기의 데이터 내 상기 제2 임계 크기 이상의 인접한 널 데이터가 존재하지 않는 경우, 상기 제1 임계 크기의 데이터 전체를 상기 하나의 섹션으로 구성한다.Here, when the null data is adjacent to the data of the first threshold size or more adjacent to the second threshold size or more, the extractor configures data before and after the null data into different sections, and If there is no adjacent null data in the data above the second threshold size, the entire data of the first threshold size is configured into the one section.
덧붙여, 상기 기록부는 상기 덤프 파일이 일정 크기 이상인 경우, 상기 덤프 파일을 다수로 나눠 기록하고, 다수의 덤프 파일이 기록되었음을 상기 다수의 덤프 파일의 확장자에 표시하며, 상기 제2 메모리에 상기 덤프 파일과 함께 상기 제1 메모리의 전체 섹터 길이 정보를 기록하며, 상기 제2 메모리에 기록된 상기 덤프 파일의 시작 부분에는 덤프 파일임을 표시하는 정보를, 마지막 부분에는 널 데이터로 구성된 상기 헤더 정보를 더 기록한다.In addition, when the dump file has a predetermined size or more, the recording unit divides the dump file into a plurality of records, indicates that a plurality of dump files are recorded in the extension of the plurality of dump files, and writes the dump file to the second memory. And total sector length information of the first memory, information indicating that a dump file is written at the beginning of the dump file recorded in the second memory, and at the end, the header information consisting of null data. do.
한편, 전술한 과제를 달성하기 위한 본 발명의 일 양상에 따른 제2 메모리에 저장된 복수의 섹션(Section)으로 구분되는 덤프 파일(Dump File)을 제3 메모리에 복제하는 메모리 덤프 파일 복제 장치는 상기 제3 메모리의 전체를 널(null) 데이터로 변경하는 변경부, 상기 복수의 섹션의 헤더 정보 내 체크섬(CheckSum)과 상기 복수의 섹션에 대응하는 상기 제3 메모리의 체크섬이 일치하는지 순차적으로 확인하는 확인부 및 확인 결과 일치하면, 확인된 섹션의 상기 헤더 정보 내 섹터(Sector) 시작 주소와 동일한 상기 제3 메모리의 섹터 주소에 상기 확인된 섹션의 실제 데이터를 복사하는 복사부를 포함한다.On the other hand, the memory dump file duplication apparatus for duplicating a dump file divided into a plurality of sections (Section) stored in the second memory according to an aspect of the present invention for achieving the above object to the third memory is A changer that changes the entirety of the third memory to null data, and sequentially checks whether a checksum in the header information of the plurality of sections and the checksum of the third memory corresponding to the plurality of sections coincide with each other; The verification unit and the verification result include a copy unit which copies the actual data of the checked section to the sector address of the third memory that is the same as the sector start address in the header information of the checked section.
여기서, 상기 복사부는 상기 확인된 섹션의 실제 데이터를 순차적으로 복사하며, 상기 확인부에 의해 상기 덤프 파일의 상기 헤더 정보가 널 데이터로 확인되면, 이후에 상기 덤프 파일이 존재하지 않음으로 판단하여 상기 확인된 섹션의 실제 데이터 및 그 이후의 데이터에 대한 복사를 중단한다.Here, the copy unit sequentially copies the actual data of the checked section, and when the header information of the dump file is confirmed as null data by the checking unit, it is determined that the dump file does not exist thereafter. Stop copying of the actual data in the identified section and subsequent data.
덧붙여, 상기 덤프 파일에 저장된 제1 메모리의 전체 섹터 길이와 상기 제3 메모리의 전체 섹터 길이가 같은지 비교하며, 상기 전체 섹터 길이가 다른 경우, 상기 제1 메모리와 상기 제3 메모리의 전체 섹터 길이가 다름을 사용자에게 알리는 비교부를 더 포함한다.In addition, the total sector length of the first memory stored in the dump file is equal to the total sector length of the third memory, and if the total sector lengths are different, the total sector lengths of the first memory and the third memory are different. It further includes a comparison unit for notifying the user of the difference.
다른 한편, 전술한 과제를 달성하기 위한 본 발명의 일 양상에 따른 장치 내 실장된 제1 메모리에 대한 덤프 파일(Dump File)을 생성하는 메모리 덤프 파일 생성 장치에 의한 메모리 덤프 파일 생성 방법은 상기 제1 메모리 내 데이터를 제1 임계 크기 단위로 읽어오는 단계, 상기 제1 임계 크기의 데이터 내에 널(null) 데이터의 존재 여부를 고려하여, 상기 제1 임계 크기의 데이터에서 실제 데이터를 각기 적어도 하나의 섹션(Section)으로 구분하는 단계, 각기 구분된 상기 실제 데이터가 저장된 각 유효 섹션에 대해 섹터(Sector) 시작 주소, 섹터 길이 및 체크섬(CkeckSum) 정보를 포함하는 헤더 정보를 구성하고, 상기 각 유효 섹션의 상기 헤더 정보와 상기 실제 데이터를 연결하여 덤프 파일을 생성하는 단계, 및 생성된 상기 덤프 파일을 제2 메모리에 기록하되, 상기 제2 메모리에 상기 덤프 파일과 함께 상기 제1 메모리의 전체 섹터 길이 정보를 기록하며, 상기 제2 메모리에 기록된 상기 덤프 파일의 시작 부분에는 덤프 파일임을 표시하는 정보를, 마지막 부분에는 널 데이터로 구성된 상기 헤더 정보를 포함하여 기록하는 단계를 포함한다.On the other hand, the memory dump file generating method by the memory dump file generating apparatus for generating a dump file for the first memory mounted in the device according to an aspect of the present invention for achieving the above object is Reading data in memory in units of a first threshold size, and considering at least one of null data in the data of the first threshold size, at least one of actual data in each of the first threshold size data; Dividing the information into sections, configuring header information including a sector start address, a sector length, and a checksum information for each valid section in which the divided actual data are stored; Generating a dump file by connecting the header information of the data with the actual data, and recording the generated dump file into a second memory, wherein The entire sector length information of the first memory is recorded in the second memory together with the dump file, information indicating that the dump file is written at the beginning of the dump file recorded in the second memory, and null data at the last part. And including the configured header information.
또 다른 한편, 전술한 과제를 달성하기 위한 본 발명의 일 양상에 따른 제2 메모리에 저장된 복수의 섹션(Section)으로 구분되는 덤프 파일(Dump File)을 제3 메모리에 복제하는 메모리 덤프 파일 복제 장치에 의한 메모리 덤프 파일 복제 방법은 상기 제3 메모리의 전체를 널(null) 데이터로 변경하는 단계, 상기 복수의 섹션의 헤더 정보 내 체크섬(CheckSum)과 상기 복수의 섹션에 대응하는 상기 제3 메모리의 섹션의 체크섬을 순차적으로 확인하며, 확인 결과 일치하면, 상기 확인된 섹션의 실제 데이터를 상기 헤더 정보 내 섹터 시작 주소와 동일한 상기 제3 메모리의 섹터 주소에 복사하는 단계, 및 상기 섹션의 실제 데이터를 순차적으로 복사하는 중, 상기 덤프 파일의 상기 헤더 정보가 널 데이터로 확인되면, 상기 확인된 섹션의 실제 데이터 및 그 이후의 데이터에 대한 복사를 중단하는 단계를 포함한다.On the other hand, memory dump file duplication apparatus for duplicating a dump file divided into a plurality of sections (Section) stored in the second memory according to an aspect of the present invention for achieving the above object to the third memory The method of duplicating a memory dump file may include changing an entirety of the third memory to null data, and checking a checksum in header information of the plurality of sections and the third memory corresponding to the plurality of sections. Verifying the checksums of the sections sequentially, and if matched, matches the actual data of the identified section to a sector address of the third memory that is the same as the sector start address in the header information, and the actual data of the section During the sequential copying, if the header information of the dump file is identified as null data, the actual data of the checked section and subsequent data And a step of stopping the copy for.
본 발명의 실시예에 따르면 복제하고자 하는 AVN 장치의 원 메모리에서 유효하지 않은 널 데이터를 제외한 실제 데이터가 저장된 유효 데이터만을 추출하여 덤프 파일을 생성함으로써, 원 메모리보다 작은 데이터 크기의 덤프 파일을 생성할 수 있다.According to an exemplary embodiment of the present invention, a dump file is generated by extracting only valid data in which original data is stored, except for null data, which is not valid in original memory of an AVN device to be duplicated, thereby generating a dump file having a smaller data size than the original memory. Can be.
또한, 본 발명의 실시예에 따르면 복제 메모리에 덤프 파일을 복사 시 유효 데이터만을 복사함으로써, 데이터 복사 시간이 단축될 수 있다.In addition, according to an embodiment of the present invention, by copying only valid data when copying a dump file to a copy memory, data copy time may be shortened.
덧붙여, 본 발명의 실시예에 따르면 메모리 덤프 파일 생성 장치가 AVN 장치 내에 구현되어, AVN 장치의 PCB에 BGA(ball grid array)된 원 메모리를 분리하지 않고 덤프 파일을 생성할 수 있다.In addition, according to an embodiment of the present invention, a memory dump file generating device may be implemented in the AVN device to generate a dump file without separating the original memory that is ball grid array (BGA) mounted on the PCB of the AVN device.
도 1은 차량용 내비게이션(AVN) 장치 내 메모리를 나타내는 도면.
도 2는 본 발명의 실시예에 따른 메모리 덤프 파일 생성 장치 블록도.
도 3은 본 발명에 따른 메모리 덤프 파일 생성 장치의 동작 설명을 위한 제1 예시도.
도 4는 본 발명에 따른 메모리 덤프 파일 생성 장치의 동작 설명을 위한 제2 예시도.
도 5는 본 발명에 따른 메모리 덤프 파일 생성 장치의 동작 설명을 위한 제3 예시도.
도 6은 본 발명에 따른 메모리 덤프 파일 생성 장치의 동작 설명을 위한 제4 예시도.
도 7은 본 발명의 실시예에 따른 메모리 덤프 파일 복제 장치 블록도.
도 8은 본 발명의 실시예에 따른 메모리 덤프 파일 생성 장치에 의한 메모리 덤프 파일 생성 방법 흐름도.
도 9는 본 발명의 실시예에 따른 메모리 덤프 파일 복제 장치에 의한 메모리 덤프 파일 복제 방법 흐름도.1 illustrates a memory in an in-vehicle navigation (AVN) device;
2 is a block diagram of a device for generating a memory dump file according to an exemplary embodiment of the present invention.
3 is a first exemplary view for explaining the operation of the memory dump file generating apparatus according to the present invention.
4 is a second exemplary view for explaining the operation of the memory dump file generating apparatus according to the present invention;
5 is a third exemplary diagram for describing an operation of a memory dump file generating device according to the present invention;
6 is a fourth exemplary diagram for describing an operation of a memory dump file generating device according to the present invention;
7 is a block diagram of a memory dump file replication apparatus according to an embodiment of the present invention.
8 is a flowchart illustrating a method of generating a memory dump file by the apparatus for generating a memory dump file according to an embodiment of the present invention.
9 is a flowchart illustrating a memory dump file duplication method by a memory dump file duplication apparatus according to an exemplary embodiment of the present invention.
를술한, 그리고 추가적인 본 발명의 양상들은 첨부된 도면을 참조하여 설명되는 바람직한 실시예들을 통하여 더욱 명백해질 것이다. 이하에서는 본 발명을 이러한 실시예를 통해 당업자가 용이하게 이해하고 재현할 수 있도록 상세히 설명하기로 한다.The following and further aspects of the present invention will become more apparent through preferred embodiments described with reference to the accompanying drawings. Hereinafter, the present invention will be described in detail to enable those skilled in the art to easily understand and reproduce the present invention.
도 2는 본 발명의 실시예에 따른 메모리 덤프 파일 생성 장치 블록도이다. 메모리 덤프 파일 생성 장치(100)는 제1 메모리(10)로부터 데이터를 읽어들여 덤프 파일을 생성하며, 생성된 덤프 파일을 제2 메모리(20)에 기록한다. 여기서, 메모리 덤프 파일 생성 장치(100)는 차량용 AVN(Audio Video Navigation) 장치 내에 구현될 수 있다. 제1 메모리(10)는 MMC(multi-memory card), 모비낸드 등과 같은 AVN 장치 내 PCB에 온보드(OnBoard)된 저장 매체(플래시 메모리)일 수 있으며, 제2 메모리(20)는 USB 메모리일 수 있다.2 is a block diagram of an apparatus for generating a memory dump file according to an exemplary embodiment of the present invention. The memory dump
도시된 바와 같이, 메모리 덤프 파일 생성 장치(100)는 획득부(110), 추출부(120), 생성부(130) 및 기록부(140)를 포함한다.As shown, the memory dump
획득부(110)는 제1 메모리(10) 내 데이터를 일정 단위로 읽어온다. 구체적으로, 획득부(110)는 제1 메모리(10) 내 데이터를 제1 임계 크기 단위로 획득할 수 있다. 여기서, 제1 임계 크기는 예를 들어 32MByte 일 수 있으며, 이는 사용자에 의해 변경 가능하다.The
추출부(120)는 획득부(110)에 의해 획득된 제1 임계 크기의 데이터를 적어도 하나의 섹션(section)을 구분한다. 여기서, 추출부(120)는 제1 임계 크기의 데이터 내에 널(null) 데이터의 존재 여부를 고려하여 섹션을 구분한다. 구체적으로, 추출부(120)는 제1 임계 크기의 데이터 내에 널 데이터가 제2 임계 크기 이상 인접하는지 확인한다. 예를 들어, 제2 임계 크기는 64KByte일 수 있으며, 이는 사용자에 의해 변경 가능하다.The
예컨대 도 3에 예시된 바와 같이, 추출부(120)는 획득부(110)에 의해 읽힌 32MByte의 데이터를 분석하여, 32MByte 내 64KByte 크기 이상의 널 데이터(0x00)가 존재하면, 64KByte 이상의 널 데이터(0x00) 이전까지의 데이터를 하나의 섹션(섹션_a1)으로 구분한다. 또한, 64KByte 이상의 널 데이터(0x00) 이후에도 데이터가 존재한다면, 추출부(120)는 널 데이터(0x00) 이후의 데이터를 다른 하나 이상의 섹션(섹션_a2)으로 구분한다. 다른 예로, 도 3에 예시된 바와 같이 분석된 32MByte의 데이터 내 64KByte 이상의 널 데이터(0x00)가 존재하지 않으면, 추출부(120)는 32Byte 전체를 하나의 섹션(섹션_b1)으로 구분한다. 만약, 32MByte 전체가 널 데이터(0x00)인 경우에 추출부(120)는 32MByte 전체를 섹션으로 구분하지 않는다.For example, as illustrated in FIG. 3, the
생성부(130)는 추출부(120)에 의해 구분된 유효 섹션에 대해 구성되는 헤더(Header) 정보 및 실제 데이터를 이용하여 덤프 파일(Dump File)을 생성한다. 헤더 정보는 도 4에 예시된 바와 같이 유효 섹션에 대한 섹터(Sector) 시작 주소 정보, 섹터 길이 정보 및 체크섬(CheckSum) 정보를 포함한다.The
여기서, 섹터 시작 주소 정보는 유효 섹션에 포함된 실제 데이터가 제2 메모리(20)의 몇 번째 섹터에서부터 기록되어야 하는지를 나타내는 정보로서, 제1 메모리(10)에 실제 데이터가 저장된 섹터의 시작 번지일 수 있다. 또한, 섹터 길이 정보는 유효 섹션이 몇 개의 섹터로 구성되는지를 나타내는 섹터 크기 정보로, 예를 들어 10MByte일 수 있다. 일 예로, 섹션이 32MByte 단위이나, 10MByte 데이터 후 연속해서 64KByte의 '0x00'의 값이 올 경우, 이번 섹션은 10MByte로 구성되며, 섹터 길이 정보는 10MByte라는 섹터 크기일 수 있다. 덧붙여, 체크섬 정보는 제1 메모리(10)에 실제 데이터를 DWORD 단위로 나타낸 정보일 수 있다.Here, the sector start address information is information indicating from which sector of the
생성부(130)는 각 유효 섹션에 대해 구성되는 헤더 정보와 그 유효 섹션의 실제 데이터를 연결하여 덤프 파일을 생성한다. 도 5에 예시된 바와 같이, 생성부(130)는 섹션_a1에 대응하는 헤더 정보를 구성하고, 섹션_a1의 헤더 정보에 섹션_a1의 실제 데이터를 연결한다. 또한, 생성부(130)는 섹션_a2에 대응하는 헤더 정보를 구성하여 섹션_a1의 실제 데이터에 연결하고, 섹션_a2의 헤더 정보에 섹션_a2의 실제 데이터를 연결한다. 덧붙여, 생성부(130)는 섹션_b1에 대응하는 헤더 정보를 구성하여 섹션_a2의 실제 데이터에 연결하고, 섹션_b1의 헤더 정보에 연결하여 섹션_b1의 실제 데이터를 연결한다.The
위와 같은 과정을 통해 생성부(130)는 제1 메모리(10) 내 유효 데이터만을 이용하여 덤프 파일을 생성한다. 이와 같이, 제1 메모리(10) 내 널 데이터를 제외하고 유효 데이터만을 이용하여 덤프 파일을 생성함으로써, 제1 메모리(10)의 실제 크기보다 작은 크기의 덤프 파일을 생성할 수 있다. 예를 들어, 제1 메모리(10) 내 복제할 데이터는 널 데이터를 포함하여 4~16GByte의 용량일 수 있으나, 유효하지 않은 널 데이터를 제외하여 생성되는 덤프 파일은 1~2GByte으로 생성될 수 있다. 즉, 생성된 덤프 파일이 기록되는 제2 메모리(20)에는 1~2GByte의 작은 용량의 메모리가 이용될 수 있는 것이다.Through the above process, the
기록부(140)는 생성부(130)에 의해 생성된 덤프 파일을 제2 메모리(20)에 기록한다. 기록부(140)는 덤프 파일을 제2 메모리(20)에 기록 시, 덤프 파일의 시작 부분에 덤프 파일임을 표시하는 정보를 기록한다. 예컨대, 기록부(140)는 도 6에 예시된 바와 같이, 덤프 파일의 시작 부분에 덤프 파일임을 나타내는 8byte 값을 두어 제2 메모리(20)에 기록한다. 이를 통해, 덤프 파일과 다른 파일을 구분하도록 하여 잘못된 파일 상용을 방지할 수 있다.The
또한, 기록부(140)는 도 6에 예시된 바와 같이 제2 메모리(20)에 덤프 파일의 헤더에 제1 메모리(10)의 전체 섹터 길이 정보를 더 기록한다. 이를 통해, 제1 메모리(10)와 다른 크기의 메모리(예를 들어, 제3 메모리(30))에 제1 메모리(10)의 실제 데이터가 복사되는 것을 방지할 수 있다. 즉, 제1 메모리(10) 보다 크기가 작은 메모리에는 제1 메모리(10)의 전체 데이터가 복사될 수 없기 때문에, 복사 작업이 수행되는 것을 방지하기 위함이다.In addition, the
덧붙여, 기록부(140)는 생성부(130)에 의해 생성되는 덤프 파일의 마지막에 널 데이터(0x00)로 구성된 헤드 정보를 기록한다. 즉, 도 5에 예시된 바와 같이, 기록부(140)는 덤프 파일 마지막에 섹터 시작 주소 정보, 섹터 길이 정보 및 체크섬 정보가 {0,0,0}인 헤더 정보를 기록한다. 이는, 제3 메모리(30)에 덤프 파일을 복사하는 과정에서, 널 데이터로 구성된 헤더 정보가 확인될 시 제2 메모리(20)에 기록된 덤프 파일이 모두 제3 메모리(30)에 복사된 것으로 판단하여 덤프 파일의 복제 프로세스를 종료하기 위함이다.In addition, the
한편, 기록부(140)는 제2 메모리(20)에 덤프 파일 기록 시, 생성부(130)에 의해 생성된 덤프 파일이 일정 크기 이상으로 생성된 경우, 덤프 파일을 다수로 나눠 기록할 수 있다. 예컨대, 생성된 덤프 파일이 4GByte를 넘을 경우, 기록부(140)는 4GByte 단위로 덤프 파일을 나눠 제2 메모리(20)에 기록하며, 덤프 파일의 확장자에 덤프 파일이 다수개로 기록됨을 표시할 수 있다. Meanwhile, when the dump file is generated in the
일 예로, 생성된 덤프 파일이 4GByte 이하인 경우, 기록부(140)는 1개의 덤프 파일을 제2 메모리(20)에 기록할 수 있으며, 파일명은 MoviImage.bin로 기록될 수 있다. 다른 예로, 생성된 덤프 파일이 4GByte 초과 8GByte 이하인 경우, 기록부(140)는 2개의 덤프 파일을 제2 메모리(20)에 기록할 수 있으며, 파일명은 각각 MoviImage.bc1, MoviImage.be2로 기록될 수 있다. 또 다른 예로, 생성된 덤프 파일이 8GByte 초과 12GByte 이하인 경우, 기록부(140)는 3개의 덤프 파일을 제2 메모리(20)에 기록할 수 있으며, 그 파일명은 각각 MoviImage.bc1, MoviImage.bc2, MoviImage.be3로 기록될 수 있다. 즉, 기록부(140)는 덤프 파일이 1개인 경우 파일명의 확장자를 bin으로, 뒤에 파일이 더 존재하는 경우에는 파일명의 확장자를 bc+숫자로, 마지막 파일인 경우에는 파일명의 확장자를 be+숫자로 기록할 수 있다. 한편, 메모리 덤프 파일 생성 장치(100)는 덤프 프로그램이 제1 메모리(10) 또는 다른 메모리에 로딩 되어 구동됨에 따라 전술한 바와 같이 덤프 파일을 생성할 수 있다.For example, when the generated dump file is 4 GBytes or less, the
도 7은 본 발명의 실시예에 따른 메모리 덤프 파일 복제 장치 블록도이다. 메모리 덤프 파일 복제 장치(200)는 메모리 덤프 파일 생성 장치(100)에 의해 제2 메모리(20)에 기록된 덤프 파일을 제3 메모리(30)에 복사함으로써, 제1 메모리(10)의 데이터를 제3 메모리(30)에 복제하는 것이다. 여기서, 제3 메모리(30)는 제1 메모리(10)가 온보드된 AVN 장치가 아닌 다른 AVN 장치에 온보드된 플래시 메모리일 수 있다.7 is a block diagram of a memory dump file duplication apparatus according to an embodiment of the present invention. The memory dump
도시된 바와 같이, 메모리 덤프 파일 복제 장치(200)는 비교부(210), 변경부(220), 확인부(230) 및 복사부(240)를 포함한다.As shown, the memory dump
비교부(210)는 제1 메모리(10)와 제1 메모리(10)의 데이터를 복제하고자하는 제3 메모리(30)의 메모리 크기를 비교하며, 메모리 크기가 다른 경우 사용자에게 메모리 크기가 다름을 알린다. 구체적으로, 비교부(210)는 제2 메모리(20)에 저장된 제1 메모리(10)의 전체 섹터 길이와 제2 메모리(20)의 전체 섹터 길이가 다른 경우, 사용자에게 알린다.The
일 예로, 제2 메모리(20)에 저장된 제1 메모리(10)의 전체 섹터 길이가 제3 메모리(30)보다 큰 경우, 비교부(210)는 복사가 불가하다는 에러(error) 신호를 발생한다. 예컨대, 제1 메모리(10)의 전체 섹터 길이는 15.50GByte이지만, 제1 메모리(10)의 데이터를 복제하고자하는 제3 메모리(30)의 전체 섹터 길이가 15.30GByte이면, 비교부(210)는 사용자 인터페이스를 통해 에러 신호를 발생하여 데이터 복사가 불가능함을 사용자에게 알린다. 이는, 제1 메모리(10)의 전체 데이터에서 0.20GByte만큼의 데이터가 제3 메모리(30)에 복사될 수 없기 때문이다.For example, when the total sector length of the
다른 예로, 제2 메모리(20)에 저장된 제1 메모리(10)의 전체 섹터 길이가 제3 메모리(30)보다 작은 경우, 비교부(210)는 사용자 인터페이스를 통해 사용자의 선택을 요청하는 신호를 발생한다. 예컨대, 제1 메모리(10)의 전체 섹터 길이는 15.50GByte이지만, 제1 메모리(10)의 데이터를 복제하고자하는 제3 메모리(30)의 전체 섹터 길이가 15.70GByte이면, 사용자에게 메모리 복제 프로세스를 계속 진행할지 여부를 묻는다. 이는, 제1 메모리(10)의 전체 데이터가 제3 메모리(30)에 복사될 수 있으며, 0.20GByte만큼의 제3 메모리(30)에 여유 공간이 발생하므로, 복사를 계속 진행할 것인지, 또는 제1 메모리(10)와 같은 크기의 메모리로 변경할지를 묻는 것이다.As another example, when the total sector length of the
변경부(220)는 제3 메모리(30)의 데이터를 변경하는 구성이다. 구체적으로, 변경부(220)는 제3 메모리(30)의 전체 데이터를 널(null) 데이터(0x00)로 변경한다. 즉, 변경부(220)는 덤프 파일 복사에 앞서 제3 메모리(30)의 전체 데이터를 지운다(erase). 변경부(220)는 비교부(210)의 비교결과 제1 메모리(10)의 전체 섹터 길이와 제3 메모리(30)의 전체 섹터 길이가 같거나, 사용자에 의해 메모리 복제 프로세스 진행 신호가 입력되면 제3 메모리(30)를 포맷(format)한다. 이는, 이후에 설명하는 복제 프로세스를 통해, 널 데이터로 이루어진 제3 메모리(30)에 덤프 파일에 구성된 유효 데이터만이 복사(write)됨으로써, 복사되지 않은 영역은 널 데이터로 유지하기 위함이다.The
확인부(230)는 제2 메모리(20)의 덤프 파일의 헤더 정보를 확인하는 구성이다. 구체적으로, 확인부(230)는 제2 메모리(20)의 덤프 파일에 포함된 섹션의 헤더 정보 내 체크섬과 해당 섹션에 대응하는 제3 메모리(30)의 체크섬이 일치하는지를 확인한다. 즉, 확인부(230)는 제2 메모리(20)의 해당 섹션의 헤더 정보 내 시작 섹터 주소 정보와 섹터 길이 정보를 이용하여 해당 섹션에 대응하는 영역의 제3 메모리(30)의 체크섬을 구하며, 구해진 제3 메모리(30)의 체크섬과 제2 메모리(20)의 체크섬이 일치 여부를 확인한다. 예를 들어, 확인부(230)는 도 5에서의 섹션_a1의 헤더 정보 내 시작 섹터 주소 정보와 섹터 길이 정보를 이용하여 제3 메모리(30)의 해당 섹션에 대응하는 영역의 체크섬을 구하며, 구해진 제3 메모리(30)의 체크섬이 섹션_a1의 헤더 정보 내 체크섬과 일치하는지를 확인한다.The
확인부(230)의 확인결과, 제3 메모리(30)의 체크섬과 제2 메모리(20)의 체크섬이 일치하면, 복사부(240)는 제2 메모리(20)의 해당 섹션(섹션_a1)의 실제 데이터를 제3 메모리(30)에 복사한다. 이때, 복사부(240)는 제2 메모리(20)의 해당 섹션의 섹터 시작 주소와 동일한 제3 메모리(30)의 섹터 주소부터 해당 섹션의 섹터 길이 만큼 제3 메모리(30)에 실제 데이터를 복사한다.As a result of confirming by the
예를 들어, 확인부(230)는 도 5에서의 섹션_a1의 체크섬과 제3 메모리(30)의 체크섬이 일치하는지 여부를 확인한다. 확인부(230)의 확인 결과 일치하면, 복사부(240)는 섹션_a1의 시작 섹터 주소에 해당하는 제3 메모리(30)의 섹터 주소부터 섹션_a1의 실제 데이터를 복사한다. 섹션_a1의 실제 데이터가 제3 메모리(30)에 복사되면, 확인부(230)는 섹션_a2의 체크섬과 제3 메모리(30)의 체크섬이 일치하는지 여부를 확인한다. 확인부(230)의 확인 결과 일치하면, 복사부(240)는 섹션_a2의 시작 섹터 주소에 해당하는 제3 메모리(30)의 섹터 주소부터 섹션_a2의 실제 데이터를 복사한다. 위와 같은 과정을 반복하여 제2 메모리(20)에 기록된 덤프 파일이 제3 메모리(30)에 복사된다.For example, the
한편, 확인부(230)는 제2 메모리(20)의 덤프 파일에 널 데이터로 구성된 헤더 정보를 확인하면 덤프 파일이 끝났음을 확인할 수 있다. 구체적으로, 확인부(230)는 제2 메모리(20)의 덤프 파일의 헤더 정보에 포함된 시작 섹터 주소 정보, 섹터 길이 정보 및 체크섬 정보가 모두 0x00이면, 제2 메모리(20)의 덤프 파일이 모두 제3 메모리(30)에 복사됨을 알 수 있다. 즉, 확인부(230)에 의해 널 데이터로 구성된 헤더 정보가 확인되면, 복사부(240)는 제3 메모리(30)에 제2 메모리(20)의 덤프 파일을 복사하는 프로세스를 종료한다.On the other hand, if the
한편, 메모리 덤프 파일 복제 장치(200)는 덤프 프로그램이 제1 메모리(10) 또는 다른 메모리에 로딩 되어 구동됨에 따라 전술한 바와 같이 덤프 파일을 생성할 수 있다.The memory dump
이와 같이, 본 발명의 실시예에 따르면 복제하고자 하는 AVN 장치의 원 메모리에서 유효하지 않은 널 데이터를 제외한 실제 데이터가 저장된 유효 데이터만을 추출하여 덤프 파일을 생성함으로써, 원 메모리보다 작은 데이터 크기의 덤프 파일을 생성할 수 있다.As described above, according to an embodiment of the present invention, a dump file having a smaller data size than the original memory is generated by extracting only the valid data in which the actual data except the invalid null data is stored in the original memory of the AVN device to be duplicated. Can be generated.
또한, 본 발명의 실시예에 따르면 복제 메모리에 덤프 파일을 복사 시 유효 데이터만을 복사함으로써, 데이터 복사 시간이 단축될 수 있다.In addition, according to an embodiment of the present invention, by copying only valid data when copying a dump file to a copy memory, data copy time may be shortened.
덧붙여, 본 발명의 실시예에 따르면 메모리 덤프 파일 생성 장치가 AVN 장치 내에 구현되어, AVN 장치의 PCB에 BGA(ball grid array)된 원 메모리를 분리하지 않고 덤프 파일을 생성할 수 있다.
In addition, according to an embodiment of the present invention, a memory dump file generating device may be implemented in the AVN device to generate a dump file without separating the original memory that is ball grid array (BGA) mounted on the PCB of the AVN device.
도 8은 본 발명의 실시예에 따른 메모리 덤프 파일 생성 장치에 의한 메모리 덤프 파일 생성 방법 흐름도이다.8 is a flowchart illustrating a method of generating a memory dump file by the apparatus for generating a memory dump file according to an embodiment of the present invention.
메모리 덤프 파일 생성 장치(100)는 제1 메모리(10) 내 데이터를 제1 임계 크기 단위로 읽어 온다(S810).The memory dump
구체적으로, 메모리 덤프 파일 생성 장치(100)는 AVN 장치 내 PCB에 온보드 된 제1 메모리(10)로부터 도 3에 예시된 바와 같이 데이터를 32MByte 단위로 획득할 수 있으며, 이는 사용자에 의해 변경 가능하다.Specifically, the memory dump
메모리 덤프 파일 생성 장치(100)는 획득된 제1 임계 크기의 데이터를 분석하여 널(null) 데이터의 존재 여부를 고려하여 적어도 하나의 섹션을 구분한다(S820).The
구체적으로, 메모리 덤프 파일 생성 장치(100)는 단계 S810에서 획득된 제1 임계 크기의 데이터 내 널 데이터가 제2 임계 크기 이상 인접하는지 확인한다. 여기서, 제2 임계 크기는 64KByte일 수 있으며, 이는 사용자에 의해 변경 가능하다.In detail, the memory dump
예컨대 도 3에 예시된 바와 같이, 메모리 덤프 파일 생성 장치(100)는 32MByte의 데이터를 분석하여, 32MByte 내 64KByte 크기 이상의 널 데이터(0x00)가 존재하면, 64KByte 이상의 널 데이터(0x00) 이전까지의 데이터를 하나의 섹션(섹션_a1)으로 구분한다. 또한, 64KByte 이상의 널 데이터(0x00) 이후에도 데이터가 존재한다면, 메모리 덤프 파일 생성 장치(100)는 널 데이터(0x00) 이후의 데이터를 다른 하나 이상의 섹션(섹션_a2)으로 구분한다. 다른 예로, 도 3에 예시된 바와 같이 분석된 32MByte의 데이터 내 64KByte 이상의 널 데이터(0x00)가 존재하지 않으면, 메모리 덤프 파일 생성 장치(100)는 32Byte 전체를 하나의 섹션(섹션_b1)으로 구분한다. 만약, 32MByte 전체가 널 데이터(0x00)인 경우에 메모리 덤프 파일 생성 장치(100)는 32MByte 전체를 섹션으로 구분하지 않는다.For example, as illustrated in FIG. 3, the memory dump
메모리 덤프 파일 생성 장치(100)는 단계 S820에서 구분된 섹션에서, 유효 섹션에 대해 구성되는 헤더 정보 및 실제 데이터를 이용하여 덤프 파일을 생성한다(S830).In operation S820, the memory dump
여기서, 헤더 정보는 도 4에 예시된 바와 같이 유효 섹션에 대한 섹터 시작 주소 정보, 섹터 길이 정보 및 체크섬 정보를 포함한다. 구체적으로, 섹터 시작 주소 정보는 유효 섹션에 포함된 실제 데이터가 제2 메모리(20)의 몇 번째 섹터에서부터 기록되어야 하는지를 나타내는 정보로서, 제1 메모리(10)에 실제 데이터가 저장된 섹터의 시작 번지일 수 있다. 또한, 섹터 길이 정보는 유효 섹션이 몇 개의 섹터로 구성되는지를 나타내는 섹터 크기 정보로, 예를 들어 10MByte일 수 있다. 일 예로, 섹션이 32MByte 단위이나, 10MByte 데이터 후 연속해서 64KByte의 '0x00'의 값이 올 경우, 이번 섹션은 10MByte로 구성되며, 섹터 길이 정보는 10MByte라는 섹터 크기일 수 있다. 덧붙여, 체크섬 정보는 제1 메모리(10)에 실제 데이터를 DWORD 단위로 나타낸 정보일 수 있다.Here, the header information includes sector start address information, sector length information, and checksum information for the valid section as illustrated in FIG. Specifically, the sector start address information is information indicating from which sector of the
도 5에 예시된 바와 같이, 메모리 덤프 파일 생성 장치(100)는 각 유효 섹션에 대해 구성되는 헤더 정보와 그 유효 섹션의 실제 데이터를 연결하여 덤프 파일을 생성한다. 구체적으로, 메모리 덤프 파일 생성 장치(100)는 섹션_a1에 대응하는 헤더 정보를 구성하고, 섹션_a1의 헤더 정보에 섹션_a1의 실제 데이터를 연결한다. 또한, 메모리 덤프 파일 생성 장치(100)는 섹션_a2에 대응하는 헤더 정보를 구성하여 섹션_a1의 실제 데이터에 연결하고, 섹션_a2의 헤더 정보에 섹션_a2의 실제 데이터를 연결한다. 덧붙여, 메모리 덤프 파일 생성 장치(100)는 섹션_b1에 대응하는 헤더 정보를 구성하여 섹션_a2의 실제 데이터에 연결하고, 섹션_b1의 헤더 정보에 연결하여 섹션_b1의 실제 데이터를 연결한다.As illustrated in FIG. 5, the memory dump
위와 같은 과정을 통해, 메모리 덤프 파일 생성 장치(100)는 제1 메모리(10) 내 유효 데이터만을 이용하여 덤프 파일을 생성한다. 이와 같이, 제1 메모리(10) 내 널 데이터를 제외하고 유효 데이터만을 이용하여 덤프 파일을 생성함으로써, 제1 메모리(10)의 실제 크기보다 작은 크기의 덤프 파일이 생성될 수 있다. 예를 들어, 제1 메모리(10) 내 복제할 데이터는 널 데이터를 포함하여 4~16GByte의 용량일 수 있으나, 유효하지 않은 널 데이터를 제외하여 생성되는 덤프 파일은 1~2GByte으로 생성될 수 있다. 즉, 생성된 덤프 파일이 기록되는 제2 메모리(20)에는 1~2GByte의 작은 용량의 메모리가 이용될 수 있는 것이다.Through the above process, the memory dump
메모리 덤프 파일 생성 장치(100)는 단계 S830에서 생성된 덤프 파일을 제2 메모리(20)에 기록한다(S840).The memory dump
구체적으로, 메모리 덤프 파일 생성 장치(100)는 덤프 파일을 제2 메모리(20)에 기록 시, 덤프 파일의 시작 부분에 덤프 파일임을 표시하는 정보를 기록한다. 예컨대 도 6에 예시된 바와 같이, 메모리 덤프 파일 생성 장치(100)는 덤프 파일의 시작 부분에 덤프 파일임을 나타내는 8byte 값을 두어 제2 메모리(20)에 기록한다. 이를 통해, 덤프 파일과 다른 파일을 구분하도록 하여 잘못된 파일 상용을 방지할 수 있다.Specifically, the memory dump
또한, 메모리 덤프 파일 생성 장치(100)는 도 6에 예시된 바와 같이 제2 메모리(20)에 제1 메모리(10)의 전체 섹터 길이 정보를 더 기록한다. 이를 통해, 제1 메모리(10)와 다른 크기의 메모리(예를 들어, 제3 메모리(30))에 제1 메모리(10)의 실제 데이터가 복사되는 것을 방지할 수 있다. 즉, 제1 메모리(10) 보다 크기가 작은 메모리에는 제1 메모리(10)의 전체 데이터가 복사될 수 없기 때문에, 복사 작업이 수행되는 것을 방지하기 위함이다.In addition, the memory dump
덧붙여, 메모리 덤프 파일 생성 장치(100)는 덤프 파일의 마지막에 널 테이터(0x00)로 구성된 헤드 정보를 기록한다. 즉, 도 5에 예시된 바와 같이, 메모리 덤프 파일 생성 장치(100)는 덤프 파일 마지막에 섹터 시작 주소 정보, 섹터 길이 정보 및 체크섬 정보가 {0,0,0}인 헤더 정보를 기록한다. 이는, 제3 메모리(30)에 덤프 파일을 복사하는 과정에서, 널 데이터로 구성된 헤더 정보가 확인될 시 제2 메모리(20)에 기록된 덤프 파일이 모두 제3 메모리(30)에 복사된 것으로 판단하여 덤프 파일의 복제 프로세스를 종료할 수 있다.In addition, the memory dump
한편, 메모리 덤프 파일 생성 장치(100)는 덤프 파일이 일정 크기 이상으로 생성된 경우, 덤프 파일을 다수로 나눠 기록할 수 있다. 예컨대, 생성된 덤프 파일이 4GByte를 넘을 경우, 메모리 덤프 파일 생성 장치(100)는 4GByte 단위로 덤프 파일을 나눠 제2 메모리(20)에 기록하며, 덤프 파일의 확장자에 덤프 파일이 다수개로 기록됨을 표시할 수 있다. On the other hand, the memory dump
일 예로, 생성된 덤프 파일이 4GByte 이하인 경우, 메모리 덤프 파일 생성 장치(100)는 1개의 덤프 파일을 제2 메모리(20)에 기록할 수 있으며, 파일명은 MoviImage.bin로 기록될 수 있다. 다른 예로, 생성된 덤프 파일이 4GByte 초과 8GByte 이하인 경우, 메모리 덤프 파일 생성 장치(100)는 2개의 덤프 파일을 제2 메모리(20)에 기록할 수 있으며, 파일명은 각각 MoviImage.bc1, MoviImage.be2로 기록될 수 있다. 또 다른 예로, 생성된 덤프 파일이 8GByte 초과 12GByte 이하인 경우, 메모리 덤프 파일 생성 장치(100)는 3개의 덤프 파일을 제2 메모리(20)에 기록할 수 있으며, 그 파일명은 각각 MoviImage.bc1, MoviImage.bc2, MoviImage.be3로 기록될 수 있다. 즉, 기록부(140)는 덤프 파일이 1개인 경우 파일명의 확장자를 bin으로, 뒤에 파일이 더 존재하는 경우에는 파일명의 확장자를 bc+숫자로, 마지막 파일인 경우에는 파일명의 확장자를 be+숫자로 기록할 수 있다.For example, when the generated dump file is 4 GByte or less, the memory dump
한편, 도 9는 본 발명의 실시예에 따른 메모리 덤프 파일 복제 장치에 의한 메모리 덤프 파일 복제 방법 흐름도이다.9 is a flowchart illustrating a memory dump file duplication method by a memory dump file duplication apparatus according to an exemplary embodiment of the present invention.
메모리 덤프 파일 복제 장치(200)는 제3 메모리(30)의 전체 데이터를 널(null) 데이터(0x00)로 변경한다(S910).The memory dump
단계 S910의 동작을 수행하기 전, 메모리 덤프 파일 복제 장치(200)는 제1 메모리(10)와 제1 메모리(10)의 데이터를 복제하고자하는 제3 메모리(30)의 메모리 크기를 비교한다. 즉, 메모리 덤프 파일 복제 장치(200)는 제2 메모리(20)에 저장된 제1 메모리(10)의 전체 섹터 길이와 제2 메모리(20)의 전체 섹터 길이를 비교한다.Before performing the operation of step S910, the memory dump
일 예로, 제2 메모리(20)에 저장된 제1 메모리(10)의 전체 섹터 길이가 제3 메모리(30)보다 큰 경우, 메모리 덤프 파일 복제 장치(200)는 복사가 불가하다는 에러(error) 신호를 발생한다. 예컨대, 제1 메모리(10)의 전체 섹터 길이는 15.50GByte이지만, 제1 메모리(10)의 데이터를 복제하고자하는 제3 메모리(30)의 전체 섹터 길이가 15.30GByte이면, 메모리 덤프 파일 복제 장치(200)는 사용자 인터페이스를 통해 에러 신호를 발생하여 데이터 복사가 불가능함을 사용자에게 알린다. 이는, 제1 메모리(10)의 전체 데이터에서 0.20GByte만큼의 데이터가 제3 메모리(30)에 복사될 수 없기 때문이다.For example, when the total sector length of the
다른 예로, 제2 메모리(20)에 저장된 제1 메모리(10)의 전체 섹터 길이가 제3 메모리(30)보다 작은 경우, 메모리 덤프 파일 복제 장치(200)는 사용자 인터페이스를 통해 사용자의 선택을 요청하는 신호를 발생한다. 예컨대, 제1 메모리(10)의 전체 섹터 길이는 15.50GByte이지만, 제1 메모리(10)의 데이터를 복제하고자하는 제3 메모리(30)의 전체 섹터 길이가 15.70GByte이면, 메모리 덤프 파일 복제 장치(200)는 사용자에게 메모리 복제 프로세스를 계속 진행할지 여부를 묻는다. 이는, 제1 메모리(10)의 전체 데이터가 제3 메모리(30)에 복사될 수 있으며, 0.20GByte만큼의 제3 메모리(30)에 여유 공간이 발생하므로, 복사를 계속 진행할 것인지, 또는 제1 메모리(10)와 같은 크기의 메모리로 변경할지를 묻는 것이다.As another example, when the total sector length of the
제1 메모리(10)의 전체 섹터 길이와 제3 메모리(30)의 전체 섹터 길이가 같거나, 사용자에 의해 메모리 복제 프로세스 진행 신호가 입력되면, 메모리 덤프 파일 복제 장치(200)는 제3 메모리(30)의 전체 데이터를 지워 제3 메모리(30)를 포맷시킨다. 이는, 이후에 설명하는 복제 프로세스를 통해, 널 데이터로 이루어진 제3 메모리(30)에 덤프 파일에 구성된 유효 데이터만이 복사(write)됨으로써, 복사되지 않은 영역은 널 데이터로 유지하기 위함이다.When the total sector length of the
메모리 덤프 파일 복제 장치(200)는 제2 메모리(20)의 덤프 파일에 포함된 섹션의 헤더 정보 내 체크섬과 해당 섹션에 대응하는 제3 메모리(30)의 체크섬이 일치하는지를 확인한다(S920).The memory dump
즉, 메모리 덤프 파일 복제 장치(200)는 제2 메모리(20)의 해당 섹션의 헤더 정보 내 시작 섹터 주소 정보와 섹터 길이 정보를 이용하여 제3 메모리(30)의 해당 섹션에 대응하는 영역의 체크섬을 구하며, 구해진 제3 메모리(30)의 체크섬과 제2 메모리(20)의 체크섬이 일치 여부를 확인한다. 예를 들어, 메모리 덤프 파일 복제 장치(200)는 도 5에서의 섹션_a1의 헤더 정보 내 시작 섹터 주소 정보와 섹터 길이 정보를 이용하여 제3 메모리(30)의 해당 섹션에 대응하는 영역의 체크섬을 구하며, 구해진 제3 메모리(30)의 체크섬이 섹션_a1의 헤더 정보 내 체크섬과 일치하는지를 확인한다.That is, the memory dump
단계 S920의 확인결과, 제3 메모리(30)의 체크섬과 제2 메모리(20)의 체크섬이 일치하면, 메모리 덤프 파일 복제 장치(200)는 제2 메모리(20)의 해당 섹션의 실제 데이터를 제3 메모리(30)에 복사한다(S930).As a result of checking in step S920, when the checksum of the
이때, 메모리 덤프 파일 복제 장치(200)는 제2 메모리(20)의 해당 섹션의 섹터 시작 주소와 동일한 제3 메모리(30)의 섹터 주소부터 해당 섹션의 섹터 길이 만큼 제3 메모리(30)에 실제 데이터를 복사한다.At this time, the memory dump
예를 들어, 도 5에서의 섹션_a1의 체크섬과 제3 메모리(30)의 체크섬이 일치하면, 메모리 덤프 파일 복제 장치(200)는 섹션_a1의 시작 섹터 주소에 해당하는 제3 메모리(30)의 섹터 주소부터 섹션_a1의 실제 데이터를 복사한다. 섹션_a1의 실제 데이터가 제3 메모리(30)에 복사되면, 메모리 덤프 파일 복제 장치(200)는 섹션_a2의 체크섬과 제3 메모리(30)의 체크섬이 일치하는지 여부를 확인한다. 확인 결과 일치하면, 메모리 덤프 파일 복제 장치(200)는 섹션_a2의 시작 섹터 주소에 해당하는 제3 메모리(30)의 섹터 주소부터 섹션_a2의 실제 데이터를 복사한다. 위와 같은 과정을 반복하여 제2 메모리(20)에 기록된 덤프 파일이 제3 메모리(30)에 복사된다.For example, if the checksum of section_a1 and the checksum of the
단계 S920 및 단계 S930을 반복적으로 수행하는 중 덤프 파일에 널 데이터로 구성된 헤더 정보를 확인하면(S940), 메모리 덤프 파일 복제 장치(200)는 제3 메모리(30)에 제2 메모리(20)의 덤프 파일을 복사하는 프로세스를 종료한다. 구체적으로, 메모리 덤프 파일 복제 장치(200)는 제2 메모리(20)의 덤프 파일의 헤더 정보에 포함된 시작 섹터 주소 정보, 섹터 길이 정보 및 체크섬 정보가 모두 0x00이면, 제2 메모리(20)의 덤프 파일이 모두 제3 메모리(30)에 복사되었음을 알 수 있다. When repeatedly performing the steps S920 and S930, when the header information including the null data is confirmed in the dump file (S940), the memory dump
이와 같이, 본 발명의 실시예에 따르면 복제하고자 하는 AVN 장치의 원 메모리에서 유효하지 않은 널 데이터를 제외한 실제 데이터가 저장된 유효 데이터만을 추출하여 덤프 파일을 생성함으로써, 원 메모리보다 작은 데이터 크기의 덤프 파일을 생성할 수 있다.As described above, according to an embodiment of the present invention, a dump file having a smaller data size than the original memory is generated by extracting only the valid data in which the actual data except the invalid null data is stored in the original memory of the AVN device to be copied. Can be generated.
또한, 본 발명의 실시예에 따르면 복제 메모리에 덤프 파일을 복사 시 유효 데이터만을 복사함으로써, 데이터 복사 시간이 단축될 수 있다.In addition, according to an embodiment of the present invention, by copying only valid data when copying a dump file to a copy memory, data copy time may be shortened.
덧붙여, 본 발명의 실시예에 따르면 메모리 덤프 파일 생성 장치가 AVN 장치 내에 구현되어, AVN 장치의 PCB에 BGA(ball grid array)된 원 메모리를 분리하지 않고 덤프 파일을 생성할 수 있다.
In addition, according to an embodiment of the present invention, a memory dump file generating device may be implemented in the AVN device to generate a dump file without separating the original memory that is ball grid array (BGA) mounted on the PCB of the AVN device.
이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.
10 : 제1 메모리 20 : 제2 메모리
30 : 제3 메모리 100 : 메모리 덤프 파일 생성 장치
110 : 획득부 120 : 추출부
130 : 생성부 140 : 기록부
200 : 메모리 덤프 파일 복제 장치 210 : 비교부
220 : 변경부 230 : 확인부
240 : 복사부10: first memory 20: second memory
30: third memory 100: memory dump file generating device
110: acquisition unit 120: extraction unit
130: generating unit 140: recording unit
200: memory dump file replication device 210: comparison unit
220: change unit 230: confirmation unit
240: copy unit
Claims (9)
상기 제1 메모리 내 데이터를 제1 임계 크기 단위로 읽어오는 획득부;
상기 제1 임계 크기의 데이터 내에 제2 임계 크기 이상 인접하여 존재하는 널(null) 데이터의 존재 여부를 고려하여, 상기 제1 임계 크기의 데이터에서 실제 데이터를 각기 적어도 하나의 섹션(Section)으로 구분하는 추출부;
각기 구분된 상기 실제 데이터가 저장된 각 유효 섹션에 대해 섹터(Sector) 시작 주소, 섹터 길이 및 체크섬(CheckSum) 정보를 포함하는 헤더(Header) 정보를 구성하고, 상기 각 유효 섹션의 상기 헤더 정보와 상기 실제 데이터를 연결하여 덤프 파일을 생성하는 생성부; 및
생성된 상기 덤프 파일을 제2 메모리에 기록하는 기록부;
를 포함하는 메모리 덤프 파일 생성 장치.In the memory dump file generating device for generating a dump file for the first memory mounted in the device,
An acquisition unit for reading the data in the first memory in units of a first threshold size;
In consideration of the existence of null data adjacent to the second threshold size or more in the first threshold size data, the actual data is divided into at least one section in the first threshold size data. An extraction unit;
Configure header information including a sector start address, a sector length, and a checksum information for each valid section in which the divided actual data are stored; A generation unit connecting the actual data to generate a dump file; And
A recording unit for recording the generated dump file in a second memory;
Memory dump file generation device comprising a.
상기 추출부는 상기 제1 임계 크기의 데이터에 상기 널 데이터가 제2 임계 크기 이상 인접하여 존재하는 경우, 상기 널 데이터 이전과 이후의 데이터를 각기 다른 섹션으로 구성하고, 상기 제1 임계 크기의 데이터 내 상기 제2 임계 크기 이상의 인접한 널 데이터가 존재하지 않는 경우, 상기 제1 임계 크기의 데이터 전체를 상기 하나의 섹션으로 구성하는 것인 메모리 덤프 파일 생성 장치.The method of claim 1,
When the null data exists adjacent to the first threshold size or more by a second threshold size or more, the extractor configures data before and after the null data into different sections, and includes the data within the first threshold size data. And if there is no adjacent null data larger than the second threshold size, all of the data of the first threshold size are configured into the one section.
상기 기록부는 상기 덤프 파일이 일정 크기 이상인 경우, 상기 덤프 파일을 다수로 나눠 기록하고, 다수의 덤프 파일이 기록되었음을 상기 다수의 덤프 파일의 확장자에 표시하는 것인 메모리 덤프 파일 생성 장치.The method of claim 1,
And the recording unit records the dump file by dividing the dump file into a plurality of pieces when the dump file has a predetermined size or more, and indicates that a plurality of dump files have been recorded in an extension of the plurality of dump files.
상기 기록부는 상기 제2 메모리에 상기 덤프 파일과 함께 상기 제1 메모리의 전체 섹터 길이 정보를 기록하며, 상기 제2 메모리에 기록된 상기 덤프 파일의 시작 부분에는 덤프 파일임을 표시하는 정보를, 마지막 부분에는 널 데이터로 구성된 상기 헤더 정보를 더 기록하는 것인 메모리 덤프 파일 생성 장치.The method of claim 1,
The recording unit records total sector length information of the first memory together with the dump file in the second memory, and at the beginning of the dump file recorded in the second memory, information indicating that the dump file is a last part. And a memory dump file generating device for recording the header information consisting of null data.
상기 제3 메모리의 전체를 널(null) 데이터로 변경하는 변경부;
상기 복수의 섹션의 헤더 정보 내 체크섬(CheckSum)과 상기 복수의 섹션에 대응하는 상기 제3 메모리의 체크섬이 일치하는지 순차적으로 확인하는 확인부; 및
확인 결과 일치하면, 확인된 섹션의 상기 헤더 정보 내 섹터(Sector) 시작 주소와 동일한 상기 제3 메모리의 섹터 주소에 상기 확인된 섹션의 실제 데이터를 복사하는 복사부;를 포함하되,
상기 복사부는 상기 확인된 섹션의 실제 데이터를 순차적으로 복사하며, 상기 확인부에 의해 상기 덤프 파일의 상기 헤더 정보가 널 데이터로 확인되면, 이후에 상기 덤프 파일이 존재하지 않음으로 판단하여 상기 확인된 섹션의 실제 데이터 및 그 이후의 데이터에 대한 복사를 중단하는 것인 메모리 덤프 파일 복제 장치.In the memory dump file duplication apparatus for duplicating a dump file divided into a plurality of sections stored in the second memory to the third memory,
A changer which changes the entirety of the third memory into null data;
A verification unit that sequentially checks whether a checksum in the header information of the plurality of sections and the checksum of the third memory corresponding to the plurality of sections match; And
And a copy unit for copying the actual data of the checked section to a sector address of the third memory that is the same as a sector start address in the header information of the checked section if the check result matches.
The copying unit copies the actual data of the checked section sequentially, and when the header information of the dump file is confirmed as null data by the checking unit, it is determined that the dump file does not exist thereafter. Memory dump file replication device that stops copying the section's actual data and subsequent data.
상기 덤프 파일에 저장된 제1 메모리의 전체 섹터 길이와 상기 제3 메모리의 전체 섹터 길이가 같은지 비교하며, 상기 전체 섹터 길이가 다른 경우, 상기 제1 메모리와 상기 제3 메모리의 전체 섹터 길이가 다름을 사용자에게 알리는 비교부;
를 더 포함하는 것인 메모리 덤프 파일 복제 장치.The method of claim 5,
The total sector length of the first memory stored in the dump file is equal to the total sector length of the third memory, and if the total sector lengths are different, the total sector lengths of the first memory and the third memory are different. A comparison unit informing the user;
Memory dump file cloning device further comprising.
상기 제1 메모리 내 데이터를 제1 임계 크기 단위로 읽어오는 단계;
상기 제1 임계 크기의 데이터 내에 널(null) 데이터의 존재 여부를 고려하여, 상기 제1 임계 크기의 데이터에서 실제 데이터를 각기 적어도 하나의 섹션(Section)으로 구분하는 단계;
각기 구분된 상기 실제 데이터가 저장된 각 유효 섹션에 대해 섹터(Sector) 시작 주소, 섹터 길이 및 체크섬(CkeckSum) 정보를 포함하는 헤더 정보를 구성하고, 상기 각 유효 섹션의 상기 헤더 정보와 상기 실제 데이터를 연결하여 덤프 파일을 생성하는 단계; 및
생성된 상기 덤프 파일을 제2 메모리에 기록하되, 상기 제2 메모리에 상기 덤프 파일과 함께 상기 제1 메모리의 전체 섹터 길이 정보를 기록하며, 상기 제2 메모리에 기록된 상기 덤프 파일의 시작 부분에는 덤프 파일임을 표시하는 정보를, 마지막 부분에는 널 데이터로 구성된 상기 헤더 정보를 포함하여 기록하는 단계;
를 포함하는 것인 메모리 덤프 파일 생성 방법.In the memory dump file generation method for generating a dump file (Dump File) for the first memory mounted in the device,
Reading the data in the first memory in units of a first threshold size;
Dividing the actual data into at least one section in the data of the first threshold size in consideration of whether null data exists in the data of the first threshold size;
Configure header information including a sector start address, a sector length, and checksum information for each valid section in which the divided actual data are stored, and the header information and the actual data of each valid section are stored. Connecting and generating a dump file; And
The generated dump file is recorded in a second memory, and the total sector length information of the first memory is recorded in the second memory together with the dump file, and at the beginning of the dump file recorded in the second memory. Recording information indicating that the file is a dump file, and including the header information including null data at a last portion thereof;
Method of generating a memory dump file that includes.
상기 제3 메모리의 전체를 널(null) 데이터로 변경하는 단계;
상기 복수의 섹션의 헤더 정보 내 체크섬(CheckSum)과 상기 복수의 섹션에 대응하는 상기 제3 메모리의 섹션의 체크섬을 순차적으로 확인하며, 확인 결과 일치하면, 상기 확인된 섹션의 실제 데이터를 상기 헤더 정보 내 섹터 시작 주소와 동일한 상기 제3 메모리의 섹터 주소에 복사하는 단계; 및
상기 섹션의 실제 데이터를 순차적으로 복사하는 중, 상기 덤프 파일의 상기 헤더 정보가 널 데이터로 확인되면, 상기 확인된 섹션의 실제 데이터 및 그 이후의 데이터에 대한 복사를 중단하는 단계;
를 포함하는 메모리 덤프 파일 복제 방법.A memory dump file cloning method using a memory dump file cloning device for copying a dump file divided into a plurality of sections stored in a second memory to a third memory,
Changing the entirety of the third memory to null data;
The checksum in the header information of the plurality of sections and the checksum of the section of the third memory corresponding to the plurality of sections are sequentially checked. If the matching result is matched, the actual data of the checked section is determined. Copying to a sector address of the third memory that is the same as a sector start address in the third memory; And
If the header information of the dump file is found to be null data while sequentially copying the actual data of the section, stopping copying the actual data of the checked section and subsequent data;
Memory dump file cloning method comprising a.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130054722A KR102066739B1 (en) | 2013-05-15 | 2013-05-15 | Device for creating and copying dump file of memory and the operating method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020130054722A KR102066739B1 (en) | 2013-05-15 | 2013-05-15 | Device for creating and copying dump file of memory and the operating method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20140134838A KR20140134838A (en) | 2014-11-25 |
KR102066739B1 true KR102066739B1 (en) | 2020-01-15 |
Family
ID=52455723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020130054722A KR102066739B1 (en) | 2013-05-15 | 2013-05-15 | Device for creating and copying dump file of memory and the operating method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR102066739B1 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070031647A (en) * | 2005-09-15 | 2007-03-20 | 삼성전자주식회사 | Space-Efficient Management Method of Compressed Data in Flash Memory Storages |
US8054691B2 (en) * | 2009-06-26 | 2011-11-08 | Sandisk Technologies Inc. | Detecting the completion of programming for non-volatile storage |
KR101191650B1 (en) * | 2010-10-04 | 2012-10-17 | 한국과학기술원 | Apparatus and method for mapping the data address in NAND flash memory |
-
2013
- 2013-05-15 KR KR1020130054722A patent/KR102066739B1/en active IP Right Grant
Also Published As
Publication number | Publication date |
---|---|
KR20140134838A (en) | 2014-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101905280B1 (en) | High performance system providing selective merging of dataframe segments in hardware | |
US6577735B1 (en) | System and method for backing-up data stored on a portable audio player | |
CN103425589A (en) | Control apparatus, storage device, and storage control method | |
WO2018040802A1 (en) | Full-image file generation method and apparatus, and computer storage medium | |
KR101351561B1 (en) | Big data extracting system and method | |
TWI506438B (en) | Data storage apparatus and management method thereof | |
CN107766067B (en) | Method for improving compressed mirror image burning speed, storage medium and computer | |
CN111752894A (en) | Method, system, host and storage medium for writing and reading confidential files in storage device based on data splitting | |
CN110504002B (en) | Hard disk data consistency test method and device | |
KR101698211B1 (en) | Method for authenticating a storage device, machine-readable storage medium and host device | |
KR102066739B1 (en) | Device for creating and copying dump file of memory and the operating method thereof | |
JPH09167447A (en) | Device and method for recording/reproducing data and data recording medium | |
JP6103958B2 (en) | Semiconductor memory device | |
CN105139870A (en) | Real-time recording method of optical disc and device | |
JP4476021B2 (en) | Disk array system | |
US8775383B2 (en) | File editing apparatus and file editing method | |
JP2006133923A (en) | Data recording/reproducing device, recording/reproducing method, program and data recording medium | |
CN111309526A (en) | File backup and recovery method and device | |
CN107229535B (en) | Multi-copy storage method, storage device and data reading method for data block | |
CN112579371B (en) | Testing method, testing device and testing system of storage device | |
CN103700388A (en) | File recording apparatus, file system management method, file recovery method, and changer drive | |
JP2004206742A (en) | Recording or reproducing device | |
JP2023013352A (en) | Data recording system, storage device, image receiving device, and program | |
JP3705145B2 (en) | AV data replication device | |
CN110008227B (en) | Consistency group reliability verification method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |