Method and device for simulating Nand flash of 2048 byte page into hard disk

A byte and hard disk technology, applied in the field of simulating 2048-byte Nand Flash into a hard disk, which can solve the problem of not supporting random writing of pages within a block

Active Publication Date: 2009-02-11
NEW H3C TECH CO LTD
View PDF0 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the prior art, since Nand Flash with 2048-byte pages does not support random writing of pages within a block, and the page size is not equal to the sector size of 512 bytes in the disk file system, there is currently no system that can write 2048-byte The Nand Flash of the page is simulated as a hard disk

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for simulating Nand flash of 2048 byte page into hard disk
  • Method and device for simulating Nand flash of 2048 byte page into hard disk
  • Method and device for simulating Nand flash of 2048 byte page into hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0077] Firstly, the MTD subsystem for managing the Flash device in the Linux operating system involved in the present invention will be introduced below.

[0078] The MTD subsystem is used in the Linux operating system to manage various Flash devices, such as Nor Flash, Nand Flash, etc. The structure of the MTD subsystem is as follows figure 1 As shown, MTD Char simulates Flash as a character device, MTD Block simulates Flash as an MTD block device and runs the Flash file system, and NFTL simulates Nand Flash as a hard disk and runs the disk file system.

[0079] figure 1The main functions of the MTD core layer (MTD Core) and the Nand Flash general driver are to identify and drive the Nand Flash chip, and perform read, write and erase operations on the Nand Flash. The main function of NFTL is to simulate Nand Flash as a hard disk, establish the mapping relationship between sectors in the disk file system and pages in NandFlash, and convert the read and write operations of th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for simulating a 2048 byte page Nand Flash into a hard disk. The method comprises the following steps: the read operation or the write operation of a disk file to a disk sector is received; a 512 byte page corresponding to the disk sector is acquired according to the OOB information of the 512 byte page in Nand Flash, and read operation or the sequential write operation in the page in a block is performed to the acquired 512 byte page, wherein, the 512 byte page is obtained by dividing each 2048 byte page in advance; the OOB information comprises the logic unit, the state, the logic sector corresponding to the 512 byte page and the replacing block of the block. The method divides each page of each block in the Nand Flash of the 2048 byte page into four 512 byte pages, and realizes the simulating of the 2048 byte page Nand Flash the a hard disk according to the OOB information of the 512 byte page in Nand Flash, thereby running the disk file system on the large page Nand Flash.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method and device for simulating a 2048-byte page Nand Flash into a hard disk. Background technique [0002] Flash (flash memory) is widely used in embedded systems to store programs and data. Flash has features such as retaining internal information and being rewritable after the system is powered off. There are two types of Flash widely used at present: Nor Flash and Nand Flash. Compared with Nor Flash, Nand Flash has good cost performance and is more suitable for storing data in embedded systems. [0003] At present, the types of Flash file systems mainly include JFFS2 (Journaling Flash File System, log flash file system version 2) and YAFFS (Yet Another Flash File System, a log file system specially designed for Nand Flash) and other Flash file systems. However, some applications need to run traditional disk file systems on Nand Flash, such as FAT16 (FAT16 / 32 is a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06G06F12/02G06F17/30
Inventor 王永钊
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products