4028|3

78

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

270平台,调试wifi(型号marvell 8686) ,在makeimg时候遇到Error!请高手指点~ [复制链接]

小弟刚接触wince的开发不久,老大让调试一下wifi,型号为marvell 8686。我们用的是270平台。调试步骤依次是:

1.找硬件飞上线,占用sd卡上的sdio

2.在...drivers目录下添加wifi模块,包括source code、makefile文件,*.def文件、source文件等,还包含一个SDIO8686.reg
dir中添加相关模块

3.platform.reg(SDIO8686.reg文件内容见下面附录)中添加
; -----------------------------------------------------------------------------
; WIFI Driver
;
; @XIPREGION IF PACKAGE_OEMMISC
IF IMGULDR !
#include "$(_TARGETPLATROOT)\src\drivers\WLAN\SDIO8686\SDIO8686.reg"
ENDIF IMGULDR !
; @XIPREGION ENDIF PACKAGE_OEMMISC
; -----------------------------------------------------------------------------

4.platform.bib中添加
MODULES
;=============================================================================================
; @XIPREGION IF PACKAGE_OEMMISC
IF IMGULDR !
sdio8686.dll     $(_FLATRELEASEDIR)\sdio8686.dll          NK   SH
ENDIF IMGULDR !
; @XIPREGION ENDIF PACKAGE_OEMMISC
;=============================================================================================

5.最后makeimg


但在makeimg后总是过不去,出如下错误:
regcomp: Overwriting existing value [HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDri
vers\Class\SDMemory_Class] "IClass" in system registry
regcomp: Overwriting existing value [HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDri
vers\Class\MMC_Class] "IClass" in system registry
regcomp: Error: InitRegistry FAILED on or near line 38443 of D:\WM602\PLATFORM\l
ijia_HFC_PHOENIX_V1.03\CE_Bulverde\Release\Retail\WPC\reginit.ini.
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).


真是出师不利呀,自己瞎捣腾半天,也没搞定,越来越没头绪,希望高手指点一下~

另外reginit.ini中38443 行就对应我添加的那部分wifi注册表

附录:

SDIO8686.reg文件内容如下:


;
;        SDIO8686 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-9103-FUNC-1]
   "Dll"="SDIO8686.dll"                     ; use the "streams" interface portion to load the NDIS portion
   "Prefix"="NDL"
       ; add instance key for each instance that can be added
   "Instance0"="SDIO8686:SDIO86861"        ; "InstanceX" = ":"
   
;
;        Registry keys
;

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

[HKEY_LOCAL_MACHINE\Comm\SDIO8686\Linkage]
   "Route"=multi_sz:"SDIO86861"

    ; instance 1 information
[HKEY_LOCAL_MACHINE\Comm\SDIO86861]
   "DisplayName"="Marvell SDIO8686 Wireless Card"
   "Group"="NDIS"
   "ImagePath"="SDIO8686.dll"
       
    ; instance 1 parameters
[HKEY_LOCAL_MACHINE\Comm\SDIO86861\Parms]
   "BusNumber"=dword:0
   "BusType"=dword:0

    ; TCPIP linkage to instance 1 adapter
[HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]
    "Bind"=multi_sz:"ppp","SDIO86861"
   
    ; setup card parameters
[HKEY_LOCAL_MACHINE\Comm\SDIO86861\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:0
       ;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 is from 0x00000000 ~ 0x00007ff
        ;        => bit=1, channel[i+1] will be scanned
        "RoamChannelScanList"=dword:000007ff

        ; 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

        ;RegsionCode:
        ; (0x10, 0x20, 0x30, 0x31, 0x32, 0x40)=(USA FCC, Canada IC, Europe ETSI, Spain, France, JP MKK)
        "RegionCode"=dword:0x10


    ; default TCPIP settings for this instance
[HKEY_LOCAL_MACHINE\Comm\SDIO86861\Parms\TcpIp]
   "EnableDHCP"=dword:1
       ; This should be MULTI_SZ
   "DefaultGateway"=""
       ; Use zero for broadcast address? (or 255.255.255.255)
   "UseZeroBroadcast"=dword:0
       ; Thus should be MULTI_SZ, the IP address list
   "IpAddress"="0.0.0.0"
       ; This should be MULTI_SZ, the subnet masks for the above IP addresses
   "Subnetmask"="255.255.255.0"

IF MRVL_MONOLITHIC_SDIO
    ; setup monolithic SDIO Bus and SDHC parameters
[HKEY_LOCAL_MACHINE\Drivers\Builtin\SDIO8686]
   "Order"=dword:2
   "Dll"="SDIO8686.dll"
   "Prefix"="NDL"
   "Instance0"="SDIO8686:SDIO86861"
   "ThreadPriority"=dword:64     ; default thread priority for dispatch thread
   "RequestListDepth"=dword:30   ; pre-allocated requests
   "IClass"=multi_sz:"{20FA98A8-B298-4b32-8D72-C716AEE2FA84}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"

    "ControllerIRQ"=dword:17        ; IRQ_MMC 23
    "ControllerISTPriority"=dword:64
IF BSP_MAINSTONEII
    "CardDetectIRQ"=dword:20        ; IRQ_GPIO0_MMCCD 32
ELSE
    "CardDetectIRQ"=dword:28        ; IRQ_GPIOXX_MMCCD 40
ENDIF
    "CardDetectISTPriority"=dword:65
    "ClockAlwaysOn"=dword:0
    "ClockOnIfInterruptsEnabled"=dword:1
    "ehancePS"=dword:1
  
    "DMAChannel"=dword:14 ;comment this out to disable DMA support
    "DMAIsrDll"="sdhc_dmaisr.dll"
    "DMAIsrHandler"="SDHC_DMA_ISR"
    "DMAIRQ"=dword:19                ; IRQ_DMAC = 25
    "DMAISTPriority"=dword:63
    "DMABufferSize"=dword:10000
    "MaximumClockFrequency"=dword:1312D00 ; clock rate 989680(10MHz) 1312D00(20MHz)
ENDIF MRVL_MONOLITHIC_SDIO


最新回复

把RegionCode"=dword:0x10改成RegionCode"=dword:10  详情 回复 发表于 2009-9-27 17:00
点赞 关注

回复
举报

66

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDri
vers\Class\SDMemory_Class] "IClass"

[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDri
vers\Class\MMC_Class] "

把platform.reg里面的上面两个设置贴出来
 
 

回复

73

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
regcomp: Overwriting existing value [HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDri
vers\Class\SDMemory_Class] "IClass" in system registry
regcomp: Overwriting existing value [HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDri
vers\Class\MMC_Class] "IClass" in system registry
在我makeimg以后非常多,我也就只粘了这两个,我将 #include "$(_TARGETPLATROOT)\src\drivers\WLAN\SDIO8686\SDIO8686.reg" 去掉后就可以过,所以会不会就是SDIO8686.reg的问题? 费解~~~
 
 
 

回复

67

帖子

0

TA的资源

一粒金砂(初级)

4
 
把RegionCode"=dword:0x10改成RegionCode"=dword:10
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/7 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表