From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 13:29:06 2005 Return-Path: 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 2516F16A4CE for ; Wed, 23 Mar 2005 13:29:06 +0000 (GMT) Received: from sensormatic.co.za (panther.wtec.co.za [69.67.33.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 413CB43D3F for ; Wed, 23 Mar 2005 13:29:04 +0000 (GMT) (envelope-from lourik@wtec.co.za) Received: from solar.poq.co.za ([192.168.3.2]) (AUTH: LOGIN lourik@wtec.co.za, TLS: TLSv1/SSLv3,128bits,RC4-MD5) by sensormatic.co.za with esmtp; Wed, 23 Mar 2005 15:28:53 +0200 From: Lourik Malan Organization: Woodlands Technologies Pty(LTD To: freebsd-questions@freebsd.org Date: Wed, 23 Mar 2005 15:28:44 +0200 User-Agent: KMail/1.7.2 References: <200503231509.19969.lourik@wtec.co.za> <42416C54.5010303@gmx.de> In-Reply-To: <42416C54.5010303@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503231528.44589.lourik@wtec.co.za> Subject: Re: Wireless Network NDIS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: lourik@wtec.co.za List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 13:29:06 -0000 hi There i've got the following files from the winxp folder Fw1130.bin FwRad16.bin FwRad17.bin TNET1130.INF radio16.bin radio17.bin tnet1130.cat tnet1130.sys i copied all of them to the correct folder /usr/src/sys/modules/if_ndis root solar:/usr/src/sys/modules/if_ndis# ndiscvt -i TNET1130.INF -s tnet1130.sys -f Fw1130.bin FwRad16.bin FwRad17.bin radio16.bin radio17.bin -o ndis_driver_data.h objcopy -I binary -O elf32-i386-freebsd -B i386 Fw1130.bin Fw1130.bin.o objcopy --redefine-sym _binary_Fw1130_bin_start=fw1130_bin_start --strip-symbol _binary_Fw1130_bin_size --redefine-sym _binary_Fw1130_bin_end=fw1130_bin_end Fw1130.bin.o Fw1130.bin.o ld -Bshareable -d -warn-common -o Fw1130.bin.ko Fw1130.bin.o root solar:/usr/src/sys/modules/if_ndis#make && make install # kldload ndis # kldload if_ndis this all works fine, but i can't compile it in permenantly and the wireless pcmcia card is not working Any help will be greatly appeciated On Wednesday 23 March 2005 15:17, Phil Schulz wrote: > On 03/23/05 14:09, Lourik Malan wrote: > > HI there > > > > I get the following when i try an compile the following into the kernel. > > > > options NDISAPI > > device ndis > > device wlan > > > > /usr/src/sys/dev/if_ndis/if_ndis.c:85:30: ndis_driver_data.h: No such > > file or directory > > /usr/src/sys/dev/if_ndis/if_ndis_pccard.c:66:30: ndis_driver_data.h: No > > such file or directory > > /usr/src/sys/dev/if_ndis/if_ndis_pci.c:65:30: ndis_driver_data.h: No such > > file or directory > > mkdep: compile failed > > *** Error code 1 > > > > > >From ndis(4): > > "To build a functional driver, the user must have a copy of the driver > distribution media for his or her card. From this distribution, the > user must extract two files: the .SYS file containing the driver binary > code, and its companion .INF file, which contains the definitions for > driver-specific registry keys and other installation data such as device > identifiers. These two files can be converted into a ndis_driver_data.h > file using the ndiscvt(8) utility. This file contains a binary image of > the driver plus registry key data. When the ndis driver loads, it will > create sysctl(3) nodes for each registry key extracted from the .INF file." > > So, in short: You'll need to run the supplied Windows driver through > ndiscvt(8) before you can build the ndis module. > > Regards, > > Phil. > _______________________________________________ > 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" -- Lourik Malan Woodlands Technologies