On Wed, Jul 30, 2003 at 05:47:16PM -0400, Charles Lepple wrote: > Greg KH said: > > On Thu, Jul 24, 2003 at 04:19:20PM -0400, Charles Lepple wrote: > >> I was looking at using the generic usb-serial driver as a debug console, > > > > Hahaha, good luck :) > > very reassuring :-) lemme clarify, it's probably not as bad as it sounds... > > > If you really want to do this, try the USB Serial Console config option, > > that will do what you want to do (I think, you are talking kernel debug > > console, right?) > > Actually, I was thinking about using the module to debug some code on the > EZ-USB chip with printf(). Using SDCC, I redefined putchar() to write to a > string descriptor, but I would rather be able to just write to a bulk > endpoint that could be read on the Linux host. (This is where it would be > handy for usbfs to export endpoints as read/write files.)
I agree, usbfs needs to be re-engineered to do this. > With the generic usb-serial driver, I figured I could just fire up Minicom > (or cat, even) on /dev/ttyUSB0 and capture all of the printf output. > (String descriptors only give you 255 characters at a time, I think.) > > If that's not what the generic usb-serial driver lets one do, well, there > might be a documentation patch coming your way :-) Yes, that would work. Have you tried just connecting up your device and running minicom to test this out? thanks, greg k-h ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel