Date: Tue, 22 Feb 2011 17:10:30 +0100 From: "Frank J. Beckmann" <frank@barda.agala.net> To: freebsd-usb@freebsd.org Subject: libftdi does not find any device. Message-ID: <201102221710.32228.frank@barda.agala.net>
next in thread | raw e-mail | index | archive | help
Hello, I have an OpenOCD USB dongle. It uses a FT2232D chip. The first port implements the JTAG interface and the second port implements a standard serial interface, The uftdi driver recognizes both ports and I can use the second port as a serial interface. But libftdi does not find any device, even if uftdi is not loaded. OpenOCD relies on libftdi, so I can not use that dongle. babylon# uname -a FreeBSD babylon.barda.agala.net 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #12: Tue Feb 22 15:27:11 CET 2011 root@babylon.barda.agala.net:/usr/obj/usr/src/sys/BABYLON i386 babylon# usbconfig -d ugen1.2 dump_device_desc ugen1.2: <NGX JTAG NGX> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0403 idProduct = 0x6010 bcdDevice = 0x0500 iManufacturer = 0x0001 <NGX> iProduct = 0x0002 <NGX JTAG> iSerialNumber = 0x0003 <FTTO4E3N> bNumConfigurations = 0x0001 babylon# find_all Number of FTDI devices found: 0 babylon# openocd -f /usr/local/share/openocd/scripts/interface/openocd-usb.cfg -d3 Open On-Chip Debugger 0.4.0 (2011-02-22-12:21) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html User : 10 28 command.c:539 command_print(): debug_level: 3 Debug: 11 28 configuration.c:45 add_script_search_dir(): adding /root/.openocd Debug: 12 28 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site Debug: 13 28 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts Debug: 14 71 configuration.c:87 find_file(): found /usr/local/share/openocd/scripts/interface/openocd-usb.cfg Debug: 15 82 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_interface ft2232 Debug: 16 82 command.c:133 script_debug(): command - interface ocd_interface ft2232 Debug: 18 83 command.c:346 register_command_handler(): registering 'ocd_ft2232_device_desc'... Debug: 19 83 command.c:346 register_command_handler(): registering 'ocd_ft2232_serial'... Debug: 20 83 command.c:346 register_command_handler(): registering 'ocd_ft2232_layout'... Debug: 21 83 command.c:346 register_command_handler(): registering 'ocd_ft2232_vid_pid'... Debug: 22 83 command.c:346 register_command_handler(): registering 'ocd_ft2232_latency'... Debug: 23 83 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_vid_pid 0x0403 0x6010 Debug: 24 83 command.c:133 script_debug(): command - ft2232_vid_pid ocd_ft2232_vid_pid 0x0403 0x6010 Debug: 26 83 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_device_desc Dual RS232 Debug: 27 83 command.c:133 script_debug(): command - ft2232_device_desc ocd_ft2232_device_desc Dual RS232 Debug: 29 83 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_layout oocdlink Debug: 30 83 command.c:133 script_debug(): command - ft2232_layout ocd_ft2232_layout oocdlink Debug: 32 83 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_ft2232_latency 2 Debug: 33 83 command.c:133 script_debug(): command - ft2232_latency ocd_ft2232_latency 2 Debug: 35 83 httpd_stubs.c:28 httpd_start(): libocdserver was built without HTTPD support Debug: 36 83 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 37 83 command.c:133 script_debug(): command - init ocd_init Debug: 39 83 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 40 83 command.c:133 script_debug(): command - ocd_target ocd_target init Debug: 42 83 target.c:835 handle_target_init_command(): Initializing targets... Debug: 43 83 ft2232.c:2097 ft2232_init(): ft2232 interface using shortest path jtag state transitions Debug: 44 132 ft2232.c:2011 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'oocdlink' layout (0403:6010) Error: 45 143 ft2232.c:2030 ft2232_init_libftdi(): unable to open ftdi device: device not found Debug: 46 143 command.c:620 run_command(): Command failed with error code -100 User : 47 143 command.c:824 openocd_jim_vfprintf(): Command handler execution failed User : 50 143 command.c:824 openocd_jim_vfprintf(): User : 52 143 command.c:824 openocd_jim_vfprintf(): How can I use that dongle with OpenOCD? Thanks for you help. Frank
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102221710.32228.frank>