none
imx51_sd8787_wince7 RRS feed

  • Question

  • Hi ,

    I build successfully the imx51 bsp in wince7 platform.But I could not find out the driver which I added to in the build in release directory.I followed the below method to integrate the  driver in the build;

    Copy the driver files under C:\WINCE700\platform\iMX51_EVK\SRC\DRIVERS\SDIO\SDIO8787. The package contains the drivers along with a .pbcxml file. Only the drivers should be placed in this location.
    >
    > 3. Place the MRVLSD8787.pbcxml file under C:\WINCE700\3rdParty\SD8787\Catalog.
    >
    > 4. Please include the following lines in platform.bib and platform.reg:
    >
    > Platform.bib:
    >
    > ;@CESYSGEN IF CE_MODULES_SDBUS
    > IF MRVL_SDIO8787_WIFI
    > #include "$(_FLATRELEASEDIR)\SDIO8787.bib"
    > ENDIF
    > ;@CESYSGEN ENDIF CE_MODULES_SDBUS
    >
    > ;@CESYSGEN IF CE_MODULES_SDBUS
    > IF MRVL_SDIO8787_BT
    > #include "$(_FLATRELEASEDIR)\SDIO8787_BT.bib"
    > ENDIF
    > ;@CESYSGEN ENDIF CE_MODULES_SDBUS
    >
    > Platform.reg:
    >
    > ;@CESYSGEN IF CE_MODULES_SDBUS
    > IF MRVL_SDIO8787_WIFI
    > #include "$(_FLATRELEASEDIR)\SDIO8787.reg"
    > ENDIF
    > ;@CESYSGEN ENDIF CE_MODULES_SDBUS
    >
    > ;@CESYSGEN IF CE_MODULES_SDBUS
    > IF MRVL_SDIO8787_BT
    > #include "$(_FLATRELEASEDIR)\SDIO8787_BT.reg"
    > ENDIF
    > ;@CESYSGEN ENDIF CE_MODULES_SDBUS
    >
    > 5. Under Catalog items in platform builder remember to select both the items i.e. SDIO8787 BT and SDIO8787 wifi. The catalog items would be listed under ThirdParty->SD8787.
    >
    > 6. A build current BSP and subprojects from build-> Advanced Build Commands-> Build Current BSP and Subprojects should help in integrating the driver in your image.

    >

    please suggest any another method to integrate the driver with the build.

    Wednesday, March 13, 2013 9:12 AM

Answers

  • Where is your .reg and .bib file for sdio driver ?

    In your platform.reg file you can add like this (just for eg) (using absolute path ...):

    ;@CESYSGEN IF CE_MODULES_SDBUS
    IF MRVL_SDIO8787_WIFI
    #include "C:\WINCE700\public\ThirdParty\Catalog\Driver\SDIO8787.reg"
     ENDIF
    ;@CESYSGEN ENDIF CE_MODULES_SDBUS

    Similarly for bib file .

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com


    • Marked as answer by Rohith_88 Wednesday, March 13, 2013 11:47 AM
    • Edited by Misbah Khan Wednesday, March 13, 2013 12:07 PM
    Wednesday, March 13, 2013 11:34 AM

