[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] [PATCH 0/1] New programmer type: linuxspi
From: |
Ralf Ramsauer |
Subject: |
Re: [avrdude-dev] [PATCH 0/1] New programmer type: linuxspi |
Date: |
Sun, 7 Oct 2018 18:07:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
*ping*
On 9/24/18 10:49 PM, Ralf Ramsauer wrote:
> Hi Joerg,
> Dear avrdude devs,
>
> this adds the linuxspi programmer type to avrdude. It allows to flash AVRs via
> Linux's spidev interface (/dev/spidev...) together with a GPIO reset pin that
> is
> attached to a gpiochip (/dev/gpiochip...).
>
> Initially, this code was written by Kevin (CC'ed) almost half a decade ago.
> Back then, he sent it to the list with no responses. Nevertheless, there are
> quite a few upvotes on the web interface [1] :-)
>
> I picked up his code, rebased it to latest upstream, switched from the
> deprecated Linux GPIO sysfs accessors to the 'newer' linux/gpio.h API and
> massaged some parts here and there.
>
> This programmer type helps me in one of my projects where I have a Raspberry
> Pi
> with an AVR microcontroller attached to a Pi hat. This code allows me to
> easily
> flash it on-line, as I can simply use the Raspberry's SPI lines.
>
> I'd appreciate if you could drop some comments on the code and consider its
> integration.
>
> Let me also Cc Radoslav Kolev, who wrote the linuxgpio driver, a similar
> programmer. Some parts (afaict) might be c&p'ed from his code.
>
> Thanks!
> Ralf
>
> [1] https://savannah.nongnu.org/patch/?8228
>
> Kevin Cuzner (1):
> Implement new programmer type: linuxspi
>
> avrdude/Makefile.am | 2 +
> avrdude/avrdude.conf.in | 14 ++
> avrdude/configure.ac | 27 +++-
> avrdude/doc/avrdude.texi | 20 +++
> avrdude/linuxspi.c | 302 +++++++++++++++++++++++++++++++++++++++
> avrdude/linuxspi.h | 35 +++++
> avrdude/pgm_type.c | 2 +
> 7 files changed, 401 insertions(+), 1 deletion(-)
> create mode 100644 avrdude/linuxspi.c
> create mode 100644 avrdude/linuxspi.h
>
--
Ralf Ramsauer
GPG: 73F94D11C85252CC
- Re: [avrdude-dev] [PATCH 0/1] New programmer type: linuxspi,
Ralf Ramsauer <=