From owner-freebsd-usb@FreeBSD.ORG Mon Jan 5 11:07:01 2009 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 7FE92106566C for ; Mon, 5 Jan 2009 11:07:01 +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 6BCED8FC16 for ; Mon, 5 Jan 2009 11:07:01 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n05B71qm002963 for ; Mon, 5 Jan 2009 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n05B70Gp002959 for freebsd-usb@FreeBSD.org; Mon, 5 Jan 2009 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Jan 2009 11:07:00 GMT Message-Id: <200901051107.n05B70Gp002959@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, 05 Jan 2009 11:07:01 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/130122 usb [newusb] DVD drive detects as 'da' device o usb/130066 usb [newusb] Serial adaptor use fail with 'unsupported spe o usb/130024 usb [newusb] Sun Type 7 Unix keyboard doesn't work with us o usb/129964 usb [newusb] disconnection of ugen devices isn't logged o bin/129963 usb [newusb] usbconfig(8) fails with misleading error when o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/125072 usb [uplcom] [patch] add Mobile Action MA-620 Infrared Ada o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom][ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s o usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/120017 usb [ehci] [patch] CS5536 (AMD Geode) USB 2.0 quirk o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117185 usb [umodem] [patch] Add support for UNION interface descr o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/117075 usb [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID s usb/110991 usb [usbdevs] [patch] QUIRK: Super Top IDE DEVICE (depends o usb/110988 usb [umass] [patch] Handling of quirk IGNORE_RESIDUE is um o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107446 usb [umass] umass problems (usb and fw disks) o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 295 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 5 15:04:59 2009 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 781CF106564A for ; Mon, 5 Jan 2009 15:04:59 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from sorbesgroup.com (mail.sorbesgroup.com [217.159.241.118]) by mx1.freebsd.org (Postfix) with ESMTP id 3411D8FC16 for ; Mon, 5 Jan 2009 15:04:59 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from localhost (localhost.localdomain [127.0.0.1]) by sorbesgroup.com (Postfix) with ESMTP id C450E3C508D4 for ; Mon, 5 Jan 2009 16:34:54 +0200 (EET) Received: from sorbesgroup.com ([127.0.0.1]) by localhost (sorbesgroup.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02752-05 for ; Mon, 5 Jan 2009 16:34:54 +0200 (EET) Received: from [192.168.0.80] (andrei [192.168.0.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sorbesgroup.com (Postfix) with ESMTP id EB6F63C508C9 for ; Mon, 5 Jan 2009 16:34:53 +0200 (EET) Message-ID: <49621C6D.1080103@bsd.ee> Date: Mon, 05 Jan 2009 16:42:53 +0200 From: Andrei Kolu User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at localhost Cc: Subject: old problem with APC Back-Ups ES 550 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, 05 Jan 2009 15:04:59 -0000 Hello, I have problem using APC Back-UPS ES 550 with FreeBSD 7.1-STABLE (same problem with 7.0 and up)- after boot kernel detects UPS and shows it like that: ------------------------------------------------------------------------------------------------------------------------ ugen0: on uhub6 ------------------------------------------------------------------------------------------------------------------------ But apcupsd does not detect it, instead it wrote into logs: ------------------------------------------------------------------------------------------------------------------------ Mon Jan 05 16:27:09 EET 2009 apcupsd FATAL ERROR in newups.c at line 103 Mutex lock failure. ERR=Resource deadlock avoided ------------------------------------------------------------------------------------------------------------------------ And I am able to use it after removal of USB cable from computer and inserting it back into same usb connector: ------------------------------------------------------------------------------------------------------------------------ Jan 5 16:28:16 testiserver kernel: ugen0: at uhub6 port 1 (addr 2) disconnected Jan 5 16:28:17 testiserver kernel: ugen0: detached Jan 5 16:28:24 testiserver root: Unknown USB device: vendor 0x051d product 0x0002 bus uhub6 Jan 5 16:28:24 testiserver kernel: ugen0: on uhub6 Jan 5 16:28:25 testiserver apcupsd[1604]: Communications with UPS restored. ------------------------------------------------------------------------------------------------------------------------ From owner-freebsd-usb@FreeBSD.ORG Mon Jan 5 16:50:03 2009 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 A11CF1065672 for ; Mon, 5 Jan 2009 16: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 8F1DB8FC16 for ; Mon, 5 Jan 2009 16: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.3/8.14.3) with ESMTP id n05Go3kl062478 for ; Mon, 5 Jan 2009 16:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n05Go3p3062476; Mon, 5 Jan 2009 16:50:03 GMT (envelope-from gnats) Date: Mon, 5 Jan 2009 16:50:03 GMT Message-Id: <200901051650.n05Go3p3062476@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Stephen Hassard" Cc: Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stephen Hassard List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2009 16:50:04 -0000 The following reply was made to PR usb/107827; it has been noted by GNATS. From: "Stephen Hassard" To: bug-followup@freebsd.org Cc: Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found Date: Mon, 5 Jan 2009 08:14:17 -0800 ------=_Part_82143_28755622.1231172057944 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm experiencing the same problem on a Gigabyte GA-MA78GPM-DS2H motherboard using FreeBSD 7.1 x64. The chipset is a modern AMD 780G + SB700. http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2859 This failure happens on boot with the installation CD. Booting the CD with ACPI disabled, safe mode, verbose logging result in the same error. ------=_Part_82143_28755622.1231172057944 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm experiencing the same problem on a Gigabyte GA-MA78GPM-DS2H motherboard using FreeBSD 7.1 x64.

The chipset is a modern AMD 780G + SB700.


This failure happens on boot with the installation CD.

