2008-07-07 03:57:00     Problem with cofiguring jtag

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-07-07 03:57:00     Problem with cofiguring jtag

Juhi Sinha (INDIA)

Message: 58398   

 

We have installed libftdi-0.13-1.src.rpm.But the jtag is not getting configured as required.

 

 

 

[root@machine-33 jtag]# ./configure

checking code revision... svn: This client is too old to work with working copy '.'; please get a newer Subversion client

from ChangeLog: 1120

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking for style of include used by make... GNU

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking dependency style of gcc... gcc3

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking whether NLS is requested... yes

checking for msgfmt... /usr/bin/msgfmt

checking for gmsgfmt... /usr/bin/msgfmt

checking for xgettext... /usr/bin/xgettext

checking for msgmerge... /usr/bin/msgmerge

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking for ld used by GCC... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for shared library run path origin... done

checking whether NLS is requested... yes

checking for GNU gettext in libc... yes

checking whether to use NLS... yes

checking where the gettext function comes from... libc

checking for gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ISO C89... (cached) none needed

checking dependency style of gcc... (cached) gcc3

checking for ranlib... ranlib

checking for bison... bison -y

checking for library containing ioperm... none required

checking for getline... yes

checking for getdelim... yes

checking for swprintf... yes

checking for clock_gettime... no

checking for clock_gettime in -lrt... yes

checking linux/ppdev.h usability... yes

checking linux/ppdev.h presence... yes

checking for linux/ppdev.h... yes

checking dev/ppbus/ppi.h usability... no

checking dev/ppbus/ppi.h presence... no

checking for dev/ppbus/ppi.h... no

checking stropts.h usability... yes

checking stropts.h presence... yes

checking for stropts.h... yes

checking wchar.h usability... yes

checking wchar.h presence... yes

checking for wchar.h... yes

checking for a readline compatible library... -lreadline -ltermcap

checking readline.h usability... no

checking readline.h presence... no

checking for readline.h... no

checking readline/readline.h usability... yes

checking readline/readline.h presence... yes

checking for readline/readline.h... yes

checking whether readline supports history... yes

checking history.h usability... no

checking history.h presence... no

checking for history.h... no

checking readline/history.h usability... yes

checking readline/history.h presence... yes

checking for readline/history.h... yes

checking whether readline supports completion... yes

checking for libusb-config... /usr/bin/libusb-config

checking for usb_find_devices... yes

checking for libftdi-config... no

checking for ftdi_usb_open... no

configure: WARNING: *** libftdi not detected. No support for FTDI-based USB JTAG cables via libftdi.

checking for FT_Open in -lftd2xx... no

configure: WARNING: *** libftd2xx not found. No support for FTDI-based USB JTAG cables via libftd2xx.

checking for flex... flex

checking lex output file root... lex.yy

checking lex library... -lfl

checking whether yytext is a pointer... yes

checking for gawk... (cached) gawk

checking for a sed that does not truncate output... /bin/sed

checking for flex >= 2.5.33, required for SVF and BSDL lexer... no - flex 2.5.4

checking for fmax in -lm... yes

configure: creating ./config.status

config.status: creating Makefile

config.status: creating doc/Makefile

config.status: creating data/Makefile

config.status: creating include/Makefile

config.status: creating src/Makefile

config.status: creating src/lib/Makefile

config.status: creating src/tap/Makefile

config.status: creating src/part/Makefile

config.status: creating src/bus/Makefile

config.status: creating src/flash/Makefile

config.status: creating src/cmd/Makefile

config.status: creating src/svf/Makefile

config.status: creating src/bsdl/Makefile

config.status: creating src/jim/Makefile

config.status: creating po/Makefile.in

config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir setting

config.status: creating config.h

config.status: config.h is unchanged

config.status: executing depfiles commands

config.status: executing default-1 commands

config.status: creating po/POTFILES

config.status: creating po/Makefile

configure:

 

jtag is now configured for

 

  Detected libusb      : yes

  Detected libftdi     : no

  Detected libftd2xx   : no

  Build SVF player     : no

  Build BSDL subsystem : no

  Bus drivers          : au1500 avr32 bcm1250 bf526_ezkit bf527_ezkit bf52x bf533_stamp bf533_ezkit bf537_stamp bf537_ezkit bf538f_ezkit bf53x bf548_ezkit bf561_ezkit ejtag fjmem ixp425 jopcyc h7202 lh7a400 mpc5200 mpc824x ppc405ep ppc440gx_ebc8 prototype pxa2x0 pxa27x s3c4510 sa1110 sh7727 sh7750r sh7751r sharc_21065L slsup3 tx4925 zefant_xs3

  Cable drivers        : arcom byteblaster dlc5 ea253 ei012 igloo jlink keithkoep lattice mpcbdm triton wiggler xpc

  Lowlevel drivers     : direct ppdev

 

