Re: Display driver debug problem

From: Selin Metin (selinm_at_esit.com.tr)
Date: 02/09/04


Date: Mon, 9 Feb 2004 14:27:52 +0200

Hi Oliver,
I checked the PB docs and made the following changes to the platform files:

In platform.bib file:
----------------------------------------------------------------
; @CESYSGEN IF CE_MODULES_DISPLAY
IF BSP_NODISPLAY !
IF IMG_NODISPLAY !
;
; MGDI NOP Display driver
IF BSP_DISPLAY_NOP
   ddi.dll $(_FLATRELEASEDIR)\ddi_nop.dll NK SH
ENDIF

ENDIF IMG_NODISPLAY !
ENDIF BSP_NODISPLAY !

; SMI Display driver
IF BSP_DISPLAY_SMI
   ddi_smi.dll $(_FLATRELEASEDIR)\ddi_smi.dll NK SH
ENDIF
; @CESYSGEN ENDIF CE_MODULES_DISPLAY
-----------------------------------------------------------
In platform.reg file:
-----------------------------------------------------------
IF BSP_DISPLAY_SMI

; @CESYSGEN IF CE_MODULES_PCI

; GWES will be able to auto-detect the display adapter if a candidate value
; points to the adapter's PCI instance. Values from Candidate1 to
Candidate32
; (decimal) are possible; GWES will examine them sequentially until it finds
; a match.
[HKEY_LOCAL_MACHINE\System\GDI\DisplayCandidates]
 "Candidate5"="Drivers\\BuiltIn\\PCI\\Instance\\SMI"

; @CESYSGEN ENDIF CE_MODULES_PCI

ENDIF ; BSP_DISPLAY_SMI

IF BSP_DISPLAY_SMI
[HKEY_LOCAL_MACHINE\System\GDI\Drivers]
 "Display"="ddi_smi.dll"

;
; SMI driver settings
;
[HKEY_LOCAL_MACHINE\Drivers\Display\SMI]
;; 800x600x16
 "CxScreen"=dword:320
 "CyScreen"=dword:258
 "BPP"=dword:10

ENDIF ; BSP_DISPLAY_SMI
---------------------------------------------------

Am I missing something here? Are these the correct settings for display
driver? I checked the other types of display driver settings in common.reg
and made the similar changes to the platform.reg. Still I get the same
error:

Loaded symbols for
'C:\WINCE410\PUBLIC\REGAPPDENE2\RELDIR\CEPC_X86DEBUG\GWES.EXE'
4294784007 PID:21ef5ef6 TID:21fb27d2 0x81ef51a8: Grow Gdi handle table from
0 to 64
4294784056 PID:21ef5ef6 TID:21fb27d2 0x81ef51a8: >>> Loading module ddi.dll
at address 0x01EE0000-0x01EFE000
Loaded 'C:\WINCE410\PUBLIC\REGAPPDENE2\RELDIR\CEPC_X86DEBUG\DDI.DLL', no
matching symbolic information found.
4294784063 PID:21ef5ef6 TID:21fb27d2 0x81ef51a8: Unknown: DEBUGCHK failed in
file d:\jameson\private\winceos\coreos\gwe\mgdi\base\.\driver.cpp at line
327

