This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Hive-based Registry at removable sd card

Dear Experts,

My environment: TI OMAP35X / Wince 6.

I am using a removable sd card as hive-based registry location. 

When I try to remove this sd card and then insert it again, Wince OS can't recognize this card unless I turn off/on the power.

(If I suspend/resume platform, Wince OS also can't recognize this card unless I turn off/on the power.)

Is it the feature of WinCE or any error settings ? 

Can anyone tell me how to solve this issue ??!! Thx~

 

Note: If I don't use Hive-registry. WinCE can recognize sd card regardless remove/insert sd card or suspend/resume platform.

 

===============================================

[HKEY_LOCAL_MACHINE\Init\BootVars]

    "SystemHive"="Documents and Settings\\system.hv"

    "ProfileDir"="Documents and Settings"

    "Flags"=dword:3

    "DefaultUser"="User"

    "Start DevMgr"=dword:1

    "RegistryFlags"=dword:2

===============================================

  • Do you see any crash or exception happening when SD card is removed? If you dont have KITL, then enable OAL Retail Messages to direct retailmsg to console. Another thing you could use for debugging is enable the flag ENABLE_RETAIL_OUTPUT in sdhc.h and check the logs when you remove/re-insert the card.

    -Madhvi

  • What are the required steps to persist the registry on the SD Card without any NAND involved? I have searched the WinCE-BSP ARM-A8 User Guide but did not find any information.

    1. Select Catalog Item BSP/Kernel features/Persistent Hive Registry Storage
    2. ?

    Thank you very much

  • We dont have a writeup yet on our wiki on SD card persistent storage - but you can search this WINCE forum and there are number of posts related to it along with platform.reg settings that helped people acheive this.

    Regarding the Catalog Item BSP/Kernel features/Persistent Hive Registry Storage, this catalog setting is currently wired to setup NAND as persistent storage. So I would recommend not to enable this flag but trace through to see where this flag is used. Some of the settings enabled by this flag would apply to SD scenario, while some of them are purely for NAND and shouldnt be enabled if you want SD persistent storage to work. Again, go through the existing posts in this forum and see if they help you get started. Repost to this fourm if you get stuck (hint: start a new thread).

    -Madhvi

  • I also would be interested as I can not get the SD persistent registry to function on the TI BSP.

    I have it working on other ARM based BSPs but it does not work on the latest TI BSP using the same procedure.

  • hi all,

    I remove " "Flags"=dword:1000" in [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDHC1]

    OS can recognize this card again.

    Is this "Flags" means only "once" ??

    thx~

     

     

  • Here is the wiki for implementing persistent registry in TI ARM-A8 BSP.

    http://processors.wiki.ti.com/index.php/Persistent_Registry_in_ARM-A8_BSP