Date: Mon, 3 Dec 2007 13:13:42 +0100 From: Ed Schouten <ed@fxq.nl> To: FreeBSD Current <freebsd-current@freebsd.org> Cc: Bill Paul <wpaul@freebsd.org> Subject: ndis(4): BCM4328 driver from Apple - dies in pe_translate_addr Message-ID: <20071203121342.GH72574@hoeg.nl>
next in thread | raw e-mail | index | archive | help
--/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 <ed@fxq.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071203121342.GH72574>