From owner-freebsd-drivers@FreeBSD.ORG Sat Jan 20 19:03:42 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BC5916A400 for ; Sat, 20 Jan 2007 19:03:42 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 0742013C469 for ; Sat, 20 Jan 2007 19:03:41 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so669693uge for ; Sat, 20 Jan 2007 11:03:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cHSHLut6/q3MzmCUW5TuO5+wFogVSAOZID33zQp0m/KxfHnB59LmH1K4V8et/aylb4EbCwa3Z9u0DzlEPF1GZOsII1o/ztEH8Dne+JRGxUfADyWrlF2piZyPDgBsy/LEQm3oMn3dte2F8H68L5g6lgaiJ7PzfcbxIk3qmP8CxXk= Received: by 10.67.99.1 with SMTP id b1mr5021283ugm.1169318326701; Sat, 20 Jan 2007 10:38:46 -0800 (PST) Received: by 10.66.255.10 with HTTP; Sat, 20 Jan 2007 10:38:46 -0800 (PST) Message-ID: <499c70c0701201038w6960174n3006ffd525f17bf6@mail.gmail.com> Date: Sat, 20 Jan 2007 18:38:46 +0000 From: "Abdullah Al-Marrie" To: "Benjamin Close" In-Reply-To: <45A0F739.3030202@clearchain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <459E6477.2010508@clearchain.com> <200701051634.00293.max@love2party.net> <459E75A5.7000309@FreeBSD.org> <200701051732.27176.max@love2party.net> <45A0F739.3030202@clearchain.com> X-Mailman-Approved-At: Sun, 21 Jan 2007 15:14:58 +0000 Cc: Massimo Lusetti , Florent Thoumie , freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, Attilio Rao , damien.bergamini@free.fr, sam@freebsd.org, gabor@freebsd.org, Max Laier Subject: Re: Updated Driver for 3945ABG Intel 3945ABG Wireless LAN controller X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 19:03:42 -0000 On 1/7/07, Benjamin Close wrote: > Massimo Lusetti wrote: > > On 1/5/07, Max Laier wrote: > >> Thoughts? Volunteers? > > I can say that the first attempt still running fine here on my laptop > > on a -STABLE as of yesterday. I use it on a daily basis without any > > glitch. I must say i don't do or tried to do nothing special or > > network intensive job, but for reading emails, doing a lot of ssh and > > http/https the drivers is working smoothly. > > > > I will try to compile this new one on my stable during the week end > > and will see on Monday how it will perform on my office wi-lan. > > > > For the records: my wpi doesn't still work on OpenBSD-current cause > > it's integrated and the switch used to turn it on seems an acpi one > > which OpenBSD doesn't attach very well yet. > Hi Folks, > I did the port as my searching led me to believe that progress on a > driver had stagnated. > Port 1: was done by Damien himself > (http://lists.freebsd.org/pipermail/freebsd-mobile/2006-July/008768.html) > Port 2: was an updated version by Daminen: > http://osdir.com/ml/freebsd-hackers@freebsd.org/msg58154.html > which seems to be duplicated here: > http://people.freebsd.org/~flz/local/wpi/ > (http://www.mail-archive.com/freebsd-net@freebsd.org/msg20710.html) > With version 2 being minor bug fixes to version 1 to try and get it > working. Since then the driver has come a long way in netbsd with the > FreeBSD version just getting older. > > To others working on a wpi driver, please post something indicating what > you've done and even a sample of what your up to so we can one build one > driver that just works. I also did the driver port as everything I found > failed to work on a 64bit kernel, most the time wouldn't even compile. > > I'm happy to try and maintain this driver. I have the hardware. > > The main bugs I know about in this driver port are: > > * The use of the iee80211_amrr code > The files exist in -current in /usr/src/sys/net80211 but the required > symbols are not in a GENERIC kernel build. There is a wlan_amrr module > which uses this code, though I'm not sure how to make use of this, it > appears a simple dependency on the module is not enough. The use of the > 80211_amrr code also means that use under -stable requires quite a bit > more work as Rink pointed out. > > * Bus resource allocation issues > Mainly related to: "bus_dmamem_alloc failed to align memory properly." > I'm hoping Mike > (http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026262.html) > might be able to help resolve these. > > These allocation issues are caused while allocating of the rx & tx ring > buffers - which if they are broken explain why things don't work. > I'm still coming to grips to how the whole bus_dma_tag_create works. The > Netbsd bus_dma_map_alloc seems much more intuitive. > I've found if the module failed the first time, unloading it, then > reloading it would often make the allocation issues disappear and the > driver just work. > Though I've also found sometimes that even though the allocation issues > are reported, things still work, I'm guessing the alignment is pulled > into line by higher levels of bus_dma. > > * ifconfig down causes timeouts reseting the tx ring > I'm still chasing the cause of this. It seems non critical as the driver > still works with an ifconfig up > > * Watch dog timer uses an obsolete interface > I'm looking into the correct way to do watchdog timing > > * A lock order reversal in wpi_intr > lock order reversal: > 1st 0xffffffff812d9e20 wpi0 (network driver) @ if_wpi.c:1554 > 2nd 0xffffff003cee32f0 radix node head (radix node head) @ net/route.c:147 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x3a > witness_checkorder() at witness_checkorder+0x4f9 > _mtx_lock_flags() at _mtx_lock_flags+0x75 > rtalloc1() at rtalloc1+0x7a > arplookup() at arplookup+0x5c > arpintr() at arpintr+0x255 > ether_demux() at ether_demux+0x2d3 > ether_input() at ether_input+0x1e9 > ieee80211_input() at ieee80211_input+0xd05 > wpi_intr() at wpi_intr+0x9d7 > ithread_loop() at ithread_loop+0xfe > fork_exit() at fork_exit+0xaa > fork_trampoline() at fork_trampoline+0xe > --- trap 0, rip = 0, rsp = 0xffffffffa0698d40, rbp = 0 --- > > For those wishing to help debug the driver and get it working, I've > posted a new version > http://www.clearchain.com/~benjsc/download/20070107-wpi-freebsd.tar.gz > > To help debug: > > kldload wpi_ucode > kldload if_wpi > wlandebug -i wpi0 0xffffff (I've included a copy of the -current > tool to save having to checkout the tree) > sysctl debug.wpi=10 (Debug levels are explained in if_wpi.c) > ifconfig wpi0 up > ... wait 30 seconds then... > ifconfig wpi0 down > > Then put /var/log/messages somewhere on the web & let me know > > This will dump lots of debug info to syslog but should help me work out > whats happening. If the driver works for you, stick to debug level 5 > max, else you'll be bombarded with logs. I'll try to install FBSD 32 > -current & -stable (32/64) on the laptop in the next week to see what > might be different. ANY feedback is helpful. > > Finally, for those who see "rx tail flags error xxx" this is caused by a > 802.11 frame with an invalid CRC. Hence seeing the occasional one (with > debug level 4 or higher) is quiet normal. If you see floods of them then > chances are the rx ring is really out of alignment and things will just > be busted. > > Cheers, > Benjamin Here it's FreeBSD DELL 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Jan 19 20:32:20 UTC 2007 Bdo@DELL:/usr/obj/usr/src/sys/BDO i386 DELL# tail /var/log/messages Jan 20 18:34:48 DELL kernel: rx intr: idx=63 len=128 stat len=89 rssi=61 rate=a chan=11 tstamp=134327399314interrupt reg 80000008 Jan 20 18:34:48 DELL kernel: rx notification qid=d5 idx=124 flags=0 type=157 len =244 Jan 20 18:34:48 DELL kernel: interrupt reg 80000008 Jan 20 18:34:48 DELL kernel: rx notification qid=d5 idx=125 flags=2 type=27 len= 128 Jan 20 18:34:48 DELL kernel: rx intr: idx=1 len=128 stat len=89 rssi=63 rate=a c han=11 tstamp=134327501715interrupt reg 80000008 Jan 20 18:34:48 DELL kernel: rx notification qid=d5 idx=126 flags=0 type=157 len =244 Jan 20 18:34:48 DELL kernel: sending data: qid=0 idx=118 len=2 nsegs=1 Jan 20 18:34:48 DELL kernel: wpi0: link state changed to DOWN Jan 20 18:34:48 DELL dhclient[263]: connection closed Jan 20 18:34:48 DELL dhclient[263]: exiting. Also in dmesg rx intr: idx=39 len=1232 stat len=1193 rssi=4 rate=5 chan=11 tstamp=134441615293rx tail flags error 702 interrupt reg 80000008 rx notification qid=84 idx=238 flags=2 type=27 len=128 rx intr: idx=40 len=128 stat len=89 rssi=63 rate=a chan=11 tstamp=134441677716interrupt reg 80000008 rx notification qid=84 idx=239 flags=0 type=157 len=244 interrupt reg 80000008 rx notification qid=85 idx=12 flags=0 type=157 len=244 interrupt reg 80000008 rx notification qid=85 idx=13 flags=2 type=27 len=128 rx intr: idx=7 len=128 stat len=89 rssi=63 rate=a chan=11 tstamp=134443213720interrupt reg 80000000 rx notification qid=85 idx=14 flags=0 type=157 len=244 interrupt reg 80000008 rx notification qid=85 idx=15 flags=2 type=27 len=128 rx intr: idx=9 len=128 stat len=89 rssi=62 rate=a chan=11 tstamp=134443316118interrupt reg 80000008 rx notification qid=85 idx=16 flags=0 type=157 len=244 interrupt reg 80000008 rx notification qid=85 idx=17 flags=2 type=27 len=128 rx intr: idx=11 len=128 stat len=89 rssi=63 rate=a chan=11 tstamp=134443418515interrupt reg 80000008 rx notification qid=85 idx=18 flags=0 type=157 len=244 interrupt reg 80000008 rx notification qid=85 idx=19 flags=2 type=27 len=128 rx intr: idx=13 len=128 stat len=89 rssi=62 rate=a chan=11 tstamp=134443520918interrupt reg 80000000 rx notification qid=85 idx=20 flags=0 type=157 len=244 -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-drivers@FreeBSD.ORG Sun Jan 21 18:49:15 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6347116A401 for ; Sun, 21 Jan 2007 18:49:15 +0000 (UTC) (envelope-from applecom@inbox.ru) Received: from mx28.mail.ru (mx28.mail.ru [194.67.23.67]) by mx1.freebsd.org (Postfix) with ESMTP id 21E7713C45A for ; Sun, 21 Jan 2007 18:49:15 +0000 (UTC) (envelope-from applecom@inbox.ru) Received: from mx33.mail.ru (mx33.mail.ru [194.67.23.194]) by mx28.mail.ru (mPOP.Fallback_MX) with ESMTP id 106A53C9A8D for ; Sun, 21 Jan 2007 21:27:08 +0300 (MSK) Received: from [85.115.165.63] (port=51198 helo=xml.opera.com) by mx33.mail.ru with asmtp id 1H8hPG-0002iX-00 for freebsd-drivers@freebsd.org; Sun, 21 Jan 2007 21:27:06 +0300 To: freebsd-drivers@freebsd.org From: applecom@inbox.ru Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Date: Sun, 21 Jan 2007 23:27:07 +0500 Message-ID: User-Agent: Opera Mail/9.10 (FreeBSD) Subject: via drm in X.org? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 18:49:15 -0000 It seems X.org 6.9.0 sources contain drm drivers for FreeBSD kernel among other: X11R6.9.0-src1.tar.gz - xc/extras/drm/bsd-core, including via. But via drm isn't included in FreeBSD. If X.org 6.9.0 really contains via drm for FreeBSD why it's not included in FreeBSD? Correct me If I'm greatly mistaking. From owner-freebsd-drivers@FreeBSD.ORG Tue Jan 23 21:44:49 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAED616A402 for ; Tue, 23 Jan 2007 21:44:49 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 48E8613C4BF for ; Tue, 23 Jan 2007 21:44:49 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so379745nfc for ; Tue, 23 Jan 2007 13:44:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=gE3WplWOp9GQJfanJ905S0XRisJr2npY6/whsCZyUg9RDaVXI5wAuYodqBnDDoaH36V1Pg4K8o9c8mVOnpyK76yGaOPsOLROxTaBgrSFMDMZFV6jREmJ83zlXnmWpXOM6etxgvY9npOrL0epXB110SF/RQuJ+olkK3npy8cNWzo= Received: by 10.49.41.3 with SMTP id t3mr1765861nfj.1169586956144; Tue, 23 Jan 2007 13:15:56 -0800 (PST) Received: by 10.48.223.19 with HTTP; Tue, 23 Jan 2007 13:15:55 -0800 (PST) Message-ID: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> Date: Tue, 23 Jan 2007 16:15:56 -0500 From: "Ali Mashtizadeh" To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Help with Driver for ATI Remote Wonder X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 21:44:49 -0000 Hi Everyone, I seem to have a small problem. I get this warning: WARNING: Device driver "atims0" has wrong version and is disabled. Recompile KLD module. WARNING: Device driver "atikbd0" has wrong version and is disabled. Recompile KLD module. I was wondering what that is from. I am having trouble making this driver create two nodes in the /dev directory with different names and cdev structures. I need this since I'm trying to write a driver for ATI remote control that needs to export both a keyboard and mouse interface. Unless I'm doing something wrong or there is a better way? Ali Mashtizadeh P.S. If anyone is interested in this driver and wants to help me test it email me. I'm still a few days away from finish it its my first USB driver :-). It should work with any remote wonder controller (Possibly other X10 hardware). From owner-freebsd-drivers@FreeBSD.ORG Tue Jan 23 22:06:39 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0152B16A400 for ; Tue, 23 Jan 2007 22:06:39 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B633C13C4B9 for ; Tue, 23 Jan 2007 22:06:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l0NM3pP2098078; Tue, 23 Jan 2007 15:03:51 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 23 Jan 2007 15:04:18 -0700 (MST) Message-Id: <20070123.150418.232915461.imp@bsdimp.com> To: mashtizadeh@gmail.com From: "M. Warner Losh" In-Reply-To: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> References: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 23 Jan 2007 15:03:51 -0700 (MST) Cc: freebsd-drivers@freebsd.org Subject: Re: Help with Driver for ATI Remote Wonder X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 22:06:39 -0000 In message: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> "Ali Mashtizadeh" writes: : Hi Everyone, : : I seem to have a small problem. I get this warning: : WARNING: Device driver "atims0" has wrong version and is disabled. Recompile : KLD module. : WARNING: Device driver "atikbd0" has wrong version and is disabled. : Recompile KLD module. : : I was wondering what that is from. I am having trouble making this driver : create two nodes in the /dev directory with different names and cdev : structures. I need this since I'm trying to write a driver for ATI remote : control that needs to export both a keyboard and mouse interface. Unless I'm : doing something wrong or there is a better way? I'd like to help, but I need to see your source first... Is that possible? : P.S. If anyone is interested in this driver and wants to help me test it : email me. I'm still a few days away from finish it its my first USB driver : :-). It should work with any remote wonder controller (Possibly other X10 : hardware). Cool! Makes me wish I had ati hardware :-) Warner From owner-freebsd-drivers@FreeBSD.ORG Tue Jan 23 22:11:22 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D05416A402 for ; Tue, 23 Jan 2007 22:11:22 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1C58E13C4C5 for ; Tue, 23 Jan 2007 22:11:21 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id l0NM09Zo060997; Tue, 23 Jan 2007 14:00:17 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id l0NM069G060994; Tue, 23 Jan 2007 14:00:09 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Tue, 23 Jan 2007 14:00:06 -0800 (PST) From: mjacob@freebsd.org To: Ali Mashtizadeh In-Reply-To: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> Message-ID: <20070123135935.O58870@ns1.feral.com> References: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-drivers@freebsd.org Subject: Re: Help with Driver for ATI Remote Wonder X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 22:11:22 -0000 The messages are pretty self-explanatory, aren't they? You built the modules against a different kernel than you are running. On Tue, 23 Jan 2007, Ali Mashtizadeh wrote: > Hi Everyone, > > I seem to have a small problem. I get this warning: > WARNING: Device driver "atims0" has wrong version and is disabled. Recompile > KLD module. > WARNING: Device driver "atikbd0" has wrong version and is disabled. > Recompile KLD module. > > I was wondering what that is from. I am having trouble making this driver > create two nodes in the /dev directory with different names and cdev > structures. I need this since I'm trying to write a driver for ATI remote > control that needs to export both a keyboard and mouse interface. Unless I'm > doing something wrong or there is a better way? > > Ali Mashtizadeh > > P.S. If anyone is interested in this driver and wants to help me test it > email me. I'm still a few days away from finish it its my first USB driver > :-). It should work with any remote wonder controller (Possibly other X10 > hardware). > _______________________________________________ > freebsd-drivers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" > From owner-freebsd-drivers@FreeBSD.ORG Wed Jan 24 00:23:45 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1D2616A402 for ; Wed, 24 Jan 2007 00:23:45 +0000 (UTC) (envelope-from daniel@roe.ch) Received: from calvin.roe.ch (calvin.roe.ch [213.144.141.26]) by mx1.freebsd.org (Postfix) with ESMTP id 8197613C455 for ; Wed, 24 Jan 2007 00:23:45 +0000 (UTC) (envelope-from daniel@roe.ch) Received: from d212-53-102-185.cust.tele2.ch ([212.53.102.185] helo=dragon.roe.ch) by calvin.roe.ch (envelope-from ) with ESMTPS (TLSv1:AES256-SHA:256) id 1H9Vud-0008ys-0l for freebsd-drivers@freebsd.org; Wed, 24 Jan 2007 01:22:51 +0100 Received: from roe by dragon.roe.ch (envelope-from ) with LOCAL id 1H9VvT-0001mi-00 for freebsd-drivers@freebsd.org; Wed, 24 Jan 2007 01:23:43 +0100 Date: Wed, 24 Jan 2007 01:23:43 +0100 From: Daniel Roethlisberger To: freebsd-drivers@freebsd.org Message-ID: <20070124002343.GA6214@dragon.roe.ch> Mail-Followup-To: freebsd-drivers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i DomainKey-Status: (calvin.roe.ch) DomainKey-Result: (calvin.roe.ch) Subject: New OMNIKEY CardMan 4040 driver - review request X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 00:23:45 -0000 I've written a driver for the OMNIKEY CardMan 4040 pccard smartcard reader using the vendor's Linux driver as a reference. My driver seems to work for me. However, since this is my first attempt at writing a FreeBSD device driver, I guess I'm bound to have missed some issues. I would be grateful if some more experienced driver hackers could take a look at it and let me know about whatever can be improved in some way. Especially I'd like comments about callout / locking interaction in this driver. Here is a diff against RELENG_6_1: http://dragon.roe.ch/~roe/cmx/cmx-6.1-20070124.diff.gz There's no manual page yet, but other than that, the driver should be complete. -Dan -- Daniel Roethlisberger From owner-freebsd-drivers@FreeBSD.ORG Wed Jan 24 21:53:08 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 222B116A400 for ; Wed, 24 Jan 2007 21:53:08 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 2BC8513C441 for ; Wed, 24 Jan 2007 21:53:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l0OLWWTX019493; Wed, 24 Jan 2007 16:32:33 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-drivers@freebsd.org Date: Wed, 24 Jan 2007 16:32:55 -0500 User-Agent: KMail/1.9.1 References: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> In-Reply-To: <440b3e930701231315o1bc45069p44f71b362af10642@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701241632.56558.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 24 Jan 2007 16:32:33 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2487/Wed Jan 24 10:53:17 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Subject: Re: Help with Driver for ATI Remote Wonder X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 21:53:08 -0000 On Tuesday 23 January 2007 16:15, Ali Mashtizadeh wrote: > Hi Everyone, > > I seem to have a small problem. I get this warning: > WARNING: Device driver "atims0" has wrong version and is disabled. Recompile > KLD module. > WARNING: Device driver "atikbd0" has wrong version and is disabled. > Recompile KLD module. You probably don't have '.d_version = D_VERSION' in your cdevsw's. -- John Baldwin From owner-freebsd-drivers@FreeBSD.ORG Wed Jan 24 21:10:54 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 900CF16A411; Wed, 24 Jan 2007 21:10:54 +0000 (UTC) (envelope-from hika@bsdmon.com) Received: from bigfugu.bsdmon.com (218.128.101-84.rev.gaoland.net [84.101.128.218]) by mx1.freebsd.org (Postfix) with ESMTP id 02BE713C457; Wed, 24 Jan 2007 21:10:53 +0000 (UTC) (envelope-from hika@bsdmon.com) Received: from localhost (localhost [127.0.0.1]) by bigfugu.bsdmon.com (Postfix) with ESMTP id CEA056276; Wed, 24 Jan 2007 21:43:26 +0100 (CET) Received: from bigfugu.bsdmon.com ([127.0.0.1]) by localhost (bigfugu.bsdmon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 47252-19; Wed, 24 Jan 2007 21:43:25 +0100 (CET) Received: from vaio.bsdmon.com (unknown [192.168.0.14]) by bigfugu.bsdmon.com (Postfix) with ESMTP id 846316274; Wed, 24 Jan 2007 21:43:25 +0100 (CET) Date: Wed, 24 Jan 2007 21:44:43 +0100 From: Gilbert Cao To: Benjamin Close Message-ID: <20070124204443.GA1107@bsdmon.com> References: <459E6477.2010508@clearchain.com> <200701051634.00293.max@love2party.net> <459E75A5.7000309@FreeBSD.org> <200701051732.27176.max@love2party.net> <45A0F739.3030202@clearchain.com> <499c70c0701201038w6960174n3006ffd525f17bf6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <499c70c0701201038w6960174n3006ffd525f17bf6@mail.gmail.com> X-Operating-System: FreeBSD 6.2-RELEASE i386 Organization: BSDMon X-GPG-Key: http://www.bsdmon.com/public_key.gpg User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: amavisd-new at bsdmon.com X-Mailman-Approved-At: Thu, 25 Jan 2007 00:12:07 +0000 Cc: Massimo Lusetti , Florent Thoumie , freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, Attilio Rao , damien.bergamini@free.fr, sam@freebsd.org, gabor@freebsd.org, Max Laier Subject: Re: Updated Driver for 3945ABG Intel 3945ABG Wireless LAN controller X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 21:10:54 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 20, 2007 at 06:38:46PM +0000, Abdullah Al-Marrie wrote: [..] Well, sorry to post in *this* thread. It may not be appropriate, but I just subscribe to freebsd-drivers :p. > On 1/7/07, Benjamin Close wrote: > >To others working on a wpi driver, please post something indicating what > >you've done and even a sample of what your up to so we can one build one > >driver that just works. I also did the driver port as everything I found > >failed to work on a 64bit kernel, most the time wouldn't even compile. > > > >I'm happy to try and maintain this driver. I have the hardware. > > > >The main bugs I know about in this driver port are: > > > >* The use of the iee80211_amrr code > >The files exist in -current in /usr/src/sys/net80211 but the required > >symbols are not in a GENERIC kernel build. There is a wlan_amrr module > >which uses this code, though I'm not sure how to make use of this, it > >appears a simple dependency on the module is not enough. The use of the > >80211_amrr code also means that use under -stable requires quite a bit > >more work as Rink pointed out. > > [..] > >For those wishing to help debug the driver and get it working, I've > >posted a new version > >http://www.clearchain.com/~benjsc/download/20070107-wpi-freebsd.tar.gz > > As I have posted a message here: http://lists.freebsd.org/pipermail/freebsd-questions/2007-January/140475.ht= ml I have put a custom version of mine from your last package here: http://www.bsdmon.com/download/20070121-wpi-freebsd.tar.gz What I have mainly done is to make the package compile and work (for me a least) on 6.2-RELEASE (and possibly other 6.x ?). Don't know if you will ignore it or not, but I feel like I should have post it here, anyway. As it works well, now for my daily uses (reading mail, surfing on the HTTP, playing Q3 ;), I may post some debug output, if needed, but I keep using 6.2, no -current. The post may be off topic, sorry ... --=20 -------------------------------- (hika) Gilbert Cao http://www.miaouirc.com - MiaouIRC Project 2002-2003 http://www.bsdmon.com - The BSD DMON Power to serve IRC : #miaule at IRCNET Network -------------------------------- --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFt8U6SyQfFTqAEpcRAhgvAJ9eRWyjeQbABx4/XLfzvk4V/2xRCACfTDEX 7qn/pgi9qpsR3xOo5fxSrgA= =rKYT -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF-- From owner-freebsd-drivers@FreeBSD.ORG Fri Jan 26 12:40:22 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6888A16A401; Fri, 26 Jan 2007 12:40:22 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) Received: from ipmail01.adl2.internode.on.net (ipmail01.adl2.internode.on.net [203.16.214.140]) by mx1.freebsd.org (Postfix) with ESMTP id AFEAA13C489; Fri, 26 Jan 2007 12:40:20 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) Received: from ppp230-38.lns2.adl4.internode.on.net (HELO mail.clearchain.com) ([203.122.230.38]) by ipmail01.adl2.internode.on.net with ESMTP; 26 Jan 2007 23:10:17 +1030 X-IronPort-AV: i="4.13,242,1167571800"; d="scan'208"; a="79091910:sNHT3174205440" Received: from [192.168.155.248] ([192.168.155.248]) (authenticated bits=0) by mail.clearchain.com (8.13.8/8.13.8) with ESMTP id l0QCdpoo094408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Jan 2007 23:09:58 +1030 (CST) (envelope-from Benjamin.Close@clearchain.com) Message-ID: <45B9F697.1090402@clearchain.com> Date: Fri, 26 Jan 2007 23:09:51 +1030 From: Benjamin Close User-Agent: Thunderbird 1.5.0.8 (X11/20061211) MIME-Version: 1.0 To: Gilbert Cao References: <459E6477.2010508@clearchain.com> <200701051634.00293.max@love2party.net> <459E75A5.7000309@FreeBSD.org> <200701051732.27176.max@love2party.net> <45A0F739.3030202@clearchain.com> <499c70c0701201038w6960174n3006ffd525f17bf6@mail.gmail.com> <20070124204443.GA1107@bsdmon.com> In-Reply-To: <20070124204443.GA1107@bsdmon.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on pegasus.clearchain.com X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.clearchain.com [192.168.155.1]); Fri, 26 Jan 2007 23:09:59 +1030 (CST) X-Mailman-Approved-At: Fri, 26 Jan 2007 15:08:56 +0000 Cc: Massimo Lusetti , Florent Thoumie , freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, Attilio Rao , damien.bergamini@free.fr, sam@freebsd.org, gabor@freebsd.org, Max Laier Subject: Re: Updated Driver for 3945ABG Intel 3945ABG Wireless LAN controller X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 12:40:22 -0000 Gilbert Cao wrote: > > As I have posted a message here: > http://lists.freebsd.org/pipermail/freebsd-questions/2007-January/140475.html > > I have put a custom version of mine from your last package here: > http://www.bsdmon.com/download/20070121-wpi-freebsd.tar.gz > > What I have mainly done is to make the package compile and work (for me > a least) on 6.2-RELEASE (and possibly other 6.x ?). > > Don't know if you will ignore it or not, but I feel like I should have post > it here, anyway. > As it works well, now for my daily uses (reading mail, surfing on the > HTTP, playing Q3 ;), I may post some debug output, if needed, but I keep > using 6.2, no -current. > The post may be off topic, sorry .. Hi Gilbert, Thanks for the custom version. I've integrated the changes into the driver I'm working on. For those wanting to test out the driver which is now fully up to date with all change from NetBSD & OpenBSD - and has a few minor improvements over them, grab it from: http://www.clearchain.com/~benjsc/download/ File is: 20070125-wpi-freebsd.tar.gz Full instructions on how to build / install the driver are in the README in the tar file. This should work both under -current and 6.2-Stable now. Info about the driver and what's working/broken can be found at: http://www.clearchain.com/wiki/wpi Cheers, Benjamin From owner-freebsd-drivers@FreeBSD.ORG Fri Jan 26 16:33:32 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D84D816A400 for ; Fri, 26 Jan 2007 16:33:32 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 69F5D13C4A8 for ; Fri, 26 Jan 2007 16:33:32 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so699892uge for ; Fri, 26 Jan 2007 08:33:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nW1MgPU10Ip64m6pFA5KqPtXyb5jH5xtp2nNPTq6YtsBgxZWp02fudqwqQ+SeFERBVlAePrWTpiQ7X9a3JOWpSz+HCCW4amZcYMTf5Zb0SQASwKoqHhA9iko6vdVT72Bu+0a5n+aYGstAmgBjJQts4b9vkPNqQS8vfnzkbWVDeI= Received: by 10.67.89.5 with SMTP id r5mr4522260ugl.1169829210895; Fri, 26 Jan 2007 08:33:30 -0800 (PST) Received: by 10.66.255.10 with HTTP; Fri, 26 Jan 2007 08:33:30 -0800 (PST) Message-ID: <499c70c0701260833u67c15482hcd617817b7889c06@mail.gmail.com> Date: Fri, 26 Jan 2007 16:33:30 +0000 From: "Abdullah Ibn Hamad Al-Marri" To: "Benjamin Close" In-Reply-To: <45B9F697.1090402@clearchain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <459E6477.2010508@clearchain.com> <200701051634.00293.max@love2party.net> <459E75A5.7000309@FreeBSD.org> <200701051732.27176.max@love2party.net> <45A0F739.3030202@clearchain.com> <499c70c0701201038w6960174n3006ffd525f17bf6@mail.gmail.com> <20070124204443.GA1107@bsdmon.com> <45B9F697.1090402@clearchain.com> Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: Updated Driver for 3945ABG Intel 3945ABG Wireless LAN controller X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 16:33:32 -0000 On 1/26/07, Benjamin Close wrote: > Gilbert Cao wrote: > > > > As I have posted a message here: > > http://lists.freebsd.org/pipermail/freebsd-questions/2007-January/140475.html > > > > I have put a custom version of mine from your last package here: > > http://www.bsdmon.com/download/20070121-wpi-freebsd.tar.gz > > > > What I have mainly done is to make the package compile and work (for me > > a least) on 6.2-RELEASE (and possibly other 6.x ?). > > > > Don't know if you will ignore it or not, but I feel like I should have post > > it here, anyway. > > As it works well, now for my daily uses (reading mail, surfing on the > > HTTP, playing Q3 ;), I may post some debug output, if needed, but I keep > > using 6.2, no -current. > > The post may be off topic, sorry .. > Hi Gilbert, > Thanks for the custom version. I've integrated the changes into the > driver I'm working on. > For those wanting to test out the driver which is now fully up to date > with all change from NetBSD & OpenBSD - and has a few minor improvements > over them, grab it from: > > http://www.clearchain.com/~benjsc/download/ > > File is: 20070125-wpi-freebsd.tar.gz > > Full instructions on how to build / install the driver are in the README > in the tar file. > > This should work both under -current and 6.2-Stable now. > > Info about the driver and what's working/broken can be found at: > > http://www.clearchain.com/wiki/wpi > > Cheers, > Benjamin Great stuff, now the wlan speed is much much faster, thank you for the hard a nice work ;) -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-drivers@FreeBSD.ORG Sat Jan 27 10:18:53 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7375716A405; Sat, 27 Jan 2007 10:18:53 +0000 (UTC) (envelope-from hika@bsdmon.com) Received: from bigfugu.bsdmon.com (218.128.101-84.rev.gaoland.net [84.101.128.218]) by mx1.freebsd.org (Postfix) with ESMTP id EF00213C487; Sat, 27 Jan 2007 10:18:52 +0000 (UTC) (envelope-from hika@bsdmon.com) Received: from localhost (localhost [127.0.0.1]) by bigfugu.bsdmon.com (Postfix) with ESMTP id 9EFB56240; Sat, 27 Jan 2007 11:17:40 +0100 (CET) Received: from bigfugu.bsdmon.com ([127.0.0.1]) by localhost (bigfugu.bsdmon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82871-13; Sat, 27 Jan 2007 11:17:39 +0100 (CET) Received: from vaio.bsdmon.com (unknown [192.168.0.14]) by bigfugu.bsdmon.com (Postfix) with ESMTP id 6810C6266; Sat, 27 Jan 2007 11:17:39 +0100 (CET) Date: Sat, 27 Jan 2007 11:19:00 +0100 From: Gilbert Cao To: Benjamin Close Message-ID: <20070127101900.GB1099@bsdmon.com> References: <459E6477.2010508@clearchain.com> <200701051634.00293.max@love2party.net> <459E75A5.7000309@FreeBSD.org> <200701051732.27176.max@love2party.net> <45A0F739.3030202@clearchain.com> <499c70c0701201038w6960174n3006ffd525f17bf6@mail.gmail.com> <20070124204443.GA1107@bsdmon.com> <45B9F697.1090402@clearchain.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Content-Disposition: inline In-Reply-To: <45B9F697.1090402@clearchain.com> X-Operating-System: FreeBSD 6.2-RELEASE i386 Organization: BSDMon X-GPG-Key: http://www.bsdmon.com/public_key.gpg User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: amavisd-new at bsdmon.com X-Mailman-Approved-At: Sat, 27 Jan 2007 12:44:59 +0000 Cc: Massimo Lusetti , Florent Thoumie , freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, Attilio Rao , damien.bergamini@free.fr, sam@freebsd.org, gabor@freebsd.org, Max Laier Subject: Re: Updated Driver for 3945ABG Intel 3945ABG Wireless LAN controller X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 10:18:53 -0000 --XF85m9dhOBO43t/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 26, 2007 at 11:09:51PM +1030, Benjamin Close wrote: > Hi Gilbert, > Thanks for the custom version. I've integrated the changes into the=20 > driver I'm working on. > For those wanting to test out the driver which is now fully up to date=20 > with all change from NetBSD & OpenBSD - and has a few minor improvements= =20 > over them, grab it from: >=20 > http://www.clearchain.com/~benjsc/download/ >=20 > File is: 20070125-wpi-freebsd.tar.gz >=20 > Full instructions on how to build / install the driver are in the README= =20 > in the tar file. >=20 > This should work both under -current and 6.2-Stable now. >=20 > Info about the driver and what's working/broken can be found at: >=20 > http://www.clearchain.com/wiki/wpi >=20 > Cheers, > Benjamin I have tried the new 20070125 version. However, I did not manage to make work. At least, it compiles. I have installed, both wpi_fw.ko and the if_wpi.ko, as the README said. wpi_fw.ko lies in /boot/modules and if_wpi.ko in /boot/kernel. When, I "kldload if_wpi", here is a small sample of /var/log/messages Jan 27 10:30:39 vaio kernel: wpi0: mem 0xcc= 000000-0xcc000fff irq 18 at device 0.0 on pci6 Jan 27 10:30:39 vaio kernel: bus_dmamem_alloc failed to align memory proper= ly. Jan 27 10:30:39 vaio last message repeated 6 times Jan 27 10:30:39 vaio kernel: wpi0: Ethernet address: 00:18:de:5c:cb:9a Jan 27 10:30:39 vaio kernel: wpi0: [GIANT-LOCKED] Jan 27 10:30:39 vaio kernel: wpi0: 11a rates:=20 Jan 27 10:30:39 vaio kernel: wpi0: 11b rates:=20 Jan 27 10:30:40 vaio kernel: firmware_get: failed to load firmware image wp= i_fw Jan 27 10:30:40 vaio kernel: wpi0: could not load firmware image 'wpi_fw' Jan 27 10:30:40 vaio kernel: firmware_get: failed to load firmware image wp= i_fw Jan 27 10:30:40 vaio kernel: wpi0: could not load firmware image 'wpi_fw'= =20 Jan 27 10:32:19 vaio kernel: firmware_get: failed to load firmware image wp= i_fw Jan 27 10:32:19 vaio kernel: wpi0: could not load firmware image 'wpi_fw' In kldstat, both modules are loaded. Then, I have "kldunload if_wpi" (and if_wpi seems to be reload, automatically, I don't know why). Same problem, it seems that wpi_fw could not be load (found ?). As a result, no AP is "associated". After a fresh reboot, I have reinstall the custom 20070121 version of mine, and all returns OK. Another strange thing: when "kldload if_wpi" with 20070121 version, and then kldstat, I don't see "wpi_ucode". It seems that wpi_ucode.ko does not need to be loaded, in my case. My wpi_ucode.ko lies in /boot/modules After another fresh reboot, I first moved wpi_ucode.ko to another place. When I "kldload if_wpi", I got the following message: Jan 27 09:47:16 vaio kernel: wpi0: mem 0xcc= 000000-0xcc000fff irq 18 at device 0.0 on pci6 Jan 27 09:47:16 vaio kernel: bus_dmamem_alloc failed to align memory proper= ly. Jan 27 09:47:16 vaio last message repeated 6 times Jan 27 09:47:16 vaio kernel: wpi0: Ethernet address: 00:18:de:5c:cb:9a Jan 27 09:47:16 vaio kernel: wpi0: [GIANT-LOCKED] Jan 27 09:47:16 vaio kernel: wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24M= bps 36Mbps 48Mbps 54Mbps Jan 27 09:47:16 vaio kernel: wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps Jan 27 09:47:16 vaio kernel: wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6M= bps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Jan 27 09:47:16 vaio kernel: firmware_get: failed to load firmware image wp= i_ucode Jan 27 09:47:16 vaio kernel: wpi0: could not load firmware image 'wpi_ucode' So, it seems that wpi_ucode.ko have to lied in my /boot/modules (the place where I have also put if_wpi 20070121 version), even if it is not loaded. --=20 -------------------------------- (hika) Gilbert Cao http://www.miaouirc.com - MiaouIRC Project 2002-2003 http://www.bsdmon.com - The BSD DMON Power to serve IRC : #miaule at IRCNET Network -------------------------------- --XF85m9dhOBO43t/C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFuycTSyQfFTqAEpcRAg3rAJ4sAYdG7EjCsWV2y+e2JwgwQ/HwiwCfVOho vlz87bqOmiArF4Y6QKUpyzQ= =JfDQ -----END PGP SIGNATURE----- --XF85m9dhOBO43t/C-- From owner-freebsd-drivers@FreeBSD.ORG Sat Jan 27 19:14:07 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D85316A404 for ; Sat, 27 Jan 2007 19:14:07 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 9319A13C4AC for ; Sat, 27 Jan 2007 19:14:06 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so879318uge for ; Sat, 27 Jan 2007 11:14:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZLwgrpVv/Whgtd0fnLYKbBc8qsXoJAdeGE0LxlUg8uuDCDyWQRr4kPfFJKmyZK7qGPRaBR4noIYu4U0FeRbe/7OwuyH3Cy7dQpgCa1w6mEtLZvoLl/Kw7wxWnKraV+y1vvuVKPGtYm0W4j1A1lX1WwuvrqlaC5Y0Dgw8Wf6UYlw= Received: by 10.78.201.2 with SMTP id y2mr3115793huf.1169925245036; Sat, 27 Jan 2007 11:14:05 -0800 (PST) Received: by 10.78.151.6 with HTTP; Sat, 27 Jan 2007 11:14:04 -0800 (PST) Message-ID: <11167f520701271114j66f82398h83c43885b9d25e12@mail.gmail.com> Date: Sat, 27 Jan 2007 13:14:04 -0600 From: "Sam Fourman Jr." To: "Gilbert Cao" In-Reply-To: <20070127101900.GB1099@bsdmon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <459E6477.2010508@clearchain.com> <200701051634.00293.max@love2party.net> <459E75A5.7000309@FreeBSD.org> <200701051732.27176.max@love2party.net> <45A0F739.3030202@clearchain.com> <499c70c0701201038w6960174n3006ffd525f17bf6@mail.gmail.com> <20070124204443.GA1107@bsdmon.com> <45B9F697.1090402@clearchain.com> <20070127101900.GB1099@bsdmon.com> X-Mailman-Approved-At: Sat, 27 Jan 2007 22:47:13 +0000 Cc: Massimo Lusetti , Benjamin Close , Florent Thoumie , freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, Attilio Rao , damien.bergamini@free.fr, sam@freebsd.org, gabor@freebsd.org, Max Laier Subject: Re: Updated Driver for 3945ABG Intel 3945ABG Wireless LAN controller X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 19:14:07 -0000 I can also confirm that i get the firmware_get: failed to load firmware image wpi_fw on the 20070125 version. I should note that I tried it on a fresh 6.2 RELEASE install. Sam Fourman Jr. On 1/27/07, Gilbert Cao wrote: > On Fri, Jan 26, 2007 at 11:09:51PM +1030, Benjamin Close wrote: > > Hi Gilbert, > > Thanks for the custom version. I've integrated the changes into the > > driver I'm working on. > > For those wanting to test out the driver which is now fully up to date > > with all change from NetBSD & OpenBSD - and has a few minor improvements > > over them, grab it from: > > > > http://www.clearchain.com/~benjsc/download/ > > > > File is: 20070125-wpi-freebsd.tar.gz > > > > Full instructions on how to build / install the driver are in the README > > in the tar file. > > > > This should work both under -current and 6.2-Stable now. > > > > Info about the driver and what's working/broken can be found at: > > > > http://www.clearchain.com/wiki/wpi > > > > Cheers, > > Benjamin > > I have tried the new 20070125 version. > However, I did not manage to make work. At least, it compiles. > I have installed, both wpi_fw.ko and the if_wpi.ko, as the README said. > wpi_fw.ko lies in /boot/modules and if_wpi.ko in /boot/kernel. > > When, I "kldload if_wpi", here is a small sample of /var/log/messages > > Jan 27 10:30:39 vaio kernel: wpi0: mem 0xcc000000-0xcc000fff irq 18 at device 0.0 on pci6 > Jan 27 10:30:39 vaio kernel: bus_dmamem_alloc failed to align memory properly. > Jan 27 10:30:39 vaio last message repeated 6 times > Jan 27 10:30:39 vaio kernel: wpi0: Ethernet address: 00:18:de:5c:cb:9a > Jan 27 10:30:39 vaio kernel: wpi0: [GIANT-LOCKED] > Jan 27 10:30:39 vaio kernel: wpi0: 11a rates: > Jan 27 10:30:39 vaio kernel: wpi0: 11b rates: > Jan 27 10:30:40 vaio kernel: firmware_get: failed to load firmware image wpi_fw > Jan 27 10:30:40 vaio kernel: wpi0: could not load firmware image 'wpi_fw' > Jan 27 10:30:40 vaio kernel: firmware_get: failed to load firmware image wpi_fw > Jan 27 10:30:40 vaio kernel: wpi0: could not load firmware image 'wpi_fw' > Jan 27 10:32:19 vaio kernel: firmware_get: failed to load firmware image wpi_fw > Jan 27 10:32:19 vaio kernel: wpi0: could not load firmware image 'wpi_fw' > > In kldstat, both modules are loaded. > Then, I have "kldunload if_wpi" (and if_wpi seems to be reload, > automatically, I don't know why). Same problem, it seems that wpi_fw > could not be load (found ?). > > As a result, no AP is "associated". > > > After a fresh reboot, I have reinstall the custom 20070121 version of > mine, and all returns OK. > Another strange thing: when "kldload if_wpi" with 20070121 version, and > then kldstat, I don't see "wpi_ucode". It seems that wpi_ucode.ko does > not need to be loaded, in my case. > My wpi_ucode.ko lies in /boot/modules > > After another fresh reboot, I first moved wpi_ucode.ko to another place. > When I "kldload if_wpi", I got the following message: > > Jan 27 09:47:16 vaio kernel: wpi0: mem 0xcc000000-0xcc000fff irq 18 at device 0.0 on pci6 > Jan 27 09:47:16 vaio kernel: bus_dmamem_alloc failed to align memory properly. > Jan 27 09:47:16 vaio last message repeated 6 times > Jan 27 09:47:16 vaio kernel: wpi0: Ethernet address: 00:18:de:5c:cb:9a > Jan 27 09:47:16 vaio kernel: wpi0: [GIANT-LOCKED] > Jan 27 09:47:16 vaio kernel: wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > Jan 27 09:47:16 vaio kernel: wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > Jan 27 09:47:16 vaio kernel: wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > Jan 27 09:47:16 vaio kernel: firmware_get: failed to load firmware image wpi_ucode > Jan 27 09:47:16 vaio kernel: wpi0: could not load firmware image 'wpi_ucode' > > So, it seems that wpi_ucode.ko have to lied in my /boot/modules (the > place where I have also put if_wpi 20070121 version), even if it is not > loaded. > > -- > -------------------------------- > (hika) Gilbert Cao > http://www.miaouirc.com > - MiaouIRC Project 2002-2003 > http://www.bsdmon.com > - The BSD DMON Power to serve > IRC : #miaule at IRCNET Network > -------------------------------- > > >