SlideShare une entreprise Scribd logo
1  sur  38
Raspberry PI on Java
35$PC Not PI Do Java
           Masafumi Ohta
 Lead of Japanese Raspberry PI UG.
It’s Me

Masafumi Ohta -
Founded Japanese
Raspberry PI Users Group
in 2012.9

Working for CTC as OSS
investigation
About Raspberry PI
Eben,founder of PI

Founder of Rasberry
PI

Director of Broadcom

Founding PI for
Education teaching
Programmings and
Computer hardware
=OLPC
What’s PI

it is for studying
computer for K12 -
how computer works
and how to study
‘PITHON’,easy and
basical lang.

works
Debian,Arclinux...and
Android
There are Revisions

Rev.A - without ethernet (using usb)

Rev.B 1.0 - with ethernet

Rev.B 1.0 + ECN0001 (no fuses, D14 removed) - ?
Perhaps we cant see in Japan

Rev.B 2.0 - adding some improvements

Rev.B 2.0 w/512MB - adding memories        Latest!
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
Two Vendors for PI

RS Components - manufactured in China.Now can
order from Japan but it takes 2-3 month to get
them :-(

Element14 - manufactured by Sony in UK.but no
channel reseller in Japan (now talking with CPC,sis
company of element14 ),it take 1-2 week to get
them :-)
books
Almost contents are same :-p
Inside Raspberry PI
Needs enough to pack


10/100 ethernet - enough to work with electric
power.

no wifi - wifi eats electric power - sometime it
wont boot actually with usb wifi (be carefull :-p)

poor memories,CPU - it is for COST :-p
GPIO Port
You must check using PI serial line provided by
GPIO NOT USB port.

GPIO port assign very often changes updating the
Revision of PI.

Prepare Sparkfun DEV-09873 (3.3V NOT 5V) you
can buy in Akibahara.

careful 115200 bps to be used for serial
Be careful using

Need stable power running USB wifi.

Need high-speed and stable SD card to running OS

Use high-power and stable battery like Panasonic
to use PI as mobile. (in my case it works for 8
hours)

be careful USB port on Mac....often got kernel
panic.(say abusing USB port)
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
Distros on PI
Raspbian “wheezy”

Default Destro.recommended OS

Needs to update moving SD from w/256MB to w/
512MB:’sudo apt-get update && sudo apt-get install
raspi-config libraspberrypi*’

At first you should set ‘raspi-config’

Works good but veeery slow GUI,be careful

Poor CPU,memories must be considered
Java Rocks with PI
before get started

Macbook (Unix PC) is prefer to use

git must be used (if Mac need MacPort)

if you use Oracle JVM you MUST use soft-float
ABI Debian wheezy,or it won’t work.

if soft-float ABI wheezy DO NOT forget to replace
start.elf applied for 512MB.
replace start.elf
(if use soft-floatABI)

git git://github.com/raspberrypi/firmware.git

cd firmware;git checkout;git checkout -b
48f8bb0e47

cd boot;cp armXXX_start.elf /Volume/$SD_NAME/
start.elf (Mac OS X)
Note:burn OS image
      on Mac
diskutil list

sudo diskutil umount /dev/disk1s1

sudo sudo dd if=2012-10-28-wheezy-raspbian.img
of=/dev/rdisk1 bs=1m

sudo diskutil umount /dev/disk1s1

after boot set ‘raspi-config’ and ‘expand_rootfs’ to
expand filesystem
Note:‘screen’ Command
 to use serial on Mac

Plug USB to GPIO with DEV-09873,Not USB on
Raspberry PI

ls /dev/tty.*

screen /dev/tty.usbserial-xxxxxxxx(serial No.)
115200
Installing JamVM
sudo apt-get install openjdk-7-jdk git libtool
autoconf automake

git clone git://git.berlios.de/jamvm;cd jamvm

./autogen.sh --with-java-runtime-
library=openjdk7;make

sudo cp src/.libs/libjvm.so /usr/lib/jvm/java-7-
openjdk-armhf/jre/lib/arm/jamvm/


            *http://labb.zafena.se/?p=576
Install JamVM(Cont’d)


sudo sed -i 's#-jamvm ERROR#-jamvm
KNOWN#' /usr/lib/jvm/java-7-openjdk-armhf/
jre/lib/arm/jvm.cfg

