From owner-freebsd-usb@FreeBSD.ORG Tue Feb 22 16:25:58 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 603A51065670 for ; Tue, 22 Feb 2011 16:25:58 +0000 (UTC) (envelope-from frank@barda.agala.net) Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by mx1.freebsd.org (Postfix) with ESMTP id E15B18FC0C for ; Tue, 22 Feb 2011 16:25:57 +0000 (UTC) Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de ) by mailout11.t-online.de with smtp id 1Prup0-0004TF-Qe; Tue, 22 Feb 2011 17:10:42 +0100 Received: from mailhub.barda.agala.net (rSx75iZVwhXRo-7kbR4KdiLe0wXl8kMMNFdbTpTgB8bsqoyocsc7EYtyuBT+-q3w-X@[93.223.196.149]) by fwd07.aul.t-online.de with esmtp id 1Pruou-0fFsw40; Tue, 22 Feb 2011 17:10:36 +0100 Received: from smtp.barda.agala.net (smtp.barda.agala.net [192.168.33.25]) by mailhub.barda.agala.net (Postfix) with ESMTP id B879C4F6D23 for ; Tue, 22 Feb 2011 17:10:33 +0100 (CET) Received: from babylon.barda.agala.net (babylon.barda.agala.net [192.168.77.242]) by smtp.barda.agala.net (Postfix) with ESMTP id A28654F6D22 for ; Tue, 22 Feb 2011 17:10:33 +0100 (CET) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-usb@freebsd.org Date: Tue, 22 Feb 2011 17:10:30 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.5; i386; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201102221710.32228.frank@barda.agala.net> X-ID: rSx75iZVwhXRo-7kbR4KdiLe0wXl8kMMNFdbTpTgB8bsqoyocsc7EYtyuBT+-q3w-X@t-dialin.net X-TOI-MSGID: 33047299-6980-4c68-9ddc-2001f95ebfea Subject: libftdi does not find any device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 16:25:58 -0000 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: 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 iProduct = 0x0002 iSerialNumber = 0x0003 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