Embedded: Resin On Raspberry Pi
From Resin 4.0 Wiki
Contents |
Resin on Raspberry Pi
We are currently in the early stages of modifying Resin to run on a Raspberry Pi.
Caucho Wiki Raspberry Pi Pages:
- Java On Raspberry Pi Performance
- Resin Changes To Support Raspberry Pi
- Paul's Raspberry Pi Journal
- sddd - Paul's improved dd for SD Card script for OSX
Resin on Raspberry Pi : Installation and Configuration
Preface
I'm going to assume you already have a working Raspberry Pi with Soft-float Raspbian Wheezy installed and updated, accessible via SSH. If not, here are some links to help get you started:
- Soft-float Debian Wheezy Download
- Easy SD Card Setup on the Raspberry Pi Wiki
- sddd - Paul's improved dd for SD Card script for OSX
- Adafruit's First time configuration lesson
- raspi-config on the Raspberry Pi Wiki
I recommend you run "sudo apt-get update" and then "sudo apt-get upgrade". This will take something like 60 minutes, but it's good to have all the latest updates.
Java
- Java 6 and 7 do not support ARMv6 hardware floating-point calculations, so you must use the Soft-float version of Raspbian
- There is an early-access JDK 8 with hard-float support, but we have not tested Resin on JDK 8 yet
- Resin will run on both OpenJDK and Oracle JDK. I recommend Oracle JDK 7 for performance. See Java On Raspberry Pi Performance for the results of performance tests of Oracle JDK and OpenJDK on Raspberry Pi with Resin.
- To install OpenJDK 7, simply run "sudo apt-get install openjdk-7-jdk". java will install in your path using /etc/alternatives
- To install Oracle JDK download Java SE 7 JDK, Linux ARM v6/v7 Soft Float ABI from Oracle. There's nice step-by-step instructions at Savage Home Automation - Raspberry Pi - Installing Oracle Java Development Kit.