From owner-freebsd-usb@FreeBSD.ORG Tue Nov 23 22:39:41 2010 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 B8E35106566B; Tue, 23 Nov 2010 22:39:41 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id EAC198FC13; Tue, 23 Nov 2010 22:39:40 +0000 (UTC) Received: by wwd20 with SMTP id 20so8849073wwd.31 for ; Tue, 23 Nov 2010 14:39:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=/VHs0lpSKSyfCFEb+vsYrULT4UreuAe3kr0mQ1QsUoo=; b=GmijduyDdavrmxdyRW0ESaHnz/DV9sqAE04+Hk9PxfpOHh1dzaJpBkh8ETwjnZbUEl BkVnfYF1HCnrd++qmMNw6LcGLtrKpKQUwl9XJ8DW5K+PwDCW0NcMb1xoSPyhg41hg72B lAuLbypHHsXduCl27MOyP+3QfbWDSq6ygycMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=BkhYPOmDYJXaC4eSOFZ0DdlepogIQ9NaQWuRo8jSstMnDpSHwHKavzmIybvqhp+tRM +mvPP5jEewMhWxuEfoPmXRlT5e5qpKD4Oim8hivXU3jSs/1SuJccrxTGxLJ6wOmGPMQQ rnaHBcxfr4iCahH6AkN8ppz9qNbPW59aVhfws= Received: by 10.227.29.102 with SMTP id p38mr8355255wbc.220.1290551978913; Tue, 23 Nov 2010 14:39:38 -0800 (PST) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id k4sm3143348weq.9.2010.11.23.14.39.34 (version=SSLv3 cipher=RC4-MD5); Tue, 23 Nov 2010 14:39:37 -0800 (PST) Received: by weongyo (sSMTP sendmail emulation); Tue, 23 Nov 2010 14:40:02 -0800 From: Weongyo Jeong Date: Tue, 23 Nov 2010 14:40:02 -0800 To: Hans Petter Selasky Message-ID: <20101123224002.GH92881@weongyo> References: <20101123212448.GG92881@weongyo> <201011232319.33678.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011232319.33678.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: freebsd-usb@freebsd.org, Jung-uk Kim Subject: Re: [RFC] USBdump patches X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 22:39:41 -0000 On Tue, Nov 23, 2010 at 11:19:33PM +0100, Hans Petter Selasky wrote: > Hi, > > Please find attached official usbdump patch from HPS trying to re-use as much > as possible of Weongyo's code which was committed not long ago. You need to > SVN up to the latest 9-current. > > This patch should fix all USB-dump issues reported so far! > > 1) Fix for proper offset calculation on ISOCHRONOUS reception. > 2) Fixes for device mode. > 3) PF-virtual-machine is OK (and done before copy of data). > 4) Can load and unload the PF-code like a module. > > How to use: > > cd /usr/src > cat usbdump_r215656_patch.txt | patch > > You need to make new kernel, but not userland. > > Install sys/dev/usb/usb_pf.h into /usr/include/dev/usb/ and make all install > in src/usr.sbin/usbdump . > > After reboot: > > kldload usb_pf > > usbdump -d -1 -vvv > > man usbdump NACK. You already could recognize that the patch is quite big and multiple patches are mixed into one. Please separate into smallest pieces then send freebsd-usb@ again. I don't want to do a jumbo jump. regards, Weongyo Jeong