Re: ROM-only FS and persisting registry on USB HD



Thanks for your reply!

I have tried to implement the steps you described but I am still not sure
about the details:
Where exactly should MountAsBootable and MountAsRoot be placed? Must they
appear only once in registry?

At present my device hangs after some time into boot process. The LED on the
drive shows lots of activity but then becomes constantly lit without audible
disk activity. When I plug the usb drive into PC I see that the folders have
been generated, registry hives are there, but the windows folder is not fully
populated.



"K. S. Huang" wrote:

For USB Disk it might be more complexity, while the driver of USB disk is
not a BuiltIn/Default driver which mean it is loaded by someone else instead
of just loaded at initial (as IDE Hard Driver driver).
Basically, the USB Disk driver is depends on and loaded USB Host driver to
so the very first thing is make sure your USB Host driver is loaded in boot
phase (by enclosed the HCD registries with HIVE BOOT as you did for IDE and
other registry settings), and the relative USB class key is put into BOOT
HIVE as well so that not only the USB Host (HCD) will be loaded in Early
Boot Phase and the USB Disk could be loaded successful.
And make sure the Device Manager is loaded in Boot Phase 1 by applying
HKEY_LOCAL_MACHINE\init\BootVars\Flags = 3 rather than 1 that only loaded
Storage Manager which is not enough in your case but might work on IDE.

A summary is listed as following
Include the
1) HCD host driver key (Could be a builtIn or PCI based)
2) USB Mass Storage Key usually enclosed with CE_MODULES_USBMSC CESYSGEN tag
3) USB Disk Storage Profile usually enclosed with CE_MODULES_USBDISK6
CESYSGEN tag
4) Loaded Storage and Device Manager in Boot phase 1
HKEY_LOCAL_MACHINE\init\BootVars\Flags = 3

And also make sure the MountAsRoot and MountAsBootable key are included.

"Dusan Arsenijevic" <DusanArsenijevic@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:7EADB61D-4D66-4322-AF4B-7B8148B4A256@xxxxxxxxxxxxxxxx
Hi,

I have successfuly modified the reg files to achieve ROM-only FS and
persistant hive-based registry on IDE HD, but I am not able to achieve
the
same for USB hard disk or memory stick.

Which (additional) registry keys have to be wrapped in:
; HIVE BOOT SECTION

XXXXX

"Flags"=dword:1000
; END HIVE BOOT SECTION

and where should
"MountAsBootable"=dword:1
and
"MountAsRoot"=dword:1
be placed in this case?
Is there something else I am missing?


(using wince 6.0)
Thanks!



.



Relevant Pages


Loading