ndiswrapper installieren funktioniert nicht

Hallo Leute verusche gerade meine Wlan Karte zum laufen zu bekommen!

Würde dafür ndiswrapper brauchen aber irgendwie mag der nicht!

Laut handbuch soll man folgendes machen

Als erstes müssen Sie das Wrappermodul für den ndis(4) Miniport-Treiber kompilieren. Dazu geben Sie als root Folgendes ein:

# cd /usr/src/sys/modules/ndis
# make && make install


Tja da kommt bei mir aber leider nur folgendes raus


(19:45:31 root@blacky-worki:(/sys/modules/ndis)
# make
Warning: Object directory not changed from original /usr/src/sys/modules/ndis
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
touch opt_bdg.h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
cc -O -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/altq -I@/../include -I/usr/include -finline-limit=8000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/ndis/../../compat/ndis/subr_pe.c
cc -O -pipe -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/contrib/altq -I@/../include -I/usr/include -finline-limit=8000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:107:36: dev/if_ndis/if_ndisvar.h: No such file or directory
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_register_miniport':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:399: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:401: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:402: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:403: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:404: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:405: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_read_cfg':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:645: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_write_cfg':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:745: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_vtophys_load':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:982: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:985: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:988: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:995: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_vtophys_unload':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1019: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1022: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1024: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1027: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_query_resources':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1137: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_register_ioport':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1165: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1169: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1172: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_read_netaddr':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1201: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1204: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_alloc_mapreg':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1236: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1239: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1242: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1245: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1248: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1253: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1253: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1255: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_free_mapreg':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1271: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1272: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1272: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1274: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1276: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_alloc_sharedmem':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1322: error: invalid application of `sizeof' to incomplete type `ndis_shmem'
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1340: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1343: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1350: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1351: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1354: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1359: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1359: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1363: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1363: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1364: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1369: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1370: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1370: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1371: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_asyncmem_complete':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1401: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_free_sharedmem':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1462: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1465: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1468: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1471: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1471: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1471: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1472: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1472: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1473: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1475: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1476: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1476: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1478: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1478: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_map_iospace':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1501: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1502: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1503: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1504: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1505: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1506: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1507: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1508: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1509: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_init_sc_dma':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1565: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1568: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1571: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:1573: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_register_shutdown':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2170: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_deregister_shutdown':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2191: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_read_pccard_amem':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2272: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2273: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_write_pccard_amem':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2302: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2303: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c: In function `ndis_sync_with_intr':
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2382: error: dereferencing pointer to incomplete type
/usr/src/sys/modules/ndis/../../compat/ndis/subr_ndis.c:2384: error: dereferencing pointer to incomplete type
*** Error code 1

Stop in /usr/src/sys/modules/ndis.​

Was kann ich den da machen wenn ich nicht gerade über C Programmierkenntnisse verfüge? ;'(

Danke schonmal und lg

Mike
 
Hallo, ich hab das jetzt gebacken bekommen. Mir fehlten Dateien, die ich wohl in einem Wahn von fehlersuche einfach gelöscht habe...

Jedenfalls hat er mir mit den orginal inf und sys dateien nicht wollen deswegen hab ich die hier genommen!

http://linux.cergynux.net/bcmwl5.inf
http://linux.cergynux.net/bcmwl5.sys

Tjo er tut auch so als wenn alles einwandfrei und sauber wäre

kldload ndis und
kldload if_ndis spielen ohne probleme!

Tja nur bei ifconfig ndis0 meint er das kein device da ist. Auch unter /dev/net/ finde ich es nicht. nur lo und sis0 (meine normalen netzwerkkarte) aber kein ndis0!

Irgendeine Idee?
 
Ok bitte fragt mich nicht warum, aber es geht!

Hab die 2000er Treiber probiert, trotzdem nix funktioniert!

Nach einiger Zeit hab ich mal nicht kldload if_ndis sondern

kldload -v /usr/src/sys/modules/if_ndis/if_ndis.ko

probiert..... siehe da es geht!

ndis0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether FF:FF:FF:FF:FF:FF
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid ""
channel -1 authmode OPEN powersavemode OFF powersavesleep 100
rtsthreshold 2312 protmode CTS
wepmode OFF weptxkey 1

(Mac wurde von mir verändert)

Und jetzt gehts auch per kldload if_ndis!

Strange aber es funkt :)
 
Hi Robert,

Sag mal, ich weiss nicht ob du einen schlechten Moment hattest gerade, weil du auf einen thread aus dem Februar im September antwortest, nachdem der OP seine selbstverschuldeten Probleme mit WLan und ndiswrapper selbst erfolgreich gelöst hat. Ich weiß auch nicht, ob du erkannt hast, daß dies die FreeBSD section des Forums ist, weil du nach dem OS fragst. Noch weniger weiß ich, was du von angeblich mangelnden Erfolgen mit Wlan in FreeBSD weisst und Debian-Sarge ist hier auch weniger das Thema. Aber werde doch bitte konkreter, damit andere Forumsbesucher auch verstehen, was du mit deinem post gemeint zu haben glaubtest.

