RasPI Raspbian avr-gcc .deb package on wrightflyer

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guyzz

I just made a debian package for Raspian 3.6+ kernels

It's build with the buildscript from the sticky (unmodified) , takes approx 5 hr's.

As usual thanx to Cliff for hosting it on :

http://www.wrightflyer.co.uk/avr...

avr-gcc-4.5.1-avrfreaks-2013-nov-23-raspbian.armhf.deb
avr-gcc-4.5.1-avrfreaks-2013-nov-23-raspbian.armhf.txt

Read the .txt , as i expect you have to install libusb 1.0.0 (for avrdude), and maybe some gmp/mpfr stuff.

I had to install those packages to build the package , and was to lazy to test on a clean "RasPI" install if the needed packages are already installed there.

Ahh: Christ .... I'we been hit by CHAPTCHA on every post :-(

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bzzzt. Non Atmel AVR subject. Get the padlock.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What is needed to program an AVR from the Raspian ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can use anything that's supported by avrdude and that can connect to the USB port. Just tested with an AVRISPmkII to program an Xmega, no problem.

With avrdude6 you don't even need a programmer, it can use a couple of bit banged IO-pins on the PI as a programmer.

Edit: Tested with a P*Ckit2 to program a tiny84. Works fine (with avrdude 6, not 5.11.1 that's included in Bingos .deb).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Bzzzt. Non Atmel AVR subject. Get the padlock

Bob how is an ARM build of avr-gcc that can be run on Rpi not AVR related??

This allows anyone with an Rpi to build AVR programs with it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

bobgardner wrote:
Bzzzt. Non Atmel AVR subject. Get the padlock.

As Cliff wrote this is quite AVR related.

Btw: If i ever get a padlock for posting in off-topic , unless i'm advertizing seriously for another mcu type.
I'm quite sure i'll vanish for good. :?

Hopefully this is not a dictatorship.

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

snigelen wrote:

Edit: Tested with a P*Ckit2 to program a tiny84. Works fine (with avrdude 6, not 5.11.1 that's included in Bingos .deb).

Hmmm ....

forgot about the new Dude 6.x :oops:

I might rebuild the .deb during the next weeks

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bingo600 wrote:
forgot about the new Dude 6.x :oops:

I might rebuild the .deb during the next weeks

In that case, since you do it for RPi, you probably want to check out the latest svn-version (r1251). It contains a bugfix for the linuxgpio programmer (added two hours ago).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@snigelen
Thanx for the info , but i never uses svn snapshots in the "official" buildpackage

Makes the package unreliable ....

I might use the svn version for the raspi package , well see :-)

geezz i hate chapthas :evil:

/Bingo

Btw: I just updated the buildscript in sticky to make Dude 6.01 & gdb 7.6.1

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

@snigelen you got the svn release :-)

This one will go into the RasPI .deb package

root@raspberrypi-3:/usr/local/avr/bin# ./avrdude -v

avrdude: Version 6.1-svn-20130917, compiled on Nov 30 2013 at 16:47:29
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/usr/local/avr/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping


avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again

root@raspberrypi-3:/usr/local/avr/bin# 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

New RasPI package on wrightflyer

avr-gcc-4.5.1-avrfreaks-2013-12-01-raspbian.armhf.deb
avr-gcc-4.5.1-avrfreaks-2013-12-01-raspbian.armhf.txt

Quote:

Note: You might have to pre install the following packages before trying to install the .deb package , in order for the compiler to work.
I have to install them for building the package and i have no idea if they are already included:

For avrdude:
sudo apt-get install libusb-1.0-0 libftdi1

Maybe for avr-gcc (not sure);
sudo apt-get install libmpfr-dev - avr-gcc
sudo apt-get install libgmp-dev - avr-gcc

After installing above pagkages (at least those for avrdude) , install the .deb package with
sudo dpkg -i

@01-dec-2013
Switched to gdb-7.6.1