I check the nk.bin file with viewbin.exe and I find the following in the
.obj file:
    ==== ddi_smi.dll ===============================
    TOCentry (ddi_smi.dll) -------------------------
        dwFileAttributes : 0x7
        ftTime : 11/11/2002 15:07:22
        nFileSize : 0x1A000 (106496)
        ulE32Offset : 0x8062A6A4
        ulO32Offset : 0x80DACFC0
        ulLoadOffset : 0x81136000
    e32_rom (ddi_smi.dll) --------------------------
        e32_objcnt : 2
        e32_imageflags : 0x212E
        e32_entryrva : 0x132C8
        e32_vbase : 0x1F00000
        e32_subsysmajor : 0x4
        e32_subsysminor : 0x14
        e32_stackmax : 0x10000
        e32_vsize : 0x1E000
    o32_rom[0] (ddi_smi.dll) ------------------------
        o32_vsize : 0x1337C
        o32_rva : 0x1000
        o32_psize : 0x13400
        o32_dataptr : 0x80E84000
        o32_realaddr : 0x1F01000
        o32_flags : 0x60000020
    o32_rom[1] (ddi_smi.dll) ------------------------
        o32_vsize : 0x7EB0
        o32_rva : 0x15000
        o32_psize : 0x28CA
        o32_dataptr : 0x80ED209C
        o32_realaddr : 0x1F15000
        o32_flags : 0xC0002040

    ==== ddi.dll ===============================
    TOCentry (ddi.dll) -------------------------
        dwFileAttributes : 0x7
        ftTime : 11/11/2002 15:07:22
        nFileSize : 0x1A000 (106496)
        ulE32Offset : 0x8062A710
        ulO32Offset : 0x8062A77C
        ulLoadOffset : 0x81155000
    e32_rom (ddi.dll) --------------------------
        e32_objcnt : 2
        e32_imageflags : 0x212E
        e32_entryrva : 0x132C8
        e32_vbase : 0x1EE0000
        e32_subsysmajor : 0x4
        e32_subsysminor : 0x14
        e32_stackmax : 0x10000
        e32_vsize : 0x1E000
    o32_rom[0] (ddi.dll) ------------------------
        o32_vsize : 0x1337C
        o32_rva : 0x1000
        o32_psize : 0x13400
        o32_dataptr : 0x80E98000
        o32_realaddr : 0x1EE1000
        o32_flags : 0x60000020
    o32_rom[1] (ddi.dll) ------------------------
        o32_vsize : 0x7EB0
        o32_rva : 0x15000
        o32_psize : 0x28CA
        o32_dataptr : 0x80ED4968
        o32_realaddr : 0x1EF5000
        o32_flags : 0xC0002040

////////////////////////////////////////////////////////////////////////////
/

What is the problem?

TIA,
Selin

"Oliver Münchow" <omuenchow@NOSPAMgesytecDOT.de> wrote in message
news:O9YgM$I7DHA.3308@TK2MSFTNGP11.phx.gbl...
> Hi Selin,
>
> maybe i'm wrong, but you shouldn't implement ddi.dll and rename your
> ddi_smi.dll to ddi.dll.
>
> Best regards,
> Oliver Münchow

> > Hi everyone,
> > The pc/104 board I'm working with did not come with a Windows CE driver
and
> > was using the default flat driver. This caused every screen operation to
> > take place extremely slowly, so I asked the VGA chip manufacturer
(Silicon
> > Motion www.smi.com) of the board to give me the Windows CE driver. They
sent
> > me the dll file and the cec file for this chip, and using cec editor I
> > created my own driver cec file. I copied the ddi_smi.dll file to
> > $(_WINCEROOT)\platform\cepc\DRIVERS\DISPLAY\SMI directory and created
the
> > dirs file in the display directory to include the subfolders. The
BuildRel
> > method for this is
> > #COPY("$(_WINCEROOT)\platform\cepc\DRIVERS\DISPLAY\SMI\ddi_smi.dll",
> > "$(_FLATRELEASEDIR)")
> > I then refreshed the catalog and added this new driver to my platform. I
> > made a clean build which gave the attached output:
> > ///////////////////////////////////////////////////////////
> >
> > When I downloaded my image to the CEPC, I received the following error:
> >
>
////////////////////////////////////////////////////////////////////////////
> >
> > Loaded symbols for
> > 'C:\WINCE410\PUBLIC\REGAPPDENE2\RELDIR\CEPC_X86DEBUG\GWES.EXE'
> >
> > 4294784007 PID:21ef5ef6 TID:21fb27d2 0x81ef51a8: Grow Gdi handle table
from 0 to 64
> >
> > 4294784056 PID:21ef5ef6 TID:21fb27d2 0x81ef51a8: >>> Loading module
ddi.dll
> > at address 0x01EE0000-0x01EFE000
> >
> > Loaded 'C:\WINCE410\PUBLIC\REGAPPDENE2\RELDIR\CEPC_X86DEBUG\DDI.DLL', no
> > matching symbolic information found.
> >
> > 4294784063 PID:21ef5ef6 TID:21fb27d2 0x81ef51a8: Unknown: DEBUGCHK
failed in
> > file d:\jameson\private\winceos\coreos\gwe\mgdi\base\.\driver.cpp at
line 327
> > ///////////////////////////////////////////////////////////////////
> >
> > Both ddi.dll and ddi_smi.dll are in the _FLATRELEASEDIR and they're both
in
> > the nk.bin file (I checked with viewbin.exe). What might be causing this
problem?
> >
> > Thanks in advance,
> >
> > Selin



Relevant Pages