From owner-freebsd-drivers@FreeBSD.ORG Sun Aug 10 11:34:59 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D68B0106566B for ; Sun, 10 Aug 2008 11:34:59 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from lerwick.hopto.org (81-178-20-70.dsl.pipex.com [81.178.20.70]) by mx1.freebsd.org (Postfix) with SMTP id 07E468FC15 for ; Sun, 10 Aug 2008 11:34:58 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: (qmail 48350 invoked by uid 98); 10 Aug 2008 12:04:52 +0100 Received: from 192.168.0.2 by polaris.lerwick.hopto.org (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.88.4/1789. hbedv: 7.1.1.11/6.35.1.178. f-prot: 4.6.6/3.16.14. spamassassin: 3.1.4. Clear:RC:1(192.168.0.2):. Processed in 0.03513 secs); 10 Aug 2008 11:04:52 -0000 Received: from main.lerwick.hopto.org (HELO ?192.168.0.2?) (192.168.0.2) by lerwick.hopto.org with SMTP; 10 Aug 2008 12:04:52 +0100 From: Craig Butler To: freebsd-drivers@freebsd.org Content-Type: text/plain Date: Sun, 10 Aug 2008 12:07:31 +0100 Message-Id: <1218366451.94802.6.camel@main.lerwick.hopto.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: cassini nic driver - help required to port across driver from openbsd to freebsd 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, 10 Aug 2008 11:34:59 -0000 Hi All I need a driver for the Sun Cassini (0xabba) network card. I have 5 b100s waiting for the sparc64 build cluster. My understanding is that at the moment Freebsd does not currently have a driver for the Cassini. Digging around I see that OpenBSD does; How hard would it be to port across ? Would it be easier to start from scratch ? Does anybody want to help/guide me ? Thanks Craig Butler ============================================================ This email has been handled by lerwick.hopto.org mail server and has been scanned by 3 virus killers and spamassassin ============================================================ From owner-freebsd-drivers@FreeBSD.ORG Mon Aug 11 01:18:43 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 113EA1065674 for ; Mon, 11 Aug 2008 01:18:43 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id BC7E28FC0C for ; Mon, 11 Aug 2008 01:18:42 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3009661rvf.43 for ; Sun, 10 Aug 2008 18:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ct0GIfdqkkcbdG8+K2rxMiXTciva8vM0zcae5drjeyg=; b=CVg03f8/bKEdx4X6ohFt4E9lzIFK6pyf5kt+whaMj/ml7hxj0bYdHIQQeh9Ti1OWas yZLz52aMJhNce2QZz4RvGuygSJB/2cjK9l/i+/EGeyn2VH4N5CM0idOsbd0TyqHQkjVY C83hqFWP0YSIO8cOkKg1gL0ws5HfPMLcFcq5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=XGxyw/ZrnKp8ehO2cXIX5EBexlo0JQPXBWiCOBuui+M0Ogq8xOnD+GMqOOlC/VH79x sL79JD0OLsGZBcHqoNxvaf0y82zqLvKl+bq3xznU3XWedS08uyhw5+ceVVkCcefUTTYQ orMid1ICGEQMHGIbNDq5HV7YRkqoAn+FSoi/M= Received: by 10.140.132.8 with SMTP id f8mr3087907rvd.206.1218417522458; Sun, 10 Aug 2008 18:18:42 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id b8sm3488497rvf.8.2008.08.10.18.18.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 10 Aug 2008 18:18:41 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m7B1GVSA050364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Aug 2008 10:16:31 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m7B1GUZQ050363; Mon, 11 Aug 2008 10:16:30 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 11 Aug 2008 10:16:30 +0900 From: Pyun YongHyeon To: Craig Butler Message-ID: <20080811011630.GA50045@cdnetworks.co.kr> References: <1218366451.94802.6.camel@main.lerwick.hopto.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1218366451.94802.6.camel@main.lerwick.hopto.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-drivers@freebsd.org Subject: Re: cassini nic driver - help required to port across driver from openbsd to freebsd X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 01:18:43 -0000 On Sun, Aug 10, 2008 at 12:07:31PM +0100, Craig Butler wrote: > Hi All > Hi, > I need a driver for the Sun Cassini (0xabba) network card. I have 5 > b100s waiting for the sparc64 build cluster. > My understanding is that at the moment Freebsd does not currently have a > driver for the Cassini. Digging around I see that OpenBSD does; > Yes, you're right. > How hard would it be to port across ? > I think it wouldn't be hard to make basic Tx/Rx work. But the hardest part would be handling header spliting and reassemblying data payloads of packets in a TCP stream into a single buffer spanning as many pages in virtual memory as necessary. When I checked cas(4) of OpenBSD, it didn't take advantage of advanced hadware features of Cassini such as TCP checksum offload, VLAN hardware assistance, TCP header spliting etc. > Would it be easier to start from scratch ? > Yes, I think so. > Does anybody want to help/guide me ? > I also have Cassini hardware and hoped to have spare time to write a driver for Cassini. At least it looks challenging work for driver writers to write high-performance driver for the exotic hardware. Note, it seems that there are other revision of Cassini manufactured by National Semiconductor, NS Saturn DP83065. That hardware is not mentioned in the Cassini documentation released by Sun and the hardware seem to require a lot of firmware fixups and it's not available under BSD license. :-( > Thanks > > Craig Butler -- Regards, Pyun YongHyeon From owner-freebsd-drivers@FreeBSD.ORG Mon Aug 11 10:49:46 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9BAA106564A for ; Mon, 11 Aug 2008 10:49:46 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from lerwick.hopto.org (81-178-20-70.dsl.pipex.com [81.178.20.70]) by mx1.freebsd.org (Postfix) with SMTP id D7A4A8FC19 for ; Mon, 11 Aug 2008 10:49:45 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: (qmail 24642 invoked by uid 98); 11 Aug 2008 11:46:15 +0100 Received: from 192.168.0.2 by polaris.lerwick.hopto.org (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.88.4/1789. hbedv: 7.1.1.11/6.35.1.178. f-prot: 4.6.6/3.16.14. spamassassin: 3.1.4. Clear:RC:1(192.168.0.2):. Processed in 0.036818 secs); 11 Aug 2008 10:46:15 -0000 Received: from main.lerwick.hopto.org (HELO ?192.168.0.2?) (192.168.0.2) by lerwick.hopto.org with SMTP; 11 Aug 2008 11:46:15 +0100 From: Craig Butler To: pyunyh@gmail.com In-Reply-To: <20080811011630.GA50045@cdnetworks.co.kr> References: <1218366451.94802.6.camel@main.lerwick.hopto.org> <20080811011630.GA50045@cdnetworks.co.kr> Content-Type: text/plain Date: Mon, 11 Aug 2008 11:49:42 +0100 Message-Id: <1218451782.2609.5.camel@main.lerwick.hopto.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: cassini nic driver - help required to port across driver from openbsd to freebsd 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: Mon, 11 Aug 2008 10:49:46 -0000 > I think it wouldn't be hard to make basic Tx/Rx work. basic Tx/Rx would be a good start, at least me b1600 wouldn't be an expensive brick. Fancy giving it a shot? I don't even know where to start.. maybe try and compile up the OpenBSD driver on a FreeBSD box ? Cheers Craig B ============================================================ This email has been handled by lerwick.hopto.org mail server and has been scanned by 3 virus killers and spamassassin ============================================================ From owner-freebsd-drivers@FreeBSD.ORG Tue Aug 12 03:54:20 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75DD1106564A for ; Tue, 12 Aug 2008 03:54:20 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id 398CA8FC1D for ; Tue, 12 Aug 2008 03:54:20 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3822933rvf.43 for ; Mon, 11 Aug 2008 20:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=klMMOdGS1PaenUH0DnUQXrG/sYih2AWPOQ+gAcFGsXg=; b=Ab2nYxe34/Fpp6puGDXobQfRMr8cmwCByO/7EfH7emG2rO0KRGTu2Tbot6lJ+6kDCI o5aSaAb3W6+2+7vqxQUx4m6MfQNU6d1I5uMBgnmnDQ/u75SEA/33x9EayZ6ZovYJCKMx bYnzYRhcvIkE4zRK5E7Qv9s4oxmErUimIoCms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=e94YTsbk9j/Zfe6X8N25nVwgzp6eoTDcUgJfggiKt48Mwad9eHdn7WHLT0/riOLBU0 nQGMnbR3vO/zJBFMNwww6G52o2DGflKL5jT47u5+Hr4g75BuFtb5K5hNhHRWAAZ8qpQp k+TSrwGCiLSOsgVfYFoLSkaFcW6XGvAFURxQE= Received: by 10.141.29.18 with SMTP id g18mr4029447rvj.162.1218513259927; Mon, 11 Aug 2008 20:54:19 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id b8sm6600221rvf.8.2008.08.11.20.54.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Aug 2008 20:54:18 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m7C3q7KQ055182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Aug 2008 12:52:07 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m7C3q601055181; Tue, 12 Aug 2008 12:52:06 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 12 Aug 2008 12:52:06 +0900 From: Pyun YongHyeon To: Craig Butler Message-ID: <20080812035206.GG54362@cdnetworks.co.kr> References: <1218366451.94802.6.camel@main.lerwick.hopto.org> <20080811011630.GA50045@cdnetworks.co.kr> <1218451782.2609.5.camel@main.lerwick.hopto.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1218451782.2609.5.camel@main.lerwick.hopto.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-drivers@freebsd.org Subject: Re: cassini nic driver - help required to port across driver from openbsd to freebsd X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 03:54:20 -0000 On Mon, Aug 11, 2008 at 11:49:42AM +0100, Craig Butler wrote: > > I think it wouldn't be hard to make basic Tx/Rx work. > basic Tx/Rx would be a good start, at least me b1600 wouldn't be an > expensive brick. > > Fancy giving it a shot? I don't even know where to start.. maybe try > and compile up the OpenBSD driver on a FreeBSD box ? > If you use OpenBSD driver as base, you may have to change a lot of DMA related code due to bus_dma(9) differences. After converting DMA code, other parts would be straightforward to make it work on FreeBSD. Sun released Cassini documentation with sanitization. The data sheet lacks errata information and hardware internals but it still has a lot of useful information. http://www.sun.com/processors/manuals/cs_plus.pdf If you have interests in other Sun data sheet, check http://wikis.sun.com/display/FOSSdocs/Home > Cheers > > Craig B -- Regards, Pyun YongHyeon From owner-freebsd-drivers@FreeBSD.ORG Thu Aug 14 21:07:51 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 672E6106566C for ; Thu, 14 Aug 2008 21:07:51 +0000 (UTC) (envelope-from spamtrap@tczyhatczsche.eu) Received: from ange.vhost.lt (ange.vhost.lt [77.79.12.20]) by mx1.freebsd.org (Postfix) with ESMTP id DE2FA8FC1E for ; Thu, 14 Aug 2008 21:07:50 +0000 (UTC) (envelope-from spamtrap@tczyhatczsche.eu) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=tczyhatczsche.eu; h=Received:Received:Date:From:To:Subject:Message-ID:Mime-Version:Content-Type:Content-Disposition:User-Agent:Content-Transfer-Encoding:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-Source:X-Source-Args:X-Source-Dir; b=r+rV7bYYeIWYefUScCeumetYSb6eKp2FKNbGgoAwUIjMaSu9+Seya25fps4TAk6qyEOTQsDMPcmeTV/HAVY8mwyjol0kjzzAgWKTrs1WWPVctMtGHUhScmp/vx121K5i; Received: from [78.59.147.157] (helo=johnny.mnemoni.ca) by ange.vhost.lt with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KTjEl-00007u-Ko for freebsd-drivers@freebsd.org; Thu, 14 Aug 2008 23:16:00 +0300 Received: by johnny.mnemoni.ca (Postfix, from userid 1001) id C9C895CFD; Thu, 14 Aug 2008 23:15:49 +0300 (EEST) Date: Thu, 14 Aug 2008 23:15:49 +0300 From: Jonathan Lee To: freebsd-drivers@freebsd.org Message-ID: <20080814201549.GB1461@johnny.mnemoni.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ange.vhost.lt X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tczyhatczsche.eu X-Source: X-Source-Args: X-Source-Dir: Subject: Getting DWA-110 support with if_rum 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: Thu, 14 Aug 2008 21:07:51 -0000 %uname -a FreeBSD johnny.mnemoni.ca 7.0-STABLE FreeBSD 7.0-STABLE #5: Sun Aug 10 15:26:30 EEST 2008 root@johnny.mnemoni.ca:/usr/obj/usr/src/sys/JOHNNY i386 I've noticed D-LINK's DWA-111 (a USB wireless LAN adapter, product ID 0x3c06) having been added to /usr/src/sys/dev/usb/usbdevs list, and the same ID added to if_rum.c. Then, I have a DWA-110, with prod. ID 0x3c07. I have opened its case, there's a RT2571WF chip inside. According to 'man rum', that's what if_rum supports. Suspect DWA-110 to be a close relative of DWA-111, though might be horribly wrong. I added the DWA-110 ID to if_rum.c (and recompiled). The device is recognized and shown in ifconfig. There are some errors upon inserting the device: Aug 12 11:00:36 johnny kernel: wpi0: timeout resetting Tx ring 1 Aug 12 11:00:36 johnny kernel: wpi0: timeout resetting Tx ring 3 Aug 12 11:00:36 johnny kernel: wpi0: timeout resetting Tx ring 4 (Using the Perforce (development) version of the driver.) And also one warning in /var/log/messages: Aug 14 22:49:26 johnny kernel: rum0: on uhub4 Aug 14 22:49:26 johnny kernel: rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2= 528 Aug 14 22:49:27 johnny kernel: rum0: WARNING: using obsoleted IFF_NEEDSGI= ANT flag The issue is, the device doesn't see any networks. 'ifconfig scan' shows no output (hangs until CTRL+=D0=A1 is pressed). (Actually, wlandebu= g says that scanning is started as soon as the device is brought to the 'up' state.) 'wlandebug +debug +scan' shows no errors. dmesg repeats the following over and over: ... rum0: scan_next: chan 8g -> 9g [active, dwell min 20 max 200] rum0: scan_next: chan 9g -> 10g [active, dwell min 20 max 200] rum0: scan_next: chan 10g -> 12g [active, dwell min 20 max 200] rum0: scan_next: chan 12g -> 14g [active, dwell min 20 max 200] rum0: sta_pick_bss: no scan candidate rum0: scan_next: done, restart [ticks 20994469, dwell min 20 scanend 2168= 334612] rum0: scan_next: chan 14g -> 1g [active, dwell min 20 max 200] rum0: scan_next: chan 1g -> 6g [active, dwell min 20 max 200] rum0: scan_next: chan 6g -> 11g [active, dwell min 20 max 200] rum0: scan_next: chan 11g -> 7g [active, dwell min 20 max 200] rum0: scan_next: chan 7g -> 13g [active, dwell min 20 max 200] rum0: scan_next: chan 13g -> 2g [active, dwell min 20 max 200] rum0: scan_next: chan 2g -> 3g [active, dwell min 20 max 200] rum0: scan_next: chan 3g -> 4g [active, dwell min 20 max 200] rum0: scan_next: chan 4g -> 5g [active, dwell min 20 max 200] rum0: scan_next: chan 5g -> 8g [active, dwell min 20 max 200] rum0: scan_next: chan 8g -> 9g [active, dwell min 20 max 200] rum0: scan_next: chan 9g -> 10g [active, dwell min 20 max 200] rum0: scan_next: chan 10g -> 12g [active, dwell min 20 max 200] rum0: scan_next: chan 12g -> 14g [active, dwell min 20 max 200] rum0: sta_pick_bss: no scan candidate rum0: scan_next: done, restart [ticks 20997281, dwell min 20 scanend 2168= 334612] rum0: scan_next: chan 14g -> 1g [active, dwell min 20 max 200] rum0: scan_next: chan 1g -> 6g [active, dwell min 20 max 200] rum0: scan_next: chan 6g -> 11g [active, dwell min 20 max 200] ... I've also tried specifying the SSID of a network, explicitly setting the channel, etc.. So, the QUESTIONS are: 1) Are there any documents/threads/messages about getting DWA-111, the already-added device, configured? Who actually owns the device and reported it as working? Contacts? 2) Any advice on my DWA-110? Something I'm missing? 3) Other logs needed? Additional wlandebug output?