error al instalar Entorno Firmware CIAA - openocd

501 views
Skip to first unread message

Damian Primo

unread,
Sep 1, 2014, 9:15:21 AM9/1/14
to embeb...@googlegroups.com
Buenas...

estoy instalando el entorno de desarrollo de la ciaa en un par de maquinas en la cual corro ubuntu14.04 ... me encontre siguiendo los pasos de la página que me salta el siguiente error cuando quiero instalar  openocd-0.8.0 

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

checking whether to enable dummy minidriver... no
checking whether standard drivers can be built... yes
checking for LIBUSB1... no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead
checking for LIBUSB0... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for HIDAPI... no
configure: error: libusb-1.x is required for the MPSSE mode of FTDI based devices

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

anteriormente funcionaba sin problemas con ubuntu 12.04...queria saber si alguien tbm se encontro con esto...busque en internet pero no encuentro el posible error por ahora...

saludos


Ing. Damian Primo
Universidad Nacional de Rio Cuarto

Juan Cecconi

unread,
Sep 1, 2014, 9:24:26 AM9/1/14
to embebidos32

Hiciste los pasos previos para instalar libusb?

sudo apt-get install libusb-dev
sudo apt-get install libusb-1.0-0-dev

Saludos

--
-- Recibiste este mensaje porque estás suscripto al Grupo Google Embebidos32. Para postear en este grupo, escribe un email a embeb...@googlegroups.com. Para des-suscribirte, envía un email a embebidos32...@googlegroups.com. Para más opciones, visita el sitio del grupo en https://groups.google.com/d/forum/embebidos32?hl=es
---
Has recibido este mensaje porque estás suscrito al grupo "Embebidos32" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a embebidos32...@googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.

Damian Primo

unread,
Sep 1, 2014, 9:34:56 AM9/1/14
to embeb...@googlegroups.com
sisi..estan todos los pasos...estoy viendo que hay un bug con respecto a las versiones de libusb...sigo buscando solucionar esto...como comente no tenia este problema con una version mas vieja de ubuntu...pero vere si puedo solucionarlo..

saludos

Damian Primo

unread,
Sep 1, 2014, 10:45:38 AM9/1/14
to embeb...@googlegroups.com
el paso

cd openocd-0.8.0
./configure --enable-maintainer-mode --enable-ftdi 

me tiraba el error mencionado...

puse

cd openocd-0.8.0
./configure
y funciono correcto para luego ejecutar el make...

queria saber que puede afectar los parametros ya que por ahora no tengo la ciaa para probar..


saludos 

Ariel Lutenberg

unread,
Sep 1, 2014, 10:50:03 AM9/1/14
to embebidos32@
Damian,
En breve Pablo Ridolfi va a anunciar por esta lista una buena noticia que le va a permitir a mucha gente empezar a probar este tipo de cosas sin tener la CIAA... pero no anticipo más para ponerle algo de suspenso y para que lo anuncie Pablo. :o)
Abrazo,
Ariel.

Juan Cecconi

unread,
Sep 1, 2014, 10:51:16 AM9/1/14
to embebidos32
la opción --enable-ftdi es indispensable para que la compilación incluya el manejo del chip FT2232 usado en la CIAA.


El 1 de septiembre de 2014, 11:45, Damian Primo <dami...@gmail.com> escribió:

Pablo Ridolfi

unread,
Sep 1, 2014, 10:59:28 AM9/1/14
to embeb...@googlegroups.com
Reitero lo que dice Juan:
la opción --enable-ftdi es indispensable para que la compilación incluya el manejo del chip FT2232 usado en la CIAA.
¿Podés enviarnos la salida de tu consola, específicamente la parte donde da el error?

Damian Primo

unread,
Sep 1, 2014, 11:06:54 AM9/1/14
to embeb...@googlegroups.com
corro el ./configure XXXXX


y devuelve:

----------------------------------------------------------
checking for usleep... yes
checking for vasprintf... yes
checking whether to build a release... yes
checking whether to build Doxygen as HTML... yes
checking whether to build Doxygen as PDF... no
checking whether to enable verbose JTAG I/O messages... no
checking whether to enable verbose USB I/O messages... no
checking whether to enable verbose USB communication messages... no
checking whether to enable malloc free space logging... no
checking whether to enable ZY1000 minidriver... no
checking whether to enable dummy minidriver... no
checking whether standard drivers can be built... yes
checking for LIBUSB1... no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead
checking for LIBUSB0... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for HIDAPI... no
configure: error: libusb-1.x is required for the MPSSE mode of FTDI based devices
dprimo@dprimo-desktop:~/libftdi-0.20/openocd-0.8.0$ 

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


esta instalado los paquetes como dice el tutorial:

sudo apt-get install libusb-dev
sudo apt-get install libusb-1.0-0-dev
Has recibido este mensaje porque estás suscrito a un tema del grupo "Embebidos32" de Grupos de Google.
Para anular la suscripción a este tema, visita https://groups.google.com/d/topic/embebidos32/9MWNJDHHHnI/unsubscribe.
Para anular la suscripción a este grupo y a todos sus temas, envía un correo electrónico a embebidos32...@googlegroups.com.