Grüsse, Daniel :)
 
War auch etwas verwirrt als ich vor ein paar Minuten die Mail gelesen hab das doch noch jemand geantwortet hat *gg*

Bzgl. OS. Mittlerweile hackel ich mit, bitte nicht kloppen, Kubuntu!

Manches von FreeBSD geht mir ab und bei manchem bin ich froh gewechselt zu haben... :)

lg

Mike
 
Blacknight schrieb:
War auch etwas verwirrt als ich vor ein paar Minuten die Mail gelesen hab das doch noch jemand geantwortet hat *gg*

Bzgl. OS. Mittlerweile hackel ich mit, bitte nicht kloppen, Kubuntu!

Manches von FreeBSD geht mir ab und bei manchem bin ich froh gewechselt zu haben... :)

lg

Mike
Ich entschuldige mich vorab fuer den Offtopic.
Blacknight sag mal hast du nix zu tun ?
 
Zuletzt bearbeitet:
o_O warum sollte er ?
Im Gegenteil, mittlerweile hat er ein working-out-of-the-box OS :zitter: , was gerade von Leuten benutzt wird, die mit dem Computer und nicht an ihm arbeiten wollen.

PS: Das gleiche könnte man dich auch fragen, denn wenn du bis um 4 Uhr morgens noch wach bist, kann man davon ausgehen, das du heute nicht arbeitest/nichts zu tun hast :D
 
Leute, keine Aufregung, alles im grünen Bereich.

Nevixpain hat vollkommen recht imho, geben wir den Leuten ein out-of-the-box-BSD, dann haben wir was gekonnt ;)

In dem Sinne: Weitermachen und Ball flachhalten :)

@Blacknight: Ich weiß ja, daß dies jetzt totally OT ist, aber: Was gefällt dir an dem Kubuntu so gut (nur auf dich bezogen)?
 
Hallo!
Bitte entschuldigt, ich hatte wirklich einen schwachen Moment: Das Datum des threats habe ich nicht realisiert.
1. Jedoch war mir schon klar, das ich bei BSD war. Gerüchtweise hatte ich aber gehört, das sich schon mal jemand im Forum geirrt hat, auch kenne ich mehrere BSD. Dieses wollte ich verifizieren.
Zugegeben, das grenzt an Frevel.
2. Ich hatte Schwierigkeiten zu verstehen, MS-Treiber unter OS einzusetzen. Wie bewiesen ist (bei mir aktuell Debian Sarge), geht es aber. Ich neige denen zu, die das für einen technisch mehrversprechenden Weg halten. Wie das urheberrechtlich aussieht ist mir unklar.
3.Nach wie vor interessiere ich mich für ndiswrapper bei FreeBSD 5.4, bislang finde ich keine für mich geeigneten Hinweise.
Für einen, meinem (nicht hohen) Niveau entsprechenden, Tip wäre dankbar.
Ich grüße alle Teilnehmer!
friotto
 
Auszug aus: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

Code:
# cd /usr/src/sys/modules/ndis
# make && make install
# cd /usr/src/sys/modules/if_ndis
# cp /path/to/driver/W32DRIVER.SYS ./
# cp /path/to/driver/W32DRIVER.INF ./
# ndiscvt -i W32DRIVER.INF -s W32DRIVER.SYS -o ndis_driver_data.h
# make && make install
# kldload ndis
# kldload if_ndis

#route flush
#ifconfig ndis0 192.168.0.2 netmask 255.255.255.0 ssid NAME channel 11 mediaopt infastructure wepmode on wep wepkey [hier dem wepkey eingeben] up
#route add default 192.168.0.1
#echo "nameserver 192.168.0.1" > /etc/resolv.conf
#ifconfig ndis0
 
ndiscvt -i W32DRIVER.INF -s W32DRIVER.SYS -o ndis_driver_data.h

obiges bringt bei mir:

ndiscvt: line 400: : syntax error

ich verwende aber pcbsd. weiss irgendwer rat?
 
Fortsetzung

Hallo Leute!
dieses Thread wäre sinvollste für meine Problem, also führe ich es fort.

Ich habe (nicht gerade schicke) WLAN Karte all0261 (PCI). Als Treiber versuchte ich NDIS. Kompilieren ist glatt gelaufen. Aber beim Laden von Modulen bekomme ich folgende Meldung
Code:
ndis0: <IEEE 802.11g Wireless Cardbus/PCI Adapter> mem 0xe3000000-0xe300ffff,0xe3010000-0xe301ffff irq 10 at device 9.0 on pci0
ndis0: NDIS API version: 5.1
ndis0: init handler failed
device_attach: ndis0 attach returned 6

konnte nicht feststellen woran es liegen kann '(
irgendwelche Ideen?

update: ich kann keine Regelmäßigkeit feststellen, manchmal klappt es, manchmal landet kernel in panic und schmiert ab.
 
Zuletzt bearbeitet:
Zurück
Oben