Firefox OS + Raspberry Pi

10,068 views

Published on

English Version

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
10,068
On SlideShare
0
From Embeds
0
Number of Embeds
4,356
Actions
Shares
0
Downloads
50
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Firefox OS + Raspberry Pi

  1. 1. Firefox OS+Raspberry Pi||?EnsekiTT
  2. 2. GoalRun FirefoxOS in Raspberry Pi
  3. 3. What’s that?Raspberry PiFirefox OS
  4. 4. What’s that?Raspberry PiFirefox OSOpen SourceWeb is the platformMade of the WebMade by FirefoxLow CostSmall SizeARM CoreRich Interfaces
  5. 5. ToolsRaspberryPiUSB MicroB CableUSB Charger ( > 700mA)SD Card( > 8GB),SD Card R/WPC(Linux | OS X | Windows) for AdvUSB Key Board, MouseHDMI Monitor, CableEthernet Cable(Connect the Internet)
  6. 6. Raspbian “wheezy”DebianRaspberry Pi
  7. 7. Raspbian “wheezy”DebianRaspberry PiLinux DistributionOpen SourceOperating SystemBig CommunityLow CostSmall SizeARM CoreRich Interfaces
  8. 8. Here!This is baked Pi(Debian installed SD Card)
  9. 9. Start up!Insert SD Card
  10. 10. Start up!Connect HDMI Cable
  11. 11. Start up!Connect LAN Cable
  12. 12. Start up!Connect USBMouse and Keyboard
  13. 13. Connected!
  14. 14. Power ON
  15. 15. LoginLogin ID: piLogin Pass: raspberry
  16. 16. Firefox OS InstallOutlineMake directory for Firefox OSGet Firefox OSGet Profile dataBoot!
  17. 17. Make directory forFirefox OS$ cd$ mkdir fxos$ cd fxos[dir]: Directory namecd [dir]: Change Directory for [dir]     (if [dir] = empty then [dir] = HomeDirectory)mkdir [dir]: Make Directory
  18. 18. Download Firefox OS$ wget http://michi.mozlabs.jp/fxos/b2g-17.0a1.linuxgl-gnueabi-armhf_v6.tar.gz[NetFile]: File on WWWwget [NetFile]: Download [NetFile]
  19. 19. UnpackFirefox OS tarball$ tar xvzf b2g-17.0a1.linuxgl-gnueabi-armhf_v6.tar.gz$ cd b2g/[file]: tarball file nametar xvzf [file]: unpack command(x:unpack files,v:view files list,z:.gz unpack,f [file]: tarball file name)
  20. 20. Download and unpackprofile data$ wget http://michi.mozlabs.jp/fxos/profile.tar.gz$ tar xvzf profile.tar.gz
  21. 21. $ ./b2g -profile profile
  22. 22. FinishClose Firefox OSHalt Raspberry Piand unconnect Power USB$ sudo halt[Ctrl] + c
  23. 23. Future WorkAdd touch displayAdd camera displayAdd 3G moduleIf add 3G module, That’s Phone!!
  24. 24. Advance Course
  25. 25. Raspbian “wheezy”InstallToolsPersonal Computer(OS X)SD Card ,SD Card R/W
  26. 26. Prepare of Environmentex: OSXMac Ports | Homebrewsudo port install wgetbrew install wget
  27. 27. Install Start!Make Directory$ cd$ mkdir raspi$ cd raspi[dir]: Directory namecd [dir]: Change Directory for [dir]     (if [dir] = empty then [dir] = HomeDirectory)mkdir [dir]: Make Directory
  28. 28. DownloadRaspbian “wheezy”$ wget http://downloads.raspberrypi.org/images/raspbian/2012-10-28-wheezy-raspbian/2012-10-28-wheezy-raspbian.zipYou can get hire ↓http://www.raspberrypi.org/downloads
  29. 29. Unpack Zip$ unzip 2012-10-28-wheezy-raspbian.zip[file]: Zip File nameunzip [file]: Unpack [file]
  30. 30. Insert SD card$ dfdf: Show disk parametersFilesystem 512-blocks Used Available Capacity Mounted on/dev/disk0s2 723603632 442647392 280444240 62% /devfs 376 376 0 100% /devmap -hosts 0 0 0 100% /netmap auto_home 0 0 0 100% /home/dev/disk2s1 31488000 4480 31483520 1% /Volumes/NO NAMETake note : /dev/disk2s1(BSD Name)
  31. 31. Unmount SD Card$ sudo diskutil unmount /dev/disk2s1password: *****[com]: Command[disk]: BSD namesudo [com]: Run command as super userpassword: *****: Super user passworddiskutil: OSX disk utility commanddiskutil unmount [disk]: Unmount disk
  32. 32. WriteDebian “wheezy”$ sudo dd bs=1mif=./2012-10-28-wheezy-raspbian.imgof=/dev/rdisk2[img disk]: Image disk./ : Current Directory/ : Root Directorydd: Disk dump  (Copy all image)bs=*: Block Size(1m=1MB)if=[img disk]: Source image diskof=[disk]: Output disk
  33. 33. WriteDebian “wheezy”$ sudo dd bs=1mif=./2012-10-28-wheezy-raspbian.imgof=/dev/rdisk2Q: !? I noted /dev/disk2s1.A: /dev/disk2s1 is one of disk partition  Add r for raw access to disk2  s1 means partition  Therefore “/dev/rdisk2”
  34. 34. Eject SD Card$ sudo diskutil eject /dev/rdisk2diskutil eject [disk]: eject [disk]
  35. 35. First Step of Piexpand_rootfsUse SD Card full accessconfigure_keyboardSelect your keyboard layoutchange_timezoneex:「Asia」→「Tokyo」updateUpdate Debian
  36. 36. ☕Coffee Break
  37. 37. ReferencesRaspberryPi Quick Start Guidehttp://www.raspberrypi.org/quick-start-guideRaspberry Pi Downloadhttp://www.raspberrypi.org/downloadsRPi Easy SD Card Setuphttp://elinux.org/RPi_Easy_SD_Card_SetupRaspberry Pi Configurehttp://gold.ap.teacup.com/maz01/319.htmlFirefoxOS Instrationhttp://eva-quirinius.blogspot.nl/2012/08/running-firefoxos-b2g-on-raspi-with.htmlSource of FirefoxOS and Profileshttp://romaxa.info/b2g/

×