Why is libftdi is not getting detected?

QuoteReplyEditDelete

 

 

2008-07-07 04:36:34     Re: Problem with cofiguring jtag

Yi Li (CHINA)

Message: 58406   

 

please check you config.log to find out details.

QuoteReplyEditDelete

 

 

2008-07-07 05:43:41     Re: Problem with cofiguring jtag

Juhi Sinha (INDIA)

Message: 58410   

 

Most of the errors are in conftest.c file which is not present in our jtag folder. We obseved the following errors in  config.log file.

 

-------------------------------------------------------------------------------------------------------------------------------------------------------

 

| #include <minix/config.h>

configure:4387: result: no

configure:4391: checking minix/config.h presence

configure:4406: gcc -E  conftest.c

conftest.c:21:26: error: minix/config.h: No such file or directory

configure:4413: $? = 1

configure: failed program was:

| /* confdefs.h.  */

| #define PACKAGE_NAME "UrJTAG"

| #define PACKAGE_TARNAME "urjtag"

| #define PACKAGE_VERSION "0.8"

| #define PACKAGE_STRING "UrJTAG 0.8"

| #define PACKAGE_BUGREPORT "http://urjtag.org"

| #define SVN_REVISION "1120"

| #define PACKAGE "urjtag"

| #define VERSION "0.8"

| #define STDC_HEADERS 1

| #define HAVE_SYS_TYPES_H 1

| #define HAVE_SYS_STAT_H 1

| #define HAVE_STDLIB_H 1

| #define HAVE_STRING_H 1

| #define HAVE_MEMORY_H 1

| #define HAVE_STRINGS_H 1

| #define HAVE_INTTYPES_H 1

| #define HAVE_STDINT_H 1

| #define HAVE_UNISTD_H 1

| /* end confdefs.h.  */

| #include <minix/config.h>

configure:4427: result: no

configure:4460: checking for minix/config.h

configure:4467: result: no

.

.

.In function `main':

/root/Desktop/Install/gnICE/svn/jtag/conftest.c:67: undefined reference to `clock_gettime'

collect2: ld returned 1 exit status

configure:7788: $? = 1

configure: failed program was:

.

.

configure:8057: checking dev/ppbus/ppi.h usability

configure:8074: gcc -c -g -O2  conftest.c >&5

conftest.c:68:27: error: dev/ppbus/ppi.h: No such file or directory

configure:8081: $? = 1

configure: failed program was:

.

.

.

.#include <dev/ppbus/ppi.h>

configure:8095: result: no

configure:8099: checking dev/ppbus/ppi.h presence

configure:8114: gcc -E  conftest.c

conftest.c:35:27: error: dev/ppbus/ppi.h: No such file or directory

configure:8121: $? = 1

configure: failed program was:

.

.

configure:8493: checking for a readline compatible library

configure:8536: gcc -o conftest -g -O2   conftest.c -lrt  -lreadline >&5

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `PC'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `tgetflag'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `tgetent'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `UP'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `tputs'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `tgoto'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `tgetnum'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `BC'

/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../libreadline.so: undefined reference to `tgetstr'

collect2: ld returned 1 exit status

configure:8543: $? = 1

configure: failed program was:.

.

.

configure:8536: gcc -o conftest -g -O2   conftest.c -lrt  -lreadline -ltermcap >&5

configure:8543: $? = 0

configure:8576: result: -lreadline -ltermcap

configure:8602: checking readline.h usability

configure:8619: gcc -c -g -O2  conftest.c >&5

conftest.c:71:22: error: readline.h: No such file or directory

configure:8626: $? = 1

configure: failed program was:

.

.

configure:8640: result: no

configure:8644: checking readline.h presence

configure:8659: gcc -E  conftest.c

conftest.c:38:22: error: readline.h: No such file or directory

configure:8666: $? = 1

configure: failed program was:

.

.

configure:8822: checking history.h usability

configure:8839: gcc -c -g -O2  conftest.c >&5

conftest.c:73:21: error: history.h: No such file or directory

configure:8846: $? = 1

configure: failed program was:

.

.

configure:8860: result: no

configure:8864: checking history.h presence

configure:8879: gcc -E  conftest.c

conftest.c:40:21: error: history.h: No such file or directory

configure:8886: $? = 1

configure: failed program was:

.

.

configure:9376: checking for libftdi-config

configure:9409: result: no

configure:9444: checking for ftdi_usb_open

configure:9500: gcc -o conftest -g -O2      conftest.c  -lrt  -lreadline -ltermcap -lusb   >&5

/tmp/ccommuK8.o: In function `main':

