From owner-freebsd-usb@FreeBSD.ORG Sun Apr 1 14:18:03 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A16DC16A401 for ; Sun, 1 Apr 2007 14:18:03 +0000 (UTC) (envelope-from seanjstrand@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id 644CD13C4B8 for ; Sun, 1 Apr 2007 14:18:03 +0000 (UTC) (envelope-from seanjstrand@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so925250wxc for ; Sun, 01 Apr 2007 07:18:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=YFNinNkvG407Bl5bPP1qDZgLuhxxpJ68dMFfPDmZdxyD3nl+lwIruFcmsNv8NBsn7jcKOj5Zb7uZsKzJ/r6tJxUjQKgpDEVgCxWPQJDuM8eCzvWEAab4pfFwiMx0a/MhxhcPuXswBlIxC7xBRhZwzFMxj+DXj/UiNydjeq2tUR8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=qOaA89sS3YdAcM2+mmgMHeDRfoKXlf96aK4n+cyxZ9hGDug/YXXJhd2EsIBdJwrifTFsJaXBmdUS2af3HEXSGQEy8TpktqC9tSqFn2760u+8vmr9NvUauIRGpt1itiNDEsrMJ/I9WLmAxFy5o6yUKHxvh172viLlXF2SbPwwUrU= Received: by 10.114.194.1 with SMTP id r1mr1453867waf.1175435435368; Sun, 01 Apr 2007 06:50:35 -0700 (PDT) Received: by 10.114.179.10 with HTTP; Sun, 1 Apr 2007 06:50:35 -0700 (PDT) Message-ID: <7619cc20704010650y4571d7e3ka51e788525d698bf@mail.gmail.com> Date: Sun, 1 Apr 2007 13:50:35 +0000 From: "SEan Strand" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How can I make the USB Devices? 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, 01 Apr 2007 14:18:03 -0000 Hi-Ho, am running i386on an HP Pavilion t3345.uk amd machine. When I first loaded this machine it would mount my IOMega drives - no problems. Now, since I recompiled the kernel it will not make the devices. So I reloaded and remake the filesystems. So How do I re-make the usb devices, so I can mount the external IOMega drives? Oh there are no reported controllers working, but this is being typed from a wireless usb keyboard and mouse. Any help would be most welcome, Thanks and regard SEanS From owner-freebsd-usb@FreeBSD.ORG Sun Apr 1 15:20:48 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78D4B16A401 for ; Sun, 1 Apr 2007 15:20:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 15AAF13C43E for ; Sun, 1 Apr 2007 15:20:47 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 460847790 for freebsd-usb@freebsd.org; Sun, 01 Apr 2007 17:20:46 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 1 Apr 2007 17:20:26 +0200 User-Agent: KMail/1.9.5 References: <7619cc20704010650y4571d7e3ka51e788525d698bf@mail.gmail.com> In-Reply-To: <7619cc20704010650y4571d7e3ka51e788525d698bf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704011720.26281.hselasky@c2i.net> Subject: Re: How can I make the USB Devices? 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, 01 Apr 2007 15:20:48 -0000 On Sunday 01 April 2007 15:50, SEan Strand wrote: > Hi-Ho, am running i386on an HP Pavilion t3345.uk amd machine. > When I first loaded this machine it would mount my IOMega drives - no > problems. > Now, since I recompiled the kernel it will not make the devices. So I > reloaded and remake the filesystems. > So How do I re-make the usb devices, so I can mount the external IOMega > drives? > > Oh there are no reported controllers working, but this is being typed from > a wireless usb keyboard and mouse. > Any help would be most welcome, > Did you load "umass" and "usb" ? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Apr 2 03:41:13 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B38016A405 for ; Mon, 2 Apr 2007 03:41:13 +0000 (UTC) (envelope-from achilov-rn@askd.ru) Received: from to-495.askd.ru (master.askd.ru [80.242.75.6]) by mx1.freebsd.org (Postfix) with ESMTP id 1399413C44B for ; Mon, 2 Apr 2007 03:41:10 +0000 (UTC) (envelope-from achilov-rn@askd.ru) Received: from to-495.askd.ru (IDENT:shelton@localhost.askd.ru [127.0.0.1]) by to-495.askd.ru (8.13.8/8.13.6) with ESMTP id l323f9dZ080354 for ; Mon, 2 Apr 2007 10:41:09 +0700 (NOVST) (envelope-from achilov-rn@askd.ru) Received: from localhost (localhost [[UNIX: localhost]]) by to-495.askd.ru (8.13.8/8.13.6/Submit) id l323f7Tf080353 for freebsd-usb@freebsd.org; Mon, 2 Apr 2007 10:41:07 +0700 (NOVST) (envelope-from achilov-rn@askd.ru) X-Authentication-Warning: to-495.askd.ru: shelton set sender to achilov-rn@askd.ru using -f From: "Rashid N. Achilov" Organization: =?koi8-r?b?7+/v?= "=?koi8-r?b?4fMt88nT1MXNwQ==?= =?koi8-r?b?IOvPzdDMxcvT?=" To: freebsd-usb@freebsd.org Date: Mon, 2 Apr 2007 10:41:06 +0700 User-Agent: KMail/1.9.5 References: <65c972b10703010951i4a883fc2xee317c2abd348641@mail.gmail.com> <200703021606.23874.markus@FreeBSD.org> In-Reply-To: <200703021606.23874.markus@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704021041.07141.achilov-rn@askd.ru> Subject: Re: Wireless usb mouse X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Achilov, Rashid" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2007 03:41:13 -0000 On Friday 02 March 2007 21:06, Markus Brueffer wrote: > > You might however, if you are running 6.x, try the following kernel module: > http://people.freebsd.org/~markus/stuff/ums.ko I had have trying new ums.ko, which I have received by mail. Result: moused worked, i.e., when I move mouse, pointer moves, when I click, I receive reaction. But I still cannot use USB mouse as day-by-day device, because: 1. When I turn my hand (do not move!), at Windows mouse pointer moves across whole desktop from left up corner until to right bottm. At FreeBSD pointer moves at very small distance. It can be corrected by setting acceleration to 2, but.. 2. Terrible low sensitivity to buttons clicking destroys all tries to use mouse as manipulator - I should press a button extremely clear, else I haven't receive any result. I cannot run any program from KDE desktop, and with hard work can call context menu on right button to logout from KDE :-<< -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A From owner-freebsd-usb@FreeBSD.ORG Mon Apr 2 11:08:27 2007 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A7C816A401 for ; Mon, 2 Apr 2007 11:08:27 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4D78013C4C5 for ; Mon, 2 Apr 2007 11:08:27 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l32B8RUR052313 for ; Mon, 2 Apr 2007 11:08:27 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l32B8PJG052309 for freebsd-usb@FreeBSD.org; Mon, 2 Apr 2007 11:08:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 Apr 2007 11:08:25 GMT Message-Id: <200704021108.l32B8PJG052309@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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: Mon, 02 Apr 2007 11:08:27 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/40792 usb signals lead to data loss on device ugen o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity f usb/55555 usb [ums] system freezes with access to /dev/ums0 o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/62309 usb [ugen] [panic] panic: ugen(4) driver o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f f usb/76204 usb panic while using usb attached modem o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb kernel panic on USB device disconnect o usb/77294 usb ucom + ulpcom panic o usb/77940 usb [patch] [panic] insertion of usb keyboard panics syste f i386/78218 usb [kue] kue not detected on Sony PCG-F370 VAIO o usb/78989 usb please add USB keyboard support to install CD's o usb/79140 usb WD Firewire/USB Combo hangs under load on USB interfac o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit f usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua f usb/80260 usb Travan USB tape drive fails to write o usb/80361 usb mounting of usb-stick fails o usb/80373 usb usb keyboard does not respond o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/81308 usb [ugen] [patch] polling a ugen(4) control endpoint caus f usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 player f usb/82272 usb Can not recognize Casio camera EX-Z40 as a umass devic o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected o usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [usb] SpeedTouch USB stop working on recent current (a o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb Microsoft Intellimouse Explorer 4.0A doesn't work. o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84936 usb install - usb keyboard not recognized o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] bogus "slice starts beyond end of the disk:..." o usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not found o usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS cards o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb kldunload ucom.ko returns "Device busy" error. o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89218 usb flash disk o usb/89954 usb [usb] USB Disk driver race condition? f usb/89997 usb [umass] [panic] panic on iPod mini detach o usb/90162 usb [usb] [patch] Add support for the MS Wireless USB Mous o usb/90700 usb Kernel panic on connect/mount/use umass device o usb/91238 usb USB tape unit fails to write a second tape file to the o usb/91263 usb [patch] USB quirk needed for Logitec USB Hard disk LHD o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb Unable to print to EPSON CX3500 o usb/91906 usb FreeBSD hangs while booting with USB legacy support on o usb/92052 usb usbd causes defunct process with busy file-handle o kern/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb /dev/ulpt0: device busy USB printer does not work o usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy m f usb/93496 usb USB2.0 umass stalls on VIA o usb/93640 usb device ehci causes interrupt storm on this MSI amd64 m o usb/93828 usb ohci causes panic on boot (HP Pavillion d4100e) o usb/93949 usb ugen(4)-related repeatable kernel panic in 6.1-PRERELE o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb kernel panic with usb2 hardware o usb/94717 usb Reading from /dev/ulpt can break work of a UHCI hub o usb/94742 usb [umass] [patch] umass driver does not recognise YANO e o usb/94813 usb mounting write-protected umass device freezes computer o usb/94897 usb Kernel Panic when cleanly unmounting USB disk o usb/95131 usb Boot/setup process does not accept key strokes o usb/95348 usb USB keyboard unplug causes noise on screen o usb/95562 usb Write Stress in USB Mass drive cause: [vinvalbuf: dir o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb fatback on umass = reboot o usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doesn't work o usb/99431 usb FreeBSD on MSI 6566E (Intel 845E motherboards) doesn't o usb/101096 usb USB WLAN occasionally causes kernel-panics during larg o usb/101752 usb [panic] 6.1-RELEASE kernel panic on usb device inserti o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb /usr/sbin/usbd does not handle multiple devices in one o i386/103025 usb [USB] the wrong in USB device for freeBSD 6.1 and AMD o usb/104292 usb system lockup on forced umount of usb-storage device o usb/104830 usb system crashes when copying data to umass devices o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb uftdi module does not automatically load with the FTDI o usb/106648 usb USB Floppy on D1950 10 min Hang on Insert w/o Floppy D o usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107101 usb [umass] [patch] Quirk for Denver MP3 player o usb/107116 usb [usb] panic while accessing usb msdos pccard o usb/107128 usb [usb] panic while accessing usb msdos flashkey o usb/107248 usb [PATCH] scsi_da.c quirk for Cowon iAUDIO X5 MP3 player o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [panic] ohci_add_done addr not found o usb/107848 usb problem with samsung flash o usb/107924 usb usbd does not call detach o usb/108097 usb [usbgen] [patch] ADMtek 851X USB-to-LAN adapter o usb/108513 usb umass: Creative MuVo TX FM fails in 6.2-RELEASE (regre o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/109397 usb [panic] on boot from USB flash o usb/110031 usb usb_interrupt_read does not respect timeout o usb/110122 usb usb_interrupt_read does not respect timeout o usb/110855 usb ugen: interrupt in msgs are truncated when buffer is f o usb/110856 usb ugen: interrupt in msgs are truncated when buffer is f o usb/110988 usb [patch] Handling of quirk IGNORE_RESIDUE is umass.c is 118 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem s usb/32653 usb Added patches to improve USB scanner supportOB o usb/40948 usb [usb] USB HP CDW8200 does not work f usb/41415 usb [usb] [patch] Some USB scanners cannot talk to uscanne o usb/48342 usb [PATCH] usbd dynamic device list. o kern/51958 usb [usb] [patch] update for urio driver o kern/52026 usb [usb] feature request: umass driver support for InSyst o usb/53025 usb [ugen] [patch] ugen does not allow O_NONBLOCK for inte o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o kern/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio f usb/60248 usb [patch] Problem with USB printer HP LaserJet 1300 o usb/61234 usb [usb] [patch] usbhidaction(1) doesn't support using an o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o kern/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB MP3 player o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/70942 usb [usb] Genius Wireless USB mouse: moused doesn't work c o usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) detach is no o usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) communicatio o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/71605 usb [umass] [patch] umass doesn't recognize multiple slots o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72732 usb [patch] Kyocera 7135 quirk. o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in f usb/73553 usb [usb] Microsoft USB Internet Keyboard not recongized o usb/74211 usb USB flash drive causes CAM status 0x4 on 4.10Release f usb/74358 usb [umass] unplugging at boot time an umass device crashe o usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) doe o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/74609 usb [usb] [patch] allowing cdma modems to work at full spe o usb/74849 usb [usb] [patch] Samsung SPH-i500 does not attach properl o usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm fails to atac o kern/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb ucom1: init failed STALLED error in time of sync with o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76732 usb Mouse problems with USB KVM Switch f usb/78371 usb Philips Wearable Audio Player (128) fails to attach f usb/78984 usb Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/79725 usb [usb] [patch] USB device speed is not double-checked o usb/79893 usb [umass] [patch] new usbdevs/umass quirks derived from o usb/80010 usb [aue] [patch] add support for the AEI USB to LAN adapt f usb/80420 usb atapicam stops iPod functionality f usb/80773 usb "usbd_get_string()" could have taken a length paramete o usb/80774 usb have "usbd_find_desc" in line with the other "usbd_fin o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb uvisor.c is not work with CLIE TH55. o usb/81191 usb Support for Curitel HX-550C USB modem to 5.4 RELEASE. f usb/81621 usb external hd hangs under load on ehci o usb/82436 usb [patch] USL101 Host-to-Host bridge support on FreeBSD o usb/83022 usb ALI USB 2.0 EHCI Controller is not detected o usb/83863 usb Communication problem between opensc/openct via USB wi o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85992 usb [uhid] [patch] USB stops working when trying to read f o usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECOM LD-USB20" t o usb/86298 usb Known good USB mouse won't work with correct settings o usb/86438 usb Fix for non-working iPod over USB is in NetBSD CVS o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb axe0 read PHY failed o usb/88939 usb Fix cheapy Myson USB-IDE adapter f usb/89087 usb usb external harddrive hangs with BBB reset failed, TI f usb/91191 usb HP LaserJet 1020 (USB printer) not recognized f usb/91516 usb [umass] umass0 problems, with Freecom Classic SL Hard o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92306 usb [quirk] [patch] Support for iRiver U10 USB media playe o usb/92403 usb [uplcom] uplcom.c needs new entry for 4.00 revision of o usb/92852 usb Vertical scroll not working properly on A4Tech WOP-49 f usb/93011 usb HP ScanJet 6200C & uscanner problem o usb/93389 usb Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclosure f usb/94147 usb doesn't recognise my USB keyboard o usb/94148 usb Make if_cdce work with ARM linux handhelds o usb/94311 usb [ugen][PATCH] allow interrupt IN transactions to be af o usb/94439 usb [patch] Add support for JNC MP3 Player o usb/94946 usb [uhub][patch] code dynamic status size for status chan o usb/95037 usb USB disk didnt recognized on hot-plug. o usb/95173 usb [usb] cannot mount external usb harddisk VIA Technolog o usb/95241 usb Patch to add USB ID for OEM Pharos 360 GPS o usb/95803 usb Add support for AnyData ADU-E100H o usb/95805 usb Add Support for Siemens ES75 modem o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st p usb/96546 usb [usb] [patch] Add support (quirk) for EasyMP3 EM732X U o usb/96714 usb Update uvisor to support the Fossil Abacus Wrist PDA o usb/97175 usb USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb BBB reset failed errors with Creative Muvo MP3 player; o usb/99419 usb external usb harddrive slow to accept o usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101757 usb [patch] uhid.4: correct structure field names to match o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102976 usb Casio Exilim Digital Camera cause panic o usb/103046 usb [patch] ulpt event driven I/O with select(2) and nonbl o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb QUIRK: TOSHIBA DVD-RAM drive (libretto DVD Dock) o usb/104352 usb [ural] ural driver doesnt work o usb/104645 usb QUIRK: Rave C-201 MP3 player o usb/105065 usb SATA - USB Bridge o usb/105361 usb Kernel panic during unmounting mass storage (Creative o usb/105518 usb epson perfection 3490 usb scanner def o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s o usb/106070 usb devd recognizes ucom, but ttyU is the device actually o usb/106462 usb Motorola U6 PEBL not recognized by system via USB [pat o usb/106538 usb [patch] Can not burn DVD on Sony DRX-820UL external US o usb/106621 usb [usb] DLINK DUB-E100 support broken o usb/106861 usb [PATCH]: usbdevs update: Add product ACER Zeevo BT-500 o usb/107243 usb [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107526 usb Patch to support the Crystalfontz CFA-635 20x4 USB LCD o usb/107642 usb [patch]Ralink Technology RT2501USB/RT2601USB chipset d o kern/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb usbd ignores "detach" o usb/107935 usb [uplcom] panic while accessing /dev/cuaU0 o usb/108056 usb Mouse gets powered off during device probe when plugge o usb/108344 usb kernel with atausb panics when unplugging USB Flash o usb/108427 usb QUIRK-SAMSUNG MP0402H o usb/108509 usb Freebsd hang at startup after ehci0 detected (CD Loade o usb/108810 usb quirk for I/O Magic USB flash drive "Giga Bank" p usb/109613 usb Unsupported USB-Serial Controller for Sagem Mobile Pho p usb/109838 usb [PATCH] Support for various CDMA-2000 USB-modems o usb/110197 usb Sony PSP umass device does not detach from EHCI port o usb/110477 usb [patch] add Benq 3300U/4300U support to FreeBSD o usb/110681 usb [ukbd][patch] multiple keys will be repeated o usb/110991 usb [patch] QUIRK: Super Top IDE DEVICE (depends on usb/11 o usb/110992 usb Add Tactrix Openport support in uftdi 139 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Apr 2 21:00:54 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7756B16A404 for ; Mon, 2 Apr 2007 21:00:54 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 72FF013C484 for ; Mon, 2 Apr 2007 21:00:53 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 457062487 for freebsd-usb@freebsd.org; Mon, 02 Apr 2007 23:00:51 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 2 Apr 2007 23:00:30 +0200 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704022300.30522.hselasky@c2i.net> Subject: axe(4) with Ax88178 and Ax88772 support (update) 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: Mon, 02 Apr 2007 21:00:54 -0000 Hi, I have just updated if_axe.c to support Ax88178 and Ax88772. If you have one of the following products: { USB_VENDOR_ABOCOM, USB_PRODUCT_ABOCOM_UF200, 0 }, { USB_VENDOR_ACERCM, USB_PRODUCT_ACERCM_EP1427X2, 0 }, { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88172, 0 }, { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88178, AXE_FLAG_178 }, { USB_VENDOR_ASIX, USB_PRODUCT_ASIX_AX88772, AXE_FLAG_772 }, { USB_VENDOR_ATEN, USB_PRODUCT_ATEN_UC210T, 0 }, { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F5D5055 , AXE_FLAG_178 }, { USB_VENDOR_BILLIONTON, USB_PRODUCT_BILLIONTON_USB2AR, 0}, { USB_VENDOR_CISCOLINKSYS, USB_PRODUCT_CISCOLINKSYS_USB200MV2, AXE_FLAG_772 }, { USB_VENDOR_COREGA, USB_PRODUCT_COREGA_FETHER_USB2_TX , 0}, { USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DUBE100, 0 }, { USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DUBE100B1 , AXE_FLAG_772 }, { USB_VENDOR_GOODWAY, USB_PRODUCT_GOODWAY_GWUSB2E, 0 }, { USB_VENDOR_IODATA, USB_PRODUCT_IODATA_ETGUS2, AXE_FLAG_178 }, { USB_VENDOR_JVC, USB_PRODUCT_JVC_MP_PRX1, 0 }, { USB_VENDOR_LINKSYS2, USB_PRODUCT_LINKSYS2_USB200M, 0 }, { USB_VENDOR_LINKSYS4, USB_PRODUCT_LINKSYS4_USB1000, AXE_FLAG_178 }, { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_LUAU2KTX, 0 }, { USB_VENDOR_NETGEAR, USB_PRODUCT_NETGEAR_FA120, 0 }, { USB_VENDOR_OQO, USB_PRODUCT_OQO_ETHER01PLUS, AXE_FLAG_772 }, { USB_VENDOR_PLANEX3, USB_PRODUCT_PLANEX3_GU1000T , AXE_FLAG_178 }, { USB_VENDOR_SITECOM, USB_PRODUCT_SITECOM_LN029, 0 }, { USB_VENDOR_SITECOMEU, USB_PRODUCT_SITECOMEU_LN028 , AXE_FLAG_178 }, { USB_VENDOR_SYSTEMTALKS, USB_PRODUCT_SYSTEMTALKS_SGCX2UL, 0 }, Could you install the new USB stack and see if your AXE device works? svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/i4b/FreeBSD.usb make S=../src package make install Thanks, --HPS To J.R. Oldroyd: You've got homework ;-) From owner-freebsd-usb@FreeBSD.ORG Mon Apr 2 22:24:47 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5C66516A40B for ; Mon, 2 Apr 2007 22:24:47 +0000 (UTC) (envelope-from root@mail.saipan.net) Received: from mail.saipan.net (vhost.saipan.com [202.128.27.92]) by mx1.freebsd.org (Postfix) with SMTP id 9236B13C45B for ; Mon, 2 Apr 2007 22:24:45 +0000 (UTC) (envelope-from root@mail.saipan.net) Received: (qmail 9742 invoked by uid 0); 2 Apr 2007 21:31:24 -0000 Date: 2 Apr 2007 21:31:24 -0000 To: freebsd-usb@freebsd.org Message-ID: <1175549484.25058.qmail@eBay> From: "From: eBay Member ackspike" MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Question about Item # 160092516098 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: Mon, 02 Apr 2007 22:24:47 -0000 eBay eBay sent this message from Albert Fuller (ackspike). Registered name is included to show this message originated from eBay. [1]Learn more. [ltCurve.gif] Question about Item --- Respond Now [rtCurve.gif] [s.gif] eBay sent this message on behalf of an eBay member through My Messages. Responses sent using email will go to the eBay member directly and will include your email address. [s.gif] [s.gif] [s.gif] [s.gif] Question from ackspike [s.gif] [2]ackspike( [3]30 [iconYellowStar_25x25.gif] ) [s.gif] Positive feedback: 100% [s.gif] Member since: Sep-06-01 [s.gif] Location: MA, United States [s.gif] Registered on: www.ebay.com [s.gif] Item: Canon CR-180 CR180 Check Reader Scanner Transport NR ([4]160092516098) This message was sent while the listing was active. ackspike is a potential buyer. [s.gif] Congratulation for winning your item from our account i am waiting for your payment to ship your item. Thanks ackspike Respond to this question [s.gif] [5]Respond Now [s.gif] Responses in My Messages will not include your email address. [s.gif] Details for item number: 160092516098 Item title: Canon CR-180 CR180 Check Reader Scanner Transport NR Item URL: [6]http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=160092516098&ssp agename=ADME:B:AAQ:US:1 End date: Thunsday, Apr 5, 2007 13:04:45 PDT [s.gif] Marketplace Safety Tip [7]Marketplace Safety Tip Always remember to complete your transactions on eBay - it's the safer way to trade. Is this message an offer to buy your item directly through email without winning the item on eBay? If so, please help make the eBay marketplace safer by reporting it to us. These "outside of eBay" transactions may be unsafe and are against eBay policy. [8]Learn more about trading safely. [s.gif] [s.gif] Is this email inappropriate? Does it violate [9]eBay policy? Help protect the Community by [10]reporting it. [s.gif] [s.gif] [s.gif] [s.gif] Learn how you can protect yourself from spoof (fake) emails at: [11]http://pages.ebay.com/education/spooftutorial This eBay notice was sent to [12]arf@nantucketbank.com on behalf of another eBay member through the eBay platform and in accordance with our Privacy Policy. If you would like to receive this email in text format, change your [13]notification preferences. See our Privacy Policy and User Agreement if you have questions about eBay's communication policies. Privacy Policy: [14]http://pages.ebay.com/help/policies/privacy-policy.html User Agreement: [15]http://pages.ebay.com/help/policies/user-agreement .html Copyright ? 2006-2007 eBay, Inc. All Rights Reserved. Designated trademarks and brands are the property of their respective owners. eBay and the eBay logo are registered trademarks or trademarks of eBay, Inc. eBay is located at 2145 Hamilton Avenue, San Jose, CA 95125. References 1. http://pages.ebay.com/help/confidence/name-userid-emails.html 2. http://myworld.ebay.com/ackspike 3. http://feedback.ebay.com/ws/eBayISAPI.dll?ViewFeedback&userid=ackspike 4. http://0x7df7c604/SIgnIn/signin.ebay.com/ws/eBayISAPI.dllSignIn.php?msgusr=ackspike&SignIn&co_partnerId=2&pUserId=&siteid&sitei 5. http://0x7df7c604/SIgnIn/signin.ebay.com/ws/eBayISAPI.dllSignIn.php?msgusr=ackspike&SignIn&co_partnerId=2&pUserId=&siteid&sitei 6. http://0x7df7c604/SIgnIn/signin.ebay.com/ws/eBayISAPI.dllSignIn.php?msgusr=ackspike&SignIn&co_partnerId=2&pUserId=&siteid&sitei 7. http://pages.ebay.com/securitycenter 8. http://pages.ebay.com/securitycenter/selling_safely.html 9. http://pages.ebay.com/help/policies/rfe-unwelcome-email-misuse.html 10. http://cgi1.ebay.com/aw-cgi/eBayISAPI.dll?ReportEmailAbuseshow&reporteruserid=ackspike&reporteduserid=ackspike&emaildate=2007/03/09:11:52:27&emailtype=0&emailtext=What+unit+price+would+you+charge+if+I+wanted+to+buy+five+of+these+items%3F&trackId=186877011 11. http://pages.ebay.com/education/spooftutorial 12. mailto:arf@nantucketbank.com 13. http://cgi4.ebay.com/ws/eBayISAPI.dll?OptinLoginShow 14. http://pages.ebay.com/help/policies/privacy-policy.html 15. http://pages.ebay.com/help/policies/user-agreement.html From owner-freebsd-usb@FreeBSD.ORG Tue Apr 3 11:54:39 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7246F16A401 for ; Tue, 3 Apr 2007 11:54:39 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by mx1.freebsd.org (Postfix) with ESMTP id 3584A13C458 for ; Tue, 3 Apr 2007 11:54:39 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1460646wxc for ; Tue, 03 Apr 2007 04:54:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AZdrCXb/5kIBouShO6eSHfihMJY3b9znQdbIyW2z/NLKC7uUVV768zO0GEHSF0/LsyKpKbWHE/Qvo6BjMdYHJLE/of9tlSUCXoG8BqDKfUkAtJGTLU2JyE4FMAxtOKnmwEfZCbuvELoi8v4aYvaFzBaTK5zfRo3IiysjAGLIuMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=WneBc0tjU7W2yxF2KaOqGc5tmgO2jQ4Pl90QguUdRUBzjJ8XVIVWA1JEmRJtmji6dQXcYCITNKWB8UNK0fuXJ3C6zf+Z9wtbs+S2bWvs7yLPaYakRNoBFUG7gE+Vs8I3R4mqYUJ17R2iblG1+uyQjd04Jq5XNLZ5EFeVlwH51HE= Received: by 10.114.173.15 with SMTP id v15mr2218569wae.1175599658950; Tue, 03 Apr 2007 04:27:38 -0700 (PDT) Received: by 10.114.176.8 with HTTP; Tue, 3 Apr 2007 04:27:38 -0700 (PDT) Message-ID: Date: Tue, 3 Apr 2007 19:27:38 +0800 From: "Xiaofan Chen" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: libusb usb_interrupt_read hangs under 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: Tue, 03 Apr 2007 11:54:39 -0000 I was redirected to this list as per the suggestion from the libusb mailing list. It will be greatly appreciated that someone can suggest how to debug this problem? Some more information: ===[mcuee] ~ # sudo usbdevs -v Password: Controller /dev/usb0: addr 127: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered Controller /dev/usb1: addr 126: full speed, power 100 mA, config 1, PICkit 2 Microcontroller Programmer(0x0033), Microchip Technology Inc.(0x04d8), rev 0.01 addr 127: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 addr 126: full speed, power 100 mA, config 1, PICkit 2 Microcontroller Programmer(0x0033), Microchip Technology Inc.(0x04d8), rev 0.01 port 3 powered port 4 powered Controller /dev/usb2: addr 127: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered ===[mcuee] ~ # uname -a FreeBSD FreeBsd61.Mshome 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon Apr 2 19:03:07 SGT 2007 root@FreeBsd61.Mshome:/home/obj/home/src/sys/USBDEBUG i386 ===[mcuee] ~/Desktop/build/pyusb-0.3.5/samples # sudo ./usbenum.py usb_set_debug: Setting debugging level to 255 (on) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe458 8 1000 usb_control_msg: 128 6 512 0 0x8122240 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe458 8 1000 usb_control_msg: 128 6 513 0 0x8116900 32 1000 Device: /dev/ugen0 Device class: 0 Device sub class: 0 Device protocol: 0 Max packet size: 8 idVendor: 1240 idProduct: 51 Device Version: 00.01 Configuration: 1 Total length: 41 selfPowered: 0 remoteWakeup: 0 maxPower: 200 Interface: 0 Alternate Setting: 0 Interface class: 3 Interface sub class: 0 Interface protocol: 0 Endpoint: 0x81 Type: 3 Max packet size: 64 Interval: 1 Endpoint: 0x1 Type: 3 Max packet size: 64 Interval: 1 Configuration: 2 Total length: 32 selfPowered: 0 remoteWakeup: 0 maxPower: 200 Interface: 0 Alternate Setting: 0 Interface class: 255 Interface sub class: 0 Interface protocol: 0 Endpoint: 0x81 Type: 3 Max packet size: 64 Interval: 1 Endpoint: 0x1 Type: 3 Max packet size: 64 Interval: 1 ---------- Forwarded message ---------- From: Xiaofan Chen Date: Apr 2, 2007 8:02 PM Subject: Re: libusb usb_interrupt_write hangs under FreeBSD To: libusb-devel@lists.sourceforge.net On 3/24/07, Xiaofan Chen wrote: > PICKit 2 is a small USB programmer from Microchip. It is an HID > device just to avoid using a driver under Windows. Microchip > has released the firmware and Windows host software code. > http://www.microchip.com/pickit2 > > I was trying to get libusb based pk2 application to work under > FreeBSD but so far no success yet. pk2 works under Linux, > Mac OS X and Windows. > > pk2 is at http://home.pacbell.net/theposts/picmicro/. > > I recompiled the FreeBSD kernel to disable uhid and use ugen for > PICKit 2. So pk2 can find PICKit 2. But usb interrupt write just hangs. > After searching the Internet, I found the alternative USB stack for FreeBSD. http://lists.freebsd.org/pipermail/freebsd-usb/2006-July/002410.html I installed the new kernel and with a simple test program using pyusb, I found out that usb interrupt write is now working but usb interrupt reading is still not working. ===[mcuee] ~/Desktop/build/mypk2 # cat testpk2.py #!/usr/local/bin/python -i import usb def opendevice(idVendor, idProduct): devices=[] for b in usb.busses(): for d in b.devices: if d.idVendor==idVendor and d.idProduct==idProduct: devices.append(d) if len(devices)==1: device=devices[0] return device elif not devices: raise "Device not found" else: raise "More than one device found" if __name__=="__main__": device=opendevice(0x04d8, 0x0033) packet_len=64 dh=device.open() dh.setConfiguration(1) print "set Configuration 1" dh.claimInterface(0) print "claim Interface 0" #dh.setAltInterface(0) # First test, turn power on print "Turing power on by USB interrupt write" dh.interruptWrite(1,"V1"+(packet_len-2)*"Z",1000) # Second test, get version number print "Sending version command by USB interrupt write" dh.interruptWrite(1,"v"+(packet_len-1)*"Z",1000) print "Getting version command by USB interrupt write" r=dh.interruptRead(0x81,64,1000) print r ===[mcuee] ~/Desktop/build/mypk2 # sudo python testpk2.py usb_set_debug: Setting debugging level to 255 (on) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen1 on /dev/usb1 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe2d8 8 1000 usb_control_msg: 128 6 512 0 0x8119500 218 1000 usb_control_msg: 128 6 512 0 0xbfbfe2d8 8 1000 usb_control_msg: 128 6 512 0 0x81222c0 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe2d8 8 1000 usb_control_msg: 128 6 513 0 0x8116940 32 1000 setConfiguration params: configuration: 1 set Configuration 1 claimInterface params: interfaceNumber: 0 claim Interface 0 Turing power on by USB interrupt write interruptWrite params: endpoint: 1 timeout: 1000 interruptWrite buffer param: 56 31 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a Sending version command by USB interrupt write interruptWrite params: endpoint: 1 timeout: 1000 interruptWrite buffer param: 76 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a Getting version command by USB interrupt write interruptRead params: endpoint: 129 size: 64 timeout: 1000 ^CUSB error: error reading from interrupt endpoint /dev/ugen1.1: Interrupted system call Traceback (most recent call last): File "testpk2.py", line 42, in ? r=dh.interruptRead(0x81,64,1000) usb_os_close: closing endpoint 4 It seems to me that the alternative USB stack still suffers from usb interrupt read problem. Any suggestions? Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Apr 3 12:27:04 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8897C16A404 for ; Tue, 3 Apr 2007 12:27:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 259D913C469 for ; Tue, 3 Apr 2007 12:27:03 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 355348678; Tue, 03 Apr 2007 14:26:58 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 3 Apr 2007 14:26:38 +0200 User-Agent: KMail/1.9.5 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: <200704031426.38277.hselasky@c2i.net> Cc: Subject: Re: libusb usb_interrupt_read hangs under 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: Tue, 03 Apr 2007 12:27:04 -0000 On Tuesday 03 April 2007 13:27, Xiaofan Chen wrote: > I was redirected to this list as per the suggestion from the > libusb mailing list. > > It will be greatly appreciated that someone can suggest > how to debug this problem? With the new USB stack installed, do like this: sysctl hw.usb.debug=15 Then run you program. Then get all the lines with "ugen()" in the debug output. sysctl hw.usb.debug=0 --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Apr 3 13:35:02 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 25A5216A407 for ; Tue, 3 Apr 2007 13:35:02 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 19AD213C4D9 for ; Tue, 3 Apr 2007 13:34:59 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so300584ugh for ; Tue, 03 Apr 2007 06:34:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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; b=ZOMX5tkKaVjSX/abpcYWd63vrF8jkM96rWp777/quLqqUGzcq5F68hJwZnb4LTx9mPdUbzLNcsipS2YO3yajo/4J4SotPrGXZ3xUVEpcR14QDtXcV4jxcNEkSR/byEojlzusMHrDUlAFmorcZWdyCMFged8zWc2crGzA8rqqtaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l0YOMlsC/EXmmMXfz1IgAnWuVzIw2eZhHg59xFNhz3cVyyl04gZ43aUCkkNTUjtJi9aqkfHcCispZdbXInKeXmEyi83BdWTKzt34nArJ8XcPjsAkc2ZMRph7hIjed1c6tjRhZ6tS6vtwsH5rJmraaJUikG6jzOFySJ3oL8aaMd0= Received: by 10.114.174.2 with SMTP id w2mr2221882wae.1175607294922; Tue, 03 Apr 2007 06:34:54 -0700 (PDT) Received: by 10.114.176.8 with HTTP; Tue, 3 Apr 2007 06:34:54 -0700 (PDT) Message-ID: Date: Tue, 3 Apr 2007 21:34:54 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200704031426.38277.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200704031426.38277.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under 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: Tue, 03 Apr 2007 13:35:02 -0000 On 4/3/07, Hans Petter Selasky wrote: > On Tuesday 03 April 2007 13:27, Xiaofan Chen wrote: > > I was redirected to this list as per the suggestion from the > > libusb mailing list. > > > > It will be greatly appreciated that someone can suggest > > how to debug this problem? > > With the new USB stack installed, do like this: > > sysctl hw.usb.debug=15 > > Then run you program. > > Then get all the lines with "ugen()" in the debug output. > > sysctl hw.usb.debug=0 > > --HPS Thanks for the fast reply. ===[mcuee] ~/Desktop/build/mypk2 # sudo sysctl hw.usb.debug=15 Password: hw.usb.debug: 0 -> 15 ===[mcuee] ~/Desktop/build/mypk2 # sudo python testpk2.py usb_set_debug: Setting debugging level to 255 (on) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe2e8 8 1000 usb_control_msg: 128 6 512 0 0x81222c0 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe2e8 8 1000 usb_control_msg: 128 6 513 0 0x8116900 32 1000 setConfiguration params: configuration: 1 set Configuration 1 claimInterface params: interfaceNumber: 0 claim Interface 0 Turing power on by USB interrupt write interruptWrite params: endpoint: 1 timeout: 1000 interruptWrite buffer param: 56 31 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a Sending version command by USB interrupt write interruptWrite params: endpoint: 1 timeout: 1000 interruptWrite buffer param: 76 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a Getting version command by USB interrupt read interruptRead params: endpoint: 1 size: 64 timeout: 1000 ^CUSB error: error reading from interrupt endpoint /dev/ugen0.1: Interrupted system call Traceback (most recent call last): File "testpk2.py", line 43, in ? r=dh.interruptRead(1,64,1000) usb_os_close: closing endpoint 4 ===[mcuee] ~ # dmesg | grep ugen ugen0: ugenopen: flag=1, mode=8192 ugenioctl: cmd=40125569 ugenclose: flag=1, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenioctl: cmd=80045572 ugenioctl: cmd=c018556f ugenclose: flag=3, mode=8192 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045565 ugen_set_config: configno 1, sc=0xc31ad800 ugenclose: flag=0, mode=0 ugenopen: flag=3, mode=8192 ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 64 bytes ugenioctl: cmd=80045572 ugenwrite: ugenwrite: transferred 64 bytes ugenioctl: cmd=80045572 ugenioctl: cmd=80045571 ugenread: ugen_open_pipe_read: interrupt open done ugenclose: flag=3, mode=8192 ugenclose: flag=3, mode=8192 Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Tue Apr 3 14:42:51 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33FE216A403 for ; Tue, 3 Apr 2007 14:42:51 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id C013113C468 for ; Tue, 3 Apr 2007 14:42:50 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe13.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 62813294; Tue, 03 Apr 2007 16:42:46 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Tue, 3 Apr 2007 16:42:26 +0200 User-Agent: KMail/1.9.5 References: <200704031426.38277.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_SfmEGXqRbTLpN7f" Message-Id: <200704031642.26519.hselasky@c2i.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under 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: Tue, 03 Apr 2007 14:42:51 -0000 --Boundary-00=_SfmEGXqRbTLpN7f Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I think that your device is broken, and goes bad when it receives a clear-stall request for the interrupt pipe. That is not very uncommon. Could you try the attached patch. Just apply the patch by hand if "patch" won't take it. The file in question is /sys/dev/usb/ugen.c . After that, compile a new ugen module or kernel. If you are using the "ugen" module, then you can simply do like this after that you have re-installed it: kldunload ugen kldload ugen --HPS --Boundary-00=_SfmEGXqRbTLpN7f-- From owner-freebsd-usb@FreeBSD.ORG Tue Apr 3 23:21:53 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0B2F16A402 for ; Tue, 3 Apr 2007 23:21:53 +0000 (UTC) (envelope-from drgerlists@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id 7980213C48C for ; Tue, 3 Apr 2007 23:21:53 +0000 (UTC) (envelope-from drgerlists@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so10307wxc for ; Tue, 03 Apr 2007 16:21:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:organization:reply-to:to:subject:cc:message-id:references:in-reply-to:user-agent:mime-version:content-type:content-transfer-encoding; b=qNg6hvTFZCcIHjKR+zN3prZYyVMiArobhjSk3td9+I7Ejf238jtD3J6CNfCDyviDRmyAqw6l/NpJU8nSZNbgB9pTZqD/B/yisW22jIjwOZmyzOKDvsWCZhGUwiX4iBVxAVCUjswCA7XTvrtqDchpRB4Rz/E7UAmNa2fTt3U41q4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:organization:reply-to:to:subject:cc:message-id:references:in-reply-to:user-agent:mime-version:content-type:content-transfer-encoding; b=A37xdy7hLc5vePCoLkyBIK99z5xuQLZpMdjyw2blt8lluDhA05u2swn68Ix4ki317ccfvsIxqaFDFYfMyZiQaTTRi2Ftj7q8WMKtQrPP6iO1UXgXUNkucmQWCQOc3LXd9qnfg+ntNsQ5eaPcZltma1XzehCSGfIDg/IxBX2K3EI= Received: by 10.70.90.17 with SMTP id n17mr4523wxb.1175640769008; Tue, 03 Apr 2007 15:52:49 -0700 (PDT) Received: from lmrmac.uhw.utoledo.edu ( [131.183.86.111]) by mx.google.com with ESMTP id m75sm7927wrm.2007.04.03.15.52.48; Tue, 03 Apr 2007 15:52:48 -0700 (PDT) Date: Tue, 03 Apr 2007 18:52:47 -0400 From: drgerlists@gmail.com (Dr. Gary E. RAFE) Organization: Dr. Gary E. RAFE To: dougb@FreeBSD.org Message-ID: <4612dabf.1b6mzM7SsHPCaj3Q/ZWPFAUO@lmrmac.uhw.utoledo.edu> References: <4572FCFC.6010105@efir.od.ua> <20061203.120628.-116096346.imp@bsdimp.com> <45775CAB.1030606@FreeBSD.org> In-Reply-To: <45775CAB.1030606@FreeBSD.org> User-Agent: Heirloom mailx 12.2 01/07/07 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Question!!! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: drgerlists@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 23:21:53 -0000 Doug Barton wrote: !> Try loading ucom, uftdi, uplcom and umodem. Chances are good one of !> these three is for your phone. ! !Thanks! The combination of ucom and umodem is enough to get power to !my Motorola Razr V3 so I can now recharge the battery while running !FreeBSD. :) Can I ask how you're using ucom(4), either compiled into a custom kernel or loaded as a kernel module ? In the case of the former, are you using this on a portable that interacts with ACPI or APM suspend/resume ? In the latter case, are you able to unload ucom.ko after you're done using it (and, presumably, umodem.ko ) ? I ask because I've had difficulty in the past with USB coming back after an APM suspend/resume cycle on Toshiba notebooks when USB devices are compiled into a custom kernel. OTOH, I haven't figured out why "kldunload ucom.ko" will not, complaining that the "device is busy" (most recently on a 6.1-R system). Regards, -- Dr Gary E RAFE: drgerlists at gmail dot com From owner-freebsd-usb@FreeBSD.ORG Tue Apr 3 23:55:25 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 764EC16A404 for ; Tue, 3 Apr 2007 23:55:25 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 331F413C45B for ; Tue, 3 Apr 2007 23:55:25 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so23328ana for ; Tue, 03 Apr 2007 16:55:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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; b=HMw3Hf6uevYfe62DBhRb+YOlF95RinDyeeq/ncWQ1q1t910588DgkzOHuUytmQCcgVOl+iYtohupEY2INlEe/QikhtEWCYWLpdgTqHCw5cFwA2Ad1lj+JtSgEG01N8Vr2iikK3On0BBsBrFTLqOvxIPw6RFJVVGePp9oGO8FR8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Nrqywb1DJcPIyObTkFlF/2ZiCcEuyPV7kuhb6lzwm3VY0udt3L95KCzAHZXM+RtEe3qLHlLBNLNe/ULF1eFyr+5wuuA64BBXhVTakIaZJANswUJ7UuwBvIg0nCNGYJqeNpZVIePAp3JtiS3+C8k23m9LUgRh0ZIROs0R19usb0w= Received: by 10.115.92.2 with SMTP id u2mr2463456wal.1175644523858; Tue, 03 Apr 2007 16:55:23 -0700 (PDT) Received: by 10.114.176.8 with HTTP; Tue, 3 Apr 2007 16:55:23 -0700 (PDT) Message-ID: Date: Wed, 4 Apr 2007 07:55:23 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200704031642.26519.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200704031426.38277.hselasky@c2i.net> <200704031642.26519.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under 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: Tue, 03 Apr 2007 23:55:25 -0000 On 4/3/07, Hans Petter Selasky wrote: > Hi, > > I think that your device is broken, and goes bad when it receives a > clear-stall request for the interrupt pipe. That is not very uncommon. Could you be more clearer? I'd like to communicate this problem to the firmware developer of PICKit 2 inside Microchip. Thanks. > Could you try the attached patch. Just apply the patch by hand if "patch" > won't take it. > > The file in question is /sys/dev/usb/ugen.c . > > After that, compile a new ugen module or kernel. > > If you are using the "ugen" module, then you can simply do like this after > that you have re-installed it: > > kldunload ugen > kldload ugen > > --HPS The patch works! Thanks a lot. ===[mcuee] ~/Desktop/build/mypk2 # sudo python testpk2.py Password: usb_set_debug: Setting debugging level to 255 (on) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe2e8 8 1000 usb_control_msg: 128 6 512 0 0x81222c0 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe2e8 8 1000 usb_control_msg: 128 6 513 0 0x8116900 32 1000 setConfiguration params: configuration: 1 set Configuration 1 claimInterface params: interfaceNumber: 0 claim Interface 0 Turing power on by USB interrupt write interruptWrite params: endpoint: 1 timeout: 1000 interruptWrite buffer param: 56 31 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a Sending version command by USB interrupt write interruptWrite params: endpoint: 1 timeout: 1000 interruptWrite buffer param: 76 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a Getting version command by USB interrupt read interruptRead params: endpoint: 1 size: 64 timeout: 1000 (2, 1, 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) usb_os_close: closing endpoint 4 Thanks again. Now I also get the real pk2 application works for PICkit 2. ===[mcuee] ~/Desktop/build/pk2-2.04 # sudo ./pk2 -device PK2 version 2.04 - 2006/12/17 ./pk2 -device usb_set_debug: Setting debugging level to 255 (on) Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: Found /dev/usb1 usb_os_find_busses: Found /dev/usb2 usb_os_find_devices: Found /dev/ugen0 on /dev/usb1 usb_control_msg: 128 6 512 0 0xbfbfe7a8 8 1000 usb_control_msg: 128 6 512 0 0x806b080 41 1000 skipped 1 class/vendor specific interface descriptors usb_control_msg: 128 6 513 0 0xbfbfe7a8 8 1000 usb_control_msg: 128 6 513 0 0x8066100 32 1000 Found USB PICkit as device '/dev/ugen0' on USB bus /dev/usb1 Setting USB configuration is okay. Claiming USB interface is okay. Sending GETVERSION command using interrupt transfer. USB> 76 Receiving PICkit VERSION information using interrupt transfer. Communication established. PICkit2 firmware version is 1.21.0 USB> 56 00 USB> 56 00 USB> 4d USB> 73 00 1d 40 3d 82 2d USB> 4d USB> 4d USB> 4d USB> 90 80 02 fe ff 3f 91 USB> 56 00 USB> 4d USB> 73 80 2a 40 df bd a6 USB> 4d USB> 4d USB> 50 43 52 70 USB> 4f 43 52 70 USB> 50 80 02 fe ff 3f 70 Device ID 0x0c80 PIC18F2620 Rev 3 found USB> 56 00 USB> 4d USB> 73 80 2a 40 df bd a6 USB> 4d Family: PIC18F Program size: 0x8000 (32768) words, width 0xffff Eeprom size: 0x400 (1024) bytes ID location: 0x0 ID size: 0x4 (4) bytes Device ID 0x0c80 Write burst 16 Program command P Program mode G Program timing N Data timing D Erase mode CP mask 0xc00f Bandgap mask 0x0000 0x0000 Config mask 0xcf00 0x1f1f 0x8700 0x00c5 0xc00f 0xe00f 0x400f Save osccal 0 Save bandgap 0 Command table 63 00 02 03 04 05 06 08 18 0a 09 0b ff ff ff ff Regards, Xiaofan From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 07:37:24 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A7F116A404 for ; Wed, 4 Apr 2007 07:37:24 +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 05AF213C45A for ; Wed, 4 Apr 2007 07:37:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe07.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 457080452; Wed, 04 Apr 2007 09:37:22 +0200 From: Hans Petter Selasky To: "Xiaofan Chen" Date: Wed, 4 Apr 2007 09:37:02 +0200 User-Agent: KMail/1.9.5 References: <200704031642.26519.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704040937.02219.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under 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: Wed, 04 Apr 2007 07:37:24 -0000 On Wednesday 04 April 2007 01:55, Xiaofan Chen wrote: > On 4/3/07, Hans Petter Selasky wrote: > > Hi, > > > > I think that your device is broken, and goes bad when it receives a > > clear-stall request for the interrupt pipe. That is not very uncommon. > > Could you be more clearer? I'd like to communicate this problem > to the firmware developer of PICKit 2 inside Microchip. Thanks. The chip does not handle a clear-stall request on the control pipe to clear-stall on the interrupt pipe. The result is that the interrupt pipe stops, or at least all buffers are cleared. I could be more detailed, but I think the developers will understand what I mean. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 09:21:42 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3C4316A404 for ; Wed, 4 Apr 2007 09:21:42 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id 9EE8913C45E for ; Wed, 4 Apr 2007 09:21:42 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id A5B83ED54C9 for ; Wed, 4 Apr 2007 19:56:27 +0300 (EEST) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9DirM-MN9o2X for ; Wed, 4 Apr 2007 19:56:26 +0300 (EEST) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id AC448ED54B0 for ; Wed, 4 Apr 2007 19:56:26 +0300 (EEST) Message-ID: <4613683B.6030107@icyb.net.ua> Date: Wed, 04 Apr 2007 11:56:27 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: usb multimedia keyboard 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: Wed, 04 Apr 2007 09:21:43 -0000 I have a problem similar to this: http://www.freebsd.org/cgi/query-pr.cgi?pr=102066 My keyboard has a label on it that says the following: Product Name: KB 200 Model NO: GK-060002 Trade Name: KYE SYSTEMS CORP Made in China There is also Genius label on it :-) $ uname -srm FreeBSD 6.2-RELEASE-p2 amd64 $ usbdevs -dv Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 uhub0 port 1 addr 2: low speed, power 100 mA, config 1, NetScroll + Traveler(0x002e), Genius(0x0458), rev 1.10 ums0 port 2 addr 3: low speed, power 100 mA, config 1, USB Keyboard(0x1603), vendor 0x1241(0x1241), rev 2.80 ukbd0 ... The problem is that under X xev program doesn't show any events for pressing of extra keys (6 multimedia ones and 3 ACPI ones). In Linux xev does show key events for those keys. Is it possible at present at all to get those keys working ? Where to dig ? -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 09:28:54 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A734616A401 for ; Wed, 4 Apr 2007 09:28:54 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from gateway.cybervisiontech.com.ua (gateway.cybervisiontech.com.ua [88.81.251.18]) by mx1.freebsd.org (Postfix) with ESMTP id E85B413C46A for ; Wed, 4 Apr 2007 09:28:53 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (hq.cybervisiontech.com [127.0.0.1]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 23A64ED54E6 for ; Wed, 4 Apr 2007 20:28:51 +0300 (EEST) X-Virus-Scanned: amavisd-new at cybervisiontech.com Received: from gateway.cybervisiontech.com.ua ([127.0.0.1]) by localhost (hq.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jAg0CtSvftqg for ; Wed, 4 Apr 2007 20:28:50 +0300 (EEST) Received: from [10.2.1.87] (rein.cybervisiontech.com.ua [10.2.1.87]) by gateway.cybervisiontech.com.ua (Postfix) with ESMTP id 1B59DED54E3 for ; Wed, 4 Apr 2007 20:28:50 +0300 (EEST) Message-ID: <46136FD3.8020001@icyb.net.ua> Date: Wed, 04 Apr 2007 12:28:51 +0300 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4613683B.6030107@icyb.net.ua> In-Reply-To: <4613683B.6030107@icyb.net.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: usb multimedia keyboard 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: Wed, 04 Apr 2007 09:28:54 -0000 on 04/04/2007 11:56 Andriy Gapon said the following: > I have a problem similar to this: > http://www.freebsd.org/cgi/query-pr.cgi?pr=102066 [snip] > > The problem is that under X xev program doesn't show any events for > pressing of extra keys (6 multimedia ones and 3 ACPI ones). > > In Linux xev does show key events for those keys. > > Is it possible at present at all to get those keys working ? > Where to dig ? > This provides a lot of additional information but doesn't seem to provide a complete solution: http://www.freebsd.org/cgi/query-pr.cgi?pr=59698 -- Andriy Gapon From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 11:35:01 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADF7516A403 for ; Wed, 4 Apr 2007 11:35:01 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.178]) by mx1.freebsd.org (Postfix) with ESMTP id 3722113C44B for ; Wed, 4 Apr 2007 11:35:01 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so109334ika for ; Wed, 04 Apr 2007 04:35:00 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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; b=JUjB3tm1Ok7kpRXn7FUiowhTYCKzsiVnICOUMYMxZUQtfwgAgTkbpLlBnYvsmuGoY579d72Zi1xnJmNmIJZEeSUQMhKDcHS/+f0ln0EKHru0vTzpzJE7IFob00h5GCfEoPXy6os5KZkn4ZVjVmEAECLl7xTbxETJweswbzcCONU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bo1u149wLRtrUrT1AzstujU8ek2TAV7ul1+Xci3EnE/e8GS5Bt5e61QbgTemUk2GhFMqKa7dnUcjLh2YicrEGxsLJHWi0UYucqe1N6IDwzX3Ksdvw+A1QCcSSYRISiuhXZlS6F/RYNYh0PHaRUyJYfbOfvEvV8PN66uxB+HNBnE= Received: by 10.114.78.1 with SMTP id a1mr224796wab.1175686498270; Wed, 04 Apr 2007 04:34:58 -0700 (PDT) Received: by 10.114.176.8 with HTTP; Wed, 4 Apr 2007 04:34:58 -0700 (PDT) Message-ID: Date: Wed, 4 Apr 2007 19:34:58 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200704040937.02219.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200704031642.26519.hselasky@c2i.net> <200704040937.02219.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: libusb usb_interrupt_read hangs under 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: Wed, 04 Apr 2007 11:35:01 -0000 On 4/4/07, Hans Petter Selasky wrote: > On Wednesday 04 April 2007 01:55, Xiaofan Chen wrote: > > On 4/3/07, Hans Petter Selasky wrote: > > > Hi, > > > > > > I think that your device is broken, and goes bad when it receives a > > > clear-stall request for the interrupt pipe. That is not very uncommon. > > > > Could you be more clearer? I'd like to communicate this problem > > to the firmware developer of PICKit 2 inside Microchip. Thanks. > > The chip does not handle a clear-stall request on the control pipe to > clear-stall on the interrupt pipe. The result is that the interrupt pipe > stops, or at least all buffers are cleared. > > I could be more detailed, but I think the developers will understand what I > mean. > Thanks. I will talk to the Micrpchip PICKit 2 developers. Hopefully they will be able to fix the firmware. >From the dmesg output, I can see the portion that shows what you say. ugenioctl: cmd=80045572 ugenioctl: cmd=80045571 ugenread: usbd_get_pipe: udev=0xc3168800 iface_index=0 address=0x1 type=0x3 dir=0x80 index=0 usbd_get_pipe: udev=0xc3168800 iface_index=0 address=0x0 type=0x0 dir=0xff index=0 usbd_mem_alloc_sub: 0xe6aa0000, 4096 bytes, phys=0x3e850000 usbd_get_pipe: udev=0xc3168800 iface_index=0 address=0x1 type=0x3 dir=0x80 index=0 usbd_get_pipe: udev=0xc3168800 iface_index=0 address=0x0 type=0x0 dir=0xff index=0 usbd_start_hardware: xfer=0xc3085420, pipe=0xc3168894 len=64 dir=in usbd_dump_pipe: pipe=0xc3168894 edesc=0xc31746db isoc_next=0 toggle_next=0 bEndpointAddress=0x81 usbd_dump_queue: pipe=0xc3168894 usbd_start_hardware: xfer=0xc3085528, pipe=0xc3168800 len=8 dir=out usbd_dump_pipe: pipe=0xc3168800 edesc=0xc3168a3d isoc_next=0 toggle_next=0 bEndpointAddress=0x00 usbd_dump_queue: pipe=0xc3168800 ugen_open_pipe_read: interrupt open done usbd_transfer_done: xfer=0xc3085528 pipe=0xc3168800 status=0 actlen=8 usbd_clearstall_callback: xfer=0xc3085528 usbd_start_hardware: xfer=0xc3085420, pipe=0xc3168894 len=64 dir=in usbd_dump_pipe: pipe=0xc3168894 edesc=0xc31746db isoc_next=0 toggle_next=0 bEndpointAddress=0x81 usbd_dump_queue: pipe=0xc3168894 usb_event_thread: woke up usb_discover: usbd_transfer_done: xfer=0xc3085420 pipe=0xc3168894 status=20 actlen=0 usbd_start_hardware: xfer=0xc3085420, pipe=0xc3168894 len=64 dir=in usbd_dump_pipe: pipe=0xc3168894 edesc=0xc31746db isoc_next=0 toggle_next=0 bEndpointAddress=0x81 usbd_dump_queue: pipe=0xc3168894 usbd_start_hardware: xfer=0xc3085528, pipe=0xc3168800 len=8 dir=out usbd_dump_pipe: pipe=0xc3168800 edesc=0xc3168a3d isoc_next=0 toggle_next=0 bEndpointAddress=0x00 usbd_dump_queue: pipe=0xc3168800 usbd_transfer_done: xfer=0xc3085528 pipe=0xc3168800 status=0 actlen=8 usbd_clearstall_callback: xfer=0xc3085528 usbd_start_hardware: xfer=0xc3085420, pipe=0xc3168894 len=64 dir=in usbd_dump_pipe: pipe=0xc3168894 edesc=0xc31746db isoc_next=0 toggle_next=0 bEndpointAddress=0x81 usbd_dump_queue: pipe=0xc3168894 usb_event_thread: woke up ... From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 11:55:33 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2FAA016A401 for ; Wed, 4 Apr 2007 11:55:33 +0000 (UTC) (envelope-from xdsgrrr@consultcommerce.com) Received: from ns.consultcommerce.com (ns.consultcommerce.com [87.246.2.254]) by mx1.freebsd.org (Postfix) with ESMTP id 72F7E13C44B for ; Wed, 4 Apr 2007 11:55:32 +0000 (UTC) (envelope-from xdsgrrr@consultcommerce.com) Received: (qmail 93079 invoked by uid 0); 4 Apr 2007 14:36:25 +0300 Received: from 87.246.2.254 by MailX.ConsultCommerce.BG (envelope-from , uid 0) with qmail-scanner-1.25 (clamdscan: 0.87/1102. spamassassin: 3.1.0. Clear:RC:1(87.246.2.254):. Processed in 0.062789 secs); 04 Apr 2007 11:36:25 -0000 X-Qmail-Scanner-Mail-From: xdsgrrr@consultcommerce.com via MailX.ConsultCommerce.BG X-Qmail-Scanner: 1.25 (Clear:RC:1(87.246.2.254):. Processed in 0.062789 secs) Received: from unknown (HELO webmail.consultcommerce.com) (87.246.2.254) by ns.consultcommerce.com with SMTP; 4 Apr 2007 14:36:25 +0300 Received: from 85.118.192.131 (auth. user xdsgrrr@consultcommerce.com@ns.consultcommerce.com) by webmail.consultcommerce.com with HTTP; Wed, 04 Apr 2007 11:36:24 +00 To: freebsd-usb@freebsd.org Date: Wed, 04 Apr 2007 11:36:24 +00 X-Mailer: IlohaMail/0.9.0 (On: webmail.consultcommerce.com) Message-ID: From: Bounce-To: Errors-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Siemens C75 uplcom no support 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: Wed, 04 Apr 2007 11:55:33 -0000 There is seems to lack of support of DCA-540 in freebsd=20 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 usbdev -v=20 ugen0: Siemens AG Siemens USB Connectivity, rev 1.10/0.95, addr 2 usbctl -f /dev/usb1 bLength=3D18 bDescriptorType=3Ddevice(1) bcdUSB=3D1.10 bDeviceClass=3D0 bDeviceSubClass=3D0 bDeviceProtocol=3D0 bMaxPacketSize=3D32 idVendor=3D0x11f5 idProduct=3D0x0003 bcdDevice=3D95 iManufacturer=3D1() iProduct=3D2() iSerialNumber=3D3( 356272003050676) bNumConfigurations=3D1 CONFIGURATION descriptor 0: bLength=3D9 bDescriptorType=3Dconfig(2) wTotalLength=3D39 bNumInterface=3D1 bConfigurationValue=3D1 iConfiguration=3D0() bmAttributes=3D80 bMaxPower=3D98= mA INTERFACE descriptor 0: bLength=3D9 bDescriptorType=3Dinterface(4) bInterfaceNumber=3D0 bAlternateSetting=3D0 bNumEndpoints=3D3 bInterfaceClass=3D255 bInterfaceSubClass=3D255 bInterfaceProtocol=3D4 iInterface=3D0() ENDPOINT descriptor: bLength=3D7 bDescriptorType=3Dendpoint(5) bEndpointAddress=3D1-in bmAttributes=3Dbulk wMaxPacketSize=3D64 bInterval=3D0 ENDPOINT descriptor: bLength=3D7 bDescriptorType=3Dendpoint(5) bEndpointAddress=3D2-out bmAttributes=3Dbulk wMaxPacketSize=3D64 bInterval=3D0 ENDPOINT descriptor: bLength=3D7 bDescriptorType=3Dendpoint(5) bEndpointAddress=3D3-in bmAttributes=3Dinterrupt wMaxPacketSize=3D2 bInterval=3D4 if there is a patch to fix this issue please send it to me=20 in linux it already work with pl2303 driver=20 From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 12:36:52 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B18116A403 for ; Wed, 4 Apr 2007 12:36:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id B8B1713C4B9 for ; Wed, 4 Apr 2007 12:36:51 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 458551510; Wed, 04 Apr 2007 14:36:50 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 4 Apr 2007 14:36:29 +0200 User-Agent: KMail/1.9.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_Nv5EGMGaldA2PoK" Message-Id: <200704041436.29415.hselasky@c2i.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Siemens C75 uplcom no support 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: Wed, 04 Apr 2007 12:36:52 -0000 --Boundary-00=_Nv5EGMGaldA2PoK Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Could you install the new USB stack, and then apply the attached patch. Maybe you have to apply the patch by hand. The files you find under /sys/dev/usb . # # Install /usr/ports/devel/subversion first # svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/i4b/FreeBSD.usb make S=../src package make install PS: I am not 100% sure if your device should be TYPE_PL2303 or TYPE_PL2303X. --HPS --Boundary-00=_Nv5EGMGaldA2PoK-- From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 14:09:11 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B002C16A401 for ; Wed, 4 Apr 2007 14:09:11 +0000 (UTC) (envelope-from freebsdusb@bindone.de) Received: from mail.bindone.de (sidewinder.bindone.de [62.146.109.98]) by mx1.freebsd.org (Postfix) with SMTP id 29A2013C448 for ; Wed, 4 Apr 2007 14:09:10 +0000 (UTC) (envelope-from freebsdusb@bindone.de) Received: (qmail 13521 invoked from network); 4 Apr 2007 14:05:49 -0000 Received: from unknown (HELO bombat.bindone.de) (84.151.221.254) by mail.bindone.de with SMTP; 4 Apr 2007 14:05:49 -0000 Message-ID: <4613B17D.3020701@bindone.de> Date: Wed, 04 Apr 2007 16:09:01 +0200 From: grem User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070318 SeaMonkey/1.1.1 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <200703290011.l2T0BAKa035949@www.freebsd.org> In-Reply-To: <200703290011.l2T0BAKa035949@www.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: usb/110988: [patch] Handling of quirk IGNORE_RESIDUE is umass.c is broken 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: Wed, 04 Apr 2007 14:09:11 -0000 Hi, is there any way to get this into the source tree? Michael Gmelin wrote: >> Number: 110988 >> Category: usb >> Synopsis: [patch] Handling of quirk IGNORE_RESIDUE is umass.c is broken >> Confidential: no >> Severity: serious >> Priority: medium >> Responsible: freebsd-usb >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Thu Mar 29 00:20:02 GMT 2007 >> Closed-Date: >> Last-Modified: >> Originator: Michael Gmelin >> Release: FreeBSD 6.2-RELEASE-p3 i386 >> Organization: > /bin/done digital solutions GmbH >> Environment: > FreeBSD bombat.bindone.de 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #21: Wed Mar 28 04:08:44 CEST 2007 root@bombat.bindone.de:/usr/src/sys/i386/compile/bombat i386 >> Description: > I had to add a new device to usbdevs/umass.c which requires the IGNORE_RESIDUE quirk to be set (extra PR will follow). It didn't work, because IGNORE_RESIDUE isn't handled properly in umass.c (it isn't really handled at all, since Residue is set in lines are 1668-1672 in > umass.c in the following was: > > int Residue; > Residue = UGETDW(sc->csw.dCSWDataResidue); > if (Residue == 0 && > sc->transfer_datalen - sc->transfer_actlen != 0) > Residue = sc->transfer_datalen - sc->transfer_actlen; > > The patch below fixes this issue (tested and proven to work). >> How-To-Repeat: > Use a really broken USB device which returns "random" values for sc->csw.dCSWDataResidue (like devices that use the SuperTop IDEDEVICE USB controller, e.g. the ICY BOX IB-220U-Wh). Every attempt to use the device will lead to error messages, like: > > dd if=/dev/zero of=/dev/da0 count=10 > da0: end of device > > or > > disklabel da0 > read: Unknown error > etc. > >> Fix: > Apply the attached patch, which forces residue to be calculated if IGNORE_RESIDUE is set. > > > Patch attached with submission follows: > > --- umass.c.orig Thu Mar 29 02:07:04 2007 > +++ umass.c Thu Mar 29 02:08:06 2007 > @@ -1666,7 +1666,10 @@ > } > > int Residue; > - Residue = UGETDW(sc->csw.dCSWDataResidue); > + if (sc->quirks & IGNORE_RESIDUE) > + Residue = 0; > + else > + Residue = UGETDW(sc->csw.dCSWDataResidue); > if (Residue == 0 && > sc->transfer_datalen - sc->transfer_actlen != 0) > Residue = sc->transfer_datalen - sc->transfer_actlen; > >> Release-Note: >> Audit-Trail: >> Unformatted: > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 18:10:08 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 73E2D16A404 for ; Wed, 4 Apr 2007 18:10:08 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7CF13C459 for ; Wed, 4 Apr 2007 18:10:07 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HZ9U5-0000bg-PV for freebsd-usb@freebsd.org; Wed, 04 Apr 2007 19:41:25 +0200 Received: from mulderlab.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Apr 2007 19:41:25 +0200 Received: from atkin901 by mulderlab.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Apr 2007 19:41:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Mark Atkinson Date: Wed, 04 Apr 2007 10:41:05 -0700 Lines: 24 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mulderlab.f5.com User-Agent: KNode/0.10.4 Sender: news Subject: msleep redefined error in hselasky/usb4bsd/ svn patch against -current 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: Wed, 04 Apr 2007 18:10:08 -0000 I get the following error when trying to compile the proposed usb4bsd stack against current. In file included from /usr/src/sys/dev/usb/ehci.c:67: /usr/src/sys/dev/usb/usb_port.h:293:1: "msleep" redefined In file included from /usr/src/sys/dev/usb/ehci.c:58: /usr/src/sys/sys/systm.h:313:1: this is the location of the previous definition *** Error code 1 Sure enough, it is intentionally redefined: sys/dev/usb/usb_port.h:290-293 /* preliminary fix for a bug in msleep on FreeBSD, * which cannot sleep with Giant: */ #define msleep(i,m,p,w,t) msleep(i,(((m) == &Giant) ? NULL : (m)),p,w,t) -- Mark Atkinson atkin901@yahoo.com (!wired)?(coffee++):(wired); From owner-freebsd-usb@FreeBSD.ORG Wed Apr 4 18:37:55 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85E8C16A403 for ; Wed, 4 Apr 2007 18:37:55 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 1EC4A13C459 for ; Wed, 4 Apr 2007 18:37:54 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe02.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 458844964; Wed, 04 Apr 2007 20:37:53 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 4 Apr 2007 20:37:32 +0200 User-Agent: KMail/1.9.5 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: <200704042037.32793.hselasky@c2i.net> Cc: Mark Atkinson Subject: Re: msleep redefined error in hselasky/usb4bsd/ svn patch against -current 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: Wed, 04 Apr 2007 18:37:55 -0000 On Wednesday 04 April 2007 19:41, Mark Atkinson wrote: > I get the following error when trying to compile the proposed usb4bsd stack > against current. > > In file included from /usr/src/sys/dev/usb/ehci.c:67: > /usr/src/sys/dev/usb/usb_port.h:293:1: "msleep" redefined > In file included from /usr/src/sys/dev/usb/ehci.c:58: > /usr/src/sys/sys/systm.h:313:1: this is the location of the previous > definition > *** Error code 1 > > Sure enough, it is intentionally redefined: > > sys/dev/usb/usb_port.h:290-293 > > /* preliminary fix for a bug in msleep on FreeBSD, > * which cannot sleep with Giant: > */ > #define msleep(i,m,p,w,t) msleep(i,(((m) == &Giant) ? NULL : (m)),p,w,t) When I integrate my driver against FreeBSD-7 current, I will add some "#if" statements for those issues. Until further: In /sys/dev/usb/usb_port.h, use the following: /* preliminary fix for a bug in msleep on FreeBSD, * which cannot sleep with Giant: */ #undef msleep #define msleep(i,m,p,w,t) _sleep(i,(((m) == &Giant) ? \ NULL : &(m)->mtx_object),p,w,t) After this patch you have to insert a NULL argument, to all bus_setup_intr() functions you find in the files /sys/dev/usb/*pci.c like shown below ? error = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_TTY, - si_intr, sc, &ih); + NULL, si_intr, sc, &ih); Hope that is not too much patching. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 5 11:08:19 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D26016A402 for ; Thu, 5 Apr 2007 11:08:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id DC5FA13C44C for ; Thu, 5 Apr 2007 11:08:18 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe04.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 456178719; Thu, 05 Apr 2007 13:08:17 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 5 Apr 2007 13:07:56 +0200 User-Agent: KMail/1.9.5 References: <200703290011.l2T0BAKa035949@www.freebsd.org> <4613B17D.3020701@bindone.de> In-Reply-To: <4613B17D.3020701@bindone.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704051307.56065.hselasky@c2i.net> Cc: Subject: Re: usb/110988: [patch] Handling of quirk IGNORE_RESIDUE is umass.c is broken 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, 05 Apr 2007 11:08:19 -0000 On Wednesday 04 April 2007 16:09, grem wrote: > Hi, > > is there any way to get this into the source tree? Yes, I can take this patch into the P4 tree if you change it a little bit. I want this invalid residue detection to be all automatic: If the first residue you get is invalid, then it should use the USB transfer counts for residue for the rest of the lifetime of the device. Else it should use the standard invalid residue check. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Apr 5 14:52:57 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B12FF16A404 for ; Thu, 5 Apr 2007 14:52:57 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 47EB813C458 for ; Thu, 5 Apr 2007 14:52:57 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HZTIl-0008FL-VP for freebsd-usb@freebsd.org; Thu, 05 Apr 2007 16:51:04 +0200 Received: from mulderlab.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Apr 2007 16:51:03 +0200 Received: from atkin901 by mulderlab.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Apr 2007 16:51:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Mark Atkinson Date: Thu, 05 Apr 2007 07:47:56 -0700 Lines: 75 Message-ID: References: <200704042037.32793.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mulderlab.f5.com User-Agent: KNode/0.10.4 Sender: news Subject: Re: msleep redefined error in hselasky/usb4bsd/ svn patch against -current 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, 05 Apr 2007 14:52:57 -0000 Hans Petter Selasky wrote: > On Wednesday 04 April 2007 19:41, Mark Atkinson wrote: >> I get the following error when trying to compile the proposed usb4bsd >> stack against current. >> >> In file included from /usr/src/sys/dev/usb/ehci.c:67: >> /usr/src/sys/dev/usb/usb_port.h:293:1: "msleep" redefined >> In file included from /usr/src/sys/dev/usb/ehci.c:58: >> /usr/src/sys/sys/systm.h:313:1: this is the location of the previous >> definition >> *** Error code 1 >> >> Sure enough, it is intentionally redefined: >> >> sys/dev/usb/usb_port.h:290-293 >> >> /* preliminary fix for a bug in msleep on FreeBSD, >> * which cannot sleep with Giant: >> */ >> #define msleep(i,m,p,w,t) msleep(i,(((m) == &Giant) ? NULL : (m)),p,w,t) > > When I integrate my driver against FreeBSD-7 current, I will add some > "#if" statements for those issues. Until further: > > In /sys/dev/usb/usb_port.h, use the following: > > /* preliminary fix for a bug in msleep on FreeBSD, > * which cannot sleep with Giant: > */ > #undef msleep > #define msleep(i,m,p,w,t) _sleep(i,(((m) == &Giant) ? \ > NULL : &(m)->mtx_object),p,w,t) > > After this patch you have to insert a NULL argument, to all > bus_setup_intr() functions you find in the files /sys/dev/usb/*pci.c like > shown below ? > > error = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_TTY, > - si_intr, sc, &ih); > + NULL, si_intr, sc, &ih); > > Hope that is not too much patching. > > --HPS Not enough patching.. :-) Even with these changes, it still generates warnings on this macro. Since kernel compiles are with -Werr and -Wnested-externs, this kills the compile when dereferencing msleep() /usr/src/sys/dev/usb/ugen.c: In function `ugenwrite': /usr/src/sys/dev/usb/ugen.c:1260: warning: nested extern declaration of `msleep' /usr/src/sys/dev/usb/ugen.c:562: warning: redundant redeclaration of 'msleep' /usr/src/sys/dev/usb/ugen.c:562: warning: previous implicit declaration of 'msleep' was here *** Error code 1 I tried to get by with make CWARNFLAGS=-Wall buildkernel although it took me a while to remember/find where that was. However getting rid of the 'implicit' warning might require a bit more than changing some compile flags. -- Mark Atkinson atkin901@yahoo.com (!wired)?(coffee++):(wired); From owner-freebsd-usb@FreeBSD.ORG Thu Apr 5 17:14:21 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C03AF16A401 for ; Thu, 5 Apr 2007 17:14:21 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 3166913C44B for ; Thu, 5 Apr 2007 17:14:20 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 357454715; Thu, 05 Apr 2007 19:14:19 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 5 Apr 2007 19:13:58 +0200 User-Agent: KMail/1.9.5 References: <200704042037.32793.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704051913.58653.hselasky@c2i.net> Cc: Mark Atkinson Subject: Re: msleep redefined error in hselasky/usb4bsd/ svn patch against -current 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, 05 Apr 2007 17:14:21 -0000 On Thursday 05 April 2007 16:47, Mark Atkinson wrote: > Hans Petter Selasky wrote: > > On Wednesday 04 April 2007 19:41, Mark Atkinson wrote: > >> I get the following error when trying to compile the proposed usb4bsd > >> stack against current. > >> > >> In file included from /usr/src/sys/dev/usb/ehci.c:67: > >> /usr/src/sys/dev/usb/usb_port.h:293:1: "msleep" redefined > >> In file included from /usr/src/sys/dev/usb/ehci.c:58: > >> /usr/src/sys/sys/systm.h:313:1: this is the location of the previous > >> definition > >> *** Error code 1 > >> > >> Sure enough, it is intentionally redefined: > >> > >> sys/dev/usb/usb_port.h:290-293 > >> > >> /* preliminary fix for a bug in msleep on FreeBSD, > >> * which cannot sleep with Giant: > >> */ > >> #define msleep(i,m,p,w,t) msleep(i,(((m) == &Giant) ? NULL : (m)),p,w,t) > > > > When I integrate my driver against FreeBSD-7 current, I will add some > > "#if" statements for those issues. Until further: > > > > In /sys/dev/usb/usb_port.h, use the following: > > > > /* preliminary fix for a bug in msleep on FreeBSD, > > * which cannot sleep with Giant: > > */ > > #undef msleep > > #define msleep(i,m,p,w,t) _sleep(i,(((m) == &Giant) ? \ > > NULL : &(m)->mtx_object),p,w,t) > > > > After this patch you have to insert a NULL argument, to all > > bus_setup_intr() functions you find in the files /sys/dev/usb/*pci.c like > > shown below ? > > > > error = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_TTY, > > - si_intr, sc, &ih); > > + NULL, si_intr, sc, &ih); > > > > Hope that is not too much patching. > > > > --HPS > > Not enough patching.. :-) Even with these changes, it still generates > warnings on this macro. Since kernel compiles are with -Werr > and -Wnested-externs, this kills the compile when dereferencing msleep() > > /usr/src/sys/dev/usb/ugen.c: In function `ugenwrite': > /usr/src/sys/dev/usb/ugen.c:1260: warning: nested extern declaration of > `msleep' > /usr/src/sys/dev/usb/ugen.c:562: warning: redundant redeclaration > of 'msleep' > /usr/src/sys/dev/usb/ugen.c:562: warning: previous implicit declaration > of 'msleep' was here > *** Error code 1 > Could you send me your /usr/src/sys/dev/usb/usb_port.h . Are you sure that you applied my patch correctly? "msleep()" should not be undefined. Rather msleep() should expand to _sleep() . --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Apr 6 14:56:57 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A9F316A401 for ; Fri, 6 Apr 2007 14:56:57 +0000 (UTC) (envelope-from freebsdusb@bindone.de) Received: from mail.bindone.de (sidewinder.bindone.de [62.146.109.98]) by mx1.freebsd.org (Postfix) with SMTP id 5A2C813C4C3 for ; Fri, 6 Apr 2007 14:56:55 +0000 (UTC) (envelope-from freebsdusb@bindone.de) Received: (qmail 37345 invoked from network); 6 Apr 2007 14:53:28 -0000 Received: from unknown (HELO bombat.bindone.de) (84.151.230.91) by mail.bindone.de with SMTP; 6 Apr 2007 14:53:28 -0000 Message-ID: <46165FAD.2030707@bindone.de> Date: Fri, 06 Apr 2007 16:56:45 +0200 From: grem User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070318 SeaMonkey/1.1.1 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <200703290011.l2T0BAKa035949@www.freebsd.org> <4613B17D.3020701@bindone.de> <200704051307.56065.hselasky@c2i.net> In-Reply-To: <200704051307.56065.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: usb/110988: [patch] Handling of quirk IGNORE_RESIDUE is umass.c is broken 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: Fri, 06 Apr 2007 14:56:57 -0000 Hans Petter Selasky wrote: > On Wednesday 04 April 2007 16:09, grem wrote: >> Hi, >> >> is there any way to get this into the source tree? > > Yes, I can take this patch into the P4 tree if you change it a little bit. > > I want this invalid residue detection to be all automatic: > > If the first residue you get is invalid, then it should use the USB transfer > counts for residue for the rest of the lifetime of the device. Else it should > use the standard invalid residue check. > > --HPS Imho we should support both, so that devices which are so broken that we can't detect the invalid residue (like I tried to point out before) still have the quirk so force it manually. Can you do the autodetection on your own or do you want me to do the change to the patch and repost it so you can review? I have only one broken USB device, so if anyone out there has access to more it would be extremely helpful. From owner-freebsd-usb@FreeBSD.ORG Fri Apr 6 15:44:30 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E41A16A402 for ; Fri, 6 Apr 2007 15:44:30 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id DFA1713C4CB for ; Fri, 6 Apr 2007 15:44:29 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe05.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 358253192; Fri, 06 Apr 2007 17:44:28 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 6 Apr 2007 17:44:07 +0200 User-Agent: KMail/1.9.5 References: <200703290011.l2T0BAKa035949@www.freebsd.org> <200704051307.56065.hselasky@c2i.net> <46165FAD.2030707@bindone.de> In-Reply-To: <46165FAD.2030707@bindone.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704061744.07179.hselasky@c2i.net> Cc: Subject: Re: usb/110988: [patch] Handling of quirk IGNORE_RESIDUE is umass.c is broken 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: Fri, 06 Apr 2007 15:44:30 -0000 On Friday 06 April 2007 16:56, grem wrote: > Hans Petter Selasky wrote: > > On Wednesday 04 April 2007 16:09, grem wrote: > >> Hi, > >> > >> is there any way to get this into the source tree? > > > > Yes, I can take this patch into the P4 tree if you change it a little > > bit. > > > > I want this invalid residue detection to be all automatic: > > > > If the first residue you get is invalid, then it should use the USB > > transfer counts for residue for the rest of the lifetime of the device. > > Else it should use the standard invalid residue check. > > > > --HPS > > Imho we should support both, so that devices which are so broken that we > can't detect the invalid residue (like I tried to point out before) still > have the quirk so force it manually. Ok, no problem, but like Alexander Leidinger pointed out, the current flag does not do anything, and should be removed from a couple of devices. > > Can you do the autodetection on your own or do you want me to do the change > to the patch and repost it so you can review? I have only one broken USB > device, so if anyone out there has access to more it would be extremely > helpful. I can make a patch for this, and send it to you for testing, during the next week. --HPS