--- openwince-jtag-0.5.1.orig/libbrux/flash/cfi.c
+++ openwince-jtag-0.5.1/libbrux/flash/cfi.c
@@ -80,6 +80,9 @@
if (bus_area( bus, adr, &area ) != 0)
return -8; /* bus width detection failed */
bw = area.width;
+
+ printf("buswidth: %d\n",bw);
+
if (bw != 8 && bw != 16 && bw != 32)
return -3; /* invalid bus width */
(*cfi_array)->bus_width = ba = bw / 8;
@@ -101,6 +104,7 @@
/* detect CFI capable devices - see Table 1 in [1] */
for (ma = 1; ma <= 4; ma *= 2) {
+ printf("CFI query: %08x, %8x\n",A(CFI_CMD_QUERY_OFFSET),D(CFI_CMD_QUERY));
write1( CFI_CMD_QUERY_OFFSET, CFI_CMD_QUERY );
if (read1(CFI_QUERY_ID_OFFSET) == 'Q') {
--- openwince-jtag-0.5.1.orig/libbrux/flash/detectflash.c
+++ openwince-jtag-0.5.1/libbrux/flash/detectflash.c
@@ -48,6 +48,7 @@
cfi_array_t *cfi_array = NULL;
cfi_query_structure_t *cfi;
const char *s;
+ int err;
if (!bus) {
printf( _("Error: Missing bus driver!\n") );
@@ -56,7 +57,9 @@
bus_prepare( bus );
- if (cfi_detect( bus, 0, &cfi_array )) {
+ err=cfi_detect( bus, 0, &cfi_array );
+ if (err) {
+ printf("err: %d\n",err);
cfi_array_free( cfi_array );
cfi_array = NULL;
if (jedec_detect( bus, 0, &cfi_array ) != 0) {
--- openwince-jtag-0.5.1.orig/doc/index.html
+++ openwince-jtag-0.5.1/doc/index.html
@@ -0,0 +1,99 @@
+
+
Chapter 1.
+
+
This chapter is primarily intented for JTAG Tools hackers.
+
+
+
+
JTAG declarations files are located in directory data. The files contains
+common part specific JTAG information in parseable form, e.g. list of the JTAG commands, boundary
+scan register, list of JTAG registers, etc.
+
+
Syntax of the JTAG declaration file is defined in the following subsections.
+
+
+
+
JTAG declaration file is text file which consists of lines. Empty lines are ignored. Text after
+first #
on the line to the end of line is ignored. This is useful for comments.
+All other lines are significant.
+
+
Each significant line consists of tokens separated by whitespace. Whitespace could be spaces and/or tabs.
+
+
+
+
Signal definition line consists of word signal
followed by whitespace and signal name
+(without spaces in the name). Rest of the line should contain whitespace separated list of pins
+of the part. This list is currently not used for any purpose in JTAG Tools. It is intended for future use.
+
--- openwince-jtag-0.5.1.orig/src/bus/s3c4510x.c
+++ openwince-jtag-0.5.1/src/bus/s3c4510x.c
@@ -90,6 +90,7 @@
int i;
part_t *p = PART;
+ a>>=((dbus_width /8) -1 );
for (i = 0; i < 22; i++)
part_set_signal( p, A[i], 1, (a >> i) & 1 );
}
--- openwince-jtag-0.5.1.orig/src/wiggler
+++ openwince-jtag-0.5.1/src/wiggler
@@ -0,0 +1,3 @@
+cable parallel 0x378 WIGGLER
+detect
+
--- openwince-jtag-0.5.1.orig/debian/changelog
+++ openwince-jtag-0.5.1/debian/changelog
@@ -0,0 +1,38 @@
+openwince-jtag (0.5.1-6) unstable; urgency=low
+
+ * add useless binary-indep target (Closes: #395762)
+
+ -- Peter De Schrijver (p2) Sat, 28 Oct 2006 15:55:31 +0200
+
+openwince-jtag (0.5.1-5) unstable; urgency=low
+
+ * rebuild for libreadline5 (Closes: #326315)
+
+ -- Peter De Schrijver (p2) Sun, 4 Sep 2005 19:16:23 +0300
+
+openwince-jtag (0.5.1-4) unstable; urgency=low
+
+ * move binary target to binary-arch
+ * make binary target empty and depending on binary-arch (closes #225631)
+
+ -- Peter De Schrijver (p2) Fri, 2 Jan 2004 16:24:59 +0100
+
+openwince-jtag (0.5.1-3) unstable; urgency=low
+
+ * Use DESTDIR to change install root iso --prefix (Closes: #221753)
+
+ -- Peter De Schrijver (p2) Thu, 20 Nov 2003 02:22:08 +0100
+
+openwince-jtag (0.5.1-2) unstable; urgency=low
+
+ * Fix description
+ * Improved dependency for openwince-include
+
+ -- Peter De Schrijver (p2) Wed, 5 Nov 2003 01:51:19 +0100
+
+openwince-jtag (0.5.1-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Peter De Schrijver (p2) Mon, 20 Oct 2003 00:26:13 +0200
+
--- openwince-jtag-0.5.1.orig/debian/control
+++ openwince-jtag-0.5.1/debian/control
@@ -0,0 +1,15 @@
+Source: openwince-jtag
+Section: embedded
+Priority: optional
+Maintainer: Peter De Schrijver (p2)
+Build-Depends: debhelper (>> 3.0.0), openwince-include (>= 0.3.2), openwince-include (<< 0.3.3), libreadline-dev, gcc (>= 3.2)
+Standards-Version: 3.5.8
+
+Package: openwince-jtag
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: allows programming jtag capable devices such as CPUs or FPGAs
+ The openwince-jtag package contains the jtag tool which allows
+ working with JTAG aware hardware devices and boards using a JTAG adaptor.
+ It's possible to program new firmware into flash chips or download bitstreams
+ to FPGAs with this tool.
--- openwince-jtag-0.5.1.orig/debian/rules
+++ openwince-jtag-0.5.1/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+export DH_COMPAT=3
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ ./configure --prefix=/usr --with-include=/usr/include/openwince
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+ -$(MAKE) distclean
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) DESTDIR=$(CURDIR)/debian/openwince-jtag install
+
+binary: binary-arch
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installman jtag.1 bsdl2jtag.1
+ dh_installchangelogs ChangeLog
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-indep:
+ $(info )
+ $(info When you dream, there are no rules, people can fly, anything can happen.)
+ $(info Sometimes there is a moment as you're awaking,)
+ $(info when you become aware of the real world around you.)
+ $(info But you're still dreaming.)
+ $(info You may think you can fly, but you better not try. People can fly.)
+ $(info (from "People can fly" astral projection))
+ $(info )
--- openwince-jtag-0.5.1.orig/debian/copyright
+++ openwince-jtag-0.5.1/debian/copyright
@@ -0,0 +1,13 @@
+This package was debianized by Peter De Schrijver on Mon, 20 Oct 2003 00:37:26 +0200
+
+Upstream Author : Marcel Telka
+
+Copyright :
+
+Copyright (C) 2002, 2003 ETC s.r.o.
+
+jtag is distributed under the terms of the GNU General Public License.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
--- openwince-jtag-0.5.1.orig/debian/docs
+++ openwince-jtag-0.5.1/debian/docs
@@ -0,0 +1,6 @@
+AUTHORS
+NEWS
+README
+THANKS
+TODO
+
--- openwince-jtag-0.5.1.orig/jtag.1
+++ openwince-jtag-0.5.1/jtag.1
@@ -0,0 +1,29 @@
+.\" Process this file with
+.\" groff -man -Tascii foo.1
+.\"
+.TH jtag 1 "OCTOBER 2003" Linux "User Manuals"
+.SH NAME
+jtag \- jtag manipulation tool
+.SH SYNOPSIS
+.B jtag
+.I file
+.B ...
+.SH DESCRIPTION
+JTAG Tools is a software package which enables working with JTAG-aware
+(IEEE 1149.1) hardware devices (parts) and boards through JTAG adapter.
+
+.SH OPTIONS
+none
+.SH FILES
+.I /usr/share/jtag
+.RS
+Scripts for various controllers
+.SH BUGS
+Lots
+.SH AUTHOR
+Marcel Telka
+.SH "SEE ALSO"
+.BR bsdl2jtag (1)
+
+
+
--- openwince-jtag-0.5.1.orig/bsdl2jtag.1
+++ openwince-jtag-0.5.1/bsdl2jtag.1
@@ -0,0 +1,23 @@
+.\" Process this file with
+.\" groff -man -Tascii foo.1
+.\"
+.TH jtag 1 "OCTOBER 2003" Linux "User Manuals"
+.SH NAME
+jtag \- bsdl2jtag
+.SH SYNOPSIS
+.B bsdl2jtag
+.SH DESCRIPTION
+.B bsdl2jtag converts bsdl files to jtag files which can be used by B jtag. .B bsdl2jtag reads from stdin and produces its output on stdout.
+.SH OPTIONS
+none
+.SH FILES
+none
+.SH BUGS
+Lots
+.SH AUTHOR
+Marcel Telka
+.SH "SEE ALSO"
+.BR jtag (1)
+
+
+