From owner-freebsd-usb@FreeBSD.ORG Fri Dec 24 16:55:39 2004 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E52216A4CE for ; Fri, 24 Dec 2004 16:55:39 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-30-72.dclient.hispeed.ch [84.72.30.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id A564E43D2D for ; Fri, 24 Dec 2004 16:55:37 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1e48:0:210:60ff:fe25:f1e5]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iBOGtUn80642 verified NO) for ; Fri, 24 Dec 2004 17:55:36 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iBOGtTw80639; Fri, 24 Dec 2004 17:55:29 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Fri, 24 Dec 2004 17:55:29 +0100 (CET) Message-Id: <200412241655.iBOGtTw80639@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma Mail-Followup-To: FreeBSD USB list To: FreeBSD USB list Subject: A CDC Ethernet driver in progress, adapted from NetBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barry Bouwsma List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2004 16:55:39 -0000 I just wanted to mention that if nobody else is working on a CDC Ethernet driver for inclusion in FreeBSD, I've taken the codes from NetBSD and OpenBSD, based on Bill Paul's work, and selected the NetBSD one to adapt for FreeBSD 4.x to see whether I stand a chance to have it work with a Cabal Modem. If someone else is working on this, I should probably give up now and play with something else. The code appears to have been written for PDAs and the like. For DOCSIS Cabal Moda/Modii/whatever, there seems to be missing the selection of an alternate index or something. Also, the NetBSD code is missing quite a bit of the dequeueing and such that the latest FreeBSD seems to use. Functionally, it seems to 3/4 work. I'm building the latest NetBSD to verify if it works as expected there. I can hear all the packets coming in. I'm not sure if any packets really make it out, or if the Cabal Modem refuses DHCP or other outgoing traffic on the USB interface. The code is ugly with my hacks, and I should spend the good part of a day cleaning it up, and making sure that my selection of data interface doesn't break PDAs and such. If I don't have NetBSD success with my device, there's also Linux support, that I should be able to try and verify my modem, before I unleash more broken code on the rest of the world. Expect a few days before I'm willing to shame myself by letting anyone view my hacks. Unless someone else is working on this. Someone familiar with, say, 6.x and 5.x locking will need to adapt it to -current, if it is to stand any chance to see the world. thanks barry bouwsma