From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 15:27:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E892816A41C for ; Mon, 4 Jul 2005 15:27:13 +0000 (GMT) (envelope-from torstenvl@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9599743D45 for ; Mon, 4 Jul 2005 15:27:13 +0000 (GMT) (envelope-from torstenvl@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so745221wra for ; Mon, 04 Jul 2005 08:27:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cdPZYSuoLZHD6U12zrDFZCBo1mh4Sk1KUYnuh3/XfT55Zi+in/oZ8vSFbU+9W8upSBKrSrUfVuoYP6I5Lq026bQSl71HOZHOWg/F2xWXHydQBkxRwZ74SgdzZoUnGwomOHvyC8ePpcU3MPzTayRD4MUZ+RsA8lA2h8zzRuqGHB8= Received: by 10.54.53.25 with SMTP id b25mr3619939wra; Mon, 04 Jul 2005 08:27:12 -0700 (PDT) Received: by 10.54.11.4 with HTTP; Mon, 4 Jul 2005 08:27:09 -0700 (PDT) Message-ID: <126eac4805070408273c0de8ce@mail.gmail.com> Date: Mon, 4 Jul 2005 11:27:11 -0400 From: Josh Ockert To: Bryan Maynard In-Reply-To: <200507031500.35157.bryan.maynard@reallm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200507031500.35157.bryan.maynard@reallm.com> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.4 ndis support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Josh Ockert List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 15:27:14 -0000 On 7/3/05, Bryan Maynard wrote: > I've been having issues with ndis myself. However, I got some help and th= ings > are going good for me, except that i haven't gotten DHCP to work for the > card. . . >=20 > Anyway, there is a utility in 5.4 (I think that's that's where it showed = up) > called "ndisgen". Running ndisgen steps you through a wonderful little sc= ript > that asks for for the location of your INF and SYS files, generates you .= h > file and kernel module. >=20 > I was getting the same "No such file or directory" error until I ran ndis= gen. >=20 > Give it a try. :-D >=20 > Bryan >=20 > On Sunday 03 July 2005 10:10 am, Tobias Tom wrote: > Hello everyone, >=20 > I'm using FreeBSD for some years now. I've read the german Mailinglist > for nearly the same time. But I've got a Problem which no one can > reproduce, or no one know any solution. >=20 > I want to use my Level One wnc 0301 WLAN PCI Card in my FreeBSD box > with acts as a Router in my small Home Network. > I've found no drivers or buildin support for that Card. Google, and > the Manufactor told me that it is using the raltech rt2500 chip. I > found a page where someone builds a driver for FreeBSD CURRENT, but it > is not portable for the 5.x branch. >=20 > Someone told me that I could use the ndis Feature which occured in > FreeBSD 5.3. I'm not sure how happy I am with Windows Drivers on my > FreeBSD Box, but for now i don't see any alternative. >=20 > So I tried to get ndis Support up like it is described inside the > Manual, and inside the first commit Message of the Files. Building > seems to work really fine. I've created the ndis_driver_data.h from my > driver INF and Driver SYS. Ran make && make install and everything was > finished without any error. >=20 > Then I tried to load the ndis support with "kldload ndis". It results > into the following Error Message: "kldload: can't load ndis: No such > file or directory" So I looked it the file is really not existing. But > it exists, ls output is: > "-rwxr-xr-x 1 root wheel 91686 Jul 3 15:37 > /usr/src/sys/modules/ndis/ndis.ko" > So I looked into dmesg and saw the following Error: >=20 > link_elf: symbol VOP_GETATTR_APV undefined > KLD if_ndis.ko: depends on ndisapi - not available >=20 > After I could not get something usefull out for me (others might be > more successfull ;o) I looked again into the man page of ndis. Under > Synopsis the following lines are written down: > options NDISAPI > device ndis > device wlan >=20 > So I though when i cannot build ndis as module, or maybe the ndisapi > come directly from the kernel, i could build my custom kernel with > these options. It stoped with these Lines: >=20 > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -std=3Dc99 -nostdinc -I- -I. > -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm > -I/usr/src/sys/dev/twa -D_KERNEL -include opt_global.h -fno-common > -finline-limit=3D8000 --param inline-unit-growth=3D100 --param > large-function-growth=3D1000 -mno-align-long-strings > -mpreferred-stack-boundary=3D2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Werror /usr/src/sys/compat/ndis/subr_ntoskrnl.c > /usr/src/sys/compat/ndis/subr_ntoskrnl.c: In function `KeRemoveQueueDpc'= : > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3115: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3115: error: request for > member `mtx_lock' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3115: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3115: error: request for > member `mtx_recurse' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3115: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3115: error: request for > member `mtx_lock' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3117: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3117: error: request for > member `mtx_recurse' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3117: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3117: error: request for > member `mtx_recurse' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3117: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3117: error: request for > member `mtx_lock' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3123: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3123: error: request for > member `mtx_recurse' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3123: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3123: error: request for > member `mtx_recurse' in something not a structure or union > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3123: warning: dereferencing > `void *' pointer > /usr/src/sys/compat/ndis/subr_ntoskrnl.c:3123: error: request for > member `mtx_lock' in something not a structure or union > *** Error code 1 > Stop in /usr/obj/usr/src/sys/GATE. > *** Error code 1 > Stop in /usr/src. > *** Error code 1 > Stop in /usr/src. >=20 > Building my custom Kernel without the three Lines worked wonderfull. > So I have really no Idea what I can do next. Maybe here's someone how > knows any step i missed, or which Problem can couse the Error. > It is not very Importent for me it the ndis support runs in he kernel > or as module... main issue is to get this damm card to work ;o) >=20 > Maybe this might be usefull, too. Just did a cvsup for about 10 > Minutes and got the same error. The only part which I added to my > custom kernel config is the IPFW Part. >=20 > Just some short words about FreeBSD Current. I've booted with the june > snapshot and the card was detechted fine. >=20 > Please don't let my stay in the rain with this Problem. ;o) >=20 > Regards >=20 > Tobias > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" >=20 >=20 > -- > Open Source: by the people, for the people. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >=20 Note: I've never done NDIS before as I have a Cisco PCM-352 which is supported under FreeBSD. However, I'll offer my thoughts in case they help: a) I'm not so sure building anything into the kernel would help as opposed to it being a module. I generally wait til I've tested the module and found that it works well before I compile it into the kernel, and only then for speed purposes. b) If you have a MODULES_OVERRIDE in your kernel config, it won't build/install any modules you don't list there. Try commenting out MODULES_OVERRIDE in your kernel config if it's there and rebuild your kernel. If that works, problem solved. --=20 Josh Ockert WMU Student: French Linguistics, Computer Science -- The irony in biblical creationists' rhetoric of implicitly claiming that God's universe is so chaotic that carbon decays at erratic rates is too delicious to ignore.