Re: OpenUSB for FreeBSD?
On Saturday 17 November 2007, Julian Elischer wrote: Hans Petter Selasky wrote: Hi, On Thursday 15 November 2007, Xiaofan Chen wrote: On 11/12/07, Henrik Brix Andersen [EMAIL PROTECTED] wrote: Is it possible for some people here to implement a backend (based on ugen?) for FreeBSD? Interesting - definitely something I will take a look at. Thank you for the pointer. Or maybe at least improve the current libusb-0.1.x implemenation for FreeBSD. Yeah, I was looking at backporting some of the features from libusb CVS HEAD to libusb-0.1 on FreeBSD a while back and improving FreeBSD compatability as well for an application, I work on - but we ended up making FreeBSD specific work-arounds in the application instead. Could you be a bit more specific? I know there are some missing calls in FreeBSD. And I have problems with libusb interrupt write with the default kernel (hangs). It is documented here. http://lists.freebsd.org/pipermail/freebsd-usb/2007-November/004128.html But I am not so sure if it is a libusb problem or the kernel USB driver problem. The problem about clear stall on the interrupt endpoint is a pure device problem. Your USB device must re-queue any lost interrupt packets after clear stall! The HPS stack seems to be better in this aspect and I got some libusb application ported from Linux/Windows to FreeBSD thanks to the help from Hans. The current stable version of libusb certainly makes a lot to wish for on FreeBSD. I haven't got time yet to look at the latest version of libusb. I have some plans to make a replacement for /dev/ugen, that can interact on USB interfaces that already have drivers on them. Currently I'm very busy with other USB stuff. like, err documentation maybe? Including that :-) --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OpenUSB for FreeBSD?
On Nov 17, 2007 4:38 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Could you be a bit more specific? I know there are some missing calls in FreeBSD. And I have problems with libusb interrupt write with the default kernel (hangs). It is documented here. http://lists.freebsd.org/pipermail/freebsd-usb/2007-November/004128.html But I am not so sure if it is a libusb problem or the kernel USB driver problem. The problem about clear stall on the interrupt endpoint is a pure device problem. Your USB device must re-queue any lost interrupt packets after clear stall! Sorry but that problem does not occur using the HPS stack but the stock FreeBSD 7 Current kernel (actually in FreeBSD 6.1 and 6.2 as well last time I tried it). Under HPS stack, it works. And I remember that Warner said that the Current kernel does not clear stall. Quote from http://lists.freebsd.org/pipermail/freebsd-usb/2007-July/003751.html Warner Losh wrote: Remind me when is this clear endpoint stall sent? In 7.x we don't send one on pipe open unless the device is quirked to require one. On RELENG_6, at least as of today, we never send one on the open. Xiaofan ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OpenUSB for FreeBSD?
On Saturday 17 November 2007, Xiaofan Chen wrote: On Nov 17, 2007 4:38 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Could you be a bit more specific? I know there are some missing calls in FreeBSD. And I have problems with libusb interrupt write with the default kernel (hangs). It is documented here. http://lists.freebsd.org/pipermail/freebsd-usb/2007-November/004128.htm l But I am not so sure if it is a libusb problem or the kernel USB driver problem. The problem about clear stall on the interrupt endpoint is a pure device problem. Your USB device must re-queue any lost interrupt packets after clear stall! Sorry but that problem does not occur using the HPS stack but the stock FreeBSD 7 Current kernel (actually in FreeBSD 6.1 and 6.2 as well last time I tried it). Under HPS stack, it works. And I remember that Warner said that the Current kernel does not clear stall. Quote from http://lists.freebsd.org/pipermail/freebsd-usb/2007-July/003751.html Warner Losh wrote: Remind me when is this clear endpoint stall sent? In 7.x we don't send one on pipe open unless the device is quirked to require one. On RELENG_6, at least as of today, we never send one on the open. Xiaofan Ok, but is that with or without that patch I sent you for Ugen ? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OpenUSB for FreeBSD?
On Nov 17, 2007 7:31 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: On Saturday 17 November 2007, Xiaofan Chen wrote: On Nov 17, 2007 4:38 PM, Hans Petter Selasky [EMAIL PROTECTED] wrote: Could you be a bit more specific? I know there are some missing calls in FreeBSD. And I have problems with libusb interrupt write with the default kernel (hangs). It is documented here. http://lists.freebsd.org/pipermail/freebsd-usb/2007-November/004128.htm l But I am not so sure if it is a libusb problem or the kernel USB driver problem. The problem about clear stall on the interrupt endpoint is a pure device problem. Your USB device must re-queue any lost interrupt packets after clear stall! Sorry but that problem does not occur using the HPS stack but the stock FreeBSD 7 Current kernel (actually in FreeBSD 6.1 and 6.2 as well last time I tried it). Under HPS stack, it works. And I remember that Warner said that the Current kernel does not clear stall. Quote from http://lists.freebsd.org/pipermail/freebsd-usb/2007-July/003751.html Warner Losh wrote: Remind me when is this clear endpoint stall sent? In 7.x we don't send one on pipe open unless the device is quirked to require one. On RELENG_6, at least as of today, we never send one on the open. Ok, but is that with or without that patch I sent you for Ugen ? I need the single line patch for ugen. I understand that the firmware may still have the bug dealing with clear endpoint stall. It is documented here: http://mcuee.blogspot.com/2007/11/pk2cmd-ported-to-linux.html Xiaofan ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OpenUSB for FreeBSD?
On 11/12/07, Henrik Brix Andersen [EMAIL PROTECTED] wrote: Is it possible for some people here to implement a backend (based on ugen?) for FreeBSD? Interesting - definitely something I will take a look at. Thank you for the pointer. Or maybe at least improve the current libusb-0.1.x implemenation for FreeBSD. Yeah, I was looking at backporting some of the features from libusb CVS HEAD to libusb-0.1 on FreeBSD a while back and improving FreeBSD compatability as well for an application, I work on - but we ended up making FreeBSD specific work-arounds in the application instead. Could you be a bit more specific? I know there are some missing calls in FreeBSD. And I have problems with libusb interrupt write with the default kernel (hangs). It is documented here. http://lists.freebsd.org/pipermail/freebsd-usb/2007-November/004128.html But I am not so sure if it is a libusb problem or the kernel USB driver problem. The HPS stack seems to be better in this aspect and I got some libusb application ported from Linux/Windows to FreeBSD thanks to the help from Hans. The current stable version of libusb certainly makes a lot to wish for on FreeBSD. Seems to be quite true. Regards, Xiaofan http://mcuee.blogspot.com ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OpenUSB for FreeBSD?
On Mon, Nov 12, 2007 at 11:02:18AM +0800, Xiaofan Chen wrote: OpenUSB's API is now rather stable and they have the front end and Linux/Solaris backend basically done. It is a fork of libusb-1.0 development branch since that branch is dormant for a while. The aim is to be thread safe and supports assync I/O and isochronous transfer where libusb-0.1 may have problems. Is it possible for some people here to implement a backend (based on ugen?) for FreeBSD? Interesting - definitely something I will take a look at. Thank you for the pointer. Or maybe at least improve the current libusb-0.1.x implemenation for FreeBSD. Yeah, I was looking at backporting some of the features from libusb CVS HEAD to libusb-0.1 on FreeBSD a while back and improving FreeBSD compatability as well for an application, I work on - but we ended up making FreeBSD specific work-arounds in the application instead. The current stable version of libusb certainly makes a lot to wish for on FreeBSD. By the way, the latest CVS version of usbutils (lsusb) supports FreeBSD and it is rather a nice tool. Oh, I haven't looked at this in a while. I'll try to come up with a port for FreeBSD. Brix -- Henrik Brix Andersen [EMAIL PROTECTED] pgpKLiMtp1SbD.pgp Description: PGP signature
OpenUSB for FreeBSD?
OpenUSB's API is now rather stable and they have the front end and Linux/Solaris backend basically done. It is a fork of libusb-1.0 development branch since that branch is dormant for a while. The aim is to be thread safe and supports assync I/O and isochronous transfer where libusb-0.1 may have problems. Is it possible for some people here to implement a backend (based on ugen?) for FreeBSD? OpeUSB webpage: http://openusb.sourceforge.net/ http://openusb.sourceforge.net/documents/guide/index.html Or maybe at least improve the current libusb-0.1.x implemenation for FreeBSD. By the way, the latest CVS version of usbutils (lsusb) supports FreeBSD and it is rather a nice tool. Xiaofan http://mcuee.blogspot.com ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to [EMAIL PROTECTED]