<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi, Charles!<br><br>    I think you got the point. Though I still could not solve that. <br><br>    First of all, I configured USB debug level as 1, and:<br># /usr/local/ups/bin/upsdrvctl start<br>Network UPS Tools - UPS driver controller 2.6.3<br>Network UPS Tools - Generic HID driver 0.35 (2.6.3)<br>USB communication driver 0.31<br>usb_set_debug: Setting debugging level to 1 (on)<br>usb_os_init: No USB VFS found, is it mounted?<br>No matching HID UPS found<br>Driver failed to start (exit status=1)<br><div></div><div id="divNeteaseMailCard"></div><br><br># /usr/local/ups/bin/usbhid-ups -a APC_SMT_USB -DDD<br>Network UPS Tools - Generic HID driver 0.35 (2.6.3)<br>USB communication driver 0.31<br>   0.000000     debug level is '3'<br>   0.005722     upsdrv_initups...<br>usb_set_debug: Setting debugging level to 1 (on)<br>usb_os_init: No USB VFS found, is it mounted?<br>   0.006152     No appropriate HID device found<br>   0.006217     No matching HID UPS found<br><br><br>    Then we looked into the source and found that that error message came from libusb. <br>libusb check USB device path from /dev/bus/usb or /proc/bus/usb. And this is the point I believe. The system of my board does NOT provide regular USB support: the /proc/bus/usb/ path contains nothing, while /dev/bus/usb/ even does NOT exist!<br><br>    There is a path looks like USB path but actually totally different, which is /sys/bus/usb. If you are interested in that, I attached the information of that (tmp.txt in the attachment). It contains a lot of links, and they are so complicated that I do not know how to show you the whole content of them. <br><br><br>    Finally, If I set the USB path to this one, error still occured. <br><br><br># export USB_DEVFS_PATH='/sys/bus/usb/devices/'<br># /usr/local/ups/bin/upsdrvctl start >upsStart.log 2>&1<br># /usr/local/ups/bin/usbhid-ups -a APC_SMT_USB -DDD >upsDebug.log 2>&1<br><br>    The two files are also attached.<br><br>    What can I do? I think this is the configuration of my Linux kernel. I asked Google but we could not find anything about how to get /dev/bus/usb or /proc/bus/usb back. Have you ever met this problem? Do you know where to enable these two path?<br><pre><br>Bset wishes<br>--<br>Andrew Chang<br>2012-03-09<br><br><br>At 2012-03-08 21:11:15,"Charles Lepple" <clepple@gmail.com> wrote:
>On Mar 8, 2012, at 1:11 AM, Andrew Min Chang wrote:
>
>> # /usr/local/ups/bin/usbhid-ups -a APC_SMT_USB -DDD
>> Network UPS Tools - Generic HID driver 0.35 (2.6.3)
>> USB communication driver 0.31
>>    0.000000     debug level is '3'
>>    0.007846     upsdrv_initups...
>>    0.008253     No appropriate HID device found
>>    0.008335     No matching HID UPS found
>
>Are either of the /proc/bus/usb or /dev/bus/usb filesystems mounted? ('mount' will list all of them)
>
>I'm confused that you can see output from lsusb, but maybe that is consulting /sys/bus/usb.
>
>>     Another information: I tried installing NUT on my host PC (with Redhat). The configurations are the same except for using gcc instead of cross compiling. Still neither UPS is recognized. But this time it printed a lot and the program seemed endless. 
>>     Part of the message is attched. 
>
>Correct, running the driver with any -D flags will log debug output to the console, and will prevent the driver from going into the background.
>
>-- 
>Charles Lepple
>clepple@gmail
>
>
>
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>