none
[SOLVED] Mounted eMMC shows only 19KB of memory for slot 3?? RRS feed

  • Question

  • Hello Friends,

    As, we have eMMC for slot 3 for AM335x BSP. After adding some entries in for corresponding slot in the source code and in .reg file, we are able to mount the eMMC as a storage Media...

    But, we can only see 19KB of memory instead of 8GB.???

    What may be the reason for this unexpected output.. Any thing related to .reg file or some thing else????


    Monday, January 5, 2015 10:18 AM

Answers

All replies

  • Hi,

    What is the low level driver that you are using?

    I gues it will be reported via the eMMC Driver to upper layers what is the size of your eMMC.

    How are you reading the eMMC size?

    Regards,

    GSR

    Monday, January 5, 2015 12:29 PM
  • Hi GSR,

    we are using the same sdcard driver as a low level driver for eMMC. In our cloned driver we added certain entries related to slot3 as it was not present. 

    We are reading the size of eMMC in remote tools GUI:- 

    System Information- Storage

    I am thinking that may be some entry in .reg file related to FATFS is missing. Here is my .reg file for profiling:-

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

    Monday, January 5, 2015 12:42 PM
  • I guess MountFlags is deprecated after Windows CE 6.0 http://msdn.microsoft.com/en-us/library/ee490773.aspx

    There is a eMMC driver example for beaglebone black in codeplex: https://beaglebonebsp.codeplex.com/releases/view/187035

    I do not know whether the driver given in codeplex works or not. What I know is some example exist in that URL.

    If you are not already using that, then you can have a look into the code how that is implemented.

    Let us know how it goes if you integrate that.

    Regards,

    GSR

    Tuesday, January 6, 2015 9:08 AM
  • Hi,

    Thanks for sharing the codeplex link, but it has no example related to eMMC. I have replace the MountFlags and I am using the new entries are as -

    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MMC\PartitionTable]
    	"0F"="FATFS"
    
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MMC]
        "Name"="MMC Card"
        "Folder"="MMC_CARD"	;MC Card
        "PartitionDriver"=""
        "AutoPart"=dword:1
        "DefaultFileSystem"="FATFS"

    And with this the log entries are as -

    SDMemory: +SMC_Init
      12167 PID:400002 TID:3870002 SDGetDeviceHandle: ActivePath: Drivers\Active\30 
      12169 PID:400002 TID:3870002 SDGetClientFunctions: +Init
      12170 PID:400002 TID:3870002 SDGetClientFunctions: -Init
      12172 PID:400002 TID:3870002 SDMemCardConfig: Card is high capacity (2.0+)
      12173 PID:400002 TID:3870002 SDMemCalcDataAccessClocks: Tpd:f ns, Asynch: f ns, AsyncClocks:0 , SyncClocks: 1078591488, ReadTotal: 0, Write Factor: 1099109072 WriteTotal: 769230 
      12174 PID:400002 TID:3870002 SDMemory: Initialize: Using block transfer size of 64 blocks
      12174 PID:400002 TID:3870002 SDMemory: Idle Timeout: 2000 Idle Power State: 2
      12175 PID:400002 TID:3870002 SDMemory: Power Management Setup complete 
      12176 PID:400002 TID:3870002 SDMemory: -SMC_Init
      12180 PID:400002 TID:8b0002 SDMemory: GetDeviceInfo - Profile = MMC, length = 8
      12180 PID:400002 TID:8b0002 SDemory: GetDeviceInfo - RegQueryValueEx(Profile) returned 2
      12181 PID:400002 TID:8b0002 SDMemory: GetStorageID Insufficient buffer space
    SDMemory: -GetStorageID
      12183 PID:400002 TID:8b0002 Partition PART00  NumSectors=15106048

    and with the above case, the memory is not mounted

    and in the previous case only 20KB was mounted and the older logs are as -

    SDMemory: +SMC_Init
      11662 PID:400002 TID:3ea0002 SDGetDeviceHandle: ActivePath: Drivers\Active\30 
      11663 PID:400002 TID:3ea0002 SDGetClientFunctions: +Init
      11664 PID:400002 TID:3ea0002 SDGetClientFunctions: -Init
      11667 PID:400002 TID:3ea0002 SDMemCardConfig: Card is high capacity (2.0+)
      11667 PID:400002 TID:3ea0002 SDMemCalcDataAccessClocks: Tpd:f ns, Asynch: f ns, AsyncClocks:0 , SyncClocks: 1078591488, ReadTotal: 0, Write Factor: 1099109072 WriteTotal: 769230 
      11668 PID:400002 TID:3ea0002 SDMemory: Initialize: Using block transfer size of 64 blocks
      11669 PID:400002 TID:3ea0002 SDMemory: Idle Timeout: 2000 Idle Power State: 2
      11670 PID:400002 TID:3ea0002 SDMemory: Power Management Setup complete 
      11670 PID:400002 TID:3ea0002 SDMemory: -SMC_Init
      11674 PID:400002 TID:8b0002 SDMemory: GetDeviceInfo - Profile = MMC, length = 8
      11674 PID:400002 TID:8b0002 SDemory: GetDeviceInfo - RegQueryValueEx(Profile) returned 2
      11675 PID:400002 TID:8b0002 SDMemory: GetStorageID Insufficient buffer space
    SDMemory: -GetStorageID
      11680 PID:400002 TID:8b0002 Partition Part00  NumSectors=48
      11680 PID:400002 TID:8b0002 MSPART!PD_OpenPartition: dwStoreId=ABCE3A90, PartName=Part00
      11688 PID:400002 TID:8b0002 CreateCache: Successful.  Cache Size: 0 KB, Start: 6, End: 7, CreateFlags: 2.
      11690 PID:400002 TID:8b0002 CreateCache: Successful.  Cache Size: 1 KB, Start: 8, End: 47, CreateFlags: 2.

    Tuesday, January 6, 2015 9:29 AM
  • Thursday, January 8, 2015 11:05 AM