Go Down

Topic: Arduino-ide-1.6.0 + due on the Raspberry Pi (Read 144 times) previous topic - next topic


Sorry Folks, this only works for jessie because of Arduino-ide requirements.

I got myself a Arduino due a few months ago and since it is gonna be hooked up to
a Raspberry Pi, I wanted to be able to program it from the pi.
I have managed to compile hello world and upload just it fine.
Although this was done on the Pi, it might work on any Debian Arm system.

So here is what I've come up with...
I live on the wild side and always play as root, so....

During the upgrade to jessie you are asked some questions

Restart services during package upgrades without asking?
I answer yes to it.

Do you want to keep the old config's or install the new 1's.
In all but lightdm.conf, accepting the 'default=N' seems to work fine.
So say 'Y' to lightdm.conf, so it does not bork the system,
the only thing you will loose is the auto-login of user pi to the desktop which we will put back in.

Code: [Select]
sed -i 's/wheezy/jessie/' /etc/apt/sources.list
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
sed -i 's/#autologin-user=/autologin-user=pi/' /etc/lightdm/lightdm.conf

I always play in /usr/local/src, but play where ever you like...

Code: [Select]
cd /usr/local/src
wget https://github.com/arduino/Arduino/archive/ide-1.5.x.zip
unzip -q ide-1.5.x.zip
cd Arduino-ide-1.5.x
wget http://ftp.de.debian.org/debian/pool/main/a/arduino/arduino_1.5.6.2+sdfsg2-3.debian.tar.xz
tar -xf arduino_1.5.6.2+sdfsg2-3.debian.tar.xz

Now we need to fix up the debian directory with a patch

Code: [Select]
cd debian
wget https://www.dropbox.com/s/0spmzub21rylgof/Raspbian.Arduino.arm.build.1.6.0.patch
patch -p1 < Raspbian.Arduino.arm.build.1.6.0.patch
cd ..

Now we can make the deb's

Code: [Select]
dpkg-buildpackage -uc -b

apt-get install any missing build dependencies and rerun

And finally we can finally install Arduino-ide-1.6.0

Code: [Select]
cd ..
dpkg -i arduino-core_1.6.0_all.deb arduino_1.6.0_all.deb

Have Fun and A Great Day
ShorTie ..  ;)

Go Up