Device for implementing file system on nandflash of mobile terminal

Device for implementing file system on nandflash of mobile terminal

  • CN 101,809,546 A
  • Filed: 02/18/2008
  • Published: 08/18/2010
  • Est. Priority Date: 02/18/2008
  • Status: Active Application
First Claim
Patent Images

1. Claimsa kind of device that file system is realized on the nandflash of mobile terminal, including FAT file system, it is characterised in that also include:

  • File system transmission unit, is arranged between the FAT file system and the nandflash, for carrying out garbage reclamation, bad block management and address of cache to the nandflash.2. device according to claim 1, it is characterised in that also include:

    Initialization module, the relevant parameter information of nandflash is confused for obtaining, and each piece of status information and address mapping information in the management region are obtained by the management region of the whole file system of scanning, to form bulk state mapping table and block address mapping table in internal memory.3. device according to claim 2, it is characterised in that the relevant parameter information includes the size of the management region of page-size, block size and the file system.4. device according to claim 3, it is characterised in that also including garbage reclamation module, for performing following steps when there are data to be updated on be confused nandflash:

    Obtain the physical address of data block to be updated by the address mapping table, and by the file system transmission unit by the digital independent to be updated into the internal memory;

    Data renewal is carried out in the internal memory, and the data of renewal are written to by the file system transmission unit by new physical address;

    And the data block to be updated is wiped, and update the state mapping map and the block address mapping table.5. device according to claim 3, it is characterised in that the bad block management includes bad block and detected and bad block mark.6. device according to claim 5, it is characterised in that also include:

    Bad block detection module, for making the file system transmission unit in the management region of the whole file system of the scan during initialization, judge whether described piece be bad block by checking the bad block mark position of the first page of each block and the redundant area of second page, bad block is recorded as by described piece in bulk state mapping table if described piece is bad block, active block is recorded as by described piece in bulk state mapping table if described piece is not bad block.7. device according to claim 5, it is characterised in that also include:

    Bad block mark module, for making the file system transmission unit when carrying out write operation to the nandflash by the file system transmission unit, judge whether the write operation succeeds, the bad block mark bit flag in the first page of block and the redundant area of second page of write operation will be carried out in the nandflash if write operation success for state, if the write operation failure if by the bad block mark bit flag be bad block, then update the block address mapping table.8. device according to claim 3, it is characterised in that the file system transmission unit is when being read with write operation, and the logical address received is converted to physical address.9. device according to claim 8, it is characterised in that also including writing module, for performing following steps when carrying out write operation:

    Data to be written is deposited in the file system transmission unit Slow, when the data to be written reaches a logical block, search active block in the state mapping map, in the address mapping table just the blunt address of cache according to the logical block to physical block address;

    By the physical block of nandflash described in the data to be written recurrent wrIting, the state and logical address of the physical block are recorded in the redundant area of the last page of the physical block;

    AndUpdate the state mapping map and the block address mapping table in the internal memory.10. device according to claim 8, it is characterised in that also include:

    Read module, for performing following steps when being read:

    The physical block address sought and read the page is mapped by the block address mapping table, physical page address is searched by the physical block address;

    And data.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×