Hello,

Here is the platform I'm working with. They have 2 ide devices. One is
a DOM or flash based storage with an ide interface. I'm using that to
boot the nk.bin from. I'm using the x86 bios boot loader. The second
ide device is a hard drive. The DOM shows up as "hard disk" in windows
ce 5.0 when it's booted and the hard drive shows up in windows ce 5.0 as
"hard disk2". They are both sharing the common storage manager profile
HDProfile to mount the partition on each one of them in windows ce 5.0.
Now I want to use the hive-based registry and store the changes to the
system hive registry on the DOM as system.hv. I put this into platform.reg:

[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="Hard Disk\\SYSTEM.HV"

I also put this into my platform's main .bat file as told in the windows
ce 5.0 live chat today by one of the developers:

set PRJ_ENABLE_REGFLUSH_THREAD=1
set PRJ_ENABLE_FSREGHIVE=1
set PRJ_BOOTDEVICE_ATAPI=1

Yet it isn't booting at all for me now into windows ce 5.0. What can I
do to enable this?

Re: hive-based registry problems by Bruce

Bruce
Thu Sep 29 07:04:49 CDT 2005

Read help on HIVE registry. What you are showing is not enough.

> "SystemHive"="Hard Disk\\SYSTEM.HV"
will create \Hard Disk\Hard Disk\SYSTEM.HV which is probably not what you
want. The system will put the HIVES on the disk that is identified as
supporting HIVE. I suspect that you don't have that set up.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Carl" <carl@purpleglobe.com> wrote in message
news:efPViKIxFHA.3436@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> Here is the platform I'm working with. They have 2 ide devices. One is a
> DOM or flash based storage with an ide interface. I'm using that to boot
> the nk.bin from. I'm using the x86 bios boot loader. The second ide
> device is a hard drive. The DOM shows up as "hard disk" in windows ce 5.0
> when it's booted and the hard drive shows up in windows ce 5.0 as "hard
> disk2". They are both sharing the common storage manager profile
> HDProfile to mount the partition on each one of them in windows ce 5.0.
> Now I want to use the hive-based registry and store the changes to the
> system hive registry on the DOM as system.hv. I put this into
> platform.reg:
>
> [HKEY_LOCAL_MACHINE\init\BootVars]
> "SystemHive"="Hard Disk\\SYSTEM.HV"
>
> I also put this into my platform's main .bat file as told in the windows
> ce 5.0 live chat today by one of the developers:
>
> set PRJ_ENABLE_REGFLUSH_THREAD=1
> set PRJ_ENABLE_FSREGHIVE=1
> set PRJ_BOOTDEVICE_ATAPI=1
>
> Yet it isn't booting at all for me now into windows ce 5.0. What can I do
> to enable this?



Re: hive-based registry problems by Carl

Carl
Thu Sep 29 12:39:21 CDT 2005

Tried this approach from another topic. My platform is an intel 815
running windows ce 5.0. I've put in the following to the 815stb.bat
file for the platform:

set PRJ_BOOTDEVICE_ATAPI=1
set PRJ_ENABLE_FSMOUNTASROOT=1
set PRJ_ENABLE_FSREGHIVE=1
set PRJ_ENABLE_FSMOUNTASROOT=1

I have also added at the bottom of the project.reg file:

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\init\BootVars]
"Start DevMgr"=dword:1
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
"MountFlags"=dword:2

; END HIVE BOOT SECTION

Yet it still just sits at the boot screen not booting for me. I'm using
a DOM also known as flash based memory with an ide interface connected
to the primary ide port as master to boot the nk.bin using the x86 bios
boot loader. What can I do to make it boot?

Bruce Eitman (eMVP) wrote:
> Read help on HIVE registry. What you are showing is not enough.
>
>
>> "SystemHive"="Hard Disk\\SYSTEM.HV"
>
> will create \Hard Disk\Hard Disk\SYSTEM.HV which is probably not what you
> want. The system will put the HIVES on the disk that is identified as
> supporting HIVE. I suspect that you don't have that set up.
>

Re: hive-based registry problems by Carl

Carl
Thu Sep 29 12:54:16 CDT 2005

Hi sorry, I meant these environmental variables:

set PRJ_ENABLE_REGFLUSH_THREAD=1
set PRJ_ENABLE_FSREGHIVE=1
set PRJ_BOOTDEVICE_ATAPI=1
set PRJ_ENABLE_FSMOUNTASROOT=1

