Raspberry pi on java 20121110

3,599 views
3,457 views

Published on

it is for preso at JJUG CCC Fall 2012

Published in: Technology
1 Comment
6 Likes
Statistics
Notes
No Downloads
Views
Total views
3,599
On SlideShare
0
From Embeds
0
Number of Embeds
872
Actions
Shares
0
Downloads
57
Comments
1
Likes
6
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Raspberry pi on java 20121110

    1. 1. Raspberry PI on Java35$PC Not PI Do Java Masafumi Ohta Lead of Japanese Raspberry PI UG.
    2. 2. It’s MeMasafumi Ohta -Founded JapaneseRaspberry PI Users Groupin 2012.9Working for CTC as OSSinvestigation
    3. 3. About Raspberry PI
    4. 4. Eben,founder of PIFounder of RasberryPIDirector of BroadcomFounding PI forEducation teachingProgrammings andComputer hardware=OLPC
    5. 5. What’s PIit is for studyingcomputer for K12 -how computer worksand how to study‘PITHON’,easy andbasical lang.worksDebian,Arclinux...andAndroid
    6. 6. There are RevisionsRev.A - without ethernet (using usb)Rev.B 1.0 - with ethernetRev.B 1.0 + ECN0001 (no fuses, D14 removed) - ?Perhaps we cant see in JapanRev.B 2.0 - adding some improvementsRev.B 2.0 w/512MB - adding memories Latest!
    7. 7. Check your Rev.*cat /proc/cpuinfo (need to check on latest OS) Model and revision Code(s) Model B Revision 1.0 2 Model B Revision 1.0 3 + ECN0001 (no fuses, D14 removed) Model B Revision 2.0 4,5,6 Model B Revision 2.0 (512 MB) 13,14,15 also you can check serial No. for maintenance
    8. 8. Two Vendors for PIRS Components - manufactured in China.Now canorder from Japan but it takes 2-3 month to getthem :-(Element14 - manufactured by Sony in UK.but nochannel reseller in Japan (now talking with CPC,siscompany of element14 ),it take 1-2 week to getthem :-)
    9. 9. booksAlmost contents are same :-p
    10. 10. Inside Raspberry PI
    11. 11. Needs enough to pack10/100 ethernet - enough to work with electricpower.no wifi - wifi eats electric power - sometime itwont boot actually with usb wifi (be carefull :-p)poor memories,CPU - it is for COST :-p
    12. 12. GPIO PortYou must check using PI serial line provided byGPIO NOT USB port.GPIO port assign very often changes updating theRevision of PI.Prepare Sparkfun DEV-09873 (3.3V NOT 5V) youcan buy in Akibahara.careful 115200 bps to be used for serial
    13. 13. Be careful usingNeed stable power running USB wifi.Need high-speed and stable SD card to running OSUse high-power and stable battery like Panasonicto use PI as mobile. (in my case it works for 8hours)be careful USB port on Mac....often got kernelpanic.(say abusing USB port)
    14. 14. Poor CPU and Memories se d... taking care of memories and CPU. e lea nr bee as Bh top,such as measuring performance - must use for /5 12 M sizing Bw Rev Now
    15. 15. Distros on PI
    16. 16. Raspbian “wheezy”Default Destro.recommended OSNeeds to update moving SD from w/256MB to w/512MB:’sudo apt-get update && sudo apt-get installraspi-config libraspberrypi*’At first you should set ‘raspi-config’Works good but veeery slow GUI,be carefulPoor CPU,memories must be considered
    17. 17. Java Rocks with PI
    18. 18. before get startedMacbook (Unix PC) is prefer to usegit must be used (if Mac need MacPort)if you use Oracle JVM you MUST use soft-floatABI Debian wheezy,or it won’t work.if soft-float ABI wheezy DO NOT forget to replacestart.elf applied for 512MB.
    19. 19. replace start.elf(if use soft-floatABI)git git://github.com/raspberrypi/firmware.gitcd firmware;git checkout;git checkout -b48f8bb0e47cd boot;cp armXXX_start.elf /Volume/$SD_NAME/start.elf (Mac OS X)
    20. 20. Note:burn OS image on Macdiskutil listsudo diskutil umount /dev/disk1s1sudo sudo dd if=2012-10-28-wheezy-raspbian.imgof=/dev/rdisk1 bs=1msudo diskutil umount /dev/disk1s1after boot set ‘raspi-config’ and ‘expand_rootfs’ toexpand filesystem
    21. 21. Note:‘screen’ Command to use serial on MacPlug USB to GPIO with DEV-09873,Not USB onRaspberry PIls /dev/tty.*screen /dev/tty.usbserial-xxxxxxxx(serial No.)115200
    22. 22. Installing JamVMsudo apt-get install openjdk-7-jdk git libtoolautoconf automakegit clone git://git.berlios.de/jamvm;cd jamvm./autogen.sh --with-java-runtime-library=openjdk7;makesudo cp src/.libs/libjvm.so /usr/lib/jvm/java-7-openjdk-armhf/jre/lib/arm/jamvm/ *http://labb.zafena.se/?p=576
    23. 23. Install JamVM(Cont’d)sudo sed -i s#-jamvm ERROR#-jamvmKNOWN# /usr/lib/jvm/java-7-openjdk-armhf/jre/lib/arm/jvm.cfgjava -jamvm -version *http://labb.zafena.se/?p=576
    24. 24. Using JamVMJetty 9.0:http://download.eclipse.org/jetty/stable-9/dist/H2 Database:http://www.h2database.com/h2-2012-09-09.zip
    25. 25. Installing Node.js (soft-floatABI)Easy to install:using soft-floatABI wheezygit clone git://github.com/itwars/nodejs-ARM.gitdpkg -i nodejs-ARM/nodejs_0.8.14~squeeze_armel.deb *https://github.com/itwars/nodejs-ARM/
    26. 26. Installing Node.js (hard-floatABI)Do NOT use latestgit clone git://github.com/joyent/node.gitcd node;git checkout v0.8.14-release./configure && makesudo make install *https://github.com/wware/rpi-hacking
    27. 27. JavaFX for ARM (beta) There were sessions for Raspberry PI for JavaFX,but now under development. check http://jdk7.java.net/fxarmpreview/javafx- arm-developer-preview.html but it is for beagleboard - am ARM based mini-board. need to use soft-floatABI wheezy to use Oracle JVM,or it won’t work use VNC not X11 remote.*https://blogs.oracle.com/javaone/entry/session_report_java_on_the
    28. 28. Raspberry PI UGsubscribe https://groups.google.com/d/forum/japanese-raspberry-pi-users-groupwelcoming beginners (for studying) :-phelp purchasing PIplanning to attend some OSS event.Why don’t you join us! *note it is not concerned and sponsored by my company
    29. 29. Thank you! Masafumi Ohta mailto:masafumi@pid0.org twitter:@masafumiohtasubscribe please:https://groups.google.com/d/ forum/japanese-raspberry-pi-users-group

    ×