none
[SOLVED] What is the minimum .reg configuration for monting eMMC2?? RRS feed

  • Question

  • Hello Friends,

    Greetings for the day!!

    As, I have a board that contains the eMMC2(slot=3). We have made some changes in the driver for make it capable for slot=3. Now, the turn of .reg files. We have made all the required entries for Driver\BuiltIn\SDHC3. And driver is taking the values correctly. Now the part of remaining entries related to file system, profiles, partition, partition table etc

    I have made entries are as - 

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
        "AutoMount"=dword:1
        "AutoPart"=dword:1
        "AutoFormat"=dword:1
        "MountFlags"=dword:1
        "DefaultFileSystem"="FATFS"
        "PartitionDriver"="mspart.dll";; -- Required
        "Folder"="";; -- Required

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC]
        "Name"="MMC Card"
        "Folder"="MMC_CARD"	;MC Card
        "AutoMount"=dword:1
    	"AutoPart"=dword:0
    	"AutoFormat"=dword:0
    	"DefaultFileSystem"="FATFS"
    	"PartitionDriver"="mspart.dll"
       

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC\FATFS]
    	"Flags"=dword:14
    	"FormatTfat"=dword:1
    	"DisableAutoScan"=dword:1
        "FormatNumberOfFats"=dword:2        
        "EnableWriteBack"=dword:1
    	;;"CheckForFormat"=dword:1

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC\Part00]
    	"Folder"="MMC_Part"
    	"AutoPart"=dword:1
    	"MountPermanent"=dword:1
       ;; "AutoMount"=dword:1
        "BootPhase"=dword:1
    	"MountHidden"=dword:1
    	"MountAsBootable"=dword:1
    	"MountAsRoot"=dword:0
    	"MountSystem"=dword:1
        "AutoPart"=dword:0

    [HKEY_LOCAL_MACHINE\System\StorageManager\Autoload\fsdmgr]
        "Dll"="fsdmgr.dll"
        "Paging"=dword:1
        "LoadFlags"= dword:1

    I have read lot of document related to the issue that eMMC2 is not mounted for most of the persons. In every document I have observed that they are using different keys and keys values.. I am confused that what is the minimum keys and keys values required  for the eMMC2 to be mounted apart from driver level.... ???

    With this values my logs are as -

    13525 PID:400002 TID:2300006 SDBusDriver: The SDIO card does not support block mode.  Use Soft-Block instead. 
      13527 PID:400002 TID:4bc0002 AddFonts(.ttf) returned 4 fonts
      13527 PID:400002 TID:4bc0002 AddFonts(.ttc) returned 0 fonts
      13528 PID:400002 TID:4bc0002 AddFonts(*) returned 4 fonts
      13529 PID:400002 TID:4bc0002 AddAllEUDCFonts(tte) returned 0 fonts
      13531 PID:400002 TID:2300006 SetInterface MMCHS_HCTL value = F02
      13531 PID:400002 TID:2300006 SDSetCardInterfaceForSlot - HC ClockRate differs desired setting: desired: 20000000 Hz, Actual : 19200000 Hz 
      13532 PID:400002 TID:2300006 The clock rate is set to 19200000
      13533 PID:400002 TID:2300006 HandleAddDevice: LoadDevice type = 1, slot 0
      13540 PID:400002 TID:2300006 OSAXST1: >>> Loading Module 'sdmemory.dll' (0x9E474C58) at address 0xEEB10000-0xEEB2A000 in Process 'NK.EXE' (0x8711FAD0)
    PB Debugger Loaded symbols for 'C:\WINCE700\OSDESIGNS\ENVENTURE\ENVENTURE\RELDIR\PHYTEC_AM335X_BSP_ARMV7_DEBUG\SDMEMORY.DLL'
      13591 PID:400002 TID:2300006 SDMemory: +SMC_Init
      13591 PID:400002 TID:2300006 SDGetDeviceHandle: ActivePath: Drivers\Active\32 
      13593 PID:400002 TID:2300006 SDGetClientFunctions: +Init
      13594 PID:400002 TID:2300006 SDGetClientFunctions: -Init
      13596 PID:400002 TID:2300006 SDMemCardConfig: Card is high capacity (2.0+)
      13596 PID:400002 TID:2300006 SDMemCalcDataAccessClocks: Tpd:f ns, Asynch: f ns, AsyncClocks:0 , SyncClocks: 1078591488, ReadTotal: 0, Write Factor: 1099109072 WriteTotal: 769230 
      13597 PID:400002 TID:2300006 SDMemory: Initialize: Using block transfer size of 64 blocks
      13598 PID:400002 TID:2300006 SDMemory: Idle Timeout: 2000 Idle Power State: 2
      13599 PID:400002 TID:2300006 SDMemory: Power Management Setup complete 
      13599 PID:400002 TID:2300006 SDMemory: -SMC_Init
      13602 PID:400002 TID:8b0002 SDMemory: GetDeviceInfo - Profile = eMMC, length = 10
      13602 PID:400002 TID:8b0002 SDemory: GetDeviceInfo - RegQueryValueEx(Profile) returned 2
      13603 PID:400002 TID:8b0002 SDMemory: GetStorageID Insufficient buffer space
    SDMemory: -GetStorageID
      13608 PID:400002 TID:8b0002 Partition Part00  NumSectors=15106032
      13608 PID:400002 TID:8b0002 MSPART!PD_OpenPartition: dwStoreId=AB543350, PartName=Part00
      13617 PID:400002 TID:8b0002 CreateCache: Successful.  Cache Size: 256 KB, Start: 6, End: 29453, CreateFlags: 2.
      13619 PID:400002 TID:8b0002 CreateCache: Successful.  Cache Size: 256 KB, Start: 29454, End: 15106031, CreateFlags: 2.
      13627 PID:400002 TID:4bc0002 LogFontFromRegistry(SYSTEM\GWE\Menu\BarFnt), lfHeight = -12
      13628 PID:400002 TID:4bc0002 LogFontFromRegistry(SYSTEM\GWE\Menu\PopFnt), lfHeight = -12
    Anyone can tell me that what is the minimum .reg entries that is required to mount the eMMC2 ????
    Thursday, January 8, 2015 10:12 AM

Answers

  • Hello Friends,

    I am happy to intimate you that I have self solved the above problem with minimal configuration as shown below -

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
        "AutoMount"=dword:1
        "AutoPart"=dword:0
        "AutoFormat"=dword:0
        "MountFlags"=dword:0
        "DefaultFileSystem"="FATFS"
        "PartitionDriver"="mspart.dll";; -- Required
        "Folder"="";; -- Required
    
    
    
     [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC]
        "Name"="MMC Card"
        "Folder"="MMC_CARD"	;MC Card
    But, atleast you have to find the tool that format and create single partition as per your requirement ...

    Thursday, January 8, 2015 11:03 AM