NetBSD Problem Report #41740

From www@NetBSD.org  Thu Jul 16 09:42:45 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id EF9AB63BADF
	for <gnats-bugs@gnats.netbsd.org>; Thu, 16 Jul 2009 09:42:44 +0000 (UTC)
Message-Id: <20090716094244.A480D63B883@www.NetBSD.org>
Date: Thu, 16 Jul 2009 09:42:44 +0000 (UTC)
From: nbsdold@gmx.net
Reply-To: nbsdold@gmx.net
To: gnats-bugs@NetBSD.org
Subject: NDIS not working, not even with patch from 39034
X-Send-Pr-Version: www-1.0

>Number:         41740
>Category:       port-i386
>Synopsis:       NDIS not working, not even with patch from 39034
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 16 09:45:00 +0000 2009
>Closed-Date:    Sat Aug 25 08:15:48 +0000 2018
>Last-Modified:  Sat Aug 25 08:15:48 +0000 2018
>Originator:     Nino
>Release:        5.0
>Organization:
(home)
>Environment:
(Naturally, I tried to compile this with my own kernel. I enabled as much as I could think of, including all PCI-options that I have beed advised of for previous problems)
>Description:
Dear Sir or Madam,

Unfortunately, I had little luck using the NDIS-facility for a PCMCIA wireless card. I did discover the patches submitted in problem report #39034, but that did not work for me either - I got undefined function errors both for if_ndis and if_ndis_pci, however only at the link stage, if I remember correctly. I think the errors were different depending on whether I tried to use the -O option in ndiscvt or just tried to have the NDIS-facility compiled when making the kernel.

I am sending you my .inf and ndis_driver_data.h files below so you can try it yourself and better analyse where the problem comes from. (I may well have made a mistake; it is the first time for me that I patched anything.) I would like to remark that my card is not natively supported in Linux either, but Ubuntu 8.04 is actually able to use it with Ndiswrapper.

I would be very grateful for any suggestions should there have been a mistake on my part; and indeed, I would suggest fixing this for the benefit of NetBSD itself, as I think it is a little unusual for a system with such a great reputation to knowingly ship a completely non-working element that needs manual patching. (Just my personal opinion, of course, and mind, I do hold NetBSD in high regard, else I would not criticise this point either.)

Kind regards,

Nino

NET5211.INF:

;/*++
;
;Copyright (c) 2007 Belkin International, Inc. All Rights Reserved
;
;Module Name:
;
;    net5211.inf
;
;Abstract:
;    INF file for installing Belkin Wireless G Cardbus/PCI Adapter
;
;    Installs ar5211.sys (NDIS 5/5.1 driver) on NT platforms (2000, XP and greater)
;    Installs ar52119x.sys (NDIS 5 driver) on 9x platforms
;
;--*/

[Version]
Signature   = "$CHICAGO$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Belkin%
Compatible  = 1
DriverVer   = 11/08/2007,5.3.0.85
Catalogfile.nt = net5211.cat


[Manufacturer]
%Belkin%      = Belkin

[ControlFlags]
ExcludeFromSelect = \  ;for win95 and legacy support
  PCI\VEN_168C&DEV_0013

[Belkin]
%ATHER.DeviceDesc.721B%  = ATHER_DEV_721B.ndi,    PCI\VEN_168C&DEV_001D&SUBSYS_721B1799
%ATHER.DeviceDesc.720B%  = ATHER_DEV_720B.ndi,    PCI\VEN_168C&DEV_001D&SUBSYS_720B1799

; Windows 9X specific entries

[ATHER_DEV_721B.ndi]
AddReg          = ATHER_DEV_721B.id.reg, 5211.reg, ATHER.win.reg, 5212.bgcb.reg
CopyFiles       = ATHER.win.CopyFiles, DEFAULTDESTDIRS
DelFiles        = ATHER.DelIniFiles
DelReg          = 5211.DelReg

[ATHER_DEV_720B.ndi]
AddReg          = ATHER_DEV_720B.id.reg, 5211.reg, ATHER.win.reg, 5212.bgmp.reg
CopyFiles       = ATHER.win.CopyFiles, DEFAULTDESTDIRS
DelFiles        = ATHER.DelIniFiles
DelReg          = 5211.DelReg

; Windows NT specific entries