/root/Desktop/Install/gnICE/svn/jtag/conftest.c:77: undefined reference to `ftdi_usb_open'

collect2: ld returned 1 exit status

configure:9507: $? = 1

configure: failed program was:

.

.

.

configure:9527: result: no

configure:9540: WARNING: *** libftdi not detected. No support for FTDI-based USB JTAG cables via libftdi.

configure:9590: checking for FT_Open in -lftd2xx

configure:9625: gcc -o conftest -g -O2     conftest.c -lftd2xx  -lrt  -lreadline -ltermcap -lusb   >&5

/usr/bin/ld: cannot find -lftd2xx

collect2: ld returned 1 exit status

configure:9632: $? = 1

configure: failed program was:

.

.

configure:9653: result: no

configure:9662: WARNING: *** libftd2xx not found. No support for FTDI-based USB JTAG cables via libftd2xx.

.

.

conftest.l: In function 'yylex':

conftest.l:6: warning: comparison between pointer and integer

conftest.l:6: warning: assignment makes pointer from integer without a cast

/tmp/ccsORHzY.o: In function `input':

/root/Desktop/Install/gnICE/svn/jtag/lex.yy.c:1096: undefined reference to `yywrap'

/tmp/ccsORHzY.o: In function `yylex':

/root/Desktop/Install/gnICE/svn/jtag/lex.yy.c:752: undefined reference to `yywrap'

/tmp/ccsORHzY.o: In function `main':

/root/Desktop/Install/gnICE/svn/jtag/conftest.l:16: undefined reference to `yywrap'

collect2: ld returned 1 exit status

configure:9856: $? = 1

configure: failed program was:

 

 

 

 

config.log

QuoteReplyEditDelete

 

 

2008-07-07 09:50:45     Re: Problem with cofiguring jtag

Robin Getz (UNITED STATES)

Message: 58415   

 

Juhi:

 

Did you build/install the  ftdi package? just installing the src rpm doesn't help. (you need to build the src, and then install the build binaries/header files).

 

-Robin

QuoteReplyEditDelete

 

 

2008-07-07 10:55:41     Re: Problem with cofiguring jtag

Juhi Sinha (INDIA)

Message: 58450   

 

We configured and installed the 'libftdi-0.13.tar.gz' package.We even configured and installed jtag too , but bin folder was not formed in the jtag folder as mentioned in the gdbproxy blackfin site . Moreover when we tried to configure gdbproxy we got the following message :

 

checking for LIBFTDI... no

 

Why is it not detecting libftdi even when its installed.

 

 

 

QuoteReplyEditDelete

 

 

2008-07-07 14:02:15     Re: Problem with cofiguring jtag

Robin Getz (UNITED STATES)

Message: 58454   

 

Juhi:

 

Try something like  (you will need to modify things a little for your exact paths).

 

Build libftdi:

~/libftdi-0.11> ./configure

~/libftdi-0.11> make

~/libftdi-0.11> sudo make install

 

 

Build JTAG Tools:

~/toolchain/trunk/jtag> ./configure

~/toolchain/trunk/jtag> make

~/toolchain/trunk/jtag> sudo make install

 

 

Build GDB Proxy:

/toolchain/toolchain/trunk/gdbproxy>./configure --with-jtag-dir=~/toolchain/toolchain/trunk/jtag/

/toolchain/toolchain/trunk/gdbproxy> make

/toolchain/toolchain/trunk/gdbproxy> sudo make install

QuoteReplyEditDelete

 

 

2008-07-08 01:59:39     Re: Problem with cofiguring jtag

Juhi Sinha (INDIA)

Message: 58465   

 

What do you mean by

 

/toolchain/toolchain/trunk/gdbproxy>./configure --with-jtag-dir=~/toolchain/toolchain/trunk/jtag/

 

We did not find any folders 'toolchain' , 'trunk'  as said in the above post!

 

We just entered the jtag and gdbproxy folders and we tried with the following commands

 

[root@machine-33 jtag]#./configure

 

[root@machine-33 jtag]#make

 

[root@machine-33 jtag]#sudo make install

 

 

 

jtag got configured and installed without any errors but 'bin' folder is not formed as mentioned in the site below:

 

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:debug:gdbproxy

 

 

 

But when we tried the following comamnds   with gdbproxy:

 

[root@machine-33 gdbproxy]#./configure

 

.

 

.

 

checking for LIBFTDI... no

 

.

 

.

 

[root@machine-33 gdbproxy]#make

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

.

 

.

 

../jtag/src/tap/libtap.a(libftdi.o): In function `usbconn_ftdi_close':

