Infos taken from
http://jdk8.java.net/fxarmpreview/javaf ... eview.html
and
http://opensourceecology.org/wiki/Gcode ... spberry_Pi
1) Flash latest Wheezy hard float image to your SD card, setup using raspi-config.
*NOTE* java suggests a min 128MB split for the GPU VRAM for proper functionality.
2) Boot up to the GUI
3) download the javaFX arm preview 58MB zip, posted above, extract it to /opt directory
4) download 32bit UniversalGcode Sender by willwinder here: http://bit.ly/Xz4U1R
5) in terminal, install some things:
Code: Select all
sudo apt-get install openjdk-7-jre librxtx-java
Code: Select all
/home/pi/Desktop/UGCS/
Code: Select all
tar xzvf UniversalGcodeSender-v1.0.5-all32.zip
/opt/jdk1.8.0/bin/jar -xf UniversalGcodeSender-all32.jar
cd lib
/opt/jdk1.8.0/bin/jar -xf swing-layout-1.0.4.jar
under the $last section (linux one not mac), delete line starting with
Code: Select all
java -jar
add these lines below your commented line:
Code: Select all
export CLASSPATH=$CLASSPATH:.:/usr/share/java/RXTXcomm.jar:/home/pi/Desktop/UGCS/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jni
/opt/jdk1.8.0/bin/java -Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0:/dev/ttyUSB0:/dev/ttyAMA0 jar -Xmx256m $rootdir/UniversalGcodeSender-all*.jar
Save the start.sh script. chmod +x it/right click->permissions->allow execution. Double click and click execute. In about 20 seconds it should pop up. If your CPU meter isn't maxed, and it never loaded you should run in terminal to find problem. execute
Code: Select all
./start.sh
When its loading up and will control your steppers you can delete everything from the UGCS folder except the universal jar file, start.sh and lib folder. Double clicking start.sh and hitting execute should be all you need to do to boot now.
If anyone wants to try not installing the openjdk-7-jre package and seeing if it'll execute that'd be great, its quite large. You will need the librxtx-java package AFAIK.
Hope this helps the millers! Next step is to get SSH working along with X-term and the wifi adapter.