Securifi Community Forum
Securifi Products => Almond+ => Topic started by: matt 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.
-
Hi,
You can find the usb driver related files in the "/sys/bus/usb/devices/", printer server is not yet supported.
-
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.
$ 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.