From owner-freebsd-current@FreeBSD.ORG Fri Aug 13 01:12:52 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 1FCB116A4CE for ; Fri, 13 Aug 2004 01:12:52 +0000 (GMT) Received: from hotmail.com (bay8-f27.bay8.hotmail.com [64.4.27.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFEF943D1D for ; Fri, 13 Aug 2004 01:12:51 +0000 (GMT) (envelope-from evantd@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 12 Aug 2004 18:12:51 -0700 Received: from 67.171.32.75 by by8fd.bay8.hotmail.msn.com with HTTP; Fri, 13 Aug 2004 01:12:51 GMT X-Originating-IP: [67.171.32.75] X-Originating-Email: [evantd@hotmail.com] X-Sender: evantd@hotmail.com From: "Evan Dower" To: db@nipsi.de Date: Thu, 12 Aug 2004 18:12:51 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 13 Aug 2004 01:12:51.0833 (UTC) FILETIME=[A7B48690:01C480D2] cc: freebsd-current@freebsd.org Subject: Re: Project Evil: TI ACX111 non-success 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: Fri, 13 Aug 2004 01:12:52 -0000 I'm happy to work on this, but I start from zero code familiarity, and I've received no response from Bill Paul. I assume he's probably busy with Real Life. I've never messed with the kernel this deeply (though I have added a syscall to linux, and done a few other ugrad OS course-related exercises). If someone could point me toward some good starting documentation for this endeavor (an overview of what the ndis code is doing would be very helpful), I would really appreciate it. I can work on it in my free time and submit patches. Sadly I have only one computer (which I use daily), which might make debugging difficult. Anyway, I'll give you all a patch if somebody gives me a few pointers. Thanks very much, -- Evan Dower Undergraduate, Computer Science University of Washington Public key: http://students.washington.edu/evantd/pgp-pub-key.txt Key fingerprint = D321 FA24 4BDA F82D 53A9 5B27 7D15 5A4F 033F 887D >From: Dennis Berger >To: Evan Dower >CC: db@nipsi.de, freebsd-current@freebsd.org >Subject: Re: Project Evil: TI ACX111 non-success >Date: Thu, 12 Aug 2004 20:23:01 +0200 > >I guess I tried everything possible... >acx driver failed cause it's simply not supported "acx111". >ndis driver failed also with 3 different firmware types... > >-------------- >cardbus1: Expecting link target, got 0xcb >cardbus1: Resource not specified in CIS: id=10, size=2000 >cardbus1: Resource not specified in CIS: id=14, size=20000 >ndis0: mem >0x88000000-0x8 >801ffff,0x88020000-0x88021fff irq 11 at device 0.0 on cardbus1 >ndis0: [GIANT-LOCKED] >ndis0: NDIS API version: 5.1 >ndis0: init handler failed >device_attach: ndis0 attach returned 6 >cardbus1: release_all_resource: Resource still owned by child, oops. >(type=3, ri >d=20, addr=88000000) >cbb1: CardBus card activation failed >------------- > >best regards, >-Dennis > >On Thu, Aug 12, 2004 at 10:00:58AM -0700, Evan Dower wrote: > > With ndis do you get the same "init handler failed" error message? Have >you > > emailed Bill Paul with all the appropriate info? What have you tried? >What > > were the results? > > > > -- > > Evan Dower > > Undergraduate, Computer Science > > University of Washington > > Public key: http://students.washington.edu/evantd/pgp-pub-key.txt > > Key fingerprint = D321 FA24 4BDA F82D 53A9 5B27 7D15 5A4F 033F 887D > > > > > > > > > > > > >From: Dennis Berger > > >To: Evan Dower > > >CC: freebsd-current@freebsd.org > > >Subject: Re: Project Evil: TI ACX111 non-success > > >Date: Thu, 12 Aug 2004 09:56:15 +0200 > > > > > >I have the dlink g650+ which also has the acx111 chipset... > > >NDIS failed acx driver failed also. > > >regards, > > >-Dennis > > > > > >On Wed, Aug 11, 2004 at 04:40:58PM -0700, Evan Dower wrote: > > >> I've been trying to get the ndisulator to work for my NetGear WG311v2 >so > > >I > > >> can take the ethernet cables and switches offthe floor in my hall. >The > > >> following is the "conversation" I've had with Bill Paul. It is >perhaps > > >best > > >> to read from the bottom up to get the chronology right. Also, as it > > >turns > > >> out the net/acx100 port makes no claim to support the acx111, and I >was > > >> eventually able to build and load it, though of course it didn't work > > >> because it doesn't support the acx111. Any help would be greatly > > >> appreciated. > > >> > > >> -- > > >> > > >> I managed to get rid of the "can't re-use a leaf" messaged by >deleting > > >> the duplicate entry in ndis_driver_data.h. For some reason, whenever >I > > >> try to load if_ndis.ko (ndis.ko is already loaded), I get messages >about > > >> amdpm. Perhaps ndis returning 6 and failing to load is a result of >the > > >> same return value from trying to attach amdpm. > > >> > > >> amdpm0: port > > >> 0xe4e0-0xe4ff at device 7.3 on pci0 > > >> amdpm0: could not map i/o space > > >> device_attach: amdpm0 attach returned 6 > > >> ndis0: mem > > >> 0xf0800000-0xf081ffff,0xf1000000-0xf1001fff irq 17 at device 6.0 on >pci2 > > >> ndis0: [GIANT-LOCKED] > > >> no match for srand > > >> ndis0: NDIS API version: 5.1 > > >> ndis0: init handler failed > > >> device_attach: ndis0 attach returned 6 > > >> > > >> Thanks again, > > >> Evan Dower > > >> > > >> El mar, 20-07-2004 a las 10:58, Evan Dower escribi?: > > >> >I have figured out that the "can't re-use a leaf" message is coming > > >from > > >> >trying to register a sysctl, which comes from the .inf file. This >seems > > >> >to indicate some limitations on the complexity of .inf files that >can > > >be > > >> >properly parsed and turned into a list of sysctls. Since I'm not > > >exactly > > >> >sure what those limitations are, I'm sending you a link to the .inf > > >file > > >> >(and the .sys file for good measure)? Other than that, it looks like > > >> >srand might just need to be plugged into one of the function tables > > >> >(probably the hal table, I guess). Also, if you can tell me what > > >> >limitations exist for the .inf file, I will gladly modify it to work > > >and > > >> >make it available to other WG311v2 owners. > > >> >Thanks again, > > >> >Evan Dower > > >> >Note: Much of the .inf file (anything not for XP) is commented out >in > > >an > > >> >attempt to make things work. This was my doing. It didn't ship that > > >way. > > >> >Since I don't really understand the Windows registry, I didn't get >too > > >> >adventurous. > > >> > > > >> >Files at: http://students.washington.edu/evantd/pub/evil/ > > >> > > > >> >El lun, 12-07-2004 a las 16:05, Evan Dower escribi?: > > >> >> I have a Netgear WG311v2. The v2 turns out to be very important as > > >the > > >> >> original (v1 you might call it now) was based on an Atheros AR5212 > > >and > > >> >> was thus supported by the ath driver. v2 is based on the the TI > > >AXC111 > > >> >> (aka TNETW1130), which should be supported by the net/acx100 port, > > >but > > >> >> if_acx.ko fails to load due to a missing __panic symbol. Following > > >the > > >> >> instructions you posted in an email, I made ndis_driver_data.h and > > >> >> built and loaded the if_ndis.ko module (after loading ndis.ko or > > >> >> compiling it into the kernel). I used the Windows XP .SYS and .INF > > >> >> files, though the Windows 2000 versions gave the same result, the > > >> >> Windows 98 files produced a module that panicked on load, and I > > >didn't > > >> >> try the Windows ME files. The following is the output from `make > > >> >> load`. > > >> >> > /sbin/kldload -v /usr/current/src/sys/modules/if_ndis/if_ndis.ko > > >> >> ndis0: mem > > >> >> 0xec800000-0xec81ffff, > > >> >> 0xed000000-0xed001fff irq 17 at device 6.0 on pci2 > > >> >> ndis0: [GIANT-LOCKED] > > >> >> can't re-use a leaf (dot11DesiredBSSType)! > > >> >> no match for srand > > >> >> ndis0: NDIS API version: 5.1 > > >> >> ndis0: init handler failed > > >> >> device_attach: ndis0 attach returned 6 > > >> >> Loaded /usr/current/src/sys/modules/if_ndis/if_ndis.ko, id=11 > > >> >> > Loading the module does not create /dev/ndis0 or /dev/if_ndis0 >(or > > >> >> anything of the sort). I am running today's -CURRENT. > > >> >> > It seems that it requires srand, and I assume the 'can't re-use >a > > >leaf > > >> >> (dot11DesiredBSSType)!' is also a show-stopper. I ordered my card > > >from > > >> >> newegg.com for about $50. > > >> >> > If there is anything else you might be interested in (a verbose > > >boot > > >> >> log, copies of the .SYS and .INF files, testing for patches, >etc.), > > >> >> just let me know. I'd be happy to help (especially since the >result > > >is > > >> >> a working wireless connection). > > >> >> > Thanks very much, > > >> > > >> -- > > >> Evan Dower > > >> Undergraduate, Computer Science > > >> University of Washington > > >> Public key: http://students.washington.edu/evantd/pgp-pub-key.txt > > >> Key fingerprint = D321 FA24 4BDA F82D 53A9 5B27 7D15 5A4F 033F 887D > > >> > > >> _________________________________________________________________ > > >> Don?t just search. Find. Check out the new MSN Search! > > >> http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > >> > > >> _______________________________________________ > > >> freebsd-current@freebsd.org mailing list > > >> http://lists.freebsd.org/mailman/listinfo/freebsd-current > > >> To unsubscribe, send any mail to > > >"freebsd-current-unsubscribe@freebsd.org" > > > > _________________________________________________________________ > > On the road to retirement? Check out MSN Life Events for advice on how >to > > get there! http://lifeevents.msn.com/category.aspx?cid=Retirement > > _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/