From owner-freebsd-usb@FreeBSD.ORG Sun Feb 17 16:07:32 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8E9F16A47A for ; Sun, 17 Feb 2008 16:07:32 +0000 (UTC) (envelope-from markus@freebsd.org) Received: from mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by mx1.freebsd.org (Postfix) with ESMTP id 63BAA13C467 for ; Sun, 17 Feb 2008 16:07:32 +0000 (UTC) (envelope-from markus@freebsd.org) Received: from mail-in-12-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mail-in-14.arcor-online.net (Postfix) with ESMTP id A6B36187A16; Sun, 17 Feb 2008 17:07:30 +0100 (CET) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-12-z2.arcor-online.net (Postfix) with ESMTP id 8C5F1279441; Sun, 17 Feb 2008 17:07:30 +0100 (CET) Received: from galaxy.homeunix.org (dslb-084-061-000-159.pools.arcor-ip.net [84.61.0.159]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 27CAF1C7631; Sun, 17 Feb 2008 17:07:30 +0100 (CET) Received: from cheops.phoenix (cheops.phoenix [192.168.1.3]) by galaxy.homeunix.org (Postfix) with ESMTP id 499A63F455; Sun, 17 Feb 2008 17:04:45 +0100 (CET) From: Markus Brueffer To: Chuck Robey Date: Sun, 17 Feb 2008 17:07:00 +0100 User-Agent: KMail/1.9.7 References: <47AE28EB.7070205@chuckr.org> <200802140506.52864.markus@FreeBSD.org> <47B49534.3060207@chuckr.org> In-Reply-To: <47B49534.3060207@chuckr.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2540010.3hL36d79Dl"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200802171707.03988.markus@freebsd.org> X-Virus-Scanned: ClamAV 0.92.1/5847/Sun Feb 17 12:26:12 2008 on mail-in-04.arcor-online.net X-Virus-Status: Clean Cc: freebsd-usb@freebsd.org Subject: Re: getting my new graphic tablet cooperating with gimp 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, 17 Feb 2008 16:07:33 -0000 --nextPart2540010.3hL36d79Dl Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Donnerstag, 14. Februar 2008 20:23:32 schrieb Chuck Robey: > Markus Brueffer wrote: > >> I appreciate the extra information. In fact, I am having one heck of a > >> time trying to figure out exactly how to parse this. I am reading with > >> the HID1_11 spec on my knee at all times, but I swear, I have never se= en > >> such a poorly written document! > > > > It's not _that_ bad, but it surely lacks several clarifications in some > > areas and some information on specific topics is scattered across the > > whole document. > > Maybe I'm not used to the style, but reading this reminds me of the first > few times I plowed my way thru the sgml spec, before I finally realized > those guys weren't trying to get anything done, they were trying only to > lay a foundation for a foundation for a way to get things done. Getting > past that was difficult, and I find specific sections of the usbhid spec > just as difficult. There is little or no linkage between the sections th= at > describe features, and the sections that demonstrate how to use those > features. As one example (which I think I've finally figured out), secti= on > 4.2 (Subclass), the subparagraph below that titled ""Subclass Codes" uses > the term (in italics) of bInterfaceSubClass. It describes one usagfe whe= re > it would be zero (0), but doesn't bother to say what the other use would > be, nor give any example of what context you'd want to use this statement. There are currently only 2 types of subclasses for HID devices: no subclass= =20 (0) and boot interface subclass (1). Mice or keyboards e.g. can choose to=20 implement 2 modes: boot mode and report mode. In boot mode, the data that t= he=20 mouse returns is layed out in a specific way (described in appendix B), whi= ch=20 is always the same, so there is no need to implement a full fledged HID=20 report descriptor parser. This is especially usefull in very early boot=20 stages like for the BIOS. When the system loads the operating system, the=20 mouse gets switched into report mode and all features are available from th= at=20 point. =46or the meaning of an "Interface" you should have a look at the USB spec= =20 itself, expecially how usb devices are made up w.r.t. the different=20 descriptors and what they mean. > I've written specs myself, but never one that did such a great job of > obfuscation. I doubt, strongly, that any of you could do as badly (unless > you were going thru perhaps 3 levels of language translation, that would = do > it). Anyhow, that's the reason why I am not yet finished in figuring out > the parsing of my own unit's config dump. > > > Best thing to get started is IMHO to get an idea about what reports are > > and to get the raw report descriptor of a simple device (e.g. a mouse if > > it's not from a keyboard/mouse combo) and start decoding it by hand. The > > sources of the libusbhid parser might be of help as well, although it > > contains several bugs and isn't spec compliant in several cases, but it > > might get you an idea of what's going on. Furthermore playing with > > usbhidctl might be of help. > > > > I have written a completly new fully spec compliant HID parser which is > > soon ready for public consumption as part of a new libhid. It contains > > many comments and should be easy to understand. The data representation > > directly takes the tree-like structure of a decoded report descriptor > > into account so that it's easy to write drivers that only handle one or > > more specific application collections. Furthermore physical descriptors > > are supported and the data handling functions hide the concept of report > > IDs so that it's less error prone to develop HID drivers (ums(4) e.g. > > doesn't support reports other than report 0 which is the reason that ma= ny > > of todays mice don't work). The parser itself will hopefully replace our > > current in-kernel HID parser. > > OK, couple more questions: would the state of your new libhid be far enou= gh > along that it might be possible for me to study it? If it were, could I > get a copy, if I agreed that you are giving me the copy for study only, > that I'm not to release it anywhere myself? Nope, not yet, as there are some parts still in flux. Additionally some=20 documentation is still missing, especially documentation for the tree itsel= f,=20 that is being built by the parser. I'll send you a copy as soon as it's=20 ready. > Another thing, is there any way, beyond my forcing the action in patched > code, to get the uhid driver to claim my device? I mean, some system > configuration method to force this, like it used to be possible back a lo= ng > time ago in the old usbd.conf? I might be able to figure some things out, > if I could experiment with usbhidctl, if I could use it thru uhid. Not that I know of. But getting uhid(4) to recognize the device is actually= =20 quite easy. Please send me the output of udesc_dump (sysutils/udesc_dump in= =20 ports) for that device and I'll send you a patch. > >> I am having a terrible time trying to figure out > >> the actual scope of each statement, which refers to what. I don't run > >> any piece of Windows stuff here, so many of the pieces of demo software > >> I have found on the web do me no good. > > > > I didn't find any windows software that really made it easier to > > understand the spec. It's IMHO easier to directly get your hands dirty > > and to read the code of an HID parser. > > You;'re going to tell me it's easier to read the code than read the spec, > and in the same breath tell me that the spec isn't so badly written? You should have a look at the code with the spec at hand of course. > >> I'm not giving up, I keep on making new discoveries, but if anyone kno= ws > >> of a description of HID that involves some real use of English, I sure > >> would appreciate a pointer to it. > > > > If you have any specific questions, please drop me a mail. > > Look, I'll be honest, I'm kinda embarrassed at the level questions I need > answered, I'm probagbly not going to ask them here on the mail list. If I > were to start up a usbhid channel on freenode, anyone might come up there > and answer questions? Sure (actually I joined that channel on friday, but unfortunately you were= =20 afk). Markus --nextPart2540010.3hL36d79Dl Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHuFun1I0Qcnj4qNQRAvZoAKCobw+pTHvXnBRlUnxohZW2OsYYMACg2VeU WBnZdmi6UU4+dqzOBfeJ2gs= =bFim -----END PGP SIGNATURE----- --nextPart2540010.3hL36d79Dl-- From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 09:28:12 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B7D816A417 for ; Mon, 18 Feb 2008 09:28:12 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 2515513C45D for ; Mon, 18 Feb 2008 09:28:12 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2717984waf.3 for ; Mon, 18 Feb 2008 01:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=PiiQypaVt5SlrvrlkZu/ZEpCCSImiO0aY5ddHKILCGM=; b=D0kesUyZ2RuQ823L3Ww6Hvtni1hFyMHj8o9qc5QbMq+/iQqtLLuxnzoVNO7rR4AGf+MRxvFZnf+ZZD1H5UWZVIeU7MWIC5MwFdr0hJkZCUQ9Hg1/U+ILMLkKcHibPU+c2chEp89ak170k6AMmpW0ZFwJF8Yyk31vCzANbcl1/K4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ib+rpeISkeuK/VR4ML69HKpLzdVUPEhR+dGidTf8BoJuIcoXKzu8v/XxQAXmDsfS8DSm7BhomN/Mzpzp6yM8zj+vFgxA0jGF82mI9QZvUQRSCKysAxiOlGvlEPa4ToPqVCmwVo493cyTVtA+lPsFIseygice5OEAU3LbkrCYS9s= Received: by 10.114.192.1 with SMTP id p1mr6591395waf.47.1203325322276; Mon, 18 Feb 2008 01:02:02 -0800 (PST) Received: by 10.115.49.1 with HTTP; Mon, 18 Feb 2008 01:02:02 -0800 (PST) Message-ID: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> Date: Mon, 18 Feb 2008 10:02:02 +0100 From: "=?ISO-8859-2?Q?=A3ukasz_Sromek?=" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Copying to usb flash drive corrupts files 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, 18 Feb 2008 09:28:12 -0000 Hello. I asked this question on bsdforums.org, but I got no answer. I guess this list is a better place to post problems like this. When I copy mp3s from hard drive to usb stick they become corrupted. lukasz ~% mount /mnt/usb lukasz ~% cp file.mp3 /mnt/usb lukasz ~% diff file.mp3 /mnt/usb/file.mp3 lukasz ~% umount /mnt/usb lukasz ~% mount /mnt/usb lukasz ~% diff file.mp3 /mnt/usb/file.mp3 Files file.mp3 and /mnt/usb/file.mp3 differ If I set sync option in fstab: /dev/da0 /mnt/usb msdosfs rw,noauto,sync 0 0 Then files are copied correctly, but very slowly, when buffer size is low. Midnight Commander uses 8k buffers, so I get about 20kB/s which is unacceptable. I'm using FreeBSD 7.0-RC2. Could you help me with this issue? From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 11:07:20 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AC4B16A4C0 for ; Mon, 18 Feb 2008 11:07:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 13A1D13C474 for ; Mon, 18 Feb 2008 11:07:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1IB7KB3039581 for ; Mon, 18 Feb 2008 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1IB7JpF039577 for freebsd-usb@FreeBSD.org; Mon, 18 Feb 2008 11:07:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Feb 2008 11:07:19 GMT Message-Id: <200802181107.m1IB7JpF039577@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org 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, 18 Feb 2008 11:07:20 -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/46176 usb [umass] [panic] umass causes kernel panic if device re o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o bin/57255 usb usbd and multi-function devices o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] [hang] mounting write-protected umass device a o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb [pcm] 5.3-STABLE(2005 1/4) detect USB headset, But can o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa a usb/79656 usb [ehci] RHSC interrupts lost o usb/79722 usb [ehci] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80829 usb [modules] [panic] possible panic when loading USB-modu o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82660 usb [echi] [panic] EHCI: I/O stuck in state 'physrd'/panic o usb/83563 usb [umamss] [panic] Page Fault while detaching Mpman Usb o usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe 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 s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb [modules] kldunload ucom.ko returns "Device busy" erro s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/91283 usb [boot] booting very slow with usb devices connection ( o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/92052 usb [unlpt] usbd causes defunct process with busy file-han o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93640 usb [echi] [irq] device ehci causes interrupt storm on thi o usb/93828 usb [ochi] [panic] ohci causes panic on boot (HP Pavillion o usb/94166 usb [umass] [boot] btx halted with a flashcard plugged o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94813 usb [umass] mounting write-protected umass device freezes o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk s usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 s usb/96120 usb [ums] [request] USB mouse not always detected o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync o usb/96457 usb [umass] [panic] fatback on umass = reboot s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/99431 usb [kbd] FreeBSD on MSI 6566E (Intel 845E motherboards) d o usb/101096 usb [if_ural] [panic] USB WLAN occasionally causes kernel- o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work f usb/102096 usb [patch] usbd(8) does not handle multiple devices in on o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse s usb/106832 usb USB HP printer is not detected by kernel when ACPI ena o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107924 usb [patch] usbd(8) does not call detach o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE (regr 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/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] [request] FreeBSD could not start on Core2Duo n s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 o usb/113851 usb [boot] Unable to boot install cd from USB-CDROM s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114682 usb [umass] generic USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116947 usb [ukbd] [patch] enable boot protocol on the USB keyboar o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118391 usb [usbdevs] [patch] Add uscanner ID for Epson CX4800 o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/119018 usb [usbd] HP ScanJet 4300C found as knowndev but not reco o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119509 usb USB flaky on Dell Optiplex 755 o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119945 usb [rum] [panic] rum device in hostap mode, cause kernel o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120729 usb [panic] fault while in kernel mode with connecting USB 123 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/48342 usb [usbd] [patch] usbd dynamic device list. s usb/51958 usb [urio] [patch] update for urio driver s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/72380 usb [uhub] [request] USB does not work [dual Celeron Abit] s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/73056 usb [ukbd] Sun Microsystems Type 6 USB mouse not working i o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ s usb/80777 usb [request] usb_rem_task() should wait for callback to c o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/85257 usb [boot] BTX boot loader fails on USB CDROM (HP DL145 Op o usb/86298 usb [mouse] Known good USB mouse won't work with correct s o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb [axe] axe0 read PHY failed o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91896 usb [camcontrol] Serial Number of USB Memory Sticks is not o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 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/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102678 usb [kbd] Dell PowerEdge DRAC5 USB Keyboard does not work o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103418 usb [usbhidctl] [patch] [request] usbhidctl: add ability t o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/105065 usb [sata] SATA - USB Bridge o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) ( o usb/107665 usb [usbdevs] [patch] uscanner support for epson stylus DX s usb/107701 usb [usbd] [request] usbd ignores "detach" o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/108056 usb [ohci] Mouse gets powered off during device probe when s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108509 usb [hang] FreeBSD hang at startup after ehci0 detected (C o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/114068 usb [umass] [patch] Problems with connection of the umass o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o usb/115080 usb [usbdevs] [patch] allow using a Hercules HWGUSB2-54-V2 o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/116574 usb [ehci] [patch] Add device ids for ICH8 USB chipsets f usb/116898 usb [panic] sleeping thread while using USB hard drive to o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117205 usb [uscanner] [patch] uscanner support for HP ScanJet 447 o usb/117546 usb [usbdevs] [patch] Add MaxStream ZigBee product ID to u o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/118374 usb [usbdevs] [patch] support Option GlobeTrotter Max 3.6 o usb/118479 usb [ubsa] [patch] ubsa driver does not recognize AnyDATA o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround s usb/118571 usb [boot] [request] fix BTX issues when booting FreeBSD 7 o usb/118670 usb [ums] [patch] Razer Copperhead Laser Mouse shows up as o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118741 usb [umass] [patch] Support for Nikon D300 digital camera o usb/119150 usb [usbdevs] [patch] new usbdevs for CDMA 1xEVDO devices o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED (regress o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR (regression) o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119981 usb [usbdevs] [patch] add support for LOGITEC LAN-GTJ/U2 g o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a 120 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 12:29:08 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35AB116A41B for ; Mon, 18 Feb 2008 12:29:08 +0000 (UTC) (envelope-from tawer@insysnet.ru) Received: from insysnet.ru (ns.insysnet.ru [77.72.140.26]) by mx1.freebsd.org (Postfix) with SMTP id 2F14013C4D3 for ; Mon, 18 Feb 2008 12:29:06 +0000 (UTC) (envelope-from tawer@insysnet.ru) Received: (qmail 68401 invoked from network); 18 Feb 2008 15:02:24 +0300 Received: from qmail by qscan (mail filter); 18 Feb 2008 12:02:24 +0000 Received: from unknown (HELO ?192.168.100.21?) (81.18.141.118) by mail.insysnet.ru with SMTP; 18 Feb 2008 15:02:24 +0300 Message-ID: <47B973D0.8040509@insysnet.ru> Date: Mon, 18 Feb 2008 15:02:24 +0300 From: "Krotov Konstantin V." User-Agent: Thunderbird 2.0.0.9 (X11/20071122) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Copying to usb flash drive corrupts files 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, 18 Feb 2008 12:29:08 -0000 Hello, I have similar problems with usb dmesg: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-PRERELEASE #0: Mon Feb 11 16:53:19 MSK 2008 somebody@somewhere:/usr/obj/usr/src/sys/office Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 1.60GHz (1614.39-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf12 Stepping = 2 Features=0x3febfbff on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 cpu0: on acpi0 p4tcc0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xe7000000-0xe7ffffff,0xf0000000-0xf7ffffff irq 11 at device 0.0 on p isab0: at device 2.0 on pci0 isa0: on isab0 ohci0: mem 0xe6800000-0xe6800fff irq 6 at device 2.2 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xe6000000-0xe6000fff irq 9 at device 2.3 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 3 ports with 3 removable, self powered atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd800-0xd80f at device 2.5 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pcm0: port 0xa800-0xa8ff irq 10 at device 5.0 on pci0 pcm0: [ITHREAD] rl0: port 0xa400-0xa4ff mem 0xe5000000-0xe50000ff irq 10 at device 9.0 on pci0 miibus0: on rl0 rlphy0: PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:c1:28:01:cb:a1 rl0: [ITHREAD] skc0: port 0xa000-0xa0ff mem 0xe4800000-0xe4803fff irq 5 at device 10. skc0: Marvell Yukon Lite Gigabit Ethernet rev. A3(0x7) sk0: on skc0 sk0: Ethernet address: 00:0c:46:46:6e:01 miibus1: on sk0 e1000phy0: PHY 0 on miibus1 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto skc0: [ITHREAD] skc0: port 0xa000-0xa0ff mem 0xe4800000-0xe4803fff irq 5 at device 10. skc0: Marvell Yukon Lite Gigabit Ethernet rev. A3(0x7) sk0: on skc0 sk0: Ethernet address: 00:0c:46:46:6e:01 miibus1: on sk0 e1000phy0: PHY 0 on miibus1 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto skc0: [ITHREAD] sym0: <1010-33> port 0x9800-0x98ff mem 0xe4000000-0xe40003ff,0xe3800000-0xe3801fff irq 10 at device 13.0 on sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking sym0: open drain IRQ line driver, using on-chip SRAM sym0: using LOAD/STORE-based firmware. sym0: handling phase mismatch from SCRIPTS. sym0: SCAN AT BOOT disabled for targets 1 2 3 4 5 6 8 9 10 11 12 13 14 15. sym0: SCAN FOR LUNS disabled for targets 1 2 3 4 5 6 8 9 10 11 12 13 14 15. sym0: [GIANT-LOCKED] sym0: [ITHREAD] sym1: <1010-33> port 0x9400-0x94ff mem 0xe3000000-0xe30003ff,0xe2800000-0xe2801fff irq 10 at device 13.1 on sym1: Symbios NVRAM, ID 7, Fast-80, SE, NO parity sym1: open drain IRQ line driver, using on-chip SRAM sym1: using LOAD/STORE-based firmware. sym1: handling phase mismatch from SCRIPTS. sym1: SCAN AT BOOT disabled for targets 0 1 2 3 4 5 6 8 9 10 11 12 13 14 15. sym1: SCAN FOR LUNS disabled for targets 0 1 2 3 4 5 6 8 9 10 11 12 13 14 15. sym1: [GIANT-LOCKED] sym1: [ITHREAD] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff,0xd0000-0xd3fff,0xd4000-0xd57ff,0xd8000-0xdbfff pnpid ORM0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fdc0: No FDOUT register! ums0: on uhub0 ums0: 3 buttons and Z dir. umass0: on uhub1 Timecounter "TSC" frequency 1614387304 Hz quality 800 Timecounters tick every 10.000 msec ipfw2 initialized, divert loadable, rule-based forwarding enabled, default to deny, logging disabled (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered. (noperiph:sym1:0:-1:-1): SCSI BUS reset delivered. da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 160.000MB/s transfers (80.000MHz DT, offset 62, 16bit) da0: Command Queueing Enabled da0: 35003MB (71687370 512 byte sectors: 255H 63S/T 4462C) ubdevs -v: Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00 port 1 powered port 2 addr 2: low speed, power 100 mA, config 1, Microsoft 3-Button Mouse with IntelliEye(TM)(0x0040), Microsoft(0x045e), rev 3.00 port 3 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, DataTraveler 2.0(0x1603), Kingston(0x0951), rev 2.00 port 2 powered port 3 powered From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 16:29:19 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF12116A420 for ; Mon, 18 Feb 2008 16:29:19 +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 67EF813C448 for ; Mon, 18 Feb 2008 16:29:19 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.133.70] (account mc467741@c2i.net [62.113.133.70] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 817268216; Mon, 18 Feb 2008 17:29:17 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 18 Feb 2008 17:30:16 +0100 User-Agent: KMail/1.9.7 References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> In-Reply-To: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200802181730.17473.hselasky@c2i.net> Cc: Subject: Re: Copying to usb flash drive corrupts files 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, 18 Feb 2008 16:29:19 -0000 On Monday 18 February 2008, =C5=81ukasz Sromek wrote: > Hello. > > I asked this question on bsdforums.org, but I got no answer. I guess > this list is a better place to post problems like this. > > When I copy mp3s from hard drive to usb stick they become corrupted. > > lukasz ~% mount /mnt/usb > lukasz ~% cp file.mp3 /mnt/usb > lukasz ~% diff file.mp3 /mnt/usb/file.mp3 > lukasz ~% umount /mnt/usb > lukasz ~% mount /mnt/usb > lukasz ~% diff file.mp3 /mnt/usb/file.mp3 > Files file.mp3 and /mnt/usb/file.mp3 differ > > If I set sync option in fstab: > > /dev/da0 /mnt/usb msdosfs rw,noauto,sync 0 0 > > Then files are copied correctly, but very slowly, when buffer size is > low. Midnight Commander uses 8k buffers, so I get about 20kB/s which > is unacceptable. > > I'm using FreeBSD 7.0-RC2. > > Could you help me with this issue? Maybe your memory stick is corrupted ? What is the brand ? =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 17:09:36 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B7E816A41B for ; Mon, 18 Feb 2008 17:09:36 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id F107B13C459 for ; Mon, 18 Feb 2008 17:09:35 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 14544 invoked from network); 18 Feb 2008 17:09:35 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 18 Feb 2008 17:09:35 -0000 Message-ID: <47B9BAB5.6000903@chuckr.org> Date: Mon, 18 Feb 2008 12:04:53 -0500 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: =?UTF-8?B?xYF1a2FzeiBTcm9tZWs=?= References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> In-Reply-To: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-usb@freebsd.org Subject: Re: Copying to usb flash drive corrupts files 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, 18 Feb 2008 17:09:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ɓukasz Sromek wrote: > Hello. > > I asked this question on bsdforums.org, but I got no answer. I guess > this list is a better place to post problems like this. > > When I copy mp3s from hard drive to usb stick they become corrupted. > > lukasz ~% mount /mnt/usb > lukasz ~% cp file.mp3 /mnt/usb > lukasz ~% diff file.mp3 /mnt/usb/file.mp3 > lukasz ~% umount /mnt/usb > lukasz ~% mount /mnt/usb > lukasz ~% diff file.mp3 /mnt/usb/file.mp3 > Files file.mp3 and /mnt/usb/file.mp3 differ > > If I set sync option in fstab: > > /dev/da0 /mnt/usb msdosfs rw,noauto,sync 0 0 > > Then files are copied correctly, but very slowly, when buffer size is > low. Midnight Commander uses 8k buffers, so I get about 20kB/s which > is unacceptable. > > I'm using FreeBSD 7.0-RC2. > > Could you help me with this issue? Dunno if anyone else has responded to you or not, but it's possible that you might not realize that the write speed of flash memories is, comparatively speaking, slow as molasses in wintertime. When you buy flash memories, any GOOD ones will advertise their write (and read, for that matter) speeds. If they don't, it's because they[re particularly embarrassed about them. On top of the read/write speeds being so slow, the nature of our file systems hides the fact that a function such as a copy actually takes far longer than just the return time of the cp process. Normally, this isn't a problem, because when you go to dismount the memory, it will normally refuse to complete the dismount until all of the copying has actually completed. Is there any possibility thsat you might have misinterpreted the slwo response time of umount, and tried to hurry it's finish time? Because, that would most certainly cause the data being wrong. As far as thjings being slow, if you spend more money on your flash, and get one's with a speedier read/write time, you'll find the process taking much less time. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHubq1z62J6PPcoOkRAv6+AJ90M886Td33PEv/UwMy2l7DrqGRrQCbBNWo 71qdbiPTvlB4YbmnDPhdbwc= =eQh5 -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 21:50:14 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5095716A49E; Mon, 18 Feb 2008 21:50:14 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2BC1313C46E; Mon, 18 Feb 2008 21:50:14 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1ILoExO008917; Mon, 18 Feb 2008 21:50:14 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1ILoDgx008913; Mon, 18 Feb 2008 21:50:13 GMT (envelope-from linimon) Date: Mon, 18 Feb 2008 21:50:13 GMT Message-Id: <200802182150.m1ILoDgx008913@freefall.freebsd.org> To: schmidt@ze.tum.de, linimon@FreeBSD.org, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/120786: Kernelpanik when forced umount of a dettached USB Harddisk 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, 18 Feb 2008 21:50:14 -0000 Synopsis: Kernelpanik when forced umount of a dettached USB Harddisk State-Changed-From-To: closed->open State-Changed-By: linimon State-Changed-When: Mon Feb 18 21:49:41 UTC 2008 State-Changed-Why: bde@ claims this is a different subcase. Responsible-Changed-From-To: gavin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Mon Feb 18 21:49:41 UTC 2008 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=120786 From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 22:17:08 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCE5516A417 for ; Mon, 18 Feb 2008 22:17:08 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id BB35C13C45D for ; Mon, 18 Feb 2008 22:17:08 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so3042336waf.3 for ; Mon, 18 Feb 2008 14:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Yyv9pKbbMszcV79S8T0SJ3iqwGxu2rut45LeuBhiBLs=; b=stFpmmle9u3mFrecW+EVvIURNXH5iqGZ79P/K+3pUsrxjc3zRYB1SdYRKhR2Y2AwONDMaF0eIqAsEWIi19Z/+89Fc6C90rxVgDhFhPPR3VBOqQLkqIx7EdDwpG5QPRwCkbkpuUJQPsj09j6qW5u1cL1WaBzWB0ozHf1ziV1UlRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Nh3KC7AearS77Jlsvu8mcAaDpTdm3QO4DrNpOWdyYWl+nX/23BOqLoyW2/ad7zHxpgptoSZZF7E2q5dVjcd3ZeiIBhb6Va2pzXq38v0lLDXdVsrXCHeYUWJu/wmG97SCKgimAygEwu7KEghHDXTgDUnANJOQPoCMOQxdlBw0FT0= Received: by 10.114.149.2 with SMTP id w2mr449610wad.29.1203373028049; Mon, 18 Feb 2008 14:17:08 -0800 (PST) Received: by 10.115.49.1 with HTTP; Mon, 18 Feb 2008 14:17:08 -0800 (PST) Message-ID: <32f529bc0802181417p7ce0b1c8i2ff70360d62288d9@mail.gmail.com> Date: Mon, 18 Feb 2008 23:17:08 +0100 From: "=?ISO-8859-2?Q?=A3ukasz_Sromek?=" To: freebsd-usb@freebsd.org In-Reply-To: <200802181730.17473.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> <200802181730.17473.hselasky@c2i.net> Subject: Re: Copying to usb flash drive corrupts files 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, 18 Feb 2008 22:17:09 -0000 2008/2/18, Hans Petter Selasky : > Maybe your memory stick is corrupted ? > It works (tested today) under Windows. I have used it with several linux distros in the past without problems. Things got even more weird today... Now copying with sync option enabled don't help at all :( Besides, another strange problem appeared: I copy some files to memory stick under FreeBSD Reboot and read them under Windows (they contain errors, of course...) Then I copy some files under Windows. Another reboot into windows - I can see files that were copied under FreeBSD (with errors) and Windows (no errors). Reboot into FreeBSD. I mount memory stick ang guess what? I see only files that were copied under FreeBSD :) Files copied during Windows session disappeared... > What is the brand ? > da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-4 device da0: 1.000MB/s transfers da0: 494MB (1012992 512 byte sectors: 64H 32S/T 494C) From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 15:10:07 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F25A16A41B; Tue, 19 Feb 2008 15:10:07 +0000 (UTC) (envelope-from schmidt@ze.tum.de) Received: from inga.augusta.de (inga.augusta.de [77.90.142.2]) by mx1.freebsd.org (Postfix) with ESMTP id 55EC813C46B; Tue, 19 Feb 2008 15:10:06 +0000 (UTC) (envelope-from schmidt@ze.tum.de) Received: from etustar.starbox.augusta.de (190.8-dial.augustakom.net [80.81.8.190]) (authenticated bits=0) by inga.augusta.de (8.13.4/8.13.4) with ESMTP id m1JExlx8029340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Feb 2008 15:59:49 +0100 (CET) (envelope-from schmidt@ze.tum.de) Message-ID: <47BAEEDD.4010001@ze.tum.de> Date: Tue, 19 Feb 2008 15:59:41 +0100 From: Gerhard Schmidt User-Agent: Thunderbird 2.0.0.6 (X11/20070811) MIME-Version: 1.0 To: linimon@FreeBSD.org, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org References: <200802182150.m1ILoDgx008913@freefall.freebsd.org> In-Reply-To: <200802182150.m1ILoDgx008913@freefall.freebsd.org> X-Enigmail-Version: 0.95.0 OpenPGP: id=4000A915 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFE0B1C0CC0808BA9C2401262" X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.5.10 (inga.augusta.de [77.90.142.2]); Tue, 19 Feb 2008 15:59:49 +0100 (CET) Cc: Subject: Re: usb/120786: Kernelpanik when forced umount of a dettached USB Harddisk 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, 19 Feb 2008 15:10:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFE0B1C0CC0808BA9C2401262 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Another filesystem doesn't prevent the crash. ISO9660 panics on the normal umount. UFS freezes after umount (not forces) Testsystem: FreeBSD wanderer.augusta.de 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #1: Tue Feb 19 14:51:56 CET 2008 root@wanderer.augusta.de:/usr/src/sys/i386/compile/WANDERER i386 CVSuped on saturday. Regard Gerhard Schmidt --=20 ------------------------------------------------- Gerhard Schmidt | E-Mail: schmidt@ze.tum.de TU-M=FCnchen | WWW & Online Services | Tel: 089/289-25270 | Fax: 089/289-25257 | PGP-Publickey auf Anfrage --------------enigFE0B1C0CC0808BA9C2401262 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBR7ru4dl1K6RAAKkVAQLBbQgAkIV652qdBXDKOwU5g9jwC+j76td5yx5R r9CcfyboFskduvXiYcksn+H4SkQNtZVu49Lp8Tqat3xkvRn+xPOt6v+BcY1BmhQv IQWXjGMxC4Bu+bBKWtdRCCbKDn8vGKdTIwY6jDqNLz+zA+WZ6VUpY+Yo9Q8uQXl3 OoDekbVJoHpE5dzGF4b04VzoZoqvuhnNl3As1Pa/f9UM71EX3qVSsE+dWnU1FifY VKV4kPBbkD6MYC7km9AaI4Gt7o8T0cwtDe2ydjrmxtn5ho6ihmHCUzrxy0GO7Tqh wTQZ3oVXrZprsVuyAZFPcttQSMCd2DsmPn34zNNS2H7l0+5kAOLxXw== =zFF2 -----END PGP SIGNATURE----- --------------enigFE0B1C0CC0808BA9C2401262-- From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 15:20:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 182B116A41B for ; Tue, 19 Feb 2008 15:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 03EDF13C468 for ; Tue, 19 Feb 2008 15:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1JFK2TR095054 for ; Tue, 19 Feb 2008 15:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1JFK2SL095053; Tue, 19 Feb 2008 15:20:02 GMT (envelope-from gnats) Date: Tue, 19 Feb 2008 15:20:02 GMT Message-Id: <200802191520.m1JFK2SL095053@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Gerhard Schmidt Cc: Subject: Re: usb/120786: Kernelpanik when forced umount of a dettached USB Harddisk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gerhard Schmidt List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2008 15:20:03 -0000 The following reply was made to PR usb/120786; it has been noted by GNATS. From: Gerhard Schmidt To: linimon@FreeBSD.org, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/120786: Kernelpanik when forced umount of a dettached USB Harddisk Date: Tue, 19 Feb 2008 15:59:41 +0100 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFE0B1C0CC0808BA9C2401262 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Another filesystem doesn't prevent the crash. ISO9660 panics on the normal umount. UFS freezes after umount (not forces) Testsystem: FreeBSD wanderer.augusta.de 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #1: Tue Feb 19 14:51:56 CET 2008 root@wanderer.augusta.de:/usr/src/sys/i386/compile/WANDERER i386 CVSuped on saturday. Regard Gerhard Schmidt --=20 ------------------------------------------------- Gerhard Schmidt | E-Mail: schmidt@ze.tum.de TU-M=FCnchen | WWW & Online Services | Tel: 089/289-25270 | Fax: 089/289-25257 | PGP-Publickey auf Anfrage --------------enigFE0B1C0CC0808BA9C2401262 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBR7ru4dl1K6RAAKkVAQLBbQgAkIV652qdBXDKOwU5g9jwC+j76td5yx5R r9CcfyboFskduvXiYcksn+H4SkQNtZVu49Lp8Tqat3xkvRn+xPOt6v+BcY1BmhQv IQWXjGMxC4Bu+bBKWtdRCCbKDn8vGKdTIwY6jDqNLz+zA+WZ6VUpY+Yo9Q8uQXl3 OoDekbVJoHpE5dzGF4b04VzoZoqvuhnNl3As1Pa/f9UM71EX3qVSsE+dWnU1FifY VKV4kPBbkD6MYC7km9AaI4Gt7o8T0cwtDe2ydjrmxtn5ho6ihmHCUzrxy0GO7Tqh wTQZ3oVXrZprsVuyAZFPcttQSMCd2DsmPn34zNNS2H7l0+5kAOLxXw== =zFF2 -----END PGP SIGNATURE----- --------------enigFE0B1C0CC0808BA9C2401262-- From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 16:24:07 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA5D016A417 for ; Tue, 19 Feb 2008 16:24:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 7CC6613C45B for ; Tue, 19 Feb 2008 16:24:07 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.133.70] (account mc467741@c2i.net [62.113.133.70] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 74776967; Tue, 19 Feb 2008 17:24:05 +0100 From: Hans Petter Selasky To: "=?utf-8?q?=C5=81ukasz?= Sromek" User-Agent: KMail/1.9.7 References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> <200802181730.17473.hselasky@c2i.net> <32f529bc0802181358n3ac34ec2saa23bc658507ba8f@mail.gmail.com> In-Reply-To: <32f529bc0802181358n3ac34ec2saa23bc658507ba8f@mail.gmail.com> MIME-Version: 1.0 Content-Disposition: inline Date: Tue, 19 Feb 2008 17:25:05 +0100 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200802191725.06156.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Copying to usb flash drive corrupts files 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, 19 Feb 2008 16:24:08 -0000 On Monday 18 February 2008, =C5=81ukasz Sromek wrote: > > Maybe your memory stick is corrupted ? > > It works (tested today) under Windows. I have used it with several > linux distros in the past without problems. > > Things got even more weird today... Now copying with sync option > enabled don't help at all :( > > Besides, another strange problem appeared: > I copy some files to memory stick under FreeBSD > Reboot and read them under Windows (they contain errors, of course...) > Then I copy some files under Windows. > Another reboot into windows - I can see files that were copied under > FreeBSD (with errors) and Windows (no errors). > Reboot into FreeBSD. I mount memory stick ang guess what? I see only > files that were copied under FreeBSD :) Files copied during Windows > session disappeared... > > > What is the brand ? > > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-4 device > da0: 1.000MB/s transfers > da0: 494MB (1012992 512 byte sectors: 64H 32S/T 494C) Hi, Is this some kind of phone ? Have you tried to "fsck_msdosfs" the partition where the FAT filesystem=20 resides ? Maybe you could do like this: dd if=3D/dev/urandom of=3D/tmp/myrandomfile bs=3D65536 count=3D64 Then copy that file to the flash. "umount" and "mount". Then copy the file= =20 back to your disk again. After that you do a: cat /tmp/myrandomfile | hexdump > /tmp/myrandomfile.txt Then you compare the two .txt files using "diff". =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 22:00:25 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73E1B16A41B for ; Tue, 19 Feb 2008 22:00:25 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 1BB8913C4EE for ; Tue, 19 Feb 2008 22:00:24 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so1838990wri.3 for ; Tue, 19 Feb 2008 14:00:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=O0D4p9t/5nYNrREOynnrHeSNbCEObbTy5ut2RjWm7oI=; b=klAIJWg5a6naOuMAa9J2Hczuip5X60pImvABYOAbytU3WDU6d/Cs1fk2l4cHxR9br+I9ZEgPVFhTmC/Wq0A3nbI/PlkII8RdVImIwXUsoo8qQKdUODSi095Xd36b++7Zak6uZQZ38lQyNpLp+eumx0zOoMYWNkPghqTvglafSZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SKjHcgdKZc/z5a9P8gzdqFFuVWiZaFLIz/sNdYM5nnnhbjWhx7yo+GYOdcYSGDHBELVB812Sk+GwRztKrcg71nshUVHEP6p3FF0A3V+2V2uP0jk/QhnlwxWHoX1cNiEODQPmXDnsC9PMUTCzawCeTS/Rr+EBmWLlOufJ9yAzz0o= Received: by 10.114.39.16 with SMTP id m16mr5060818wam.146.1203458423348; Tue, 19 Feb 2008 14:00:23 -0800 (PST) Received: by 10.115.49.1 with HTTP; Tue, 19 Feb 2008 14:00:23 -0800 (PST) Message-ID: <32f529bc0802191400h29073d50xd23478a3389a4557@mail.gmail.com> Date: Tue, 19 Feb 2008 23:00:23 +0100 From: "=?ISO-8859-2?Q?=A3ukasz_Sromek?=" To: "Hans Petter Selasky" In-Reply-To: <200802191725.06156.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> <200802181730.17473.hselasky@c2i.net> <32f529bc0802181358n3ac34ec2saa23bc658507ba8f@mail.gmail.com> <200802191725.06156.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Copying to usb flash drive corrupts files 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, 19 Feb 2008 22:00:25 -0000 2008/2/19, Hans Petter Selasky : > Hi, > > Is this some kind of phone ? It's an old mp3 player. > > Have you tried to "fsck_msdosfs" the partition where the FAT filesystem > resides ? fsck indeed found some errors (Windows' scandisk didn't...), fixed them, but it didn't help. > > Maybe you could do like this: > > dd if=/dev/urandom of=/tmp/myrandomfile bs=65536 count=64 > > Then copy that file to the flash. "umount" and "mount". Then copy the file > back to your disk again. After that you do a: > > cat /tmp/myrandomfile | hexdump > /tmp/myrandomfile.txt > > Then you compare the two .txt files using "diff". > I did hexdump -v (because "Without the -v option, any number of groups of output lines, which would be identical to the immediately preceding group of output lines (except for the input offsets), are replaced with a line comprised of a single asterisk") And files seem to be very different! lukasz /tmp% diff /tmp/myrandomfile_usb.txt /tmp/myrandomfile.txt |wc -l 201790 Diffs begin at byte 00ae000 lukasz /tmp% diff /tmp/myrandomfile_usb.txt /tmp/myrandomfile.txt |head 44545,45056c44545,45056 < 00ae000 88ce bdf4 ff09 2b2c abc1 0846 8fea 0ea9 < 00ae010 71ac d09c ac15 396f e802 79f6 19dd 1b53 < 00ae020 774f 610b c637 ab27 ec5b 5d84 a9e5 f8d6 < 00ae030 8e70 daae 0bb0 b303 3a7d 5f9f 754e 3c18 < 00ae040 3ec9 324d 9c5c ead3 6e9a e174 a05b eab2 < 00ae050 aa66 d6a6 f41c 5762 ff0d 5145 890e c495 < 00ae060 2b86 9ede 5cc1 cde5 4ee2 4ff6 2aab e528 < 00ae070 b09a 7fb2 7e74 6601 bc63 e5f0 f240 6362 < 00ae080 ee9c 7902 fcfb 3438 d1fd 10c6 6c1d cab9 lukasz /tmp% diff /tmp/myrandomfile_usb.txt /tmp/myrandomfile.txt | grep \> |head > 00ae000 1e69 1cb8 fbcc d5f4 72c1 176f 0c70 b4b5 > 00ae010 ab99 a783 4c3c 53ab 2feb a027 8d2e a040 > 00ae020 4eb4 7d53 9590 0df4 d969 71b6 594f 9547 > 00ae030 a870 4321 8ec7 2b5f 698e 6373 61a0 55c2 > 00ae040 94f2 8705 87a7 e792 53e7 a022 b10d 734e > 00ae050 c9ae 31b7 b913 bd27 d0cc 27a9 8049 134c > 00ae060 e47c 02c5 6e49 854e 1f63 fe14 5b9c c028 > 00ae070 91a4 6cd3 98b8 cd6d 7366 03fe f54d 1a8a > 00ae080 0bec 8c6f 44fc 477c e372 5aa9 a5f4 fe3c > 00ae090 ec3a 830e 2820 ad62 858e 6edb ce39 d205 I guess you don't need whole diff output ;) After a while I reformatted the drive and tried the same test... With and without sync option: lukasz /tmp% diff myrandomfile.txt myrandomfile_usb_sync.txt |wc -l 491586 lukasz /tmp% diff myrandomfile.txt myrandomfile_usb_nosync.txt |wc -l 522242 From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 22:10:02 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F3F716A41A for ; Tue, 19 Feb 2008 22:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 002FF13C45A for ; Tue, 19 Feb 2008 22:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1JMA1MZ034234 for ; Tue, 19 Feb 2008 22:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1JMA1K6034233; Tue, 19 Feb 2008 22:10:01 GMT (envelope-from gnats) Resent-Date: Tue, 19 Feb 2008 22:10:01 GMT Resent-Message-Id: <200802192210.m1JMA1K6034233@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, paul belair Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A41BD16A468 for ; Tue, 19 Feb 2008 22:01:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 95EAE13C468 for ; Tue, 19 Feb 2008 22:01:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1JLwa1N035545 for ; Tue, 19 Feb 2008 21:58:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m1JLwauH035544; Tue, 19 Feb 2008 21:58:36 GMT (envelope-from nobody) Message-Id: <200802192158.m1JLwauH035544@www.freebsd.org> Date: Tue, 19 Feb 2008 21:58:36 GMT From: paul belair To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/120859: laserjet1000 PR#99460 how to install the patch? 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, 19 Feb 2008 22:10:02 -0000 >Number: 120859 >Category: usb >Synopsis: laserjet1000 PR#99460 how to install the patch? >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 19 22:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: paul belair >Release: 6.3 >Organization: none >Environment: FreeBSD amd32fbsd.phub.net.cable.rogers.com 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 >Description: I've done 30 installs maybe more trying to get my hplaserjet working. I've build the kernal with out ulpt and was able to upload printer firmware using cat but cups would have no support for local printing, [greyed out selection] Today with a clean install build on source using gnome2 with out kernel modification and installed foo2zjs I saw my cups browser report that permissions where denied to ulpt0 or lpt0. A google search brought me to pr # 99460, but that has no effect creating and configuring devfs.rules. It helped some people but I couldn't reply on the board that it didn't work for me. Any way's some one posted a patch I downloaded it and its a txt file. 1 hr of searching how to use it I decided to write down this description. Thanks in advance I'm still google and looking in the handbook on installing this patch txt file in case. >How-To-Repeat: I mainly use kde even in this thread. Install foo2jzs from ports or http://foo2zjs.rkkda.com the ports collection couldn't finish and gave instrution at the end to no existant files. http://foo2zjs.rkkda.com would complete the install but never uploader firmware to printer. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 23:12:13 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F52B16A41B for ; Tue, 19 Feb 2008 23:12:13 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 65D3013C455 for ; Tue, 19 Feb 2008 23:12:13 +0000 (UTC) (envelope-from lukasz.sromek@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so3662517waf.3 for ; Tue, 19 Feb 2008 15:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=sVlkq7xFqpG+KLiDDriNLCxC272Thd+4CBg/78ki8SM=; b=Oyp9mZFxBK5KOCL9mc0HDKN7ZAiDq/CY1rwQ4IWxl0Dx205uLe7iJWUlvfqXLDzF/XxDbKm/aOK/B21k6V6C1UiHBIv+byIH8AqJZIceycb4GKFtDAkNQEeX5gqbXHrAEoSbqaLaYMEVAhh1U+n6pbYruLkq7SrjqbUeLdEtjHA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EUgaw8X/bThC4jCe0doUssZot97zqvNxfkZhqwIaiM4yKW7H4y2ncDHTqasm+PfEsOBj+8LqGGx9H7x9x5S3yqMy09OuocUEhxMrYmKCYsYWG/mWhN5Q6wu5DgIzdS1c85nsPpqK29JKaCsEyiUjxdtbjrpcMBvo/JaqiaWFS5Y= Received: by 10.115.78.1 with SMTP id f1mr1896605wal.100.1203462732165; Tue, 19 Feb 2008 15:12:12 -0800 (PST) Received: by 10.115.49.1 with HTTP; Tue, 19 Feb 2008 15:12:12 -0800 (PST) Message-ID: <32f529bc0802191512t355c4d81wefdf08fda6bb0ad9@mail.gmail.com> Date: Wed, 20 Feb 2008 00:12:12 +0100 From: "=?ISO-8859-2?Q?=A3ukasz_Sromek?=" To: "Hans Petter Selasky" In-Reply-To: <32f529bc0802191400h29073d50xd23478a3389a4557@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> <200802181730.17473.hselasky@c2i.net> <32f529bc0802181358n3ac34ec2saa23bc658507ba8f@mail.gmail.com> <200802191725.06156.hselasky@c2i.net> <32f529bc0802191400h29073d50xd23478a3389a4557@mail.gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: Copying to usb flash drive corrupts files 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, 19 Feb 2008 23:12:13 -0000 Okay, some more tests & results. I did some extensive copying, reading, writing and rebooting under windows - everything worked perfectly. I booted freebsd and tried to read some files copied previously under Windows - and I got errors. Moreover, copying the same file multiple times to hard drive yields error in different bytes: lukasz ~% mount /mnt/usb lukasz ~% cp /mnt/usb/Sting\ -\ 1987\ -\ Nothing\ Like\ The\ Sun/07\ -\ We=C2=B4Ll\ Be\ Together.mp3 ~/07\ -\ We=C2=B4Ll\ Be\ Together.mp3-5a lukasz ~% cp /mnt/usb/Sting\ -\ 1987\ -\ Nothing\ Like\ The\ Sun/07\ -\ We=C2=B4Ll\ Be\ Together.mp3 ~/07\ -\ We=C2=B4Ll\ Be\ Together.mp3-5b lukasz ~% umount /mnt/usb lukasz ~% diff ~/07\ -\ We=C2=B4Ll\ Be\ Together.mp3-5a ~/07\ -\ We=C2=B4Ll= \ Be\ Together.mp3-5b Files /home/lukasz/07 - We=C2=B4Ll Be Together.mp3-5a and /home/lukasz/07 - We=C2=B4Ll Be Together.mp3-5b differ Then checked that file under windows - no errors at all! So I thought, maybe just reading is broken somehow. I've booted freebsd again, mounted usb stick and copied some files. But when I tried to read them under windows I got errors. I also tested three other usb flash sticks and they worked great, BUT they all were high speed EHCI devices. My problematic usb stick is detected at OHCI root hub. From owner-freebsd-usb@FreeBSD.ORG Tue Feb 19 23:26:13 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BB2316A46B for ; Tue, 19 Feb 2008 23:26:13 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.79]) by mx1.freebsd.org (Postfix) with ESMTP id 1F7D813C469 for ; Tue, 19 Feb 2008 23:26:13 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp001-s [10.150.69.64]) by smtpoutm.mac.com (Xserve/smtpout016/MantshX 4.0) with ESMTP id m1JNQBY7000712; Tue, 19 Feb 2008 15:26:11 -0800 (PST) Received: from mini-g4.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp001/MantshX 4.0) with ESMTP id m1JNQ9mx009560 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 19 Feb 2008 15:26:09 -0800 (PST) Message-Id: <90085DD7-B0D6-4F95-ACAA-664B04FC2E37@mac.com> From: Marcel Moolenaar To: =?UTF-8?Q?=C5=81ukasz_Sromek?= In-Reply-To: <32f529bc0802191512t355c4d81wefdf08fda6bb0ad9@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v919.2) Date: Tue, 19 Feb 2008 15:26:08 -0800 References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> <200802181730.17473.hselasky@c2i.net> <32f529bc0802181358n3ac34ec2saa23bc658507ba8f@mail.gmail.com> <200802191725.06156.hselasky@c2i.net> <32f529bc0802191400h29073d50xd23478a3389a4557@mail.gmail.com> <32f529bc0802191512t355c4d81wefdf08fda6bb0ad9@mail.gmail.com> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-usb@freebsd.org Subject: Re: Copying to usb flash drive corrupts files 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, 19 Feb 2008 23:26:13 -0000 On Feb 19, 2008, at 3:12 PM, =C5=81ukasz Sromek wrote: > So I thought, maybe just reading is broken somehow. I've booted > freebsd again, mounted usb stick and copied some files. But when I > tried to read them under windows I got errors. We've ran into a bad USB-NAND flash controller revision here at work that resulted in lost writes. The problem was that a SYNCHRONIZE_CACHE command would stall the USB device, which we then cleared correctly, but a prior write would not hit the NAND flash. An USB analyzer would give us the information we need... FYI, --=20 Marcel Moolenaar xcllnt@mac.com From owner-freebsd-usb@FreeBSD.ORG Wed Feb 20 00:36:50 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED6FC16A418 for ; Wed, 20 Feb 2008 00:36:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B301413C44B for ; Wed, 20 Feb 2008 00:36:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m1K0XrXi053319; Tue, 19 Feb 2008 17:33:54 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 19 Feb 2008 17:34:09 -0700 (MST) Message-Id: <20080219.173409.-1350499026.imp@bsdimp.com> To: xcllnt@mac.com From: "M. Warner Losh" In-Reply-To: <90085DD7-B0D6-4F95-ACAA-664B04FC2E37@mac.com> References: <32f529bc0802191400h29073d50xd23478a3389a4557@mail.gmail.com> <32f529bc0802191512t355c4d81wefdf08fda6bb0ad9@mail.gmail.com> <90085DD7-B0D6-4F95-ACAA-664B04FC2E37@mac.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: base64 Cc: freebsd-usb@freebsd.org Subject: Re: Copying to usb flash drive corrupts files 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, 20 Feb 2008 00:36:51 -0000 SW4gbWVzc2FnZTogPDkwMDg1REQ3LUIwRDYtNEY5NS1BQ0FBLTY2NEIwNEZDMkUzN0BtYWMuY29t Pg0KICAgICAgICAgICAgTWFyY2VsIE1vb2xlbmFhciA8eGNsbG50QG1hYy5jb20+IHdyaXRlczoN CjogDQo6IE9uIEZlYiAxOSwgMjAwOCwgYXQgMzoxMiBQTSwgxYF1a2FzeiBTcm9tZWsgd3JvdGU6 DQo6IA0KOiA+IFNvIEkgdGhvdWdodCwgbWF5YmUganVzdCByZWFkaW5nIGlzIGJyb2tlbiBzb21l aG93LiBJJ3ZlIGJvb3RlZA0KOiA+IGZyZWVic2QgYWdhaW4sIG1vdW50ZWQgdXNiIHN0aWNrIGFu ZCBjb3BpZWQgc29tZSBmaWxlcy4gQnV0IHdoZW4gSQ0KOiA+IHRyaWVkIHRvIHJlYWQgdGhlbSB1 bmRlciB3aW5kb3dzIEkgZ290IGVycm9ycy4NCjogDQo6IFdlJ3ZlIHJhbiBpbnRvIGEgYmFkIFVT Qi1OQU5EIGZsYXNoIGNvbnRyb2xsZXIgcmV2aXNpb24NCjogaGVyZSBhdCB3b3JrIHRoYXQgcmVz dWx0ZWQgaW4gbG9zdCB3cml0ZXMuIFRoZSBwcm9ibGVtDQo6IHdhcyB0aGF0IGEgU1lOQ0hST05J WkVfQ0FDSEUgY29tbWFuZCB3b3VsZCBzdGFsbCB0aGUgVVNCDQo6IGRldmljZSwgd2hpY2ggd2Ug dGhlbiBjbGVhcmVkIGNvcnJlY3RseSwgYnV0IGEgcHJpb3INCjogd3JpdGUgd291bGQgbm90IGhp dCB0aGUgTkFORCBmbGFzaC4NCjogDQo6IEFuIFVTQiBhbmFseXplciB3b3VsZCBnaXZlIHVzIHRo ZSBpbmZvcm1hdGlvbiB3ZSBuZWVkLi4uDQoNCkkgaGF2ZSBhIE1QMyBwbGF5ZXIgdGhhdCBzYXlz IGl0IGlzIDJHQiwgYnV0IHJlYWxseSBpcyBvbmx5IDEyOE1CLg0KYW55IGRhdGEgcGxhY2VkIGJl eW9uZCAxMjhNQiBnaXZlcyBpbnN0YW50bHkgY29ycnVwdGVkIHJlc3VsdHMuLi4NCg0KV2FybmVy DQo= From owner-freebsd-usb@FreeBSD.ORG Wed Feb 20 06:50:02 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23A8A16A404 for ; Wed, 20 Feb 2008 06:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 06BE413C46B for ; Wed, 20 Feb 2008 06:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1K6o12s078724 for ; Wed, 20 Feb 2008 06:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1K6o1oE078723; Wed, 20 Feb 2008 06:50:01 GMT (envelope-from gnats) Resent-Date: Wed, 20 Feb 2008 06:50:01 GMT Resent-Message-Id: <200802200650.m1K6o1oE078723@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Sanders Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4409C16A404 for ; Wed, 20 Feb 2008 06:41:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1815513C4F9 for ; Wed, 20 Feb 2008 06:41:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1K6d7Tp011306 for ; Wed, 20 Feb 2008 06:39:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m1K6d7H8011305; Wed, 20 Feb 2008 06:39:07 GMT (envelope-from nobody) Message-Id: <200802200639.m1K6d7H8011305@www.freebsd.org> Date: Wed, 20 Feb 2008 06:39:07 GMT From: Alan Sanders To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/120873: if_zyd and if_rum panic in usb_transfer_complete 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, 20 Feb 2008 06:50:02 -0000 >Number: 120873 >Category: usb >Synopsis: if_zyd and if_rum panic in usb_transfer_complete >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 20 06:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Alan Sanders >Release: 7.0-RC2 >Organization: Scientify Inc. >Environment: FreeBSD 7.0-RC2 FreeBSD 7.0-RC2 #4: Thu Feb 14 21:23:27 PST 2008 >Description: Repeatable crash when using USB drivers if_zyd or if_rum. Crash occurs in: 0xc06d2fd5 in usb_transfer_complete (xfer=0x0) at /usr/src/sys/dev/usb/usbdi.c:977 >How-To-Repeat: Use either a Zydas or a Ralink 2501 based USB wireless. Put some light load on the network (wget a file). Panic will occur in a minute or two. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Feb 20 15:35:53 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DD7016A402; Wed, 20 Feb 2008 15:35:53 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 565AD13C43E; Wed, 20 Feb 2008 15:35:53 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1KFZqrQ031392; Wed, 20 Feb 2008 15:35:52 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1KFZqfL031388; Wed, 20 Feb 2008 15:35:52 GMT (envelope-from gavin) Date: Wed, 20 Feb 2008 15:35:52 GMT Message-Id: <200802201535.m1KFZqfL031388@freefall.freebsd.org> To: nrgaravelli@yahoo.com, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: usb/72380: [uhub] [request] USB does not work [dual Celeron Abit] 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, 20 Feb 2008 15:35:53 -0000 Synopsis: [uhub] [request] USB does not work [dual Celeron Abit] State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Wed Feb 20 15:22:05 UTC 2008 State-Changed-Why: To submitter: Are you able to try and upgrade your BIOS to the latest version supplied by the manufacturer and test to see if you still have an issue with the BIOS set to SMP 1.4? If it still doesn't work while set 1.4, can you perform a verbose boot, and email me the following info? dmesg > dmesg.1.4 mptable > mptable.1.4 acpidump -dt | gzip -c9 > asl.1.4gz and then switch the BIOS back to 1.1 and do the same? Hopefully we'll be able to figure out the underlying issue... Responsible-Changed-From-To: freebsd-usb->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Wed Feb 20 15:22:05 UTC 2008 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=72380 From owner-freebsd-usb@FreeBSD.ORG Fri Feb 22 12:09:35 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DA2A16A403; Fri, 22 Feb 2008 12:09:35 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE0713C43E; Fri, 22 Feb 2008 12:09:35 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1MC9YOl064640; Fri, 22 Feb 2008 12:09:34 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1MC9Yct064636; Fri, 22 Feb 2008 12:09:34 GMT (envelope-from gavin) Date: Fri, 22 Feb 2008 12:09:34 GMT Message-Id: <200802221209.m1MC9Yct064636@freefall.freebsd.org> To: gavin@FreeBSD.org, freebsd-usb@FreeBSD.org, freebsd-net@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: kern/119945: [rum] [panic] rum device in hostap mode, cause kernel core dump. 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, 22 Feb 2008 12:09:35 -0000 Synopsis: [rum] [panic] rum device in hostap mode, cause kernel core dump. Responsible-Changed-From-To: freebsd-usb->freebsd-net Responsible-Changed-By: gavin Responsible-Changed-When: Fri Feb 22 12:08:13 UTC 2008 Responsible-Changed-Why: To me, this looks like it might be a -net problem, rather than -usb http://www.freebsd.org/cgi/query-pr.cgi?pr=119945 From owner-freebsd-usb@FreeBSD.ORG Fri Feb 22 16:30:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1E3116A400 for ; Fri, 22 Feb 2008 16:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D9D6213C43E for ; Fri, 22 Feb 2008 16:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1MGU5i5086021 for ; Fri, 22 Feb 2008 16:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1MGU5W0086017; Fri, 22 Feb 2008 16:30:05 GMT (envelope-from gnats) Date: Fri, 22 Feb 2008 16:30:05 GMT Message-Id: <200802221630.m1MGU5W0086017@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Jeremie Le Hen Cc: Subject: Re: usb/117185: [umodem] [patch] Add support for UNION interface descriptor X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeremie Le Hen List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 16:30:06 -0000 The following reply was made to PR usb/117185; it has been noted by GNATS. From: Jeremie Le Hen To: FreeBSD-gnats-submit@freebsd.org Cc: freebsd-usb@FreeBSD.org, Eugene Grosbein , jeremie@le-hen.org Subject: Re: usb/117185: [umodem] [patch] Add support for UNION interface descriptor Date: Fri, 22 Feb 2008 17:27:01 +0100 Corrects a typo in the previous patch. --- umodem_nokia.patch begins here --- Index: sys/dev/usb/umodem.c =================================================================== RCS file: /mnt/octobre/space/freebsd-cvs/src/sys/dev/usb/umodem.c,v retrieving revision 1.71 diff -u -r1.71 umodem.c --- sys/dev/usb/umodem.c 29 Jul 2007 18:16:43 -0000 1.71 +++ sys/dev/usb/umodem.c 22 Feb 2008 15:51:50 -0000 @@ -172,13 +172,14 @@ struct task sc_task; }; -static void *umodem_get_desc(usbd_device_handle dev, int type, int subtype); +static void *umodem_get_desc(usbd_device_handle dev, usb_descriptor_t *, int type, int subtype); +static usbd_interface_handle umodem_get_interface(struct usb_attach_arg *uaa, int ifcno); static usbd_status umodem_set_comm_feature(struct umodem_softc *sc, int feature, int state); static usbd_status umodem_set_line_coding(struct umodem_softc *sc, usb_cdc_line_state_t *state); -static void umodem_get_caps(usbd_device_handle, int *, int *); +static int umodem_get_caps(struct usb_attach_arg *, int, int *, int *); static void umodem_get_status(void *, int portno, u_char *lsr, u_char *msr); static void umodem_set(void *, int, int, int); @@ -262,10 +263,7 @@ if (ret == UMATCH_NONE) return (ret); - umodem_get_caps(uaa->device, &cm, &acm); - if (!(cm & USB_CDC_CM_DOES_CM) || - !(cm & USB_CDC_CM_OVER_DATA) || - !(acm & USB_CDC_ACM_HAS_LINE)) + if (umodem_get_caps(uaa, -1, &cm, &acm) == -1) return (UMATCH_NONE); return ret; @@ -279,7 +277,6 @@ usbd_device_handle dev = uaa->device; usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; - usb_cdc_cm_descriptor_t *cmd; int data_ifcno; int i; struct ucom_softc *ucom; @@ -297,15 +294,14 @@ device_printf(self, "iclass %d/%d\n", id->bInterfaceClass, id->bInterfaceSubClass); - umodem_get_caps(dev, &sc->sc_cm_cap, &sc->sc_acm_cap); - /* Get the data interface no. */ - cmd = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); - if (cmd == NULL) { - device_printf(sc->sc_dev, "no CM descriptor\n"); + sc->sc_data_iface_no = data_ifcno = + umodem_get_caps(uaa, sc->sc_ctl_iface_no, &sc->sc_cm_cap, &sc->sc_acm_cap); + + if (data_ifcno == -1) { + device_printf(sc->sc_dev,"no pointer to data interface\n"); goto bad; } - sc->sc_data_iface_no = data_ifcno = cmd->bDataInterface; device_printf(sc->sc_dev, "data interface %d, has %sCM over data, has %sbreak\n", @@ -530,27 +526,50 @@ ucom_status_change(&sc->sc_ucom); } -void -umodem_get_caps(usbd_device_handle dev, int *cm, int *acm) +static int +umodem_get_caps(struct usb_attach_arg *uaa, int ctl_iface_no, int *cm, int *acm) { usb_cdc_cm_descriptor_t *cmd; usb_cdc_acm_descriptor_t *cad; + usb_cdc_union_descriptor_t *cud; + usbd_device_handle dev = uaa->device; + usbd_interface_handle iface; + int iface_no = 0; *cm = *acm = 0; - cmd = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); + cmd = umodem_get_desc(dev, NULL, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); if (cmd == NULL) { DPRINTF(("umodem_get_desc: no CM desc\n")); - return; + } else { + *cm = cmd->bmCapabilities; } - *cm = cmd->bmCapabilities; - cad = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_ACM); + cad = umodem_get_desc(dev, NULL, UDESC_CS_INTERFACE, UDESCSUB_CDC_ACM); if (cad == NULL) { DPRINTF(("umodem_get_desc: no ACM desc\n")); - return; + } else { + *acm = cad->bmCapabilities; + } + + cud = NULL; + while ((cud = umodem_get_desc(dev, (usb_descriptor_t *)cud, + UDESC_CS_INTERFACE, UDESCSUB_CDC_UNION))) + { + iface_no = cud->bSlaveInterface[0]; + if (ctl_iface_no == -1) + break; + + iface = umodem_get_interface(uaa,iface_no); + if (ctl_iface_no == cud->bMasterInterface && + usbd_get_interface_descriptor(iface)->bNumEndpoints >= 2) + break; + } + if (cud == NULL) { + DPRINTF(("umodem_get_caps: no UNION desc\n")); } - *acm = cad->bmCapabilities; + + return cmd ? cmd->bDataInterface : cud ? iface_no : -1; } void @@ -566,6 +585,23 @@ *msr = sc->sc_msr; } +static usbd_interface_handle +umodem_get_interface(struct usb_attach_arg *uaa, int ifcno) +{ + int i; + usb_interface_descriptor_t *id; + + for (i = 0; i < uaa->nifaces; i++) { + if (uaa->ifaces[i] != NULL) { + id = usbd_get_interface_descriptor(uaa->ifaces[i]); + if (id != NULL && id->bInterfaceNumber == ifcno) { + return uaa->ifaces[i]; + } + } + } + return NULL; +} + int umodem_param(void *addr, int portno, struct termios *t) { @@ -756,14 +792,17 @@ return (USBD_NORMAL_COMPLETION); } -void * -umodem_get_desc(usbd_device_handle dev, int type, int subtype) +static void * +umodem_get_desc(usbd_device_handle dev, usb_descriptor_t *restart, int type, int subtype) { usb_descriptor_t *desc; usb_config_descriptor_t *cd = usbd_get_config_descriptor(dev); uByte *p = (uByte *)cd; uByte *end = p + UGETW(cd->wTotalLength); + if (restart) + p = (uByte *)(restart) + restart->bLength; + while (p < end) { desc = (usb_descriptor_t *)p; if (desc->bDescriptorType == type && --- umodem_nokia.patch ends here--- From owner-freebsd-usb@FreeBSD.ORG Fri Feb 22 16:58:25 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75AB916A407 for ; Fri, 22 Feb 2008 16:58:25 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 06E7913C45D for ; Fri, 22 Feb 2008 16:58:24 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by postfix1-g20.free.fr (Postfix) with ESMTP id B200523020A4 for ; Fri, 22 Feb 2008 17:27:07 +0100 (CET) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 1E1FD3F61D1; Fri, 22 Feb 2008 17:27:05 +0100 (CET) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 77F673F6158; Fri, 22 Feb 2008 17:27:04 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 6C05A9BF12; Fri, 22 Feb 2008 16:27:01 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 5A703405B; Fri, 22 Feb 2008 17:27:01 +0100 (CET) Date: Fri, 22 Feb 2008 17:27:01 +0100 From: Jeremie Le Hen To: FreeBSD-gnats-submit@freebsd.org Message-ID: <20080222162701.GB56090@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-06) Cc: jeremie@le-hen.org, Eugene Grosbein , freebsd-usb@FreeBSD.org Subject: Re: usb/117185: [umodem] [patch] Add support for UNION interface descriptor 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, 22 Feb 2008 16:58:25 -0000 Corrects a typo in the previous patch. --- umodem_nokia.patch begins here --- Index: sys/dev/usb/umodem.c =================================================================== RCS file: /mnt/octobre/space/freebsd-cvs/src/sys/dev/usb/umodem.c,v retrieving revision 1.71 diff -u -r1.71 umodem.c --- sys/dev/usb/umodem.c 29 Jul 2007 18:16:43 -0000 1.71 +++ sys/dev/usb/umodem.c 22 Feb 2008 15:51:50 -0000 @@ -172,13 +172,14 @@ struct task sc_task; }; -static void *umodem_get_desc(usbd_device_handle dev, int type, int subtype); +static void *umodem_get_desc(usbd_device_handle dev, usb_descriptor_t *, int type, int subtype); +static usbd_interface_handle umodem_get_interface(struct usb_attach_arg *uaa, int ifcno); static usbd_status umodem_set_comm_feature(struct umodem_softc *sc, int feature, int state); static usbd_status umodem_set_line_coding(struct umodem_softc *sc, usb_cdc_line_state_t *state); -static void umodem_get_caps(usbd_device_handle, int *, int *); +static int umodem_get_caps(struct usb_attach_arg *, int, int *, int *); static void umodem_get_status(void *, int portno, u_char *lsr, u_char *msr); static void umodem_set(void *, int, int, int); @@ -262,10 +263,7 @@ if (ret == UMATCH_NONE) return (ret); - umodem_get_caps(uaa->device, &cm, &acm); - if (!(cm & USB_CDC_CM_DOES_CM) || - !(cm & USB_CDC_CM_OVER_DATA) || - !(acm & USB_CDC_ACM_HAS_LINE)) + if (umodem_get_caps(uaa, -1, &cm, &acm) == -1) return (UMATCH_NONE); return ret; @@ -279,7 +277,6 @@ usbd_device_handle dev = uaa->device; usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; - usb_cdc_cm_descriptor_t *cmd; int data_ifcno; int i; struct ucom_softc *ucom; @@ -297,15 +294,14 @@ device_printf(self, "iclass %d/%d\n", id->bInterfaceClass, id->bInterfaceSubClass); - umodem_get_caps(dev, &sc->sc_cm_cap, &sc->sc_acm_cap); - /* Get the data interface no. */ - cmd = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); - if (cmd == NULL) { - device_printf(sc->sc_dev, "no CM descriptor\n"); + sc->sc_data_iface_no = data_ifcno = + umodem_get_caps(uaa, sc->sc_ctl_iface_no, &sc->sc_cm_cap, &sc->sc_acm_cap); + + if (data_ifcno == -1) { + device_printf(sc->sc_dev,"no pointer to data interface\n"); goto bad; } - sc->sc_data_iface_no = data_ifcno = cmd->bDataInterface; device_printf(sc->sc_dev, "data interface %d, has %sCM over data, has %sbreak\n", @@ -530,27 +526,50 @@ ucom_status_change(&sc->sc_ucom); } -void -umodem_get_caps(usbd_device_handle dev, int *cm, int *acm) +static int +umodem_get_caps(struct usb_attach_arg *uaa, int ctl_iface_no, int *cm, int *acm) { usb_cdc_cm_descriptor_t *cmd; usb_cdc_acm_descriptor_t *cad; + usb_cdc_union_descriptor_t *cud; + usbd_device_handle dev = uaa->device; + usbd_interface_handle iface; + int iface_no = 0; *cm = *acm = 0; - cmd = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); + cmd = umodem_get_desc(dev, NULL, UDESC_CS_INTERFACE, UDESCSUB_CDC_CM); if (cmd == NULL) { DPRINTF(("umodem_get_desc: no CM desc\n")); - return; + } else { + *cm = cmd->bmCapabilities; } - *cm = cmd->bmCapabilities; - cad = umodem_get_desc(dev, UDESC_CS_INTERFACE, UDESCSUB_CDC_ACM); + cad = umodem_get_desc(dev, NULL, UDESC_CS_INTERFACE, UDESCSUB_CDC_ACM); if (cad == NULL) { DPRINTF(("umodem_get_desc: no ACM desc\n")); - return; + } else { + *acm = cad->bmCapabilities; + } + + cud = NULL; + while ((cud = umodem_get_desc(dev, (usb_descriptor_t *)cud, + UDESC_CS_INTERFACE, UDESCSUB_CDC_UNION))) + { + iface_no = cud->bSlaveInterface[0]; + if (ctl_iface_no == -1) + break; + + iface = umodem_get_interface(uaa,iface_no); + if (ctl_iface_no == cud->bMasterInterface && + usbd_get_interface_descriptor(iface)->bNumEndpoints >= 2) + break; + } + if (cud == NULL) { + DPRINTF(("umodem_get_caps: no UNION desc\n")); } - *acm = cad->bmCapabilities; + + return cmd ? cmd->bDataInterface : cud ? iface_no : -1; } void @@ -566,6 +585,23 @@ *msr = sc->sc_msr; } +static usbd_interface_handle +umodem_get_interface(struct usb_attach_arg *uaa, int ifcno) +{ + int i; + usb_interface_descriptor_t *id; + + for (i = 0; i < uaa->nifaces; i++) { + if (uaa->ifaces[i] != NULL) { + id = usbd_get_interface_descriptor(uaa->ifaces[i]); + if (id != NULL && id->bInterfaceNumber == ifcno) { + return uaa->ifaces[i]; + } + } + } + return NULL; +} + int umodem_param(void *addr, int portno, struct termios *t) { @@ -756,14 +792,17 @@ return (USBD_NORMAL_COMPLETION); } -void * -umodem_get_desc(usbd_device_handle dev, int type, int subtype) +static void * +umodem_get_desc(usbd_device_handle dev, usb_descriptor_t *restart, int type, int subtype) { usb_descriptor_t *desc; usb_config_descriptor_t *cd = usbd_get_config_descriptor(dev); uByte *p = (uByte *)cd; uByte *end = p + UGETW(cd->wTotalLength); + if (restart) + p = (uByte *)(restart) + restart->bLength; + while (p < end) { desc = (usb_descriptor_t *)p; if (desc->bDescriptorType == type && --- umodem_nokia.patch ends here--- From owner-freebsd-usb@FreeBSD.ORG Fri Feb 22 19:38:12 2008 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E71216A401 for ; Fri, 22 Feb 2008 19:38:12 +0000 (UTC) (envelope-from nrgaravelli@yahoo.com) Received: from web52006.mail.re2.yahoo.com (web52006.mail.re2.yahoo.com [206.190.49.253]) by mx1.freebsd.org (Postfix) with SMTP id 3252113C469 for ; Fri, 22 Feb 2008 19:38:11 +0000 (UTC) (envelope-from nrgaravelli@yahoo.com) Received: (qmail 24965 invoked by uid 60001); 22 Feb 2008 19:11:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=kWGXahqYJuo5HhCntjVhPN7xRrr/bZZBcXyBi04Z3X54rzJSrY+oXSOkkSIAjWK1vADXFiSTiaaETXfzwzvaokXLIuiLLU6tzB23NXB1RGzWGpxNJupD8SBpr0LYzKpzUe/1EyIbZ3kYEVMem0/Ko7EOxQphUBUz/sv4C++dOi0=; X-YMail-OSG: qJjP7acVM1m.acSk8DvSWg.9KNnaezockAr6ozSiw8QmwIp8Ock1LAutG5OBDWiT6Vo8f6z34cx0E5WswGoNeznHVIOPnUE4qbqctZcXlAyOv39ULziPsSJ_tENWVmvzdDrVgxSD.7qA_fxo94GZDJ0OJw-- Received: from [82.84.94.173] by web52006.mail.re2.yahoo.com via HTTP; Fri, 22 Feb 2008 20:11:30 CET Date: Fri, 22 Feb 2008 20:11:30 +0100 (CET) From: Nolberto Garavelli To: gavin@FreeBSD.org, freebsd-usb@FreeBSD.org In-Reply-To: <200802201535.m1KFZqfL031388@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-130792808-1203707490=:24234" Content-Transfer-Encoding: 8bit Message-ID: <22164.24234.qm@web52006.mail.re2.yahoo.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: usb/72380: [uhub] [request] USB does not work [dual Celeron Abit] 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, 22 Feb 2008 19:38:12 -0000 --0-130792808-1203707490=:24234 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline Ok, here we go (that's why I like fbsd so much) Files you asked for in attachment. Sorry but I do not feel like upgrading BIOS mb. again. I tried once time ago but flashing goes wrong, have to send the chip to reprogram. If there is something else I can do just let me know. Regards, Nolberto --- gavin@FreeBSD.org ha scritto: > Synopsis: [uhub] [request] USB does not work [dual Celeron Abit] > > State-Changed-From-To: open->feedback > State-Changed-By: gavin > State-Changed-When: Wed Feb 20 15:22:05 UTC 2008 > State-Changed-Why: > To submitter: Are you able to try and upgrade your BIOS to the latest > version supplied by the manufacturer and test to see if you still > have an > issue with the BIOS set to SMP 1.4? If it still doesn't work while > set > 1.4, can you perform a verbose boot, and email me the following info? > > dmesg > dmesg.1.4 > mptable > mptable.1.4 > acpidump -dt | gzip -c9 > asl.1.4gz > > and then switch the BIOS back to 1.1 and do the same? > > Hopefully we'll be able to figure out the underlying issue... > > > Responsible-Changed-From-To: freebsd-usb->gavin > Responsible-Changed-By: gavin > Responsible-Changed-When: Wed Feb 20 15:22:05 UTC 2008 > Responsible-Changed-Why: > Track > > http://www.freebsd.org/cgi/query-pr.cgi?pr=72380 > ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html --0-130792808-1203707490=:24234-- From owner-freebsd-usb@FreeBSD.ORG Fri Feb 22 19:50:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6412116A402 for ; Fri, 22 Feb 2008 19:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 455FA13C45E for ; Fri, 22 Feb 2008 19:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1MJo2Id004479 for ; Fri, 22 Feb 2008 19:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1MJo2AE004473; Fri, 22 Feb 2008 19:50:02 GMT (envelope-from gnats) Date: Fri, 22 Feb 2008 19:50:02 GMT Message-Id: <200802221950.m1MJo2AE004473@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Volker Cc: Subject: Re: usb/73056: [ukbd] Sun Microsystems Type 6 USB mouse not working in 5.3 (regression) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 19:50:03 -0000 The following reply was made to PR usb/73056; it has been noted by GNATS. From: Volker To: bug-followup@FreeBSD.org, jseidel@unixsystem.org Cc: Subject: Re: usb/73056: [ukbd] Sun Microsystems Type 6 USB mouse not working in 5.3 (regression) Date: Fri, 22 Feb 2008 20:49:06 +0100 Jason, I'm sorry to find your PR untouched for years. I'm wondering if you can report back if you were successfully getting your device working with later releases of FreeBSD? If not, please provide the maintainers with output of: dmesg usbdevs -dv your kernel config Thanks! From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 01:24:46 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B0E916A401; Sat, 23 Feb 2008 01:24:46 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6721113C461; Sat, 23 Feb 2008 01:24:46 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1N1OkL5032251; Sat, 23 Feb 2008 01:24:46 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1N1Ok5W032247; Sat, 23 Feb 2008 01:24:46 GMT (envelope-from linimon) Date: Sat, 23 Feb 2008 01:24:46 GMT Message-Id: <200802230124.m1N1Ok5W032247@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/120980: [usbdevs] [patch] The Epson CX5400 scanner should be referenced in uscanner.c 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: Sat, 23 Feb 2008 01:24:46 -0000 Old Synopsis: The Epson CX5400 scanner should be referenced in uscanner.c New Synopsis: [usbdevs] [patch] The Epson CX5400 scanner should be referenced in uscanner.c Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Sat Feb 23 01:24:15 UTC 2008 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=120980 From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 02:38:20 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0BB816A402; Sat, 23 Feb 2008 02:38:20 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A7CA613C474; Sat, 23 Feb 2008 02:38:20 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1N2cKjC038148; Sat, 23 Feb 2008 02:38:20 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1N2cKaf038144; Sat, 23 Feb 2008 02:38:20 GMT (envelope-from linimon) Date: Sat, 23 Feb 2008 02:38:20 GMT Message-Id: <200802230238.m1N2cKaf038144@freefall.freebsd.org> To: paul.belair@rogers.com, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/120859: laserjet1000 PR#99460 how to install the patch? 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: Sat, 23 Feb 2008 02:38:20 -0000 Synopsis: laserjet1000 PR#99460 how to install the patch? State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Sat Feb 23 02:36:52 UTC 2008 State-Changed-Why: Paul, Volker has volunteered to try to help you with your printer problem, so I'll let him follow up to this one. http://www.freebsd.org/cgi/query-pr.cgi?pr=120859 From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 03:04:20 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0121E16A40D; Sat, 23 Feb 2008 03:04:20 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C89CE13C442; Sat, 23 Feb 2008 03:04:19 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1N34JCA040458; Sat, 23 Feb 2008 03:04:19 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1N34JJf040454; Sat, 23 Feb 2008 03:04:19 GMT (envelope-from linimon) Date: Sat, 23 Feb 2008 03:04:19 GMT Message-Id: <200802230304.m1N34JJf040454@freefall.freebsd.org> To: jseidel@unixsystem.org, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/73056: [ukbd] Sun Microsystems Type 6 USB mouse not working in 5.3 (regression) 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: Sat, 23 Feb 2008 03:04:20 -0000 Synopsis: [ukbd] Sun Microsystems Type 6 USB mouse not working in 5.3 (regression) State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Sat Feb 23 03:04:09 UTC 2008 State-Changed-Why: Note that submitter has been asked for feedback. http://www.freebsd.org/cgi/query-pr.cgi?pr=73056 From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 03:17:43 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5302516A401; Sat, 23 Feb 2008 03:17:43 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 262DB13C442; Sat, 23 Feb 2008 03:17:43 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1N3HgqV043178; Sat, 23 Feb 2008 03:17:42 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1N3HfQu043174; Sat, 23 Feb 2008 03:17:41 GMT (envelope-from linimon) Date: Sat, 23 Feb 2008 03:17:41 GMT Message-Id: <200802230317.m1N3HfQu043174@freefall.freebsd.org> To: fico@del.ufrj.br, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/74453: [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) does not work 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: Sat, 23 Feb 2008 03:17:43 -0000 Synopsis: [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) does not work State-Changed-From-To: feedback->analyzed State-Changed-By: linimon State-Changed-When: Sat Feb 23 03:16:12 UTC 2008 State-Changed-Why: Confirmed to still be a problem. http://www.freebsd.org/cgi/query-pr.cgi?pr=74453 From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 10:00:08 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58EDC16A409 for ; Sat, 23 Feb 2008 10:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3C20113C4D9 for ; Sat, 23 Feb 2008 10:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1NA08ex079424 for ; Sat, 23 Feb 2008 10:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1NA08dU079423; Sat, 23 Feb 2008 10:00:08 GMT (envelope-from gnats) Date: Sat, 23 Feb 2008 10:00:08 GMT Message-Id: <200802231000.m1NA08dU079423@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Volker Cc: Subject: Re: usb/120859: laserjet1000 PR#99460 how to install the patch? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 10:00:08 -0000 The following reply was made to PR usb/120859; it has been noted by GNATS. From: Volker To: paul.belair@rogers.com Cc: bug-followup@FreeBSD.org Subject: Re: usb/120859: laserjet1000 PR#99460 how to install the patch? Date: Sat, 23 Feb 2008 10:53:45 +0100 Paul, I've seen you've filed more PRs ports/120924 and misc/120950 about your problem. Please follow up with me by private mail if you want your problem get solved instead of filing more PRs! As I already told you, GNATS is a bug tracking database but not a support channel for chatting to a support person. I think you're having several problems at the same time. First, you need to get FreeBSD recognizing your USB device correctly, second you need to have CUPS install a printer driver for you. To work out both, I've already offered assistance to you but unfortunately you did not get back to me. Please send me the following information: dmesg usbctl -v pkg_info -I '*cups*' Also I think the FreeBSD handbook might be of interest to you: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ and you'll find information about our mailing lists at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL For your problem, a good mailing list might be freebsd-questions@ Please either get in touch with me by private mail or use the mailing list for questions like "how do I...". You'll also find friendly people willing to help you in some FreeBSD minded web forums. Thanks! From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 12:00:10 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3571416A496 for ; Sat, 23 Feb 2008 12:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1669213C46A for ; Sat, 23 Feb 2008 12:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1NC09VQ088794 for ; Sat, 23 Feb 2008 12:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1NC09nO088786; Sat, 23 Feb 2008 12:00:09 GMT (envelope-from gnats) Date: Sat, 23 Feb 2008 12:00:09 GMT Message-Id: <200802231200.m1NC09nO088786@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Volker Cc: Subject: Re: usb/74557: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 (regression) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 12:00:10 -0000 The following reply was made to PR usb/74557; it has been noted by GNATS. From: Volker To: bug-followup@FreeBSD.org, h@llorien.org Cc: Subject: Re: usb/74557: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 (regression) Date: Sat, 23 Feb 2008 12:51:45 +0100 I'm wondering if this issue can still be seen on later releases of FreeBSD? Have you tried to newfs this device? I think this is more likely a filesystem issue but an usb issue. There have been a lot of thumb drives with bad filesystem information on the market (to have Windows not complaining about filesystem errors is no indication that the filesystem is fine). Please report back if we can close this PR. Thanks! From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 13:30:05 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA12816A401 for ; Sat, 23 Feb 2008 13:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AC69113C44B for ; Sat, 23 Feb 2008 13:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1NDU4RL098356 for ; Sat, 23 Feb 2008 13:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1NDU4gd098353; Sat, 23 Feb 2008 13:30:04 GMT (envelope-from gnats) Date: Sat, 23 Feb 2008 13:30:04 GMT Message-Id: <200802231330.m1NDU4gd098353@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: h Cc: Subject: Re: usb/74557: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 (regression) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: h List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 13:30:05 -0000 The following reply was made to PR usb/74557; it has been noted by GNATS. From: h To: bug-followup@FreeBSD.org Cc: volker@vwsoft.com Subject: Re: usb/74557: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 (regression) Date: Sat, 23 Feb 2008 13:56:44 +0100 I haven't had any USB key issue in FreeBSD ever since 6.x. Volker wrote: > I'm wondering if this issue can still be seen on later releases of FreeBSD? > > Have you tried to newfs this device? I think this is more likely a > filesystem issue but an usb issue. There have been a lot of thumb drives > with bad filesystem information on the market (to have Windows not > complaining about filesystem errors is no indication that the filesystem > is fine). > > Please report back if we can close this PR. > > Thanks! From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 14:32:22 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F57416A408; Sat, 23 Feb 2008 14:32:22 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F315913C45B; Sat, 23 Feb 2008 14:32:21 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1NEWLuu004180; Sat, 23 Feb 2008 14:32:21 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1NEWLdg004176; Sat, 23 Feb 2008 14:32:21 GMT (envelope-from linimon) Date: Sat, 23 Feb 2008 14:32:21 GMT Message-Id: <200802231432.m1NEWLdg004176@freefall.freebsd.org> To: h@llorien.org, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/74557: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 (regression) 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: Sat, 23 Feb 2008 14:32:22 -0000 Synopsis: imation 500mb usb key can only be written halfway on freebsd 5.3 and 5.2.1 (regression) State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Sat Feb 23 14:30:47 UTC 2008 State-Changed-Why: Submitter notes that there are no issues seen with FreeBSD 6. http://www.freebsd.org/cgi/query-pr.cgi?pr=74557 From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 16:40:03 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A96616A407 for ; Sat, 23 Feb 2008 16:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6740013C47E for ; Sat, 23 Feb 2008 16:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1NGe3Y6014407 for ; Sat, 23 Feb 2008 16:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1NGe3T7014406; Sat, 23 Feb 2008 16:40:03 GMT (envelope-from gnats) Date: Sat, 23 Feb 2008 16:40:03 GMT Message-Id: <200802231640.m1NGe3T7014406@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Volker Cc: Subject: Re: usb/120873: if_zyd and if_rum panic in usb_transfer_complete X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Feb 2008 16:40:03 -0000 The following reply was made to PR usb/120873; it has been noted by GNATS. From: Volker To: bug-followup@FreeBSD.org, alan_1912@yahoo.com Cc: Subject: Re: usb/120873: if_zyd and if_rum panic in usb_transfer_complete Date: Sat, 23 Feb 2008 17:29:45 +0100 Alan, I think the maintainers are aware of if_rum and if_zyd problems but I'm wondering if you can attach a backtrace and the complete panic message to your PR? Also output of `usbdevs -v' might not hurt at all. Thanks! From owner-freebsd-usb@FreeBSD.ORG Sat Feb 23 18:17:37 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 138B816A404; Sat, 23 Feb 2008 18:17:37 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EACC813C467; Sat, 23 Feb 2008 18:17:36 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1NIHaJj023505; Sat, 23 Feb 2008 18:17:36 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1NIHaH4023501; Sat, 23 Feb 2008 18:17:36 GMT (envelope-from gavin) Date: Sat, 23 Feb 2008 18:17:36 GMT Message-Id: <200802231817.m1NIHaH4023501@freefall.freebsd.org> To: alan_1912@yahoo.com, gavin@FreeBSD.org, freebsd-usb@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: usb/120873: if_zyd and if_rum panic in usb_transfer_complete 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: Sat, 23 Feb 2008 18:17:37 -0000 Synopsis: if_zyd and if_rum panic in usb_transfer_complete State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Sat Feb 23 18:17:16 UTC 2008 State-Changed-Why: Submitter was asked for feedback http://www.freebsd.org/cgi/query-pr.cgi?pr=120873