summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2004-07-12 23:05:33 +0000
committerStefan Knoblich <stkn@gentoo.org>2004-07-12 23:05:33 +0000
commit145fe2aad2280861d9f7061477b6c85913621557 (patch)
tree91633e854b01ce95714a7fc770bc3f11869ab841 /dev-embedded/jtag
parentRemoved obsolete ebuild/digest (Manifest recommit) (diff)
downloadgentoo-2-145fe2aad2280861d9f7061477b6c85913621557.tar.gz
gentoo-2-145fe2aad2280861d9f7061477b6c85913621557.tar.bz2
gentoo-2-145fe2aad2280861d9f7061477b6c85913621557.zip
fixes a one-too-many bug while writing a binary image to a flash rom
Diffstat (limited to 'dev-embedded/jtag')
-rw-r--r--dev-embedded/jtag/ChangeLog9
-rw-r--r--dev-embedded/jtag/files/digest-jtag-0.5.1-r11
-rw-r--r--dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff34
-rw-r--r--dev-embedded/jtag/jtag-0.5.1-r1.ebuild34
4 files changed, 77 insertions, 1 deletions
diff --git a/dev-embedded/jtag/ChangeLog b/dev-embedded/jtag/ChangeLog
index 020883c97630..5b6ed5d3e7ed 100644
--- a/dev-embedded/jtag/ChangeLog
+++ b/dev-embedded/jtag/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-embedded/jtag
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/jtag/ChangeLog,v 1.4 2004/06/24 22:07:50 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/jtag/ChangeLog,v 1.5 2004/07/12 23:05:33 stkn Exp $
+
+*jtag-0.5.1-r1 (13 Jul 2004)
+
+ 13 Jul 2004; <stkn@gentoo.org> +files/jtag-0.5.1-no-erase-overshoot.diff,
+ +jtag-0.5.1-r1.ebuild:
+ fixes a bug where jtag would erease one block too many while writing
+ a binary image to a flash rom
27 Mar 2004; Daniel Black <dragonheart@gentoo.org> jtag-0.5.1.ebuild,
metadata.xml:
diff --git a/dev-embedded/jtag/files/digest-jtag-0.5.1-r1 b/dev-embedded/jtag/files/digest-jtag-0.5.1-r1
new file mode 100644
index 000000000000..b0fd9ba06199
--- /dev/null
+++ b/dev-embedded/jtag/files/digest-jtag-0.5.1-r1
@@ -0,0 +1 @@
+MD5 3171d51fec40e9f338ea2d388544fd66 jtag-0.5.1.tar.bz2 314857
diff --git a/dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff b/dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff
new file mode 100644
index 000000000000..a79450d2bf58
--- /dev/null
+++ b/dev-embedded/jtag/files/jtag-0.5.1-no-erase-overshoot.diff
@@ -0,0 +1,34 @@
+*** jtag-0.5.1/src/flash.c.orig Wed Jun 23 14:02:44 2004
+--- jtag-0.5.1/src/flash.c Wed Jun 23 14:03:39 2004
+***************
+*** 293,306 ****
+ int bc = 0, bn = 0;
+ int block_no = find_block( cfi, adr );
+
+! if (!erased[block_no]) {
+ flash_driver->unlock_block( cfi_array, adr );
+ printf( _("\nblock %d unlocked\n"), block_no );
+ printf( _("erasing block %d: %d\n"), block_no, flash_driver->erase_block( cfi_array, adr ) );
+ erased[block_no] = 1;
+ }
+
+- bn = fread( b, 1, BSIZE, f );
+ for (bc = 0; bc < bn; bc += flash_driver->bus_width) {
+ int j;
+ printf( _("addr: 0x%08X"), adr );
+--- 293,307 ----
+ int bc = 0, bn = 0;
+ int block_no = find_block( cfi, adr );
+
+! bn = fread( b, 1, BSIZE, f );
+!
+! if (bn && !erased[block_no]) {
+ flash_driver->unlock_block( cfi_array, adr );
+ printf( _("\nblock %d unlocked\n"), block_no );
+ printf( _("erasing block %d: %d\n"), block_no, flash_driver->erase_block( cfi_array, adr ) );
+ erased[block_no] = 1;
+ }
+
+ for (bc = 0; bc < bn; bc += flash_driver->bus_width) {
+ int j;
+ printf( _("addr: 0x%08X"), adr );
diff --git a/dev-embedded/jtag/jtag-0.5.1-r1.ebuild b/dev-embedded/jtag/jtag-0.5.1-r1.ebuild
new file mode 100644
index 000000000000..b07c8f2e4396
--- /dev/null
+++ b/dev-embedded/jtag/jtag-0.5.1-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/jtag/jtag-0.5.1-r1.ebuild,v 1.1 2004/07/12 23:05:33 stkn Exp $
+
+inherit eutils
+
+DESCRIPTION="software package for working with JTAG-aware (IEEE 1149.1) hardware devices (parts) and boards through JTAG adapter"
+HOMEPAGE="http://openwince.sourceforge.net/jtag/"
+SRC_URI="mirror://sourceforge/openwince/${P}.tar.bz2"
+
+KEYWORDS="x86 sparc"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND="dev-embedded/include
+ sys-apps/gawk
+ sys-apps/grep
+ sys-apps/sed
+ sys-devel/gcc
+ sys-devel/gettext"
+RDEPEND="dev-embedded/include
+ virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-no-erase-overshoot.diff
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "failed to install"
+}