Date: Mon, 4 Feb 2013 16:31:43 -0500 From: Charles Sprickman <spork@bway.net> To: Ian Lepore <ian@FreeBSD.org> Cc: freebsd-stable@FreeBSD.org, Karl Denninger <karl@denninger.net> Subject: Re: So I whip out a FTDI-based multiport Serial USB Adapter.... Message-ID: <66CBAB45-621B-47F8-AC67-64F816AFE837@bway.net> In-Reply-To: <1360012382.93359.489.camel@revolution.hippie.lan> References: <511004AA.3060201@denninger.net> <1360008362.93359.485.camel@revolution.hippie.lan> <511020DB.3050302@denninger.net> <1360012382.93359.489.camel@revolution.hippie.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 4, 2013, at 4:13 PM, Ian Lepore wrote: > On Mon, 2013-02-04 at 14:58 -0600, Karl Denninger wrote: >> On 2/4/2013 2:06 PM, Ian Lepore wrote: >>> On Mon, 2013-02-04 at 12:57 -0600, Karl Denninger wrote: >>>> ... and plug it into FreeBSD 9.1-Stable with the rev ID FreeBSD >>>> 9.1-STABLE #16 r244942 >>>>=20 >>>> and it returns.... >>>>=20 >>>> ugen4.4: <vendor 0x0409> at usbus4 >>>> uhub6: <vendor 0x0409 product 0x0050, class 9/0, rev 2.00/1.00, = addr 4> >>>> on usbus4 >>>> uhub_attach: port 1 power on failed, USB_ERR_STALLED >>>> uhub_attach: port 2 power on failed, USB_ERR_STALLED >>>> uhub_attach: port 3 power on failed, USB_ERR_STALLED >>>> uhub_attach: port 4 power on failed, USB_ERR_STALLED >>>> uhub_attach: port 5 power on failed, USB_ERR_STALLED >>>> uhub_attach: port 6 power on failed, USB_ERR_STALLED >>>> uhub_attach: port 7 power on failed, USB_ERR_STALLED >>>> uhub6: 7 ports with 7 removable, self powered >>>>=20 >>>> Yuck. >>>>=20 >>>> The last time it was working was on a FreeBSD 7 box (yeah, I know, >>>> rather old) but I never had problems there. And it appears that = all of >>>> the device declarations that I used to have to put in the kernel as >>>> non-standard stuff are now in GENERIC, so I would expect it to = work. >>>>=20 >>>> Ideas as to what may have gotten hosed up here? >>>>=20 >>> Those messages all seem to be related to a hub. Vendor ID 0x0409 is = NEC. >>>=20 >>> FTDI's vendor ID is 0x0403, and FTDI stuff works fine in FreeBSD 9 = and >>> 10; I use it all the time. Sometimes aftermarket vendors who use = FTDI's >>> parts program different vendor/product info and IDs have to be added = to >>> code to recognize them, that's the only trouble one usually = encounters. >>>=20 >>> -- Ian >> Well, that sorta kinda worked.=20 >>=20 >> Except that it still is identifying it as a hub too, and the two = collide >> and crash the stack. >>=20 >> But I can't find anything that is looking at the PID (0x0050) or the >> definition (HUB_0050) anywhere in the code.=20 >>=20 >> I'll go pull the NEC defs and set up something else instead of simply >> adding it to the FTDI probe list. >>=20 >=20 > It seems to me you have a problem with a hub (perhaps the root hub or = a > motherboard hub if you don't have an external one) and this has = nothing > to do with the ftdi device at all. I assume we're talking about a multi-port usb to serial adapter, = correct? If so, they generally do have a hub included in the device. Example: ugen1.3: <vendor 0x0409> at usbus1 uhub4: <vendor 0x0409 product 0x0050, class 9/0, rev 2.00/1.00, addr 3> = on usbus1 uhub4: 7 ports with 7 removable, self powered Then the individual ports look like this: ugen1.4: <FTDI> at usbus1 uftdi0: <FT232R USB UART> on usbus1 ugen1.5: <FTDI> at usbus1 uftdi1: <FT232R USB UART> on usbus1 (etc.) We use these for serial console ports, they're (relatively) cheap and = have generally been well supported. The above info is from an 8.3 box. Just wanted to clarify that there is likely a hub in the serial box Karl = is working with=85 Charles > Or the usb serial device is damaged > somehow so that the vendor and product ID are reading as garbage and > being mistaken for a hub. >=20 > Have you tried the ftdi adapter on another port/hub/computer? Have = you > tried plugging something else into the port you're trying to use for = the > ftdi adapter, like a thumb drive or something? >=20 > -- Ian >=20 >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66CBAB45-621B-47F8-AC67-64F816AFE837>