Switched to avrdude 6.0.1 (SVN revision 1251)

avrdude built with : ./configure -v --prefix=/usr/local/avr --enable-linuxgpio

Configuration summary: (reported via ./configure)
----------------------
DO HAVE libelf
DO HAVE libusb
DO HAVE libusb_1_0
DON'T HAVE libftdi1
DO HAVE libftdi
DON'T HAVE libhid
DO HAVE pthread
DISABLED doc
DISABLED parport
ENABLED linuxgpio

Known MCU names:
  avr1 avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 avrxmega1
  avrxmega2 avrxmega3 avrxmega4 avrxmega5 avrxmega6 avrxmega7 avrtiny10
  at90s1200 attiny11 attiny12 attiny15 attiny28 at90s2313 at90s2323
  at90s2333 at90s2343 attiny22 attiny26 at90s4414 at90s4433 at90s4434
  at90s8515 at90c8534 at90s8535 attiny13 attiny13a attiny2313 attiny2313a
  attiny24 attiny24a attiny4313 attiny44 attiny44a attiny84 attiny84a
  attiny25 attiny45 attiny85 attiny261 attiny261a attiny461 attiny461a
  attiny861 attiny861a attiny87 attiny43u attiny48 attiny88 at86rf401
  ata6289 at43usb355 at76c711 atmega103 at43usb320 attiny167 at90usb82
  at90usb162 atmega8u2 atmega16u2 atmega32u2 attiny1634 atmega8 atmega48
  atmega48a atmega48pa atmega48p atmega88 atmega88a atmega88p atmega88pa
  atmega8515 atmega8535 atmega8hva at90pwm1 at90pwm2 at90pwm2b at90pwm3
  at90pwm3b at90pwm81 at90pwm161 atmega16 atmega16a atmega161 atmega162
  atmega163 atmega164a atmega164p atmega165 atmega165a atmega165p
  atmega168 atmega168a atmega168p atmega169 atmega169a atmega169p
  atmega169pa atmega32 atmega323 atmega324a atmega324p atmega324pa
  atmega325 atmega325a atmega325p atmega325pa atmega3250 atmega3250a
  atmega3250p atmega3250pa atmega328 atmega328p atmega329 atmega329a
  atmega329p atmega329pa atmega3290 atmega3290a atmega3290p atmega3290pa
  atmega406 atmega64 atmega640 atmega644 atmega644a atmega644p atmega644pa
  atmega645 atmega645a atmega645p atmega649 atmega649p atmega649a
  atmega6450 atmega6450a atmega6450p atmega6490 atmega6490a atmega6490p
  atmega64hve atmega16hva atmega16hva2 atmega16hvb atmega16hvbrevb
  atmega32hvb atmega32hvbrevb at90can32 at90can64 at90pwm216 at90pwm316
  atmega32c1 atmega64c1 atmega16m1 atmega32m1 atmega64m1 atmega16u4
  atmega32u4 atmega32u6 at90usb646 at90usb647 at90scr100 at94k m3000
  atmega128 atmega1280 atmega1281 atmega1284p atmega128rfa1 at90can128
  at90usb1286 at90usb1287 atmega2560 atmega2561 atxmega16a4 atxmega16d4
  atxmega16x1 atxmega32a4 atxmega32d4 atxmega32x1 atxmega64a3 atxmega64d3
  atxmega64a1 atxmega64a1u atxmega128a3 atxmega128b1 atxmega128d3
  atxmega192a3 atxmega192d3 atxmega256a3 atxmega256a3b atxmega256a3bu
  atxmega256d3 atxmega128a1 atxmega128a1u attiny4 attiny5 attiny9 attiny10
  attiny20 attiny40

I have chosen not to install any dependancy packages automaticly via the .deb.
The user has to do that , prob. best before installing the deb.

This means that everything that this package installs will reside in /usr/local/avr , and nowhere else

/Bingo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That looks good Bingo! I'll check it out.