Add a cellular registry and permanent storage

Source: Internet
Author: User

1. Add hive-based registry

In the "catalog" Window of platform builder, click open catalog-> core OS-> Windows CE devices-> file systems and data store-> registry storage (choose 1) -> hive-based registry node, select hive-based registry node, right-click and choose add to Platform

2. Find the following registry and set "Start devmgr" = DWORD: 1

; Hive boot section

[HKEY_LOCAL_MACHINE/init/bootvars]

"Systemhive" = "Documents and Settings // system. HV" // defines the directory that prevents the system. HV Registry File

"Profiledir" = "Documents and Settings" // folder name for storing User Files

"Start devmgr" = DWORD: 1 // defines whether to load the Device Manager in the first phase of the operating system startup. corresponding to the ram registry, it should be set to "0 ", corresponding to the cellular registry, which must be set to "1"

"Defaultuser" = "default"; HC hive

; End hive boot section

3. Because the cellular registry file is placed in the FAT file system of flash memory, the first phase of the Startup Process of the operating system must be loaded with the Flash Driver, the Registry related to the Flash Driver must be located between the following annotations:

; Hive boot section

...................

; End hive boot section

 

That is, the Registry related to the Flash Driver is as follows:

; Hive boot section

[HKEY_LOCAL_MACHINE/system/storagemanager/autoload/flashdrv]

"Driverpath" = "drivers // blockdevice // flashdrv"

"Loadflags" = DWORD: 1

"Mountflags" = DWORD: 11

"Bootphase" = DWORD: 0

"Flags" = DWORD: 1000

 

[HKEY_LOCAL_MACHINE/Drivers/blockdevice/flashdrv]

"Prefix" = "DSK"

"DLL" = "flashdrv. dll"

"Order" = DWORD: 0

"IOCTL" = DWORD: 4

"Profile" = "flashdrv"

"Friendlyname" = "Ms Flash Driver"

"Mountflags" = DWORD: 11

"Bootphase" = DWORD: 0

"Flags" = DWORD: 1000

 

; Bind binfs to the block driver

[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/flashdrv]

"Defaultfilesystem" = "binfs"

"Partitiondriver" = "mspart. dll"

"Automount" = DWORD: 1

"AutoFormat" = DWORD: 1

; "Automount" = DWORD: 0

"Autopart" = DWORD: 1

"Mountflags" = DWORD: 11

"Folder" = "myarm"

"Name" = "Microsoft flash disk"

"Bootphase" = DWORD: 0

"Flags" = DWORD: 1000

 

 

[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/flashdrv/binfs]

"Mountflags" = DWORD: 11

"Flags" = DWORD: 1000

 

 

 

; Keep fatfs from trying to shadow/Windows

[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/flashdrv/fatfs]

"Mountflags" = DWORD: 2

 

[HKEY_LOCAL_MACHINE/system/storagemanager/fatfs]

"Mountflags" = DWORD: 0

 

; End hive boot section

4. Set [HKEY_LOCAL_MACHINE/system/storagemanager/profiles/flashdrv/fatfs]

The "mountflags" key value under is set to 2, indicating that the system registry is stored in the memory of the flash memory FAT file, that is:

[HKEY_LOCAL_MACHINE/system/storagemanager/profiles/flashdrv/fatfs]

"Mountflags" = DWORD: 2

 

 

Now, you have added the cellular registry and permanent storage.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.