I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / MISC Areas / Mattel JuiceBox
JTAG compile problems

New MessageJTAG compile problems (modified 0 times) WestfW
Profile
I'm having trouble getting the jtag tool to even compile.
configure doesn't seem to run under cygwin (recent install)
(errors right away with "command not found"; I probably left
out something I need to install.)

MacOSX and linux (CEL 3.0 based) are both complaining about
cmd/cmd_detectflash.c: In function `cmd_detectflash_run':
cmd/cmd_detectflash.c:43: too few arguments to function `detectflash'
make: *** [cmd_detectflash.o] Error 1

Sigh.
BillW

09-27-2006 02:20:45

New MessageRE:JTAG compile problems (modified 0 times) WestfW
Profile
Ah. Apparently the jtag application is no longer in sync with the openwince include files.
The latter have detect_flash() with two arguments, while the call and implementation in the jtag
code only have one. Why there's an external .h file defining functions implemented "locally"
is an interesting question.

Looks like the argument was added in include 0.4, so I probably need 0.3.2. Anyone know
for sure? I don't see any documentation of which version of the openwince includes are
needed in the jtag source. Or is the most recent (cvs) non-stable jtag source compatible
with the new openwince defs?

09-27-2006 17:52:30

New MessageRE:JTAG compile problems (modified 0 times) WestfW
Profile
My compile problems went away with the v0.3.2 Includes, and my
configure problems went away when I re-untarred the jtag files
(I'm not sure what happened there.)

Now I've got to find that WXP utility that makes the parallel
port available - is it the same for cygwin as for other windows
programs, or does cygwin need something special?

And what's the easiest way to get the ARM cross-development
utilities installed under cygwin?

Thanks
WestfW

09-28-2006 00:58:17

New MessageRE:JTAG compile problems (modified 0 times) WestfW
Profile

And what's the easiest way to get the ARM cross-development
utilities installed under cygwin?

To answer my own question, http://gnuarm.com has compiler and utilities
pre-packaged for linux, cygwin(windows) and even MacOS (!), in both source
and binary forms.
09-30-2006 01:00:57

New MessageRE:JTAG compile problems (modified 0 times) DavidM348
Profile
I followed your lead and got JTAG to compile under CYGWIN - thanks!

Any luck getting JTAGER to compile under CYGWIN? I'm getting a message that leads me to believe that ioperm libraries can't be found. The ioperm package (binaries and source) are installed. When I ./configure, I get
.
.
.
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for ioperm... no
checking for strcpy... yes
checking for strlen... yes
.
.
.

So then make gives
.
.
.
make: Entering directory `/home/DavidM/jtager-0.3.0/src'
gcc -g -Wall -o jtager.exe main.o md5.o misc.o -lm -lreadline -ltermcap -Lco
nf -lconf -Lcmdline -lcmdline -Ljtag -ljtag -Lmtd -lmtd -Ltarget -ltarget
cmdline/libcmdline.a(cmd_exit.o): In function `exit_run':
/home/DavidM/jtager-0.3.0/src/cmdline/cmd_exit.c:39: undefined reference to
`_write_history'
jtag/libjtag.a(jtag.o): In function `jtag_reset':
/home/DavidM/jtager-0.3.0/src/jtag/jtag.c:420: undefined reference to `_iop
erm'
collect2: ld returned 1 exit status
make: *** [jtager.exe] Error 1
make: Leaving directory `/home/DavidM/jtager-0.3.0/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/home/DavidM/jtager-0.3.0/src'
make: *** [all-recursive] Error 1
.
.
.

Any ideas on what to do??

Thanks!

-David

10-28-2006 00:10:48

New MessageRE:JTAG compile problems (modified 0 times) bkgoodman
Profile
I am pretty sure you need libhistory for write_history - so be sure to include -lhistory on the link line.

ioperm is a system call - ioperm should be in libc. You can try:

objdump -T libc.so.6 | grep ioperm

to see if its really there - or to check other libraries to see if its there.

10-28-2006 06:21:11

New MessageRE:JTAG compile problems (modified 0 times) DavidM348
Profile
Thanks! I added -lhistory and -lioperm to the GCC line and got it compiled. I copied the jtager.config file to etc/jtager, and after running jtager, I get

$ jtager
*** Welcome to JTAGER-0.3.0 ......
*** Copyright (C) 2003-2004, Rongkai Zhan <zhanrk@163.com>

JTAGER is a free software, covered by the GNU General Public License, and you
are welcome to change it and/or distributecopies of it under certain conditions.

There is absolutely no warranty for JTAGER.

You can type 'help' command to get a list of all commands. You aslo can
type 'help <command>' command to get a verbose information about the command.
All commands are case-insensitive, and has GNU-style long command options.

Using parallel data port and status port -- 0x378 and 0x379
Jtag interface has been reset successfully!
Error: the owner of /etc/jtager/jtager.conf is not root!

Sorry to be such a linux noob, but any idea how to correct the above???

Thanks!

-David

10-28-2006 15:25:00

New MessageRE:JTAG compile problems (modified 0 times) bkgoodman
Profile
chown root /etc/jtager/jtager.conf
10-28-2006 19:07:40

New MessageRE:JTAG compile problems (modified 1 times) DavidM348
Profile
Thanks for the reply.

Apparently there is a "problem" under CYGWIN trying to log in as 'root' or trying to chown a file to root. Even creating a WinXP user account 'root' does not solve the problem. To get around this, I editted out the section in src/conf/config.c that did the file attribute check and it finally executed!!


$ jtager
*** Welcome to JTAGER-0.3.0 ......
*** Copyright (C) 2003-2004, Rongkai Zhan <zhanrk@163.com>

JTAGER is a free software, covered by the GNU General Public License, and you
are welcome to change it and/or distributecopies of it under certain conditions.
There is absolutely no warranty for JTAGER.

You can type 'help' command to get a list of all commands. You aslo can
type 'help <command>' command to get a verbose information about the command.
All commands are case-insensitive, and has GNU-style long command options.

Using parallel data port and status port -- 0x378 and 0x379
Jtag interface has been reset successfully!
target core type: ARM920T
JTAGER:> quit

Now on to the hardware part - got to get a jtag wiggler cable and serial level shifter (ugh!)

Thanks again for all of the help!

-David

10-28-2006 22:17:17

New MessageRE:JTAG compile problems (modified 0 times) jbfan
Profile

target core type: ARM920T
Don't forget to go to jtager.conf and change that to arm7tdmi for the JuiceBox.

-J

10-29-2006 14:57:40

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3