On Fri, Jul 2, 2010 at 9:14 PM, Nick <[email protected]> wrote:
> checking for usb.h usablility ... no
> checking for usb.h presence ... no
> check for usb.h ... no
> configure: error: usb.h is required to build some OpenOCD driver(s)
>
> I have the kernel sources install and the headers as well.
>
> I could not find usb.h in /usr/include but I did find it in
> /usr/src/kernels/2.6.33.5.-124.fc13.i686
No you do not want to use the kernel source. But rather
you need libusb development package, typically
named libusb-devel or libusb-dev.
Ok, I installed the libusb-devel, reran the config script and now I have an
openocd executable. great!
Next question. Can I expect openocd to communicate with the arm-jtag-ew
without a target connected and get something back with this command?
openocd -f tcl/interface/arm-jtag-ew.cfg
I tried it and got the following:
[n...@laptoplinux openocd-0.4.0]$ src/openocd -f tcl/interface/arm-jtag-ew.cfg
Open On-Chip Debugger 0.4.0 (2010-07-02-10:13)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Error: usb_bulk_write failed (requested=1, result=-1)
Error: ARM-JTAG-EW command CMD_GET_VERSION failed (-1)
Error: usb_bulk_write failed (requested=1, result=-1)
Error: ARM-JTAG-EW command CMD_GET_VERSION failed (-1)
Error: usb_bulk_write failed (requested=1, result=-1)
Error: ARM-JTAG-EW command CMD_GET_VERSION failed (-1)
Info : ARM-JTAG-EW initial read failed, don't worry
Info : ARM-JTAG-EW JTAG Interface ready
Error: ARM-JTAG-EW TRST/SRST pin set failed failed (-1)
Error: Translation from jtag_speed to khz not implemented
Info : interface specific clock speed value 0
Error: ARM-JTAG-EW TRST/SRST pin set failed failed (-1)
Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!!
Error: usb_bulk_write failed (requested=5, result=-1)
Error: armjtagew_tap_execute, wrong result -1, expected 1
Error: usb_bulk_write failed (requested=7, result=-1)
Error: armjtagew_tap_execute, wrong result -1, expected 2
Command handler execution failed
Warn : jtag initialization failed; try 'jtag init' again.
Warn : gdb services need one or more targets defined
Thanks,
Nick
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development