Pablo Ridolfi

unread,
Sep 1, 2014, 11:46:50 AM9/1/14
to embeb...@googlegroups.com

Puede que te falten algunas libs de 32-bits. Corré esto e intentá compilar de nuevo:

sudo apt-get install libgtk2.0-0:i386 libxtst6:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 libglu1-mesa:i386 libncurses5:i386 libudev1:i386 libusb-1.0:i386 libusb-0.1:i386 gtk2-engines-murrine:i386 libnss3-1d:i386 libwebkitgtk-1.0-0

Saludos.

martin ribelotta

unread,
Sep 1, 2014, 1:41:39 PM9/1/14
to embeb...@googlegroups.com
Proba de usar el openocd 0.7 que viene con ubuntu 14.04, estimo que deberia ser lo mismo ya que lo especifico de la CIAA está en el archivo *.cfg de CIAA-Firmware y openocd de ubuntu viene compilado con las librerisa ftdi (usando el driver libusb1.0)


--

Sebastián Zaffarano

unread,
Sep 1, 2014, 2:00:28 PM9/1/14
to embeb...@googlegroups.com
Recién probé compilarlo en un ubuntu 14.04 y me anduvo ok.  Reproducí el error de nuevo y adjuntá el archivo config.log que va a dar más info de lo que puede estar pasando.

Saludos,

Sebastián

Damian Primo

unread,
Sep 1, 2014, 3:19:49 PM9/1/14
to embeb...@googlegroups.com
corrida de terminal:

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

amian@damian-Inspiron-3420:~/Ciaa/openocd-0.8.0$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
damian@damian-Inspiron-3420:~/Ciaa/openocd-0.8.0$ sudo apt-get install libusb-dev:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libusb-dev:i386 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
damian@damian-Inspiron-3420:~/Ciaa/openocd-0.8.0$ sudo apt-get install libusb-1.0-0-dev :i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package 
damian@damian-Inspiron-3420:~/Ciaa/openocd-0.8.0$ ./configure --enable-maintainer-mode --enable-ftdi 
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for pkg-config... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -std=gnu99 -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for an ANSI C-conforming const... yes
checking for long long int... yes
checking for library containing ioperm... none required
checking for library containing dlopen... -ldl
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for arpa/inet.h... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for ifaddrs.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for net/if.h... yes
checking whether to enable assertions... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for strndup... yes
checking for strnlen... yes
checking for gettimeofday... yes
checking for usleep... yes
checking for vasprintf... yes
checking whether to build a release... yes
checking whether to build Doxygen as HTML... yes
checking whether to build Doxygen as PDF... no
checking whether to enable verbose JTAG I/O messages... no
checking whether to enable verbose USB I/O messages... no
checking whether to enable verbose USB communication messages... no
checking whether to enable malloc free space logging... no
checking whether to enable ZY1000 minidriver... no
checking whether to enable dummy minidriver... no
checking whether standard drivers can be built... yes
checking for LIBUSB1... no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead
checking for LIBUSB0... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for HIDAPI... no
configure: error: libusb-1.x is required for the MPSSE mode of FTDI based devices
damian@damian-Inspiron-3420:~/Ciaa/openocd-0.8.0$ 



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


adjunto config.log



La version del ubuntu es 64bit... acabo de instalar todoen una pc limpia en ubuntu 14.04 de 32 bit y funciona todo ok....
config.log

Pablo Ridolfi

unread,
Sep 1, 2014, 4:46:14 PM9/1/14
to embeb...@googlegroups.com, dami...@gmail.com
Damián, si tenés Ubuntu de 64-bits tenés que instalar estas librerías que te comenté antes:
sudo apt-get install libgtk2.0-0:i386 libxtst6:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 libglu1-mesa:i386 libncurses5:i386 libudev1:i386 libusb-1.0:i386 libusb-0.1:i386 gtk2-engines-murrine:i386 libnss3-1d:i386 libwebkitgtk-1.0-0

Damian Primo

unread,
Sep 1, 2014, 10:30:06 PM9/1/14
to embeb...@googlegroups.com, dami...@gmail.com
listo pablo...problema solucionado!!!...muchas gracias por el soporte.. abrazo

Leonardo Castillo

unread,
Jun 30, 2016, 4:12:30 PM6/30/16
to Embebidos32
Buenas...

estoy instalando el entorno de desarrollo de la ciaa en un par de maquinas en la cual corro ubuntu... me encontre siguiendo los pasos de la página que me salta el siguiente error cuando quiero instalar  openocd-0.9.0 

=== configuring in jimtcl (/home/invap/ciaa-ide/openocd-0.9.0/jimtcl)
configure: running /bin/bash ./configure.gnu --disable-option-checking '--prefix=/usr/local'  '--enable-ftdi' --cache-file=/dev/null --srcdir=.
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /tmp/pabuild/tcl8.5.14/lib/tcl8.5 /opt/Xilinx/SDK/2015.2/bin/unwrapped/lib/tcl8.5 /opt/Xilinx/SDK/2015.2/bin/lib/tcl8.5 /opt/Xilinx/SDK/2015.2/bin/unwrapped/library /opt/Xilinx/SDK/2015.2/bin/library /opt/Xilinx/SDK/2015.2/bin/tcl8.5.14/library /opt/Xilinx/SDK/2015.2/tcl8.5.14/library



