From owner-freebsd-usb@FreeBSD.ORG Sun Jul 29 18:10:39 2007 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 5903916A417 for ; Sun, 29 Jul 2007 18:10:39 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from smtp2.yandex.ru (smtp2.yandex.ru [213.180.200.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4AB3F13C45E for ; Sun, 29 Jul 2007 18:10:38 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from [193.138.150.10] ([193.138.150.10]:21703 "EHLO nx7400.local.domain" smtp-auth: "cvs-src" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4395365AbXG2RhI (ORCPT ); Sun, 29 Jul 2007 21:37:08 +0400 X-Comment: RFC 2476 MSA function at smtp2.yandex.ru logged sender identity as: cvs-src Message-ID: <46AD07FE.30501@yandex.ru> Date: Sun, 29 Jul 2007 21:34:54 +0000 From: "R.Mahmatkhanov" User-Agent: Thunderbird 2.0.0.5 (X11/20070726) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: multipart/mixed; boundary="------------080200060305070905070102" Subject: Missing newline in umodem.c X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cvs-src@yandex.ru List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2007 18:10:39 -0000 This is a multi-part message in MIME format. --------------080200060305070905070102 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Good day! This is cut from my dmesg: """ ucom0: on uhub1 ucom0: iclass 2/2ucom0: data interface 1, has CM over data, has break ucom0: status change notification available """ There are missing newline after "ucom0: iclass 2/2". This printf is in umodem_attach() from umodem.c:297: device_printf(self, "iclass %d/%d", id->bInterfaceClass, id->bInterfaceSubClass); I beleave we can fix this with patch attached. Can anybody please consider it? --------------080200060305070905070102 Content-Type: text/x-patch; name="umodem.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="umodem.c.diff" --- /usr/src/sys/dev/usb/umodem.c 2007-06-28 14:59:51.000000000 +0000 +++ umodem.c 2007-07-29 21:29:24.000000000 +0000 @@ -294,7 +294,7 @@ sc->sc_ctl_iface = uaa->iface; id = usbd_get_interface_descriptor(sc->sc_ctl_iface); sc->sc_ctl_iface_no = id->bInterfaceNumber; - device_printf(self, "iclass %d/%d", id->bInterfaceClass, + device_printf(self, "iclass %d/%d\n", id->bInterfaceClass, id->bInterfaceSubClass); umodem_get_caps(dev, &sc->sc_cm_cap, &sc->sc_acm_cap); --------------080200060305070905070102-- From owner-freebsd-usb@FreeBSD.ORG Sun Jul 29 18:16:53 2007 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 9611716A41B for ; Sun, 29 Jul 2007 18:16:53 +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 31DE113C458 for ; Sun, 29 Jul 2007 18:16:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6TIGCZM079710; Sun, 29 Jul 2007 12:16:13 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 29 Jul 2007 12:16:17 -0600 (MDT) Message-Id: <20070729.121617.1236743422.imp@bsdimp.com> To: cvs-src@yandex.ru From: "M. Warner Losh" In-Reply-To: <46AD07FE.30501@yandex.ru> References: <46AD07FE.30501@yandex.ru> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 29 Jul 2007 12:16:13 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: Missing newline in umodem.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: Sun, 29 Jul 2007 18:16:53 -0000 In message: <46AD07FE.30501@yandex.ru> "R.Mahmatkhanov" writes: : There are missing newline after "ucom0: iclass 2/2". This printf is in : umodem_attach() from umodem.c:297: : : device_printf(self, "iclass %d/%d", id->bInterfaceClass, : id->bInterfaceSubClass); : : I beleave we can fix this with patch attached. : Can anybody please consider it? How right you are. Fixed. Warner From owner-freebsd-usb@FreeBSD.ORG Mon Jul 30 10:16:38 2007 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 28CDA16A41B; Mon, 30 Jul 2007 10:16:38 +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 0591B13C468; Mon, 30 Jul 2007 10:16:38 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6UAGbGI035231; Mon, 30 Jul 2007 10:16:37 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6UAGbWo035224; Mon, 30 Jul 2007 10:16:37 GMT (envelope-from linimon) Date: Mon, 30 Jul 2007 10:16:37 GMT Message-Id: <200707301016.l6UAGbWo035224@freefall.freebsd.org> To: mcgovern@beta.com, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: usb/54981: [patch] QUIRK: Add support for Lexar 256MB USB drive 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, 30 Jul 2007 10:16:38 -0000 Synopsis: [patch] QUIRK: Add support for Lexar 256MB USB drive State-Changed-From-To: feedback->closed State-Changed-By: linimon State-Changed-When: Mon Jul 30 10:16:05 UTC 2007 State-Changed-Why: Feedback timeout (> 1 month). http://www.freebsd.org/cgi/query-pr.cgi?pr=54981 From owner-freebsd-usb@FreeBSD.ORG Mon Jul 30 11:08:40 2007 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 C0CC416A502 for ; Mon, 30 Jul 2007 11:08:40 +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 A2A1413C46B for ; Mon, 30 Jul 2007 11:08:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6UB8e8N040796 for ; Mon, 30 Jul 2007 11:08:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6UB8die040792 for freebsd-usb@FreeBSD.org; Mon, 30 Jul 2007 11:08:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Jul 2007 11:08:39 GMT Message-Id: <200707301108.l6UB8die040792@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 you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 11:08:40 -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 [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/57085 usb [umass] umass0 problems, with Sony Vio/USB memory stic o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should o usb/77184 usb [panic] kernel panic on USB device disconnect o usb/77294 usb [ulpcom] [panic] ucom + ulpcom panic o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb [uhci] UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit a usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/80361 usb [patch] mounting of usb-stick fails o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected s usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb [umass] [panic] EHCI: I/O stuck in state 'physrd'/pani o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb [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 o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] [patch] bogus "slice starts beyond end of the di 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 o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89954 usb [usb] 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 booting very slow with usb devices connection (regress o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91906 usb [hang] FreeBSD hangs while booting with USB legacy sup 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 SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb [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 [irq] device ehci causes interrupt storm on this MSI a o usb/93828 usb [panic] ohci causes panic on boot (HP Pavillion d4100e o usb/94166 usb 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 o usb/95131 usb [install] Boot/setup process does not accept key strok o usb/95348 usb [kbd] USB keyboard unplug causes noise on screen o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb [mouse] USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb [panic] fatback on umass = reboot o usb/97286 usb [mouse] MS Wireless Intellimouse Explorer 2.0 doesn't 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 o usb/102096 usb [patch] /usr/sbin/usbd does not handle multiple device o usb/103025 usb [usb] wrong detection of USB device for FreeBSD 6.1 an o usb/104292 usb [hang] system lockup on forced umount of usb-storage d o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106648 usb [hang] USB Floppy on D1950 10 min Hang on Insert w/o F o 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 [panic] ohci_add_done addr not found o usb/107848 usb [umass] 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 o usb/112568 usb USB mode may wrong when mounting Playstation Pro o usb/112631 usb [panic] Problem with SONY DSC-S80 camera o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/113478 usb [boot] FreeBSD could not start on Core2Duo notebook fr o 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 o usb/113977 usb [feature request] Need a way to set mode of USB disk's o usb/114310 usb [panic] USB hub attachment panics kernel during libusb o usb/114682 usb USB media-card reader unusable o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco 101 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 [usb] USB HP CDW8200 does not work o usb/48342 usb [PATCH] usbd dynamic device list. f usb/51958 usb [urio] [patch] update for urio driver o usb/52026 usb [usb] feature request: umass driver support for InSyst o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o usb/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio o usb/62257 usb [umass] card reader UCR-61S2B is only half-supported o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o usb/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o usb/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/70523 usb [usb] [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 [usb] Slow USB umass performance of 5.3 o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R f usb/74453 usb [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chip 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 o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76732 usb Mouse problems with USB KVM Switch f usb/78984 usb [patch] Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. f usb/81621 usb external hd hangs under load on ehci o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/85067 usb 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 Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92852 usb [mouse] [patch] Vertical scroll not working properly o o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/95173 usb [umass] [patch] cannot mount external usb harddisk VIA o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/97175 usb [hang] USB cardreader hangs system o usb/97472 usb [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 [patch] usb.h: increase maximal size of report descrip 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 cause panic o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104645 usb Rave C-201 MP3 player does not communicate o usb/105065 usb [sata] SATA - USB Bridge f usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/106041 usb FreeBSD does not recognise Mustek BearPaw 2400TA usb s 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 [patch] Apacer USB Flash Drive quirk o usb/107388 usb [PATCH] Add utoppy device from NetBSD o usb/107496 usb USB device problem on RELENG_6_2 (SHORT_XFER) (regress o usb/107665 usb [usb] [patch] uscanner support for epson stylus DX5050 o usb/107701 usb [usbd] 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 o 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 [patch] QUIRK: Super Top IDE DEVICE (depends on usb/11 o usb/112461 usb [ehci] ehci USB 2.0 doesn't work on nforce4 o usb/112463 usb problem with Samsung USB DVD writer, libscg and FreeBS o usb/112944 usb [patch] Bi-directional access to HP LaserJet 1010 prin o usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/113432 usb WARNING: attempt to net_add_domain(netgraph) after dom 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 p usb/114860 usb if_udav / ShanTou ST268 USB NIC o usb/114916 usb USB Maxtor drive (L300RO) requires quirk. o usb/114938 usb can't attach eli-devices on external hd 95 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jul 30 18:24:53 2007 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 9C3B016A417 for ; Mon, 30 Jul 2007 18:24:53 +0000 (UTC) (envelope-from kirk.davis@epsb.ca) Received: from Exchange22.EDU.epsb.ca (exchange22.edu.epsb.ca [198.161.119.187]) by mx1.freebsd.org (Postfix) with ESMTP id 74F7213C45A for ; Mon, 30 Jul 2007 18:24:53 +0000 (UTC) (envelope-from kirk.davis@epsb.ca) Received: from Exchange24.EDU.epsb.ca ([10.0.5.121]) by Exchange22.EDU.epsb.ca with Microsoft SMTPSVC(6.0.3790.1830); Mon, 30 Jul 2007 12:24:48 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Jul 2007 12:24:48 -0600 Message-ID: In-reply-to: <200707280838.57586.hselasky@c2i.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Changing the poer on a USB device Thread-Index: AcfQ4gNBxGdmi9sESnOs+MpFouL4mwB8+UqQ References: <200707280838.57586.hselasky@c2i.net> From: "Kirk Davis" To: "Hans Petter Selasky" , X-OriginalArrivalTime: 30 Jul 2007 18:24:48.0664 (UTC) FILETIME=[E98EE980:01C7D2D6] Cc: Subject: RE: Changing the poer on a USB device 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, 30 Jul 2007 18:24:53 -0000 =20 Hi Hans, > -----Original Message----- > From: Hans Petter Selasky [mailto:hselasky@c2i.net]=20 > Hi Kirk! >=20 > There is a function that is called "usbd_do_request()" in the kernel that will do this. > >Here is an example from my new USB stack: > >static u_int8_t >umass_bbb_get_max_lun(struct umass_softc *sc) { > usb_device_request_t req; > usbd_status err; > u_int8_t buf =3D 0; > > /* The Get Max Lun command is a class-specific request. */ > req.bmRequestType =3D UT_READ_CLASS_INTERFACE; > req.bRequest =3D UR_BBB_GET_MAX_LUN; > USETW(req.wValue, 0); > req.wIndex[0] =3D sc->sc_iface_no; > req.wIndex[1] =3D 0; > USETW(req.wLength, 1); > > err =3D usbd_do_request(sc->sc_udev, &req, &buf); > if (err) { > buf =3D 0; > > /* Device doesn't support Get Max Lun request. */ > printf("%s: Get Max Lun not supported (%s)\n", > sc->sc_name, usbd_errstr(err)); > } > return buf; >} OK. Thanks Hans Is there a kernel equivelent for usb_reset(handle) ? It looks like after I talk to the Blackberry device to set the power levels and mode I need to reset the usb device to it will then tell the bus the correct current level. > >--HPS > >On Friday 27 July 2007, Kirk Davis wrote: >> Hi, >> I am trying to write a device driver for FreeBSD that will detect and=20 >> change a newer blackberry. I have the driver detecting and enabling=20 >> the port when I insert the blackberry but it only configs the USB port=20 >> for 100mA rate. The blackberry needs 500mA and it displays some=20 >> information on the blackberry screen that they current is to low. >> >> Looking at some other code that was written for libusb it looks like=20 >> that is what is needed to turn on the charging: >> >> void charge(struct usb_dev_handle *handle) { >> // the special sauce... these steps seem to do the trick >> // for the 7750 series... needs testing on others >> char buffer[2]; >> usb_control_msg(handle, 0xc0, 0xa5, 0, 1, buffer, 2, 100); >> usb_control_msg(handle, 0x40, 0xa2, 0, 1, buffer, 0, 100); } >> >> >> I'm a weak C programmer and this is my first attempt at a driver. =20 >> Can anyone give my some advise on how I would do something like this=20 >> in a driver? I'm not sure of the kernel equivalent to=20 >> usb_control_msg. >> >> Thanks, Kirk >> >> >> >> Kirk Davis >> Sr. Network Analyst, ITS >> Edmonton Public Schools >> ---- Kirk From owner-freebsd-usb@FreeBSD.ORG Mon Jul 30 22:11:08 2007 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 DB89716A41F for ; Mon, 30 Jul 2007 22:11:08 +0000 (UTC) (envelope-from kirk.davis@epsb.ca) Received: from Exchange22.EDU.epsb.ca (exchange22.edu.epsb.ca [198.161.119.187]) by mx1.freebsd.org (Postfix) with ESMTP id B9FFC13C46B for ; Mon, 30 Jul 2007 22:11:08 +0000 (UTC) (envelope-from kirk.davis@epsb.ca) Received: from Exchange24.EDU.epsb.ca ([10.0.5.121]) by Exchange22.EDU.epsb.ca with Microsoft SMTPSVC(6.0.3790.1830); Mon, 30 Jul 2007 16:11:08 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C7D2F6.878FD319" Date: Mon, 30 Jul 2007 16:11:08 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: (Please test) New blackberry (uberry) driver. Thread-Index: AcfS9oebbFs/u9FlQMGP5NqoG3mL1A== From: "Kirk Davis" To: X-OriginalArrivalTime: 30 Jul 2007 22:11:08.0149 (UTC) FILETIME=[878FE250:01C7D2F6] Cc: Subject: (Please test) New blackberry (uberry) driver. 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, 30 Jul 2007 22:11:08 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C7D2F6.878FD319 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have a new FreeBSD blackberry driver ready for testing. This patch is done against FreeBSD 6.2 (sorry I don't have a 7.0 machine right now). This driver started out as a port of the OpenBSD driver but I have since updated it to handle the newer Blackberry devices (the ones with a removable SD card). =20 The driver enables the 500mA charge rate and on the newer devices it also enables dial mode so that the umass device is able to mount the SD card. I have tested it the following Blackberry models: 8100 (Pearl), 8830 (World Edition), and a 7250. There is still one small problem to over come. When a newer Blackberry with an SD card is detected, the driver tells the Blackberry to switch into dual mode and then the umass device picks up the SD card. The SD card is not accessible though until the users allows it from the blackberry. The umass device complains about this until I type in my password on the Blackberry. Once I do then everything is fine and I can mount the SD card. Is there a Quirk that can be added into the umass driver to tell it not to query the SD card right away? This is my first driver so could one of the USB exports out there look it over and see if the code looks OK. =20 Thanks for your help Warner and Hans! ---- Kirk=20 Kirk Davis Sr. Network Analyst, ITS Edmonton Public Schools Kirk.davis@epsb.ca =20 ------_=_NextPart_001_01C7D2F6.878FD319 Content-Type: application/octet-stream; name="uberry.patch" Content-Transfer-Encoding: base64 Content-Description: uberry.patch Content-Disposition: attachment; filename="uberry.patch" ZGlmZiAtTnJ1IC91c3IvbG9jYWwvY3ZzdXAtc3RhYmxlL3NyYy9zeXMvY29uZi9maWxlcyAvdXNy L3NyYy9zeXMvY29uZi9maWxlcwotLS0gL3Vzci9sb2NhbC9jdnN1cC1zdGFibGUvc3JjL3N5cy9j b25mL2ZpbGVzCUZyaSBPY3QgMjAgMjM6Mjg6NTAgMjAwNgorKysgL3Vzci9zcmMvc3lzL2NvbmYv ZmlsZXMJVHVlIEp1bCAyNCAxODowOTo0MSAyMDA3CkBAIC05OTcsNiArOTk3LDcgQEAKIGRldi91 c2IvdXNiZGkuYwkJCW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z0JdWJlcnJ5LmMgb3B0X3VzYi5oIGRldmljZV9pZi5oIGJ1c19pZi5oIHVzYmRl dnMuaAorCisuaW5jbHVkZSA8YnNkLmttb2QubWs+Cg== ------_=_NextPart_001_01C7D2F6.878FD319-- From owner-freebsd-usb@FreeBSD.ORG Tue Jul 31 11:10:03 2007 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 1FED016A418 for ; Tue, 31 Jul 2007 11:10: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 EBB1013C459 for ; Tue, 31 Jul 2007 11:10: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.1/8.14.1) with ESMTP id l6VBA2mP046133 for ; Tue, 31 Jul 2007 11:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6VBA2Jt046132; Tue, 31 Jul 2007 11:10:02 GMT (envelope-from gnats) Resent-Date: Tue, 31 Jul 2007 11:10:02 GMT Resent-Message-Id: <200707311110.l6VBA2Jt046132@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, beni brinckman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0F6016A418 for ; Tue, 31 Jul 2007 11:05:18 +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 A829A13C48E for ; Tue, 31 Jul 2007 11:05:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6VB5Ii5082257 for ; Tue, 31 Jul 2007 11:05:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l6VB5IFE082256; Tue, 31 Jul 2007 11:05:18 GMT (envelope-from nobody) Message-Id: <200707311105.l6VB5IFE082256@www.freebsd.org> Date: Tue, 31 Jul 2007 11:05:18 GMT From: beni brinckman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/115080: using a Hercules HWGUSB2-54-V2 wifi usb adapter 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, 31 Jul 2007 11:10:03 -0000 >Number: 115080 >Category: usb >Synopsis: using a Hercules HWGUSB2-54-V2 wifi usb adapter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jul 31 11:10:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: beni brinckman >Release: 6.2-REL-p5 >Organization: - >Environment: bsdaddict# uname -a FreeBSD bsdaddict 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Mon Jul 30 18:35:09 UTC 2007 root@bsdaddict:/usr/obj/usr/src/sys/GENERIC i386 bsdaddict# >Description: Detection and correct device id of this usb wifi adapter >How-To-Repeat: >Fix: in /usr/src/sys/dev/usb/usbdevs add : product GUILLEMOT HWGUSB254V2 0x010 HWGUSB2-54-V2 WLAN Add to the usb_devno ural_devs array in /usr/src/sys/dev/usb/if_ural.c : { USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254V2}, >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Jul 31 19:54:30 2007 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 E339C16A417 for ; Tue, 31 Jul 2007 19:54:30 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: from smtp-6.masterhost.ru (smtp-6.masterhost.ru [83.222.24.106]) by mx1.freebsd.org (Postfix) with SMTP id 3893313C461 for ; Tue, 31 Jul 2007 19:54:29 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: (qmail 48039 invoked from network); 31 Jul 2007 19:54:12 -0000 Received: from ns.km10433.keymachine.de (HELO inspirra.localdomain) (izdat%dobrohot.org@62.141.50.149) by smtp1.masterhost.ru with SMTP; 31 Jul 2007 19:54:12 -0000 Received: from inspirra.localdomain (inspirra.localdomain [192.168.2.1]) by inspirra.localdomain (8.14.1/8.13.8) with ESMTP id l6VJrXm0008182 for ; Tue, 31 Jul 2007 23:53:34 +0400 (MSD) (envelope-from andrew@dobrohot.org) Message-ID: <46AF933D.10602@dobrohot.org> Date: Tue, 31 Jul 2007 23:53:33 +0400 From: Andrew Muhametshin Organization: =?windows-1251?Q?=C0=CD=CE_=22=C4=EE=E1=F0=EE=F5=EE=F2=22?= User-Agent: Thunderbird 2.0.0.5 (X11/20070721) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Subject: uscanner + HPS' usb stack + nvidia-driver 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, 31 Jul 2007 19:54:31 -0000 Hi, I've problems with scanning in -STABLE using HPS' USB stack and running X with x11/nvidia-driver - scanning process either hangs or there are extraneous strips on resulting image (http://www.dobrohot.org/files/scanner-error-001.jpg, for example), while everything is ok when scanning from syscons or in X with xf86-video-nv driver. I've tested it in -CURRENT with x11/nvidia-driver and official USB stack - problem can't be reproduced, but scanning speed is much lower than with HPS' USB stack. Is there any hope that it will be solved in the near future? ===== $ scanimage -L device `epson:/dev/uscanner0' is a Epson GT-9300 flatbed scanner egrep "^usb|uscanner" /var/run/dmesg.boot usb0: on ohci0 usb1: EHCI version 1.0 usb1: on ehci0 usb0: 12MBps Full Speed USB v1.0 usb1: 480MBps High Speed USB v2.0 uscanner0: usbdevs -v Controller /dev/usb0: addr 127: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered Controller /dev/usb1: addr 126: high speed, self powered, config 1, EPSON Scanner(0x011b), EPSON(0x04b8), rev 1.00 addr 127: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 addr 126: high speed, self powered, config 1, EPSON Scanner(0x011b), EPSON(0x04b8), rev 1.00 port 5 powered port 6 powered port 7 powered port 8 powered # vmstat -i interrupt total rate irq1: atkbd0 7634 0 irq5: nvidia0+++ 2026534 116 irq7: pcm0 870058 50 irq10: ehci0 50 0 irq11: nfe0 1576908 90 irq12: psm0 1477304 85 irq14: ata0 27196 1 irq15: ata1 53 0 cpu0: timer 34714327 1999 Total 40700064 2344 # pciconf -lv| more ohci0@pci0:11:0: class=0x0c0310 card=0x81c01043 chip=0x026d10de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = USB ehci0@pci0:11:1: class=0x0c0320 card=0x81c01043 chip=0x026e10de rev=0xa3 hdr=0x00 vendor = 'NVIDIA Corporation' class = serial bus subclass = USB # uname -a FreeBSD host01 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jul 22 17:27:18 MSD 2007 root@host01:/usr/obj/usr/src/sys/HOST01 i386 From owner-freebsd-usb@FreeBSD.ORG Tue Jul 31 20:05:15 2007 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 6BB7D16A417 for ; Tue, 31 Jul 2007 20:05:15 +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 0201013C478 for ; Tue, 31 Jul 2007 20:05:14 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6VK4DbH022405; Tue, 31 Jul 2007 14:04:13 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 31 Jul 2007 14:04:13 -0600 (MDT) Message-Id: <20070731.140413.104054619.imp@bsdimp.com> To: andrew@dobrohot.org From: Warner Losh In-Reply-To: <46AF933D.10602@dobrohot.org> References: <46AF933D.10602@dobrohot.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 31 Jul 2007 14:04:14 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: uscanner + HPS' usb stack + nvidia-driver 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, 31 Jul 2007 20:05:15 -0000 > I've tested it in -CURRENT with x11/nvidia-driver and official USB stack > - problem can't be reproduced, but scanning speed is much lower than > with HPS' USB stack. > > Is there any hope that it will be solved in the near future? Define: Much slower. With my scanner, I can't measure a difference in speed using xsane between the two, although I have done only limited testing with hps' stack. I plan on doing a bulk MFC after beta1 goes out. Warner From owner-freebsd-usb@FreeBSD.ORG Wed Aug 1 12:10:08 2007 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 E114B16A418 for ; Wed, 1 Aug 2007 12:10:07 +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 C659F13C48D for ; Wed, 1 Aug 2007 12:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l71CA78L031109 for ; Wed, 1 Aug 2007 12:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l71CA7nR031108; Wed, 1 Aug 2007 12:10:07 GMT (envelope-from gnats) Date: Wed, 1 Aug 2007 12:10:07 GMT Message-Id: <200708011210.l71CA7nR031108@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Antonios Anastasiadis Cc: Subject: Re: usb/104830: [umass] system crashes when copying data to umass devices X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Antonios Anastasiadis List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 12:10:08 -0000 The following reply was made to PR usb/104830; it has been noted by GNATS. From: Antonios Anastasiadis To: bug-followup@FreeBSD.org, arundel@h3c.de Cc: Subject: Re: usb/104830: [umass] system crashes when copying data to umass devices Date: Wed, 01 Aug 2007 14:36:30 +0300 I have exactly the same problem when my usb hdd reaches almost full capacity. The dmesg fills with g_vfs_done() (see below) messages and then the system either locks up or reboots. It had occurred once that the filesystem was completely thrashed and I had to do an fsck -y and digg through lost+found for any surviving files. DMESG using FreeBSD -stable follows: Copyright (c) 1992-2007 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 6.2-STABLE #1: Sun Jul 22 02:32:36 EEST 2007 root@arroyo.wasteland.awmn:/usr/obj/usr/src/sys/GENERIC ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) CPU 1.70GHz (1699.82-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf13 Stepping = 3 Features=0x3febfbff real memory = 803471360 (766 MB) avail memory = 772812800 (737 MB) ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf0000000-0xf7ffffff,0xffa80000-0xffafffff irq 16 at device 2.0 on pci0 agp0: detected 892k stolen memory agp0: aperture size is 128M uhci0: port 0xe800-0xe81f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe880-0xe89f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xec00-0xec1f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xffa7fc00-0xffa7ffff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered uhub4: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/7.02, addr 2 uhub4: single transaction translator uhub4: 4 ports with 4 removable, self powered umass0: vendor 0x04b4 Cypress AT2LP, rev 2.00/2.40, addr 3 pcib1: at device 30.0 on pci0 pci1: on pcib1 fxp0: port 0xdc00-0xdc3f mem 0xff8ff000-0xff8fffff irq 20 at device 8.0 on pci1 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:07:e9:b6:2a:1b isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 31.3 (no driver attached) pci0: at device 31.5 (no driver attached) sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A, console sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A fdc0: port 0x3f0-0x3f1,0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1699816144 Hz quality 800 Timecounters tick every 1.000 msec ad0: 38166MB at ata0-master UDMA100 ad1: 194481MB at ata0-slave UDMA100 ad2: 190782MB at ata1-master UDMA100 umass1: JMicron USB to ATA/ATAPI Bridge, rev 2.00/1.00, addr 4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 190782MB (390721968 512 byte sectors: 255H 63S/T 24321C) da1 at umass-sim1 bus 1 target 0 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers da1: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C) Trying to mount root from ufs:/dev/ad0s1a once the bug triggers, the dmesg floods with messages like these: Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419352709120, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2420919924736, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419342194688, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=8804889317548032, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2425862682624, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419352709120, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2420919924736, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419342194688, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=8804889317548032, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2425862682624, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419352709120, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2420919924736, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419342194688, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=8804889317548032, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2425862682624, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419352709120, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2420919924736, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419342194688, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=8804889317548032, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2425862682624, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419352709120, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2420919924736, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419342194688, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=8804889317548032, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2425862682624, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419352709120, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2420919924736, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419342194688, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=8804889317548032, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2425862682624, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419352709120, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2420919924736, length=16384)]error = 5 Jul 23 12:25:58 arroyo kernel: g_vfs_done():da1e[READ(offset=2419342194688, length=16384)]error = 5 From owner-freebsd-usb@FreeBSD.ORG Thu Aug 2 14:49:32 2007 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 1985A16A417 for ; Thu, 2 Aug 2007 14:49:32 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: from smtp-8.masterhost.ru (smtp-8.masterhost.ru [83.222.24.108]) by mx1.freebsd.org (Postfix) with SMTP id 67E8413C45E for ; Thu, 2 Aug 2007 14:49:31 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: (qmail 76113 invoked from network); 2 Aug 2007 14:49:14 -0000 Received: from ns.km10433.keymachine.de (HELO inspirra.localdomain) (izdat%dobrohot.org@62.141.50.149) by smtp1.masterhost.ru with SMTP; 2 Aug 2007 14:49:14 -0000 Received: from inspirra.localdomain (inspirra.localdomain [192.168.2.1]) by inspirra.localdomain (8.14.1/8.13.8) with ESMTP id l72EVwDT015772 for ; Thu, 2 Aug 2007 18:31:58 +0400 (MSD) (envelope-from andrew@dobrohot.org) Message-ID: <46B1EADD.4040000@dobrohot.org> Date: Thu, 02 Aug 2007 18:31:57 +0400 From: Andrew Muhametshin Organization: =?UTF-8?B?0JDQndCeICLQlNC+0LHRgNC+0YXQvtGCIg==?= User-Agent: Thunderbird 2.0.0.5 (X11/20070721) MIME-Version: 1.0 CC: freebsd-usb@freebsd.org References: <46AF933D.10602@dobrohot.org> <20070731.140413.104054619.imp@bsdimp.com> In-Reply-To: <20070731.140413.104054619.imp@bsdimp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: uscanner + HPS' usb stack + nvidia-driver X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 14:49:32 -0000 Warner Losh пишет: >> I've tested it in -CURRENT with x11/nvidia-driver and official USB stack >> - problem can't be reproduced, but scanning speed is much lower than >> with HPS' USB stack. >> >> Is there any hope that it will be solved in the near future? >> > > Define: Much slower. With my scanner, I can't measure a difference in > speed using xsane between the two, although I have done only limited > testing with hps' stack. > Sorry for some confusion on my part, I thought that HPS' USB stack is already in -CURRENT. But anyway, here are results (and question still stands - is there any way to speed up scanning process; difference becomes hours for hundreds of images): $ uname -a #(+ HPS' USB stack revision 538) FreeBSD host01 6.2-STABLE FreeBSD 6.2-STABLE #1: Wed Aug 1 05:45:10 MSD 2007 root@host01:/usr/obj/usr/src/sys/HOST01 i386 $ uname -a FreeBSD host01.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Jul 26 07:45:03 MSD 2007 root@host01.localdomain:/usr/obj/usr/src/sys/GENERIC i386 $ uname -r 6.2-STABLE $ time scanimage -p --mode color --resolution 600 --quick-format max > /PUBLIC/TMP/000-DEL/6_2-600-max01.pnm Progress: 100.0% real 0m40.984s user 0m3.414s sys 0m0.821s $ uname -r 7.0-CURRENT $ time scanimage -p --resolution 600 --quick-format max --mode color > /PUBLIC/TMP/000-DEL/7_0-600-max01.pnm Progress: 100.0% real 0m56.550s user 0m3.729s sys 0m0.597s $ uname -r 6.2-STABLE $time scanimage -p --mode color --depth 16 --resolution 600 --quick-format max > /PUBLIC/TMP/000-DEL/6_2-600-16-max01.pnm Progress: 100.0% real 1m4.007s user 0m7.485s sys 0m1.731s $ uname -r 7.0-CURRENT $ time scanimage -p --mode color --depth 16 --quick-format max --resolution 600 > /PUBLIC/TMP/000-DEL/7_0-600-16-max01.pnm Progress: 100.0% real 1m40.989s user 0m7.606s sys 0m1.238 From owner-freebsd-usb@FreeBSD.ORG Thu Aug 2 18:42:40 2007 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 41D9B16A468 for ; Thu, 2 Aug 2007 18:42:40 +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 A1EF413C442 for ; Thu, 2 Aug 2007 18:42:39 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [212.17.141.54] (account mc467741@c2i.net HELO [10.150.158.249]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 571303586; Thu, 02 Aug 2007 20:42:32 +0200 From: Hans Petter Selasky To: "Kirk Davis" Date: Thu, 2 Aug 2007 20:42:06 +0200 User-Agent: KMail/1.9.7 References: <200707280838.57586.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708022042.06643.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Changing the poer on a USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 18:42:40 -0000 Hi Kirk, I've been very busy this week. Try searching the sources. Maybe you have to set a different USB configuration on the device. --HPS On Monday 30 July 2007, Kirk Davis wrote: > Hi Hans, > > > -----Original Message----- > > From: Hans Petter Selasky [mailto:hselasky@c2i.net] > > Hi Kirk! > > > > There is a function that is called "usbd_do_request()" in the kernel > > that will do this. > > >Here is an example from my new USB stack: > > > >static u_int8_t > >umass_bbb_get_max_lun(struct umass_softc *sc) { > > usb_device_request_t req; > > usbd_status err; > > u_int8_t buf = 0; > > > > /* The Get Max Lun command is a class-specific request. */ > > req.bmRequestType = UT_READ_CLASS_INTERFACE; > > req.bRequest = UR_BBB_GET_MAX_LUN; > > USETW(req.wValue, 0); > > req.wIndex[0] = sc->sc_iface_no; > > req.wIndex[1] = 0; > > USETW(req.wLength, 1); > > > > err = usbd_do_request(sc->sc_udev, &req, &buf); > > if (err) { > > buf = 0; > > > > /* Device doesn't support Get Max Lun request. */ > > printf("%s: Get Max Lun not supported (%s)\n", > > sc->sc_name, usbd_errstr(err)); > > } > > return buf; > >} > > OK. Thanks Hans > > Is there a kernel equivelent for usb_reset(handle) ? It looks like > after I talk to the Blackberry device to set the power levels and mode I > need to reset the usb device to it will then tell the bus the correct > current level. > > >--HPS > > > >On Friday 27 July 2007, Kirk Davis wrote: > >> Hi, > >> I am trying to write a device driver for FreeBSD that will > > detect and > > >> change a newer blackberry. I have the driver detecting and enabling > >> the port when I insert the blackberry but it only configs the USB > > port > > >> for 100mA rate. The blackberry needs 500mA and it displays some > >> information on the blackberry screen that they current is to low. > >> > >> Looking at some other code that was written for libusb it looks > > like > > >> that is what is needed to turn on the charging: > >> > >> void charge(struct usb_dev_handle *handle) { > >> // the special sauce... these steps seem to do the trick > >> // for the 7750 series... needs testing on others > >> char buffer[2]; > >> usb_control_msg(handle, 0xc0, 0xa5, 0, 1, buffer, 2, 100); > >> usb_control_msg(handle, 0x40, 0xa2, 0, 1, buffer, 0, 100); } > >> > >> > >> I'm a weak C programmer and this is my first attempt at a > > driver. > > >> Can anyone give my some advise on how I would do something like this > >> in a driver? I'm not sure of the kernel equivalent to > >> usb_control_msg. > >> > >> Thanks, Kirk > >> > >> > >> > >> Kirk Davis > >> Sr. Network Analyst, ITS > >> Edmonton Public Schools > > ---- Kirk From owner-freebsd-usb@FreeBSD.ORG Thu Aug 2 19:01:30 2007 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 4DBAB16A417 for ; Thu, 2 Aug 2007 19:01:30 +0000 (UTC) (envelope-from srainwater@fwmurphy.com) Received: from fwmurphy.com (Mail.fwmurphy.com [65.162.241.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2024B13C4D3 for ; Thu, 2 Aug 2007 19:01:30 +0000 (UTC) (envelope-from srainwater@fwmurphy.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 2 Aug 2007 13:45:52 -0500 Message-ID: <7DBCDCDE8BAD224A9D4EC1BD6991A16807417AD3@msfwmmail.fwmurphy.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD USB Host Stack porting help Thread-Index: AcfVNVpArir0COjdSASXNP/MxkU+0A== From: "Scott Rainwater" To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD USB Host Stack porting help X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 19:01:30 -0000 Dear FreeBSD USB developers,=0AI am working on a project requiring a USB Ho= st stack which will run on an ARM9 using uC/OS-II (an embedded real time OS= =2E) I have found several commercial USB host solutions that would work bu= t would like to explore the possibility of using the USB stack from FreeBSD= =2E =0AI have downloaded all of the required source files from dev/usb/ an= d all of their #includes but I am at a loss as to where to start in porting= them for use on our platform=2E I will admit that part of my confusion is= likely due to the fact that I am not familiar with the FreeBSD operating s= ystem=2E =0AHow tightly is the USB stack integrated into BSD? Is there an= y documentation available that covers the structure of the USB stack that w= ould be useful in porting it to another platform?=0A =0AAny thoughts or sug= gestions would be greatly appreciated=2E=0AAs much as I would like to make = this work, if you think that this is a hopeless task feel free to tell me= =2E=0A =0AThanks,=0A Scott=0A_____________________________________=0ASco= tt Rainwater=0AFW Murphy=0ASoftware Development Intern=2E=0AOffice=0A(918) = 317-4351=0AEmail=0Asrainwater@fwmurphy=2Ecom=0A=0A=0D=0A=E2=80=9CThis messa= ge and any attachments may contain FW Murphy information=0Athat is highly c= onfidential, privileged, and exempt from=0Adisclosure=2E Any recipient oth= er than the intended recipient is=0Aadvised that dissemination, distributio= n, copying, or other use of=0Athis message is strictly prohibited=2E If yo= u have received this=0Amessage in error, please notify the sender immediate= ly, plus delete=0Athe message and any backups=2E=E2=80=9D From owner-freebsd-usb@FreeBSD.ORG Sat Aug 4 11:43:02 2007 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 37BDB16A417 for ; Sat, 4 Aug 2007 11:43:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id B7EF713C478 for ; Sat, 4 Aug 2007 11:43:01 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [212.17.141.53] (account mc467741@c2i.net HELO [10.150.49.152]) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.10) with ESMTPA id 546267926; Sat, 04 Aug 2007 13:27:56 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 4 Aug 2007 13:27:58 +0200 User-Agent: KMail/1.9.7 References: <7DBCDCDE8BAD224A9D4EC1BD6991A16807417AD3@msfwmmail.fwmurphy.com> In-Reply-To: <7DBCDCDE8BAD224A9D4EC1BD6991A16807417AD3@msfwmmail.fwmurphy.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200708041327.58879.hselasky@c2i.net> Cc: Scott Rainwater Subject: Re: FreeBSD USB Host Stack porting help 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, 04 Aug 2007 11:43:02 -0000 Hi, Maybe you want to look at the HPS USB stack: http://www.turbocat.net/~hselasky/usb4bsd Download the SVN version. I have an emulation layer there that emulates the whole of the FreeBSD bus= =20 system which you will need. =2D-HPS On Thursday 02 August 2007, Scott Rainwater wrote: > Dear FreeBSD USB developers, > I am working on a project requiring a USB Host stack which will run on an > ARM9 using uC/OS-II (an embedded real time OS.) I have found several > commercial USB host solutions that would work but would like to explore t= he > possibility of using the USB stack from FreeBSD. I have downloaded all of > the required source files from dev/usb/ and all of their #includes but I = am > at a loss as to where to start in porting them for use on our platform. I > will admit that part of my confusion is likely due to the fact that I am > not familiar with the FreeBSD operating system. How tightly is the USB > stack integrated into BSD? Is there any documentation available that > covers the structure of the USB stack that would be useful in porting it = to > another platform? > > Any thoughts or suggestions would be greatly appreciated. > As much as I would like to make this work, if you think that this is a > hopeless task feel free to tell me. > > Thanks, > Scott > _____________________________________ > Scott Rainwater > FW Murphy > Software Development Intern. > Office > (918) 317-4351 > Email > srainwater@fwmurphy.com > > > =E2=80=9CThis message and any attachments may contain FW Murphy informati= on > that is highly confidential, privileged, and exempt from > disclosure. Any recipient other than the intended recipient is > advised that dissemination, distribution, copying, or other use of > this message is strictly prohibited. If you have received this > message in error, please notify the sender immediately, plus delete > the message and any backups.=E2=80=9D > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sat Aug 4 12:07:43 2007 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 299BB16A41A for ; Sat, 4 Aug 2007 12:07:43 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: from smtp-4.masterhost.ru (smtp-4.masterhost.ru [83.222.24.104]) by mx1.freebsd.org (Postfix) with SMTP id 8865B13C46A for ; Sat, 4 Aug 2007 12:07:42 +0000 (UTC) (envelope-from andrew@dobrohot.org) Received: (qmail 62801 invoked from network); 4 Aug 2007 12:07:25 -0000 Received: from unknown (HELO inspirra.localdomain) (izdat%dobrohot.org@195.133.109.226) by smtp1.masterhost.ru with SMTP; 4 Aug 2007 12:07:25 -0000 Received: from inspirra.localdomain (inspirra.localdomain [192.168.2.1]) by inspirra.localdomain (8.14.1/8.13.8) with ESMTP id l74C6Cwq009182 for ; Sat, 4 Aug 2007 16:06:13 +0400 (MSD) (envelope-from andrew@dobrohot.org) Message-ID: <46B46BB4.7080405@dobrohot.org> Date: Sat, 04 Aug 2007 16:06:12 +0400 From: Andrew Muhametshin Organization: =?windows-1251?Q?=C0=CD=CE_=22=C4=EE=E1=F0=EE=F5=EE=F2=22?= User-Agent: Thunderbird 2.0.0.5 (X11/20070721) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Subject: device problem (IOERROR) 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, 04 Aug 2007 12:07:43 -0000 Hi, In the -CURRENT, umass-device is defined normally. But in the -STABLE is not present and at connection of the device there are messages: uhub0: device problem (IOERROR), disabling port 3 What means this message? What reason of this message? ##################### ###6.2-STABLE (host 1) device problem (IOERROR) ##################### uname -a FreeBSD host01 6.2-STABLE FreeBSD 6.2-STABLE #2: Sat Aug 4 14:53:21 MSD 2007 root@host01:/usr/obj/usr/src/sys/HOST01 i386 $ dmesg -a | egrep "^usb|uhub|hci" ohci0: mem 0xfe02f000-0xfe02ffff irq 5 at device 11.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered ehci0: mem 0xfe02e000-0xfe02e0ff irq 10 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 8 ports with 8 removable, self powered uhub0: device problem (IOERROR), disabling port 3 $ usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered <...>skip<...> port 8 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered <...>skip<...> port 8 powered ##################### ###6.2-STABLE (host 2) device problem (IOERROR) ##################### $ uname -a FreeBSD inspirra.localdomain 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Aug 3 13:24:00 MSD 2007 root@inspirra.localdomain:/SHARED/obj.inspirra/usr/src/sys/INSPIRRA i386 $ dmesg -a | egrep "^usb|uhub|hci" ohci0: mem 0xfe02f000-0xfe02ffff irq 21 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 10 ports with 10 removable, self powered ehci0: mem 0xfeb00000-0xfeb000ff irq 22 at device 2.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 4 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 10 ports with 10 removable, self powered uhub0: device problem (IOERROR), disabling port 4 $ usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, Jabra - A320s(0x2101), Broadcom Corp(0x0a5c), rev 1.00 port 2 powered <...>skip<....> port 10 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered <...>skip<....> port 10 powered ##################### ### 7.0-CURRENT (host 1) device is defined without problems. ##################### FreeBSD host01.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Jul 26 07:45:03 MSD 2007 root@host01.localdomain:/usr/obj/usr/src/sys/GENERIC i386 $ dmesg -a | egrep "^usb|uhub|hci" ohci0: mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 ehci0: mem 0xfe02e000-0xfe02e0ff irq 22 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: on usb1 $ usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered port 2 powered port 3 addr 2: full speed, self powered, config 1, product 0x500b(0x500b), vendor 0x04e8(0x04e8), rev 1.00 port 4 powered <...>skip<...> port 8 powered Controller /dev/usb1: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), nVidia(0x0000), rev 1.00 port 1 powered <...>skip<...> port 8 powered