Animal Posted August 26, 2007 Posted August 26, 2007 (edited) есть сервер на допотопной матери .. подключен через бесперебойник... с бесперебойника вставлен RJ45 > USB шнурок в этот сервер на серваке стоит RH 8 с перекомпилинным ядром 2,4,31 хотел поставить apcupsd для этого нужно было перекомпилить ядро с поддержкой /dev/hiddev* ну там ещё какие то модули.. всё это сделал начал настраивать прогу она вечно орёт нет USB устройства.... когда делаю так lsusb Bus 001 Device 001: ID 0000:0000 Virtual Hub Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 9 Hub bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0000 Virtual idProduct 0x0000 Hub bcdDevice 0.00 iManufacturer 0 iProduct 2 USB OHCI Root Hub iSerial 1 cc847000 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x40 Self Powered MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 9 Hub bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 2 bInterval 255 Language IDs: (length=4) 0000 (null)((null)) Bus 001 Device 002: ID 051d:0002 American Power Conversion Back-UPS Pro 500 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 Interface bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x051d American Power Conversion idProduct 0x0002 Back-UPS Pro 500 bcdDevice 0.06 iManufacturer 3 American Power Conversion iProduct 1 Back-UPS RS 500 FW:30.j2.I USB FW:j2 iSerial 2 BB0245008373 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 34 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xe0 Self Powered Remote Wakeup MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Devices bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 33 bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 1247 cannot get report descriptor Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 6 bInterval 100 Language IDs: (length=4) 0409 English(US) cat /proc/bus/usb/devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 0.00 S: Product=USB OHCI Root Hub S: SerialNumber=cc847000 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=051d ProdID=0002 Rev= 0.06 S: Manufacturer=American Power Conversion S: Product=Back-UPS RS 500 FW:30.j2.I USB FW:j2 S: SerialNumber=BB0245008373 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=hid E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=100ms cat /proc/bus/usb/drivers usbdevfs hub hid вродь как всё правельно небыло файлов /dev/usb/hiddev я их создал #!/bin/sh mkdir -p /dev/usb/hid mknod /dev/hiddev0 c 180 96 mknod /dev/hiddev1 c 180 97 mknod /dev/hiddev2 c 180 98 mknod /dev/hiddev3 c 180 99 mknod /dev/hiddev4 c 180 100 mknod /dev/hiddev5 c 180 101 mknod /dev/hiddev6 c 180 102 mknod /dev/hiddev7 c 180 103 mknod /dev/hiddev8 c 180 104 mknod /dev/hiddev9 c 180 105 mknod /dev/hiddev10 c 180 106 mknod /dev/hiddev11 c 180 107 mknod /dev/hiddev12 c 180 108 mknod /dev/hiddev13 c 180 109 mknod /dev/hiddev14 c 180 110 mknod /dev/hiddev15 c 180 111 и всё равно невидет прога бесперебойника.. говорит нет устройст на /dev/hiddev* ... может кто что посоветует ? а то получается и устройство есть и сервак видит что подключено но как к нему подключится ) кстати когда делаеш insnod hid в /var/log/messager появляется Aug 24 23:36:00 lesnoe kernel: usb.c: registered new driver hid Aug 24 23:36:02 lesnoe kernel: : USB HID v1.10 Device [American Power Conversion Back-UPS RS 500 FW:30.j2.I USB FW:j2] on usb1:2.0 Aug 24 23:36:02 lesnoe kernel: hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz> Aug 24 23:36:02 lesnoe kernel: hid-core.c: USB HID support drivers но прога всё равно нефига невидит .. такое чувство что у меня hiddev неработают :(( apcupsd -b apcupsd FATAL ERROR in linux-usb.c at line 607 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>. Edited August 26, 2007 by Animal Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.