Re: Try add some drivers, one is OK but others fail
- From: voidcoder <voidcoder@xxxxxxxxx>
- Date: Thu, 19 Oct 2006 09:19:06 +0200
Didn't you forget somehow to change also device
prefixes in the second and third drivers and their
*.def files? Run a debug build to obtain some details
why it fails to load the rest two drivers.
On Thu, 19 Oct 2006 04:22:35 +0200, Kein <Kein.Yuan@xxxxxxxxx> wrote:
Dear all,
I am working with PXA27x with WM5.0 and now want to add three
drivers into the BSP: LCM, MKP and PHI and following is my changes:
platform\bvdmain\drivers\DIRS:
DIRS= \
...
lcm \
Mkp \
Phi \
...
platform\bvdmain\bvdmain.bat:
...
set BSP_NOLCM=
set BSP_NOMKP=
set BSP_NOPHI=
...
bvdmain\files\Platform.reg:
;
; Register settings for LCM
;
IF BSP_NOLCM !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\LCM]
"Prefix"="LCM"
"Dll"="Lcm.Dll"
"Order"=dword:0
"Ioctl"=dword:4
ENDIF BSP_NOLCM !
;
; Register settings for Mkp
;
IF BSP_NOMKP !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MKP]
"Prefix"="MKP"
"Dll"="Mkp.Dll"
"Order"=dword:0
"Ioctl"=dword:5
ENDIF BSP_NOMKP !
;
; Register settings for PHI;
IF BSP_NOPHI !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PHI]
"Prefix"="PHI"
"Dll"="Phi.Dll"
"Order"=dword:0
"Ioctl"=dword:6
ENDIF BSP_NOPHI !
bvdmain\files\PLATFORM.BIB:
IF BSP_NOLCM !
lcm.dll $(_FLATRELEASEDIR)\lcm.dll NK SH
ENDIF
IF BSP_NOMKP !
mkp.dll $(_FLATRELEASEDIR)\mkp.dll NK SH
ENDIF
IF BSP_NOPHI !
phi.dll $(_FLATRELEASEDIR)\phi.dll NK SH
ENDIF
After build nk.bin and download to the platform,using remote file
viewer I can see lcm.dll, mkp.dll and phi.dll was there. remote
registry also show those entried for LCM, mkp and phi was there.
The strange is, using remote process viewer I can only find lcm.dll
was loaded in device.exe, others like mkp.dll and phi.dll was not at
all.
It should not be the source code problem since all code under
bvdmain\driver\lcm, mkp and phi are all the same except those file
names, SOURCES, TARGETNAME and function name prefix was changed to
lcm, mkp and phi respectively.
Does anybody know why this will happen?
Thanks,
Kein
.
- References:
- Prev by Date: Re: Run-time immage will not start after downloading
- Next by Date: Re: SrcCheck.exe
- Previous by thread: Try add some drivers, one is OK but others fail
- Next by thread: Re: Try add some drivers, one is OK but others fail
- Index(es):
Relevant Pages
|