From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 28 20:33:24 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C80461065670 for ; Wed, 28 Mar 2012 20:33:24 +0000 (UTC) (envelope-from bfalk_bsd@brandonfa.lk) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 765CD8FC0A for ; Wed, 28 Mar 2012 20:33:24 +0000 (UTC) Received: by obbuo13 with SMTP id uo13so2367970obb.13 for ; Wed, 28 Mar 2012 13:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brandonfa.lk; s=google; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Nq2k3SNSLLnkQsQBXj7j2t80LT+b2DAHGFAwig4E6Ac=; b=W+S2qAPxCZ9OZcH+z9SqzpRyMMqgVeJ8dBqHxB2vhtTcQHCSZYQ/JldYesZjR/BDF7 dbWr8kQ1dntcTc3BMIhMVM5/Jf8tTqvy2uTd1aQB9pHhjDocIPOQ4pHLKoi3DAI/QsB2 uGy4bKOj56yIo89kFMcCuAAsNTTyIXQbZpht4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=Nq2k3SNSLLnkQsQBXj7j2t80LT+b2DAHGFAwig4E6Ac=; b=Q7ZcdA/uVHb8FVODUvRRn0wIMzRmPOSWugkk3KBB8MAHx7pDSr9Pj5/9UrCK+4lec2 3Lr6t50ZpsY0ibHrWnjGgc+06jJxnynv8xnfdwP9/SstJPfqQLsjzgbqBwNb2m8Jw0SK jqe7N7MsKgbZCVx/6M5PvkXzE0kLLfcSySH+uUmGKBXTuNkBPBOI4MPL4JeGwTd/Cf40 ITU7GgwWPExd6+SKmCK4rizVYYaRz4Ymb9fCB9L7r68EwVOV73C00tKgz/hTyWP7DSSO wRm2NupHWSNxbE+lAPiaqn8Q58NDe3SPM3o/ysslNrgLymzhftV5Pzl/fdZsP2T/+sya jJVQ== Received: by 10.182.31.102 with SMTP id z6mr40128824obh.78.1332966803658; Wed, 28 Mar 2012 13:33:23 -0700 (PDT) Received: from [192.168.42.145] (wsip-184-183-177-134.dc.dc.cox.net. [184.183.177.134]) by mx.google.com with ESMTPS id aj16sm3239269oec.4.2012.03.28.13.33.22 (version=SSLv3 cipher=OTHER); Wed, 28 Mar 2012 13:33:23 -0700 (PDT) Message-ID: <4F73758D.3040000@brandonfa.lk> Date: Wed, 28 Mar 2012 16:33:17 -0400 From: Brandon Falk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: "Chris.H" References: <942975b7-aa54-416d-b049-a50563bbf2a7@email.android.com> In-Reply-To: <942975b7-aa54-416d-b049-a50563bbf2a7@email.android.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQkeRAxyAQR669RwSgmd+pr32cJMfGUsMAuRYQL3vNr01nE2NtNqMr7m7h/LyLoK28igmsSO Cc: freebsd-hackers@freebsd.org Subject: Re: Reverse engineering; How to... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2012 20:33:25 -0000 Reverse engineering a whole driver could take a very long time, even with the proper tools. If it's possible, return the adapter, and buy a new one and verify that the chipset is supported before you buy it. Last time I bought a wireless card I sat in the store looking at the Wireless support list for BSD before buying. http://www.freebsd.org/relnotes/CURRENT/hardware/support.html#WLAN I very strongly suggest that you get a card with an Atheros chipset, as those are by far the best supported on BSD. -Brandon On 3/28/2012 4:22 PM, Chris.H wrote: > Greetings, > Over the past year, in an effort to convert my server farm to wireless, I've purchased some half a dozen USB wireless dongles, at a total cost of ~150.00. Unfortunately, none of them are (yet) supported — I know, I know, I've already had this debate with both dev's, & users. On the up-side, I've devised a resource that will greatly assist would-be adopters in selecting, and researching these, and other adapters _currently supported_ under under FreeBSD. That said; the adapter I most recently purchased, is quite nice (Cisco(Linksys) AE2500 Wireless-N). > Boasts 2.5/5GHz @300Mbps. I figured (wrongly) because Linksys is so well supported on FreeBSD, that the likelihood of this being supported would be good. At any rate, given it's not, and because I _do_ have the Window$ drivers on the install CD. What are the possibilities I can reverse-engineer the drivers into a FreeBSD loadable module? > I can unpack the setup file to extract the .sys files. While I _could_ utilize the ndisulator to load them, that's not my goal. Should I unpack the .sys file, and attempt to decompile/disassemble it? Or attempt to load it, and dump it from memory? > — hacker/cracker advice _strongly_ desired — > > ############## > #usbconfig -d ugen1.2 dump_device_desc > ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x00ff > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x13b1 > idProduct = 0x003a > bcdDevice = 0x0001 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <000000000001> > bNumConfigurations = 0x0001 > ############## > > P.S. This message was sent from my "smart phone". > Apologies for any (mis)formatting. :-( > > --Chris.H >