mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
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>
This commit is contained in:
parent
a5d813b664
commit
dc8d8763bd
5 changed files with 54 additions and 26 deletions
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", MODE="0664", 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).
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue