NDIS-wrapper

From: Zoltán Kovács <kovacs.z(at)web.de>
Date: Fri, 09 Jun 2006 14:47:58 +0200

Hallo,

Ich habe ein Probelm mit mener WLAN-Karte. Vorher konnte ich meine Dell Truemobile Karte unter FreeBSD 5.3 benutzen. Nach dem Upgrade mit 5.5 funktioniert die alte Lösung nicht mehr.
Vorher habe ich iconv benutzt:

$ iconv -c -f utf-16 -t ascii bcmwl5.inf > bcmwl5.inf.ascii

und ndis_driver_data.h gemacht:

$ ndiscvt -i bcmwl5.inf.ascii -s bcmwl5.sys -o ndis_driver_data.h

Dann

$make && make install
$kldload if_ndis
$kldload ndis

Es hat sehr gut funktioniert. Aber nich für FreeBSD 5.5.
Die Kernelmodulen wurden gelanden aber die WLAN-Geräte wurde nicht gefunden.

Später habe ich die neue Lösung für 5.5 gefunden. Es ist ndisgen(8).
Dieser Shell-Skript konnte iconv und ndiscvt automatisch laufen lassen.
Aber mit Kompiieren geht es nicht. Ich habe die Fehlermeldung:

make: don't know how to make windrv_stub.c

Wann ich das Ergebnis von ndisgen mit Hand kompiliere, dann bekome ich viele Fehlermeldungen:
$make
Warning: Object directory not changed from original /usr/src/sys/modules/if_ndis
cc -O -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c
In file included from /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:56:
@/dev/pci/pcivar.h: In function `pci_get_subvendor':
@/dev/pci/pcivar.h:203: warning: implicit declaration of function `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h: In function `pci_set_subvendor':
@/dev/pci/pcivar.h:203: warning: implicit declaration of function `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h: In function `pci_get_subdevice':
@/dev/pci/pcivar.h:204: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_subdevice':
@/dev/pci/pcivar.h:204: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_vendor':
@/dev/pci/pcivar.h:205: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_vendor':
@/dev/pci/pcivar.h:205: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_device':
@/dev/pci/pcivar.h:206: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_device':
@/dev/pci/pcivar.h:206: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_devid':
@/dev/pci/pcivar.h:207: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_devid':
@/dev/pci/pcivar.h:207: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_class':
@/dev/pci/pcivar.h:208: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_class':
@/dev/pci/pcivar.h:208: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_subclass':
@/dev/pci/pcivar.h:209: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_subclass':
@/dev/pci/pcivar.h:209: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_progif':
@/dev/pci/pcivar.h:210: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_progif':
@/dev/pci/pcivar.h:210: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_revid':
@/dev/pci/pcivar.h:211: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_revid':
@/dev/pci/pcivar.h:211: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_intpin':
@/dev/pci/pcivar.h:212: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_intpin':
@/dev/pci/pcivar.h:212: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_irq':
@/dev/pci/pcivar.h:213: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_irq':
@/dev/pci/pcivar.h:213: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_bus':
@/dev/pci/pcivar.h:214: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_bus':
@/dev/pci/pcivar.h:214: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_slot':
@/dev/pci/pcivar.h:215: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_slot':
@/dev/pci/pcivar.h:215: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_function':
@/dev/pci/pcivar.h:216: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_function':
@/dev/pci/pcivar.h:216: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_get_ether':
@/dev/pci/pcivar.h:217: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pci_set_ether':
@/dev/pci/pcivar.h:217: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
@/dev/pci/pcivar.h: In function `pcib_get_bus':
@/dev/pci/pcivar.h:248: warning: nested extern declaration of `BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_READ_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_READ_IVAR' was here
@/dev/pci/pcivar.h: In function `pcib_set_bus':
@/dev/pci/pcivar.h:248: warning: nested extern declaration of `BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: redundant redeclaration of 'BUS_WRITE_IVAR'
@/dev/pci/pcivar.h:203: warning: previous implicit declaration of 'BUS_WRITE_IVAR' was here
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c: At top level:
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:82: error: `device_probe_desc' undeclared here (not in a function)
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:82: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:82: error: (near initialization for `ndis_methods[0].desc')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:82: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:82: error: (near initialization for `ndis_methods[0]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:83: error: `device_attach_desc' undeclared here (not in a function)
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:83: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:83: error: (near initialization for `ndis_methods[1].desc')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:83: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:83: error: (near initialization for `ndis_methods[1]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:84: error: `device_detach_desc' undeclared here (not in a function)
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:84: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:84: error: (near initialization for `ndis_methods[2].desc')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:84: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:84: error: (near initialization for `ndis_methods[2]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:85: error: `device_shutdown_desc' undeclared here (not in a function)
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:85: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:85: error: (near initialization for `ndis_methods[3].desc')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:85: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:85: error: (near initialization for `ndis_methods[3]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:86: error: `device_suspend_desc' undeclared here (not in a function)
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:86: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:86: error: (near initialization for `ndis_methods[4].desc')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:86: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:86: error: (near initialization for `ndis_methods[4]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:87: error: `device_resume_desc' undeclared here (not in a function)
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:87: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:87: error: (near initialization for `ndis_methods[5].desc')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:87: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:87: error: (near initialization for `ndis_methods[5]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:90: error: `bus_get_resource_list_desc' undeclared here (not in a function)
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:90: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:90: error: (near initialization for `ndis_methods[6].desc')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:90: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:90: error: (near initialization for `ndis_methods[6]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:92: error: initializer element is not constant
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:92: error: (near initialization for `ndis_methods[7]')
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c: In function `ndis_attach_pci':
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:188: warning: implicit declaration of function `BUS_GET_RESOURCE_LIST'
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:188: warning: nested extern declaration of `BUS_GET_RESOURCE_LIST'
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:188: warning: assignment makes pointer from integer without a cast
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c: In function `ndis_get_resource_list':
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:344: warning: nested extern declaration of `BUS_GET_RESOURCE_LIST'
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:188: warning: redundant redeclaration of 'BUS_GET_RESOURCE_LIST'
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:188: warning: previous implicit declaration of 'BUS_GET_RESOURCE_LIST' was here
/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c:344: warning: return makes pointer from integer without a cast
*** Error code 1

Stop in /usr/src/sys/modules/if_ndis.

Hat jemand Erfolg mit diesem WLAN-Treiber unter FreeBSD 5.5?

Gruß,
Zoltan
   

    
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 09 Jun 2006 - 14:50:45 CEST

search this site