java -jamvm -version




           *http://labb.zafena.se/?p=576
Using JamVM


Jetty 9.0:http://download.eclipse.org/jetty/
stable-9/dist/

H2 Database:http://www.h2database.com/
h2-2012-09-09.zip
Installing Node.js
     (soft-floatABI)

Easy to install:using soft-floatABI wheezy

git clone git://github.com/itwars/nodejs-ARM.git

dpkg -i nodejs-ARM/
nodejs_0.8.14~squeeze_armel.deb



        *https://github.com/itwars/nodejs-ARM/
Installing Node.js
     (hard-floatABI)
Do NOT use latest

git clone git://github.com/joyent/node.git

cd node;git checkout v0.8.14-release

./configure && make

sudo make install


         *https://github.com/wware/rpi-hacking
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
Raspberry PI UG

subscribe https://groups.google.com/d/forum/
japanese-raspberry-pi-users-group

welcoming beginners (for studying) :-p

help purchasing PI

planning to attend some OSS event.

Why don’t you join us!

  *note it is not concerned and sponsored by my company
Thank you!
               Masafumi Ohta
          mailto:masafumi@pid0.org
           twitter:@masafumiohta
subscribe please:https://groups.google.com/d/
 forum/japanese-raspberry-pi-users-group

Contenu connexe

Tendances

Tendances (7)

Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)
 
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
Accelerate graphics performance with ozone-gbm on Intel based Linux desktop s...
Accelerate graphics performance with ozone-gbm on Intel based Linux desktop s...Accelerate graphics performance with ozone-gbm on Intel based Linux desktop s...
Accelerate graphics performance with ozone-gbm on Intel based Linux desktop s...
 
Running Chrome/Android OS on Raspberry Pi
Running Chrome/Android OS on Raspberry PiRunning Chrome/Android OS on Raspberry Pi
Running Chrome/Android OS on Raspberry Pi
 
"Relax and Recover", an Open Source mksysb for Linux on Power
"Relax and Recover", an Open Source mksysb for Linux on Power"Relax and Recover", an Open Source mksysb for Linux on Power
"Relax and Recover", an Open Source mksysb for Linux on Power
 
Board Bringup
Board BringupBoard Bringup
Board Bringup
 

En vedette

En vedette (11)

Build a Java and Raspberry Pi weather station
Build a Java and Raspberry Pi weather station Build a Java and Raspberry Pi weather station
Build a Java and Raspberry Pi weather station
 
Raspberry pi weather storey
Raspberry pi weather storey Raspberry pi weather storey
Raspberry pi weather storey
 