All replies

  • Following the above method is giving any compilation error ?

    If Not, after nk is built open the nk.bin file using VS and see if it has "SDIO8787.dll"

    Also check the reg and bib file containing SDIO8787 reg and bib setting is copied.

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    • Proposed as answer by Misbah Khan Thursday, March 14, 2013 6:01 AM
    • Unproposed as answer by Misbah Khan Thursday, March 14, 2013 6:01 AM
    • Proposed as answer by Misbah Khan Thursday, March 14, 2013 6:02 AM
    • Unproposed as answer by Misbah Khan Thursday, March 14, 2013 6:02 AM
    Wednesday, March 13, 2013 9:42 AM
  • Hi Misbah,

    I understood the problem.

    I did not include the driver in catalog items.I include it and given build current bsp and subprojects.That time I got some makeimage errors

    Error - cannot open file "D:\WINCE700\osdesigns\iMX51_EVK_Mobility\RelDir\Freescale_i_MX51_EVK_ARMV7_Release\SDIO8787.bib"
    Error on platform.bib:571
    #include "$(_FLATRELEASEDIR)\SDIO8787.bib"

    Fmerge Task: Failed with error 1 calling "Fmerge -bib D:\WINCE700\osdesigns\iMX51_EVK_Mobility\RelDir\Freescale_i_MX51_EVK_ARMV7_Release\ce.bib config.bib common.bib dcom.bib gdiex.bib ie7.bib servers.bib shellsdk.bib cellcore.bib netcfv35.bib sqlcompact.bib ossvcs.bib shell.bib wceshellfe.bib wceappsfe.bib directx.bib msf.bib datasync.bib mediaapps.bib apps.bib project.bib platform.bib PBUserProjects.bib OSDesign.bib D:\WINCE700\osdesigns\iMX51_EVK_Mobility\RelDir\Freescale_i_MX51_EVK_ARMV7_Release\multiui.bib."

    Then I added the .reg, .bib and .dll files to the release folder.Then its get success .

    now my doubt is why its not moving to the release folder automatically?for that what I need to do?

    Wednesday, March 13, 2013 11:22 AM
  • Where is your .reg and .bib file for sdio driver ?

    In your platform.reg file you can add like this (just for eg) (using absolute path ...):

    ;@CESYSGEN IF CE_MODULES_SDBUS
    IF MRVL_SDIO8787_WIFI
    #include "C:\WINCE700\public\ThirdParty\Catalog\Driver\SDIO8787.reg"
     ENDIF
    ;@CESYSGEN ENDIF CE_MODULES_SDBUS

    Similarly for bib file .

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com


    • Marked as answer by Rohith_88 Wednesday, March 13, 2013 11:47 AM
    • Edited by Misbah Khan Wednesday, March 13, 2013 12:07 PM
    Wednesday, March 13, 2013 11:34 AM
  • Thanks alot misbah.........

    you are rocking...

    Wednesday, March 13, 2013 11:48 AM
  • Hi All

    I am working on SDIO 8787 driver with windows CE 6.0. My Wi Fi driver is up and trying to program the firmware file. After that Wi Fi chip is not at all responding and device seems to be hang.  Is there any mistake i am doing in the registry? 

    ; SDIO8787 registry file

    ; Copyright (C) Marvell Corporation
    ;
    ; registry keys for the Streams portion of the driver
    [HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Custom\MANF-02DF-CARDID-9118-FUNC-1]
       "Dll"="SDIO8787_WLAN.dll"     ; use the "streams" interface portion to load the NDIS portion
       "Prefix"="NDL"
           ; add instance key for each instance that can be added
       "Instance0"="SDIO8787:SDIO87871" ; "InstanceX" = "<Miniport Name>:<Miniport Instance>"
    ;
    ;; Enable High Throughput Bus 
    ;[HKEY_LOCAL_MACHINE\Comm\SDIO87871\Parms]
       ;"SdioFastPath"=dword:1


    ;
    ; Registry keys
    ;
    ; registry keys for the NDIS driver
    [HKEY_LOCAL_MACHINE\Comm\SDIO8787]
       "DisplayName"="Marvell SDIO8787 Wireless Card"
       "Group"="NDIS"
       "ImagePath"="SDIO8787_WLAN.dll"
       "NoDeviceCreate"=dword:01

    [HKEY_LOCAL_MACHINE\Comm\SDIO8787\Linkage]
       "Route"=multi_sz:"SDIO87871"

        ; instance 1 information
    [HKEY_LOCAL_MACHINE\Comm\SDIO87871]
       "DisplayName"="Marvell SDIO8787 Wireless Card"
       "Group"="NDIS"
       "ImagePath"="SDIO8787_WLAN.dll"
       "Wireless"=dword:00000001

        ; instance 1 parameters
    [HKEY_LOCAL_MACHINE\Comm\SDIO87871\Parms]
       ;"SdioFastPath"=dword:1      ; Enable High Throughput Bus 
       "SDClockRate"=dword:989680 ;for SDIO clock rate setting: 20M:0x989680 20M:0x1312D00   25M:0x17D7840 
       "BusNumber"=dword:0
       "BusType"=dword:0

        ; TCPIP linkage to instance 1 adapter
    [HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
        "Bind"=multi_sz:"ppp","SDIO87871"

        ; setup card parameters
    [HKEY_LOCAL_MACHINE\Comm\SDIO87871\Parms]
       "UseMfgFw"=dword:0
       "PowerMode"=dword:0
       "FragThsd"=dword:92A
       "RTSThsd"=dword:92A
           ; following is for BT/WLAN multi-functions driver 1:enable BT/WLAN multi-function driver, 0:WLAN only
       "BTMode"=dword:0
           ; adhoc starter default channel
       "AdhocDefaultChannel"=dword:6
           ; adhoc starter WiFi test datarate modify or not 
       "AdhocWiFiDataRate"=dword:0
           ; adhoc default band, 1:G, 0:B
       "AdhocDefaultBand"=dword:1
           ; 1:SDIO 4 bit mode; 0: SDIO 1 bit mode
       "SetSD4BIT"=dword:1
           ;Set the priority of SdioIstThread
       "SdioIstThread"=dword:65
           ;Set the value of AvoidScanTime after connected
       "AvoidScanTime"=dword:2710
           ;Set ACTIVE_ROAMING
       "bActiveRoamingScanOneChannel"=dword:1
       "bLinkLostScanOneChannel"=dword:1
           ;Set NEW_RSSI parameters
       "ulRSSIThresholdTimer"=dword:1388
       "RSSI_Range"=dword:A
           ;Set ACTIVE_ROAMING with BackGround Scan
       "bActiveRoamingwithBGSCAN"=dword:0
           ;Set RoamingMode:NOT_ROAMING_MODE = 1(default),ACTIVE_ROAMING_MODE=2,FAST_ROAMING_MODE
       "RoamingMode"=dword:1
           ;Set the value of Enable80211D
       "Enable80211D"=dword:1
           ;Set the value of LocalListenInterval
       "LocalListenInterval"=dword:0
           ;Set support 32bytes ESSID
       "ESSID_32"=dword:0
           ;Set the value to use GPIO pin as Interrupt pin, 1:use GPIO pin as interrupt source; 0:used SDIO bus interrupt
       "SDGPIOIntEnable"=dword:1
           ;Set the GPIO pin # to be used as Interrupt pin 
       "GPIOIntPinNumber"=dword:4
           ;Setup interrupt trigger edge, 0: Rasing edge, 1:Falling edge
       "GPIOIntTriggerEdge"=dword:1
           ;Setup interrupt pluse width(us)
       "GPIOIntPulsewidth"=dword:5
           ;Set the value of NullPktInterval, 0: unchanged. 
       "NullPktInterval"=dword:0
           ;Set the value of MultipleDTim
       "MultipleDTim"=dword:1
           ;Set the value of AdhocAwakePeriod
       "AdhocAwakePeriod"=dword:1
           ;Set MAC frame type
       "MacFrameType"=dword:0
           ;Set Auto Deep Sleep Time, 2 seconds unit.
       "AutoDeepSleepTime"=dword:0
           ;Set Association fail retry times while asso. fail.
       "AssoRetryTimes"=dword:2

    ;
    ;Roaming parameters ++
    ;
    ;Set the value of RoamSignalStrengthThreshold
    "RoamSignalStrengthThreshold"=dword:2d

    ;
    ;Channel list. 
    ;    Valid value of BG-Band is from 0x00000000 ~ 0x0003fff in RoamChannelScanList0
    ;    => bit[i]=1, channel[i+1] will be scanned
    ;    Valid value of A-Band is (RoamChannelScanList0,RoamChannelScanList1) = (0x001fffff,0xffff0000)
    ;    Channel mapping: 
    ;    (RoamChannelScanList0=0xffff0000)=(100,64,60,58)(56,52,50,48)(46,44,42,40)(38,36,34,16)
    ;    (RoamChannelScanList1=0x001fffff)=(252),(248,244,240,165),(161,160,157,153)(152,149,140,136)(132,128,124,120)(116,112,108,104)
    "RoamChannelScanList0"=dword:080003ff
    "RoamChannelScanList1"=dword:00000000


    ; Scan interval per channel(ms)
    "RoamMaxScanInterval"=dword:bb8
    "RoamMinScanInterval"=dword:c8

    ;RSSI threshold. If the next AP's RSSI is higher more than this value, roam to that AP
    "RoamDiffRSSIThreshold"=dword:0f

    ;Scan algorithm
    ; 0: Use background scan
    ; 1: Use active scan
    "RoamScanAlgorithm"=dword:1
    ;
    ;Roaming parameters --
    ;

    ;Bus power is on/off in D3
    "BusPowerInD3"=dword:1

    ;GSPI 26Mbps Enable
    "GSPI26Enable"=dword:0

    ;Tx Bus aggregation Counter
    "MaxTxAggrCnt"=dword:4

    ;Enable/Disable bus aggregation
    "BusAggr"=dword:1
    ;High Throughput Rx mode 
    "HighThroughputRx"=dword:1
        ;Device mode  UAP:0 WlanClient:1
        "DeviceOpMode"=dword:00000001

        ;Reconnect parameters
       "ulReconnectPeriod"=dword:2000 ; 8192ms
       "ReconnectCounter"=dword:1



    Thursday, December 26, 2013 7:10 AM