On Thu, Jun 24, 2010 at 8:38 AM, Mike Frysinger <vap...@gentoo.org> wrote: >> weeeeell i might have misunderstood the libusb-1.0 support in urjtag. >> which is to say there isnt any. >> >> support for urjtag on top of libftdi-1.0 on top of libusb-1.0 is there, but >> urjtag itself doesnt care about the libusb layer in this configuration. >> >> since i have a new cable driver locally that is directly affected, i'm in >> the process of porting urjtag to libusb-1.0 right now. should have it >> done soonish. for the other cable drivers (like the jlink), i have no way >> of testing them so someone will have to give them a sanity spin. > > patch is attached that ports urjtag to libusb-1.x. please verify jlink works > before i commit it.
Thanks. I apply the patch to the latest svn tree and build it with the following option. ./configure --enable-maintainer-mode --with-libusb=1.0 Now J-Link is listed. jtag is now configured for Detected libusb : 1.0 Detected libftdi : yes (have async mode) Detected libftd2xx : no Detected inpout32 : no Build SVF player : yes Build BSDL subsystem : yes Bus drivers : arm9tdmi au1500 avr32 bcm1250 bf518f_ezbrd bf51x bf526_ezkit bf527_ezkit bf52x bf533_stamp bf533_ezkit bf537_stamp bf537_ezkit bf538f_ezkit bf53x bf548_ezkit bf561_ezkit bscoach ejtag ejtag_dma fjmem ixp425 ixp435 ixp465 jopcyc h7202 lh7a400 mpc5200 mpc824x mpc837x ppc405ep ppc440gx_ebc8 prototype pxa2x0 pxa27x s3c4510 sa1110 sh7727 sh7750r sh7751r sharc_21065L sharc_21369_ezkit slsup3 tx4925 zefant_xs3 Cable drivers : arcom byteblaster dlc5 ea253 ei012 ft2232 ice100 igloo jlink keithkoep lattice mpcbdm triton usbblaster wiggler xpc Lowlevel drivers : direct ftdi ppdev I am totally new to urjtag so firstly I tried to see if ft2232 works. Somehow it does not seem to work. It seems to me urjtag does not detach the kernel ftdi_sio driver. I have to manually do it myself. Still it does not seem to find the cable. Strange. Newer V7 J-Link seems to work. I do not have a supported target right now. I only have ARM7 and Cortex M3 boards. So my tests are limited. Older V3 J-Link does not work. UrJtag may take some codes from the OpenOCD project to support older J-Link models (V3/V4). mc...@ubuntu64-laptop:/sys/bus/usb/drivers/ftdi_sio$ lsusb ... Bus 003 Device 003: ID 0403:bcd9 Future Technology Devices International, Ltd Stellaris Evaluation Board ... mc...@ubuntu64-laptop:/sys/bus/usb/drivers/ftdi_sio$ ls -la total 0 drwxr-xr-x 2 root root 0 2010-06-24 20:24 . drwxr-xr-x 12 root root 0 2010-06-24 20:24 .. lrwxrwxrwx 1 root root 0 2010-06-24 20:30 3-3:1.1 -> ../../../../devices/pci0000:00/0000:00:04.0/usb3/3-3/3-3:1.1 --w------- 1 root root 4096 2010-06-24 20:30 bind lrwxrwxrwx 1 root root 0 2010-06-24 20:30 module -> ../../../../module/ftdi_sio --w------- 1 root root 4096 2010-06-24 20:30 uevent --w------- 1 root root 4096 2010-06-24 20:30 unbind mc...@ubuntu64-laptop:/sys/bus/usb/drivers/ftdi_sio$ echo -n 3-3:1.1 | sudo tee -a unbind 3-3:1.1 jtag> cable ft2232 vid=0x0403 pid=0xbcd9 Couldn't connect to suitable USB device. Error: usbconn/libftdi.c:372 usbconn_ftdi_common_open() ftdi/ftd2xx error: ftdi_usb_open_desc() failed: device not found jtag> cable jlink (a V7 J-link, ADI OEM) J-Link initial read failed, don't worry (result=0) Vref = 3.196 TCK=1 TDI=0 TDO=1 TMS=0 TRES=1 TRST=1 J-Link JTAG Interface ready jtag> detect IR length: 4 Chain length: 1 Device Id: 00111011101000000000010001110111 (0x3BA00477) Unknown manufacturer! (01000111011) jtag> cable jlink (an old v3 IAR J-Link) J-Link initial read failed, don't worry (result=0) J-Link command 0x07 failed (0) Resetting J-Link. Please retry the cable command. Error: cable/jlink.c:200 jlink_get_status() libusb error: J-Link command 0x07 (get status) failed (0) -- Xiaofan http://mcuee.blogspot.com ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ UrJTAG-development mailing list UrJTAG-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/urjtag-development