[ATHER_DEV_721B.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
DelReg          = 5211.DelReg
AddReg          = 5211.reg, ATHER.reg, 5211.reg, 5212.bgcb.reg, ATHER_DEV_721B.id.reg
CopyFiles       = ATHER.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = ATHER.DelIniFiles

[ATHER_DEV_720B.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
DelReg          = 5211.DelReg
AddReg          = 5211.reg, ATHER.reg, 5211.reg, 5212.bgmp.reg, ATHER_DEV_720B.id.reg
CopyFiles       = ATHER.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = ATHER.DelIniFiles

[ATHER_DEV_721B.ndi.NT.Services]
AddService      = AR5211, 2, ATHER.Service, common.EventLog

[ATHER_DEV_720B.ndi.NT.Services]
AddService      = AR5211, 2, ATHER.Service, common.EventLog

;----------------------------------------------------------------------------
; Win9x id registry sections
; These are not needed by NT


[ATHER_DEV_721B.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_001D&SUBSYS_721B1799"

[ATHER_DEV_720B.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_001D&SUBSYS_720B1799"

;
; 5211 Enumerated Types
;

[5212.bgcb.reg]
HKR, ,                                  NetBand,                        0x00002,  "28"
HKR, CustomParams\Configurations,       NicType,                        0x10003,  1

[5212.bgmp.reg]
HKR, ,                                  NetBand,                        0x00002,  "28"
HKR, CustomParams\Configurations,       NicType,                        0x10003,  2

;-----------------------------------------------------------------------------

;
; 5211 common
;
[5211.DelReg]
HKR,,NetBand
HKR,,ssid
HKR,,ssid2
HKR,,ssid3
HKR,,prefBssid1
HKR,,prefBssid2
HKR,,prefBssid3
HKR,,prefBssid4
HKR,Ndi\Params\tpc
HKR,,tpc
HKR,Ndi\Params\authTypeUseOnly
HKR,,authTypeUseOnly
HKR,,AdHocBand
HKR,,AwakeTimePerf
HKR,,beaconInterval
HKR,,bkScanEnable
HKR,,bssType
HKR,,ccode
HKR,,clist
HKR,,defaultKey
HKR,,EncryptionAlg
HKR,,FragThreshold
HKR,,HwTxRetries
HKR,,privacyInvoked
HKR,,QoS
HKR,,rateCtrlEnable
HKR,,RTSThreshold
HKR,,scanType
HKR,,SwTxRetryScale
HKR,,SmeEnable
HKR,,aifs
HKR,,cwmin
HKR,,pcieClockReq
HKR,Ndi\params\sleepMode
HKR,Ndi\params\sleepMode\enum
HKR, Ndi\params\ExtendedChannel
HKR, NDI\params\Mode11dSwitch
HKR, Ndi\params\MapRegisters
HKR, CustomParams\Configurations\Cfg0

[5211.reg]
HKR, Ndi\params\MapRegisters,           ParamDesc,                      0,  %MapRegisters%
HKR, Ndi\params\MapRegisters,           default,                        0,  "256"
HKR, Ndi\params\MapRegisters,           min,                            0,  "32"
HKR, Ndi\params\MapRegisters,           max,                            0,  "512"
HKR, Ndi\params\MapRegisters,           step,                           0,  "8"
HKR, Ndi\params\MapRegisters,           base,                           0,  "10"
HKR, Ndi\params\MapRegisters,           type,                           0,  "int"

HKR, Ndi\params\NetworkAddress,         ParamDesc,                      0,  %NetworkAddress%
HKR, Ndi\params\NetworkAddress,         default,                        0,  ""
HKR, Ndi\params\NetworkAddress,         LimitText,                      0,  "12"
HKR, Ndi\params\NetworkAddress,         UpperCase,                      0,  "1"
HKR, Ndi\params\NetworkAddress,         optional,                       0,  "1"
HKR, Ndi\params\NetworkAddress,         type,                           0,  "edit"

HKR, Ndi\params\sleepMode,              ParamDesc,                      0,  %sleepMode%
HKR, Ndi\params\sleepMode,              Base,                           0,  "10"
HKR, Ndi\params\sleepMode,              default,                        0,  "2"
HKR, Ndi\params\sleepMode,              type,                           0,  "enum"
HKR, Ndi\params\sleepMode\enum,         "0",                            0,  %sleepModeOff%
HKR, Ndi\params\sleepMode\enum,         "2",                            0,  %sleepModeNormal%
HKR, Ndi\params\sleepMode\enum,         "1",                            0,  %sleepModeMax%

HKR, Ndi\params\shortPreamble,          ParamDesc,                      0,  %shortPreamble%
HKR, Ndi\params\shortPreamble,          Base,                           0,  "10"
HKR, Ndi\params\shortPreamble,          default,                        0,  "1"
HKR, Ndi\params\shortPreamble,          type,                           0,  "enum"
HKR, Ndi\params\shortPreamble\enum,     "1",                            0,  %shortPreambleEnable%
HKR, Ndi\params\shortPreamble\enum,     "0",                            0,  %shortPreambleDisable%

HKR, Ndi\params\radioEnable,            ParamDesc,                      0,  %radioEnable%
HKR, Ndi\params\radioEnable,            Base,                           0,  "10"
HKR, Ndi\params\radioEnable,            default,                        0,  "1"
HKR, Ndi\params\radioEnable,            type,                           0,  "enum"
HKR, Ndi\params\radioEnable\enum,       "1",                            0,  %radioEnableOn%
HKR, Ndi\params\radioEnable\enum,       "0",                            0,  %radioEnableOff%

HKR, Ndi\params\scanTimeValid,          ParamDesc,                      0,  %scanTimeValid%
HKR, Ndi\params\scanTimeValid,          default,                        0,  "60"
HKR, Ndi\params\scanTimeValid,          min,                            0,  "20"
HKR, Ndi\params\scanTimeValid,          max,                            0,  "120"
HKR, Ndi\params\scanTimeValid,          step,                           0,  "5"
HKR, Ndi\params\scanTimeValid,          base,                           0,  "10"
HKR, Ndi\params\scanTimeValid,          type,                           0,  "int"

HKR, CustomParams\Configurations,       MajorVersion,                   0x10003,  2
HKR, CustomParams\Configurations,       MinorVersion,                   0x10003,  0

HKR, CustomParams\Configurations,       SelectedConfigurationIndex,     0x10003,  0
HKR, CustomParams\Configurations,       SelectedConfigurationName,      0x00002,  "Default"

;-----------------------------------------------------------------------------
; ATHER NT specific
;

[ATHER.reg]
HKR, Ndi,             Service,      0, "AR5211"
HKR, Ndi\Interfaces,  UpperRange,   0, "ndis5"
HKR, Ndi\Interfaces,  LowerRange,   0, "ethernet"

[ATHER.Service]
DisplayName     = %ATHER.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\ar5211.sys
LoadOrderGroup  = NDIS

;-----------------------------------------------------------------------------
; ATHER NT/XP common
;
[common.EventLog]
AddReg = common.AddEventLog.reg

[common.AddEventLog.reg]
HKR, ,                  EventMessageFile,   0x00020000,   "%%SystemRoot%%\System32\netevent.dll"
HKR, ,                  TypesSupported,     0x00010001,   7

;----------------------------------------------------------------------------
; ATHER Win9x specific
;
[ATHER.win.reg]
HKR, ,                  DevLoader,          0,            "*ndis"
HKR, ,                  DeviceVxDs,         0,            "ar52119x.sys"
HKR, ,                  EnumPropPages,      0,            "netdi.dll,EnumPropPages"

HKR, Ndi\Interfaces,    DefUpper,           0,            "ndis3"
HKR, Ndi\Interfaces,    DefLower,           0,            "ethernet"
HKR, Ndi\Interfaces,    UpperRange,         0,            "ndis3"
HKR, Ndi\Interfaces,    LowerRange,         0,            "ethernet"

HKR, NDIS,              LogDriverName,      0,            "AR52119X"
HKR, NDIS,              MajorNdisVersion,   1,            03
HKR, NDIS,              MinorNdisVersion,   1,            0A

HKR, Ndi\Install,       ndis3,              0,            "ATHER.install"

;----------------------------------------------------------------------------
; Win9x Files to Copy
[ATHER.win.CopyFiles]
ar52119x.sys,,,2

;----------------------------------------------------------------------------
; NT Files to Copy
[ATHER.CopyFiles.nt]
ar5211.sys,,,2

[ATHER.DelIniFiles]
Athnic.ini,,,1

[SourceDisksNames]
;
; diskid = description[, [tagfile] [, <unused>, subdir]]
;
1 = %Belkin_Disk%,,,

;----------------------------------------------------------------------------
; Source Files
[SourceDisksFiles]
ar52119x.sys                 = 1,, ; on distribution disk 1
ar5211.sys                   = 1,, ; on distribution disk 1


[DestinationDirs]
ATHER.CopyFiles.nt           = 12
ATHER.win.CopyFiles          = 10,system32\drivers ; %SystemRoot%\system32\drivers
ATHER.DelIniFiles            = 10,system32\drivers ; %SystemRoot%\system32\drivers
DefaultDestDir               = 11

[DEFAULTDESTDIRS]
;


[Strings]
Belkin			     = "Belkin International, Inc."

MapRegisters                 = "Map Registers"
NetworkAddress               = "Network Address"
sleepMode                    = "Power Save Mode"
scanTimeValid                = "Scan Valid Interval"
sleepModeOff                 = "Off"
sleepModeNormal              = "Normal"
sleepModeMax                 = "Maximum"

shortPreamble                = "802.11b Preamble"
shortPreambleEnable          = "Long and Short"
shortPreambleDisable         = "Long only"
radioEnable                  = "Radio On/Off"
radioEnableOn                = "On"
radioEnableOff               = "Off"

Belkin_Disk                 = "Belkin Driver Disk 1"
ATHER.Service.DispName       = "Belkin Wireless Network Adapter Service"
ATHER.DeviceDesc.721B	     = "Belkin Wireless G Cardbus Adapter"
ATHER.DeviceDesc.720B	     = "Belkin Wireless G PCI Adapter"


>How-To-Repeat:
If I could append the .sys-file, you could try compiling the driver and see what I mean.
>Fix:
None, but the usually suggested patch did not work for me.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Sat, 25 Aug 2018 08:15:48 +0000
State-Changed-Why:
Close this PR. NDIS was retired, and has apparently never worked.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.