OpenOcd Problem

Hi guys i am setting up environment for imote2 i that i found a problem

how to access password or username in svn checkout -r 516 http://svn.berlios.de/svnroot/repos/openocd/trunk openocd-svn

Or suggest me an alternate method

plz help

OpenOCD project files were moved to [Sourceforge at the end of 2011. Looks like Git rather than svn.

(The announcements sounded as if berlios.de was shutting down completely. Not sure what is still there…)](http://openocd.sourceforge.net/)

i am trying to use git in tinyos 2.x ubuntu 7.4 on vmware but it gives me error message

Reading package lists… Done

Building dependency tree

Reading state information… Done

E: Couldn’t find package git

plz help me in that what i do…

To get that version from sf git repo:

git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
git checkout 3b2a068ea997323eb37251b31be8034c57ff9def

However i would suggest you try to use to use the latest version of OpenOCD.

Cheers

Spen

i want to ask when i use git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd

it ask me to install git …i try to install it

nawaz@nawaz-desktop:~$ sudo apt-get install git

Password:

Reading package lists… Done

Building dependency tree

Reading state information… Done

E: Couldn’t find package git

how i install git on tinyos 2,x on vmware

Not an OpenOCD question really but try:

sudo apt-get install git-core

Spen

i copy openocd 06.0 from sourceforge

but tell me from where i found

arm-usb-tiny.cfg

i found only arm-usb-ocd.cfg

what i do

I would guess that the interface cfg’s have been renamed to olimex-jtag-tiny.cfg

If you want the actual file mentioned then google is your friend:

http://enl.usc.edu/pipermail/t2-imote2/ … 00110.html

Cheers

Spen

when i use while using openocd

./bootstrap

it gives error message libtool is missing

plz tell me what i do

sudo apt-get install libtool

Spen

i try to install openocd on ubuntu 12.04

but get errors

nawazbaig@ubuntu:~/openocd$ sudo make $PARALLEL

make all-recursive

make[1]: Entering directory `/home/nawazbaig/openocd’

Making all in jimtcl

make[2]: Entering directory `/home/nawazbaig/openocd/jimtcl’

make[2]: Nothing to be done for `all’.

make[2]: Leaving directory `/home/nawazbaig/openocd/jimtcl’

Making all in src

make[2]: Entering directory `/home/nawazbaig/openocd/src’

make all-recursive

make[3]: Entering directory `/home/nawazbaig/openocd/src’

Making all in jtag

make[4]: Entering directory `/home/nawazbaig/openocd/src/jtag’

make all-recursive

make[5]: Entering directory `/home/nawazbaig/openocd/src/jtag’

Making all in drivers

make[6]: Entering directory `/home/nawazbaig/openocd/src/jtag/drivers’

make[6]: Nothing to be done for `all’.

make[6]: Leaving directory `/home/nawazbaig/openocd/src/jtag/drivers’

make[6]: Entering directory `/home/nawazbaig/openocd/src/jtag’

make[6]: Nothing to be done for `all-am’.

make[6]: Leaving directory `/home/nawazbaig/openocd/src/jtag’

make[5]: Leaving directory `/home/nawazbaig/openocd/src/jtag’

make[4]: Leaving directory `/home/nawazbaig/openocd/src/jtag’

Making all in helper

make[4]: Entering directory `/home/nawazbaig/openocd/src/helper’

make all-am

make[5]: Entering directory `/home/nawazbaig/openocd/src/helper’

make[5]: Nothing to be done for `all-am’.

make[5]: Leaving directory `/home/nawazbaig/openocd/src/helper’

make[4]: Leaving directory `/home/nawazbaig/openocd/src/helper’

Making all in target

make[4]: Entering directory `/home/nawazbaig/openocd/src/target’

make all-am

make[5]: Entering directory `/home/nawazbaig/openocd/src/target’

make[5]: Nothing to be done for `all-am’.

make[5]: Leaving directory `/home/nawazbaig/openocd/src/target’

make[4]: Leaving directory `/home/nawazbaig/openocd/src/target’

Making all in transport

make[4]: Entering directory `/home/nawazbaig/openocd/src/transport’

make[4]: Nothing to be done for `all’.

make[4]: Leaving directory `/home/nawazbaig/openocd/src/transport’

Making all in flash

make[4]: Entering directory `/home/nawazbaig/openocd/src/flash’

Making all in nor

make[5]: Entering directory `/home/nawazbaig/openocd/src/flash/nor’

make[5]: Nothing to be done for `all’.

make[5]: Leaving directory `/home/nawazbaig/openocd/src/flash/nor’

Making all in nand

make[5]: Entering directory `/home/nawazbaig/openocd/src/flash/nand’

make[5]: Nothing to be done for `all’.

make[5]: Leaving directory `/home/nawazbaig/openocd/src/flash/nand’

make[5]: Entering directory `/home/nawazbaig/openocd/src/flash’

make[5]: Nothing to be done for `all-am’.

make[5]: Leaving directory `/home/nawazbaig/openocd/src/flash’

make[4]: Leaving directory `/home/nawazbaig/openocd/src/flash’

Making all in svf

make[4]: Entering directory `/home/nawazbaig/openocd/src/svf’

make[4]: Nothing to be done for `all’.

make[4]: Leaving directory `/home/nawazbaig/openocd/src/svf’

Making all in xsvf

make[4]: Entering directory `/home/nawazbaig/openocd/src/xsvf’

make[4]: Nothing to be done for `all’.

make[4]: Leaving directory `/home/nawazbaig/openocd/src/xsvf’

Making all in pld

make[4]: Entering directory `/home/nawazbaig/openocd/src/pld’

make[4]: Nothing to be done for `all’.

make[4]: Leaving directory `/home/nawazbaig/openocd/src/pld’

Making all in server

make[4]: Entering directory `/home/nawazbaig/openocd/src/server’

make[4]: Nothing to be done for `all’.

make[4]: Leaving directory `/home/nawazbaig/openocd/src/server’

Making all in rtos

make[4]: Entering directory `/home/nawazbaig/openocd/src/rtos’

make[4]: Nothing to be done for `all’.

make[4]: Leaving directory `/home/nawazbaig/openocd/src/rtos’

make[4]: Entering directory `/home/nawazbaig/openocd/src’

make[4]: Nothing to be done for `all-am’.

make[4]: Leaving directory `/home/nawazbaig/openocd/src’

make[3]: Leaving directory `/home/nawazbaig/openocd/src’

make[2]: Leaving directory `/home/nawazbaig/openocd/src’

Making all in doc

make[2]: Entering directory `/home/nawazbaig/openocd/doc’

restore=: && backupdir=“.am$$” && \

am__cwd=pwd && CDPATH=“${ZSH_VERSION+.}:” && cd . && \

rm -rf $backupdir && mkdir $backupdir && \

if (/bin/bash /home/nawazbaig/openocd/missing --run makeinfo --version) >/dev/null 2>&1; then \

for f in openocd.info openocd.info-[0-9] openocd.info-[0-9][0-9] openocd.i[0-9] openocd.i[0-9][0-9]; do \

if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \

done; \

else :; fi && \

cd “$am__cwd”; \

if /bin/bash /home/nawazbaig/openocd/missing --run makeinfo -I . \

-o openocd.info openocd.texi; \

then \

rc=0; \

CDPATH=“${ZSH_VERSION+.}:” && cd .; \

else \

rc=$?; \

CDPATH=“${ZSH_VERSION+.}:” && cd . && \

$restore $backupdir/* echo "./openocd.info" | sed 's|[^/]*$||'; \

fi; \

rm -rf $backupdir; exit $rc

openocd.texi:12: @include `version.texi’: No such file or directory.

openocd.texi:37: warning: undefined flag: VERSION.

openocd.texi:38: warning: undefined flag: UPDATED.

openocd.texi:58: warning: undefined flag: VERSION.

openocd.texi:59: warning: undefined flag: UPDATED.

makeinfo: Removing output file `openocd.info’ due to errors; use --force to preserve.

make[2]: *** [openocd.info] Error 1

make[2]: Leaving directory `/home/nawazbaig/openocd/doc’

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

make[1]: Leaving directory `/home/nawazbaig/openocd’

make: *** [all] Error 2

firstly you need to read the OpenOCD docs, in short do the following

  1. run ./bootstrap

  2. run configure

as you are using the developer git version you need to add some extra configure options, eg.

./configure --enable-maintainer-mode --enable-…

  1. make

  2. sudo make install

do not run build under sudo, only the install.

Cheers

Spen

whe i run the following command

./configure --enable-maintainer-mode --enable-ft2232_ftd2xx

i get the following error

checking for library containing FT_GetLibraryVersion… no

configure: error: You appear to be missing the FTD2xx driver library.

I think you need todo a bit more research into building OpenOCD.

That error is caused because as it suggests you do not have the ftdi libs installed.

I would suggest you use libftdi rather than the closed src ftd2xx drivers

sudo apt-get install libftdi-dev

./configure --enable-maintainer-mode --enable-ft2232_libftdi

we are currently testing a newer ftdi driver, but use the above to get started.

Spen