From owner-freebsd-usb@FreeBSD.ORG Thu Apr 24 15:25:34 2008 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 C228E106566C for ; Thu, 24 Apr 2008 15:25:34 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.184]) by mx1.freebsd.org (Postfix) with ESMTP id 6C5BA8FC0A for ; Thu, 24 Apr 2008 15:25:34 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by gv-out-0910.google.com with SMTP id n40so480000gve.39 for ; Thu, 24 Apr 2008 08:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Q0AKWIymLa/D2zeDNFvqQ77wcF03RL2TmwnoYByBU2c=; b=iqZk29sqPhIkSk7uqIK1DUwl59sh3KUkaBpISNTX4JW15phdWwjMtPrd8M0mCQTNsLukR+QXjXp/nWz0VfE9c9vdUb0uH5Q54y+X1/9JuVbwkqxBeYYv1XSp1tOI7hSVbwRrpHu9PsJDCYkUUcrmaAaBsNbe2rnjNcDwq/5N8A8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ugi/UI51U2nsSHDNBaaGSPyHnwEUv6U5VBlEqad1qmpca+HB8qcZyNAm+yvtke+aG/qKU3+j/6lOCa+HHnHgjYEWD2LPgDzIhJhSpfLFwQReal0/CLX0/eZKocriH1aRr+a8DxixojZ+GmpJcqYJwv6DrFgWbCKniAFo4Avdt1E= Received: by 10.114.132.5 with SMTP id f5mr1923024wad.125.1209050728905; Thu, 24 Apr 2008 08:25:28 -0700 (PDT) Received: by 10.114.39.14 with HTTP; Thu, 24 Apr 2008 08:25:28 -0700 (PDT) Message-ID: Date: Thu, 24 Apr 2008 23:25:28 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804241721.54385.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804241721.54385.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: PICkit 2 again with HPS stack 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: Thu, 24 Apr 2008 15:25:34 -0000 On Thu, Apr 24, 2008 at 11:21 PM, Hans Petter Selasky wrote: > I have fixed some issues where the Giant lock was not locked when calling into > the USB stack recently. What version are you at? A stack backtrace from the > panic would also be nice. Make sure that everything is built clean. [mcuee@freebsd7 /usr/home/mcuee/Desktop/usb/i4b]$ svn info Path: . URL: svn://svn.turbocat.net/i4b Repository Root: svn://svn.turbocat.net/i4b Repository UUID: 4429bdba-5c01-0410-9f4f-ee3375ed255f Revision: 651 Node Kind: directory Schedule: normal Last Changed Author: hselasky Last Changed Rev: 651 Last Changed Date: 2008-03-29 20:04:10 +0800 (Sat, 29 Mar 2008) I will update to see if the later code fixed this problem. The backtrace is enclosed in the previous post. The other libusb based program fsusb_demo still works fine. (discussed last time in the thread: http://lists.freebsd.org/pipermail/freebsd-usb/2007-October/004087.html). [mcuee@freebsd7 /usr/home/mcuee/Desktop/build/fsusb]$ ./fsusb_demo --readpot Locating Microchip(tm) PICDEM(tm) FS USB Demo Board (vendor 0x04d8/product 0x000c) usb_set_debug: Setting debugging level to 255 (on) setting USB debug on by adding usb_set_debug(255) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: can't open /dev/usb2: Permission denied usb_os_find_devices: Found /dev/ugen0 on /dev/usb0 usb_control_msg: 128 6 512 0 0xbfbfe964 8 1000 usb_control_msg: 128 6 512 0 0x2820c070 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe964 8 1000 usb_control_msg: 128 6 513 0 0x2820a080 32 1000 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe964 8 1000 usb_control_msg: 128 6 512 0 0x2820a0c0 32 1000 Found USB PICDEM FS USB Demo Board as device '/dev/ugen1' on USB bus /dev/usb1 Communication established. answer was correct! Onboard firmware version is 1.20 Potentiometer now reads 650 usb_os_close: closing endpoint 4 Xiaofan