Re: USB serial device naming

2009-12-14 Thread Hans Petter Selasky
On Sunday 13 December 2009 23:45:07 Trevor Blackwell wrote:
 I can't figure out how to map the USB devices to tty names.

I think this is not possible at the moment. And there is no TTY API to pass 
this information. Please provide a patch.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB serial device naming

2009-12-14 Thread Ed Schouten
* Hans Petter Selasky hsela...@c2i.net wrote:
 Also TTY should have a printout in dmesg, which unit is create if this
 string is specified.

Just patch your ucom driver to print that information. It doesn't belong
in the TTY layer. Can't you just extend usbconfig to also dump that
information?

-- 
 Ed Schouten e...@80386.nl
 WWW: http://80386.nl/


pgpXyZt3QQRcf.pgp
Description: PGP signature


Re: USB serial device naming

2009-12-14 Thread Hans Petter Selasky
On Monday 14 December 2009 09:53:51 Ed Schouten wrote:
 * Hans Petter Selasky hsela...@c2i.net wrote:
  Also TTY should have a printout in dmesg, which unit is create if this
  string is specified.

 Just patch your ucom driver to print that information. It doesn't belong
 in the TTY layer. Can't you just extend usbconfig to also dump that
 information?

Hi,

A printout in USB is OK for the user, but what about applications?

Probably I could extend with an USB IOCTL for the TTY device to do what I 
want, in addition to a printout.

USB_IOCTL_GET_PARENT_NAME

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Current problem reports assigned to freebsd-usb@FreeBSD.org

