From owner-freebsd-usb@FreeBSD.ORG Thu Apr 24 15:35:35 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 D8F7D106566B for ; Thu, 24 Apr 2008 15:35:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 879ED8FC16 for ; Thu, 24 Apr 2008 15:35:35 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.133.152] (account mc467741@c2i.net [62.113.133.152] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 911012651; Thu, 24 Apr 2008 17:20:34 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Thu, 24 Apr 2008 17:21:53 +0200 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <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:35:35 -0000 On Thursday 24 April 2008, Xiaofan Chen wrote: > On Tue, Oct 16, 2007 at 8:42 PM, Xiaofan Chen wrote: > > > In the file "ugen.c" in the function "ugen_open_pipe_read()" you will > > > find a "case UE_INTERRUPT:". Some lines further down you will find: > > > > > > /* first transfer clears stall */ > > > sce->read_stall = 1; > > > > > > This you can set to "0". Then recompile and install the "ugen" module > > > and/or kernel. > > > > > > Does your USB hardware work now ? > > > > Yes with the changes, PICkit 2 is happy again under Linux. > > > > ===[mcuee] ~/Desktop/build/mypk2 # sudo python testpk2.py > > set Configuration 1 > > claim Interface 0 > > Turing power on by USB interrupt write > > Sending version command by USB interrupt write > > Getting version command by USB interrupt read > > (2, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) > > > > Thanks a lot. > > Sorry now I am facing problems again with the 7.0-RELEASE > and the HPS USB stack (I am not able to get the stock > kernel to work with interrupt read). > Hi, 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. --HPS