Booting the CD with ACPI disabled, safe mode, verbose logging result in the same error.
------=_Part_82143_28755622.1231172057944-- From owner-freebsd-usb@FreeBSD.ORG Mon Jan 5 18:00:09 2009 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 B1B92106564A for ; Mon, 5 Jan 2009 18:00:09 +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 96C4C8FC19 for ; Mon, 5 Jan 2009 18:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n05I09wT016409 for ; Mon, 5 Jan 2009 18:00:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n05I097i016408; Mon, 5 Jan 2009 18:00:09 GMT (envelope-from gnats) Date: Mon, 5 Jan 2009 18:00:09 GMT Message-Id: <200901051800.n05I097i016408@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: =?ISO-8859-15?Q?Dorian_B=FCttner?= Cc: Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?ISO-8859-15?Q?Dorian_B=FCttner?= List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2009 18:00:10 -0000 The following reply was made to PR usb/107827; it has been noted by GNATS. From: =?ISO-8859-15?Q?Dorian_B=FCttner?= To: bug-followup@FreeBSD.org, fstoffel@gmx.de Cc: Subject: Re: usb/107827: [ohci] [panic] ohci_add_done addr not found Date: Mon, 05 Jan 2009 17:24:59 +0000 Same thing here on an amd64 with sb600 chipset, despite the addr value in the error message might differ. First thaught was that it would relate especially to my keyboard, but the kernel crashes with nearly everything I attach to the usb ports. Leaving the ports empty during boot however will let the kernel pass through, and I can safely attach everything I want once the machine is up. Another point that drives me nuts since I totally have no idea how it fits into the scene: I have a case with front side usb connectors. These can connect to internal usb connectors via 4 pin loose wires that are marked as ground, vcc2, usb2- and usb2+. Using that connector, the kernel does not panic. Anyone an idea what could the issue? From owner-freebsd-usb@FreeBSD.ORG Mon Jan 5 22:00:12 2009 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 41EFA106566B for ; Mon, 5 Jan 2009 22:00:12 +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 17D6A8FC18 for ; Mon, 5 Jan 2009 22:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n05M0B05095444 for ; Mon, 5 Jan 2009 22:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n05M0BhN095443; Mon, 5 Jan 2009 22:00:11 GMT (envelope-from gnats) Resent-Date: Mon, 5 Jan 2009 22:00:11 GMT Resent-Message-Id: <200901052200.n05M0BhN095443@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, Russell Sutherland Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55E69106566C for ; Mon, 5 Jan 2009 21:55: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 443628FC0C for ; Mon, 5 Jan 2009 21:55:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n05Lt7Tc059354 for ; Mon, 5 Jan 2009 21:55:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n05Lt67A059353; Mon, 5 Jan 2009 21:55:06 GMT (envelope-from nobody) Message-Id: <200901052155.n05Lt67A059353@www.freebsd.org> Date: Mon, 5 Jan 2009 21:55:06 GMT From: Russell Sutherland To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/130208: Boot process severely hampered by umass0 error 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, 05 Jan 2009 22:00:12 -0000 >Number: 130208 >Category: usb >Synopsis: Boot process severely hampered by umass0 error >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 05 22:00:11 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Russell Sutherland >Release: 7.1-RELEASE >Organization: Quist Consulting >Environment: FreeBSD backup.cns.utoronto.ca 7.1-RELEASE FreeBSD 7.1-RELEASE #2: Mon Jan 5 11:43:48 EST 2009 root@backup.cns.utoronto.ca:/backup/opt/obj/backup/opt/src/sys/GENERIC i386 >Description: The boot process waits for several minutes due to a umass error: umass0: on uhub0 umass0: Get Max Lun not supported (IOERROR) Waiting 5 seconds for SCSI devices to settle run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 240 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR sa0 at ahc0 bus 0 target 6 lun 0 sa0: Removable Sequential Access SCSI-3 device sa0: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit) SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad0s1a This problem did not seem to exist with FreeBSD 7.0 >How-To-Repeat: Reboot >Fix: No idea. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 00:44:24 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D822106566B for ; Tue, 6 Jan 2009 00:44:24 +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 C44658FC0C for ; Tue, 6 Jan 2009 00:44:23 +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 n060fKU5020087 for ; Mon, 5 Jan 2009 17:41:20 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 05 Jan 2009 17:41:37 -0700 (MST) Message-Id: <20090105.174137.1560853961.imp@bsdimp.com> To: usb@freebsd.org From: "M. Warner Losh" 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 Cc: Subject: xsane busted with usb2 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, 06 Jan 2009 00:44:24 -0000 With sys/dev/usb, I'm able to kldload uscanner and xsane just works. With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 in the ls listing, but one can open that file directly. trussing sane-find-scanners yields: ... open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 (0x5ec) getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7fffffffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) close(4) = 0 (0x0) open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) ... Is there a fix for this? Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 08:38:01 2009 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 19180106564A for ; Tue, 6 Jan 2009 08:38:01 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id C27278FC12 for ; Tue, 6 Jan 2009 08:37:59 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=UVZKKvhF05x_NEPSp1UA:9 a=feehSDunE0T59e8KTFXrcoJnneUA:4 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1175249327; Tue, 06 Jan 2009 09:37:57 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 6 Jan 2009 09:40:21 +0100 User-Agent: KMail/1.9.7 References: <20090105.174137.1560853961.imp@bsdimp.com> In-Reply-To: <20090105.174137.1560853961.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901060940.21830.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 08:38:01 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > in the ls listing, but one can open that file directly. trussing > sane-find-scanners yields: > > ... > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 > (0x5ec) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > close(4) = 0 (0x0) > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > ... > > Is there a fix for this? Hi, I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with libusb20. Then everything should work. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 09:38:01 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA67C106566B for ; Tue, 6 Jan 2009 09:38:01 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 545AE8FC23 for ; Tue, 6 Jan 2009 09:38:01 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=UVZKKvhF05x_NEPSp1UA:9 a=feehSDunE0T59e8KTFXrcoJnneUA:4 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1175249327; Tue, 06 Jan 2009 09:37:57 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 6 Jan 2009 09:40:21 +0100 User-Agent: KMail/1.9.7 References: <20090105.174137.1560853961.imp@bsdimp.com> In-Reply-To: <20090105.174137.1560853961.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901060940.21830.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 09:38:02 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > in the ls listing, but one can open that file directly. trussing > sane-find-scanners yields: > > ... > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 > (0x5ec) > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > close(4) = 0 (0x0) > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > ... > > Is there a fix for this? Hi, I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with libusb20. Then everything should work. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 14:10:01 2009 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 785071065673 for ; Tue, 6 Jan 2009 14:10:01 +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 542748FC20 for ; Tue, 6 Jan 2009 14: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.3/8.14.3) with ESMTP id n06EA1ct055821 for ; Tue, 6 Jan 2009 14:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n06EA1nJ055820; Tue, 6 Jan 2009 14:10:01 GMT (envelope-from gnats) Resent-Date: Tue, 6 Jan 2009 14:10:01 GMT Resent-Message-Id: <200901061410.n06EA1nJ055820@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, Boris Kochergin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87FB4106564A for ; Tue, 6 Jan 2009 14:04:20 +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 75FF38FC08 for ; Tue, 6 Jan 2009 14:04:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n06E4KfC036212 for ; Tue, 6 Jan 2009 14:04:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n06E4KbM036211; Tue, 6 Jan 2009 14:04:20 GMT (envelope-from nobody) Message-Id: <200901061404.n06E4KbM036211@www.freebsd.org> Date: Tue, 6 Jan 2009 14:04:20 GMT From: Boris Kochergin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE 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, 06 Jan 2009 14:10:01 -0000 >Number: 130230 >Category: usb >Synopsis: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 06 14:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Boris Kochergin >Release: 7.1-RELEASE >Organization: Polytechnic Institute of NYU >Environment: FreeBSD peer 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Sat Jan 3 20:49:25 EST 2009 root@peer:/usr/obj/usr/src/sys/PEER i386 >Description: In FreeBSD 7.0, I used the patch submitted with kern/125398 to get the device to work. I notice that the quirk has been added to scsi_da.c in 7.1, but the device no longer attaches: umass0: on uhub4 (da0:umass-sim0:0:0:0): got CAM status 0x4 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry A random USB flash drive I tried to make sure it wasn't a more general problem worked (I was able to mount it and everything): umass0: on uhub4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 963MB (1974271 512 byte sectors: 64H 32S/T 963C) >How-To-Repeat: Plug a Samsung Electronics YP-U3 into a 7.1-RELEASE machine >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:24:32 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9D5410656C2; Tue, 6 Jan 2009 15:24:32 +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 5CA808FC16; Tue, 6 Jan 2009 15:24:32 +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 n06FKqD5036134; Tue, 6 Jan 2009 08:20:52 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 08:21:05 -0700 (MST) Message-Id: <20090106.082105.-1404127776.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901060940.21830.hselasky@c2i.net> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> 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 Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:24:33 -0000 In message: <200901060940.21830.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > in the ls listing, but one can open that file directly. trussing : > sane-find-scanners yields: : > : > ... : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 : > (0x5ec) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff : >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > close(4) = 0 (0x0) : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > ... : > : > Is there a fix for this? : : Hi, : : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : libusb20. Then everything should work. So I have to rebuild all the programs that use sane? Grump. Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:24:32 2009 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 A9D5410656C2; Tue, 6 Jan 2009 15:24:32 +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 5CA808FC16; Tue, 6 Jan 2009 15:24:32 +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 n06FKqD5036134; Tue, 6 Jan 2009 08:20:52 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 08:21:05 -0700 (MST) Message-Id: <20090106.082105.-1404127776.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901060940.21830.hselasky@c2i.net> References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> 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 Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:24:33 -0000 In message: <200901060940.21830.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > in the ls listing, but one can open that file directly. trussing : > sane-find-scanners yields: : > : > ... : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = 1516 : > (0x5ec) : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7ffff : >fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > close(4) = 0 (0x0) : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > ... : > : > Is there a fix for this? : : Hi, : : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : libusb20. Then everything should work. So I have to rebuild all the programs that use sane? Grump. Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:26:33 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 767E3106566B; Tue, 6 Jan 2009 15:26:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.tele2.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id A9EB58FC0C; Tue, 6 Jan 2009 15:26:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=JOMySJw0SUaE3pB-_OYA:9 a=aJ6bFuHa4lHFia6dnS_Q2V_naY0A:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 433493578; Tue, 06 Jan 2009 16:26:30 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:28:53 +0100 User-Agent: KMail/1.9.7 References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061628.53623.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:26:33 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > > So I have to rebuild all the programs that use sane? Grump. > > Warner No. Just re-link the sane library. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:26:33 2009 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 767E3106566B; Tue, 6 Jan 2009 15:26:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.tele2.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id A9EB58FC0C; Tue, 6 Jan 2009 15:26:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=JOMySJw0SUaE3pB-_OYA:9 a=aJ6bFuHa4lHFia6dnS_Q2V_naY0A:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 433493578; Tue, 06 Jan 2009 16:26:30 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:28:53 +0100 User-Agent: KMail/1.9.7 References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061628.53623.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:26:33 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > > So I have to rebuild all the programs that use sane? Grump. > > Warner No. Just re-link the sane library. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:27:41 2009 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 0845D106564A; Tue, 6 Jan 2009 15:27:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 3668B8FC1D; Tue, 6 Jan 2009 15:27:39 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=5vIbqlDvGGnXSj0LqOQA:9 a=18MDsTEoDJL7NGzkg7uP8a8bubMA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1178904400; Tue, 06 Jan 2009 16:27:38 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:30:01 +0100 User-Agent: KMail/1.9.7 References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061630.02022.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:27:41 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:27:41 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0845D106564A; Tue, 6 Jan 2009 15:27:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 3668B8FC1D; Tue, 6 Jan 2009 15:27:39 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=5vIbqlDvGGnXSj0LqOQA:9 a=18MDsTEoDJL7NGzkg7uP8a8bubMA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1178904400; Tue, 06 Jan 2009 16:27:38 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:30:01 +0100 User-Agent: KMail/1.9.7 References: <20090105.174137.1560853961.imp@bsdimp.com> <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> In-Reply-To: <20090106.082105.-1404127776.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061630.02022.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:27:41 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901060940.21830.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 > : > in the ls listing, but one can open that file directly. trussing > : > sane-find-scanners yields: > : > > : > ... > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = > : > 1516 (0x5ec) > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > close(4) = 0 (0x0) > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > ... > : > > : > Is there a fix for this? > : > : Hi, > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with > : libusb20. Then everything should work. > FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:35:57 2009 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 18EB9106566C; Tue, 6 Jan 2009 15:35:57 +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 ADA018FC08; Tue, 6 Jan 2009 15:35:56 +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 n06FYlVW036307; Tue, 6 Jan 2009 08:34:47 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 08:35:01 -0700 (MST) Message-Id: <20090106.083501.-861032140.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901061630.02022.hselasky@c2i.net> References: <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> 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 Cc: usb@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:35:58 -0000 In message: <200901061630.02022.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901060940.21830.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > : > in the ls listing, but one can open that file directly. trussing : > : > sane-find-scanners yields: : > : > : > : > ... : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : > : > 1516 (0x5ec) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : > close(4) = 0 (0x0) : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : > ... : > : > : > : > Is there a fix for this? : > : : > : Hi, : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : > : libusb20. Then everything should work. : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 I built all these things with ports, will just updating the ports fix them, or will I need to jump through some weird hoops? Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:35:57 2009 Return-Path: Delivered-To: usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18EB9106566C; Tue, 6 Jan 2009 15:35:57 +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 ADA018FC08; Tue, 6 Jan 2009 15:35:56 +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 n06FYlVW036307; Tue, 6 Jan 2009 08:34:47 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 08:35:01 -0700 (MST) Message-Id: <20090106.083501.-861032140.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901061630.02022.hselasky@c2i.net> References: <200901060940.21830.hselasky@c2i.net> <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> 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 Cc: usb@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:35:58 -0000 In message: <200901061630.02022.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901060940.21830.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : > : > in the ls listing, but one can open that file directly. trussing : > : > sane-find-scanners yields: : > : > : > : > ... : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : > : > 1516 (0x5ec) : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : > close(4) = 0 (0x0) : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : > ... : > : > : > : > Is there a fix for this? : > : : > : Hi, : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : > : libusb20. Then everything should work. : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 I built all these things with ports, will just updating the ports fix them, or will I need to jump through some weird hoops? Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:42:26 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83427106564A; Tue, 6 Jan 2009 15:42:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id B3E598FC12; Tue, 6 Jan 2009 15:42:25 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=V34wVyg1XQSdZt6GNCYA:9 a=hk1_WkEEgLy6ZswXwCsA:7 a=aikdsmxMyyxLrUPOtp9fcHx5NRcA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1003491457; Tue, 06 Jan 2009 16:42:23 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:44:46 +0100 User-Agent: KMail/1.9.7 References: <200901060940.21830.hselasky@c2i.net> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061644.46613.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:42:27 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061630.02022.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: <200901060940.21830.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : > : > /dev/uscanner0 in the ls listing, but one can open that file > : > : > directly. trussing sane-find-scanners yields: > : > : > > : > : > ... > : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) > : > : > = 1516 (0x5ec) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180 > : > : >,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > : > close(4) = 0 (0x0) > : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > : > ... > : > : > > : > : > Is there a fix for this? > : > : > : > : Hi, > : > : > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : > : with libusb20. Then everything should work. > : > : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > > I built all these things with ports, will just updating the ports fix > them, or will I need to jump through some weird hoops? > > Warner Hi! You can do something like this (takes 2-seconds): lrwxr-xr-x 1 root wheel 22 Oct 23 18:13 /usr/local/lib/libusb-0.1.so.8 -> /usr/lib/libusb20.so.1 lrwxr-xr-x 1 root wheel 19 Oct 23 18:14 /usr/local/lib/libusb.a -> /usr/lib/libusb20.a Others have suggested doing this using libmap.conf. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:42:26 2009 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 83427106564A; Tue, 6 Jan 2009 15:42:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id B3E598FC12; Tue, 6 Jan 2009 15:42:25 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=V34wVyg1XQSdZt6GNCYA:9 a=hk1_WkEEgLy6ZswXwCsA:7 a=aikdsmxMyyxLrUPOtp9fcHx5NRcA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1003491457; Tue, 06 Jan 2009 16:42:23 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:44:46 +0100 User-Agent: KMail/1.9.7 References: <200901060940.21830.hselasky@c2i.net> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061644.46613.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:42:27 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061630.02022.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: <200901060940.21830.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : > : > /dev/uscanner0 in the ls listing, but one can open that file > : > : > directly. trussing sane-find-scanners yields: > : > : > > : > : > ... > : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) > : > : > = 1516 (0x5ec) > : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180 > : > : >,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : > : > close(4) = 0 (0x0) > : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : > : > ... > : > : > > : > : > Is there a fix for this? > : > : > : > : Hi, > : > : > : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : > : with libusb20. Then everything should work. > : > : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > > I built all these things with ports, will just updating the ports fix > them, or will I need to jump through some weird hoops? > > Warner Hi! You can do something like this (takes 2-seconds): lrwxr-xr-x 1 root wheel 22 Oct 23 18:13 /usr/local/lib/libusb-0.1.so.8 -> /usr/lib/libusb20.so.1 lrwxr-xr-x 1 root wheel 19 Oct 23 18:14 /usr/local/lib/libusb.a -> /usr/lib/libusb20.a Others have suggested doing this using libmap.conf. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:47:19 2009 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 07DB7106564A; Tue, 6 Jan 2009 15:47:19 +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 9F3868FC08; Tue, 6 Jan 2009 15:47:18 +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 n06FiXtN036455; Tue, 6 Jan 2009 08:44:33 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 08:44:45 -0700 (MST) Message-Id: <20090106.084445.-432836711.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> References: <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> 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 Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:47:19 -0000 In message: <20090106.083501.-861032140.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <200901061630.02022.hselasky@c2i.net> : Hans Petter Selasky writes: : : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > In message: <200901060940.21830.hselasky@c2i.net> : : > : : > Hans Petter Selasky writes: : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : : > : > in the ls listing, but one can open that file directly. trussing : : > : > sane-find-scanners yields: : : > : > : : > : > ... : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : : > : > 1516 (0x5ec) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : : > : > close(4) = 0 (0x0) : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : : > : > ... : : > : > : : > : > Is there a fix for this? : : > : : : > : Hi, : : > : : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : : > : libusb20. Then everything should work. : : > : : : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : : I built all these things with ports, will just updating the ports fix : them, or will I need to jump through some weird hoops? And does it work with the old USB stack? I'm still finding odd things that don't work with usb2, and so far my fallback has been to just use the old stack for those things... Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:47:19 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07DB7106564A; Tue, 6 Jan 2009 15:47:19 +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 9F3868FC08; Tue, 6 Jan 2009 15:47:18 +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 n06FiXtN036455; Tue, 6 Jan 2009 08:44:33 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 08:44:45 -0700 (MST) Message-Id: <20090106.084445.-432836711.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <20090106.083501.-861032140.imp@bsdimp.com> References: <20090106.082105.-1404127776.imp@bsdimp.com> <200901061630.02022.hselasky@c2i.net> <20090106.083501.-861032140.imp@bsdimp.com> 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 Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:47:19 -0000 In message: <20090106.083501.-861032140.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <200901061630.02022.hselasky@c2i.net> : Hans Petter Selasky writes: : : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > In message: <200901060940.21830.hselasky@c2i.net> : : > : : > Hans Petter Selasky writes: : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just works. : : > : > With usb2, I klduscanner, and it doesn't. There's no /dev/uscanner0 : : > : > in the ls listing, but one can open that file directly. trussing : : > : > sane-find-scanners yields: : : > : > : : > : > ... : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 (0x0) : : > : > fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158) = : : > : > 1516 (0x5ec) : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d180,0x7 : : > : >ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : : > : > close(4) = 0 (0x0) : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : : > : > ... : : > : > : : > : > Is there a fix for this? : : > : : : > : Hi, : : > : : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane with : : > : libusb20. Then everything should work. : : > : : : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : : I built all these things with ports, will just updating the ports fix : them, or will I need to jump through some weird hoops? And does it work with the old USB stack? I'm still finding odd things that don't work with usb2, and so far my fallback has been to just use the old stack for those things... Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:50:50 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83978106564A; Tue, 6 Jan 2009 15:50:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id B35D88FC20; Tue, 6 Jan 2009 15:50:49 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=XvgUiX3snR1jbm2gbTgA:9 a=uaisn13MuW_0n5Df2lcA:7 a=SyJlxsiMYO7Jmv1BpyxQWXTmI8sA:4 a=cvZW9r6VXHAA:10 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1175457487; Tue, 06 Jan 2009 16:50:48 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:53:11 +0100 User-Agent: KMail/1.9.7 References: <20090106.082105.-1404127776.imp@bsdimp.com> <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> In-Reply-To: <20090106.084445.-432836711.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061653.11745.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:50:51 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <20090106.083501.-861032140.imp@bsdimp.com> > > "M. Warner Losh" writes: > : In message: <200901061630.02022.hselasky@c2i.net> > : > : Hans Petter Selasky writes: > : : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > In message: <200901060940.21830.hselasky@c2i.net> > : : > > : : > Hans Petter Selasky writes: > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : : > : > /dev/uscanner0 in the ls listing, but one can open that file > : : > : > directly. trussing sane-find-scanners yields: > : : > : > > : : > : > ... > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 > : : > : >) = 1516 (0x5ec) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : : > : > close(4) = 0 (0x0) > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : : > : > ... > : : > : > > : : > : > Is there a fix for this? > : : > : > : : > : Hi, > : : > : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : : > : with libusb20. Then everything should work. > : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > : > : I built all these things with ports, will just updating the ports fix > : them, or will I need to jump through some weird hoops? > Hi, > And does it work with the old USB stack? No, then you have to restore the libusb-0.1 library. > I'm still finding odd things > that don't work with usb2, and so far my fallback has been to just use > the old stack for those things... Can you explain a little bit more what you mean. Are these things Host Controller drivers, middle ware or USB device drivers? Are you sure that you have tried every possible command in usbconfig and your device does still not work? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 15:50:50 2009 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 83978106564A; Tue, 6 Jan 2009 15:50:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id B35D88FC20; Tue, 6 Jan 2009 15:50:49 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=XvgUiX3snR1jbm2gbTgA:9 a=uaisn13MuW_0n5Df2lcA:7 a=SyJlxsiMYO7Jmv1BpyxQWXTmI8sA:4 a=cvZW9r6VXHAA:10 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1175457487; Tue, 06 Jan 2009 16:50:48 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 16:53:11 +0100 User-Agent: KMail/1.9.7 References: <20090106.082105.-1404127776.imp@bsdimp.com> <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> In-Reply-To: <20090106.084445.-432836711.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061653.11745.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 15:50:51 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <20090106.083501.-861032140.imp@bsdimp.com> > > "M. Warner Losh" writes: > : In message: <200901061630.02022.hselasky@c2i.net> > : > : Hans Petter Selasky writes: > : : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > In message: <200901060940.21830.hselasky@c2i.net> > : : > > : : > Hans Petter Selasky writes: > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no > : : > : > /dev/uscanner0 in the ls listing, but one can open that file > : : > : > directly. trussing sane-find-scanners yields: > : : > : > > : : > : > ... > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 > : : > : >) = 1516 (0x5ec) > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) > : : > : > close(4) = 0 (0x0) > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) > : : > : > ... > : : > : > > : : > : > Is there a fix for this? > : : > : > : : > : Hi, > : : > : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane > : : > : with libusb20. Then everything should work. > : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 > : > : I built all these things with ports, will just updating the ports fix > : them, or will I need to jump through some weird hoops? > Hi, > And does it work with the old USB stack? No, then you have to restore the libusb-0.1 library. > I'm still finding odd things > that don't work with usb2, and so far my fallback has been to just use > the old stack for those things... Can you explain a little bit more what you mean. Are these things Host Controller drivers, middle ware or USB device drivers? Are you sure that you have tried every possible command in usbconfig and your device does still not work? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 16:02:42 2009 Return-Path: Delivered-To: usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C544E10656C1; Tue, 6 Jan 2009 16:02:42 +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 71E708FC13; Tue, 6 Jan 2009 16:02:42 +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 n06G1HsT036673; Tue, 6 Jan 2009 09:01:17 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 09:01:29 -0700 (MST) Message-Id: <20090106.090129.-432836982.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901061653.11745.hselasky@c2i.net> References: <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> 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 Cc: usb@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 16:02:43 -0000 In message: <200901061653.11745.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <20090106.083501.-861032140.imp@bsdimp.com> : > : > "M. Warner Losh" writes: : > : In message: <200901061630.02022.hselasky@c2i.net> : > : : > : Hans Petter Selasky writes: : > : : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > In message: <200901060940.21830.hselasky@c2i.net> : > : : > : > : : > Hans Petter Selasky writes: : > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just : > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no : > : : > : > /dev/uscanner0 in the ls listing, but one can open that file : > : : > : > directly. trussing sane-find-scanners yields: : > : : > : > : > : : > : > ... : > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 : > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 : > : : > : >) = 1516 (0x5ec) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 : > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : : > : > close(4) = 0 (0x0) : > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : : > : > ... : > : : > : > : > : : > : > Is there a fix for this? : > : : > : : > : : > : Hi, : > : : > : : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane : > : : > : with libusb20. Then everything should work. : > : : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : > : : > : I built all these things with ports, will just updating the ports fix : > : them, or will I need to jump through some weird hoops? : > : : Hi, : : > And does it work with the old USB stack? : : No, then you have to restore the libusb-0.1 library. Yes. We need a migration guide to usb2 that documents these sorts of things for people, or we're going to get hammered with lots of questions from people using ports that suddenly don't work... The fix may be easy, but people have to know about it. Ideally, the ports folks would be involved with a solution too... : > I'm still finding odd things : > that don't work with usb2, and so far my fallback has been to just use : > the old stack for those things... : : Can you explain a little bit more what you mean. Are these things Host : Controller drivers, middle ware or USB device drivers? Devices are what are failing. : Are you sure that you have tried every possible command in usbconfig and your : device does still not work? I haven't. But usually it is things like burning a DVD from a usb disk doesn't work to a USB DVD player (using storage_ata). Burning it from a firewire disk does seem to work. There's no I/O errors when this happens. The uscanner thing that maybe this will fix. I've had trouble unloading usb2 modules since sometimes they hang. It can be quite time consuming to file bug reports on all these things, since I don't want to file one that wastes your time for being too vague or unreproducible. I've only recently started using usb2 heavily for day-to-day tasks rather than just-test-it-out tasks I'd been doing before. Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 16:02:42 2009 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 C544E10656C1; Tue, 6 Jan 2009 16:02:42 +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 71E708FC13; Tue, 6 Jan 2009 16:02:42 +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 n06G1HsT036673; Tue, 6 Jan 2009 09:01:17 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 09:01:29 -0700 (MST) Message-Id: <20090106.090129.-432836982.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901061653.11745.hselasky@c2i.net> References: <20090106.083501.-861032140.imp@bsdimp.com> <20090106.084445.-432836711.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> 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 Cc: usb@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 16:02:43 -0000 In message: <200901061653.11745.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <20090106.083501.-861032140.imp@bsdimp.com> : > : > "M. Warner Losh" writes: : > : In message: <200901061630.02022.hselasky@c2i.net> : > : : > : Hans Petter Selasky writes: : > : : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > In message: <200901060940.21830.hselasky@c2i.net> : > : : > : > : : > Hans Petter Selasky writes: : > : : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : : > : > With sys/dev/usb, I'm able to kldload uscanner and xsane just : > : : > : > works. With usb2, I klduscanner, and it doesn't. There's no : > : : > : > /dev/uscanner0 in the ls listing, but one can open that file : > : : > : > directly. trussing sane-find-scanners yields: : > : : > : > : > : : > : > ... : > : : > : > open("/dev/",O_NONBLOCK,020222513) = 4 (0x4) : > : : > : > fstat(4,{ mode=dr-xr-xr-x ,inode=2,size=512,blksize=4096 }) = 0 : > : : > : > (0x0) fcntl(4,F_SETFD,FD_CLOEXEC) = 0 (0x0) : > : : > : > fstatfs(0x4,0x7fffffffda80,0x0,0x0,0x60,0x801200110) = 0 (0x0) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0x30,0x801200158 : > : : > : >) = 1516 (0x5ec) : > : : > : > getdirentries(0x4,0x80120c000,0x1000,0x80120a0a8,0xffffffff8064d1 : > : : > : >80,0x7 ffff fffdd18) = 0 (0x0) lseek(4,0x0,SEEK_SET) = 0 (0x0) : > : : > : > close(4) = 0 (0x0) : > : : > : > open("/dev/usb0",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb1",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb2",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb3",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb4",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb5",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb6",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb7",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb8",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > open("/dev/usb9",O_RDWR,00) ERR#6 'Device not configured' : > : : > : > write(1," # No USB scanners found. If yo"...,79) = 79 (0x4f) : > : : > : > ... : > : : > : > : > : : > : > Is there a fix for this? : > : : > : : > : : > : Hi, : > : : > : : > : : > : I looks like xsane is linked with libusb-0.1 . Try re-linking xsane : > : : > : with libusb20. Then everything should work. : > : : : > : : FYI: libusb20 in FreeBSD is binary compatible with libusb-0.1 : > : : > : I built all these things with ports, will just updating the ports fix : > : them, or will I need to jump through some weird hoops? : > : : Hi, : : > And does it work with the old USB stack? : : No, then you have to restore the libusb-0.1 library. Yes. We need a migration guide to usb2 that documents these sorts of things for people, or we're going to get hammered with lots of questions from people using ports that suddenly don't work... The fix may be easy, but people have to know about it. Ideally, the ports folks would be involved with a solution too... : > I'm still finding odd things : > that don't work with usb2, and so far my fallback has been to just use : > the old stack for those things... : : Can you explain a little bit more what you mean. Are these things Host : Controller drivers, middle ware or USB device drivers? Devices are what are failing. : Are you sure that you have tried every possible command in usbconfig and your : device does still not work? I haven't. But usually it is things like burning a DVD from a usb disk doesn't work to a USB DVD player (using storage_ata). Burning it from a firewire disk does seem to work. There's no I/O errors when this happens. The uscanner thing that maybe this will fix. I've had trouble unloading usb2 modules since sometimes they hang. It can be quite time consuming to file bug reports on all these things, since I don't want to file one that wastes your time for being too vague or unreproducible. I've only recently started using usb2 heavily for day-to-day tasks rather than just-test-it-out tasks I'd been doing before. Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 16:18:48 2009 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 2C515106566B; Tue, 6 Jan 2009 16:18:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 627F48FC12; Tue, 6 Jan 2009 16:18:47 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=vOtP7tYE8kRkvKYO9ZsA:9 a=KVuXsdOgBtRQpCIK2HQA:7 a=UMb7Q18Fm0Gal94y3byEGn-08s8A:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1176508263; Tue, 06 Jan 2009 17:18:45 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 17:21:07 +0100 User-Agent: KMail/1.9.7 References: <20090106.083501.-861032140.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> <20090106.090129.-432836982.imp@bsdimp.com> In-Reply-To: <20090106.090129.-432836982.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061721.08498.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 16:18:49 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061653.11745.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: I agree that we should put something somewhere about the most common problems switching to USB2 and its solutions. Maybe in UPDATING? > > : > I'm still finding odd things > : > that don't work with usb2, and so far my fallback has been to just use > : > the old stack for those things... > : > : Can you explain a little bit more what you mean. Are these things Host > : Controller drivers, middle ware or USB device drivers? > > Devices are what are failing. > > : Are you sure that you have tried every possible command in usbconfig and > : your device does still not work? > > I haven't. But usually it is things like burning a DVD from a usb > disk doesn't work to a USB DVD player (using storage_ata). Burning it > from a firewire disk does seem to work. There's no I/O errors when > this happens. The uscanner thing that maybe this will fix. I've had > trouble unloading usb2 modules since sometimes they hang. It can be > quite time consuming to file bug reports on all these things, since I > don't want to file one that wastes your time for being too vague or > unreproducible. I've only recently started using usb2 heavily for > day-to-day tasks rather than just-test-it-out tasks I'd been doing > before. Hi, If the USB device does not respond, its firmware might have crashed! Simply put: The new USB stack is in some cases several times faster than the old one. Some USB devices simply die because the firmware on the USB device is badly designed. Some options: a) Send the device to me for debugging (I cannot promise that you get it back). b) Sit down an adjust the timing of the control transfers until you hit the needle. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 16:18:48 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C515106566B; Tue, 6 Jan 2009 16:18:48 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 627F48FC12; Tue, 6 Jan 2009 16:18:47 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=vOtP7tYE8kRkvKYO9ZsA:9 a=KVuXsdOgBtRQpCIK2HQA:7 a=UMb7Q18Fm0Gal94y3byEGn-08s8A:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1176508263; Tue, 06 Jan 2009 17:18:45 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 17:21:07 +0100 User-Agent: KMail/1.9.7 References: <20090106.083501.-861032140.imp@bsdimp.com> <200901061653.11745.hselasky@c2i.net> <20090106.090129.-432836982.imp@bsdimp.com> In-Reply-To: <20090106.090129.-432836982.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061721.08498.hselasky@c2i.net> Cc: usb@freebsd.org, freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 16:18:49 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061653.11745.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: I agree that we should put something somewhere about the most common problems switching to USB2 and its solutions. Maybe in UPDATING? > > : > I'm still finding odd things > : > that don't work with usb2, and so far my fallback has been to just use > : > the old stack for those things... > : > : Can you explain a little bit more what you mean. Are these things Host > : Controller drivers, middle ware or USB device drivers? > > Devices are what are failing. > > : Are you sure that you have tried every possible command in usbconfig and > : your device does still not work? > > I haven't. But usually it is things like burning a DVD from a usb > disk doesn't work to a USB DVD player (using storage_ata). Burning it > from a firewire disk does seem to work. There's no I/O errors when > this happens. The uscanner thing that maybe this will fix. I've had > trouble unloading usb2 modules since sometimes they hang. It can be > quite time consuming to file bug reports on all these things, since I > don't want to file one that wastes your time for being too vague or > unreproducible. I've only recently started using usb2 heavily for > day-to-day tasks rather than just-test-it-out tasks I'd been doing > before. Hi, If the USB device does not respond, its firmware might have crashed! Simply put: The new USB stack is in some cases several times faster than the old one. Some USB devices simply die because the firmware on the USB device is badly designed. Some options: a) Send the device to me for debugging (I cannot promise that you get it back). b) Sit down an adjust the timing of the control transfers until you hit the needle. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 16:47:27 2009 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 60FE1106566B for ; Tue, 6 Jan 2009 16:47:27 +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 003E68FC08 for ; Tue, 6 Jan 2009 16:47:26 +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 n06GjJ9s037031; Tue, 6 Jan 2009 09:45:19 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 09:45:32 -0700 (MST) Message-Id: <20090106.094532.179963515.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901061721.08498.hselasky@c2i.net> References: <200901061653.11745.hselasky@c2i.net> <20090106.090129.-432836982.imp@bsdimp.com> <200901061721.08498.hselasky@c2i.net> 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 Cc: freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 16:47:27 -0000 In message: <200901061721.08498.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901061653.11745.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : : I agree that we should put something somewhere about the most common problems : switching to USB2 and its solutions. Maybe in UPDATING? I think we need to have a pointer from UPDATING to a wiki page that has these entries on it. Do you have an account on wiki.freebsd.org? : > : > I'm still finding odd things : > : > that don't work with usb2, and so far my fallback has been to just use : > : > the old stack for those things... : > : : > : Can you explain a little bit more what you mean. Are these things Host : > : Controller drivers, middle ware or USB device drivers? : > : > Devices are what are failing. : > : > : Are you sure that you have tried every possible command in usbconfig and : > : your device does still not work? : > : > I haven't. But usually it is things like burning a DVD from a usb : > disk doesn't work to a USB DVD player (using storage_ata). Burning it : > from a firewire disk does seem to work. There's no I/O errors when : > this happens. The uscanner thing that maybe this will fix. I've had : > trouble unloading usb2 modules since sometimes they hang. It can be : > quite time consuming to file bug reports on all these things, since I : > don't want to file one that wastes your time for being too vague or : > unreproducible. I've only recently started using usb2 heavily for : > day-to-day tasks rather than just-test-it-out tasks I'd been doing : > before. : : Hi, : : If the USB device does not respond, its firmware might have crashed! Simply : put: The new USB stack is in some cases several times faster than the old : one. Some USB devices simply die because the firmware on the USB device is : badly designed. Well, the usb device doesn't crash, usually. The problem smells more like issues in the usb stack (eg, heavy load only on that device works, but heavy loading with multiple devices doesn't with usb2, similar workloads work with usb1), but I've not done enough of a root cause analysis to be able to say for sure. This is the part where I've not had the time to do proper testing of the exact workload to give you good feedback. I haven't even eliminated the possibility that this might be a hardware problem with, say, the disk in the enclosure... One thing I'm seeing at the moment is that with your suggested quirk changes is an inability to stream on the burning of the DVD.... : a) Send the device to me for debugging (I cannot promise that you get it : back). : b) Sit down an adjust the timing of the control transfers until you hit the : needle. These alternatives are going to be not very viable... Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 16:50:53 2009 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 709811065672 for ; Tue, 6 Jan 2009 16:50:53 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id D1FBA8FC1E for ; Tue, 6 Jan 2009 16:50:52 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=rREUrScshOl7G2h6aTFPgw==:17 a=6rWvZ6GV97hX69SCq-4A:9 a=apED090zGOkMuREU750A:7 a=l6BYELar98CwaVBsvDL_N8qkqJIA:4 a=9aOQ2cSd83gA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1178947226; Tue, 06 Jan 2009 17:50:50 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 17:53:13 +0100 User-Agent: KMail/1.9.7 References: <200901061653.11745.hselasky@c2i.net> <200901061721.08498.hselasky@c2i.net> <20090106.094532.179963515.imp@bsdimp.com> In-Reply-To: <20090106.094532.179963515.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061753.13712.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: xsane busted with usb2 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, 06 Jan 2009 16:50:53 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901061721.08498.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: <200901061653.11745.hselasky@c2i.net> > : > > : > Hans Petter Selasky writes: > : > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > : I agree that we should put something somewhere about the most common > : problems switching to USB2 and its solutions. Maybe in UPDATING? > > I think we need to have a pointer from UPDATING to a wiki page that > has these entries on it. Do you have an account on wiki.freebsd.org? Yes, I do. > > : > : > I'm still finding odd things > : > : > that don't work with usb2, and so far my fallback has been to just > : > : > use the old stack for those things... > : > : > : > : Can you explain a little bit more what you mean. Are these things > : > : Host Controller drivers, middle ware or USB device drivers? > : > > : > Devices are what are failing. > : > > : > : Are you sure that you have tried every possible command in usbconfig > : > : and your device does still not work? > : > > : > I haven't. But usually it is things like burning a DVD from a usb > : > disk doesn't work to a USB DVD player (using storage_ata). Burning it > : > from a firewire disk does seem to work. There's no I/O errors when > : > this happens. The uscanner thing that maybe this will fix. I've had > : > trouble unloading usb2 modules since sometimes they hang. It can be > : > quite time consuming to file bug reports on all these things, since I > : > don't want to file one that wastes your time for being too vague or > : > unreproducible. I've only recently started using usb2 heavily for > : > day-to-day tasks rather than just-test-it-out tasks I'd been doing > : > before. > : > : Hi, > : > : If the USB device does not respond, its firmware might have crashed! > : Simply put: The new USB stack is in some cases several times faster than > : the old one. Some USB devices simply die because the firmware on the USB > : device is badly designed. > > Well, the usb device doesn't crash, usually. The problem smells more > like issues in the usb stack (eg, heavy load only on that device > works, but heavy loading with multiple devices doesn't with usb2, > similar workloads work with usb1), but I've not done enough of a root > cause analysis to be able to say for sure. This is the part where > I've not had the time to do proper testing of the exact workload to > give you good feedback. I haven't even eliminated the possibility > that this might be a hardware problem with, say, the disk in the > enclosure... > > One thing I'm seeing at the moment is that with your suggested quirk > changes is an inability to stream on the burning of the DVD.... > > : a) Send the device to me for debugging (I cannot promise that you get it > : back). > : b) Sit down an adjust the timing of the control transfers until you hit > : the needle. > > These alternatives are going to be not very viable... > --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 18:30:33 2009 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 E3C061065673; Tue, 6 Jan 2009 18:30:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 4A6FA8FC17; Tue, 6 Jan 2009 18:30:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6nre6YQGT9EA:10 a=4zEhLDbpA8gA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=6I5d2MoRAAAA:8 a=atZvJl-llawBBpeY2Y4A:9 a=nvTSskNCMPpZ0B60c3IA:7 a=06GGh3HqJKhYMYL60sGTvR06hiMA:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1174013898; Tue, 06 Jan 2009 19:30:31 +0100 From: Hans Petter Selasky To: Volker Date: Tue, 6 Jan 2009 19:32:53 +0100 User-Agent: KMail/1.9.7 References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> <495FAFDD.2050206@vwsoft.com> In-Reply-To: <495FAFDD.2050206@vwsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901061932.54448.hselasky@c2i.net> Cc: freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 18:30:34 -0000 On Saturday 03 January 2009, Volker wrote: > On 01/03/09 01:35, Hans Petter Selasky wrote: > > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as > >> a normal user > >> > >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > >> Responsible-Changed-By: vwe > >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > >> Responsible-Changed-Why: > >> reassign > >> > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > > > > Hi, > > > > "usbconfig" will only show USB devices which the user has access to. > > > > What should be the correct display message when no devices are accessible > > due to innsufficient permissions? > > > > --HPS > > Hans, > > what about "access denied" or "insufficient privileges"? > > Someone might have a better idea but everything should be better than > silently refusing to do anything. > > Volker Is this Ok: http://perforce.freebsd.org/chv.cgi?CH=155731 --HPS --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 19:10:20 2009 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 602CA1065673; Tue, 6 Jan 2009 19:10:20 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id B5F688FC1A; Tue, 6 Jan 2009 19:10:19 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ey-out-2122.google.com with SMTP id d26so868532eyd.7 for ; Tue, 06 Jan 2009 11:10:18 -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=9zyJ5EA5i6K5yPJ5ItOToduyfR0D9t/7fFMmapGr9SU=; b=TNd+VwOMNjbdMAlFNZIhr1uMenVjGC1B84Rl88c7jWlxQZrBD2nPDLB/iDW4Kq04Ck Pjar7OuAzpW2yVzqlM/JD5oS8ZZ7Er3d5g1+9I91gcF4nVn2MFBDVVSrJglPWLZJhOkw P30kbjBCraZgCDpDaRRQ9qf07p+zRQQz2pLBk= 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=qKrGR3dJt3q/J8j/Jhi2fKowh0w0JPJCmYcbjQiAJxHkhFap2uOUn95B8yGLIIcZS7 Q6+X95ku7PfVUnyji+3b1YcnkT5KGHGx1p9SjlqrFwpoP/YLoCA6ftcXpmMbGmkjKQse dxtfJhcZqILd6Rbob8snWJ0DMdjK2TeDe/XwQ= Received: by 10.66.233.18 with SMTP id f18mr383295ugh.28.1231269018363; Tue, 06 Jan 2009 11:10:18 -0800 (PST) Received: by 10.67.88.9 with HTTP; Tue, 6 Jan 2009 11:10:18 -0800 (PST) Message-ID: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> Date: Tue, 6 Jan 2009 11:10:18 -0800 From: "Garrett Cooper" To: "Hans Petter Selasky" In-Reply-To: <200901061932.54448.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901030135.11461.hselasky@c2i.net> <495FAFDD.2050206@vwsoft.com> <200901061932.54448.hselasky@c2i.net> Cc: Volker , freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 19:10:20 -0000 On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > On Saturday 03 January 2009, Volker wrote: >> On 01/03/09 01:35, Hans Petter Selasky wrote: >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as >> >> a normal user >> >> >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> >> Responsible-Changed-By: vwe >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> >> Responsible-Changed-Why: >> >> reassign >> >> >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 >> > >> > Hi, >> > >> > "usbconfig" will only show USB devices which the user has access to. >> > >> > What should be the correct display message when no devices are accessible >> > due to innsufficient permissions? >> > >> > --HPS >> >> Hans, >> >> what about "access denied" or "insufficient privileges"? >> >> Someone might have a better idea but everything should be better than >> silently refusing to do anything. >> >> Volker > > Is this Ok: > > http://perforce.freebsd.org/chv.cgi?CH=155731 > > --HPS Eh? I still think that strerror or something along those lines would be more helpful. You could also do if (getuid() != 0) { errx(1, "Cluebat -- you might not be able to read the usb devices if you're not root"); } or... struct stat usb_s; int fd = open(..., O_RDONLY /* blah, blah... */); if (fd == -1) { errx(1, "Does the file -- %s -- exist?", file); } if (fstat(fd, &usb_s) == -1) { errx(1, "Couldn't stat the file: %s", file); } if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && !S_IROTH(usb_s.st_mode)) { errx(1, "File not readable (do you have read permissions?)"); } /* Continue on merry way reading devices; maybe use strerror(3) for more intuitive error messages? */ Thoughts? -Garrett From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 19:16:29 2009 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 3799D1065670; Tue, 6 Jan 2009 19:16:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 67C098FC1A; Tue, 6 Jan 2009 19:16:28 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6nre6YQGT9EA:10 a=4zEhLDbpA8gA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=6I5d2MoRAAAA:8 a=MAk8hmUIQ8iswzZ9XpUA:9 a=eNvjG_LKXEiJRd7lkGIA:7 a=qOjMrAo3QR3x6paXwQOEmSiFf8MA:4 a=9aOQ2cSd83gA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1174336176; Tue, 06 Jan 2009 20:16:26 +0100 From: Hans Petter Selasky To: "Garrett Cooper" Date: Tue, 6 Jan 2009 20:18:48 +0100 User-Agent: KMail/1.9.7 References: <200812311256.mBVCuLT9096976@freefall.freebsd.org> <200901061932.54448.hselasky@c2i.net> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> In-Reply-To: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901062018.49338.hselasky@c2i.net> Cc: Volker , freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 19:16:29 -0000 On Tuesday 06 January 2009, Garrett Cooper wrote: > On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > > On Saturday 03 January 2009, Volker wrote: > >> On 01/03/09 01:35, Hans Petter Selasky wrote: > >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run > >> >> as a normal user > >> >> > >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > >> >> Responsible-Changed-By: vwe > >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > >> >> Responsible-Changed-Why: > >> >> reassign > >> >> > >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > >> > > >> > Hi, > >> > > >> > "usbconfig" will only show USB devices which the user has access to. > >> > > >> > What should be the correct display message when no devices are > >> > accessible due to innsufficient permissions? > >> > > >> > --HPS > >> > >> Hans, > >> > >> what about "access denied" or "insufficient privileges"? > >> > >> Someone might have a better idea but everything should be better than > >> silently refusing to do anything. > >> > >> Volker > > > > Is this Ok: > > > > http://perforce.freebsd.org/chv.cgi?CH=155731 > > > > --HPS > > Eh? I still think that strerror or something along those lines would > be more helpful. Hi, If errno != 0, I could print out the current value like a string. > > You could also do > > if (getuid() != 0) { > errx(1, "Cluebat -- you might not be able to read the usb devices > if you're not root"); > } Yes, but you are allowed to give non-root users access to USB aswell. So that would also be misleading. Would something like counting the number of devices you don't have access to be Ok? usbconfig ugenX.Y.... There are xxx USB devices not listed which require root access. > > or... > > struct stat usb_s; > > int fd = open(..., O_RDONLY /* blah, blah... */); > > if (fd == -1) { > errx(1, "Does the file -- %s -- exist?", file); > } > > if (fstat(fd, &usb_s) == -1) { > errx(1, "Couldn't stat the file: %s", file); > } > > if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > !S_IROTH(usb_s.st_mode)) { > errx(1, "File not readable (do you have read permissions?)"); > } > > /* Continue on merry way reading devices; maybe use strerror(3) for > more intuitive error messages? */ > > Thoughts? It has to fit into libusb20 ... That's all. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 19:17:56 2009 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 AA0281065675; Tue, 6 Jan 2009 19:17:56 +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 467F48FC16; Tue, 6 Jan 2009 19:17:56 +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 n06JF859038303; Tue, 6 Jan 2009 12:15:08 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 12:15:21 -0700 (MST) Message-Id: <20090106.121521.2007157328.imp@bsdimp.com> To: yanefbsd@gmail.com From: "M. Warner Losh" In-Reply-To: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> References: <495FAFDD.2050206@vwsoft.com> <200901061932.54448.hselasky@c2i.net> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> 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 Cc: volker@vwsoft.com, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 19:17:58 -0000 In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> "Garrett Cooper" writes: : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: : > On Saturday 03 January 2009, Volker wrote: : >> On 01/03/09 01:35, Hans Petter Selasky wrote: : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as : >> >> a normal user : >> >> : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb : >> >> Responsible-Changed-By: vwe : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 : >> >> Responsible-Changed-Why: : >> >> reassign : >> >> : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 : >> > : >> > Hi, : >> > : >> > "usbconfig" will only show USB devices which the user has access to. : >> > : >> > What should be the correct display message when no devices are accessible : >> > due to innsufficient permissions? : >> > : >> > --HPS : >> : >> Hans, : >> : >> what about "access denied" or "insufficient privileges"? : >> : >> Someone might have a better idea but everything should be better than : >> silently refusing to do anything. : >> : >> Volker : > : > Is this Ok: : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 : > : > --HPS : : Eh? I still think that strerror or something along those lines would : be more helpful. : : You could also do : : if (getuid() != 0) { : errx(1, "Cluebat -- you might not be able to read the usb devices : if you're not root"); : } : : or... : : struct stat usb_s; : : int fd = open(..., O_RDONLY /* blah, blah... */); : : if (fd == -1) { : errx(1, "Does the file -- %s -- exist?", file); : } : : if (fstat(fd, &usb_s) == -1) { : errx(1, "Couldn't stat the file: %s", file); : } : : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && : !S_IROTH(usb_s.st_mode)) { : errx(1, "File not readable (do you have read permissions?)"); : } : : /* Continue on merry way reading devices; maybe use strerror(3) for : more intuitive error messages? */ : : Thoughts? Do you really have to be root to find the devices, if so, that's bad. Very bad. xsane refuses to run as root. I have: [localrules=10] add path 'uscanner*' mode 0660 to make it work. /dev/usb* in old usb allow listing w/o privs... Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 19:21:25 2009 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 80D271065676; Tue, 6 Jan 2009 19:21:25 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id D25F48FC13; Tue, 6 Jan 2009 19:21:24 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so1352836ugs.39 for ; Tue, 06 Jan 2009 11:21:23 -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=v1L03b++FmeTOswSQuI+MFQPeTdmitGDEpfhOyyUOZ4=; b=n1sI2RmFAo2zsMaay1AiFaNgg12JzlLH4X1hXb5mPaa+9wBwkuVx4ZHHe9C0R2Rgwm a3i3M8WwkkI1PHv208IgdfTqeIKo6q8FJNO1feV9AfwTjfpZw6iFGl7tU+PwzyvqiKUY 9qKdpHFPIFDpx392xnky+10RRQgmZX3925PSY= 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=LxcQddV41ECrahnpIt0OAvdc5PK/VPV78kfyKmJzl0wg5HDGnhosaVC4CyFwMxZtSq +hdMnwqQUIihIptUMivecGTsH6y8LPGqVg9x0RCx2iVT2MF8dBjSyYW6mY1k31lRzk5b hsV4GH18LorqX/m4BWgGiCrWc4ZLrQsSXGMCc= Received: by 10.67.115.16 with SMTP id s16mr13472658ugm.47.1231269683507; Tue, 06 Jan 2009 11:21:23 -0800 (PST) Received: by 10.67.88.9 with HTTP; Tue, 6 Jan 2009 11:21:23 -0800 (PST) Message-ID: <7d6fde3d0901061121q7b04c199mc0ba7228b148840b@mail.gmail.com> Date: Tue, 6 Jan 2009 11:21:23 -0800 From: "Garrett Cooper" To: "M. Warner Losh" In-Reply-To: <20090106.121521.2007157328.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <495FAFDD.2050206@vwsoft.com> <200901061932.54448.hselasky@c2i.net> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <20090106.121521.2007157328.imp@bsdimp.com> Cc: volker@vwsoft.com, freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 19:21:26 -0000 On Tue, Jan 6, 2009 at 11:15 AM, M. Warner Losh wrote: > In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> > "Garrett Cooper" writes: > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > : > On Saturday 03 January 2009, Volker wrote: > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when run as > : >> >> a normal user > : >> >> > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > : >> >> Responsible-Changed-By: vwe > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > : >> >> Responsible-Changed-Why: > : >> >> reassign > : >> >> > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > : >> > > : >> > Hi, > : >> > > : >> > "usbconfig" will only show USB devices which the user has access to. > : >> > > : >> > What should be the correct display message when no devices are accessible > : >> > due to innsufficient permissions? > : >> > > : >> > --HPS > : >> > : >> Hans, > : >> > : >> what about "access denied" or "insufficient privileges"? > : >> > : >> Someone might have a better idea but everything should be better than > : >> silently refusing to do anything. > : >> > : >> Volker > : > > : > Is this Ok: > : > > : > http://perforce.freebsd.org/chv.cgi?CH=155731 > : > > : > --HPS > : > : Eh? I still think that strerror or something along those lines would > : be more helpful. > : > : You could also do > : > : if (getuid() != 0) { > : errx(1, "Cluebat -- you might not be able to read the usb devices > : if you're not root"); > : } > : > : or... > : > : struct stat usb_s; > : > : int fd = open(..., O_RDONLY /* blah, blah... */); > : > : if (fd == -1) { > : errx(1, "Does the file -- %s -- exist?", file); > : } > : > : if (fstat(fd, &usb_s) == -1) { > : errx(1, "Couldn't stat the file: %s", file); > : } > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > : !S_IROTH(usb_s.st_mode)) { > : errx(1, "File not readable (do you have read permissions?)"); > : } > : > : /* Continue on merry way reading devices; maybe use strerror(3) for > : more intuitive error messages? */ > : > : Thoughts? > > Do you really have to be root to find the devices, if so, that's bad. > Very bad. xsane refuses to run as root. I have: > > [localrules=10] > add path 'uscanner*' mode 0660 > > to make it work. /dev/usb* in old usb allow listing w/o privs... > > Warner Hence that's why I provided another hacked solution. I hate `can't run this app unless root' because it doesn't accurately solve the problem, but it makes the issue more straightforward than `no devices' :). Personally I think using errno and strerror when trying to open / read devices would be a lot cleaner. Let me see what I can quickly grok from libusb(3) either tonight or tomorrow that might be an improvement.. -Garrett From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 19:22:17 2009 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 B8B00106566B; Tue, 6 Jan 2009 19:22:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id EC02A8FC08; Tue, 6 Jan 2009 19:22:16 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6nre6YQGT9EA:10 a=4zEhLDbpA8gA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=6I5d2MoRAAAA:8 a=j6bu_v7JcRj0-qORIgQA:9 a=16p0NdH0kC0vXb8iAdUA:7 a=1wLKWG54GxtsVrsNaQHfhabyo6wA:4 a=MSl-tDqOz04A:10 a=9aOQ2cSd83gA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1179017325; Tue, 06 Jan 2009 20:22:13 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 20:24:30 +0100 User-Agent: KMail/1.9.7 References: <495FAFDD.2050206@vwsoft.com> <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <20090106.121521.2007157328.imp@bsdimp.com> In-Reply-To: <20090106.121521.2007157328.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901062024.31100.hselasky@c2i.net> Cc: volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 19:22:18 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> > > "Garrett Cooper" writes: > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky wrote: > : > On Saturday 03 January 2009, Volker wrote: > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when > : >> >> run as a normal user > : >> >> > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > : >> >> Responsible-Changed-By: vwe > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > : >> >> Responsible-Changed-Why: > : >> >> reassign > : >> >> > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > : >> > > : >> > Hi, > : >> > > : >> > "usbconfig" will only show USB devices which the user has access to. > : >> > > : >> > What should be the correct display message when no devices are > : >> > accessible due to innsufficient permissions? > : >> > > : >> > --HPS > : >> > : >> Hans, > : >> > : >> what about "access denied" or "insufficient privileges"? > : >> > : >> Someone might have a better idea but everything should be better than > : >> silently refusing to do anything. > : >> > : >> Volker > : > > : > Is this Ok: > : > > : > http://perforce.freebsd.org/chv.cgi?CH=155731 > : > > : > --HPS > : > : Eh? I still think that strerror or something along those lines would > : be more helpful. > : > : You could also do > : > : if (getuid() != 0) { > : errx(1, "Cluebat -- you might not be able to read the usb devices > : if you're not root"); > : } > : > : or... > : > : struct stat usb_s; > : > : int fd = open(..., O_RDONLY /* blah, blah... */); > : > : if (fd == -1) { > : errx(1, "Does the file -- %s -- exist?", file); > : } > : > : if (fstat(fd, &usb_s) == -1) { > : errx(1, "Couldn't stat the file: %s", file); > : } > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > : !S_IROTH(usb_s.st_mode)) { > : errx(1, "File not readable (do you have read permissions?)"); > : } > : > : /* Continue on merry way reading devices; maybe use strerror(3) for > : more intuitive error messages? */ > : > : Thoughts? > > Do you really have to be root to find the devices, if so, that's bad. > Very bad. xsane refuses to run as root. I have: > No, no. That's wrong. Do it like this for example: usbconfig -u xxx -a xxx set_owner xxx set_perm 660 This won't have no effect at all with USB2: > [localrules=10] > add path 'uscanner*' mode 0660 > > to make it work. /dev/usb* in old usb allow listing w/o privs... > --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 19:53:57 2009 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 2E01F106568F; Tue, 6 Jan 2009 19:53:57 +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 BD9958FC23; Tue, 6 Jan 2009 19:53:56 +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 n06Jq5LU039021; Tue, 6 Jan 2009 12:52:05 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 12:52:18 -0700 (MST) Message-Id: <20090106.125218.1159136480.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901062024.31100.hselasky@c2i.net> References: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <20090106.121521.2007157328.imp@bsdimp.com> <200901062024.31100.hselasky@c2i.net> 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 Cc: volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 19:53:58 -0000 In message: <200901062024.31100.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> : > : > "Garrett Cooper" writes: : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky : wrote: : > : > On Saturday 03 January 2009, Volker wrote: : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error when : > : >> >> run as a normal user : > : >> >> : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb : > : >> >> Responsible-Changed-By: vwe : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 : > : >> >> Responsible-Changed-Why: : > : >> >> reassign : > : >> >> : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 : > : >> > : > : >> > Hi, : > : >> > : > : >> > "usbconfig" will only show USB devices which the user has access to. : > : >> > : > : >> > What should be the correct display message when no devices are : > : >> > accessible due to innsufficient permissions? : > : >> > : > : >> > --HPS : > : >> : > : >> Hans, : > : >> : > : >> what about "access denied" or "insufficient privileges"? : > : >> : > : >> Someone might have a better idea but everything should be better than : > : >> silently refusing to do anything. : > : >> : > : >> Volker : > : > : > : > Is this Ok: : > : > : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 : > : > : > : > --HPS : > : : > : Eh? I still think that strerror or something along those lines would : > : be more helpful. : > : : > : You could also do : > : : > : if (getuid() != 0) { : > : errx(1, "Cluebat -- you might not be able to read the usb devices : > : if you're not root"); : > : } : > : : > : or... : > : : > : struct stat usb_s; : > : : > : int fd = open(..., O_RDONLY /* blah, blah... */); : > : : > : if (fd == -1) { : > : errx(1, "Does the file -- %s -- exist?", file); : > : } : > : : > : if (fstat(fd, &usb_s) == -1) { : > : errx(1, "Couldn't stat the file: %s", file); : > : } : > : : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && : > : !S_IROTH(usb_s.st_mode)) { : > : errx(1, "File not readable (do you have read permissions?)"); : > : } : > : : > : /* Continue on merry way reading devices; maybe use strerror(3) for : > : more intuitive error messages? */ : > : : > : Thoughts? : > : > Do you really have to be root to find the devices, if so, that's bad. : > Very bad. xsane refuses to run as root. I have: : > : : No, no. That's wrong. : : Do it like this for example: : : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 : : This won't have no effect at all with USB2: : : > [localrules=10] : > add path 'uscanner*' mode 0660 : > : > to make it work. /dev/usb* in old usb allow listing w/o privs... That's bad. I'm sorry, but having to do something weird to get the scanner to work every time isn't good design. It isn't good to have a set of permissions hidden from devfs. But I know that I'm not the first to mention this defect in usb2. Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 20:01:16 2009 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 0CCE41065675; Tue, 6 Jan 2009 20:01:16 +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 35B7C8FC21; Tue, 6 Jan 2009 20:01:14 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=6nre6YQGT9EA:10 a=4zEhLDbpA8gA:10 a=rREUrScshOl7G2h6aTFPgw==:17 a=6I5d2MoRAAAA:8 a=r1VmykRYRP7822xumlIA:9 a=a57oFEe53sOnipf-YysA:7 a=7kkEK9jHXEuFdNR4vvE87SCbptgA:4 a=9aOQ2cSd83gA:10 a=MSl-tDqOz04A:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.73.248.227] (account mc467741@c2i.net [62.73.248.227] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1180331026; Tue, 06 Jan 2009 21:01:10 +0100 From: Hans Petter Selasky To: "M. Warner Losh" Date: Tue, 6 Jan 2009 21:03:27 +0100 User-Agent: KMail/1.9.7 References: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <200901062024.31100.hselasky@c2i.net> <20090106.125218.1159136480.imp@bsdimp.com> In-Reply-To: <20090106.125218.1159136480.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901062103.28124.hselasky@c2i.net> Cc: volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 20:01:16 -0000 On Tuesday 06 January 2009, M. Warner Losh wrote: > In message: <200901062024.31100.hselasky@c2i.net> > > Hans Petter Selasky writes: > : On Tuesday 06 January 2009, M. Warner Losh wrote: > : > In message: > : > <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> > : > > : > "Garrett Cooper" writes: > : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky > : > : > : > : wrote: > : > : > On Saturday 03 January 2009, Volker wrote: > : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: > : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: > : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error > : > : >> >> when run as a normal user > : > : >> >> > : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb > : > : >> >> Responsible-Changed-By: vwe > : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 > : > : >> >> Responsible-Changed-Why: > : > : >> >> reassign > : > : >> >> > : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 > : > : >> > > : > : >> > Hi, > : > : >> > > : > : >> > "usbconfig" will only show USB devices which the user has access > : > : >> > to. > : > : >> > > : > : >> > What should be the correct display message when no devices are > : > : >> > accessible due to innsufficient permissions? > : > : >> > > : > : >> > --HPS > : > : >> > : > : >> Hans, > : > : >> > : > : >> what about "access denied" or "insufficient privileges"? > : > : >> > : > : >> Someone might have a better idea but everything should be better > : > : >> than silently refusing to do anything. > : > : >> > : > : >> Volker > : > : > > : > : > Is this Ok: > : > : > > : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 > : > : > > : > : > --HPS > : > : > : > : Eh? I still think that strerror or something along those lines would > : > : be more helpful. > : > : > : > : You could also do > : > : > : > : if (getuid() != 0) { > : > : errx(1, "Cluebat -- you might not be able to read the usb devices > : > : if you're not root"); > : > : } > : > : > : > : or... > : > : > : > : struct stat usb_s; > : > : > : > : int fd = open(..., O_RDONLY /* blah, blah... */); > : > : > : > : if (fd == -1) { > : > : errx(1, "Does the file -- %s -- exist?", file); > : > : } > : > : > : > : if (fstat(fd, &usb_s) == -1) { > : > : errx(1, "Couldn't stat the file: %s", file); > : > : } > : > : > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && > : > : !S_IROTH(usb_s.st_mode)) { > : > : errx(1, "File not readable (do you have read permissions?)"); > : > : } > : > : > : > : /* Continue on merry way reading devices; maybe use strerror(3) for > : > : more intuitive error messages? */ > : > : > : > : Thoughts? > : > > : > Do you really have to be root to find the devices, if so, that's bad. > : > Very bad. xsane refuses to run as root. I have: > : > : No, no. That's wrong. > : > : Do it like this for example: > : > : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 > : > : This won't have no effect at all with USB2: > : > [localrules=10] > : > add path 'uscanner*' mode 0660 > : > > : > to make it work. /dev/usb* in old usb allow listing w/o privs... > > That's bad. I'm sorry, but having to do something weird to get the > scanner to work every time isn't good design. I don't understand. If you are lazy you do: usbconfig -u xxx set_perm 777 That will give everyone access to all USB devices on the given controller "-u xxx". Note: No "-a" argument. Or: usbconfig set_owner warner:wheel set_perm 660 All USB devices ever plugged on your machine will be accessible by you. I think Rink Springer is working on something in this area. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 20:11:36 2009 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 36450106564A; Tue, 6 Jan 2009 20:11:36 +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 B47F88FC23; Tue, 6 Jan 2009 20:11:35 +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 n06K94W5039186; Tue, 6 Jan 2009 13:09:04 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 13:09:17 -0700 (MST) Message-Id: <20090106.130917.117915140.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200901062103.28124.hselasky@c2i.net> References: <200901062024.31100.hselasky@c2i.net> <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> 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 Cc: volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 20:11:37 -0000 In message: <200901062103.28124.hselasky@c2i.net> Hans Petter Selasky writes: : On Tuesday 06 January 2009, M. Warner Losh wrote: : > In message: <200901062024.31100.hselasky@c2i.net> : > : > Hans Petter Selasky writes: : > : On Tuesday 06 January 2009, M. Warner Losh wrote: : > : > In message: : > : > <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> : > : > : > : > "Garrett Cooper" writes: : > : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky : > : > : : > : : > : wrote: : > : > : > On Saturday 03 January 2009, Volker wrote: : > : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: : > : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: : > : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error : > : > : >> >> when run as a normal user : > : > : >> >> : > : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb : > : > : >> >> Responsible-Changed-By: vwe : > : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 : > : > : >> >> Responsible-Changed-Why: : > : > : >> >> reassign : > : > : >> >> : > : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 : > : > : >> > : > : > : >> > Hi, : > : > : >> > : > : > : >> > "usbconfig" will only show USB devices which the user has access : > : > : >> > to. : > : > : >> > : > : > : >> > What should be the correct display message when no devices are : > : > : >> > accessible due to innsufficient permissions? : > : > : >> > : > : > : >> > --HPS : > : > : >> : > : > : >> Hans, : > : > : >> : > : > : >> what about "access denied" or "insufficient privileges"? : > : > : >> : > : > : >> Someone might have a better idea but everything should be better : > : > : >> than silently refusing to do anything. : > : > : >> : > : > : >> Volker : > : > : > : > : > : > Is this Ok: : > : > : > : > : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 : > : > : > : > : > : > --HPS : > : > : : > : > : Eh? I still think that strerror or something along those lines would : > : > : be more helpful. : > : > : : > : > : You could also do : > : > : : > : > : if (getuid() != 0) { : > : > : errx(1, "Cluebat -- you might not be able to read the usb devices : > : > : if you're not root"); : > : > : } : > : > : : > : > : or... : > : > : : > : > : struct stat usb_s; : > : > : : > : > : int fd = open(..., O_RDONLY /* blah, blah... */); : > : > : : > : > : if (fd == -1) { : > : > : errx(1, "Does the file -- %s -- exist?", file); : > : > : } : > : > : : > : > : if (fstat(fd, &usb_s) == -1) { : > : > : errx(1, "Couldn't stat the file: %s", file); : > : > : } : > : > : : > : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && : > : > : !S_IROTH(usb_s.st_mode)) { : > : > : errx(1, "File not readable (do you have read permissions?)"); : > : > : } : > : > : : > : > : /* Continue on merry way reading devices; maybe use strerror(3) for : > : > : more intuitive error messages? */ : > : > : : > : > : Thoughts? : > : > : > : > Do you really have to be root to find the devices, if so, that's bad. : > : > Very bad. xsane refuses to run as root. I have: : > : : > : No, no. That's wrong. : > : : > : Do it like this for example: : > : : > : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 : > : : > : This won't have no effect at all with USB2: : > : > [localrules=10] : > : > add path 'uscanner*' mode 0660 : > : > : > : > to make it work. /dev/usb* in old usb allow listing w/o privs... : > : > That's bad. I'm sorry, but having to do something weird to get the : > scanner to work every time isn't good design. : : I don't understand. If you are lazy you do: It has to do with providing a consistent interface to the user... : usbconfig -u xxx set_perm 777 : : That will give everyone access to all USB devices on the given controller "-u : xxx". Note: No "-a" argument. : : Or: : : usbconfig set_owner warner:wheel set_perm 660 : : All USB devices ever plugged on your machine will be accessible by you. : : I think Rink Springer is working on something in this area. Great! I look forward to the rework... Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 21:17:43 2009 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 DF37A106564A; Tue, 6 Jan 2009 21:17:43 +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 9CF3A8FC08; Tue, 6 Jan 2009 21:17:43 +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 n06LEOGC039806; Tue, 6 Jan 2009 14:14:24 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 14:14:37 -0700 (MST) Message-Id: <20090106.141437.96158589.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <4963C48B.9030005@elischer.org> References: <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> <4963C48B.9030005@elischer.org> 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 Cc: volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 21:17:44 -0000 In message: <4963C48B.9030005@elischer.org> Julian Elischer writes: : Hans Petter Selasky wrote: : > On Tuesday 06 January 2009, M. Warner Losh wrote: : >> In message: <200901062024.31100.hselasky@c2i.net> : >> : Do it like this for example: : >> : : >> : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 : >> : : >> : This won't have no effect at all with USB2: : >> : > [localrules=10] : >> : > add path 'uscanner*' mode 0660 : >> : > : >> : > to make it work. /dev/usb* in old usb allow listing w/o privs... : >> : >> That's bad. I'm sorry, but having to do something weird to get the : >> scanner to work every time isn't good design. : > : > I don't understand. If you are lazy you do: : > : > usbconfig -u xxx set_perm 777 : : how about using the standard devd stuff? You mean devfs. : why invent a completely new way of doing things for USB? Exactly my point. I can paper over this with devd, but that's really not a good way to roll long term. Warner From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 21:20:57 2009 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 B4EF1106564A; Tue, 6 Jan 2009 21:20:57 +0000 (UTC) (envelope-from prvs=julian=25065b919@elischer.org) Received: from smtp-outbound.ironport.com (smtp-outbound.ironport.com [63.251.108.112]) by mx1.freebsd.org (Postfix) with ESMTP id 982BB8FC12; Tue, 6 Jan 2009 21:20:57 +0000 (UTC) (envelope-from prvs=julian=25065b919@elischer.org) Received: from jelischer-laptop.sfo.ironport.com (HELO julian-mac.elischer.org) ([10.251.22.38]) by smtp-outbound.ironport.com with ESMTP; 06 Jan 2009 12:52:23 -0800 Message-ID: <4963C48B.9030005@elischer.org> Date: Tue, 06 Jan 2009 12:52:27 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Hans Petter Selasky References: <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> <200901062024.31100.hselasky@c2i.net> <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> In-Reply-To: <200901062103.28124.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user 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, 06 Jan 2009 21:20:58 -0000 Hans Petter Selasky wrote: > On Tuesday 06 January 2009, M. Warner Losh wrote: >> In message: <200901062024.31100.hselasky@c2i.net> >> >> Hans Petter Selasky writes: >> : On Tuesday 06 January 2009, M. Warner Losh wrote: >> : > In message: >> : > <7d6fde3d0901061110r79333a07jf4eb134224a94747@mail.gmail.com> >> : > >> : > "Garrett Cooper" writes: >> : > : On Tue, Jan 6, 2009 at 10:32 AM, Hans Petter Selasky >> : > : >> : >> : wrote: >> : > : > On Saturday 03 January 2009, Volker wrote: >> : > : >> On 01/03/09 01:35, Hans Petter Selasky wrote: >> : > : >> > On Wednesday 31 December 2008, vwe@freebsd.org wrote: >> : > : >> >> Synopsis: [newusb] usbconfig(8) fails with misleading error >> : > : >> >> when run as a normal user >> : > : >> >> >> : > : >> >> Responsible-Changed-From-To: freebsd-bugs->freebsd-usb >> : > : >> >> Responsible-Changed-By: vwe >> : > : >> >> Responsible-Changed-When: Wed Dec 31 12:55:52 UTC 2008 >> : > : >> >> Responsible-Changed-Why: >> : > : >> >> reassign >> : > : >> >> >> : > : >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=129963 >> : > : >> > >> : > : >> > Hi, >> : > : >> > >> : > : >> > "usbconfig" will only show USB devices which the user has access >> : > : >> > to. >> : > : >> > >> : > : >> > What should be the correct display message when no devices are >> : > : >> > accessible due to innsufficient permissions? >> : > : >> > >> : > : >> > --HPS >> : > : >> >> : > : >> Hans, >> : > : >> >> : > : >> what about "access denied" or "insufficient privileges"? >> : > : >> >> : > : >> Someone might have a better idea but everything should be better >> : > : >> than silently refusing to do anything. >> : > : >> >> : > : >> Volker >> : > : > >> : > : > Is this Ok: >> : > : > >> : > : > http://perforce.freebsd.org/chv.cgi?CH=155731 >> : > : > >> : > : > --HPS >> : > : >> : > : Eh? I still think that strerror or something along those lines would >> : > : be more helpful. >> : > : >> : > : You could also do >> : > : >> : > : if (getuid() != 0) { >> : > : errx(1, "Cluebat -- you might not be able to read the usb devices >> : > : if you're not root"); >> : > : } >> : > : >> : > : or... >> : > : >> : > : struct stat usb_s; >> : > : >> : > : int fd = open(..., O_RDONLY /* blah, blah... */); >> : > : >> : > : if (fd == -1) { >> : > : errx(1, "Does the file -- %s -- exist?", file); >> : > : } >> : > : >> : > : if (fstat(fd, &usb_s) == -1) { >> : > : errx(1, "Couldn't stat the file: %s", file); >> : > : } >> : > : >> : > : if (!S_IRUSR(usb_s.st_mode) && !S_IRGRP(usb_s.st_mode) && >> : > : !S_IROTH(usb_s.st_mode)) { >> : > : errx(1, "File not readable (do you have read permissions?)"); >> : > : } >> : > : >> : > : /* Continue on merry way reading devices; maybe use strerror(3) for >> : > : more intuitive error messages? */ >> : > : >> : > : Thoughts? >> : > >> : > Do you really have to be root to find the devices, if so, that's bad. >> : > Very bad. xsane refuses to run as root. I have: >> : >> : No, no. That's wrong. >> : >> : Do it like this for example: >> : >> : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 >> : >> : This won't have no effect at all with USB2: >> : > [localrules=10] >> : > add path 'uscanner*' mode 0660 >> : > >> : > to make it work. /dev/usb* in old usb allow listing w/o privs... >> >> That's bad. I'm sorry, but having to do something weird to get the >> scanner to work every time isn't good design. > > I don't understand. If you are lazy you do: > > usbconfig -u xxx set_perm 777 how about using the standard devd stuff? why invent a completely new way of doing things for USB? > > That will give everyone access to all USB devices on the given controller "-u > xxx". Note: No "-a" argument. > > Or: > > usbconfig set_owner warner:wheel set_perm 660 > > All USB devices ever plugged on your machine will be accessible by you. > > I think Rink Springer is working on something in this area. > > --HPS > _______________________________________________ > 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 Tue Jan 6 23:02:35 2009 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 9153A106566B for ; Tue, 6 Jan 2009 23:02:35 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out2.uni-muenster.de (ZIVM-OUT2.UNI-MUENSTER.DE [128.176.192.9]) by mx1.freebsd.org (Postfix) with ESMTP id 2464D8FC1A for ; Tue, 6 Jan 2009 23:02:34 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.37,222,1231110000"; d="scan'208";a="208417992" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay2.uni-muenster.de with ESMTP; 07 Jan 2009 00:02:32 +0100 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id B05AE1B074C; Wed, 7 Jan 2009 00:02:32 +0100 (CET) Date: Wed, 07 Jan 2009 00:02:32 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200812232242.30638.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: usb2 quirks 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, 06 Jan 2009 23:02:35 -0000 Thanks a lot. There are two more questions i'd like to ask: 1. where can i find , , and in the following device_desc dump? ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0492 idProduct = 0x0140 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <000000F1F1000> bNumConfigurations = 0x0001 2. what are the usb2 equivalents to the following usb1 quirks: UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_INQUIRY | NO_SYNCHRONIZE_CACHE right now i'm getting the following error message when attaching the device: ugen3.2: at usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:7:0:-1: Attached to scbus7 (da0:umass-sim0:0:0:0): got CAM status 0x4 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry cheers. Alex Hans Petter Selasky schrieb am 2008-12-23: > On Tuesday 23 December 2008, Alexander Best wrote: > > hi there, > > could somebody tell me where i can find info about the quirk > > settings used > > in usbconfig (usb2) please? i had a look at usbconfig(8), but the > > manual > > doesn't contain any information concerning usb quirks. > Hi, > If you type: > usbconfig -h > You see that you have the following quirk commands available: > add_dev_quirk_vplh > remove_dev_quirk_vplh > dump_quirk_names > dump_device_quirks > Before you can use quirks you need to: > kldload usb2_quirk > --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 00:30:06 2009 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 761A3106566B for ; Wed, 7 Jan 2009 00:30:06 +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 629B88FC14 for ; Wed, 7 Jan 2009 00:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n070U584022912 for ; Wed, 7 Jan 2009 00:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n070U5bV022907; Wed, 7 Jan 2009 00:30:05 GMT (envelope-from gnats) Date: Wed, 7 Jan 2009 00:30:05 GMT Message-Id: <200901070030.n070U5bV022907@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alexander Best Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 00:30:06 -0000 The following reply was made to PR usb/130230; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 07 Jan 2009 01:25:30 +0100 (CET) This is a MIME encoded multipart message. --+permail-200901070025306981cf3e000065b8-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit please try the following patch. cheers. alex --+permail-200901070025306981cf3e000065b8-a_best01+ Content-Type: application/octet-stream Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="ypu3.patch" LS0tIHN5cy9kZXYvdXNiL3VtYXNzLmMub3JpZwkyMDA5LTAxLTA3IDAxOjA3OjM1LjAwMDAwMDAw MCArMDAwMAorKysgc3lzL2Rldi91c2IvdW1hc3MuYwkyMDA5LTAxLTA3IDAxOjA5OjEzLjAwMDAw MDAwMCArMDAwMApAQCAtNjU0LDYgKzY1NCwxMCBAQAogCSAgVU1BU1NfUFJPVE9fU0NTSSB8IFVN QVNTX1BST1RPX0JCQiwKIAkgIFNIVVRUTEVfSU5JVCB8IE5PX0dFVE1BWExVTgogCX0sCisJeyBV U0JfVkVORE9SX1NBTVNVTkcsICBVU0JfUFJPRFVDVF9TQU1TVU5HX1lQX1UzLCBSSURfV0lMRENB UkQsCisJICBVTUFTU19QUk9UT19TQ1NJIHwgVU1BU1NfUFJPVE9fQkJCLAorCSAgU0hVVFRMRV9J TklUIHwgTk9fR0VUTUFYTFVOCisJfQogCXsgVVNCX1ZFTkRPUl9TQU1TVU5HX1RFQ0hXSU4sIFVT Ql9QUk9EVUNUX1NBTVNVTkdfVEVDSFdJTl9ESUdJTUFYXzQxMCwgUklEX1dJTERDQVJELAogCSAg VU1BU1NfUFJPVE9fU0NTSSB8IFVNQVNTX1BST1RPX0JCQiwKIAkgIE5PX0lOUVVJUlkKLS0tIHN5 cy9kZXYvdXNiL3VzYmRldnMub3JpZwkyMDA5LTAxLTA3IDAxOjA2OjM3LjAwMDAwMDAwMCArMDAw MAorKysgc3lzL2Rldi91c2IvdXNiZGV2cwkyMDA5LTAxLTA3IDAxOjA3OjI2LjAwMDAwMDAwMCAr MDAwMApAQCAtMTk5MCw2ICsxOTkwLDcgQEAKIC8qIFNhbXN1bmcgcHJvZHVjdHMgKi8KIHByb2R1 Y3QgU0FNU1VORyBNTDYwNjAJCTB4MzAwOAlNTC02MDYwIGxhc2VyIHByaW50ZXIKIHByb2R1Y3Qg U0FNU1VORyBZUF9VMgkJMHg1MDUwCVlQLVUyIE1QMyBQbGF5ZXIKK3Byb2R1Y3QgU0FNU1VORyBZ UF9VMwkJMHg1MDdjCVlQLVUzIE1QMyBQbGF5ZXIKIHByb2R1Y3QgU0FNU1VORyBJNTAwCQkweDY2 MDEJSTUwMCBQYWxtIFVTQiBQaG9uZSAKIAogLyogU2Ftc3VuZyBUZWNod2luIHByb2R1Y3RzICov Cg== --+permail-200901070025306981cf3e000065b8-a_best01+-- From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 00:38:27 2009 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 3B305106566B for ; Wed, 7 Jan 2009 00:38:27 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out1.uni-muenster.de (ZIVM-OUT1.UNI-MUENSTER.DE [128.176.192.8]) by mx1.freebsd.org (Postfix) with ESMTP id BDCB78FC18 for ; Wed, 7 Jan 2009 00:38:26 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.37,222,1231110000"; d="scan'208";a="266381418" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER02.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 07 Jan 2009 01:38:26 +0100 Received: by ZIVMAILUSER02.UNI-MUENSTER.DE (Postfix, from userid 149459) id CB1D11B0871; Wed, 7 Jan 2009 01:38:25 +0100 (CET) Date: Wed, 07 Jan 2009 01:38:20 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: In-Reply-To: <200812232242.30638.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=+permail-200901070038206981cf3e000069da-a_best01+ Cc: Subject: Re: usb2 quirks 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, 07 Jan 2009 00:38:27 -0000 This is a MIME encoded multipart message. --+permail-200901070038206981cf3e000069da-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit instead of using usbconfig to add the quirks for my device i added them to umass2.c and usb2_devid.h. with the changes the device works without any problems. here's the dmesg output: ugen3.2: at usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x4400 umass0:7:0:-1: Attached to scbus7 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < > Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 3864MB (7913472 512 byte sectors: 255H 63S/T 492C) it would be nice to see the changes make it into HEAD. cheers. alex Hans Petter Selasky schrieb am 2008-12-23: > On Tuesday 23 December 2008, Alexander Best wrote: > > hi there, > > could somebody tell me where i can find info about the quirk > > settings used > > in usbconfig (usb2) please? i had a look at usbconfig(8), but the > > manual > > doesn't contain any information concerning usb quirks. > Hi, > If you type: > usbconfig -h > You see that you have the following quirk commands available: > add_dev_quirk_vplh > remove_dev_quirk_vplh > dump_quirk_names > dump_device_quirks > Before you can use quirks you need to: > kldload usb2_quirk > --HPS --+permail-200901070038206981cf3e000069da-a_best01+ Content-Type: application/octet-stream Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="usb2meizu.patch" LS0tIHN5cy9kZXYvdXNiMi9zdG9yYWdlL3VtYXNzMi5jCTIwMDktMDEtMDcgMDA6MjY6MzguMDAw MDAwMDAwICswMDAwCisrKyBzeXMvZGV2L3VzYjIvc3RvcmFnZS91bWFzczIuYwkyMDA5LTAxLTA3 IDAwOjA5OjIwLjAwMDAwMDAwMCArMDAwMApAQCAtOTE2LDYgKzkxNiwxMCBAQAogCQlVTUFTU19Q Uk9UT19BVEFQSSB8IFVNQVNTX1BST1RPX0NCSSwKIAkJTk9fUVVJUktTCiAJfSwKKwl7VVNCX1ZF TkRPUl9NRUlaVSwgVVNCX1BST0RVQ1RfTUVJWlVfTTZfU0wsIFJJRF9XSUxEQ0FSRCwKKwkJVU1B U1NfUFJPVE9fU0NTSSB8IFVNQVNTX1BST1RPX0JCQiwKKwkJTk9fSU5RVUlSWSB8IE5PX1NZTkNI Uk9OSVpFX0NBQ0hFCisJfSwKIAl7VklEX0VPVCwgUElEX0VPVCwgUklEX0VPVCwgMCwgMH0KIH07 CiAKLS0tIHN5cy9kZXYvdXNiMi9pbmNsdWRlL3VzYjJfZGV2aWQuaAkyMDA5LTAxLTA3IDAwOjI3 OjQ3LjAwMDAwMDAwMCArMDAwMAorKysgc3lzL2Rldi91c2IyL2luY2x1ZGUvdXNiMl9kZXZpZC5o CTIwMDktMDEtMDcgMDA6MjA6MzkuMDAwMDAwMDAwICswMDAwCkBAIC0xNTgsNiArMTU4LDcgQEAK ICNkZWZpbmUJVVNCX1ZFTkRPUl9LWU9DRVJBCTB4MDQ4MgkJLyogS3lvY2VyYSBXaXJlbGVzcyBD b3JwLiAqLwogI2RlZmluZQlVU0JfVkVORE9SX1NUTUlDUk8JMHgwNDgzCQkvKiBTVE1pY3JvZWxl Y3Ryb25pY3MgKi8KICNkZWZpbmUJVVNCX1ZFTkRPUl9GT1hDT05OCTB4MDQ4OQkJLyogRm94Y29u biAqLworI2RlZmluZQlVU0JfVkVORE9SX01FSVpVCTB4MDQ5MgkJLyogTWVpenUgRWxlY3Ryb25p Y3MgKi8KICNkZWZpbmUJVVNCX1ZFTkRPUl9ZQU1BSEEJMHgwNDk5CQkvKiBZQU1BSEEgKi8KICNk ZWZpbmUJVVNCX1ZFTkRPUl9DT01QQVEJMHgwNDlmCQkvKiBDb21wYXEgKi8KICNkZWZpbmUJVVNC X1ZFTkRPUl9ISVRBQ0hJCTB4MDRhNAkJLyogSGl0YWNoaSAqLwpAQCAtMTY1OCw2ICsxNjU5LDkg QEAKICNkZWZpbmUJVVNCX1BST0RVQ1RfTUNUX1VTQjIzMgkweDAyMTAJCS8qIFVTQi0yMzIgSW50 ZXJmYWNlICovCiAjZGVmaW5lCVVTQl9QUk9EVUNUX01DVF9TSVRFQ09NX1VTQjIzMgkweDAyMzAJ CS8qIFNpdGVjb20gVVNCLTIzMiBQcm9kdWN0cyAqLwogCisvKiBNZWl6dSBFbGVjdHJvbmljcyAq LworI2RlZmluZSBVU0JfUFJPRFVDVF9NRUlaVV9NNl9TTAkJMHgwMTQwCQkvKiBNaW5pUGxheWVy IE02IChTTCkgKi8KKwogLyogTWVsY28sIEluYyBwcm9kdWN0cyAqLwogI2RlZmluZQlVU0JfUFJP RFVDVF9NRUxDT19MVUFUWDEJMHgwMDAxCQkvKiBMVUEtVFggRXRoZXJuZXQgKi8KICNkZWZpbmUJ VVNCX1BST0RVQ1RfTUVMQ09fTFVBVFg1CTB4MDAwNQkJLyogTFVBLVRYIEV0aGVybmV0ICovCg== --+permail-200901070038206981cf3e000069da-a_best01+-- From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 01:00:11 2009 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 EA45310656D0 for ; Wed, 7 Jan 2009 01:00:11 +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 BDCAA8FC19 for ; Wed, 7 Jan 2009 01:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0710B32045801 for ; Wed, 7 Jan 2009 01:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0710BsZ045800; Wed, 7 Jan 2009 01:00:11 GMT (envelope-from gnats) Date: Wed, 7 Jan 2009 01:00:11 GMT Message-Id: <200901070100.n0710BsZ045800@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alexander Best Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 01:00:12 -0000 The following reply was made to PR usb/130230; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/130230: Samsung Electronics YP-U3 does not attach in 7.1-RELEASE Date: Wed, 07 Jan 2009 01:52:45 +0100 (CET) if the device still fails to attach please see this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/127980 you might have to undo the changes that were introduced with the following patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=125398 cheers. alex From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 01:00:13 2009 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 81BC110656D0 for ; Wed, 7 Jan 2009 01:00:13 +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 546B88FC18 for ; Wed, 7 Jan 2009 01:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0710DtR045814 for ; Wed, 7 Jan 2009 01:00:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0710DxO045813; Wed, 7 Jan 2009 01:00:13 GMT (envelope-from gnats) Date: Wed, 7 Jan 2009 01:00:13 GMT Message-Id: <200901070100.n0710DxO045813@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alexander Best Cc: Subject: Re: usb/117075: [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 01:00:14 -0000 The following reply was made to PR usb/117075; it has been noted by GNATS. From: Alexander Best To: Cc: Subject: Re: usb/117075: [scsi_da] [patch] quirk: USB Samsung YP-U3 MP3 Date: Wed, 07 Jan 2009 01:57:29 +0100 (CET) the PR can be closed. the changes have been comitted in revision 180389 (svn) of scsi_da.c cheers. alex From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 09:57:06 2009 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 DC04D1065674 for ; Wed, 7 Jan 2009 09:57:06 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 710C48FC1E for ; Wed, 7 Jan 2009 09:57:05 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nklthdr5v5AUSfVrlghuJA==:17 a=311Yn5DvXxZFx703U2gA:9 a=h7P9JXJHHNxmfv5KI8sA:7 a=WBT4BerHk05vuBm2awkz9vfNzPUA:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.62] (account mc467741@c2i.net [62.113.132.62] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1073732852; Wed, 07 Jan 2009 10:57:03 +0100 From: Hans Petter Selasky To: Alexander Best Date: Wed, 7 Jan 2009 10:59:27 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901071059.27949.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: usb2 quirks 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, 07 Jan 2009 09:57:07 -0000 On Wednesday 07 January 2009, Alexander Best wrote: > Thanks a lot. There are two more questions i'd like to ask: > > 1. where can i find , , and in the following > device_desc dump? > > ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON vid: > idVendor = 0x0492 pid: > idProduct = 0x0140 lo_rev+hi_rev: > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <000000F1F1000> > bNumConfigurations = 0x0001 > > 2. what are the usb2 equivalents to the following usb1 quirks: > UMASS_PROTO_SCSI | UMASS_PROTO_BBB, > NO_INQUIRY | NO_SYNCHRONIZE_CACHE These quirks have not yet been converted into the quirk system. You have to recompile usb2_storage_mass modules and edit usb2/storage/umass2.c . --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 10:10:02 2009 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 BF82B1065675 for ; Wed, 7 Jan 2009 10:10: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 56C3C8FC0C for ; Wed, 7 Jan 2009 10:10:02 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nklthdr5v5AUSfVrlghuJA==:17 a=6I5d2MoRAAAA:8 a=75t9EwOkiDLJOmSOnEgA:9 a=g-XpXkAt54BZUbXCBOUA:7 a=AKLx2Jf_QKEGapEcRA3JPOvrDLEA:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.62] (account mc467741@c2i.net [62.113.132.62] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 125366800; Wed, 07 Jan 2009 11:10:00 +0100 From: Hans Petter Selasky To: Alexander Best Date: Wed, 7 Jan 2009 11:12:23 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901071112.24407.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: usb2 quirks 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, 07 Jan 2009 10:10:03 -0000 On Wednesday 07 January 2009, Alexander Best wrote: > instead of using usbconfig to add the quirks for my device i added them to > umass2.c and usb2_devid.h. with the changes the device works without any > problems. here's the dmesg output: > > > it would be nice to see the changes make it into HEAD. > Going into -current early next week. Currently your patches are available in P4: http://perforce.freebsd.org/chv.cgi?CH=155748 --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 7 16:40:04 2009 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 54A351065670 for ; Wed, 7 Jan 2009 16:40:04 +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 42E618FC19 for ; Wed, 7 Jan 2009 16:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n07Ge4aM022633 for ; Wed, 7 Jan 2009 16:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n07Ge47c022632; Wed, 7 Jan 2009 16:40:04 GMT (envelope-from gnats) Date: Wed, 7 Jan 2009 16:40:04 GMT Message-Id: <200901071640.n07Ge47c022632@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Renato Botelho Cc: Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Renato Botelho List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 16:40:05 -0000 The following reply was made to PR usb/130024; it has been noted by GNATS. From: Renato Botelho To: Hans Petter Selasky Cc: bug-followup@freebsd.org Subject: Re: usb/130024: [newusb] Sun Type 7 Unix keyboard doesn't work with usb2 Date: Wed, 7 Jan 2009 14:10:02 -0200 On Sat, Jan 03, 2009 at 12:54:21AM +0100, Hans Petter Selasky wrote: > Hi, > > Have you tried on different computers? Yes, at home, same problem. > Is the problem the same everwhere? Yes > Are you willing to sponsor one of those keyboards for debugging purpose? Sorry, but i just have one of these available :( I know more freebsd users are using sun keyboards, i don't know if anyone could donate one. > Could you attach to this PR dumps of the keyboard descriptors using the > usbconfig dump commands? See "usbconfig -h" if you need help. > > For example: > > usbconfig -u xxx -a yyy dump_curr_config_desc dump_device_desc > > And: "dmesg | grep -i usb" I'll find a ps/2 keyboard here and make the tests for you at least tomorrow -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc Many hands make light work. -- John Heywood From owner-freebsd-usb@FreeBSD.ORG Fri Jan 9 14:30:01 2009 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 CBE811065670 for ; Fri, 9 Jan 2009 14:30:01 +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 A7AE58FC1A for ; Fri, 9 Jan 2009 14:30: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.3/8.14.3) with ESMTP id n09EU1gn058559 for ; Fri, 9 Jan 2009 14:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n09EU1wv058556; Fri, 9 Jan 2009 14:30:01 GMT (envelope-from gnats) Resent-Date: Fri, 9 Jan 2009 14:30:01 GMT Resent-Message-Id: <200901091430.n09EU1wv058556@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, Alexander Best Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E180F106567F for ; Fri, 9 Jan 2009 14:20:52 +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 CFF5D8FC17 for ; Fri, 9 Jan 2009 14:20:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n09EKqwb024605 for ; Fri, 9 Jan 2009 14:20:52 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n09EKqZl024604; Fri, 9 Jan 2009 14:20:52 GMT (envelope-from nobody) Message-Id: <200901091420.n09EKqZl024604@www.freebsd.org> Date: Fri, 9 Jan 2009 14:20:52 GMT From: Alexander Best To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/130325: [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh 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, 09 Jan 2009 14:30:02 -0000 >Number: 130325 >Category: usb >Synopsis: [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 09 14:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexander Best >Release: 8-CURRENT >Organization: >Environment: reeBSD moshnroll 8.0-CURRENT FreeBSD 8.0-CURRENT #11 r186887M: Thu Jan 8 11:38:05 UTC 2009 root@moshnroll:/usr/obj/usr/src/sys/ARUNDEL i386 >Description: here's a fix to make tools/tools/usb/print-usb-if-vids.sh work again. the file hasn't been touched in over 4 years. ;) alex >How-To-Repeat: >Fix: Patch attached with submission follows: --- tools/tools/usb/print-usb-if-vids.sh 2008-11-27 00:25:34.000000000 +0000 +++ tools/tools/usb/print-usb-if-vids.sh 2009-01-09 00:49:50.000000000 +0000 @@ -27,5 +27,5 @@ # $FreeBSD$ -fetch -o /tmp/usb.if http://www.usb.org/app/pub/dump/comp_dump/ +fetch -o /tmp/usb.if http://www.usb.org/developers/tools/comp_dump/ awk -F '|' '{ printf "%#06x\t%s\n", $1, $2 }' < /tmp/usb.if | sort >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 13:58:53 2009 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 07D0B1065677 for ; Sat, 10 Jan 2009 13:58:53 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp814.mail.ird.yahoo.com (smtp814.mail.ird.yahoo.com [217.146.188.74]) by mx1.freebsd.org (Postfix) with SMTP id 4FCB48FC13 for ; Sat, 10 Jan 2009 13:58:52 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 59711 invoked from network); 10 Jan 2009 13:32:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=rkkpRG+nRBU1BsnaNU8HlvdciXacquUt19qyE3lsUuhm5cDDsgMZUXmx6uI/5TPzHDKLQOjT5jaG69U2npoMRxENzeE3UgB/X52ByMYz8GRFBT1RacNYxyzFJM7txtXUWCKpe2QHVYS1ys2X99we/7aVcETe2Z1vAbUoBi0CWwI= ; Received: from unknown (HELO w2fzz0vc03.aah-go-on.com) (Thomas.Sparrevohn@86.140.128.94 with login) by smtp814.mail.ird.yahoo.com with SMTP; 10 Jan 2009 13:32:10 -0000 X-YMail-OSG: eHoIzt8VM1lT2kLcDtptSBydC_WJhera27MgnzSkD_G0_ectB0dl8UTzE5WPP8QCglw.Zj3Sjnmt_0GurumFIdbyVB6s6.s6tMBdd_8jSNiyWPV2NZMMaJAcy6eN7s6TQ.K8mq3ipI2BEcsVAHS00J1dFkhDmRYVfurunxewgh80HqKm6Wuhk39aqOPz X-Yahoo-Newman-Property: ymail-3 From: Thomas Sparrevohn To: freebsd-usb@freebsd.org Date: Sat, 10 Jan 2009 13:32:03 +0000 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> Subject: Advice on booting from usb2 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, 10 Jan 2009 13:58:53 -0000 I have a 4GB SDHC card that I have formatted with ufs and installed a current kernel on - Its connected to a USB reader. Now here is the thing - I can boot the kernel with USB2 well enough but when it comes to mount root - it looks like USB2 has not probed and attached the device yet and I get the "mount root from" prompt - however it does not show the cam devices Any advice? From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 14:06:24 2009 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 733C91065693 for ; Sat, 10 Jan 2009 14:06:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id A2DFF8FC22 for ; Sat, 10 Jan 2009 14:06:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nklthdr5v5AUSfVrlghuJA==:17 a=H-fVbl1J6fLFWf8n26EA:9 a=hP4Q4e9l3prc7L0ch4gA:7 a=ynDTplAVL6A8YRsm_jDxkkft3lwA:4 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: from [62.113.132.62] (account mc467741@c2i.net [62.113.132.62] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1176389191; Sat, 10 Jan 2009 15:06:22 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 10 Jan 2009 15:08:43 +0100 User-Agent: KMail/1.9.7 References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> In-Reply-To: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901101508.44659.hselasky@c2i.net> Cc: Ed Maste Subject: Re: Advice on booting from usb2 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, 10 Jan 2009 14:06:24 -0000 On Saturday 10 January 2009, Thomas Sparrevohn wrote: > I have a 4GB SDHC card that I have formatted with ufs and installed a > current kernel on - Its connected to a USB reader. Now here is the thing - > I can boot the kernel with USB2 well enough but when it comes to mount root > - it looks like USB2 has not probed and attached the device yet and I get > the "mount root from" prompt - however it does not show the cam devices > > Any advice? It's being worked on by "Ed Maste ". Temporary patch is available here for kern/vfs_mount.c : --- vfs_mount.c.orig Mon Dec 22 14:43:36 2008 +++ vfs_mount.c Mon Dec 22 15:09:14 2008 @@ -58,6 +58,7 @@ #include #include #include +#include #include #include @@ -1606,7 +1607,11 @@ vfs_mountroot(void) { char *cp; - int error, i, asked = 0; + const char *rootdevname_orig; + int error; + unsigned int i; + unsigned char asked = 0; /* set if asked for mount point */ + unsigned char timeout = 16; /* seconds */ root_mount_prepare(); @@ -1624,6 +1629,10 @@ asked = 1; } + /* store a copy of the initial root device name */ + rootdevname_orig = ctrootdevname; + retry: + /* * The root filesystem information is compiled in, and we are * booted with instructions to use it. @@ -1674,12 +1683,27 @@ if (!vfs_mountroot_try(ctrootdevname)) goto mounted; /* - * Everything so far has failed, prompt on the console if we haven't - * already tried that. + * Check if we should try more times. + */ + if (timeout != 0) { + timeout--; + pause("WROOT", hz); + if (cncheckc() == -1) { + /* no key press - try again */ + ctrootdevname = rootdevname_orig; + goto retry; + } + } + + /* + * Everything so far has failed, prompt on the console if we + * haven't already tried that. */ - if (!asked) + if (!asked) { + printf("\n"); if (!vfs_mountroot_ask()) goto mounted; + } panic("Root mount failed, startup aborted."); --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 15:56:22 2009 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 799251065672 for ; Sat, 10 Jan 2009 15:56:22 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-bw0-f20.google.com (mail-bw0-f20.google.com [209.85.218.20]) by mx1.freebsd.org (Postfix) with ESMTP id D80468FC0A for ; Sat, 10 Jan 2009 15:56:21 +0000 (UTC) (envelope-from olivier@gid0.org) Received: by bwz13 with SMTP id 13so3961791bwz.19 for ; Sat, 10 Jan 2009 07:56:20 -0800 (PST) Received: by 10.223.105.140 with SMTP id t12mr19521029fao.12.1231601028826; Sat, 10 Jan 2009 07:23:48 -0800 (PST) Received: by 10.223.112.75 with HTTP; Sat, 10 Jan 2009 07:23:48 -0800 (PST) Message-ID: <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> Date: Sat, 10 Jan 2009 16:23:48 +0100 From: "Olivier SMEDTS" To: "Hans Petter Selasky" In-Reply-To: <200901101508.44659.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <200901101508.44659.hselasky@c2i.net> Cc: Ed Maste , freebsd-usb@freebsd.org Subject: Re: Advice on booting from usb2 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, 10 Jan 2009 15:56:22 -0000 2009/1/10 Hans Petter Selasky : > On Saturday 10 January 2009, Thomas Sparrevohn wrote: >> I have a 4GB SDHC card that I have formatted with ufs and installed a >> current kernel on - Its connected to a USB reader. Now here is the thing - >> I can boot the kernel with USB2 well enough but when it comes to mount root >> - it looks like USB2 has not probed and attached the device yet and I get >> the "mount root from" prompt - however it does not show the cam devices >> >> Any advice? > > It's being worked on by "Ed Maste ". > > Temporary patch is available here for kern/vfs_mount.c : Great, my ZFS-only USB key could only boot by mounting root manually. I'll try this. Cheers > --- vfs_mount.c.orig Mon Dec 22 14:43:36 2008 > +++ vfs_mount.c Mon Dec 22 15:09:14 2008 > @@ -58,6 +58,7 @@ > #include > #include > #include > +#include > #include > > #include > @@ -1606,7 +1607,11 @@ > vfs_mountroot(void) > { > char *cp; > - int error, i, asked = 0; > + const char *rootdevname_orig; > + int error; > + unsigned int i; > + unsigned char asked = 0; /* set if asked for mount point */ > + unsigned char timeout = 16; /* seconds */ > > root_mount_prepare(); > > @@ -1624,6 +1629,10 @@ > asked = 1; > } > > + /* store a copy of the initial root device name */ > + rootdevname_orig = ctrootdevname; > + retry: > + > /* > * The root filesystem information is compiled in, and we are > * booted with instructions to use it. > @@ -1674,12 +1683,27 @@ > if (!vfs_mountroot_try(ctrootdevname)) > goto mounted; > /* > - * Everything so far has failed, prompt on the console if we haven't > - * already tried that. > + * Check if we should try more times. > + */ > + if (timeout != 0) { > + timeout--; > + pause("WROOT", hz); > + if (cncheckc() == -1) { > + /* no key press - try again */ > + ctrootdevname = rootdevname_orig; > + goto retry; > + } > + } > + > + /* > + * Everything so far has failed, prompt on the console if we > + * haven't already tried that. > */ > - if (!asked) > + if (!asked) { > + printf("\n"); > if (!vfs_mountroot_ask()) > goto mounted; > + } > > panic("Root mount failed, startup aborted."); > > --HPS > _______________________________________________ > 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" > -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas." From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 18:17:51 2009 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 564E61065673 for ; Sat, 10 Jan 2009 18:17:51 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp808.mail.ird.yahoo.com (smtp808.mail.ird.yahoo.com [217.146.188.68]) by mx1.freebsd.org (Postfix) with SMTP id 9CDAF8FC0A for ; Sat, 10 Jan 2009 18:17:50 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 57407 invoked from network); 10 Jan 2009 18:17:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=Z7ZfDVuRwrL13O3qjLRVUJSyuLb1rg0rM4MHdnX84eM8/XR+mOqgwurhQLchJaANUC1CkmJ1TvXVPai45swwXTm5tJEM8mS/fvvZ7xqIx+YxPzK7lfbd+dzTCNhrMrcXouW66/NBTOvbAgYdvELEuCFd53vSsGHtNe7rYoke2zs= ; Received: from unknown (HELO w2fzz0vc03.aah-go-on.com) (Thomas.Sparrevohn@86.147.163.72 with login) by smtp808.mail.ird.yahoo.com with SMTP; 10 Jan 2009 18:17:49 -0000 X-YMail-OSG: CBvcSYgVM1lrmMVULCnHEpy2he2Xj4s3z2ciwkjjHcsVqghFKqTZZyIIAt6Fpwqtv7aqY_R3gySRvc9o8jj26y7G2PP3LQJcGGDkbo0ckiB9kFgKTO3K_521nj.brtwOO5n9NFd4_ER7IrFP8FJxeil9OfQVDVc2UmLL67ahxLKs6AhN3QNmHXnv.MQE X-Yahoo-Newman-Property: ymail-3 From: Thomas Sparrevohn To: freebsd-usb@freebsd.org Date: Sat, 10 Jan 2009 18:17:44 +0000 User-Agent: KMail/1.9.10 References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <200901101508.44659.hselasky@c2i.net> <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> In-Reply-To: <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901101817.45284.Thomas.Sparrevohn@btinternet.com> Subject: Re: Advice on booting from usb2 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, 10 Jan 2009 18:17:51 -0000 On Saturday 10 January 2009 15:23:48 Olivier SMEDTS wrote: The patch works for me and allows me to boot - however eventually I get the usb2_pc_common_mem_cb:429: Page offset was not preserved! Error - I wonder if the error is specific to the Nvidia Nforce 590 Intel chipset or its more generic as but seems to occur quite rarely From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 18:37:56 2009 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 8D79A106564A for ; Sat, 10 Jan 2009 18:37:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.tele2.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 2295C8FC0C for ; Sat, 10 Jan 2009 18:37:55 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nklthdr5v5AUSfVrlghuJA==:17 a=i__SCIhEQNIEeib1RM0A:9 a=6HmnxefQpacUZylv971Hf8uEDlsA:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.62] (account mc467741@c2i.net [62.113.132.62] verified) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 788349774; Sat, 10 Jan 2009 19:37:54 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 10 Jan 2009 19:40:10 +0100 User-Agent: KMail/1.9.7 References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <367b2c980901100723h19dc2ff6x55a48c96dcdce9b3@mail.gmail.com> <200901101817.45284.Thomas.Sparrevohn@btinternet.com> In-Reply-To: <200901101817.45284.Thomas.Sparrevohn@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901101940.11605.hselasky@c2i.net> Cc: Subject: Re: Advice on booting from usb2 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, 10 Jan 2009 18:37:56 -0000 On Saturday 10 January 2009, Thomas Sparrevohn wrote: > On Saturday 10 January 2009 15:23:48 Olivier SMEDTS wrote: > > The patch works for me and allows me to boot - however eventually I get the > > usb2_pc_common_mem_cb:429: Page offset was not preserved! > > Error - I wonder if the error is specific to the Nvidia Nforce 590 Intel > chipset or its more generic as but seems to occur quite rarely > Hi, It is chipset independent. It appears at the moment data is bounced, because you have too much memory in the computer :-) Currently the USB drivers only supports 32-bits of DMA addressing. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 19:22:26 2009 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 BA906106564A for ; Sat, 10 Jan 2009 19:22:26 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 52F1B8FC13 for ; Sat, 10 Jan 2009 19:22:25 +0000 (UTC) (envelope-from dorian.buettner@gmx.de) Received: (qmail invoked by alias); 10 Jan 2009 19:22:24 -0000 Received: from port-92-192-98-224.dynamic.qsc.de (EHLO zock.localnet) [92.192.98.224] by mail.gmx.net (mp035) with SMTP; 10 Jan 2009 20:22:24 +0100 X-Authenticated: #1682771 X-Provags-ID: V01U2FsdGVkX18nuoERD/Aner3fb5ptnrA4f0t6D4ouJhLw7GW2+C /Dbni48GrCZC+f From: Dorian =?iso-8859-1?q?B=FCttner?= To: freebsd-usb@freebsd.org Date: Sat, 10 Jan 2009 19:22:23 +0000 User-Agent: KMail/1.10.92 (FreeBSD/7.1-STABLE; KDE/4.1.85; amd64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901101922.24019.dorian.buettner@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.86 Subject: test usb2 on 7.1? 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, 10 Jan 2009 19:22:27 -0000 Is it possible/senseful and if so, how would I get the source code merged into /usr/src? From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 20:21:17 2009 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 5F2AF1065670; Sat, 10 Jan 2009 20:21:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id C40918FC16; Sat, 10 Jan 2009 20:21:16 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nklthdr5v5AUSfVrlghuJA==:17 a=6I5d2MoRAAAA:8 a=T2r-b28UR27u9Pe-CXoA:9 a=9DVhdBXz2dqI911dOU5VLCNHGccA:4 a=50e4U0PicR4A:10 Received: from [62.113.132.62] (account mc467741@c2i.net [62.113.132.62] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1176207362; Sat, 10 Jan 2009 21:21:14 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sat, 10 Jan 2009 21:23:35 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901102123.36484.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: USB wiki page 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, 10 Jan 2009 20:21:17 -0000 Hi, I've created a USB page at the FreeBSD wiki with some USB2/HPSUSB frequently asked questions. http://wiki.freebsd.org/USB --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 20:36:59 2009 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 18B861065670 for ; Sat, 10 Jan 2009 20:36:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id A379B8FC16 for ; Sat, 10 Jan 2009 20:36:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=nklthdr5v5AUSfVrlghuJA==:17 a=WRQGCfwRMYxz9FOvLmIA:9 a=U37prGTYYJhIM1S-6wR1ZSnfYLQA:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.62] (account mc467741@c2i.net [62.113.132.62] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1176505908; Sat, 10 Jan 2009 21:36:57 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 10 Jan 2009 21:39:15 +0100 User-Agent: KMail/1.9.7 References: <200901101922.24019.dorian.buettner@gmx.de> In-Reply-To: <200901101922.24019.dorian.buettner@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200901102139.17710.hselasky@c2i.net> Cc: Subject: Re: test usb2 on 7.1? 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, 10 Jan 2009 20:36:59 -0000 On Saturday 10 January 2009, Dorian B=FCttner wrote: > Is it possible/senseful and if so, how would I get the source code merged > into /usr/src? It is possible, but not all USB drivers will compile. What you can try: Compile -current kernel with "options COMPAT_FREEBSD7" and use that on 7.x= =20 box. Only recommended for testing though. =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Sat Jan 10 21:19:43 2009 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 0F38E106567D for ; Sat, 10 Jan 2009 21:19:43 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: from smtp804.mail.ird.yahoo.com (smtp804.mail.ird.yahoo.com [217.146.188.64]) by mx1.freebsd.org (Postfix) with SMTP id 54B1C8FC21 for ; Sat, 10 Jan 2009 21:19:41 +0000 (UTC) (envelope-from Thomas.Sparrevohn@btinternet.com) Received: (qmail 78213 invoked from network); 10 Jan 2009 21:19:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=K6KZsmt+LmgxG5F5tVKg/CVtMlAxMx9gqc4v4GXIxePCsC4QZ4wn+Nzl+UKJDKcMx7eY6CMTNQsBvkj2mgX+NQUMOcx5iimFv2c5V1i9xJGz91qDWKNlfTNo5bpUreF9Yb7HYbDygWLsXHCHItCS9SclTstLycUNyatXw9ZjWYs= ; Received: from unknown (HELO w2fzz0vc03.aah-go-on.com) (Thomas.Sparrevohn@86.147.163.72 with login) by smtp804.mail.ird.yahoo.com with SMTP; 10 Jan 2009 21:19:41 -0000 X-YMail-OSG: oSS2EpIVM1ktJ8nIZ2T4QbbwsTTWb0QXDEZfwla3X4dz2BZ6ZhFRgbRWyj6m5lyF9GNDsygRuhEzQkeA15gWBj8ewgOXLI3W42IgF.nwL16i8Gv55hjutCCsEA3ZP0jfsydm4Zi5Umsuwp9B72gGsHlh X-Yahoo-Newman-Property: ymail-3 From: Thomas Sparrevohn To: Hans Petter Selasky Date: Sat, 10 Jan 2009 21:19:40 +0000 User-Agent: KMail/1.9.10 References: <200901101332.04206.Thomas.Sparrevohn@btinternet.com> <200901101817.45284.Thomas.Sparrevohn@btinternet.com> <200901101940.11605.hselasky@c2i.net> In-Reply-To: <200901101940.11605.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901102119.40591.Thomas.Sparrevohn@btinternet.com> Cc: freebsd-usb@freebsd.org Subject: Re: Advice on booting from usb2 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, 10 Jan 2009 21:19:43 -0000 On Saturday 10 January 2009 18:40:10 Hans Petter Selasky wrote: > > It is chipset independent. It appears at the moment data is bounced, because > you have too much memory in the computer :-) Currently the USB drivers only > supports 32-bits of DMA addressing. > > --HPS > Well I guess its not the worst kind of problem to have ;-)