2009-12-14 Thread FreeBSD bugmaster
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/141327   usb[ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM
o usb/141313   usb[usb8] nvidia USB 2.0 controller - stops copying on US
o usb/141212   usb[ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER
o usb/140928   usb[u3g] [usb8] [patch] ZTE CDMA2000 1X EV-DO (MG478/AC87
o usb/140920   usb[install] USB based install fails on 8.0-RELEASE [regr
o usb/140893   usb[urtw] [usb8] WPA2 not working on rtl8187b
f usb/140883   usb[axe] [usb8] USB gigabit ethernet hangs after short pe
o kern/140849  usb[ums] [usb8] USB mouse doesn't work under FreeBSD 8.0-
a usb/140810   usb[uftdi] [usb8] 8.X copy and paste problem / tty overfl
f usb/140714   usb[hang] [usb8] system freeze when disconect my flash us
o kern/140614  usb[uplcom] [patch] adding support for Radio Shack Gigwar
o usb/140590   usb[bluetooth] [usb8] ng_ubt(4) ng_l2cap_process_cmd_rej 
o usb/140477   usb[umass] [usb8] [patch] allow boot-time attachment of d
o usb/140259   usb[libusb] [patch] [usb8] libusb-1.0 portability/compati
o usb/140236   usb[msdosfs] [usb8] Labels wiped on external Journaled US
o usb/140160   usb[usb8] [acpi] USB ports are no longer active after A
a usb/139990   usb[panic] [patch] [usb67] Kernel frequently panics after
a usb/139598   usb[umass] [usb8] CAM reports xptioctl: put device pass
o usb/139243   usb[uhci] [usb67] unplug prolific USB serial - uhci_abor
o usb/139142   usb[ehci] [usb8] [patch] ehci drivers (NVIDIA nForce4 USB
o usb/138915   usb[patch] [usb8] [usb67] add support for SheevaPlug seri
a usb/138904   usb[rum] [panic] [usb67] unpluging USB wifi card panics s
f usb/138882   usb[ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t
a usb/138879   usb[uftdi] [patch] Patch to add support for CTI USB-Mini 
o usb/138798   usb[boot] [usb8] 8.0-BETA4 can't boot from USB flash driv
o usb/138659   usb[usb8][uftdi] driver broken in RELENG_8/CURRENT
o usb/138175   usb[usb67] [boot] System cannot boot, when USB reader wit
o usb/138172   usb[u3g] [patch] [usb67] Additional dev id for u3g (Optio
o usb/138138   usb[u3g] [patch] [usb67] Novatel U760 for u3g (Verizon an
o usb/138124   usb[usbaudio] [usb8] Axed uaudio functionality in the usb
o usb/138119   usb[usb67] [usb8] MultiBay CDROM (probably on USB bus) is
o usb/137872   usb[usb67] [boot] slow booting on usb flash drive
f usb/137848   usb[panic] [usb67] Page fault when using an USB bluetooth
o usb/137806   usb[ukbd] [usb67] USB keyboard doesn't work until it's un
o usb/137763   usb[usb67][ukbd] Logitech wireless keyboard media keys no
o usb/137616   usb[usb67][usb8][usbdevs] [patch]: usbdevs update: Please
o usb/137377   usb[usb8] Support for Huawei E180
o usb/137341   usb[usb8][rum] driver if_rum doesn't work at all and thro
p usb/137226   usb[usb67][patch] quirk for Philips extern USB disk
o usb/137190   usb[usb8][patch] inhibit spurious button releases for som
o usb/137189   usb[usb8][patch] create and use sysctl nodes for HID repo
p usb/137188   usb[usb8][patch] correctly handle USB report descriptors 
o usb/137129   usb[ums] [usb8] SteelSeries Ikari USB laser mouse not att
p usb/136761   usb[usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H
o usb/135938   usb[aue] [usb67] aue driver only passes traffic in promis
f usb/135857   usb[urtw] [usb67] RTL8187 Wireless Adapter
o usb/135575   usb[usbdevs] [patch] [usb67] Add HTC Wizard phone vid/pid
o usb/135542   usb[keyboard] boot loader does not work with a usb keyboa
p usb/135372   usb[usb67][umass] Quirk report for Teclast TL-C300 usb me
o usb/135348   usb[umass] USB Drive Hangs with ZFS (JMicron USB2/eSata)
o usb/135206   usbmachine reboots when inserted USB device
o usb/135200   usbSAMSUNG i740 usb mass: Synchronize cache failed, statu
o usb/135182   usbUMASS quirk - Olympus FE20 camera
o usb/134950   usbLowering DTR for USB-modem via ubsa is not possible
o usb/134633   usbAdd support for WILLCOM03(SHARP smart phone)
o usb/134631   usb[usbdevs] [patch] WiSPY DBx support requires usb tweak
o usb/134299   usbKernel Panic plugging in MF626 USB UMTS Stick u3g
o usb/134193   usbSystem freeze on usb MP3 player insertion
o usb/134117   usb[Patch] Add 

Re: USB serial device naming

2009-12-14 Thread Trevor Blackwell



USB_IOCTL_GET_PARENT_NAME


That seems like the right approach. Is there only ever one associated  
parent driver? Are there cases where it should report both a serial  
 network interface?


--
Trevor Blackwell650 776 7870t...@tlb.org

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


7.2-stable #3 seems significantly less stable.

2009-12-14 Thread Steve Franks
I have no hard metrics, but having gone from 7.2-release to 7.2-stable
sometime in the last couple weeks has really made my usb experience
quite unpleasant.  I now have much trouble with loss of communication
to uslcom devices when closing and reopening them (*not* plugging and
unplugging them).  Simply closing and reopening the port causes the
open to freeze about 25% of the time.  I seem to have similar problems
with umass devices.  I tend to leave evertthing plugged into the same
hub and when it freezes, I unplug the cable from the hub.  That caused
a freeze  reboot (I assume there was a panic, although no output on
the screen).

Anyway, like I said, no real chance of debug with it being so
intermittent, just an FYI.  Just thought I'd issue a report in case we
just merged head into stable and most people think it's great - I'm
not finding it great at the moment.  If I do find a repeatable
sequence of events, I'll send some info.

Best!
Steve
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: USB serial device naming

2009-12-14 Thread Hans Petter Selasky
On Monday 14 December 2009 18:44:01 Trevor Blackwell wrote:
  USB_IOCTL_GET_PARENT_NAME

 That seems like the right approach. Is there only ever one associated
 parent driver? Are there cases where it should report both a serial
  network interface?

That's a good question how to best standardise this. Probably the IOCTL is 
useful for other busses too.

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


usb/141467: [uftdi] [patch] RATOC REX-USB60F (usb serial converter) is not working on -current

2009-12-14 Thread YAMAMOTO

Number: 141467
Category:   usb
Synopsis:   [uftdi] [patch] RATOC REX-USB60F (usb serial converter) is not 
working on -current
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 Dec 15 01:00:07 UTC 2009
Closed-Date:
Last-Modified:
Originator: YAMAMOTO, Shigeru
Release:FreeBSD 9.0-CURRENT
Organization:
Environment:
FreeBSD  9.0-CURRENT FreeBSD 9.0-CURRENT #0: Wed Dec  2 11:31:13 JST 
2009 r...@xxx:/usr/src/sys/amd64/compile/GENERIC  amd64

Description:
this problem is same as PR 'usb/115933'.
http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/115933

I modify a patch which is attached to that PR.

I'm currenty using RES-USB60F on my -current environment.

How-To-Repeat:

Fix:
use this patch and recompile uftdi.ko.


Patch attached with submission follows:

Index: sys/dev/usb/usbdevs
===
RCS file: /share/cvsup/FreeBSD/current/usr/src/sys/dev/usb/usbdevs,v
retrieving revision 1.428
diff -u -r1.428 usbdevs
--- sys/dev/usb/usbdevs 11 Dec 2009 02:44:15 -  1.428
+++ sys/dev/usb/usbdevs 11 Dec 2009 06:07:33 -
@@ -2135,6 +2135,7 @@
 
 /* RATOC Systems products */
 product RATOC REXUSB60 0xb000  REX-USB60
+product RATOC REXUSB60F0xb020  REX-USB60F
 
 /* Sagem products */
 product SAGEM USBSERIAL0x0027  USB-Serial Controller
Index: sys/dev/usb/serial/uftdi.c
===
RCS file: /share/cvsup/FreeBSD/current/usr/src/sys/dev/usb/serial/uftdi.c,v
retrieving revision 1.17
diff -u -r1.17 uftdi.c
--- sys/dev/usb/serial/uftdi.c  9 Dec 2009 20:28:33 -   1.17
+++ sys/dev/usb/serial/uftdi.c  10 Dec 2009 00:15:38 -
@@ -252,6 +252,7 @@
{USB_VPI(USB_VENDOR_BBELECTRONICS, USB_PRODUCT_BBELECTRONICS_USOTL4, 
UFTDI_TYPE_8U232AM)},
{USB_VPI(USB_VENDOR_MARVELL, USB_PRODUCT_MARVELL_SHEEVAPLUG, 
UFTDI_TYPE_8U232AM)},
{USB_VPI(USB_VENDOR_MELCO, USB_PRODUCT_MELCO_PCOPRS1, 
UFTDI_TYPE_8U232AM)},
+   {USB_VPI(USB_VENDOR_RATOC, USB_PRODUCT_RATOC_REXUSB60F, 
UFTDI_TYPE_8U232AM)},
 };
 
 static int


Release-Note:
Audit-Trail:
Unformatted:
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re-enumerating a device

2009-12-14 Thread Daniel O'Connor
[ Please CC me as I'm not on list ]

Hi,
I have an M-Audio MobilePre, it's a USB audio module which works with 
snd_uadio, however to get it working I need to load the firwmare (via 
DFU).

Unfortunately the only way I can get it to re-enumerate after sending 
the firmware is to unplug it enough to disconnect the data lines (but 
not power) and then reconnect.

I have tried usbconfig reset, power_off/power_on, set_config and set_alt 
but to no avail..

[inchoate 16:46] ~/projects/dfu-util-0.1.snap20090212 dfu-util -D 
~/ma004103.bin -t 256
dfu-util - (C) 2007-2008 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

Opening USB Device 0x:0x...
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
WARNING: Runtime device already in DFU state ?!?
Found Runtime: [0x0763:0x2804] devnum=0, cfg=0, intf=0, alt=0, name=RAM
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0100
bytes_per_hash=120
Starting download: [##] 
finished!
state(7) = dfuMANIFEST, status(0) = No error condition is present
state(2) = dfuIDLE, status(0) = No error condition is present
Done!

From dmesg..
ugen0.2: Unknown at usbus0
# Run dfu-util
ugen0.2: Unknown at usbus0 (disconnected)
# Cause re-enumeratae
ugen0.2: M Audio at usbus0
uaudio0: MobilePre on usbus0
uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format
uaudio0: Record: 48000 Hz, 2 ch, 16-bit S-LE PCM format
uaudio0: No midi sequencer
pcm1: USB audio on uaudio0

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
The nice thing about standards is that there
are so many of them to choose from.
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


Re: usb/141474: [boot] FreeBSD 8.0 can not install from USB CDROM drive

2009-12-14 Thread linimon
Old Synopsis: FreeBSD 8.0 can not install from USB CDROM drive
New Synopsis: [boot] FreeBSD 8.0 can not install from USB CDROM drive

Responsible-Changed-From-To: freebsd-bugs-freebsd-usb
Responsible-Changed-By: linimon
Responsible-Changed-When: Tue Dec 15 07:35:51 UTC 2009
Responsible-Changed-Why: 
Over to maintainer(s).

http://www.freebsd.org/cgi/query-pr.cgi?pr=141474
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org