Carl wrote:
> Tried this approach from another topic. My platform is an intel 815
> running windows ce 5.0. I've put in the following to the 815stb.bat
> file for the platform:
>
> set PRJ_BOOTDEVICE_ATAPI=1
> set PRJ_ENABLE_FSMOUNTASROOT=1
> set PRJ_ENABLE_FSREGHIVE=1
> set PRJ_ENABLE_FSMOUNTASROOT=1
>
> I have also added at the bottom of the project.reg file:
>
> ; HIVE BOOT SECTION
> [HKEY_LOCAL_MACHINE\init\BootVars]
> "Start DevMgr"=dword:1
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
> "MountFlags"=dword:2
>
> ; END HIVE BOOT SECTION
>
> Yet it still just sits at the boot screen not booting for me. I'm using
> a DOM also known as flash based memory with an ide interface connected
> to the primary ide port as master to boot the nk.bin using the x86 bios
> boot loader. What can I do to make it boot?
>
> Bruce Eitman (eMVP) wrote:
>
>> Read help on HIVE registry. What you are showing is not enough.
>>
>>
>>> "SystemHive"="Hard Disk\\SYSTEM.HV"
>>
>>
>> will create \Hard Disk\Hard Disk\SYSTEM.HV which is probably not what
>> you want. The system will put the HIVES on the disk that is
>> identified as supporting HIVE. I suspect that you don't have that set
>> up.
>>

Re: hive-based registry problems by Bruce

Bruce
Thu Sep 29 13:13:08 CDT 2005

***** Read help on HIVE registry. What you are showing is not enough.
*****

All of the steps are there, they may be different for you platform, but only
if it is already set up and those environment variables make it work.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Carl" <carl@purpleglobe.com> wrote in message
news:ufMDj9RxFHA.2960@tk2msftngp13.phx.gbl...
> Tried this approach from another topic. My platform is an intel 815
> running windows ce 5.0. I've put in the following to the 815stb.bat file
> for the platform:
>
> set PRJ_BOOTDEVICE_ATAPI=1
> set PRJ_ENABLE_FSMOUNTASROOT=1
> set PRJ_ENABLE_FSREGHIVE=1
> set PRJ_ENABLE_FSMOUNTASROOT=1
>
> I have also added at the bottom of the project.reg file:
>
> ; HIVE BOOT SECTION
> [HKEY_LOCAL_MACHINE\init\BootVars]
> "Start DevMgr"=dword:1
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
> "MountFlags"=dword:2
>
> ; END HIVE BOOT SECTION
>
> Yet it still just sits at the boot screen not booting for me. I'm using a
> DOM also known as flash based memory with an ide interface connected to
> the primary ide port as master to boot the nk.bin using the x86 bios boot
> loader. What can I do to make it boot?
>
> Bruce Eitman (eMVP) wrote:
>> Read help on HIVE registry. What you are showing is not enough.
>>
>>
>>> "SystemHive"="Hard Disk\\SYSTEM.HV"
>>
>> will create \Hard Disk\Hard Disk\SYSTEM.HV which is probably not what you
>> want. The system will put the HIVES on the disk that is identified as
>> supporting HIVE. I suspect that you don't have that set up.
>>



Re: hive-based registry problems by Bruce

Bruce
Thu Sep 29 14:04:08 CDT 2005

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\<ProfileName>\<FileSystemName>]
"MountFlags"=dword:2

do you have something that looks like this? Is in it in the boot hive?

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
message news:eizfzFSxFHA.3720@TK2MSFTNGP11.phx.gbl...
> ***** Read help on HIVE registry. What you are showing is not enough.
> *****
>
> All of the steps are there, they may be different for you platform, but
> only if it is already set up and those environment variables make it work.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
> "Carl" <carl@purpleglobe.com> wrote in message
> news:ufMDj9RxFHA.2960@tk2msftngp13.phx.gbl...
>> Tried this approach from another topic. My platform is an intel 815
>> running windows ce 5.0. I've put in the following to the 815stb.bat file
>> for the platform:
>>
>> set PRJ_BOOTDEVICE_ATAPI=1
>> set PRJ_ENABLE_FSMOUNTASROOT=1
>> set PRJ_ENABLE_FSREGHIVE=1
>> set PRJ_ENABLE_FSMOUNTASROOT=1
>>
>> I have also added at the bottom of the project.reg file:
>>
>> ; HIVE BOOT SECTION
>> [HKEY_LOCAL_MACHINE\init\BootVars]
>> "Start DevMgr"=dword:1
>> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
>> "MountFlags"=dword:2
>>
>> ; END HIVE BOOT SECTION
>>
>> Yet it still just sits at the boot screen not booting for me. I'm using
>> a DOM also known as flash based memory with an ide interface connected to
>> the primary ide port as master to boot the nk.bin using the x86 bios boot
>> loader. What can I do to make it boot?
>>
>> Bruce Eitman (eMVP) wrote:
>>> Read help on HIVE registry. What you are showing is not enough.
>>>
>>>
>>>> "SystemHive"="Hard Disk\\SYSTEM.HV"
>>>
>>> will create \Hard Disk\Hard Disk\SYSTEM.HV which is probably not what
>>> you want. The system will put the HIVES on the disk that is identified
>>> as supporting HIVE. I suspect that you don't have that set up.
>>>
>
>



