none
wince的nand分区做u盘显示问题?? RRS feed

  • 问题

  • 各位高人,大家好,小弟想请教个问题。就是我现在想把wince的nand的fat分区做为u盘能在pc下显示出来。现在已经可以显示在"我的电脑"中了。但是没办法打开,显示让我格式化,格式化到最后爆一个提示框  ''window无法完成格式化"。而这个时候wince设备上的分区号"NAND FLASH"也没有了。小弟对wince文件系统还不是很懂。看了版里大侠们文章更郁闷?很请各位指点下迷津???下面是我的注册表给大家看看。
    ===========================================================
    ;BINFS
    ===========================================================
    IF BSP_NONANDFS !
    [HKEY_LOCAL_MACHINE\init\BootVars]
     "SYSTEMHIVE"="Documents and Settings\\system.hv"
     "PROFILEDIR"="Documents and Settings"
     "Start DevMgr"=dword:1
        "DefaultUser"="default"
            "Flags"=dword:1000
            "RegistryFlags"=dword:1

    [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
        "DriverPath"="Drivers\\BlockDevice\\MSFlash"
        "LoadFlags"=dword:1
        "MountHidden"=dword:1
        "MountAsROM"=dword:1
        "BootPhase"=dword:0
        "Flags"=dword:1000
        "Order"=dword:0
       
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
        "DefaultFileSystem"="BINFS"
        "PartitionDriver"="mspart.dll"
        "AutoFormat"=dword:1
        "AutoMount"=dword:1
        "AutoPart"=dword:1
        "MountAsBootable"=dword:1
        "MountAsROM"=dword:1
        "MountAsHidden"=dword:0
        "Folder"="Flash Disk"
        "Name"="FLASH Disk Block Device"
        "BootPhase"=dword:0
        "Flags"=dword:1000

           
    ; Keep FATFS from trying to shadow \Windows
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
        "FriendlyName"="FAT FileSystem"
        "Dll"="fatfsd.dll"
        "Flags"=dword:00280014
        "Paging"=dword:1
        "CacheSize"=dword:0
        "EnableCacheWarm"=dword:0
        "EnableCache"=dword:1
        "MountAsBootable"=dword:1
        "MountAsRom"=dword:1


    [HKEY_LOCAL_MACHINE\Drivers\BlockDevice\MSFlash]
        "Profile"="MSFlash"
        "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
        "Order"=dword:1
        "FriendlyName"="MSFLASH Driver"
        "Dll"="smflash.dll"
        "Prefix"="DSK"
        ;"Index"=dword:1
        "BootPhase"=dword:0
        "Flags"=dword:1000
    ENDIF ; BSP_NONANDFS
    =======================================================================
    ;FATS
    =======================================================================

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FlashDisk]
       "Prefix"="DSK"
       "Dll"="smflash.dll"
       "Order"=dword:1
       "Index"=dword:1
       "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
       "Profile"="FlashDisk"
       "FriendlyName"="NAND FLASH Driver"
       "BmlVolumeId"=dword:0 ; BML volume ID = 0
       "BmlPartitionId"=dword:8 ; BML parition ID = PARTITION_ID_FILESYSTEM
       "WMRStartSector"=dword:0
       "WMRNumOfSector"=dword:ffffffff ; last location
       "Flags"=dword:11000 ; do not load again in boot phase 2 ;
       ;"Flags"=dword:1000 ; do not load again in boot phase 2 ;


    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
       "DriverPath"="Drivers\\BuiltIn\\FlashDisk"
        "DefaultFileSystem"="FATFS"
        "PartitionDriver"="mspart.dll"
        "Name"="NAND FLASH"
        "Folder"="NAND FLASH"
        "AutoMount"=dword:1
        "AutoPart"=dword:1
        "AutoFormat"=dword:1
        "MountAsBootable"=dword:1  

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
        "FriendlyName"="NANDFLASH FAT FileSystem"
        ;"Dll"="fatfsd.dll"
        "Flags"=dword:00000014   ; FATFS_ENABLE_BACKUP_FAT | FATFS_DISABLE_AUTOSCAN
        "FormatTfat"=dword:1
        "EnableCacheWarm"=dword:0

    2009年12月3日 6:32

全部回复