Re: Shared PCI NIC for KITL and NDIS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Unfortunately no NKDeleteRegKey or similar is available in OAL. See
pkfuncs.h line 1117

/Helge

"Luca Calligaris" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uW6ihu%23YIHA.4684@xxxxxxxxxxxxxxxxxxxxxxx
But do you fail to delete the key in OALKitlInitRegistry?

--

Luca Calligaris
www.eurotech.it

"Helge Kruse" <Helge.Kruse-nospam@xxxxxxx> ha scritto nel messaggio
news:eIwOqN%23YIHA.5348@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

Yes I am using a CEPC like BSP. Thank you for the advise, but the
registry key is already in the registry, since it's stored in the
persistent registry. So it makes no difference if you call PCIReg via
OALKitlInitRegistry or not.

The PCIBUS enumerator checks only for stale drivers where the device is
not present anymore. It cannot deal with a PCI NIC that is used for KITL
or NDIS alternatively. Unfortunately the PCIBUS driver holds an open key
of the registry value. So you cannot delete it. (see below)

All QFEs have been installed. So this seems like an open bug.


/Helge


"K. S. Huang" <k_Underln_s_Underln_huang_AT_yahoo_DOT_com> wrote in
message
news:%23IifKAtYIHA.3964@xxxxxxxxxxxxxxxxxxxxxxx
Are you using a PC (x86) based platform with CEPC or CEPC like BSP with
PQOAL?
If so, the registry is created by OALKitlInitRegistry
($(_WINCEROOT)\PLATFORM\COMMON\SRC\COMMON\KITL\registry.c), try to track
and make sure the function is not called during booting.
In general, the PCIBus.dll will clean up the
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance] everytime on bootup so
that this key should be complete empty at initial and then OAL will
create
a the sub key KITL under there with proper parameter to pvent the PCIBus
to load the driver.

BTW, have you obtained the latest QFE for your CE, it seems that the CE
4.x did have the PCI instance registry uncleaned issue, and I am not
sure
if it still an issue on CE5 and fixed with QFEs.

"Helge Kruse" <Helge.Kruse-nospam@xxxxxxx> wrote in message
news:eNs8$cpYIHA.4696@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

I need to share a PCI NIC for KITL and NDIS. A boot flag controls, if
KITL is active and VMINI is loaded. When the boot flag disables KITL
the
NDIS miniport driver should be loaded.

When the KITL driver is active, the PCIBUS enumerator creates a
registry
key [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\KITL] with
appropriate values including vendor id and device id. The miniport
drvier
is not loaded. That's ok so far.

When the boot flag is changed, the PCI vendor id and device id from the
registry is found, since the NIC is still in the system. But as long as
the registry key is present, it prevents the miniport driver from
loading.

I tried to delete the registry key
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Instance\KITL] but this failed
with error 0x05.

What is the best way to get rid of this orphaned registry key, when
KITL
is disabled?

OS is Windows CE 5.0


Regards, Helge

--
Time is an ocean but it ends at the shore











.



Relevant Pages

  • Re: hijack this startup - can someone tell me the hack i am experienci
    ... | *Registry key not found* ... | *Registry value not found* ... | Autorun entries from Registry: ... | Intel82801 Audio Driver Install Service: ...
    (microsoft.public.windowsxp.security_admin)
  • Re: "No .rel file found for module "
    ... Do you have the debug output from loading with KITL enabled? ... Bruce Eitman (eMVP) ... I2C driver when it is launched through KITL. ... I thought maybe it was the registry data too, ...
    (microsoft.public.windowsce.app.development)
  • Re: Intel 855GME graphic driver woes....
    ... select registry branch you want to deny access to. ... This is certainly less flexible and more Hacky and ugly than Bens ... I am trying to use the "IntelEmbedded Graphics driver package ... // Close registry key. ...
    (microsoft.public.windowsxp.embedded)
  • Re: usbccid driver : enable Escape command
    ... missing registry key detection and modification. ... Your second idea (filter driver) needs some more investigation for us as we ... installation could monitor the PNP notification of the device insertion ...
    (microsoft.public.development.device.drivers)
  • Re: "No .rel file found for module "
    ... but when loading using KITL relfsd might be pulling it in. ... it will only load if I launch the image with KITL enabled. ... I2C driver when it is launched through KITL. ... I thought maybe it was the registry data too, ...
    (microsoft.public.windowsce.app.development)