--- avrprog-0.2.2.orig/avrprog.1 +++ avrprog-0.2.2/avrprog.1 @@ -52,7 +52,7 @@ .TP .B -L lock-mode set device lock bits mode. See AVR manual for details. -WARNING: in some devices, even erasing chip (-e) didn't clear the +WARNING: in some devices, even erasing chip (\-e) didn't clear the lock bits... so we lost the chips... use this option at your own risk. .br If lock-mode is 0, sets LB2=0; LB1=0. --- avrprog-0.2.2.orig/Makefile.in +++ avrprog-0.2.2/Makefile.in @@ -34,7 +34,7 @@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ - ChangeLog INSTALL TODO depcomp install-sh missing + ChangeLog INSTALL NEWS TODO depcomp install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ --- avrprog-0.2.2.orig/NEWS +++ avrprog-0.2.2/NEWS @@ -0,0 +1,8 @@ +Version 0.2.2 - Changed source code to compile without warnings + with gcc 4.2; changed comments to /* */ instead of // +Version 0.2.1 - Now there is a avrprog.conf file to handle the + parallel port address. A normal user can't write + to a port that is not allowed +Version 0.2.0 - Added config file to handle devices signature bits + Now it is easy to put more signatures +Version 0.1.0 - first testing version --- avrprog-0.2.2.orig/intelhex.c +++ avrprog-0.2.2/intelhex.c @@ -21,6 +21,7 @@ #include #include #include +#include int intelhex_fileopen (inteldata *id, char *filename, int mode) { /* mode = 1 -> open file for reading */ --- avrprog-0.2.2.orig/debian/rules +++ avrprog-0.2.2/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Path to install (needed by configfiles) +DESTDIR=$(CURDIR)/debian/avrprog + +CFLAGS = -Wall -g +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + aclocal + autoconf + automake --add-missing + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + $(MAKE) CFLAGS="$(CFLAGS)" + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install prefix=$(CURDIR)/debian/avrprog/usr +# for i in $(CURDIR)/debian/avrprog/usr/bin/*; do \ +# strip -s -v "$$i"; \ +# done; \ +# fi + $(INSTALL_FILE) devices.conf $(DESTDIR)/etc/avrprog + $(INSTALL_FILE) avrprog.conf $(DESTDIR)/etc/avrprog + $(INSTALL_FILE) $(CURDIR)/avrprog.1 $(CURDIR)/debian + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman avrprog.1 +# dh_installmanpages + dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- avrprog-0.2.2.orig/debian/changelog +++ avrprog-0.2.2/debian/changelog @@ -0,0 +1,169 @@ +avrprog (0.2.2-2) unstable; urgency=low + + * Added hurd-i386 to arch list. Thanks to Samuel Thibault for reporting + it. closes: #482835 + + -- Pedro Zorzenon Neto Mon, 26 May 2008 09:10:03 -0300 + +avrprog (0.2.2-1) unstable; urgency=low + + * New upstream release. + * Removed debconf question about setuid root. It was not safe to make the + program setuid root. If admin want some user to run it, it can add the + user to sudo configuration instead of changing the executable to setuid. + * Closed bugs related to debconf, since there is no more debconf questions + in this package. closes: #336776, #423069 + * thanks to Bart Cornelis for the Dutch translation. + + -- Pedro Zorzenon Neto Sun, 20 Apr 2008 17:00:44 -0300 + +avrprog (0.2.1-14) unstable; urgency=low + + * added kfreebsd-amd64 to arch list. (closes: #361621) + * removed note with low priority, user can easily discover its + meaning in README file (setuid needed for regular users). + (closes: #388827) + * updated french template/po file. (closes: #337763) + * upgraded debian policy + + -- Pedro Zorzenon Neto Wed, 15 Nov 2006 19:04:17 -0200 + +avrprog (0.2.1-13) unstable; urgency=low + + * Replaced automake build-depends to automake1.4 (closes: #377759) + * Still need to upgrade debian policy, and fix some lintian warnings, + this will be done in next upload. + + -- Pedro Zorzenon Neto Tue, 11 Jul 2006 11:18:28 +0000 + +avrprog (0.2.1-12) unstable; urgency=low + + * Added "debconf | debconf-2.0" in Depends field of control file. + (closes: #331752) + + -- Pedro Zorzenon Neto Tue, 11 Oct 2005 12:49:06 -0300 + +avrprog (0.2.1-11) unstable; urgency=low + + * Added po-debconf templates for Czech, Japanese, Vietnamese. + Thanks to Miroslav Kure, Hideki Yamane and Clytie Siddall. + (closes: #315814, #260945, #313138) + + -- Pedro Zorzenon Neto Tue, 12 Jul 2005 18:59:23 -0300 + +avrprog (0.2.1-10) unstable; urgency=low + + * Added amd64 to arch list. Thanks to + (closes: #249945) + * Using po-debconf (closes: #205765) + * Added french template. + Thanks to Christian Perrier + (closes: #206597) + * Updated Standards-Version to 3.6.1 + + -- Pedro Zorzenon Neto Sun, 23 May 2004 16:56:34 -0300 + +avrprog (0.2.1-9) unstable; urgency=low + + * Fixed build depends. + Thanks to Junichi Uekawa + (Closes: #141001) + + -- Pedro Zorzenon Neto Thu, 18 Apr 2002 20:49:31 -0300 + +avrprog (0.2.1-8) unstable; urgency=low + + * Added russian template. + Thanks to Ilgiz Kalmetev + (Closes: #137617) + + -- Pedro Zorzenon Neto Sun, 10 Mar 2002 11:16:41 -0300 + +avrprog (0.2.1-7) unstable; urgency=low + + * spelling error in description (Closes: #124434) + + -- Pedro Zorzenon Neto Tue, 18 Dec 2001 07:58:32 -0300 + +avrprog (0.2.1-6) unstable; urgency=low + + * mantainer e-mail updated. + * Added brazilian template. + Thanks to Andre Luis Lopes + (Closes: #107488) + + -- Pedro Zorzenon Neto Thu, 9 Aug 2001 15:39:37 -0300 + +avrprog (0.2.1-5) unstable; urgency=low + + * template suid_warning type "text" changed to "note" + (Closes: #106330) + + -- Pedro Zorzenon Neto Sat, 28 Jul 2001 08:36:12 -0300 + +avrprog (0.2.1-4) unstable; urgency=low + + * "postinst" script used "chmod" to set uid root. + Now it uses dpkg-statoverride. + * Thanks to everybody at debian-devel@lists.debian.org that helped + to translate the templates to german. + + -- Pedro Zorzenon Neto Thu, 12 Jul 2001 13:16:23 -0300 + +avrprog (0.2.1-3) unstable; urgency=low + + * Added spanish template. + Thanks to Carlos Valdivia Yagüe + (Closes: #103235) + * Added swedish template. + Thanks to Martin Sj|gren + (Closes: #103332) + * Now the postinst asks the user if avrprog should be + installed suid root or not. + + -- Pedro Zorzenon Neto Sat, 7 Jul 2001 15:58:47 -0300 + +avrprog (0.2.1-2) unstable; urgency=low + + * Fix bug report: "built with broken version of dpkg-dev" + thanks to James Troup that reported it + (Closes: #102521) + + -- Pedro Zorzenon Neto Wed, 27 Jun 2001 13:33:15 -0300 + +avrprog (0.2.1-1) unstable; urgency=low + + * New upstream release + * Access to parallel port now is controled in avrprog.conf file + user can't access ports that aren't allowed in this file. + + -- Pedro Zorzenon Neto Mon, 25 Jun 2001 16:48:02 -0300 + +avrprog (0.2.0-1) unstable; urgency=low + + * New upstream release + * Now it is easier to handle signature bytes of devices and to insert + new devices. See config file in /etc. + + -- Pedro Zorzenon Neto Thu, 24 May 2001 10:15:54 -0300 + +avrprog (0.1.0-2) unstable; urgency=low + + * Corrected spelling error in debian/control file. thanks to + André Dahlqvist + * Install directory was /bin. Changed to /usr/bin + * Changed instalation note (debian/templates) + * german template added. thanks to Sebastian Feltel + (Closes: #96204) + + -- Pedro Zorzenon Neto Thu, 3 May 2001 12:14:36 -0300 + +avrprog (0.1.0-1) unstable; urgency=low + + * Initial Release. + * Thanks to Gustavo Noronha Silva that is the sponsor + for this package at Debian. + + -- Pedro Zorzenon Neto Fri, 27 Apr 2001 15:14:17 -0300 + + --- avrprog-0.2.2.orig/debian/control +++ avrprog-0.2.2/debian/control @@ -0,0 +1,20 @@ +Source: avrprog +Section: electronics +Priority: extra +Maintainer: Pedro Zorzenon Neto +Build-Depends: debhelper(>= 3.0.0), automake, autoconf, po-debconf +Standards-Version: 3.7.3 + +Package: avrprog +Architecture: amd64 i386 kfreebsd-i386 kfreebsd-amd64 hurd-i386 +Depends: ${shlibs:Depends}, debconf | debconf-2.0 +Description: Programmer for Atmel AVR microcontrollers + This package can program Atmel AVR microcontrollers and uses PC + parallel port to program the device in serial mode. The device + can be programmed "in-system". + . + It comes with a schematic of the hardware required. The hardware + was designed to be efficient and inexpensive. + Schematic can be found in /usr/share/doc/avrprog/ + . + For more information, see http://avrprog.sourceforge.net --- avrprog-0.2.2.orig/debian/avrprog.1 +++ avrprog-0.2.2/debian/avrprog.1 @@ -0,0 +1,174 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH AVRPROG 1 "jun 25, 2001" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +avrprog \- Programmer for Atmel AVR microcontrolers +.SH SYNOPSIS +.B avrprog +.RI "[ -r | -w | -c | -e | -b " reset-pin-value " | -L " lock-mode " ]" +.RI "[ -E ] [ -d " device " ] [ -p " port-address " ] [ -R ] [ -v ]" +.RI "[ -V ] [ -h ]" +.br +.SH DESCRIPTION +Programmer for Atmel AVR microcontrollers that uses PC parallel port +to program the device in serial mode. The device can be programmed +"in-system". It comes with a schematic of the hardware required. +The hardware was designed to be efficient and unexpensive. +.br +This program gets/sends data from stdin/stdout in Intel Hexadecimal +Object File Format and reads/writes to the AVR device. +.br +.SH OPTIONS +.TP +.B -r +reads data from device and send to stdout. +.TP +.B -w +reads data from stdin and write to device. +.TP +.B -c +reads data from stdin and from device and compares both. +.TP +.B -e +erases device program and eeprom memory. +.TP +.B -b reset-pin-value +reset-pin-value must be 0 or 1. This option just changes device reset +pin logic level and exit. +.TP +.B -L lock-mode +set device lock bits mode. See AVR manual for details. +WARNING: in some devices, even erasing chip (\-e) didn't clear the +lock bits... so we lost the chips... use this option at your own risk. +.br +If lock-mode is 0, sets LB2=0; LB1=0. +If lock-mode is 1, sets LB2=0; LB1=1. +If lock-mode is 2, sets LB2=1; LB1=0. +If lock-mode is 3, sets LB2=0; LB1=1. +.TP +.B -E +eeprom memory mode. Without this option, reads, writes and compares are +made to device program memory. With this option they are made in eeprom +memory. +.TP +.B -d device +Without this option, avrprog will try do autodetect the device by +reading it's signature bytes. Use this option if you want to overide +device detection. +.B device +is case sensitive and can be any supported devices. To see supported +devices try +.B "\'-d ?\'" +. +.TP +.B -p port-address +chooses parallel port address (hexa value). Check avrprog.conf file +for default and valid values. +.TP +.B -R +sets AVR reset pin to 1 when exiting, enabling software execution. +Default is leave chip disabled (reset=0) when exiting. +.TP +.B -v +verbose mode. +.TP +.B -V +shows program version, copyright and exit. +.TP +.B -h +shows program help and exit. +.LP +Note: some options can't be used at the same time with other options. +In case you specify more than one exclusive option, just one of them +will be executed. (priority b,c,r,L,e,w). +.LP +Without any options, avrprog just tries to detect the device and leaves +reset pin at 0 (software in device is halted). +.SH EXAMPLES +.B avrprog -r > file.hex +.br +Read device program memory and write it to file.hex. +.LP +.B avrprog -w < file.hex +.br +Read contents of file.hex and write to program memory in device. +.LP +.B avrprog -w -R < file.hex +.br +Read contents of file.hex and write to program memory in device. After +writting, starts device software execution by setting reset pin to 1. +.LP +.B avrprog -r -E > file.hex +.br +Read device eeprom memory and write it to file.hex. +.LP +.B avrprog +.br +Identifies the device and halts software execution. +.LP +.B avrprog -R +.br +Identifies the device and starts software execution. +.LP +.B avrprog -b 0 +.br +Just set device reset pin to 0 (halt software execution) +.LP +.B avrprob -b 1 +.br +Just set device reset pin to 1 (start software execution) +.SH INPUT AND OUTPUT FORMAT +Input and output formats are +.B Intel Hexadecimal Object File Format +You can find this specification at +.br +ftp://download.intel.com/support/processors/ +.br +i960/devtools/INTELHEX.PDF +.br +Record types 00 and 01 are implemented in this version. +In input lines, LF and CR+LF are accepted as newline markers. +Output files are generated with LF as a newline marker. +.SH FILES +.TP +.B /etc/avrprog/devices.conf +handles devices signatures. Human readable. Take a look and add new +devices. Don't forget to write us the lines you added, so next versions +can have a more complete list of devices. +.TP +.B /etc/avrprog/avrprog.conf +general configuration file. Human readable. Handles parallel port address. +.SH BUGS +If you found any, please send the authors an e-mail. +.SH TODO +.LP +Write a kernel module so this program does not need to run setuid root. Or +write a daemon and the program can connect to the daemon using tcp. +.LP +Write messages using functions that support locales. +.SH SEE ALSO +http://www.autsens.com/avrprog +.br +http://avrprog.sourceforge.net +.SH AVRPROG AUTHORS +Jose Roberto B. de A. Monteiro +.br +Pedro Zorzenon Neto +.PP +.SH MANPAGE AUTHOR +This manual page was written by Pedro Zorzenon Neto , +for the Debian GNU/Linux system (but may be used by others). --- avrprog-0.2.2.orig/debian/prerm +++ avrprog-0.2.2/debian/prerm @@ -0,0 +1,37 @@ +#! /bin/sh +# prerm script for avrprog +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure) + dpkg-statoverride --remove /usr/bin/avrprog >/dev/null 2>&1 || true + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- avrprog-0.2.2.orig/debian/dirs +++ avrprog-0.2.2/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +etc/avrprog --- avrprog-0.2.2.orig/debian/copyright +++ avrprog-0.2.2/debian/copyright @@ -0,0 +1,15 @@ +This package was debianized by Pedro Zorzenon Neto on +Wed, 4 Jul 2001 16:10:52 +0000 + +It was downloaded from http://avrprog.sourceforge.net + +Upstream Authors: José Roberto B. de A. Monteiro + Pedro Zorzenon Neto + +This software and the documentation that comes within are copyright +(c) 2000-01 by José Roberto B. de A. Monteiro and Pedro Zorzenon Neto + +You are free to redistribute this software under the terms of the GNU +General Public License. +On Debian systems, the complete text of the GNU General Public License can +be found at /usr/share/common-licenses/GPL-2 --- avrprog-0.2.2.orig/debian/compat +++ avrprog-0.2.2/debian/compat @@ -0,0 +1 @@ +4 --- avrprog-0.2.2.orig/debian/docs +++ avrprog-0.2.2/debian/docs @@ -0,0 +1,4 @@ +NEWS +README +TODO +avrprog.png