Choose style:

Author Topic: Status of USB  (Read 6742 times)

0 Members and 1 Guest are viewing this topic.

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Status of USB
« on: September 16, 2014, 03:10:39 am »
I was wondering what the status is exactly for the usb subsystem? I see that it has libusb-0.1*, and that busybox's lsusb does correctly find plugged in devices, but I do not see any of the usual USB device locations: /proc/bus/usb, /dev/bus/usb, nor even an embedded-style /dev/usbdev<bus>.<device>.  The only things I see are /dev/usb[0-9].

I notice from the forums that HDs supposedly work, but other devices like printers do not. My motivation here is trying to get libusb-1.0 running (for mochad for X10), which requires access to the usb devices in one of those locations. If it really is the latter-most, I can look at patching libusb to allow that location as well, I just imagine it would be easier in the long run to make the devices appear in a more standard location.

But maybe this is all coming with the next update (as stated for printers) and I should just continue to table all hopes of customization.

Offline santosh

  • Securifi Staff
  • *
  • Posts: 39
  • Thanks: 0
  • Registered : 05/02/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Status of USB
« Reply #1 on: September 17, 2014, 06:30:09 am »
Hi,

You can find the usb driver related files in the "/sys/bus/usb/devices/", printer server is not yet supported.

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Status of USB
« Reply #2 on: September 17, 2014, 12:05:59 pm »
Thanks. I realized that udev was never being started, so I went ahead and created an init script for it, and now /dev/bus/usb is populated, libusb works happily, and even mochad works (with my CM19a).  Here is my very simple init script, for reference for anyone in need.

Code: [Select]
$ cat /etc/init.d/udev
#!/bin/sh /etc/rc.common
START=38

start() {
    /sbin/udevd --daemon
    /sbin/udevadm trigger
    /sbin/udevadm settle
}

Don't forget to chmod +x and enable it if you use it.

 

Page created in 0.048 seconds with 17 queries.