From owner-freebsd-usb@FreeBSD.ORG Sun Apr 19 20:25:08 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67CA4106566C for ; Sun, 19 Apr 2009 20:25:08 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw2.york.ac.uk (mail-gw2.york.ac.uk [144.32.128.247]) by mx1.freebsd.org (Postfix) with ESMTP id D70278FC18 for ; Sun, 19 Apr 2009 20:25:07 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw2.york.ac.uk (8.13.6/8.13.6) with ESMTP id n3JJt1Np024916; Sun, 19 Apr 2009 20:55:01 +0100 (BST) Received: from ury.york.ac.uk ([144.32.108.81]) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Lvd6T-0005bd-7p; Sun, 19 Apr 2009 20:55:01 +0100 Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.14.3/8.14.3) with ESMTP id n3JJt1Of043675; Sun, 19 Apr 2009 20:55:01 +0100 (BST) (envelope-from gavin@FreeBSD.org) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.14.3/8.14.3/Submit) with ESMTP id n3JJt0nT043672; Sun, 19 Apr 2009 20:55:01 +0100 (BST) (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Sun, 19 Apr 2009 20:55:00 +0100 (BST) From: Gavin Atkinson X-X-Sender: gavin@ury.york.ac.uk To: Torfinn Ingolfsen In-Reply-To: <20090414235727.38d16ee1.torfinn.ingolfsen@broadpark.no> Message-ID: <20090419204536.M53728@ury.york.ac.uk> References: <20090414235727.38d16ee1.torfinn.ingolfsen@broadpark.no> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: freebsd-usb@FreeBSD.org Subject: Re: usb thermometer - TEMPer - FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2009 20:25:08 -0000 On Tue, 14 Apr 2009, Torfinn Ingolfsen wrote: > I got a new usb gadget, a TEMPer[1]. According to info on the net, this > thermometer is a I2C device hooked up to a usb serial chip[2, 3]. The > usb-to-serial chip is a WinChipHead 340 / 341, so that should work with > the uchcom[4] driver. There was discussion about MFC'in this driver to > RELENG_7 in february last year[5], but it doesn't seem to have happened. > > I tried garbbing the uchcom driver files from cvsweb and compiling the > driver on my RELENG_7, but that didn't work. RELENG_7 as in > root@kg-work2# uname -a > FreeBSD kg-work2.kg4.no 7.1-STABLE FreeBSD 7.1-STABLE #4: Sun Feb 8 > 20:56:08 CET 2009 root@kg-work2.kg4.no:/usr/obj/usr/src/sys/SX270 > i386 You don't say from what point in time you grabbed the driver from HEAD, but two major changes have happened in HEAD over the last few months that may well hinder your progress somewhat: The USB stack and drivers have been entirely replaced with a new USB stack, and the TTY subsystem has been heavily changed so that it no longer uses the Giant lock. Looking at the driver, I'm not sure if the latter will actually cause any problems for you, but the former will, so I'd recommend that you start with the uchcom source from before the new USB stack import: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/Attic/uchcom.c?rev=1.1;content-type=text%2Fplain I wouldn't be too surprised if you find that compiles and works as-is. Gavin