Increased Developer Productivity for IoT with Java and Reactive Blocks (Oracl...
Increased Developer Productivity for IoT with Java and Reactive Blocks (Oracl...Increased Developer Productivity for IoT with Java and Reactive Blocks (Oracl...
Increased Developer Productivity for IoT with Java and Reactive Blocks (Oracl...
 
MQTT with Java - a protocol for IoT and M2M communication
MQTT with Java - a protocol for IoT and M2M communicationMQTT with Java - a protocol for IoT and M2M communication
MQTT with Java - a protocol for IoT and M2M communication
 
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
MQTT, Eclipse Paho and Java - Messaging for the Internet of ThingsMQTT, Eclipse Paho and Java - Messaging for the Internet of Things
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
 
Low Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PILow Cost HD Surveillance Camera using Raspberry PI
Low Cost HD Surveillance Camera using Raspberry PI
 
Home Automation Using RPI
Home Automation Using  RPIHome Automation Using  RPI
Home Automation Using RPI
 
Internet of things using Raspberry Pi
Internet of things using Raspberry PiInternet of things using Raspberry Pi
Internet of things using Raspberry Pi
 
A seminar report on Raspberry Pi
A seminar report on Raspberry PiA seminar report on Raspberry Pi
A seminar report on Raspberry Pi
 
Smart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PISmart Wireless Surveillance Monitoring using RASPBERRY PI
Smart Wireless Surveillance Monitoring using RASPBERRY PI
 
pressure sensors
pressure sensorspressure sensors
pressure sensors
 

Similaire à Raspberry pi on java 20121110

Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1
Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1
Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1
Andy Cobley
 

Similaire à Raspberry pi on java 20121110 (20)

Getting started pi with android
Getting started pi with androidGetting started pi with android
Getting started pi with android
 
Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...
Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...
Desktop Ubutu on Laptops and RaspberryPi_practices how to use it with SD card...
 
How to Hack Edison
How to Hack EdisonHow to Hack Edison
How to Hack Edison
 
Raspberry with laptop
Raspberry with laptopRaspberry with laptop
Raspberry with laptop
 
ChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPad
 
ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220
 
Do You Like Coffee with Your dessert? Java and the Raspberry Pi - Simon Ritte...
Do You Like Coffee with Your dessert? Java and the Raspberry Pi - Simon Ritte...Do You Like Coffee with Your dessert? Java and the Raspberry Pi - Simon Ritte...
Do You Like Coffee with Your dessert? Java and the Raspberry Pi - Simon Ritte...
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
 
Artificial Intelligence Neural Processing Unit Hikey970
Artificial Intelligence Neural Processing Unit Hikey970Artificial Intelligence Neural Processing Unit Hikey970
Artificial Intelligence Neural Processing Unit Hikey970
 
Raspberry-PI introduction
Raspberry-PI introductionRaspberry-PI introduction
Raspberry-PI introduction
 
Raspberry pi technology
Raspberry pi technologyRaspberry pi technology
Raspberry pi technology
 
BeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream ComponentsBeagleBone Black: Platform Bring-Up with Upstream Components
BeagleBone Black: Platform Bring-Up with Upstream Components
 
Qemu Pcie
Qemu PcieQemu Pcie
Qemu Pcie
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
 
Introduction to raspberry pi
Introduction to raspberry piIntroduction to raspberry pi
Introduction to raspberry pi
 
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending MachineJava Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
 
Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1
Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1
Data stax cassandra_summit_2013_cassandra_raspberrypi-rc1
 
Some experiences for porting application to Intel Xeon Phi
Some experiences for porting application to Intel Xeon PhiSome experiences for porting application to Intel Xeon Phi
Some experiences for porting application to Intel Xeon Phi
 
Xen time machine
Xen time machineXen time machine
Xen time machine
 
Let's begin io t with $10
Let's begin io t with $10Let's begin io t with $10
Let's begin io t with $10
 

Plus de Masafumi Ohta

20150604_RaspberryPi_Linuxcon
20150604_RaspberryPi_Linuxcon20150604_RaspberryPi_Linuxcon
20150604_RaspberryPi_Linuxcon
Masafumi Ohta
 
Raspberry Pi最新情報 at OSC 2014 Hokkaido
Raspberry Pi最新情報 at OSC 2014 HokkaidoRaspberry Pi最新情報 at OSC 2014 Hokkaido
Raspberry Pi最新情報 at OSC 2014 Hokkaido
Masafumi Ohta
 
Raspberry pi for beginners 20130623 osc nagoya
Raspberry pi for beginners 20130623 osc nagoyaRaspberry pi for beginners 20130623 osc nagoya
Raspberry pi for beginners 20130623 osc nagoya
Masafumi Ohta
 
Raspberry pi & rilakkuma
Raspberry pi & rilakkumaRaspberry pi & rilakkuma
Raspberry pi & rilakkuma
Masafumi Ohta
 
トークセッション
トークセッショントークセッション
トークセッション
Masafumi Ohta
 
Raspberry pi on java 20130514
Raspberry pi on java 20130514Raspberry pi on java 20130514
Raspberry pi on java 20130514
Masafumi Ohta
 
Raspberry pi on java 20130510
Raspberry pi on java 20130510Raspberry pi on java 20130510
Raspberry pi on java 20130510
Masafumi Ohta
 

Plus de Masafumi Ohta (20)

Raspberry pi history, tips and use case (coscup19)
Raspberry pi history, tips and use case (coscup19)Raspberry pi history, tips and use case (coscup19)
Raspberry pi history, tips and use case (coscup19)
 
Journey with the vineyard compressed
Journey with the vineyard compressedJourney with the vineyard compressed
Journey with the vineyard compressed
 
Let's play mini card-sized computer boards on the business!
Let's play mini card-sized computer boards on the business!Let's play mini card-sized computer boards on the business!
Let's play mini card-sized computer boards on the business!
 
Lt osc tokyo_gpd_micro_pc_edited
Lt osc tokyo_gpd_micro_pc_editedLt osc tokyo_gpd_micro_pc_edited
Lt osc tokyo_gpd_micro_pc_edited
 
Raspberry pi history, tips and use case
Raspberry pi history, tips and use caseRaspberry pi history, tips and use case
Raspberry pi history, tips and use case
 
Minio on Raspberry Pi
Minio on Raspberry PiMinio on Raspberry Pi
Minio on Raspberry Pi
 
20150604_RaspberryPi_Linuxcon
20150604_RaspberryPi_Linuxcon20150604_RaspberryPi_Linuxcon
20150604_RaspberryPi_Linuxcon
 
20150523 raspberry pi-for_osc_nagoya
20150523 raspberry pi-for_osc_nagoya20150523 raspberry pi-for_osc_nagoya
20150523 raspberry pi-for_osc_nagoya
 
20140521 Qcon資料
20140521 Qcon資料20140521 Qcon資料
20140521 Qcon資料
 
CLSx tokyo 2015 #0
CLSx tokyo 2015 #0CLSx tokyo 2015 #0
CLSx tokyo 2015 #0
 
Raspberry pi最新情報アップデート&いろいろ比較
Raspberry pi最新情報アップデート&いろいろ比較Raspberry pi最新情報アップデート&いろいろ比較
Raspberry pi最新情報アップデート&いろいろ比較
 
Raspberry Pi 最新情報 at OSC Tokyo 2014 秋
Raspberry Pi 最新情報 at OSC Tokyo 2014 秋Raspberry Pi 最新情報 at OSC Tokyo 2014 秋
Raspberry Pi 最新情報 at OSC Tokyo 2014 秋
 
CLSイベント企画について
CLSイベント企画についてCLSイベント企画について
CLSイベント企画について
 
Raspberry Pi最新情報 at OSC 2014 Hokkaido
Raspberry Pi最新情報 at OSC 2014 HokkaidoRaspberry Pi最新情報 at OSC 2014 Hokkaido
Raspberry Pi最新情報 at OSC 2014 Hokkaido
 
Raspberry pi on java at Java8 Launching Event in Japan
Raspberry pi on java at Java8 Launching Event in JapanRaspberry pi on java at Java8 Launching Event in Japan
Raspberry pi on java at Java8 Launching Event in Japan
 
Raspberry pi for beginners 20130623 osc nagoya
Raspberry pi for beginners 20130623 osc nagoyaRaspberry pi for beginners 20130623 osc nagoya
Raspberry pi for beginners 20130623 osc nagoya
 
Raspberry pi & rilakkuma
Raspberry pi & rilakkumaRaspberry pi & rilakkuma
Raspberry pi & rilakkuma
 
トークセッション
トークセッショントークセッション
トークセッション
 
Raspberry pi on java 20130514
Raspberry pi on java 20130514Raspberry pi on java 20130514
Raspberry pi on java 20130514
 
Raspberry pi on java 20130510
Raspberry pi on java 20130510Raspberry pi on java 20130510
Raspberry pi on java 20130510
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 

Raspberry pi on java 20121110

  • 1. Raspberry PI on Java 35$PC Not PI Do Java Masafumi Ohta Lead of Japanese Raspberry PI UG.
  • 2. It’s Me Masafumi Ohta - Founded Japanese Raspberry PI Users Group in 2012.9 Working for CTC as OSS investigation
  • 3.
  • 4.
  • 5.
  • 7. Eben,founder of PI Founder of Rasberry PI Director of Broadcom Founding PI for Education teaching Programmings and Computer hardware =OLPC
  • 8. What’s PI it is for studying computer for K12 - how computer works and how to study ‘PITHON’,easy and basical lang. works Debian,Arclinux...and Android
  • 9. There are Revisions Rev.A - without ethernet (using usb) Rev.B 1.0 - with ethernet Rev.B 1.0 + ECN0001 (no fuses, D14 removed) - ? Perhaps we cant see in Japan Rev.B 2.0 - adding some improvements Rev.B 2.0 w/512MB - adding memories Latest!
  • 10. 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
  • 11. Two Vendors for PI RS Components - manufactured in China.Now can order from Japan but it takes 2-3 month to get them :-( Element14 - manufactured by Sony in UK.but no channel reseller in Japan (now talking with CPC,sis company of element14 ),it take 1-2 week to get them :-)
  • 14. Needs enough to pack 10/100 ethernet - enough to work with electric power. no wifi - wifi eats electric power - sometime it wont boot actually with usb wifi (be carefull :-p) poor memories,CPU - it is for COST :-p
  • 15. GPIO Port You must check using PI serial line provided by GPIO NOT USB port. GPIO port assign very often changes updating the Revision of PI. Prepare Sparkfun DEV-09873 (3.3V NOT 5V) you can buy in Akibahara. careful 115200 bps to be used for serial
  • 16.
  • 17.
  • 18. Be careful using Need stable power running USB wifi. Need high-speed and stable SD card to running OS Use high-power and stable battery like Panasonic to use PI as mobile. (in my case it works for 8 hours) be careful USB port on Mac....often got kernel panic.(say abusing USB port)
  • 19.
  • 20. 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
  • 22. Raspbian “wheezy” Default Destro.recommended OS Needs to update moving SD from w/256MB to w/ 512MB:’sudo apt-get update && sudo apt-get install raspi-config libraspberrypi*’ At first you should set ‘raspi-config’ Works good but veeery slow GUI,be careful Poor CPU,memories must be considered
  • 24.
  • 25.
  • 26. before get started Macbook (Unix PC) is prefer to use git must be used (if Mac need MacPort) if you use Oracle JVM you MUST use soft-float ABI Debian wheezy,or it won’t work. if soft-float ABI wheezy DO NOT forget to replace start.elf applied for 512MB.
  • 27. replace start.elf (if use soft-floatABI) git git://github.com/raspberrypi/firmware.git cd firmware;git checkout;git checkout -b 48f8bb0e47 cd boot;cp armXXX_start.elf /Volume/$SD_NAME/ start.elf (Mac OS X)
  • 28. Note:burn OS image on Mac diskutil list sudo diskutil umount /dev/disk1s1 sudo sudo dd if=2012-10-28-wheezy-raspbian.img of=/dev/rdisk1 bs=1m sudo diskutil umount /dev/disk1s1 after boot set ‘raspi-config’ and ‘expand_rootfs’ to expand filesystem
  • 29. Note:‘screen’ Command to use serial on Mac Plug USB to GPIO with DEV-09873,Not USB on Raspberry PI ls /dev/tty.* screen /dev/tty.usbserial-xxxxxxxx(serial No.) 115200
  • 30. Installing JamVM sudo apt-get install openjdk-7-jdk git libtool autoconf automake git clone git://git.berlios.de/jamvm;cd jamvm ./autogen.sh --with-java-runtime- library=openjdk7;make sudo cp src/.libs/libjvm.so /usr/lib/jvm/java-7- openjdk-armhf/jre/lib/arm/jamvm/ *http://labb.zafena.se/?p=576
  • 31. Install JamVM(Cont’d) sudo sed -i 's#-jamvm ERROR#-jamvm KNOWN#' /usr/lib/jvm/java-7-openjdk-armhf/ jre/lib/arm/jvm.cfg java -jamvm -version *http://labb.zafena.se/?p=576
  • 32. Using JamVM Jetty 9.0:http://download.eclipse.org/jetty/ stable-9/dist/ H2 Database:http://www.h2database.com/ h2-2012-09-09.zip
  • 33. Installing Node.js (soft-floatABI) Easy to install:using soft-floatABI wheezy git clone git://github.com/itwars/nodejs-ARM.git dpkg -i nodejs-ARM/ nodejs_0.8.14~squeeze_armel.deb *https://github.com/itwars/nodejs-ARM/
  • 34. Installing Node.js (hard-floatABI) Do NOT use latest git clone git://github.com/joyent/node.git cd node;git checkout v0.8.14-release ./configure && make sudo make install *https://github.com/wware/rpi-hacking
  • 35. 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
  • 36.
  • 37. Raspberry PI UG subscribe https://groups.google.com/d/forum/ japanese-raspberry-pi-users-group welcoming beginners (for studying) :-p help purchasing PI planning to attend some OSS event. Why don’t you join us! *note it is not concerned and sponsored by my company
  • 38. Thank you! Masafumi Ohta mailto:masafumi@pid0.org twitter:@masafumiohta subscribe please:https://groups.google.com/d/ forum/japanese-raspberry-pi-users-group

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n