From owner-freebsd-current@FreeBSD.ORG Mon Nov 27 16:21:19 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A325216A55F for ; Mon, 27 Nov 2006 16:21:19 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id B88CF43D88 for ; Mon, 27 Nov 2006 16:20:02 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1088659uge for ; Mon, 27 Nov 2006 08:21:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kDGnR/hwFj76m6QoUBV5Eagy8yw7DIrBwgf0jVBSXSqTxMGLnbVIjlqJZOTebSIKQxMr4JK3IAYIQCyb22cdgHglru9yR4EdmxJTtnS3wEPzSp664EBoZta27i9/x9jlXlsuwGBM8CXl0vDIXusetABRsxQqXDaaGmnuNFeiM3s= Received: by 10.66.240.12 with SMTP id n12mr21160481ugh.1164644462285; Mon, 27 Nov 2006 08:21:02 -0800 (PST) Received: by 10.67.86.8 with HTTP; Mon, 27 Nov 2006 08:21:02 -0800 (PST) Message-ID: <790a9fff0611270821k24618e6bn2d68d597fa5528f3@mail.gmail.com> Date: Mon, 27 Nov 2006 10:21:02 -0600 From: "Scot Hetzel" To: "Nathan Vidican" In-Reply-To: <456AECB8.8010003@wmptl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0611251051md2ef50cja84440ba3cc7942f@mail.gmail.com> <4568DB59.7070407@gmail.com> <45692360.3080602@gmail.com> <456AECB8.8010003@wmptl.com> Cc: freebsd-current@freebsd.org Subject: Re: Latest Broadcom NDIS driver requires 4 additional functions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 27 Nov 2006 16:21:19 -0000 On 11/27/06, Nathan Vidican wrote: > May be a dumb question... but I have the same laptop (HP Pavilion > dv8000, 6.2-RC1/amd64) and have been unable to get it working nor debug > myself... how/where did you upgrade the freebsd/ndis driver from; > where/which windows driver files did you use? Are the ndis driver > patches mentioned in this thread committed to CVS, or must it (the > patch) be manually applied to the tree and the kernel re-compiled? > I downloaded the latest Windows NDIS driver directly from HP. mkdir broadcom cd broadcom fetch ftp://ftp.hp.com/pub/softpaq/sp33001-33500/sp33008.exe cabextract -q -L -F 'bcmwl5*' sp33008.exe ndisgen bcmwl5.inf bcmwl564.sys kldload ./bcmwl564_sys.ko Now if you load this driver on a system with an unpatched ndis.ko module, it WILL crash your kernel. This patch hasn't been committed to CVS yet, as I had two functions that I was trying to get working: MmGetPhysicalAddress - fixed, if you use the original patch, just add IMPORT_SFUNC_MAP(MmGetPhysicalAddress, pmap_kextract, 1) to ntoskrnl.c, and remove everything in the #ifdef MMGETPHYSICALADDRESS .. #endif. memchr - implemented but causes "cast discards qualifiers from pointer target type" (copied from lib/libc/string/memchr.c). Currently it is #ifdef MEMCHR .. #endif in the patch so it doesn't interfer in building the ndis.ko module. You'll need to apply the patch from my original message to the list, and make the above change for MmGetPhysicalAddress. Then you only need to recompile the ndis.ko kernel module. cd sys/modules/ndis make obj make make install Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.