none
NDIS6.0 Miniport Driver in WEC7 RRS feed

  • Question

  • Dear All,

    We are developing Ethernet miniport driver using e100bex sample which is available in Public of WEC7.

    Is the selection of sample driver is correct?

    I have followed steps as follows,

    1.Copied the Public folder files to My platform Miniport driver folder.

    2.Added the following registry entry in .Reg file

    /***********************************************/

    [HKEY_LOCAL_MACHINE\Miniport]
       "DisplayName"="Miniport"
       "Group"="NDIS"
       "ImagePath"="Miniport.dll"
      "Dll"="Miniport.dll"

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Miniport]
       "Dll"="NDIS.dll"
       "Prefix"="NDS"
       "MiniPort"="Miniport"
       "IsrDll"="giisr.dll"
       "IsrHandler"="ISRHandler"
       "PortIsIO"=dword:1
       "PortOffset"=dword:0
       "PortSize"=dword:2
       "PortMask"=dword:F300
       "Order"=dword:5

    /***********************************************/

    3.I have added my Miniport.dll file in Pltform.bib file as follows,

    /**************************************************/

    Miniport.dll       $(_FLATRELEASEDIR)\Miniport.dll            NK  SHK

    /**************************************************/

    4.My Source file entries are as follows,

    /**************************************************/

    TARGETNAME=Miniport
    RELEASETYPE=PLATFORM
    TARGETTYPE=DYNLINK

    SYNCHRONIZE_DRAIN=1
    PREPROCESSDEFFILE=1

    DLLENTRY=DllEntry

    DEFFILE=Miniport.def
    #WINCETARGETFILE0=$(_PLATCOMMONLIB)\$(_CPUINDPATH)\$(TARGETNAME).def

    CDEFINES=$(CDEFINES) -DNDIS_MINIPORT_DRIVER -DNDIS60_MINIPORT=1 -DBINARY_COMPATIBLE=0
    #CDEFINES=$(CDEFINES) -DNDIS_MINIPORT_DRIVER

    #
    # WINCE_PM_ENABLE is not available yet.
    #

    #CDEFINES=$(CDEFINES) -DWINCE_PM_ENABLE

    INCLUDES=\
        $(_PLATFORMROOT)\common\src\inc;\
        $(INCLUDES)    ;                               \
        $(_PLATFORMROOT)\common\src\soc\INC ;\
        $(_COMMONOAKROOT)\inc;$(_COMMONDDKROOT)\inc;\
        $(_WINCEROOT)\public\common\oak\inc;\
        $(_WINCEROOT)\public\common\sdk\inc;\

    SOURCES= \
       mp_main.c \
       mp_init.c \
       mp_req.c \
       mp_nic.c \
       mp_dbg.c \
       eeprom.c \
       physet.c \
       routines.c

    TARGETLIBS= \
        $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\ndis.lib \
        $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib \
        $(_SYSGENOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib

    /**************************************************/

    5.My def file entries are as follows,

    /**************************************************/

    LIBRARY         Miniport

    EXPORTS          DriverEntry
    /***************************************************/

    6.I have checked for the following catalog items and they are added,

    /****************************************************/

    1.SYSGEN_NDISUIO

    2.SYSGEN_NDIS

    3.SYSGEN_ETHERNET

    /*****************************************************/

    I am not able to load my mini port driver.

    Please let me know if I am missing any steps or if any of the entries are wrong.

    Advance thanks for the help.

    With Regards

    Nadini


    • Edited by nadini Saturday, July 6, 2013 11:39 AM Edit
    Saturday, July 6, 2013 11:08 AM