우분투에서 USB 통신 문의입니다
우분투와 FPGA 보드 간의 USB 통신을 하려합니다
윈도우에서는 제공된 드라이버를 이용하여 구현하였는데
리눅스용 드라이버는 없더군요
찾아보니 rules 파일을 제공해주던데
/etc/udev/rules/ 에 카피를 하고
udev 리스타트 했는데 딱히 USB가 잡혔다는 느낌이 안들며 샘플 프로그램 실행 시 보드를 못 찾습니다
root@seuny-com:/home/seuny/fpga/test/API# lsusb
Bus 002 Device 014: ID 151f:002d
Bus 002 Device 003: ID 0408:20f5 Quanta Computer, Inc.
Bus 007 Device 004: ID 0461:4d22 Primax Electronics, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@seuny-com:/home/seuny/fpga/test/API# dmesg grep | tail
[18230.585173] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[18342.000289] usb 7-1: USB disconnect, device number 5
[18342.000580] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[18342.000604] ftdi_sio 7-1:1.0: device disconnected
[18357.276100] usb 2-3: new high-speed USB device number 14 using ehci_hcd
[18357.409670] usb 2-3: New USB device found, idVendor=151f, idProduct=002d
[18357.409678] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[18357.409683] usb 2-3: Product: Opal Kelly XEM6010-LX45
[18357.409688] usb 2-3: Manufacturer: Opal Kelly
[18357.409692] usb 2-3: SerialNumber: 12230003NY
root@seuny-com:/home/seuny/fpga/test/API# lsusb -v -s2:14
Bus 002 Device 014: ID 151f:002d
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 255
bMaxPacketSize0 64
idVendor 0x151f
idProduct 0x002d
bcdDevice 3.01
iManufacturer 1 Opal Kelly
iProduct 2 Opal Kelly XEM6010-LX45
iSerial 3 12230003NY
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 255
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
root@seuny-com:/home/seuny/fpga/test/API#
현재 USB 상태입니다.
1. 지금 현재 상태가 USB가 잡힌건가요?
rules 파일입니다
# udev rules file for all Opal Kelly VID matches.
# This file allows udev to change the mode to 666 (all read/write)
# for any Opal Kelly VID.
#
# For FedoraCore 5 and similar:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="151f", MODE="0666"
# For FedoraCore 7 and similar:
SUBSYSTEM=="usb", ATTRS{idVendor}=="151f", MODE="0666"
2. 딱히 별내용 없는거 같은데 이상태에서 드라이버가 잡히는게 정상인가요?
예전에 USB 공유기는 리눅스 드라이버 받아서 잘 사용했는데
이건 어떻게 해야될지.... 드라이버 잡는거 너무 어렵네요... ㅜㅜ
댓글 달기