I just got flyswatter2 to test on beagleboard XM, but it falied, I can not find any useful info on the internet.
sudo ~/openocd-bin/openocd -f ~/openocd-bin/interface/flyswatter2.cfg -f ~/openocd-bin/board/ti_beagleboard_xm.cfg
Open On-Chip Debugger 0.6.1 (2013-04-02-14:42)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect ‘jtag’
adapter speed: 10 kHz
Warn : dm37x.dsp: huge IR length 38
trst_only separate trst_push_pull
Info : max TCK change to: 30000 kHz
Info : clock speed 10 kHz
Error: couldn’t read enough bytes from FT2232 device (0 < 81)
Error: couldn’t read from FT2232
in procedure ‘runtest’
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway…
Error: couldn’t read enough bytes from FT2232 device (0 < 2)
Error: couldn’t read from FT2232
Warn : Bypassing JTAG setup events due to errors
Here is lib info
ldd ~/openocd-bin/openocd
linux-vdso.so.1 => (0x00007fff471ff000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003f6ac00000)
libftdi.so.1 => /usr/local/lib/libftdi.so.1 (0x00007ff2a2c61000)
libusb-0.1.so.4 => /lib64/libusb-0.1.so.4 (0x0000003591800000)
libc.so.6 => /lib64/libc.so.6 (0x0000003f6a000000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f69c00000)
libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x00007ff2a2a51000)
librt.so.1 => /lib64/librt.so.1 (0x00000033ec800000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00000033ebc00000)
Any idea of why openocd can not read enough data from USB? Thanks!