This probably means that Tcl wasn't installed properly.

invalid command name "clock"
    while executing
"clock millis"
    invoked from within
"set autosetup(start) [clock millis]"
    (file "/home/invap/ciaa-ide/openocd-0.9.0/jimtcl/autosetup/autosetup" line 937)
configure: error: ./configure.gnu failed for jimtcl

gracias saludos

Carlos Pantelides

unread,
Jun 30, 2016, 9:40:33 PM6/30/16
to Embebidos32
 qué raro, tcl no es una dependencia, me consta pues puedo hacer todo el proceso sin tener instalado tcl, quizás estás pidiendo alguna opción extra.

viendo el readme del openocd, dice que usa Tcl embebido y husmeando superficialmente, jimtcl es el componente involucrado.http://openocd.org/doc/html/About-Jim_002dTcl.html

lo interesante es que no parece depender de que esté instalado tcl, pues si ejecuto jimtcl funciona, lo cual suena razonable pues dice ser "embebido"

hiciste download, untar, ./configure, make sin agregados?


BTW, si nadie estaba enterado de jimtcl, me parece que podría ser extremadamente útil para testing, lo cual es un problema más para mí por que sé tcl... bue, ni que fuera tan difícil...

Leonardo Castillo

unread,
Jul 5, 2016, 10:36:36 AM7/5/16
to Embebidos32
lo solucione, 
por algún motivo en 
/openocd-0.9.0/jimtcl/autosetup/autosetup

decia set autosetup(start) [clock millis]

y para mi pc  debia ser> set autosetup(start) clock

gracias

Carlos Pantelides

unread,
Jul 5, 2016, 9:16:48 PM7/5/16
to embeb...@googlegroups.com
gracias, Leonardo, lo agregué a la faq
 
-- Carlos Pantelides @dev4sec http://seguridad-agile.blogspot.com/



From: Leonardo Castillo <castil...@gmail.com>
To: Embebidos32 <embeb...@googlegroups.com>
Sent: Tuesday, July 5, 2016 11:36 AM
Subject: [embeb32] Re: error al instalar Entorno Firmware CIAA - openocd

Patricio Bos

unread,
Nov 14, 2016, 9:00:55 AM11/14/16
to Embebidos32, dami...@gmail.com
Retomo este viejo hilo porque google me trajo acá por el mismo problema pero la solución fue otra.

Comparto lo que me funcionó para UBUNTU 16.04 64 bits (instalación nueva) por si alguien se topa con el mismo problema.

Después de instalar los paquetes de la guía online y las librerías de 32bits según recomendación del mensaje anterior de Pablo, seguía con el mismo error:

al correr la configuración de openocd con ./configure --enable-ftdi


checking for LIBUSB1... no
configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead
checking for LIBUSB0... no
checking for HIDAPI... no
checking for HIDAPI... no
checking for HIDAPI... no
configure: error: libusb-1.x is required for the MPSSE mode of FTDI based devices

Con este comando pueden ver si tienen las librerías de USB instaladas o no (yo las tenía)
dpkg -l | grep libusb

ii  libgusb2:amd64                           0.2.9-0ubuntu1                                amd64        GLib wrapper around libusb1
ii  libusb-0.1-4:amd64                      2:0.1.12-28                                   amd64        userspace USB programming library
ii  libusb-0.1-4:i386                          2:0.1.12-28                                   i386         userspace USB programming library
ii  libusb-1.0-0:amd64                      2:1.0.20-1                                    amd64        userspace USB programming library
ii  libusb-1.0-0:i386                         2:1.0.20-1                                    i386         userspace USB programming library
ii  libusb-1.0-0-dbg:amd64               2:1.0.20-1                                    amd64        userspace USB programming library development files
ii  libusb-1.0-0-dbg:i386                   2:1.0.20-1                                    i386         userspace USB programming library development files
ii  libusb-1.0-0-dev:amd64               2:1.0.20-1                                    amd64        userspace USB programming library development files
ii  libusb-1.0-0-dev:i386                   2:1.0.20-1                                    i386         userspace USB programming library development files
ii  libusb-1.0-doc                             2:1.0.20-1                                    all          documentation for userspace USB programming
ii  libusb-dev                                  2:0.1.12-28                                   amd64        userspace USB programming library development files
ii  libusbmuxd4:amd64                   1.0.10-2ubuntu0.1                          amd64        USB multiplexor daemon for iPhone and iPod Touch devices - library


Instalé estos paquetes según este hilo que encontré por ahí...

sudo apt-get install libtool pkg-config

y al correr el ./configure --enable-ftdi finalmente encontró a libusb

saludos,
Reply all
Reply to author
Forward
0 new messages