Re: hive-based registry problems by Carl

Carl
Thu Sep 29 14:08:08 CDT 2005

Yes, I have it now as in platform.reg:

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
"MountFlags"=dword:2
; END HIVE BOOT SECTION

Bruce Eitman (eMVP) wrote:
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\<ProfileName>\<FileSystemName>]
> "MountFlags"=dword:2
>
> do you have something that looks like this? Is in it in the boot hive?
>

Re: hive-based registry problems by Bruce

Bruce
Thu Sep 29 17:31:06 CDT 2005

Okay, so then my guess is that you have some other driver dependencies that
also need to be in the boot hive for your drive to be fully functional. The
symptoms that you report usually indicate that filesys cannot find the drive
that you want the hive stored on.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Carl" <carl@purpleglobe.com> wrote in message
news:e0X91uSxFHA.3644@TK2MSFTNGP11.phx.gbl...
> Yes, I have it now as in platform.reg:
>
> ; HIVE BOOT SECTION
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile\FATFS]
> "MountFlags"=dword:2
> ; END HIVE BOOT SECTION
>
> Bruce Eitman (eMVP) wrote:
>> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\<ProfileName>\<FileSystemName>]
>> "MountFlags"=dword:2
>>
>> do you have something that looks like this? Is in it in the boot hive?
>>



Re: hive-based registry problems by Carl

Carl
Thu Sep 29 19:21:49 CDT 2005

Ok I finally got it working. Intel's registry files weren't setup for
it and I had to set it all up manually. But now I only got the DOM to
be detected by windows ce 5's storage manager and not the hard drive. I
had to set the FATFS profile under HDProfile with "MountFlags"=dword:2
and adding set PRJ_BOOTDEVICE_API=1 to the 815stb.bat file which makes
the HDProfile have "MountAsRoot"=dword:1, as part of getting the hive
registry to work. How can I get the ide hard drive that is connected to
the secondary ide port? It is set to master. The DOM is on the primary
ide port set to master.

Bruce Eitman (eMVP) wrote:
> Okay, so then my guess is that you have some other driver dependencies that
> also need to be in the boot hive for your drive to be fully functional. The
> symptoms that you report usually indicate that filesys cannot find the drive
> that you want the hive stored on.
>

Re: hive-based registry problems by Carl

Carl
Thu Sep 29 20:54:26 CDT 2005

Ok I got it working. Now storage manager picks up the ide hard drive
and the DOM. But I've now got a strange problem. When I make a change
to the system hive registry, reboot, the change take effects but the
hard drive doesn't get automounted by storage driver. It's done this
everytime. When it's a new NK.bin where its gotta wipe out the registry
changes with the system.hv file, then it'll mount it. But after that,
it won't mount the hard drive but I can manually mount it using storage
manager. And yes I've set the "AutoMount"=dword:1 on both when its
booting the boot hive registry and afterwards in the regular registry.
How can I fix this?

Carl wrote:
> Ok I finally got it working. Intel's registry files weren't setup for
> it and I had to set it all up manually. But now I only got the DOM to
> be detected by windows ce 5's storage manager and not the hard drive. I
> had to set the FATFS profile under HDProfile with "MountFlags"=dword:2
> and adding set PRJ_BOOTDEVICE_API=1 to the 815stb.bat file which makes
> the HDProfile have "MountAsRoot"=dword:1, as part of getting the hive
> registry to work. How can I get the ide hard drive that is connected to
> the secondary ide port? It is set to master. The DOM is on the primary
> ide port set to master.
>
> Bruce Eitman (eMVP) wrote:
>
>> Okay, so then my guess is that you have some other driver dependencies
>> that also need to be in the boot hive for your drive to be fully
>> functional. The symptoms that you report usually indicate that
>> filesys cannot find the drive that you want the hive stored on.
>>