usbconn/libftdi.c:489: undefined reference to `ftdi_disable_bitbang'

usbconn/libftdi.c:490: undefined reference to `ftdi_usb_close'

usbconn/libftdi.c:491: undefined reference to `ftdi_deinit'

../jtag/src/tap/libtap.a(libftdi.o): In function `usbconn_ftdi_common_open':

usbconn/libftdi.c:296: undefined reference to `ftdi_usb_open_desc'

usbconn/libftdi.c:298: undefined reference to `ftdi_get_error_string'

usbconn/libftdi.c:299: undefined reference to `ftdi_deinit'

../jtag/src/tap/libtap.a(libftdi.o): In function `seq_purge':

usbconn/libftdi.c:321: undefined reference to `ftdi_usb_purge_buffers'

usbconn/libftdi.c:323: undefined reference to `ftdi_read_data'

usbconn/libftdi.c:324: undefined reference to `ftdi_get_error_string'

../jtag/src/tap/libtap.a(libftdi.o): In function `seq_reset':

usbconn/libftdi.c:357: undefined reference to `ftdi_usb_reset'

usbconn/libftdi.c:358: undefined reference to `ftdi_get_error_string'

../jtag/src/tap/libtap.a(libftdi.o): In function `usbconn_ftdi_flush':

usbconn/libftdi.c:80: undefined reference to `ftdi_write_data'

usbconn/libftdi.c:109: undefined reference to `ftdi_read_data'

usbconn/libftdi.c:111: undefined reference to `ftdi_get_error_string'

usbconn/libftdi.c:81: undefined reference to `ftdi_get_error_string'

../jtag/src/tap/libtap.a(libftdi.o): In function `usbconn_ftdi_read':

usbconn/libftdi.c:162: undefined reference to `ftdi_read_data'

usbconn/libftdi.c:163: undefined reference to `ftdi_get_error_string'

../jtag/src/tap/libtap.a(libftdi.o): In function `usbconn_ftdi_mpsse_open':

usbconn/libftdi.c:438: undefined reference to `ftdi_set_latency_timer'

usbconn/libftdi.c:441: undefined reference to `ftdi_disable_bitbang'

usbconn/libftdi.c:444: undefined reference to `ftdi_set_bitmode'

usbconn/libftdi.c:447: undefined reference to `ftdi_usb_reset'

usbconn/libftdi.c:465: undefined reference to `ftdi_usb_reset'

usbconn/libftdi.c:466: undefined reference to `ftdi_get_error_string'

usbconn/libftdi.c:471: undefined reference to `ftdi_usb_close'

usbconn/libftdi.c:472: undefined reference to `ftdi_deinit'

usbconn/libftdi.c:448: undefined reference to `ftdi_get_error_string'

../jtag/src/tap/libtap.a(libftdi.o): In function `usbconn_ftdi_open':

usbconn/libftdi.c:379: undefined reference to `ftdi_disable_bitbang'

usbconn/libftdi.c:382: undefined reference to `ftdi_set_latency_timer'

usbconn/libftdi.c:394: undefined reference to `ftdi_set_baudrate'

usbconn/libftdi.c:395: undefined reference to `ftdi_get_error_string'

usbconn/libftdi.c:400: undefined reference to `ftdi_usb_close'

usbconn/libftdi.c:401: undefined reference to `ftdi_deinit'

../jtag/src/tap/libtap.a(libftdi.o): In function `usbconn_ftdi_connect':

usbconn/libftdi.c:260: undefined reference to `ftdi_init'

collect2: ld returned 1 exit status

make[2]: *** [gdbproxy] Error 1

make[2]: Leaving directory `/root/Desktop/Install/gnICE/svn/gdbproxy'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/root/Desktop/Install/gnICE/svn/gdbproxy'

make: *** [all] Error 2

 

----------------------------------------------------------------------------------------------------------------------------------------------------

 

Please help us with this!

 

 

