From owner-freebsd-current@FreeBSD.ORG Mon Dec 3 12:13:44 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D05F16A41A; Mon, 3 Dec 2007 12:13:44 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id C015D13C4CE; Mon, 3 Dec 2007 12:13:43 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C17081CD11; Mon, 3 Dec 2007 13:13:42 +0100 (CET) Date: Mon, 3 Dec 2007 13:13:42 +0100 From: Ed Schouten To: FreeBSD Current Message-ID: <20071203121342.GH72574@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/SgVJVxFudH2R+XP" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Bill Paul Subject: ndis(4): BCM4328 driver from Apple - dies in pe_translate_addr 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, 03 Dec 2007 12:13:44 -0000 --/SgVJVxFudH2R+XP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everyone, Because FreeBSD does not (yet) support the BCM4328 Wifi card, I want to use ndis(4) to use this wireless NIC. I extracted the BroadcomInstaller.exe from the Apple Leopard install disk, which gave me a .inf and .sys. I had to patch the .inf slightly, because the IBSSMode switch missed a default value, which caused ndiscvt to spit out a faultly line in the array declaration. When I load the .ko file, nothing happens. Nothing is shown in my dmesg. I added a lot of printf's to the source and it seems it goes wrong like this: windrv_load() pe_patch_imports(img, "NDIS", ndis_functbl) pe_get_import_descriptor(imgbase, &imp_desc, module) pe_directory_offset(imgbase, IMAGE_DIRECTORY_ENTRY_IMPORT); pe_translate_addr(imgbase, dir) pe_translate_addr() returns 0, because (i > sections). I'm a real newbie when it comes to binary formats, but is there someone who knows more about this? --=20 Ed Schouten WWW: http://g-rave.nl/ --/SgVJVxFudH2R+XP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHU/L252SDGA2eCwURAqyCAJ46djjXf2J2TdymbLHFUNZHi4cUFgCfdyjM hCaRfAy+Mdc2etQDFOLyQOs= =ZiEo -----END PGP SIGNATURE----- --/SgVJVxFudH2R+XP--