diff options
author | Steven Voges <svoges.sbo@gmail.com> | 2023-09-14 21:24:51 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-17 00:10:16 +0700 |
commit | dc8d8763bdf8e18d4d72d69ac4a9e5825d4e075c (patch) | |
tree | 0973ab9867251c5ceb8ffaf3e3a9d08a5daad1b2 | |
parent | a5d813b6641b3be2e101a07fce318c3f5856eac4 (diff) |
development/dfu-programmer: Updated for version 1.1.0, new maint.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/dfu-programmer/README | 13 | ||||
-rw-r--r-- | development/dfu-programmer/README.SBo | 16 | ||||
-rw-r--r-- | development/dfu-programmer/dfu-programmer.SlackBuild | 35 | ||||
-rw-r--r-- | development/dfu-programmer/dfu-programmer.info | 12 | ||||
-rw-r--r-- | development/dfu-programmer/slack-desc | 6 |
5 files changed, 55 insertions, 27 deletions
diff --git a/development/dfu-programmer/README b/development/dfu-programmer/README index 218ac12582720..934d235d1ff83 100644 --- a/development/dfu-programmer/README +++ b/development/dfu-programmer/README @@ -1,7 +1,12 @@ -dfu-programmer is a Device Firmware Update based USB programmer for -Atmel chips with a USB bootloader. +dfu-programmer is an implementation of the Device Firmware Upgrade +class USB driver that enables firmware upgrades for various USB enabled +(with the correct bootloader) Atmel chips. This program was created +because the Atmel "FLIP" program for flashing devices does not support +flashing via USB on Linux, and because standard DFU loaders do not work +for Atmel's chips. -It seems to be working just fine with the LUFA based DFU Bootloader. -(http://www.fourwalledcubicle.com/LUFA.php). +Check out the Atmel website for more information. They are kind enough +to provide generally correct specifications this implementation is +based on. See README.SBo for post-install configuration. diff --git a/development/dfu-programmer/README.SBo b/development/dfu-programmer/README.SBo index 4b18e535aed99..b35a127b745f5 100644 --- a/development/dfu-programmer/README.SBo +++ b/development/dfu-programmer/README.SBo @@ -1,10 +1,10 @@ You might want to add the following udev rule under /etc/udev/rules.d: -SUBSYSTEM=="usb",ACTION=="add",ATTRS{idVendor}=="03eb",ATTRS{idProduct}=="2ff4",GROUP="plugdev" - -so when you plug the AVR chip to program, the USB devices becomes -available to all the members of the "plugdev" group. Also, I found -that the programmer doesn't work for non-root users when the "usbfs" -is mounted on /proc/bus/usb, so my advice is to remove the "usbfs" -entry from /etc/fstab if it is there (or maybe there is a better -solution). +ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", MODE="0664", GROUP="plugdev" + +so when you plug the Atmel chip to program, the device becomes +available to all the members of the "plugdev" group. + +You will need to reboot your system or run the following command: + +sudo udevadm control --reload diff --git a/development/dfu-programmer/dfu-programmer.SlackBuild b/development/dfu-programmer/dfu-programmer.SlackBuild index e341303f77d76..5f516955d2060 100644 --- a/development/dfu-programmer/dfu-programmer.SlackBuild +++ b/development/dfu-programmer/dfu-programmer.SlackBuild @@ -1,12 +1,32 @@ #!/bin/bash -# Slackware build script for dfu-programmer. +# Slackware build script for dfu-programmer + +# Copyright 2023 Steven Voges <Oregon, USA> # Written by Andrzej Telszewski <atelszewski@gmail.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=dfu-programmer -VERSION=${VERSION:-0.5.4} +VERSION=${VERSION:-1.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -19,9 +39,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -62,6 +79,11 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +mkdir -p m4 +aclocal -I m4 +autoheader +automake --foreign --add-missing --force-missing +autoconf ./configure \ --prefix=/usr \ --sysconfdir=/etc \ @@ -81,7 +103,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog NEWS README \ +cp -a \ + AUTHORS COPYING NEWS README.md docs/$PRGNAM.html \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/development/dfu-programmer/dfu-programmer.info b/development/dfu-programmer/dfu-programmer.info index e3020ffd80fa0..5a1fed8e281f2 100644 --- a/development/dfu-programmer/dfu-programmer.info +++ b/development/dfu-programmer/dfu-programmer.info @@ -1,10 +1,10 @@ PRGNAM="dfu-programmer" -VERSION="0.5.4" -HOMEPAGE="http://dfu-programmer.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/project/dfu-programmer/dfu-programmer/0.5.4/dfu-programmer-0.5.4.tar.gz" -MD5SUM="707dcd0f957a74e92456ea6919faa772" +VERSION="1.1.0" +HOMEPAGE="https://dfu-programmer.github.io" +DOWNLOAD="https://github.com/dfu-programmer/dfu-programmer/archive/v1.1.0/dfu-programmer-1.1.0.tar.gz" +MD5SUM="683b169a9b9658b28742709a227c68a9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Andrzej Telszewski" -EMAIL="atelszewski@gmail.com" +MAINTAINER="Steven Voges" +EMAIL="svoges.sbo@gmail.com" diff --git a/development/dfu-programmer/slack-desc b/development/dfu-programmer/slack-desc index a4b0be22506ef..04125cb81a97e 100644 --- a/development/dfu-programmer/slack-desc +++ b/development/dfu-programmer/slack-desc @@ -6,12 +6,12 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -dfu-programmer: dfu-programmer (USB programmer for USB AVR chips) +dfu-programmer: dfu-programmer (USB programmer for Atmel chips) dfu-programmer: dfu-programmer: dfu-programmer is a Device Firmware Update based USB programmer for -dfu-programmer: Atmel chips with a USB bootloader. +dfu-programmer: Atmel chips with a USB bootloader dfu-programmer: -dfu-programmer: Homepage: http://dfu-programmer.sourceforge.net/ +dfu-programmer: Homepage: http://dfu-programmer.github.io dfu-programmer: dfu-programmer: dfu-programmer: |