Re: How to copy Hive based registry into CF?



This a PCI device, isn't it? You don't show the PCI bus driver in the boot
hive, except to set a flag, it will need the rest of the settings.

Note, that Luca answered the question that you asked. You didn't ask about
this in your original post.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Nil" <Nil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:846A7538-6077-45F7-B30F-FA632EF21A03@xxxxxxxxxxxxxxxx
Thanks for reply Luca,

This is an API but i want it by registry setting. I have set
the registry as:

; HIVE BOOT SECTION

[$(PCI_BUS_ROOT)\Template\GenericIDE]
"IClass"=multi_sz:"{CDDC3621-3512-4b3f-BB6F-B4DD5E061795}"
"Prefix"="IDE"
"Dll"="atapi.dll"
"Order"=dword:2
"Class"=dword:01
"SubClass"=dword:01
"ConfigEntry"="GenericConfig" ; PCI configuration entry point
"Legacy"=dword:01
"Irq"=dword:0E ; 14
"SysIntr"=dword:00
"DMAAlignment"=dword:04
"SoftResetTimeout"=dword:03
"StatusPollCycles"=dword:100
"StatusPollsPerCycle"=dword:20
"StatusPollCyclePause"=dword:05
"RegisterStride"=dword:01
[$(PCI_BUS_ROOT)\Template\GenericIDE\Device0]
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Prefix"="DSK"
"Dll"="atapi.dll"
"InterruptDriven"=dword:01 ; enable interrupt driven I/O
"DMA"=dword:00 ; disable DMA
"DoubleBufferSize"=dword:10000 ; 128 sector (65536 byte) double buffer
"DrqDataBlockSize"=dword:200 ; 1 sector (512 byte) DRQ data block
"WriteCache"=dword:01 ; enable on-disk write cache
"LookAhead"=dword:01 ; enable on-disk look-ahead
"DeviceId"=dword:00 ; device 0, i.e., primary master
"TransferMode"=dword:FF

IF PRJ_ENABLE_FSREGHIVE
; HIVE BOOT SECTION
[$(PCI_BUS_ROOT)\Template\GenericIDE]
"Flags"=dword:1000
[$(PCI_BUS_ROOT)\Template\GenericIDE\Device0]
"Flags"=dword:1000
; END HIVE BOOT SECTION
ENDIF PRJ_ENABLE_FSREGHIVE

; END HIVE BOOT SECTION

; HIVE BOOT SECTION
IF SYSGEN_FSREGHIVE
[HKEY_LOCAL_MACHINE\init\BootVars]
"SystemHive"="CFDisk\\System\\system.hv"
"ProfileDir"="CFDisk"
"Start DevMgr"=dword:1
ENDIF ;SYSGEN_FSREGHIVE

[HKEY_LOCAL_MACHINE\Drivers\Resources\IRQ]
"Flags"=dword:1000

[HKEY_LOCAL_MACHINE\Drivers\Resources\IO]
"Flags"=dword:1000

[$(PCI_BUS_ROOT)\Template\GenericIDE]
"Flags"=dword:1000

[$(PCI_BUS_ROOT)\Template\GenericIDE\Device0]
"Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
"Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
"MountFlags"=dword:2

; END HIVE BOOT SECTION


I have set SYSGEN_FSREGHIVE and
PRJ_ENABLE_FSREGHIVE
but it not showing WINCE main Screen it hangs some point. It downloads
nk.bin file.

Is any settings missing or is any extra setting
to
be require to copy Hive based Registry into CF or in SD card?

Best Regards,
Swapnil


"Luca Calligaris" wrote:

Take a look at this RegSaveKey API:
http://msdn.microsoft.com/en-us/library/ms891466.aspx

--

Luca Calligaris
www.eurotech.it

"Nil" <Nil@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:DECB0E02-0F24-44B9-BD8C-368447156C30@xxxxxxxxxxxxxxxx
Hi all,
I am working on PXA270 based board in WINCE 5.0. I want to copy
Hive based Registry into Compact Flash or in SD Card.

Is anybody know how to do it?

Thanks in advance
Swapnil





.



Relevant Pages

  • Re: Hive-based registry setting
    ... >; END HIVE BOOT SECTION ... > HD may contain system registry; ... >>> later in the file can overwrite settings from earlier in the file. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Hive-based registry setting
    ... ; END HIVE BOOT SECTION ... HD may contain system registry; ... The settings from common.reg go ...
    (microsoft.public.windowsce.platbuilder)
  • Re: How to copy Hive based registry into CF?
    ... What happens with those settings? ... This is an API but i want it by registry setting. ... ; HIVE BOOT SECTION ... "Luca Calligaris" wrote: ...
    (microsoft.public.windowsce.platbuilder)
  • Re: shell.exe is not loading
    ... ; END HIVE BOOT SECTION ... settings but others without. ... of your reg files. ... smaillet at EmbeddedFusion dot com ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Unable to Access Serial Port
    ... registry) and standard PC settings is: ... >; END HIVE BOOT SECTION ... Registry enumerator used for loading each PCI device driver instance ... > ENDIF ...
    (microsoft.public.windowsce.platbuilder)

Loading