Re: USB generic driver problems

From: Chris (admin2_at_forkthepenguin.com)
Date: 05/19/04

  • Next message: Buck_at_buckjones.net: "RE: network traffic"
    Date: Wed, 19 May 2004 13:26:31 -0700 (PDT)
    To: Trevor Blackwell <tlb@anybots.com>
    
    

    On Wed, 19 May 2004, Trevor Blackwell wrote:

    >
    > I'm also trying to make the Labjack work on FreeBSD 4.9. I haven't
    > solved the problem, but I at least know why you're getting a "device not
    > configured" error when writing to the USB endpoint. The ugen driver
    > finds that:
    >
    > (sce->edesc->bmAttributes & UE_XFERTYPE) == UE_INTERRUPT
    >
    > but only allows a generic write for devices with XFERTYPE of UE_BULK. So
    > it gives a ENXIO (device not configured) when you call write.

    Makes since. So what if we override that code? ;-) I haven't looked at
    this for a month or so, but I started writing my own device driver using
    the existing ones as a template. I suceeded in detecting the device but
    crashed the system with a type 12 when trying to connect. I'm just not
    that experienced with C programming, but what better project to get a
    crash course in C?

    > I've also fooled around with using the uhid driver, but I haven't been
    > able to complete a write with it either. If you figure it out, drop me a
    > note!

    I'll followup with you privately and we can post a summary to the list
    when we figure it out.

    Chris
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Buck_at_buckjones.net: "RE: network traffic"

    Relevant Pages

    • Re: USB generic driver problems
      ... I'm also trying to make the Labjack work on FreeBSD 4.9. ... The ugen driver ... I've also fooled around with using the uhid driver, ...
      (freebsd-questions)
    • Re: processes not getting fair share of available disk I/O
      ... version of FreeBSD since those line numbers don't correspond to ... reading data from Ethernet and writing to disk. ... disks) and a loop with 3 copies of dd writing from /dev/zero to disks, ... pdpgs 14: ata ...
      (freebsd-questions)
    • Collecting data in userland from kernel
      ... I am new to FreeBSD but I am familiar with Unix like systems ... A ring buffer in kernel: ... Writing to syslogger: not very attractive to me because ... I dont think this is feasible because ...
      (freebsd-hackers)
    • Re: number of /dev/usb nodes
      ... Hash: SHA1 ... I'm writing ... as a driver you get informed for each new device. ... I never said I was writing a FreeBSD driver... ...
      (freebsd-hackers)
    • SATA-performance: Linux vs. FreeBSD
      ... I did some performance tests that made me really wonder: ... why writing to a SATA-I device with AHCI consumes ... so much CPU time using Linux, while it takes almost no CPU time on FreeBSD ...
      (Linux-Kernel)