From owner-freebsd-current@FreeBSD.ORG Mon Nov 8 11:29:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76FB216A4CE for ; Mon, 8 Nov 2004 11:29:36 +0000 (GMT) Received: from amsfep18-int.chello.nl (amsfep18-int.chello.nl [213.46.243.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1871E43D45 for ; Mon, 8 Nov 2004 11:29:35 +0000 (GMT) (envelope-from bderksvdven@pieterbas.nl) Received: from supporter.pba ([212.187.29.10]) by amsfep18-int.chello.nl (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP id <20041108112933.OPUK7692.amsfep18-int.chello.nl@supporter.pba> for ; Mon, 8 Nov 2004 12:29:33 +0100 Received: from [127.0.0.1] (ws009.pba [192.168.0.56]) by supporter.pba (8.12.11/8.12.11) with ESMTP id iA8BIrsh009828 for ; Mon, 8 Nov 2004 12:18:55 +0100 (CET) (envelope-from bderksvdven@pieterbas.nl) Message-ID: <418F551F.4070507@pieterbas.nl> Date: Mon, 08 Nov 2004 12:14:39 +0100 From: bart User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on supporter X-Virus-Status: Clean X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.28.0.12; VDF 6.28.0.60 Subject: compiling ndis into kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 11:29:36 -0000 Hi, After successfully using the ndis modules with my Belkin f5d7000 PCI wireless card, I decided to build support for it into the kernel. I have ipfilter rules referring to my ndis0 interface so it's better to have the interface available at boot time :) Building the kernel, I ran into a compile error that I worked around by commenting out some code. Maybe someone can supply me with a more 'appropiate' fix ;) in the kernel config: options NDISAPI device ndis cd /sys/i386/compile/GATEKEEPER make linking kernel if_ndis.o(.text+0x522): In function `ndis_attach': : undefined reference to `ndis_alloc_amem' if_ndis.o(.text+0x103f): In function `ndis_detach': : undefined reference to `ndis_free_amem' *** Error code 1 I commented out this piece in /sys/dev/if_ndis/if_ndis.c starting line 393 /* if (sc->ndis_iftype == PCMCIABus) { error = ndis_alloc_amem(sc); if (error) { device_printf(dev, "failed to allocate " "attribute memory\n"); goto fail; } } */ and line 756: /* if (sc->ndis_iftype == PCMCIABus) ndis_free_amem(sc); */ I probably can go without this because I don't have a PCMCIA card :) Anyway, ndis0 is now built in, and works like a charm! Grtz, Bart