QuoteReplyEditDelete

 

 

2008-07-08 08:00:44     Re: Problem with cofiguring jtag

Robin Getz (UNITED STATES)

Message: 58478   

 

Juhi:

 

>We did not find any folders 'toolchain' , 'trunk'  as said in the above post!

 

Like I said previously:

 

>(you will need to modify things a little for your exact paths).

 

 

 

It is a 3 step process

 

- configure/make/install libftdi

 

check to make sure it got installed properly:

 

rgetz@imhotep:~/blackfin/trunk> ls /usr/local/lib/libftdi.so* -l

lrwxrwxrwx 1 root root    17 2008-04-15 15:05 /usr/local/lib/libftdi.so -> libftdi.so.1.11.0

lrwxrwxrwx 1 root root    17 2008-04-15 15:05 /usr/local/lib/libftdi.so.1 -> libftdi.so.1.11.0

-rwxr-xr-x 1 root root 44330 2008-04-15 15:05 /usr/local/lib/libftdi.so.1.11.0

 

rgetz@imhotep:~/blackfin/trunk> ls /usr/local/include/ftdi.h -l

-rw-r--r-- 1 root root 10769 2008-04-15 15:05 /usr/local/include/ftdi.h

 

- configure/make/install JTAG Tools

 

- configure/make/install GDB Proxy

 

When building gdbproxy, you need to point it to the build for the jtag tools.

QuoteReplyEditDelete

 

 

2008-07-08 10:06:37     Re: Problem with cofiguring jtag

Juhi Sinha (INDIA)

Message: 58486   

 

We have checked to make sure that they have got installed properly.

 

[root@machine-33 ~]# ls /usr/local/lib/libftdi.so* -l

lrwxrwxrwx 1 root root    17 Jul  8 18:12 /usr/local/lib/libftdi.so -> libftdi.so.1.13.0

lrwxrwxrwx 1 root root    17 Jul  8 18:12 /usr/local/lib/libftdi.so.1 -> libftdi.so.1.13.0

-rwxr-xr-x 1 root root 44076 Jul  8 18:12 /usr/local/lib/libftdi.so.1.13.0

 

 

[root@machine-33 ~]# ls /usr/local/include/ftdi.h -l

-rw-r--r-- 1 root root 11178 Jul  8 18:12 /usr/local/include/ftdi.h

 

 

 

we configured the gdbproxy using the following command:

 

[root@machine-33 gdbproxy]# ./configure --with-jtag-dir=/root/Desktop/Install/gnICE/svn/jtag/

but 'bin' folder was not made in the gdbproxy folder.We got the executable 'gdbproxy' file in gdbproxy folder.

 

When we used the following command as mentioned in the site :

 

[root@machine-33 gdbproxy]# ./configure --prefix=/root/Desktop/Install/gnICE/svn/gdbproxy/

 

bin folder was made which contained the 'gdbproxy' executable file .

 

When we configured the gdbproxy we got the following in config.log file:

 

------------------------------------------------------------------------------

 

.

 

.

 

configure:12364: checking for LIBFTDI

configure:12371: $PKG_CONFIG --exists --print-errors "libftdi"

configure:12374: $? = 0

configure:12387: $PKG_CONFIG --exists --print-errors "libftdi"

configure:12390: $? = 0

configure:12425: result: yes

configure:12431: checking for LIBUSB

configure:12438: $PKG_CONFIG --exists --print-errors "libusb"

configure:12441: $? = 0

configure:12454: $PKG_CONFIG --exists --print-errors "libusb"

configure:12457: $? = 0

configure:12836: result: yes

 

.

 

----------------------------------------------------------------------------------------------------------------------------------

 

Then we tried make and make install but we got many exit 1 status but still it got installed and 'gdbproxy' executable file was made.

 

We also tried to start gdb proxy but we again got error related  to libftdi files:

 

[root@machine-33 bin]# ./gdbproxy bfin

./gdbproxy: error while loading shared libraries: libftdi.so.1: cannot open shared object file: No such file or directory

 

 

 

QuoteReplyEditDelete

 

 

2008-07-15 03:30:15     Re: Problem with cofiguring jtag

Mike Frysinger (UNITED STATES)

Message: 58806   

 

if you're going to install packages by hand, then you need to make sure you update your system accordingly

 

if your system is not searching /usr/local/lib for libraries, then it means your ldso configuration files are not updated properly

 

make sure your /etc/ld.so.conf lists all the correct paths

Attachments

Outcomes